/* =============================================================================
   pages/quick-guide.css
   ----
   Loaded by: quick_guide.html
   All selectors are scoped under `.qg-page` so styles never leak.

   Concept: a 7-step luxury timeline with sticky aside nav + animated markers.

   Sections:
     1. Page wrapper + atmospheric background
     2. Hero (kicker, title, lead, actions, visual seal, stats)
     3. Timeline layout (sticky aside + main column with vertical spine)
     4. Step markers + step cards (head, body)
     5. Step content elements (chips, bullets, callout, quote, mini-cards, features)
     6. Final certificate showcase
     7. Help note (bottom)
     8. Reveal animations
   ========================================================================== */

/* =============================================================================
   1. WRAPPER + ATMOSPHERIC BACKGROUND
   ========================================================================== */
.qg-page {
    position: relative;
    overflow: hidden;
    padding: 50px 0 80px;
}

.qg-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.qg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .4;
}
.qg-glow--gold {
    width: 500px; height: 400px;
    top: 0; right: -10%;
    background: radial-gradient(circle, rgba(255, 194, 24, .35), transparent 65%);
}
.qg-glow--navy {
    width: 600px; height: 500px;
    bottom: 5%; left: -8%;
    background: radial-gradient(circle, rgba(65, 84, 173, .35), transparent 65%);
}
.qg-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 1200px 800px at 50% 30%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 1200px 800px at 50% 30%, black 30%, transparent 70%);
    opacity: .55;
}
.qg-container { position: relative; z-index: 1; }

/* =============================================================================
   2. HERO
   ========================================================================== */
.qg-hero { margin-bottom: 50px; }

.qg-breadcrumbs {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px;
    padding: 7px 14px;
    margin: 0 0 22px;
    border-radius: var(--r-pill);
    background: var(--surface-1);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
    font-size: .8rem;
    color: var(--ink-muted);
}
.qg-breadcrumbs a {
    color: var(--ink-soft);
    text-decoration: none;
    padding: 2px 6px;
    transition: color var(--t-fast);
}
.qg-breadcrumbs a:hover { color: var(--gold-300); }
.qg-bc-sep { color: var(--ink-faint); }
.qg-breadcrumbs [aria-current] { color: var(--gold-300); font-weight: 700; }

.qg-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 40px;
}
@media (max-width: 980px) {
    .qg-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .qg-hero-visual { order: 2; max-width: 460px; margin: 0 auto; }
}

.qg-hero-text { min-width: 0; }

.qg-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    background: rgba(255, 194, 24, .10);
    border: 1px solid var(--gold-line);
    color: var(--gold-300);
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}
.qg-kicker-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold-500);
    box-shadow: 0 0 0 4px rgba(255, 194, 24, .22), 0 0 14px rgba(255, 194, 24, .55);
}

.qg-h1 {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 900;
    line-height: 1.25;
    color: var(--ink-white);
    letter-spacing: -.012em;
    margin: 0 0 18px;
}
.qg-h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}

.qg-lead {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 2;
    margin: 0 0 24px;
    padding-right: 14px;
    border-right: 3px solid var(--gold-500);
    max-width: 64ch;
}

.qg-hero-actions {
    display: flex; flex-wrap: wrap; gap: 12px;
}
.qg-btn-primary,
.qg-btn-ghost {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 26px;
    border-radius: var(--r-pill);
    font-weight: 800;
    font-size: .92rem;
    text-decoration: none;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.qg-btn-primary {
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500), var(--gold-600));
    color: var(--navy-900);
    box-shadow: var(--shadow-gold);
    border: none;
    position: relative; overflow: hidden;
}
.qg-btn-primary::before {
    content: ""; position: absolute; top: 0; bottom: 0; left: -85%; width: 50%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-22deg); transition: left .85s ease; pointer-events: none;
}
.qg-btn-primary:hover { transform: translateY(-2px); }
.qg-btn-primary:hover::before { left: 130%; }
.qg-btn-primary--large {
    padding: 16px 32px;
    font-size: 1rem;
}

.qg-btn-ghost {
    background: var(--surface-2);
    color: var(--ink-white);
    border: 1.5px solid var(--line-strong);
    backdrop-filter: blur(8px);
}
.qg-btn-ghost:hover {
    transform: translateY(-1px);
    border-color: var(--gold-line);
    color: var(--gold-300);
    background: var(--surface-gold);
}

