/* App Pages — Dashboard, Practice, Payment, Review */

/* ─── SKILL PICKER GRID ───────────────────────────────── */
.skill-grid,
.skill-picker-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.85rem;
    margin-bottom: 2rem;
}
.skill-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.1rem 1.1rem;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s, border-color 0.22s;
    position: relative;
    overflow: hidden;
    min-height: 148px;
    border: 1px solid transparent;
}
.skill-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 16px 0 0 16px;
}
.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}
.skill-card.is-active {
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.25), 0 8px 24px rgba(109, 40, 217, 0.12);
}
.skill-card.is-locked {
    opacity: 0.72;
    filter: grayscale(0.15);
}
.skill-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: transform 0.22s;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.skill-card:hover .skill-icon-wrap { transform: scale(1.05); }
.skill-card h3 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.15rem;
    letter-spacing: -0.02em;
}
.skill-card p {
    font-size: 0.76rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}
.skill-arrow {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    padding-top: 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand);
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}
.skill-card:hover .skill-arrow {
    opacity: 1;
    transform: translateX(3px);
}
.skill-lock-tag {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.18rem 0.45rem;
    border-radius: 9999px;
    background: rgba(249, 115, 22, 0.14);
    color: #c2410c;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

/* Per-skill tinted cards */
.skill-reading {
    background: linear-gradient(155deg, #eef2ff 0%, #fff 65%);
    border-color: rgba(79, 70, 229, 0.14) !important;
}
.skill-reading::after { background: #4f46e5; }
.skill-reading .skill-icon-wrap { background: #fff; color: #4f46e5; }

.skill-listening {
    background: linear-gradient(155deg, #f5f3ff 0%, #fff 65%);
    border-color: rgba(124, 58, 237, 0.14) !important;
}
.skill-listening::after { background: #7c3aed; }
.skill-listening .skill-icon-wrap { background: #fff; color: #7c3aed; }

.skill-writing {
    background: linear-gradient(155deg, #fff7ed 0%, #fff 65%);
    border-color: rgba(234, 88, 12, 0.14) !important;
}
.skill-writing::after { background: #ea580c; }
.skill-writing .skill-icon-wrap { background: #fff; color: #ea580c; }

.skill-speaking {
    background: linear-gradient(155deg, #fff1f2 0%, #fff 65%);
    border-color: rgba(225, 29, 72, 0.14) !important;
}
.skill-speaking::after { background: #e11d48; }
.skill-speaking .skill-icon-wrap { background: #fff; color: #e11d48; }

.skill-grammar {
    background: linear-gradient(155deg, #eff6ff 0%, #fff 65%);
    border-color: rgba(14, 165, 233, 0.14) !important;
}
.skill-grammar::after { background: #0284c7; }
.skill-grammar .skill-icon-wrap { background: #fff; color: #0284c7; }

.skill-card.glass-card {
    backdrop-filter: none;
}

@media (max-width: 1100px) {
    .skill-grid,
    .skill-picker-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 700px) {
    .skill-grid,
    .skill-picker-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ─── PRACTICE PAGE ───────────────────────────────────── */
.practice-page-header {
    align-items: center;
}
.practice-tab-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}
.practice-tab-panels { margin-top: 0.5rem; }
.practice-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.back-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}
.back-link:hover { text-decoration: underline; }
.practice-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    background: var(--brand-dim);
    color: var(--brand);
}

/* Exam cards grid */
.exam-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.exam-card {
    padding: 1.25rem;
    border-radius: var(--r-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    transition: all 0.25s var(--ease-out);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.exam-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(109, 40, 217, 0.15);
}
.exam-card-title { font-weight: 700; font-size: 0.95rem; }
.exam-card-meta { font-size: 0.78rem; color: var(--muted); }

/* ─── PAYMENT ─────────────────────────────────────────── */
.payment-page {
    max-width: 720px;
    margin: 0 auto;
}
.payment-status-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.payment-action-card,
.payment-status-main {
    padding: 2rem;
    border-radius: var(--r-xl);
    background: linear-gradient(165deg, #ffffff 0%, #faf8ff 55%, #f5f9ff 100%);
    border: 1px solid rgba(109, 40, 217, 0.1);
    box-shadow: var(--shadow-sm);
}
.payment-status-head { margin-bottom: 1.5rem; }
.payment-product-title,
.payment-status-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0.25rem 0;
    color: var(--text);
}
.payment-order-code {
    font-size: 0.85rem;
    color: var(--muted);
}
.payment-order-code strong {
    color: var(--brand-dark);
    font-family: ui-monospace, monospace;
}
.payment-status-product {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 1.1rem 1.35rem;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.1), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(109, 40, 217, 0.12);
    border-radius: var(--r-lg);
}
.payment-status-product strong {
    font-size: 1.05rem;
    color: var(--text);
}
.payment-status-type {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand);
}
.payment-status-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand);
    margin-left: auto;
}
.payment-status-meta { font-size: 0.85rem; }
.payment-status-badge-wrap { margin-bottom: 0.75rem; }
.payment-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.payment-status-badge.is-pending {
    background: rgba(249, 115, 22, 0.1);
    color: #c2410c;
    border-color: rgba(249, 115, 22, 0.2);
}
.payment-status-badge.is-paid,
.payment-status-badge.is-success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.22);
}
.payment-live-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #f97316;
    animation: pulse-dot 1.5s ease-in-out infinite;
}
.payment-live-hint {
    font-size: 0.875rem;
    color: #475569;
    padding: 0.85rem 1.1rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(109, 40, 217, 0.06));
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: var(--r);
    margin-bottom: 1rem;
}
.payment-live-hint strong { color: var(--brand-dark); }
.payment-live-hint--bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1.25rem;
    margin-bottom: 0;
    text-align: left;
    font-size: 0.82rem;
    border-radius: var(--r-lg);
}
.payment-live-hint--bottom p {
    margin: 0;
    line-height: 1.5;
}
.payment-live-hint--bottom .payment-live-dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
}
.payment-phase-desc {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1rem;
}
.payment-callout {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(109, 40, 217, 0.06));
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: var(--r);
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 1rem;
}
.payment-callout svg { flex-shrink: 0; color: var(--accent); margin-top: 0.1rem; }
.payment-callout a { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.payment-creating-state {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
    background: var(--brand-dim);
    border-radius: var(--r);
    border: 1px dashed rgba(109, 40, 217, 0.2);
}
.payment-creating-spinner {
    width: 22px; height: 22px;
    border: 2.5px solid var(--border-light);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.payment-footer-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}
.payment-success-panel {
    text-align: center;
    padding: 1.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(14, 165, 233, 0.06));
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: var(--r-lg);
    margin-top: 0.5rem;
}
.payment-exam-ready-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.payment-exam-ready-hint,
.payment-success-msg {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.payment-exam-ready-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    border: 2px solid rgba(16, 185, 129, 0.25);
}
.writing-tier-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.writing-tier-option {
    padding: 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--r);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}
.writing-tier-option.is-selected {
    border-color: var(--brand);
    background: var(--brand-dim);
}
.writing-tier-price { font-size: 1.25rem; font-weight: 800; color: var(--brand); }
.writing-tier-price small { font-size: 0.75rem; }

/* ─── NOTIFICATIONS BELL ──────────────────────────────── */
.notif-bell-wrap { position: relative; }
.notif-bell-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border: 1.5px solid var(--border-light);
    border-radius: 9999px;
    background: var(--surface);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.2s;
}
.notif-bell-btn:hover { border-color: var(--brand-light); background: var(--brand-dim); }
.notif-bell-label { display: none; }
@media (min-width: 900px) { .notif-bell-label { display: inline; } }
.notif-badge {
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 9999px;
    background: var(--rose);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.notif-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    width: 300px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    z-index: 400;
    overflow: hidden;
}
.notif-dropdown-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.875rem;
}
.notif-read-all {
    background: none; border: none;
    color: var(--brand); font-size: 0.78rem;
    font-weight: 600; cursor: pointer;
}
.notif-list { list-style: none; max-height: 320px; overflow-y: auto; }
.notif-item {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: inherit;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s;
}
.notif-item:hover { background: var(--brand-dim); }
.notif-empty { padding: 1.5rem; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* ─── FOMO POPUP ──────────────────────────────────────── */
.fomo-popup--brand {
    position: fixed;
    bottom: 1.35rem;
    left: 1.15rem;
    z-index: 360;
    max-width: min(340px, calc(100vw - 2.3rem));
    pointer-events: none;
}
.fomo-popup--brand .fomo-popup-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0.95rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e4dfd6;
    box-shadow:
        0 14px 40px rgba(20, 18, 26, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.38s ease;
}
.fomo-popup--brand.is-showing .fomo-popup-card {
    transform: none;
    opacity: 1;
}
.fomo-popup--brand.is-hiding .fomo-popup-card {
    transform: translateY(10px) scale(0.98);
    opacity: 0;
}
.fomo-popup-logo {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #faf8f5;
    border: 1px solid #e4dfd6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    box-shadow: 0 2px 8px rgba(61, 42, 109, 0.08);
}
.fomo-popup-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.fomo-popup--brand .fomo-popup-body {
    flex: 1;
    min-width: 0;
}
.fomo-popup-kicker {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3d2a6d;
    margin-bottom: 0.12rem;
}
.fomo-popup-text {
    font-size: 0.82rem;
    font-weight: 650;
    margin: 0;
    line-height: 1.45;
    color: #14121a;
}
.fomo-popup-time {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #5c5666;
}
.fomo-popup--brand .fomo-popup-check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: rgba(31, 107, 74, 0.1);
    color: #1f6b4a;
}
@media (max-width: 560px) {
    .fomo-popup--brand {
        left: 0.75rem;
        right: 0.75rem;
        max-width: none;
    }
}

/* legacy alias */
.fomo-popup {
    position: fixed;
    bottom: 1.5rem;
    left: 1.25rem;
    z-index: 360;
    max-width: 320px;
    pointer-events: none;
}
.fomo-popup-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.fomo-popup-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ─── DASHBOARD ───────────────────────────────────────── */
.dashboard-retention-grid,
.dashboard-live-grid,
.dashboard-insights-lazy {
    margin-bottom: 1.5rem;
}
.dashboard-unlock-strip { margin-bottom: 1.5rem; }

/* ─── REVIEW PAGE ─────────────────────────────────────── */
.exam-receipt-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.exam-receipt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.exam-receipt-band {
    font-size: 1.5rem;
    font-weight: 800;
    padding: 0.5rem 1rem;
    border-radius: var(--r);
    background: var(--brand-dim);
    color: var(--brand);
}
.review-toolbar { gap: 0.5rem; }
.review-part { margin-bottom: 1.25rem; }
.review-part-score { font-weight: 700; color: var(--brand); }
.autopsy-bars { display: flex; flex-direction: column; gap: 0.4rem; }
.autopsy-row {
    display: grid;
    grid-template-columns: 32px 1fr 40px;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}
.autopsy-bar-wrap {
    height: 6px;
    background: var(--border-light);
    border-radius: 9999px;
    overflow: hidden;
}
.autopsy-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    border-radius: 9999px;
}

