/* =============================================================
   [home-2] School Mock Test — dark 3D student command centre
   Completely independent from the [home] design system.
   ============================================================= */

/* Full-bleed dark cockpit inside the theme's light page shell.
   Scoped to <main> so the site header / footer keep their own layout. */
body.mocktest-home2-page main .ast-container,
body.mocktest-home2-page .entry-content,
body.mocktest-home2-page .ast-article-single,
body.mocktest-home2-page .ast-page-builder-wrapper {
    max-width: 100% !important;
}
body.mocktest-home2-page .entry-content > *,
body.mocktest-home2-page .ast-article-single > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
}
body.mocktest-home2-page .entry-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.h2-app {
    --h2-bg: #05060f;
    --h2-bg-2: #0a0c1c;
    --h2-panel: rgba(255, 255, 255, 0.045);
    --h2-panel-2: rgba(255, 255, 255, 0.075);
    --h2-line: rgba(255, 255, 255, 0.10);
    --h2-text: #eef2ff;
    --h2-soft: #a9b4d4;
    --h2-mute: #6b779b;
    --h2-cyan: #22d3ee;
    --h2-violet: #a855f7;
    --h2-pink: #f472b6;
    --h2-green: #34d399;
    --h2-amber: #fbbf24;
    --h2-blue: #60a5fa;
    --h2-grad: linear-gradient(120deg, #22d3ee 0%, #818cf8 45%, #f472b6 100%);
    --h2-grad-soft: linear-gradient(120deg, rgba(34,211,238,.18), rgba(168,85,247,.18), rgba(244,114,182,.18));
    --h2-ease: cubic-bezier(.22, 1, .36, 1);
    --h2-r: 20px;
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    /* `clip` (not `hidden`) so the sticky nav keeps working — it clips paint
       without turning .h2-app into a scroll container. */
    overflow: clip;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(168, 85, 247, .22), transparent 60%),
        radial-gradient(900px 520px at 5% 5%, rgba(34, 211, 238, .18), transparent 60%),
        linear-gradient(180deg, #05060f 0%, #080a18 40%, #05060f 100%);
    color: var(--h2-text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.h2-app *,
.h2-app *::before,
.h2-app *::after { box-sizing: border-box; }

.h2-app h1, .h2-app h2, .h2-app h3, .h2-app p, .h2-app ul, .h2-app ol, .h2-app li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Astra sets an explicit slate-800 colour on every heading inside
   .entry-content (e.g. `.entry-content h2 { color:#1e293b }`). That selector
   beats inheritance from .h2-app, so headings rendered dark-on-dark. Re-assert
   inheritance at a specificity that wins against the theme, without using
   !important, so .h2-holo-text / .h2-feature-num keep their own colours. */
body .h2-app h1,
body .h2-app h2,
body .h2-app h3,
body .h2-app h4,
body .h2-app h5,
body .h2-app h6,
body .h2-app caption,
body .h2-app legend { color: inherit; }

.h2-app a { text-decoration: none !important; box-shadow: none !important; color: inherit; }
.h2-app img { max-width: 100%; height: auto; display: block; }
.h2-app button { font: inherit; cursor: pointer; }
.h2-app strong, .h2-app b { font-weight: 700; }

.h2-wrap {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px;
}

.h2-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--h2-cyan);
    color: #04121a !important;
    padding: 10px 18px;
    border-radius: 0 0 12px 0;
    font-weight: 700;
}
.h2-skip:focus { left: 0; }

/* ---------------- ambient background ---------------- */
/* Fixed, viewport-sized particle field — far cheaper than a page-height canvas. */
.h2-particles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: .8;
}

.h2-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.h2-aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .5;
    will-change: transform;
}
.h2-aurora-blob-1 {
    width: 520px; height: 520px; top: -140px; left: -120px;
    background: radial-gradient(circle, rgba(34,211,238,.75), transparent 68%);
    animation: h2Float1 18s ease-in-out infinite;
}
.h2-aurora-blob-2 {
    width: 620px; height: 620px; top: 12%; right: -180px;
    background: radial-gradient(circle, rgba(168,85,247,.72), transparent 68%);
    animation: h2Float2 22s ease-in-out infinite;
}
.h2-aurora-blob-3 {
    width: 480px; height: 480px; bottom: -160px; left: 32%;
    background: radial-gradient(circle, rgba(244,114,182,.55), transparent 68%);
    animation: h2Float3 26s ease-in-out infinite;
}
@keyframes h2Float1 {
    0%, 100% { transform: translate3d(0,0,0) scale(1); }
    50%      { transform: translate3d(90px, 70px, 0) scale(1.15); }
}
@keyframes h2Float2 {
    0%, 100% { transform: translate3d(0,0,0) scale(1.05); }
    50%      { transform: translate3d(-110px, 60px, 0) scale(.9); }
}
@keyframes h2Float3 {
    0%, 100% { transform: translate3d(0,0,0) scale(.95); }
    50%      { transform: translate3d(70px, -90px, 0) scale(1.18); }
}

.h2-noise {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 80%);
}

/* ---------------- typography helpers ---------------- */
.h2-holo-text {
    background: var(--h2-grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: h2Shift 6s linear infinite;
}
@keyframes h2Shift { to { background-position: 200% center; } }

.h2-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--h2-cyan);
    margin-bottom: 14px;
}

.h2-section { position: relative; z-index: 2; padding: 84px 0 20px; }
.h2-section-head { max-width: 720px; margin-bottom: 44px; }
.h2-section-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.14;
}
.h2-section-sub { margin-top: 14px; color: var(--h2-soft); font-size: 16px; }