/* — Hero visual: certificate seal with orbits — */
.qg-hero-visual {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    max-width: 460px;
    justify-self: center;
}

.qg-orbit {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%; height: 90%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 194, 24, .22);
    animation: qgOrbitRotate 80s linear infinite;
    pointer-events: none;
}
.qg-orbit::before {
    content: "";
    position: absolute; top: -5px; left: 50%;
    transform: translateX(-50%);
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--gold-400);
    box-shadow: 0 0 18px rgba(255, 194, 24, .85);
}
.qg-orbit--inner {
    width: 70%; height: 70%;
    border-color: rgba(91, 103, 166, .25);
    animation: qgOrbitRotate 60s linear infinite reverse;
}
@keyframes qgOrbitRotate { to { transform: translate(-50%, -50%) rotate(360deg); } }

.qg-seal {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 240px; height: 240px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 211, 74, .25), transparent 60%),
        linear-gradient(135deg, var(--navy-700), var(--navy-900));
    border: 2px solid rgba(255, 194, 24, .35);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, .55),
        0 0 0 6px rgba(255, 194, 24, .08),
        0 0 60px rgba(255, 194, 24, .15);
    display: grid; place-items: center;
    text-align: center;
    color: var(--ink-white);
    z-index: 2;
    animation: qgSealFloat 6s ease-in-out infinite;
}
@keyframes qgSealFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50%      { transform: translate(-50%, -50%) translateY(-6px); }
}
.qg-seal-inner { padding: 18px; }
.qg-seal-icon {
    color: var(--gold-300);
    font-size: 2.4rem;
    margin-bottom: 8px;
    text-shadow: 0 0 18px rgba(255, 194, 24, .6);
}
.qg-seal-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--ink-white);
    line-height: 1.1;
}
.qg-seal-sub {
    font-size: .82rem;
    color: var(--gold-300);
    margin-top: 4px;
    font-weight: 700;
}
.qg-seal-ribbon {
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    width: 50px; height: 18px;
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    clip-path: polygon(0 0, 100% 0, 90% 100%, 50% 80%, 10% 100%);
    box-shadow: 0 4px 14px rgba(255, 194, 24, .35);
}

.qg-float {
    position: absolute;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px;
    border-radius: var(--r-pill);
    background: linear-gradient(180deg, rgba(28, 36, 71, .85), rgba(19, 25, 50, .85));
    border: 1px solid var(--line-strong);
    backdrop-filter: blur(10px);
    color: var(--ink-white);
    font-size: .78rem;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .45);
    z-index: 3;
    animation: qgFloatFloat 5s ease-in-out infinite;
    white-space: nowrap;
}
@keyframes qgFloatFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}
.qg-float i { color: var(--gold-300); font-size: .92em; }
.qg-float--1 { top: 10%; right: -2%; animation-delay: 0s; }
.qg-float--2 { bottom: 14%; right: 0; animation-delay: 1s; }
.qg-float--3 { top: 14%; left: 0; animation-delay: 1.8s; }

/* — Stats bar — */
.qg-stats {
    list-style: none; padding: 0; margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 22px 28px;
    border-radius: var(--r-lg);
    background: var(--surface-1);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
}
@media (max-width: 720px) {
    .qg-stats { grid-template-columns: repeat(2, 1fr); padding: 18px 20px; }
}

.qg-stat {
    text-align: center;
    padding: 6px;
    border-radius: var(--r);
    transition: background var(--t-fast);
}
.qg-stat-num {
    display: block;
    font-family: var(--ff-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold-300);
    line-height: 1.1;
}
.qg-stat-label {
    display: block;
    font-size: .78rem;
    color: var(--ink-muted);
    margin-top: 4px;
    font-weight: 600;
}

/* =============================================================================
   3. TIMELINE LAYOUT
   ========================================================================== */
.qg-timeline-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    align-items: start;
}
@media (max-width: 980px) {
    .qg-timeline-wrap { grid-template-columns: 1fr; gap: 22px; }
    .qg-aside { display: none; }
}