/* ─── UNLOCK OPTIONS ──────────────────────────────────── */
.unlock-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.unlock-option-card {
    flex: 1;
    min-width: 200px;
    padding: 1.25rem;
    border-radius: var(--r-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
}
.unlock-option-card:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* ─── ONBOARDING / CHOOSE PACKAGE ─────────────────────── */
.onboarding-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

/* ─── SEO / FAQ (shared with landing) ─────────────────── */
.seo-landing-section { padding: 4rem 0; }

.seo-guide-page {
    background: #f7f5f1;
    color: #14121a;
    padding-bottom: 3rem;
}
.seo-guide-hero {
    padding: 2rem 0 1.25rem;
}
.seo-guide-hero h1 {
    margin: 0.5rem 0 0;
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #14121a;
}
.seo-guide-hero .section-label {
    display: inline-flex;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: #ede8f6;
    color: #3d2a6d;
    font-size: 0.78rem;
    font-weight: 750;
}
.seo-guide-lead {
    margin: 0.75rem 0 0;
    max-width: 40rem;
    font-size: 1rem;
    line-height: 1.55;
    color: #5c5666;
}
.seo-guide-hero .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.15rem;
}
.seo-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.seo-guide-block {
    padding: 1.35rem 1.4rem;
    background: #fff;
    border: 1px solid #e4dfd6;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(20, 18, 26, 0.05);
}
.seo-guide-block h2 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #3d2a6d;
}
.seo-guide-block p {
    margin: 0;
    color: #5c5666;
    line-height: 1.6;
}
.seo-guide-list {
    margin: 0;
    padding-left: 1.15rem;
    color: #5c5666;
    line-height: 1.65;
}
.seo-guide-list li + li { margin-top: 0.45rem; }
.seo-skill-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}
.seo-skill-card {
    display: block;
    padding: 0.9rem 1rem;
    background: #f7f5f1;
    border: 1px solid #e4dfd6;
    border-radius: 14px;
}
.seo-skill-card h3 {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    color: #3d2a6d;
}
.seo-skill-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #5c5666;
    line-height: 1.45;
}
.seo-steps-list {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: seo-step;
}
.seo-steps-list li {
    counter-increment: seo-step;
    padding: 1rem 1.15rem 1rem 3rem;
    position: relative;
    background: #fff;
    border: 1px solid #e4dfd6;
    border-radius: 14px;
}
.seo-steps-list li::before {
    content: counter(seo-step);
    position: absolute;
    left: 0.9rem;
    top: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #ede8f6;
    color: #3d2a6d;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.seo-faq-list {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.seo-faq-list .seo-faq-item dt {
    font-weight: 750;
    color: #14121a;
    margin-bottom: 0.35rem;
}
.seo-faq-list .seo-faq-item dd {
    margin: 0;
    color: #5c5666;
    line-height: 1.6;
}
.seo-guide-cta .glass-card,
.seo-guide-page .section {
    /* spacing handled by .section */
}