/* ---------------- buttons ---------------- */
.h2-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    color: var(--h2-text);
    background: var(--h2-panel);
    transition: transform .35s var(--h2-ease), box-shadow .35s var(--h2-ease), background .3s ease, color .3s ease;
    will-change: transform;
}
.h2-btn-primary {
    color: #05060f !important;
    background: var(--h2-grad);
    background-size: 180% auto;
    box-shadow: 0 10px 30px rgba(129, 140, 248, .35), 0 0 0 1px rgba(255,255,255,.12) inset;
    animation: h2Shift 6s linear infinite;
}
.h2-btn-primary:hover { box-shadow: 0 18px 46px rgba(168, 85, 247, .5); }
.h2-btn-line {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--h2-line);
}
.h2-btn-line:hover { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); background: var(--h2-panel); }
.h2-btn-ghost { background: var(--h2-panel); }
.h2-btn-sm { padding: 10px 18px; font-size: 13.5px; }
.h2-btn-lg { padding: 17px 32px; font-size: 16.5px; }
.h2-btn-block { width: 100%; justify-content: center; margin-top: 16px; }
.h2-btn-arrow { transition: transform .35s var(--h2-ease); }
.h2-btn:hover .h2-btn-arrow { transform: translateX(5px); }

.h2-link { color: var(--h2-cyan) !important; font-size: 13px; font-weight: 600; }

/* ---------------- NAV ---------------- */
.h2-nav {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: 14px 0;
    transition: padding .35s var(--h2-ease), background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.h2-nav.is-stuck {
    padding: 8px 0;
    background: rgba(5, 6, 15, .72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.h2-nav-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}
.h2-brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.h2-brand-text { font-weight: 800; letter-spacing: -.01em; font-size: 17px; }
.h2-brand-text b { color: var(--h2-cyan); }

.h2-cube-mini {
    position: relative;
    width: 30px; height: 30px;
    transform-style: preserve-3d;
    animation: h2CubeSpin 9s linear infinite;
}
.h2-cube-mini i {
    position: absolute;
    inset: 0;
    border-radius: 6px;
    background: var(--h2-grad);
    box-shadow: 0 0 18px rgba(129,140,248,.55);
}
.h2-cube-mini i:nth-child(1) { transform: translateZ(15px); }
.h2-cube-mini i:nth-child(2) { transform: rotateY(180deg) translateZ(15px); }
.h2-cube-mini i:nth-child(3) { transform: rotateY(90deg) translateZ(15px); }
.h2-cube-mini i:nth-child(4) { transform: rotateY(-90deg) translateZ(15px); }
.h2-cube-mini i:nth-child(5) { transform: rotateX(90deg) translateZ(15px); }
.h2-cube-mini i:nth-child(6) { transform: rotateX(-90deg) translateZ(15px); }
@keyframes h2CubeSpin {
    from { transform: rotateX(-22deg) rotateY(0deg); }
    to   { transform: rotateX(-22deg) rotateY(360deg); }
}

.h2-nav-links { display: flex; gap: 4px; margin-left: auto; }
.h2-nav-links a {
    position: relative;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--h2-soft);
    transition: color .25s ease, background .25s ease;
}
.h2-nav-links a:hover { color: var(--h2-text); background: var(--h2-panel); }
.h2-nav-links a.is-active { color: #05060f; background: var(--h2-grad); }

.h2-nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.h2-user-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: var(--h2-panel);
    box-shadow: inset 0 0 0 1px var(--h2-line);
}
.h2-user-chip img { width: 34px; height: 34px; border-radius: 50%; }
.h2-user-chip-text { display: flex; flex-direction: column; line-height: 1.2; }
.h2-user-chip-text b { font-size: 13.5px; }
.h2-user-chip-text small { font-size: 11.5px; color: var(--h2-mute); }

/* ---------------- HERO ---------------- */
.h2-hero { position: relative; z-index: 2; padding: 46px 0 40px; }
.h2-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 50px;
    align-items: center;
    min-height: 560px;
}