/* — Sticky aside (desktop) — */
.qg-aside { position: sticky; top: 100px; }
.qg-aside-card {
    padding: 22px 18px;
    border-radius: var(--r-lg);
    background: var(--surface-1);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
}
.qg-aside-head {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .9rem;
    font-weight: 800;
    color: var(--ink-white);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    width: 100%;
    position: relative;
}
.qg-aside-head i { color: var(--gold-400); }
.qg-aside-head::after {
    content: ""; position: absolute;
    bottom: -1px; right: 0;
    width: 28px; height: 2px;
    background: linear-gradient(90deg, var(--gold-500), transparent);
}

.qg-step-nav {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 4px;
}
.qg-step-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r);
    color: var(--ink-soft);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--t-fast);
    border: 1px solid transparent;
}
.qg-step-link:hover {
    color: var(--gold-300);
    background: var(--surface-gold);
}
.qg-step-link.is-active {
    color: var(--gold-300);
    background: var(--surface-gold);
    border-color: var(--gold-line);
}
.qg-step-link-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .76rem; font-weight: 800;
    flex-shrink: 0;
    color: var(--ink-soft);
    transition: all var(--t-fast);
}
.qg-step-link.is-active .qg-step-link-num,
.qg-step-link:hover .qg-step-link-num {
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    color: var(--navy-900);
    border-color: transparent;
}

.qg-aside-progress {
    margin-top: 14px;
    height: 4px;
    border-radius: 2px;
    background: var(--surface-2);
    overflow: hidden;
}
.qg-aside-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
    width: 0;
    transition: width var(--t);
    border-radius: 2px;
}

/* =============================================================================
   4. TIMELINE MAIN  +  STEP MARKERS  +  CARDS
   ========================================================================== */
.qg-timeline {
    position: relative;
    padding-right: 50px;
}
@media (max-width: 980px) {
    .qg-timeline { padding-right: 50px; }
}
@media (max-width: 560px) {
    .qg-timeline { padding-right: 40px; }
}

/* Vertical spine */
.qg-spine {
    position: absolute;
    top: 24px; bottom: 24px;
    right: 18px;
    width: 2px;
    background: linear-gradient(180deg,
        rgba(255, 194, 24, 0) 0%,
        rgba(255, 194, 24, .35) 8%,
        rgba(91, 103, 166, .35) 50%,
        rgba(255, 194, 24, .35) 92%,
        rgba(255, 194, 24, 0) 100%);
    border-radius: 2px;
}

.qg-step {
    position: relative;
    margin-bottom: 28px;
    scroll-margin-top: 110px;
}
.qg-step:last-child { margin-bottom: 0; }

.qg-marker {
    position: absolute;
    top: 14px;
    right: -50px;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    color: var(--navy-900);
    font-weight: 900;
    box-shadow: var(--shadow-gold);
    z-index: 2;
    border: 3px solid var(--navy-deep);
}
@media (max-width: 560px) { .qg-marker { right: -40px; width: 30px; height: 30px; } }

.qg-marker-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 194, 24, .4), transparent 60%);
    filter: blur(6px);
    opacity: 0;
    animation: qgMarkerGlow 3s ease-in-out infinite;
}
@keyframes qgMarkerGlow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.1); }
}
.qg-marker-num {
    position: absolute;
    font-size: .85rem;
    line-height: 1;
}
.qg-marker i {
    position: absolute;
    font-size: .85rem;
    opacity: 0;
    transition: opacity var(--t-fast);
}
.qg-step:hover .qg-marker-num { opacity: 0; }
.qg-step:hover .qg-marker i { opacity: 1; }

/* — Card — */
.qg-card {
    padding: 26px 28px 24px;
    border-radius: var(--r-lg);
    background: var(--surface-1);
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--t-fast);
}
.qg-card:hover { border-color: var(--gold-line); }

.qg-card--final {
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 194, 24, .08), transparent 50%),
        var(--surface-1);
    border-color: var(--gold-line);
}

.qg-card-head { margin-bottom: 16px; }
.qg-card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    font-size: .72rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.qg-card-tag--gold {
    background: var(--surface-gold);
    border-color: var(--gold-line);
    color: var(--gold-300);
}
.qg-card-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--ink-white);
    margin: 0;
    line-height: 1.4;
}

.qg-card-body {
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.95;
}
.qg-card-body p {
    margin: 0 0 1.1em;
    color: var(--ink-soft);
}
.qg-card-body p:last-child { margin-bottom: 0; }
.qg-card-body strong { color: var(--gold-300); font-weight: 800; }