.seo-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}
.seo-faq-item {
    border-radius: var(--r-lg);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.seo-faq-item:hover { box-shadow: var(--shadow-sm); }
.seo-faq-item summary {
    padding: 1rem 1.15rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.seo-faq-item summary::-webkit-details-marker { display: none; }
.seo-faq-item p, .seo-faq-item .faq-answer {
    padding: 0 1.15rem 1rem;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
}

@media (max-width: 720px) {
    .seo-guide-grid,
    .seo-skill-cards {
        grid-template-columns: 1fr;
    }
}

/* ─── 404 ─────────────────────────────────────────────── */
.error-page {
    text-align: center;
    padding: 4rem 0;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 640px) {
    .seo-faq-grid { grid-template-columns: 1fr; }
    .writing-tier-picker { grid-template-columns: 1fr; }
    .payment-action-card { padding: 1.25rem; }
}

/* ─── GAMIFICATION STRIP ──────────────────────────────── */
.gamification-strip {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(109,40,217,0.05), rgba(14,165,233,0.05));
}
.gamification-level-ring {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: conic-gradient(var(--brand) calc(var(--xp-progress, 0) * 1%), var(--border-light) 0);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.gamification-level-ring::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
}
.gamification-level-num {
    position: relative;
    z-index: 1;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--brand);
}
.gamification-strip-body { flex: 1; min-width: 160px; }
.gamification-strip-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}
.gamification-xp { font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.gamification-xp-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}
.gamification-xp-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    border-radius: 9999px;
}
.gamification-xp-hint { font-size: 0.72rem; color: var(--muted-light); }
.gamification-streak {
    text-align: center;
    padding: 0.5rem 0.75rem;
    background: rgba(249, 115, 22, 0.08);
    border-radius: var(--r);
}
.gamification-streak-num { font-size: 1.25rem; font-weight: 800; color: var(--peach); display: block; }
.gamification-streak small { font-size: 0.7rem; color: var(--muted); }
.gamification-goal {
    text-align: center;
    padding: 0.5rem 0.75rem;
    background: var(--brand-dim);
    border-radius: var(--r);
}
.gamification-goal small { display: block; font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.gamification-goal strong { font-size: 0.9rem; color: var(--brand); }

/* ─── STUDY PLAN ──────────────────────────────────────── */
.study-plan-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(14,165,233,0.06), rgba(109,40,217,0.04));
}
.study-plan-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.study-plan-headline { font-size: 1.1rem; font-weight: 700; margin: 0.25rem 0; }
.study-plan-meta { font-size: 0.85rem; margin: 0; }
.study-plan-countdown {
    text-align: center;
    padding: 0.75rem 1rem;
    background: var(--brand-dim);
    border-radius: var(--r-lg);
    flex-shrink: 0;
}
.study-plan-days {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
}
.study-plan-countdown small { font-size: 0.72rem; color: var(--muted); }
.study-plan-express-callout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    background: rgba(249, 115, 22, 0.08);
    border-radius: var(--r);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}