.h2-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--h2-text);
    background: var(--h2-panel);
    box-shadow: inset 0 0 0 1px var(--h2-line);
}
.h2-chip-live { position: relative; overflow: hidden; }
.h2-chip-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--h2-green);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, .7);
    animation: h2Pulse 2s infinite;
}
@keyframes h2Pulse {
    0%   { box-shadow: 0 0 0 0 rgba(52,211,153,.6); }
    70%  { box-shadow: 0 0 0 12px rgba(52,211,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

.h2-hero-title {
    margin: 22px 0 0;
    font-size: clamp(38px, 6.2vw, 74px);
    font-weight: 850;
    line-height: 1.02;
    letter-spacing: -.035em;
    filter: drop-shadow(0 10px 34px rgba(96, 165, 250, .30));
}
.h2-hero-line {
    display: block;
    /* Solid bright fallback first, so the headline is readable even where
       background-clip:text is unsupported. */
    color: #f2f7ff;
}
/* Cool top-lit sheen — white at the cap fading to cyan. `:not()` keeps the
   vibrant gradient on the accent line untouched. */
.h2-hero-line:not(.h2-holo-text) {
    background-image: linear-gradient(180deg, #ffffff 0%, #dce9ff 48%, #8ad9f2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.h2-hero-sub {
    margin-top: 20px;
    max-width: 540px;
    font-size: 17px;
    color: var(--h2-soft);
}
.h2-hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

.h2-hero-facts {
    margin-top: 42px;
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
}
.h2-hero-facts li { display: flex; flex-direction: column; }
.h2-hero-facts b {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.02em;
    background: var(--h2-grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}
.h2-hero-facts span { font-size: 13px; color: var(--h2-mute); }

/* ---- 3D stage ----
   Layout is a vertical flex: a HUD strip that is structurally separate from the
   3D scene, so the cube can never sit on top of the score / streak cards.
   Every dimension inside the scene derives from --h2-scene, which is the single
   knob used to rescale the cube on small screens. */
.h2-stage {
    --h2-scene: 400px;
    --h2-cube: calc(var(--h2-scene) * 0.42);
    --h2-scene-h: 330px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    perspective: 1400px;
}

.h2-hud-row {
    display: flex;
    align-items: stretch;
    gap: 14px;
    flex-wrap: wrap;
}
.h2-hud-score  { flex: 1 1 230px; }
.h2-hud-streak { flex: 1 1 190px; }

.h2-scene {
    position: relative;
    width: var(--h2-scene);
    height: var(--h2-scene-h);
    max-width: 100%;
    margin: 0 auto;
    transform-style: preserve-3d;
}

.h2-stage-floor {
    position: absolute;
    left: 50%;
    top: 78%;
    width: calc(var(--h2-scene) * 0.94);
    height: calc(var(--h2-scene) * 0.94);
    transform: translate(-50%, -50%) rotateX(78deg);
    border-radius: 50%;
    background:
        repeating-radial-gradient(circle at 50% 50%, rgba(129,140,248,.16) 0 1px, transparent 1px 34px),
        radial-gradient(circle at 50% 50%, rgba(34,211,238,.18), transparent 62%);
    animation: h2SpinSlow 26s linear infinite;
    opacity: .75;
}
@keyframes h2SpinSlow {
    to { transform: translate(-50%, -50%) rotateX(78deg) rotate(360deg); }
}
.h2-stage-glow {
    position: absolute;
    left: 50%;
    top: 46%;
    width: calc(var(--h2-cube) * 1.8);
    height: calc(var(--h2-cube) * 1.8);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129,140,248,.4), transparent 65%);
    filter: blur(24px);
    animation: h2Breath 6s ease-in-out infinite;
}
@keyframes h2Breath {
    0%, 100% { transform: translate(-50%,-50%) scale(1); opacity: .75; }
    50%      { transform: translate(-50%,-50%) scale(1.22); opacity: 1; }
}

.h2-cube-scene {
    position: absolute;
    left: 50%;
    top: 46%;
    width: var(--h2-cube);
    height: var(--h2-cube);
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
}
.h2-cube {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: h2CubeHero 18s linear infinite;
}
@keyframes h2CubeHero {
    from { transform: rotateX(-24deg) rotateY(0deg); }
    to   { transform: rotateX(-24deg) rotateY(360deg); }
}
.h2-cube-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--h2-cube) * 0.09);
    text-align: center;
    font-size: calc(var(--h2-cube) * 0.085);
    line-height: 1.25;
    font-weight: 700;
    color: #eaf6ff;
    border-radius: calc(var(--h2-cube) * 0.1);
    background: linear-gradient(140deg, rgba(34,211,238,.22), rgba(168,85,247,.22));
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22), 0 20px 50px rgba(0,0,0,.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
}
/* Each face is pushed half the cube width along its own axis. */
.h2-cube-face:nth-child(1) { transform: translateZ(calc(var(--h2-cube) / 2)); }
.h2-cube-face:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--h2-cube) / 2)); }
.h2-cube-face:nth-child(3) { transform: rotateY(90deg)  translateZ(calc(var(--h2-cube) / 2)); }
.h2-cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--h2-cube) / 2)); }
.h2-cube-face:nth-child(5) { transform: rotateX(90deg)  translateZ(calc(var(--h2-cube) / 2)); }
.h2-cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--h2-cube) / 2)); }

.h2-ring {
    position: absolute;
    left: 50%;
    top: 46%;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.14);
    transform-style: preserve-3d;
    pointer-events: none;
    will-change: transform;
}
.h2-ring-1 { width: 64%; height: 64%; border-top-color: rgba(34,211,238,.75); border-right-color: rgba(168,85,247,.55); animation: h2Ring1 12s linear infinite; }
.h2-ring-2 { width: 78%; height: 78%; border-bottom-color: rgba(244,114,182,.6); animation: h2Ring2 18s linear infinite; }
.h2-ring-3 { width: 92%; height: 92%; border-left-color: rgba(96,165,250,.5); animation: h2Ring3 26s linear infinite; }
@keyframes h2Ring1 {
    from { transform: translate(-50%,-50%) rotateX(70deg) rotateZ(0deg); }
    to   { transform: translate(-50%,-50%) rotateX(70deg) rotateZ(360deg); }
}
@keyframes h2Ring2 {
    from { transform: translate(-50%,-50%) rotateX(74deg) rotateZ(0deg); }
    to   { transform: translate(-50%,-50%) rotateX(74deg) rotateZ(360deg); }
}
@keyframes h2Ring3 {
    from { transform: translate(-50%,-50%) rotateX(66deg) rotateZ(0deg); }
    to   { transform: translate(-50%,-50%) rotateX(66deg) rotateZ(360deg); }
}

.h2-orbit-chips { position: absolute; inset: 0; pointer-events: none; }
.h2-orbit-chip {
    position: absolute;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--h2-text);
    background: rgba(10, 12, 28, .78);
    box-shadow: inset 0 0 0 1px var(--h2-line), 0 8px 22px rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.h2-orbit-chip-1 { top: 0;    left: 0;      animation: h2Bob 6s ease-in-out infinite; }
.h2-orbit-chip-2 { top: 10%;  right: 0;     animation: h2Bob 7.5s ease-in-out infinite .6s; }
.h2-orbit-chip-3 { bottom: 16%; left: -2%; animation: h2Bob 8.5s ease-in-out infinite 1.2s; }
.h2-orbit-chip-4 { bottom: 0; right: 0;     animation: h2Bob 7s ease-in-out infinite .3s; }
@keyframes h2Bob {
    0%, 100% { transform: translateY(0) translateZ(40px); }
    50%      { transform: translateY(-14px) translateZ(70px); }
}

.h2-hud {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(10, 12, 28, .74);
    box-shadow: inset 0 0 0 1px var(--h2-line), 0 18px 40px rgba(0,0,0,.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform-style: preserve-3d;
    transition: transform .3s var(--h2-ease), box-shadow .3s var(--h2-ease);
}
.h2-hud-label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--h2-mute); font-weight: 700; }
.h2-hud-rowline { display: flex; align-items: center; gap: 12px; }
.h2-hud-meta { font-size: 12.5px; color: var(--h2-soft); line-height: 1.35; }
.h2-hud-big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.h2-hud-big b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.h2-hud-big span { font-size: 12px; color: var(--h2-mute); }