.qg-muted {
    color: var(--ink-muted) !important;
    font-size: .88rem;
}

/* =============================================================================
   5. STEP CONTENT ELEMENTS
   ========================================================================== */

/* — Chips (clickable links shown in steps) — */
.qg-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}
.qg-chips--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
    .qg-chips,
    .qg-chips--three { grid-template-columns: 1fr; }
}

.qg-chip {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border-radius: var(--r);
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    color: var(--ink-soft);
    text-decoration: none;
    transition: all var(--t-fast);
}
.qg-chip:hover {
    border-color: var(--gold-line);
    background: var(--surface-gold);
    transform: translateY(-2px);
}
.qg-chip-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: grid; place-items: center;
    background: var(--surface-gold);
    color: var(--gold-300);
    font-size: 1rem;
    flex-shrink: 0;
}
.qg-chip:hover .qg-chip-icon {
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    color: var(--navy-900);
}
.qg-chip-text {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 2px;
}
.qg-chip-text strong {
    color: var(--ink-white);
    font-size: .92rem;
    font-weight: 800;
}
.qg-chip-text span {
    color: var(--ink-muted);
    font-size: .78rem;
}
.qg-chip-arrow {
    color: var(--gold-300);
    font-size: 1rem;
    transition: transform var(--t-fast);
    flex-shrink: 0;
}
.qg-chip:hover .qg-chip-arrow { transform: translateX(-3px); }

/* — Bullet list (checkmark style) — */
.qg-bullets {
    list-style: none; padding: 0; margin: 12px 0;
    display: flex; flex-direction: column; gap: 8px;
}
.qg-bullets li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px;
    border-radius: var(--r);
    background: var(--surface-1);
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: .9rem;
    line-height: 1.85;
    transition: border-color var(--t-fast);
}
.qg-bullets li:hover { border-color: var(--gold-line); }
.qg-bullets li i {
    color: var(--gold-400);
    font-size: 1em;
    margin-top: 5px;
    flex-shrink: 0;
}
.qg-bullets li strong { color: var(--ink-white); font-weight: 800; }

/* — Callout box (info note) — */
.qg-callout {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 18px;
    border-radius: var(--r);
    background: linear-gradient(135deg, rgba(255, 194, 24, .06), rgba(65, 84, 173, .06));
    border: 1px solid var(--gold-line);
    color: var(--ink-soft);
    margin: 14px 0;
}
.qg-callout i {
    color: var(--gold-400);
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}
.qg-callout strong { color: var(--gold-300); font-weight: 800; }
.qg-callout p { margin: 0; font-size: .9rem; line-height: 1.85; }

/* — Quote block — */
.qg-quote {
    margin: 16px 0;
    padding: 16px 22px;
    border-right: 4px solid var(--gold-500);
    background: var(--surface-1);
    color: var(--ink-soft);
    font-style: italic;
    border-radius: 0 var(--r) var(--r) 0;
    font-size: .92rem;
    line-height: 1.95;
}

/* — Mini-cards (small horizontal cards inside steps) — */
.qg-mini-card {
    /* display: flex; */
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--r);
    background: var(--surface-1);
    border: 1px solid var(--line);
    margin: 10px 0;
    transition: all var(--t-fast);
}
.qg-mini-card:hover {
    border-color: var(--gold-line);
    background: var(--surface-2);
}
.qg-mini-card--gold {
    background: var(--surface-gold);
    border-color: var(--gold-line);
}
.qg-mini-card-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: var(--surface-gold);
    color: var(--gold-300);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.qg-mini-card-head {flex: 1;width: 100px !important;}
.qg-mini-card-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    background: var(--surface-gold);
    border: 1px solid var(--gold-line);
    color: var(--gold-300);
    font-size: .72rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.qg-mini-card-tag--neutral {
    background: var(--surface-2);
    border-color: var(--line-strong);
    color: var(--ink-soft);
}

/* — 2-column card layout — */
.qg-cards-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 14px;
}
@media (max-width: 720px) { .qg-cards-2 { grid-template-columns: 1fr; } }

/* — Feature grid — */
.qg-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}
@media (max-width: 720px) { .qg-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .qg-feature-grid { grid-template-columns: 1fr; } }