.study-plan-tasks-title { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.65rem; }
.study-plan-tasks { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.study-plan-task-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    border-radius: var(--r-sm);
    text-decoration: none;
    color: var(--text);
    font-size: 0.875rem;
    transition: background 0.15s;
}
.study-plan-task-link:hover { background: var(--brand-dim); color: var(--brand); }
.study-plan-task-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand-light);
    flex-shrink: 0;
}
.study-plan-urgent { border-color: rgba(225, 29, 72, 0.2); background: linear-gradient(135deg, rgba(225,29,72,0.05), rgba(109,40,217,0.04)); }

/* ─── UNLOCK OPTIONS ────────────────────────────────── */
.unlock-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}
.unlock-option-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
    position: relative;
}
.unlock-option-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.unlock-option-card--featured {
    border-color: rgba(109, 40, 217, 0.2);
    background: linear-gradient(160deg, rgba(109,40,217,0.06), rgba(14,165,233,0.04));
}
.unlock-option-badge {
    position: absolute;
    top: 0.75rem; right: 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: var(--brand-dim);
    color: var(--brand);
}
.dashboard-unlock-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--brand-dim);
    color: var(--brand);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 0.25rem;
}
.unlock-options-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.unlock-inline-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--border-light);
    background: var(--surface);
    color: var(--text);
    transition: all 0.2s;
}
.unlock-inline-chip:hover { border-color: var(--brand-light); color: var(--brand); background: var(--brand-dim); }
.unlock-inline-chip--primary {
    background: var(--brand-dim);
    border-color: rgba(109, 40, 217, 0.2);
    color: var(--brand);
}