.h2-ring-sm, .h2-ring-md {
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--h2-cyan) calc(var(--pct) * 1%), rgba(255,255,255,.09) 0);
    flex-shrink: 0;
}
.h2-ring-sm { width: 52px; height: 52px; }
.h2-ring-md { width: 96px; height: 96px; background: conic-gradient(var(--h2-violet) calc(var(--pct) * 1%), rgba(255,255,255,.08) 0); }
.h2-ring-md.h2-ring-green { background: conic-gradient(var(--h2-green) calc(var(--pct) * 1%), rgba(255,255,255,.08) 0); }
.h2-ring-md.h2-ring-amber { background: conic-gradient(var(--h2-amber) calc(var(--pct) * 1%), rgba(255,255,255,.08) 0); }
.h2-ring-sm::after, .h2-ring-md::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #0a0c1c;
}
.h2-ring-sm i, .h2-ring-md i {
    position: relative;
    z-index: 1;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}
.h2-ring-md i { font-size: 19px; }

.h2-streak-dots { display: flex; gap: 5px; margin-top: 10px; }
.h2-streak-dots i {
    width: 9px; height: 9px; border-radius: 50%;
    background: rgba(255,255,255,.14);
}
.h2-streak-dots i.is-on {
    background: var(--h2-amber);
    box-shadow: 0 0 10px rgba(251,191,36,.8);
}

.h2-scroll-hint {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 0 6px;
    font-size: 11.5px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--h2-mute);
}
.h2-scroll-hint span {
    width: 22px; height: 34px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,.28);
    position: relative;
}
.h2-scroll-hint span::after {
    content: "";
    position: absolute;
    left: 50%; top: 7px;
    width: 3px; height: 6px;
    margin-left: -1.5px;
    border-radius: 2px;
    background: var(--h2-cyan);
    animation: h2Wheel 1.8s ease-in-out infinite;
}
@keyframes h2Wheel {
    0%   { opacity: 0; transform: translateY(0); }
    35%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ---------------- RESUME DOCK ---------------- */
.h2-dock-row { position: relative; z-index: 2; padding-top: 12px; }
.h2-resume {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 26px 30px;
    border-radius: 24px;
    background:
        linear-gradient(120deg, rgba(34,211,238,.10), rgba(168,85,247,.10) 60%, rgba(244,114,182,.10)),
        rgba(255,255,255,.03);
    box-shadow: inset 0 0 0 1px var(--h2-line), 0 26px 60px rgba(0,0,0,.45);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform .3s var(--h2-ease), box-shadow .3s var(--h2-ease);
}
.h2-resume::before {
    content: "";
    position: absolute;
    top: 0; left: -40%;
    width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.10), transparent);
    animation: h2Sweep 4.5s ease-in-out infinite;
}
@keyframes h2Sweep { 0% { left: -45%; } 60%, 100% { left: 120%; } }
.h2-resume-kicker {
    font-size: 11.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--h2-cyan);
}
.h2-resume-title { margin-top: 6px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.h2-resume-text { margin-top: 6px; color: var(--h2-soft); font-size: 14.5px; max-width: 560px; }
.h2-resume-meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--h2-mute); }
.h2-resume-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--h2-cyan);
    background: rgba(34, 211, 238, .12);
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3);
}
.h2-quick-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.h2-quick-chip {
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--h2-text);
    background: var(--h2-panel-2);
    box-shadow: inset 0 0 0 1px var(--h2-line);
    transition: background .25s ease, transform .25s var(--h2-ease), box-shadow .25s ease;
}
.h2-quick-chip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(34,211,238,.5); }
.h2-quick-chip-alt { color: var(--h2-violet); }

/* ---------------- BENTO ---------------- */
.h2-bento {
    position: relative;
    z-index: 2;
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.h2-tile {
    position: relative;
    padding: 24px;
    border-radius: var(--h2-r);
    background: var(--h2-panel);
    box-shadow: inset 0 0 0 1px var(--h2-line);
    transform-style: preserve-3d;
    transition: transform .35s var(--h2-ease), box-shadow .35s var(--h2-ease), background .35s ease;
    overflow: hidden;
}
.h2-tile:hover { background: var(--h2-panel-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 26px 50px rgba(0,0,0,.5); }
.h2-tile-hero { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.h2-tile-kicker { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--h2-mute); font-weight: 800; }
.h2-tile-number {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-top: 10px;
    background: var(--h2-grad);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: h2Shift 6s linear infinite;
}
.h2-tile-hero .h2-tile-number { font-size: clamp(46px, 6vw, 68px); }
.h2-tile-label { margin-top: 6px; font-size: 13.5px; color: var(--h2-soft); }
.h2-tile-icon { font-size: 22px; display: block; }
.h2-tile-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 22px; }
.h2-tile-bars i {
    flex: 1;
    height: var(--h);
    border-radius: 6px;
    background: linear-gradient(180deg, var(--h2-cyan), var(--h2-violet));
    transform-origin: bottom;
    transform: scaleY(0);
    animation: h2BarGrow 1s var(--h2-ease) forwards;
    animation-delay: var(--d);
    opacity: .85;
}
@keyframes h2BarGrow { to { transform: scaleY(1); } }

/* ---------------- FILTERS ---------------- */
.h2-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 14px;
    margin-bottom: 26px;
    padding: 16px;
    border-radius: 22px;
    background: var(--h2-panel);
    box-shadow: inset 0 0 0 1px var(--h2-line);
}
.h2-search { position: relative; display: flex; align-items: center; }
.h2-search-icon { position: absolute; left: 16px; font-size: 15px; opacity: .7; }
.h2-search input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    border-radius: 14px;
    border: 0;
    color: var(--h2-text);
    background: rgba(255,255,255,.05);
    box-shadow: inset 0 0 0 1px var(--h2-line);
    font-size: 14.5px;
    outline: none;
    transition: box-shadow .3s ease, background .3s ease;
}
.h2-search input::placeholder { color: var(--h2-mute); }
.h2-search input:focus { box-shadow: inset 0 0 0 1.5px rgba(34,211,238,.6); background: rgba(255,255,255,.07); }