.qg-feature {
    padding: 16px 14px;
    border-radius: var(--r);
    background: var(--surface-1);
    border: 1px solid var(--line);
    text-align: center;
    transition: all var(--t-fast);
}
.qg-feature:hover {
    border-color: var(--gold-line);
    transform: translateY(-2px);
}
.qg-feature-icon {
    color: var(--gold-300);
    font-size: 1.6rem;
    margin-bottom: 8px;
    text-shadow: 0 0 14px rgba(255, 194, 24, .35);
}

/* =============================================================================
   6. CERTIFICATE SHOWCASE  (Step 7)
   ========================================================================== */
.qg-cert {
    margin: 20px 0;
    text-align: center;
}
.qg-cert-frame {
    position: relative;
    display: inline-block;
    padding: 18px;
    background: linear-gradient(135deg,
        rgba(255, 194, 24, .14) 0%,
        rgba(255, 211, 74, .06) 50%,
        rgba(255, 194, 24, .14) 100%);
    border: 1px solid var(--gold-line);
    border-radius: var(--r-lg);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, .55),
        0 0 0 1px rgba(255, 194, 24, .14) inset;
    overflow: hidden;
}
.qg-cert-frame img {
    max-width: 100%;
    border-radius: var(--r);
    display: block;
}

.qg-cert-corner {
    position: absolute;
    width: 22px; height: 22px;
    border: 2px solid var(--gold-400);
    z-index: 2;
}
.qg-cert-corner--tl { top: 6px; left: 6px; border-right: none; border-bottom: none; border-radius: 4px 0 0 0; }
.qg-cert-corner--tr { top: 6px; right: 6px; border-left: none; border-bottom: none; border-radius: 0 4px 0 0; }
.qg-cert-corner--bl { bottom: 6px; left: 6px; border-right: none; border-top: none; border-radius: 0 0 0 4px; }
.qg-cert-corner--br { bottom: 6px; right: 6px; border-left: none; border-top: none; border-radius: 0 0 4px 0; }

.qg-cert-shine {
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
    transform: skewX(-22deg);
    pointer-events: none;
    animation: qgCertShine 4s ease-in-out infinite;
}
@keyframes qgCertShine {
    0%, 100% { left: -100%; }
    50%      { left: 100%; }
}

.qg-cert-caption {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: .85rem;
    display: inline-flex; align-items: center; gap: 6px;
}
.qg-cert-caption i { color: var(--gold-400); }

.qg-final-cta {
    margin-top: 24px;
    text-align: center;
}

/* =============================================================================
   7. HELP NOTE  (bottom of page)
   ========================================================================== */
.qg-help {
    display: flex; align-items: center; gap: 16px;
    flex-wrap: wrap;
    margin-top: 50px;
    padding: 22px 26px;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg,
        rgba(65, 84, 173, .14),
        rgba(28, 36, 71, .35));
    border: 1px solid var(--line);
    backdrop-filter: blur(6px);
}
.qg-help-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: var(--surface-gold);
    color: var(--gold-300);
    font-size: 1.5rem;
    flex-shrink: 0;
}
.qg-help-text {
    flex: 1; min-width: 200px;
}
.qg-help-text strong {
    display: block;
    color: var(--ink-white);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 2px;
}
.qg-help-text p {
    margin: 0;
    color: var(--ink-muted);
    font-size: .85rem;
}
.qg-help-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 22px;
    border-radius: var(--r-pill);
    background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
    color: var(--navy-900);
    font-weight: 800;
    font-size: .9rem;
    text-decoration: none;
    box-shadow: var(--shadow-gold);
    transition: transform var(--t-fast);
}
.qg-help-cta:hover { transform: translateY(-2px); }

/* =============================================================================
   8. REVEAL ANIMATIONS  (uses .is-revealed class added by JS)
   ========================================================================== */
.qg-step,
.qg-stat,
.qg-feature,
.qg-mini-card,
.qg-chip {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s var(--t-slow), transform .8s var(--t-slow);
}
.qg-step.is-revealed,
.qg-stat.is-revealed,
.qg-feature.is-revealed,
.qg-mini-card.is-revealed,
.qg-chip.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* No-JS fallback */
.no-js .qg-step,
.no-js .qg-stat,
.no-js .qg-feature,
.no-js .qg-mini-card,
.no-js .qg-chip {
    opacity: 1;
    transform: none;
}