/* ─── EXAM CODE CARDS ───────────────────────────────── */
.practice-page {
    padding-bottom: 3rem;
}
.practice-tab-panel {
    padding: 1.35rem 1.5rem;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: var(--r-xl);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    margin-top: 0.5rem;
}
.practice-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.practice-section-head h2 {
    font-size: 1.15rem;
    font-weight: 800;
}
.practice-subheading {
    font-size: 1rem;
    font-weight: 700;
    margin: 1.75rem 0 0.5rem;
}
.practice-section-desc,
.exam-mix-hint {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.55;
    color: var(--muted);
}
.exam-mix-btn { white-space: nowrap; }
.exam-code-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
.exam-code-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.15rem 1.25rem;
    transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
    border: 1px solid rgba(15, 23, 42, 0.08);
    position: relative;
}
.exam-code-card.is-unlocked {
    background: linear-gradient(155deg, #f0fdf4 0%, #fff 55%);
    border-color: rgba(5, 150, 105, 0.18);
}
.exam-code-card.is-locked {
    background: linear-gradient(155deg, #f8fafc 0%, #fff 55%);
    opacity: 0.88;
}
.exam-mixed-card.is-unlocked {
    background: linear-gradient(155deg, #faf8ff 0%, #fff 55%);
    border-color: rgba(109, 40, 217, 0.2);
}
.exam-code-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.exam-code-badge {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text);
}
.exam-code-meta {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
}
.exam-code-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.exam-access-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    background: var(--mint-dim);
    color: var(--success);
}
.exam-complete-tag { color: var(--success); font-weight: 600; }
.exam-partial-tag { color: var(--warning); font-weight: 600; }
.exam-mixed-card .exam-mixed-hint {
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.45;
}

.exam-live-presence {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid rgba(5, 150, 105, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
}
.exam-live-presence-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.part-practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
.part-practice-card {
    padding: 1rem 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.07);
}
.part-practice-card.is-locked {
    opacity: 0.75;
    background: #f8fafc;
}
.part-practice-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.65rem;
}
.pool-stats {
    padding: 1.25rem 1.35rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #f8fafc, #fff);
    border: 1px solid rgba(14, 165, 233, 0.12);
}
.pool-stats-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.pool-stats-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: var(--muted);
}
.pool-empty-notice {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin: 1rem 0;
}

.aptis-part4-study-notice,
.aptis-writing-study-notice,
.aptis-listening-study-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #eff6ff, #f5f3ff);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: var(--r);
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.55;
}
.aptis-writing-study-notice a {
    font-weight: 700;
    color: var(--brand);
}
.wsk-tab-pending-badge {
    font-weight: 600;
    color: var(--brand);
}
.wsk-tab-pending-badge strong {
    font-weight: 800;
}

.aptis-part4-study-notice-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.practice-unlock-banner {
    padding: 1.35rem 1.5rem;
    margin: 1.5rem 0;
    background: linear-gradient(135deg, #faf8ff, #f0f9ff);
    border: 1px solid rgba(109, 40, 217, 0.12);
    border-radius: var(--r-xl);
    text-align: left;
}
.practice-unlock-banner-head {
    margin-bottom: 1rem;
}
.practice-unlock-banner-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0.2rem 0;
}
.practice-unlock-banner-desc {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}

/* ── Speaking tab — exam listing ── */
.speaking-exam-hero {
    position: relative;
    margin-bottom: 1.35rem;
    border-radius: var(--r-xl);
    border: 1px solid rgba(13, 148, 136, 0.22);
    background: linear-gradient(145deg, #f0fdfa 0%, #faf5ff 48%, #fff 100%);
    overflow: hidden;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 36px rgba(13, 148, 136, 0.08);
}

.speaking-exam-hero-glow {
    position: absolute;
    top: -40%;
    right: -8%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 40, 217, 0.12) 0%, transparent 68%);
    pointer-events: none;
}

.speaking-exam-hero-inner {
    position: relative;
    padding: 1.35rem 1.45rem 1.25rem;
}