.h2-selects { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)) auto; gap: 10px; align-items: end; }
.h2-select { display: flex; flex-direction: column; gap: 6px; }
.h2-select > span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--h2-mute); font-weight: 700; }
.h2-select select {
    height: 44px;
    padding: 0 34px 0 14px;
    border: 0;
    border-radius: 12px;
    color: var(--h2-text);
    background-color: rgba(255,255,255,.05);
    box-shadow: inset 0 0 0 1px var(--h2-line);
    font-size: 14px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a9b4d4' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    cursor: pointer;
    outline: none;
}
.h2-select select option { background: #0d1024; color: var(--h2-text); }
.h2-select select:focus { box-shadow: inset 0 0 0 1.5px rgba(34,211,238,.6); }

/* ---------------- TEST CARDS ---------------- */
.h2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 18px;
    perspective: 1200px;
}
.h2-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: var(--h2-r);
    background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.028));
    box-shadow: inset 0 0 0 1px var(--h2-line), 0 18px 40px rgba(0,0,0,.35);
    transform-style: preserve-3d;
    transition: transform .4s var(--h2-ease), box-shadow .4s var(--h2-ease);
    animation: h2FadeUp .7s var(--h2-ease) backwards;
    animation-delay: var(--d, 0s);
    overflow: hidden;
}
@keyframes h2FadeUp {
    from { opacity: 0; transform: translateY(26px) scale(.97); }
    to   { opacity: 1; transform: none; }
}
.h2-card:hover {
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 30px 60px rgba(0,0,0,.55);
}
.h2-card-depth {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: var(--h2-r);
    background: var(--h2-grad-soft);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.h2-card > *:not(.h2-card-depth) { position: relative; z-index: 1; }
.h2-card:hover .h2-card-depth { opacity: 1; }
.h2-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--h2-r);
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.10), transparent 42%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.h2-card:hover::after { opacity: 1; }

.h2-card-top { display: flex; align-items: center; justify-content: space-between; }
.h2-pill {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.h2-pill-easy   { color: #052e21; background: var(--h2-green); }
.h2-pill-medium { color: #221600; background: var(--h2-amber); }
.h2-pill-hard   { color: #2b0512; background: var(--h2-pink); }
.h2-pill-default { color: #05060f; background: var(--h2-cyan); }
.h2-card-code { font-size: 12px; font-weight: 800; color: var(--h2-mute); letter-spacing: .1em; }
.h2-card-title {
    margin-top: 14px;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.32;
    letter-spacing: -.01em;
}
.h2-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.h2-card-tags span {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--h2-soft);
    background: rgba(255,255,255,.06);
}
.h2-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--h2-mute);
}
.h2-card-stats b { color: var(--h2-text); }
.h2-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255,255,255,.12);
    font-size: 12.5px;
    color: var(--h2-mute);
}
.h2-card-slot { font-weight: 800; }
.h2-card-slot.is-pass { color: var(--h2-green); }
.h2-card-slot.is-fail { color: var(--h2-pink); }
.h2-empty {
    margin-top: 26px;
    padding: 34px;
    text-align: center;
    color: var(--h2-soft);
    border-radius: 20px;
    background: var(--h2-panel);
    box-shadow: inset 0 0 0 1px var(--h2-line);
}