/* =============================================================================
   9. LIGHT-MODE OVERRIDES
   ========================================================================== */
[data-theme="light"] .qg-glow--gold {
    background: radial-gradient(circle, rgba(255, 194, 24, .25), transparent 65%);
}
[data-theme="light"] .qg-glow--navy {
    background: radial-gradient(circle, rgba(65, 84, 173, .14), transparent 65%);
}
[data-theme="light"] .qg-grid {
    background-image:
        linear-gradient(rgba(28, 36, 71, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 36, 71, .025) 1px, transparent 1px);
    opacity: .8;
}
[data-theme="light"] .qg-kicker { color: var(--gold-700); }
[data-theme="light"] .qg-stat-num { color: var(--gold-700); }
[data-theme="light"] .qg-card-body strong { color: var(--gold-700); }
[data-theme="light"] .qg-bullets li strong { color: var(--navy-900); }
[data-theme="light"] .qg-bullets li i,
[data-theme="light"] .qg-feature-icon { color: var(--gold-600); }
[data-theme="light"] .qg-callout strong { color: var(--gold-700); }
[data-theme="light"] .qg-callout i { color: var(--gold-700); }
[data-theme="light"] .qg-mini-card-icon,
[data-theme="light"] .qg-chip-icon { color: var(--gold-700); }
[data-theme="light"] .qg-chip-text strong { color: var(--navy-900); }
[data-theme="light"] .qg-chip-arrow { color: var(--gold-700); }
[data-theme="light"] .qg-mini-card-tag { color: var(--gold-700); }
[data-theme="light"] .qg-aside-head i { color: var(--gold-700); }
[data-theme="light"] .qg-step-link.is-active,
[data-theme="light"] .qg-step-link:hover { color: var(--gold-700); }
[data-theme="light"] .qg-card--final {
    background: radial-gradient(circle at 100% 0%, rgba(255, 194, 24, .12), transparent 50%), var(--surface-2);
}
[data-theme="light"] .qg-help {
    background: linear-gradient(135deg, rgba(255, 194, 24, .08), rgba(255, 255, 255, .8));
}
[data-theme="light"] .qg-help-text strong { color: var(--navy-900); }
[data-theme="light"] .qg-help-icon { color: var(--gold-700); }
[data-theme="light"] .qg-cert-frame {
    background: linear-gradient(135deg,
        rgba(255, 194, 24, .14) 0%,
        rgba(255, 211, 74, .04) 50%,
        rgba(255, 194, 24, .14) 100%);
    box-shadow:
        0 30px 70px rgba(28, 36, 71, .15),
        0 0 0 1px rgba(255, 194, 24, .25) inset;
}
[data-theme="light"] .qg-seal {
    /* Keep the seal dark — luxe contrast element */
}
[data-theme="light"] .qg-float {
    background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .82));
    border-color: rgba(28, 36, 71, .14);
    color: var(--navy-900);
    box-shadow: 0 14px 30px rgba(28, 36, 71, .14);
}
[data-theme="light"] .qg-float i { color: var(--gold-700); }
[data-theme="light"] .qg-cert-caption i { color: var(--gold-700); }
[data-theme="light"] .qg-h1 em {
    background: linear-gradient(135deg, var(--gold-600), var(--gold-700));
    -webkit-background-clip: text; background-clip: text;
}
/* ============== LIGHT THEME — qg-seal soft adaptation ============== */
[data-theme="light"] .qg-seal {
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 211, 74, .25), transparent 60%),
        linear-gradient(135deg, #ffffff, #f1f4fa);
    border: 2px solid rgba(255, 194, 24, .55);
    box-shadow:
        0 30px 70px rgba(28, 36, 71, .15),
        0 0 0 6px rgba(255, 194, 24, .10),
        0 0 60px rgba(255, 194, 24, .12);
    color: var(--navy-900);
}
[data-theme="light"] .qg-seal-title { color: var(--navy-900); }
[data-theme="light"] .qg-seal-sub { color: var(--gold-700); }

[data-theme="light"] .qg-float {
    background: linear-gradient(180deg, #ffffff, #f5f7fc);
    border-color: rgba(28, 36, 71, .12);
    color: var(--navy-900);
    box-shadow: 0 8px 20px rgba(28, 36, 71, .10);
}