.speaking-exam-hero-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.85rem 1rem;
    margin-bottom: 1.15rem;
}

.speaking-exam-hero-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f766e;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(204, 251, 241, 0.65));
    border: 1px solid rgba(13, 148, 136, 0.2);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}

.speaking-exam-hero-copy {
    flex: 1;
    min-width: 200px;
}

.speaking-exam-hero-title {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.speaking-exam-hero-lead {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--muted);
    max-width: 52ch;
}

.speaking-exam-hero-history {
    margin-left: auto;
    align-self: center;
}

.speaking-exam-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.speaking-exam-stat {
    padding: 0.65rem 0.75rem;
    border-radius: var(--r);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.07);
    text-align: center;
}

.speaking-exam-stat-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #0f766e;
    line-height: 1.2;
}

.speaking-exam-stat-label {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: var(--muted);
    line-height: 1.3;
}

.speaking-exam-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.45rem;
}

.speaking-flow-step {
    flex: 1;
    min-width: 140px;
    padding: 0.75rem 0.85rem;
    border-radius: var(--r);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.78);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.speaking-flow-step--1 { border-left: 3px solid #0d9488; }
.speaking-flow-step--2 { border-left: 3px solid #7c3aed; }
.speaking-flow-step--3 { border-left: 3px solid #2563eb; }
.speaking-flow-step--4 { border-left: 3px solid #a855f7; }

.speaking-flow-part {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
}

.speaking-flow-detail {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.35;
}

.speaking-flow-time {
    font-size: 0.72rem;
    font-weight: 600;
    color: #0f766e;
    margin-top: 0.15rem;
}

.speaking-flow-arrow {
    align-self: center;
    color: rgba(15, 23, 42, 0.28);
    font-size: 1rem;
    padding: 0 0.1rem;
}

.speaking-set-grid {
    margin-bottom: 1.75rem;
}

.speaking-set-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.15rem 1.2rem 1.05rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(160deg, #f8fffe 0%, #fff 55%);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.speaking-set-card:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 148, 136, 0.28);
    box-shadow: 0 10px 28px rgba(13, 148, 136, 0.1);
}

.speaking-set-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.speaking-set-num {
    font-size: 1.65rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.04em;
    line-height: 1;
    color: rgba(15, 23, 42, 0.12);
}

.speaking-set-part-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: flex-end;
}

.speaking-set-part-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.speaking-set-part-tag--1 {
    background: rgba(13, 148, 136, 0.12);
    color: #0f766e;
}

.speaking-set-part-tag--2 {
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
}

.speaking-set-part-tag--3 {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.speaking-set-part-tag--4 {
    background: rgba(168, 85, 247, 0.12);
    color: #7e22ce;
}

.speaking-set-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text);
}

.speaking-set-meta {
    margin: 0;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
}

.speaking-set-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.speaking-set-format {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.speaking-set-cta {
    white-space: nowrap;
}

.speaking-recent {
    margin-bottom: 1.5rem;
}

.speaking-recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.speaking-recent-head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.speaking-recent-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand);
    text-decoration: none;
}

.speaking-recent-link:hover {
    text-decoration: underline;
}

.speaking-recent-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.55rem;
}

.speaking-recent-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.speaking-recent-item:hover {
    transform: translateY(-1px);
    border-color: rgba(13, 148, 136, 0.25);
}

.speaking-recent-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}

.speaking-recent-score {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
}

.speaking-recent-band {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f766e;
}