/* ---------------- SUBJECTS ---------------- */
.h2-subjects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    perspective: 1000px;
}
.h2-subject {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 26px 18px;
    border: 0;
    border-radius: 22px;
    text-align: center;
    color: var(--h2-text);
    background: var(--h2-panel);
    box-shadow: inset 0 0 0 1px var(--h2-line);
    transform-style: preserve-3d;
    overflow: hidden;
    transition: transform .4s var(--h2-ease), box-shadow .4s var(--h2-ease);
    animation: h2FadeUp .7s var(--h2-ease) backwards;
    animation-delay: var(--d, 0s);
}
.h2-subject:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), 0 26px 50px rgba(0,0,0,.5); }
.h2-subject-glow {
    position: absolute;
    width: 180px; height: 180px;
    border-radius: 50%;
    filter: blur(38px);
    opacity: .35;
    top: -60px; left: 50%;
    margin-left: -90px;
    transition: opacity .4s ease;
}
.h2-subject:hover .h2-subject-glow { opacity: .7; }
.h2-subject-1 .h2-subject-glow { background: #22d3ee; }
.h2-subject-2 .h2-subject-glow { background: #a855f7; }
.h2-subject-3 .h2-subject-glow { background: #f472b6; }
.h2-subject-4 .h2-subject-glow { background: #34d399; }
.h2-subject-5 .h2-subject-glow { background: #fbbf24; }
.h2-subject-6 .h2-subject-glow { background: #60a5fa; }

.h2-subject-orb {
    position: relative;
    width: 62px; height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--h2-grad);
    box-shadow: 0 12px 30px rgba(0,0,0,.5);
    transition: transform .45s var(--h2-ease);
}
.h2-subject-1 .h2-subject-orb { background: linear-gradient(140deg,#22d3ee,#0ea5e9); }
.h2-subject-2 .h2-subject-orb { background: linear-gradient(140deg,#a855f7,#7c3aed); }
.h2-subject-3 .h2-subject-orb { background: linear-gradient(140deg,#f472b6,#db2777); }
.h2-subject-4 .h2-subject-orb { background: linear-gradient(140deg,#34d399,#059669); }
.h2-subject-5 .h2-subject-orb { background: linear-gradient(140deg,#fbbf24,#f59e0b); }
.h2-subject-6 .h2-subject-orb { background: linear-gradient(140deg,#60a5fa,#2563eb); }
.h2-subject-orb i {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: rgba(255,255,255,.85);
    animation: h2OrbSpin 3.4s linear infinite;
}
@keyframes h2OrbSpin { to { transform: rotate(360deg); } }
.h2-subject:hover .h2-subject-orb { transform: scale(1.12) translateZ(30px); }
.h2-subject-name { position: relative; font-size: 15.5px; font-weight: 750; }
.h2-subject-meta { position: relative; font-size: 12px; color: var(--h2-mute); }
.h2-subject-meta b { color: var(--h2-soft); }
.h2-subject-meta em { font-style: normal; margin: 0 4px; opacity: .5; }

/* ---------------- FEATURES ---------------- */
.h2-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 16px;
    perspective: 1100px;
}
.h2-feature {
    position: relative;
    padding: 26px 24px;
    border-radius: var(--h2-r);
    background: var(--h2-panel);
    box-shadow: inset 0 0 0 1px var(--h2-line);
    transform-style: preserve-3d;
    overflow: hidden;
    transition: transform .4s var(--h2-ease), box-shadow .4s var(--h2-ease);
}
.h2-feature:hover { background: var(--h2-panel-2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 26px 50px rgba(0,0,0,.5); }
.h2-feature-num {
    position: absolute;
    top: 14px; right: 18px;
    font-size: 44px;
    font-weight: 850;
    letter-spacing: -.05em;
    color: rgba(255,255,255,.07);
}
.h2-feature h3 { font-size: 17.5px; font-weight: 750; }
.h2-feature p { margin-top: 8px; font-size: 14px; color: var(--h2-soft); }

/* ---------------- PROGRESS PANELS ---------------- */
.h2-progress-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.h2-progress-grid .h2-panel:last-child { grid-column: 1 / -1; }
.h2-panel {
    padding: 26px;
    border-radius: var(--h2-r);
    background: var(--h2-panel);
    box-shadow: inset 0 0 0 1px var(--h2-line);
}
.h2-panel-title { font-size: 16px; font-weight: 750; margin-bottom: 18px; }
.h2-panel-empty { color: var(--h2-mute); font-size: 14px; padding: 10px 0; }
.h2-gauges { display: flex; flex-wrap: wrap; gap: 22px; }
.h2-gauge { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.h2-gauge em { font-style: normal; font-size: 12.5px; color: var(--h2-mute); }
.h2-panel-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255,255,255,.12);
}
.h2-panel-stats div { display: flex; flex-direction: column; }
.h2-panel-stats b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.h2-panel-stats span { font-size: 12px; color: var(--h2-mute); }

.h2-radar li {
    display: grid;
    grid-template-columns: 118px minmax(0,1fr) 56px;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}
.h2-radar-name { font-size: 13.5px; font-weight: 650; color: var(--h2-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-radar-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.h2-radar-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--h2-grad);
    transition: width 1.1s var(--h2-ease);
    transition-delay: var(--d, 0s);
}
.h2-radar-val { font-size: 13px; font-weight: 800; text-align: right; }

.h2-history li {
    display: grid;
    grid-template-columns: 4px minmax(0,1fr) auto auto;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px dashed rgba(255,255,255,.09);
}
.h2-history li:last-child { border-bottom: 0; }
.h2-history-bar { width: 4px; height: 34px; border-radius: 4px; background: var(--h2-mute); }
.h2-history-pass { background: var(--h2-green); box-shadow: 0 0 12px rgba(52,211,153,.6); }
.h2-history-fail { background: var(--h2-pink); }
.h2-history-main { display: flex; flex-direction: column; min-width: 0; }
.h2-history-main b { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-history-main small { font-size: 12px; color: var(--h2-mute); }
.h2-history-score { font-size: 15px; font-weight: 800; }
.h2-history-score.is-pass { color: var(--h2-green); }
.h2-history-score.is-fail { color: var(--h2-pink); }
.h2-history-link {
    width: 30px; height: 30px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--h2-panel);
    font-size: 18px;
    transition: background .25s ease, transform .25s ease;
}
.h2-history-link:hover { background: rgba(255,255,255,.14); transform: translateX(3px); }

/* ---------------- PODIUM ---------------- */
.h2-podium-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    align-items: end;
    perspective: 1000px;
}
.h2-podium-item { display: flex; flex-direction: column; justify-content: flex-end; }
.h2-podium-block {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 14px;
    border-radius: 20px;
    text-align: center;
    background: var(--h2-panel);
    box-shadow: inset 0 0 0 1px var(--h2-line);
    transform-style: preserve-3d;
    transition: transform .4s var(--h2-ease), box-shadow .4s var(--h2-ease);
}
.h2-podium-item:hover .h2-podium-block { box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 26px 50px rgba(0,0,0,.55); }
.h2-podium-block img { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 10px 24px rgba(0,0,0,.5); }
.h2-podium-name { font-size: 14.5px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-podium-score { font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.h2-podium-item small { font-size: 11.5px; color: var(--h2-mute); }
.h2-podium-1 .h2-podium-block {
    padding: 34px 16px;
    background: linear-gradient(160deg, rgba(251,191,36,.20), rgba(255,255,255,.04));
    box-shadow: inset 0 0 0 1px rgba(251,191,36,.35), 0 26px 60px rgba(251,191,36,.18);
}
.h2-podium-1 .h2-podium-block img { width: 70px; height: 70px; }
.h2-podium-2 .h2-podium-block { background: linear-gradient(160deg, rgba(203,213,225,.16), rgba(255,255,255,.04)); box-shadow: inset 0 0 0 1px rgba(203,213,225,.3); }
.h2-podium-3 .h2-podium-block { background: linear-gradient(160deg, rgba(251,146,60,.16), rgba(255,255,255,.04)); box-shadow: inset 0 0 0 1px rgba(251,146,60,.3); }
.h2-podium-item.is-me .h2-podium-block { box-shadow: inset 0 0 0 2px rgba(34,211,238,.7), 0 22px 50px rgba(34,211,238,.25); }
.h2-podium-item.is-me .h2-podium-name::after { content: " •"; color: var(--h2-cyan); }
.h2-rank-note { margin-top: 18px; text-align: center; color: var(--h2-soft); font-size: 14px; }

.h2-rank-cta {
    margin-top: 28px;
    padding: 44px 30px;
    border-radius: 26px;
    text-align: center;
    background: linear-gradient(140deg, rgba(34,211,238,.10), rgba(168,85,247,.10));
    box-shadow: inset 0 0 0 1px var(--h2-line);
}
.h2-rank-cta h3 { font-size: 22px; font-weight: 800; }
.h2-rank-cta p { margin: 8px auto 20px; max-width: 480px; color: var(--h2-soft); font-size: 14.5px; }

/* ---------------- STEPS ---------------- */
.h2-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    perspective: 1000px;
}
.h2-step {
    position: relative;
    padding: 30px 26px;
    border-radius: var(--h2-r);
    background: var(--h2-panel);
    box-shadow: inset 0 0 0 1px var(--h2-line);
    transform-style: preserve-3d;
    overflow: hidden;
    transition: transform .4s var(--h2-ease), box-shadow .4s var(--h2-ease);
}
.h2-step:hover { background: var(--h2-panel-2); }
.h2-step-idx {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 850;
    color: #05060f;
    background: var(--h2-grad);
    box-shadow: 0 10px 24px rgba(129,140,248,.35);
}
.h2-step h3 { margin-top: 16px; font-size: 19px; font-weight: 780; }
.h2-step p { margin-top: 8px; color: var(--h2-soft); font-size: 14px; }

/* ---------------- CTA ---------------- */
.h2-cta { position: relative; z-index: 2; padding: 40px 0 70px; }
.h2-cta-inner {
    position: relative;
    padding: 54px 34px;
    border-radius: 30px;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(130deg, rgba(34,211,238,.16), rgba(168,85,247,.16) 55%, rgba(244,114,182,.16)),
        rgba(255,255,255,.03);
    box-shadow: inset 0 0 0 1px var(--h2-line), 0 34px 80px rgba(0,0,0,.5);
    transform-style: preserve-3d;
    transition: transform .4s var(--h2-ease);
}
.h2-cta-inner h2 { font-size: clamp(26px, 4.4vw, 44px); font-weight: 850; letter-spacing: -.03em; line-height: 1.12; }
.h2-cta-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------------- FOOTER ---------------- */
.h2-footer { position: relative; z-index: 2; border-top: 1px solid var(--h2-line); background: rgba(0,0,0,.3); }
.h2-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    padding: 28px 22px;
}
.h2-footer-brand { display: flex; align-items: center; gap: 12px; }
.h2-footer-brand b { display: block; font-size: 15px; }
.h2-footer-brand small { display: block; font-size: 12px; color: var(--h2-mute); }
.h2-footer-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13.5px; color: var(--h2-soft); }
.h2-footer-links a:hover { color: var(--h2-cyan); }

/* ---------------- MODALS ---------------- */
.h2-modal {
    position: fixed;
    inset: 0;
    /* Above theme chrome (Astra sticky header, admin bar). */
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}
.h2-modal.is-open { opacity: 1; visibility: visible; }
.h2-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 4, 12, .78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.h2-modal-card {
    position: relative;
    width: 100%;
    max-width: 470px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 24px;
    background: linear-gradient(160deg, #10132a, #0a0c1c);
    box-shadow: inset 0 0 0 1px var(--h2-line), 0 40px 90px rgba(0,0,0,.7);
    transform: translateY(22px) scale(.97);
    transition: transform .4s var(--h2-ease);
}
.h2-modal.is-open .h2-modal-card { transform: none; }
.h2-modal-sm { max-width: 380px; text-align: center; }
.h2-modal-glyph { font-size: 40px; }
.h2-modal-sm h3 { font-size: 21px; font-weight: 800; margin-top: 8px; }
.h2-modal-sm p { margin-top: 8px; color: var(--h2-soft); font-size: 14px; }
.h2-modal-actions { margin-top: 22px; display: flex; gap: 12px; justify-content: center; }
.h2-modal-x {
    position: absolute;
    top: 14px; right: 16px;
    width: 34px; height: 34px;
    border: 0;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: var(--h2-soft);
    background: rgba(255,255,255,.07);
}
.h2-modal-x:hover { color: var(--h2-text); background: rgba(255,255,255,.14); }

.h2-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    margin-bottom: 24px;
}
.h2-tab {
    padding: 11px;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: var(--h2-soft);
    background: transparent;
    transition: background .3s ease, color .3s ease;
}
.h2-tab.is-active { color: #05060f; background: var(--h2-grad); }

.h2-modal-title { font-size: 22px; font-weight: 800; }
.h2-modal-sub { margin-top: 6px; font-size: 14px; color: var(--h2-soft); }

.h2-form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.h2-form[hidden] { display: none; }
.h2-field { display: flex; flex-direction: column; gap: 6px; }
.h2-field > span:first-child { font-size: 12.5px; font-weight: 700; color: var(--h2-soft); }
.h2-field input {
    height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: var(--h2-text);
    background: rgba(255,255,255,.06);
    box-shadow: inset 0 0 0 1px var(--h2-line);
    font-size: 14.5px;
    outline: none;
    width: 100%;
    transition: box-shadow .25s ease;
}
.h2-field input:focus { box-shadow: inset 0 0 0 1.5px rgba(34,211,238,.7); }
.h2-field input.is-error { box-shadow: inset 0 0 0 1.5px rgba(244,114,182,.8); }
.h2-pass { position: relative; display: block; }
.h2-pass input { padding-right: 46px; }
.h2-pass-toggle {
    position: absolute;
    right: 6px; top: 50%;
    transform: translateY(-50%);
    width: 34px; height: 34px;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    background: rgba(255,255,255,.07);
}
.h2-form-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.h2-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--h2-soft); }
.h2-strength { display: block; height: 5px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.h2-strength i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--h2-green); transition: width .35s var(--h2-ease), background .35s ease; }
.h2-strength-text { font-size: 11.5px; color: var(--h2-mute); }
.h2-form-msg { display: none; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; background: rgba(244,114,182,.14); color: #ffd7e6; }
.h2-form-msg.is-shown { display: block; }
.h2-form-msg.is-success { background: rgba(52,211,153,.14); color: #c7f9e6; }
.h2-form-msg.is-info { background: rgba(96,165,250,.16); color: #dbeafe; }
.h2-btn-label { display: inline-block; }
.h2-btn.loading { opacity: .7; pointer-events: none; }

/* ---------------- scroll reveal ---------------- */
.h2-app [data-h2-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s var(--h2-ease), transform .8s var(--h2-ease);
}
.h2-app [data-h2-reveal].is-in { opacity: 1; transform: none; }
.h2-app [data-h2-reveal][style*="--d"] { transition-delay: var(--d); }

/* ---------------- parallax (JS driven) ---------------- */
.h2-stage .h2-hud[data-h2-tilt] { will-change: transform; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
    .h2-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .h2-stage { --h2-scene: 340px; --h2-scene-h: 290px; order: -1; }
    .h2-bento { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .h2-tile-hero { grid-column: span 2; grid-row: auto; }
    .h2-progress-grid { grid-template-columns: 1fr; }
    .h2-progress-grid .h2-panel:last-child { grid-column: auto; }
    .h2-nav-links { display: none; }
    .h2-filters { grid-template-columns: 1fr; }
    .h2-selects { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 720px) {
    .h2-wrap { padding: 0 16px; }
    .h2-hero { padding-top: 24px; }
    .h2-nav-inner { gap: 10px; }
    .h2-brand-text { display: none; }
    .h2-btn-sm { padding: 9px 14px; font-size: 12.5px; }
    .h2-user-chip { padding: 5px 12px 5px 5px; }
    .h2-user-chip-text small { display: none; }
    .h2-stage { --h2-scene: 300px; --h2-scene-h: 250px; gap: 14px; }
    .h2-hud-row { gap: 10px; }
    .h2-hud-score, .h2-hud-streak { flex: 1 1 100%; }
    .h2-orbit-chip-3, .h2-orbit-chip-4 { display: none; }
    .h2-bento { grid-template-columns: 1fr; }
    .h2-tile-hero { grid-column: auto; }
    .h2-selects { grid-template-columns: 1fr; }
    .h2-panel-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .h2-radar li { grid-template-columns: 92px minmax(0,1fr) 48px; }
    .h2-hero-facts { gap: 22px; }
    .h2-resume { padding: 22px; }
    .h2-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .h2-stage { --h2-scene: 250px; --h2-scene-h: 215px; }
    .h2-orbit-chip { font-size: 10.5px; padding: 5px 10px; }
    .h2-orbit-chip-1 { top: 0; left: 0; }
    .h2-orbit-chip-2 { top: 8%; right: 0; }
    .h2-hud { padding: 12px 15px; }
    .h2-hud-big b { font-size: 25px; }
    .h2-ring-sm { width: 46px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
    .h2-app *,
    .h2-app *::before,
    .h2-app *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .h2-app [data-h2-reveal] { opacity: 1; transform: none; }
    .h2-tile-bars i { transform: scaleY(1); }
}

/* =============================================================
   Social Auth (Google) — divider + branded button
   ============================================================= */
.h2-social-divider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 6px 0 2px;
    color: var(--h2-mute);
    user-select: none;
}
.h2-social-divider::before,
.h2-social-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,.14) 50%,
        transparent 100%
    );
}
.h2-social-divider span {
    flex: 0 0 auto;
    display: inline-block;
    padding: 4px 14px;
    font-size: 11.5px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #05060f;
    background: var(--h2-grad);
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(129,140,248,.28);
}

.h2-google-btn {
    --h2-google-shadow:
        0 1px 2px rgba(0,0,0,.10),
        0 6px 18px rgba(0,0,0,.16),
        0 0 0 1px rgba(255,255,255,.55) inset;

    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    color: #1f2937;
    background: #ffffff;
    box-shadow: var(--h2-google-shadow);
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    outline: none;
    transform: translateY(0) translateZ(0);
    transition:
        transform .25s var(--h2-ease),
        box-shadow .25s var(--h2-ease),
        background-color .25s ease,
        color .25s ease,
        opacity .2s ease;
}
.h2-google-btn::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 13px;
    padding: 1px;
    background: linear-gradient(130deg, rgba(34,211,238,0), rgba(168,85,247,0), rgba(244,114,182,0));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    transition: background .3s ease;
}
.h2-google-btn:hover {
    transform: translateY(-1px);
    background: #fbfbfd;
    box-shadow:
        0 2px 4px rgba(0,0,0,.12),
        0 12px 26px rgba(0,0,0,.22),
        0 0 0 1px rgba(255,255,255,.75) inset;
}
.h2-google-btn:hover::after {
    background: linear-gradient(130deg, rgba(34,211,238,.65), rgba(168,85,247,.55) 55%, rgba(244,114,182,.6));
}
.h2-google-btn:focus-visible {
    box-shadow:
        0 0 0 3px rgba(34,211,238,.35),
        var(--h2-google-shadow);
}
.h2-google-btn:active {
    transform: translateY(0) scale(.985);
    background: #f3f4f8;
}
.h2-google-btn.loading,
.h2-google-btn[disabled] {
    pointer-events: none;
    cursor: wait;
    opacity: .82;
    transform: none;
}
.h2-google-btn.loading::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 50%;
    border: 2px solid rgba(31,41,55,.18);
    border-top-color: #1976d2;
    animation: h2-google-spin .8s linear infinite;
}
@keyframes h2-google-spin {
    to { transform: rotate(360deg); }
}

.h2-google-icon {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    display: block;
}
.h2-google-label {
    flex: 0 1 auto;
    display: inline-block;
}
.h2-google-btn.loading .h2-google-icon { opacity: 0; }

@media (max-width: 540px) {
    .h2-social-divider { margin: 2px 0 0; }
    .h2-social-divider span { font-size: 10.5px; padding: 4px 12px; }
    .h2-google-btn { min-height: 46px; font-size: 14px; gap: 10px; padding: 0 14px; }
    .h2-google-icon { width: 18px; height: 18px; }
    .h2-google-btn.loading::before { left: 14px; }
}