.speaking-recent-aptis {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.speaking-recent-pending {
    font-size: 0.78rem;
    font-weight: 600;
    color: #b45309;
}

@media (max-width: 720px) {
    .speaking-exam-stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .speaking-flow-arrow {
        display: none;
    }
    .speaking-exam-hero-history {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    .speaking-set-part-tags {
        justify-content: flex-start;
    }
}

/* History page */
.history-page-stats {
    margin-bottom: 2rem;
}
.history-page-stats .stat-card {
    padding: 1.25rem;
    border: 1px solid var(--border-light);
}
.history-page-stats .stat-card:nth-child(1) strong { color: #6d28d9; }
.history-page-stats .stat-card:nth-child(2) strong { color: #0284c7; }
.history-page-stats .stat-card:nth-child(3) strong { color: #059669; }
.history-part-stats-card {
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
}
.history-part-stats-card h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
}
.history-writing-strip {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ─── EMPTY STATE ───────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    margin: 2rem 0;
}
.empty-state-illustration { margin-bottom: 1.25rem; opacity: 0.7; }
.empty-state-svg { width: 100px; height: auto; margin: 0 auto; }
.empty-state-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.empty-state-message { color: var(--muted); font-size: 0.9rem; max-width: 40ch; margin: 0 auto 1.25rem; }
.empty-state-actions { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

/* ─── PRACTICE UNLOCK BANNER ────────────────────────── */
/* moved to exam code cards section above */

/* ─── PAYMENT TRANSFER PANEL ────────────────────────── */
.payment-transfer-panel { margin-top: 1.25rem; }
.payment-transfer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.payment-transfer-grid--status { margin-top: 1rem; }
.payment-qr-card,
.payment-bank-card {
    padding: 1.35rem;
    background: #fff;
    border: 1px solid rgba(109, 40, 217, 0.1);
    border-radius: var(--r-lg);
    height: 100%;
    box-shadow: var(--shadow-xs);
}
.payment-qr-card {
    background: linear-gradient(180deg, #fff 0%, #faf8ff 100%);
}
.payment-bank-card {
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}
.payment-qr-title,
.payment-bank-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: var(--text);
}
.payment-bank-subtitle {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}
.payment-qr-frame {
    display: flex;
    justify-content: center;
    padding: 0.85rem;
    background: #fff;
    border-radius: var(--r);
    border: 2px dashed rgba(109, 40, 217, 0.18);
    margin-bottom: 0.65rem;
}
.checkout-qr-img { max-width: 200px; height: auto; }
.payment-qr-hint {
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
}
.payment-bank-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.payment-bank-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--r-sm);
    background: rgba(109, 40, 217, 0.05);
    border: 1px solid rgba(109, 40, 217, 0.08);
    font-size: 0.85rem;
}
.payment-bank-row--highlight {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.12), rgba(14, 165, 233, 0.08));
    border-color: rgba(109, 40, 217, 0.18);
}
.payment-bank-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.payment-bank-value {
    font-weight: 600;
    word-break: break-all;
    color: var(--text);
}
.payment-bank-value--mono { font-family: ui-monospace, monospace; font-size: 0.9rem; }
.payment-bank-value--amount { color: var(--brand); font-size: 1.05rem; font-weight: 800; }
.payment-copy-btn {
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(109, 40, 217, 0.2);
    border-radius: 8px;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand);
    cursor: pointer;
    transition: all 0.15s;
}
.payment-copy-btn:hover {
    background: var(--brand-dim);
    border-color: rgba(109, 40, 217, 0.35);
}
.payment-copy-btn.is-copied {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success);
}
.transfer-code,
.payment-transfer-code {
    font-family: ui-monospace, monospace;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--brand-dark);
    background: rgba(109, 40, 217, 0.1);
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    display: inline-block;
    letter-spacing: 0.02em;
}
.payment-order-countdown {
    text-align: center;
    padding: 1rem 1.1rem;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 191, 36, 0.08));
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--r-lg);
    margin-bottom: 1.25rem;
}
.payment-order-countdown.is-expired {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.2);
}
.payment-countdown-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9a3412;
}
.payment-order-countdown strong {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ea580c;
    margin: 0.15rem 0;
    font-variant-numeric: tabular-nums;
}
.payment-order-countdown small {
    display: block;
    font-size: 0.75rem;
    color: #78716c;
    margin-top: 0.2rem;
}
.payment-reused-banner {
    padding: 0.85rem 1.1rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(109, 40, 217, 0.06));
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: var(--r);
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.payment-reused-link { color: var(--brand); font-weight: 700; }
.payment-support-box {
    padding: 1.25rem 1.35rem;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.07) 0%, rgba(14, 165, 233, 0.08) 55%, rgba(16, 185, 129, 0.06) 100%);
    border: 1px solid rgba(109, 40, 217, 0.14);
    box-shadow: var(--shadow-xs);
    margin-top: 0.25rem;
}
.payment-support-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
}
.payment-support-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    color: #fff;
    box-shadow: 0 6px 18px rgba(109, 40, 217, 0.28);
}
.payment-support-title {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 0.2rem;
    color: var(--text);
}
.payment-support-desc {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}
.payment-contact-chips {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.55rem;
}
.payment-contact-chips .contact-chip {
    background: #fff;
    border: 1px solid rgba(109, 40, 217, 0.14);
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.55rem 0.9rem;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.06);
}
.payment-contact-chips .contact-chip:hover {
    background: var(--brand-dim);
    border-color: rgba(109, 40, 217, 0.28);
    color: var(--brand);
    transform: translateY(-1px);
}
.payment-contact-chips .contact-chip svg {
    opacity: 1;
    color: var(--brand);
}
.payment-contact-chips .contact-chip--facebook svg { color: #1877f2; }
.payment-bank-note {
    font-size: 0.8rem;
    color: #475569;
    margin-top: 0.85rem;
    line-height: 1.55;
    padding: 0.65rem 0.75rem;
    background: rgba(14, 165, 233, 0.06);
    border-radius: var(--r-sm);
    border-left: 3px solid var(--accent);
}
.payment-bank-note strong { color: var(--brand-dark); }
.form-hint { font-size: 0.78rem; color: var(--muted-light); margin-top: 0.25rem; }
.payment-qr-missing-hint { color: #b45309; }

/* ─── CHOOSE PACKAGE ────────────────────────────────── */
.choose-package-alt {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.express-package-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(109,40,217,0.06));
    border-color: rgba(249, 115, 22, 0.2);
}
.package-pick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.package-pick-card {
    padding: 1.5rem;
    transition: all 0.28s;
}
.package-pick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.package-pick-card.popular {
    border-color: rgba(109, 40, 217, 0.25);
    background: linear-gradient(160deg, rgba(109,40,217,0.04), rgba(14,165,233,0.03));
}
.package-pick-card.is-express {
    border-color: rgba(249, 115, 22, 0.25);
    background: linear-gradient(160deg, rgba(249,115,22,0.05), transparent);
}
.package-pick-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-bottom: 0.35rem; }
.package-pick-tag {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    background: var(--brand-dim);
    color: var(--brand);
}
.package-pick-tag-express { background: rgba(249,115,22,0.12); color: var(--peach); }
.package-pick-tag-group { background: var(--accent-dim); color: var(--accent); }
.package-pick-price { font-size: 1.75rem; font-weight: 800; color: var(--brand); letter-spacing: -0.03em; }
.package-pick-duration { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.65rem; }
.feature-list-compact li { font-size: 0.8rem; padding-left: 0; }
.feature-list-compact li::before { display: none; }
.feature-list-compact li svg { margin-right: 0.35rem; vertical-align: -2px; }

/* ─── ONBOARDING WIZARD ─────────────────────────────── */
.onboarding-wizard-page { max-width: 640px; }
.onboarding-header { margin-bottom: 1.5rem; }
.onboarding-subtitle { color: var(--muted); font-size: 0.95rem; margin-top: 0.35rem; }
.onboarding-wizard { padding: 2rem; }
.onboarding-wizard-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.onboarding-wizard-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border-light);
    transition: all 0.25s;
}
.onboarding-wizard-dot.is-active {
    background: var(--brand);
    transform: scale(1.2);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
}
.onboarding-slide h2 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.onboarding-band-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.65rem;
    margin: 1.25rem 0;
}
.onboarding-choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    border: 1.5px solid var(--border-light);
    border-radius: var(--r);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.onboarding-choice-card:has(input:checked) {
    border-color: var(--brand);
    background: var(--brand-dim);
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.15);
}
.onboarding-choice-card input { display: none; }
.onboarding-choice-band { font-size: 1.25rem; font-weight: 800; color: var(--brand); }
.onboarding-choice-desc { font-size: 0.68rem; color: var(--muted); margin-top: 0.15rem; }
.onboarding-date-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 1rem 0;
}
.onboarding-date-field input { font-weight: 400; }
.onboarding-skill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}
.onboarding-skill-chip {
    cursor: pointer;
}
.onboarding-skill-chip input { display: none; }
.onboarding-skill-chip span {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}
.onboarding-skill-chip:has(input:checked) span {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.onboarding-slide-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}
.exam-reminder-toggles { margin: 1rem 0; }

/* ─── ACTIVATE KEY ──────────────────────────────────── */
.activate-key-form {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem;
}

/* ─── GROUP MANAGE ──────────────────────────────────── */
.group-manage-page { max-width: 720px; }
.group-invite-box {
    padding: 1.25rem;
    background: var(--accent-dim);
    border-radius: var(--r-lg);
    margin-bottom: 1.25rem;
}

/* ─── SHARE CARD ────────────────────────────────────── */
.share-card-page { max-width: 480px; margin: 0 auto; text-align: center; }

@media (max-width: 768px) {
    .payment-transfer-grid { grid-template-columns: 1fr; }
    .payment-bank-row { grid-template-columns: 1fr; gap: 0.25rem; }
    .payment-contact-chips { flex-direction: column; align-items: stretch; }
    .payment-contact-chips .contact-chip { justify-content: center; }
    .payment-support-head { gap: 0.65rem; }
    .package-pick-grid { grid-template-columns: 1fr; }
}
