/* EDU For Kids — Premium World-Class Layer */

:root {
    --gradient-hero: linear-gradient(135deg, #152238 0%, #F97316 50%, #0EA5E9 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8f7f4 100%);
    --glow: 0 0 40px rgba(21, 34, 56, 0.18);
}

/* Mascot */
.mascot-svg { display: block; filter: drop-shadow(0 4px 12px rgba(21,34,56,0.3)); }

.mascot-widget {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.mascot-avatar {
    flex-shrink: 0;
    animation: mascotBounce 3s ease-in-out infinite;
}

.mascot-bubble {
    background: white;
    border-radius: 20px 20px 20px 4px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow);
    border: 2px solid rgba(21, 34, 56, 0.15);
    position: relative;
    flex: 1;
    max-width: 400px;
}

.mascot-bubble p {
    margin: 0;
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

@keyframes mascotBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Premium */
.hero-premium {
    position: relative;
    padding: 3rem 0 2.5rem;
    overflow: hidden;
    background: #F3F2EF;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
}

.hero-orb-1 {
    width: 420px;
    height: 420px;
    background: rgba(21, 34, 56, 0.35);
    top: -120px;
    left: -80px;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-2 {
    width: 320px;
    height: 320px;
    background: rgba(249, 115, 22, 0.3);
    bottom: -60px;
    right: 10%;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

.hero-orb-3 {
    width: 200px;
    height: 200px;
    background: rgba(14, 165, 233, 0.35);
    top: 30%;
    right: -40px;
    animation: orbFloat 7s ease-in-out infinite 1s;
}

.hero-spark {
    position: absolute;
    opacity: 0.35;
    animation: sparkFloat 6s ease-in-out infinite;
}

.hero-spark-1 { top: 18%; left: 8%; animation-delay: 0s; color: #FFD93D; }
.hero-spark-2 { top: 65%; left: 15%; animation-delay: 1.5s; color: #152238; }
.hero-spark-3 { top: 25%; right: 12%; animation-delay: 0.8s; color: #0EA5E9; }
.hero-spark-4 { bottom: 20%; right: 25%; animation-delay: 2s; color: #F97316; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.05); }
}

@keyframes sparkFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-12px) rotate(8deg); opacity: 0.5; }
}

.hero-premium .hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    text-align: right;
}

.hero-text {
    animation: fadeInUp 0.7s ease;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(21, 34, 56, 0.12);
    border: 1px solid rgba(21, 34, 56, 0.12);
    margin-bottom: 1.25rem;
}

.hero-premium h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 1.25rem;
    color: #1A202C;
}

.hero-line {
    display: block;
}

.hero-gradient {
    background: linear-gradient(135deg, #152238 0%, #F97316 55%, #0EA5E9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4A5568;
    margin: 0 0 1.75rem;
    max-width: 520px;
}

.hero-desc strong {
    color: var(--primary);
}

.hero-premium .hero-buttons {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: linear-gradient(135deg, #152238, #1A2942);
    color: white;
    font-weight: 800;
    font-size: 1.05rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(21, 34, 56, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(21, 34, 56, 0.45);
    color: white;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    background: white;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.05rem;
    border: 2px solid rgba(21, 34, 56, 0.25);
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, border-color 0.2s;
}

.btn-hero-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    color: var(--primary);
}

.hero-trust {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.trust-pill svg { flex-shrink: 0; }

.trust-safe  { background: #E6FFFA; color: #234E52; }
.trust-clean { background: #EBF8FF; color: #2A4365; }
.trust-parent { background: #FFF7ED; color: #9A3412; }
.trust-free  { background: #FFFBEB; color: #744210; }

/* Hero mascot stage */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.7s ease 0.15s backwards;
}

.hero-stage {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 3px dashed rgba(21, 34, 56, 0.2);
    width: 100%;
    height: 100%;
    animation: ringSpin 20s linear infinite;
}

.hero-ring-2 {
    width: 85%;
    height: 85%;
    border-color: rgba(249, 115, 22, 0.2);
    animation-direction: reverse;
    animation-duration: 15s;
}

@keyframes ringSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-mascot-wrap {
    position: relative;
    z-index: 2;
    animation: mascotBounce 4s ease-in-out infinite;
}

.hero-mascot {
    width: 260px;
    height: 260px;
    filter: drop-shadow(0 12px 28px rgba(21, 34, 56, 0.25));
}

.hero-badge {
    position: absolute;
    z-index: 3;
    background: white;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    animation: badgePop 3s ease-in-out infinite;
}

.hero-badge-1 { top: 8%; right: 5%; animation-delay: 0s; }
.hero-badge-2 { bottom: 18%; left: 0; animation-delay: 1s; }
.hero-badge-3 { top: 40%; left: -8%; animation-delay: 2s; }

@keyframes badgePop {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.08) translateY(-6px); }
}

.trust-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.trust-badge svg { color: var(--green); }

/* Learning Path */
.path-hero {
    text-align: center;
    padding: 2rem 0;
}

.path-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.path-timeline::before {
    content: '';
    position: absolute;
    right: 28px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
    border-radius: 4px;
}

.path-level {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    animation: fadeInUp 0.5s ease backwards;
}

.path-level:nth-child(2) { animation-delay: 0.1s; }
.path-level:nth-child(3) { animation-delay: 0.2s; }

.path-level-marker {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary);
    flex-shrink: 0;
    z-index: 1;
    box-shadow: var(--shadow);
}

.path-level-card {
    flex: 1;
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.path-level-card:hover {
    border-color: var(--primary);
    transform: translateX(-4px);
}

.path-level-card h3 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.path-level-card .level-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.path-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.path-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: #f0f4ff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.path-item:hover {
    background: var(--primary);
    color: white;
}

.path-item.done {
    background: #C6F6D5;
    color: #22543D;
}

/* Progress card (home) */
.section-compact {
    padding-top: 0;
    margin-top: -1.5rem;
}

.progress-card {
    background: white;
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 32px rgba(21, 34, 56, 0.1);
    border: 1px solid rgba(21, 34, 56, 0.08);
}

.progress-card-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.progress-card-mascot {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.progress-card-mascot .mascot-svg {
    width: 72px;
    height: 72px;
}

.progress-card-body {
    flex: 1;
    min-width: 0;
}

.progress-greeting {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    color: var(--text);
}

.progress-greeting strong {
    color: var(--primary);
}

/* Level bar */
.level-bar-wrap {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin: 0;
}

.level-progress-inner {
    width: 100%;
}

.level-progress-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    row-gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    white-space: nowrap;
}

.level-badge .icon-svg,
.level-badge svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

.level-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: #D69E2E;
    font-weight: 700;
}

.level-stars .icon-svg,
.level-stars svg {
    width: 14px !important;
    height: 14px !important;
}

.xp-bar {
    width: 100%;
    height: 10px;
    background: #E8EDF5;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #152238, #F97316);
    border-radius: 10px;
    transition: width 0.8s ease;
    min-width: 4px;
}

.xp-text {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 800;
    white-space: nowrap;
}

.xp-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 600;
}

/* Speak button */
.speak-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--secondary), #EA580C);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: transform 0.2s;
}

.speak-btn:hover { transform: scale(1.05); }
.speak-btn.speaking { animation: pulse 1s infinite; }

/* Confetti */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 9999;
    animation: confettiFall 3s ease-in forwards;
    pointer-events: none;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* Onboarding */
.onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 20, 38, 0.72);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.onboarding-overlay.is-visible {
    opacity: 1;
}

.onboarding-overlay.is-closing {
    opacity: 0;
}

.onboarding-card {
    position: relative;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 55%, #f3f2ef 100%);
    border-radius: 28px;
    padding: 2rem 2rem 1.75rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow:
        0 24px 60px rgba(21, 34, 56, 0.22),
        0 0 0 1px rgba(21, 34, 56, 0.06);
    overflow: hidden;
    animation: onboardingCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes onboardingCardIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.onboarding-card-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.onboarding-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
}

.onboarding-orb-1 {
    width: 180px;
    height: 180px;
    top: -60px;
    right: -40px;
    background: #0ea5e9;
}

.onboarding-orb-2 {
    width: 140px;
    height: 140px;
    bottom: -50px;
    left: -30px;
    background: #f97316;
}

.onboarding-owl-stage {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-owl-ring {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.18), rgba(249, 115, 22, 0.12));
    border: 2px solid rgba(21, 34, 56, 0.08);
    box-shadow: inset 0 0 30px rgba(14, 165, 233, 0.12);
}

.onboarding-owl-wrap {
    position: relative;
    z-index: 1;
    animation: onboardingOwlFloat 3s ease-in-out infinite;
}

.onboarding-owl-wrap .onboarding-mascot,
.onboarding-owl-wrap .mascot-svg {
    display: block;
    width: 180px !important;
    height: 180px !important;
    margin: 0 auto;
    filter: drop-shadow(0 8px 16px rgba(21, 34, 56, 0.18));
}

@keyframes onboardingOwlFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.onboarding-spark {
    position: absolute;
    font-size: 1.1rem;
    color: #f97316;
    opacity: 0.85;
    animation: onboardingSpark 2.2s ease-in-out infinite;
    z-index: 2;
}

.onboarding-spark-1 {
    top: 18px;
    left: 12px;
    color: #0ea5e9;
    animation-delay: 0s;
}

.onboarding-spark-2 {
    top: 28px;
    right: 10px;
    animation-delay: 1.1s;
}

@keyframes onboardingSpark {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.2) rotate(12deg); opacity: 1; }
}

.onboarding-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #152238, #1a2942);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.onboarding-step-label {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    position: relative;
    z-index: 1;
}

.onboarding-title {
    margin: 0 0 0.65rem;
    font-size: 1.45rem;
    font-weight: 800;
    color: #152238;
    line-height: 1.35;
    position: relative;
    z-index: 1;
}

.onboarding-text {
    margin: 0 0 1.25rem;
    color: #475569;
    font-size: 1rem;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

.onboarding-steps {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin: 0 0 1.35rem;
    position: relative;
    z-index: 1;
}

.onboarding-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: transform 0.25s ease, background 0.25s ease;
}

.onboarding-dot.active {
    background: #152238;
    transform: scale(1.25);
    box-shadow: 0 0 0 3px rgba(21, 34, 56, 0.12);
}

.onboarding-dot.done {
    background: #0ea5e9;
}

.onboarding-actions {
    position: relative;
    z-index: 1;
}

.onboarding-btn {
    min-width: 180px;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 800;
    background: linear-gradient(135deg, #152238 0%, #1a2942 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(21, 34, 56, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.onboarding-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(21, 34, 56, 0.32);
}

@media (max-width: 480px) {
    .onboarding-card {
        padding: 1.5rem 1.25rem 1.35rem;
        border-radius: 22px;
    }

    .onboarding-owl-stage {
        width: 170px;
        height: 170px;
    }

    .onboarding-owl-wrap .onboarding-mascot,
    .onboarding-owl-wrap .mascot-svg {
        width: 150px !important;
        height: 150px !important;
    }

    .onboarding-title {
        font-size: 1.25rem;
    }
}

/* Legal pages */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.legal-page h1 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.legal-page .updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-page h2 {
    color: var(--text);
    margin: 1.5rem 0 0.75rem;
    font-size: 1.2rem;
}

.legal-page p, .legal-page li {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 0.75rem;
}

.legal-page ul {
    padding-right: 1.5rem;
}

/* Safety banner */
.safety-banner {
    background: linear-gradient(135deg, #C6F6D5, #B2F5EA);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-right: 4px solid var(--green);
}

.safety-banner p {
    margin: 0;
    font-weight: 600;
    color: #22543D;
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════
   HOME PAGE — Premium sections
   ═══════════════════════════════════════ */

.page-home .main-content {
    overflow-x: hidden;
}

.page-home .section {
    padding: 0;
}

/* Unified section headers */
.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: white;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    box-shadow: 0 4px 14px rgba(21, 34, 56, 0.1);
    border: 1px solid rgba(21, 34, 56, 0.1);
    margin-bottom: 1rem;
}

.section-pill-light {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.section-title-premium {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: #1A202C;
    margin: 0 0 0.6rem;
}

.section-sub-premium {
    color: #718096;
    font-size: 1.05rem;
    margin: 0;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.home-section {
    padding: 4rem 0;
}

.home-section:nth-child(even) {
    background: linear-gradient(180deg, transparent, rgba(21, 34, 56, 0.03), transparent);
}

/* Progress card premium */
.progress-card-premium {
    background: linear-gradient(135deg, #fff 0%, #FFF7ED 100%);
    border: 1px solid rgba(21, 34, 56, 0.12);
    box-shadow: 0 12px 40px rgba(21, 34, 56, 0.12);
    position: relative;
    overflow: hidden;
}

.progress-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-hero);
}

.progress-card-premium .progress-card-inner {
    flex-wrap: wrap;
}

.progress-card-premium .progress-card-mascot {
    width: 80px;
    height: 80px;
}

.progress-card-premium .progress-card-mascot .mascot-svg {
    width: 80px;
    height: 80px;
}

.progress-card-body {
    flex: 1;
    min-width: 200px;
}

.progress-quick {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(21, 34, 56, 0.08);
    margin-top: 0.25rem;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    background: white;
    border: 1px solid rgba(21, 34, 56, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
}

.quick-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Path cards premium */
.path-cards,
.path-cards-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.path-card-premium {
    background: white;
    border-radius: 24px;
    padding: 2rem 1.75rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.path-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--card-color) 18%, transparent), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}

.path-card-premium:hover .path-card-glow {
    opacity: 1;
}

.path-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px color-mix(in srgb, var(--card-color) 25%, transparent);
    border-color: color-mix(in srgb, var(--card-color) 40%, white);
}

.path-card-num {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2.5rem;
    font-weight: 900;
    color: color-mix(in srgb, var(--card-color) 12%, transparent);
    line-height: 1;
    pointer-events: none;
}

.path-icon-wrap {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.path-icon-wrap .icon-box {
    width: 80px;
    height: 80px;
    border-radius: 22px;
}

.path-card-premium h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    position: relative;
    z-index: 1;
}

.path-card-premium p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.path-level-dots {
    display: flex;
    gap: 0.4rem;
    margin: 1rem 0 0.75rem;
    position: relative;
    z-index: 1;
}

.level-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--card-color) 35%, #E2E8F0);
}

.path-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

.path-card-premium .path-meta {
    font-size: 0.8rem;
    color: var(--card-color);
    font-weight: 700;
}

.path-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--card-color) 12%, white);
    color: var(--card-color);
    transition: all 0.25s;
}

.path-card-premium:hover .path-arrow {
    background: var(--card-color);
    color: white;
    transform: translateX(-4px);
}

/* Stats premium */
.stats-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.stat-card-premium {
    background: white;
    border-radius: 20px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: var(--stat-color);
}

.stat-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--stat-color) 20%, transparent);
}

.stat-icon-wrap {
    margin-bottom: 0.75rem;
}

.stat-icon-wrap .icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: 0 auto;
}

.stat-num {
    display: block;
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--stat-color);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 600;
}

.home-stats {
    padding: 2rem 0 3rem;
}

/* Age cards premium */
.age-grid-premium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.age-card-premium {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.35s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.age-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--card-color);
}

.age-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px color-mix(in srgb, var(--card-color) 22%, transparent);
}

.age-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.age-icon .icon-box {
    width: 68px;
    height: 68px;
    border-radius: 20px;
}

.age-range-badge {
    background: color-mix(in srgb, var(--card-color) 12%, white);
    color: var(--card-color);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
}

.age-card-premium h3 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.age-card-premium p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.7;
    flex: 1;
    margin: 0;
}

.age-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1.25rem;
    color: var(--card-color);
    font-weight: 800;
    font-size: 0.9rem;
    transition: gap 0.2s;
}

.age-card-premium:hover .age-cta {
    gap: 0.6rem;
}

/* Features premium */
.features-grid-premium {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.feature-card-premium {
    background: var(--feat-bg);
    border-radius: 22px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.6s ease backwards;
}

.feature-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.feature-icon-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--feat-color) 20%, transparent);
}

.feature-card-premium h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1A202C;
    margin-bottom: 0.5rem;
}

.feature-card-premium p {
    color: #718096;
    font-size: 0.88rem;
    line-height: 1.7;
    margin: 0;
}

/* Subjects premium */
.subject-grid-premium {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.subject-card-premium {
    background: white;
    border-radius: 18px;
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.subject-card-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--card-color) 8%, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.subject-card-premium:hover::before {
    opacity: 1;
}

.subject-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px color-mix(in srgb, var(--card-color) 18%, transparent);
    border-color: color-mix(in srgb, var(--card-color) 30%, white);
}

.subject-icon {
    display: block;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.subject-icon .icon-box {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    margin: 0 auto;
}

.subject-card-premium h4 {
    font-size: 0.95rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
    margin: 0;
}

.subject-hover {
    display: block;
    margin-top: 0.5rem;
    color: var(--card-color);
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.25s;
    position: relative;
    z-index: 1;
}

.subject-card-premium:hover .subject-hover {
    opacity: 1;
    transform: translateY(0);
}

/* Safety banner premium */
.safety-banner-premium {
    background: linear-gradient(135deg, #F0FFF4 0%, #E6FFFA 50%, #EBF8FF 100%);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid rgba(56, 161, 105, 0.15);
    box-shadow: 0 8px 32px rgba(56, 161, 105, 0.1);
    position: relative;
    overflow: hidden;
}

.safety-icon-wrap .icon-box {
    width: 72px;
    height: 72px;
    border-radius: 20px;
}

.safety-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #22543D;
    margin: 0 0 0.5rem;
}

.safety-content p {
    margin: 0 0 0.75rem;
    color: #2F855A;
    font-size: 0.95rem;
    line-height: 1.7;
}

.safety-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #22543D;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.2s;
}

.safety-link:hover {
    gap: 0.6rem;
}

.safety-deco {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0.35;
    color: #38A169;
}

/* Parents CTA */
.home-parents {
    padding-bottom: 5rem;
}

.parents-cta {
    background: linear-gradient(135deg, #152238 0%, #1A2942 40%, #F97316 100%);
    border-radius: 28px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    color: white;
    box-shadow: 0 20px 60px rgba(21, 34, 56, 0.35);
    position: relative;
    overflow: hidden;
}

.parents-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.parents-cta h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
}

.parents-cta p {
    opacity: 0.92;
    line-height: 1.8;
    margin: 0 0 1.25rem;
    font-size: 1rem;
}

.parents-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.parents-perks li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.parents-buttons {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.btn-on-dark {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(4px);
}

.btn-on-dark:hover {
    background: white !important;
    color: var(--primary) !important;
}

.parents-cta-visual {
    display: flex;
    justify-content: center;
}

/* Home — studio promo banner */
.home-studio-promo {
    padding-top: 0;
}

.home-studio-banner {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 2rem 2.25rem;
    background: linear-gradient(135deg, #152238 0%, #1A2942 42%, #F97316 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 22px 56px rgba(21, 34, 56, 0.28);
    color: #fff;
}

.home-studio-banner-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-studio-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.5;
}

.home-studio-orb-1 {
    width: 220px;
    height: 220px;
    background: #F97316;
    top: -80px;
    left: -50px;
}

.home-studio-orb-2 {
    width: 180px;
    height: 180px;
    background: #0EA5E9;
    bottom: -60px;
    right: 8%;
}

.home-studio-banner-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.home-studio-pill {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-studio-banner-content h2 {
    margin: 0.65rem 0 0.85rem;
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    font-weight: 900;
    line-height: 1.35;
}

.home-studio-banner-content p {
    margin: 0 0 1.1rem;
    font-size: 1rem;
    line-height: 1.85;
    opacity: 0.92;
    max-width: 38rem;
}

.home-studio-perks {
    list-style: none;
    padding: 0;
    margin: 0 0 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.home-studio-perks li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 700;
    opacity: 0.95;
}

.home-studio-perks .icon-svg {
    color: #FED7AA;
    flex-shrink: 0;
}

.home-studio-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.home-studio-actions .btn-hero-primary {
    background: linear-gradient(135deg, #fff, #FFF7ED);
    color: #9A3412 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.home-studio-actions .btn-hero-primary:hover {
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    color: #7C2D12 !important;
}

.home-studio-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0.85;
}

.home-studio-banner-visual {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-studio-mock {
    position: absolute;
    width: min(240px, 90%);
    height: 170px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    padding: 1rem;
    display: grid;
    gap: 0.55rem;
    transform: rotate(-4deg);
}

.home-studio-mock-bar {
    display: block;
    height: 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.35);
    width: 72%;
}

.home-studio-mock-bar--short {
    width: 48%;
}

.home-studio-mock-card {
    display: block;
    height: 52px;
    border-radius: 12px;
    background: rgba(249, 115, 22, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-studio-mock-card--sm {
    height: 36px;
    width: 65%;
    background: rgba(14, 165, 233, 0.3);
}

.home-studio-icon-main {
    position: relative;
    z-index: 2;
    animation: mascotBounce 5s ease-in-out infinite;
}

.home-studio-icon-main .icon-box {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.home-studio-float {
    position: absolute;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.home-studio-float-1 {
    top: 12%;
    right: 8%;
    animation-delay: -1s;
}

.home-studio-float-2 {
    bottom: 14%;
    left: 6%;
    animation-delay: -2.5s;
}

@media (max-width: 900px) {
    .home-studio-banner {
        padding: 1.5rem 1.25rem;
    }

    .home-studio-banner-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .home-studio-banner-visual {
        min-height: 180px;
        order: -1;
    }

    .home-studio-banner-content {
        text-align: center;
    }

    .home-studio-banner-content p {
        margin-inline: auto;
    }

    .home-studio-perks {
        align-items: center;
    }

    .home-studio-actions {
        justify-content: center;
    }
}

.parents-card-mock {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 1.75rem;
    text-align: center;
    min-width: 220px;
    animation: mascotBounce 5s ease-in-out infinite;
}

.parents-card-mock span {
    display: block;
    font-weight: 700;
    margin: 0.75rem 0 1rem;
    font-size: 0.9rem;
}

.mock-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.5rem;
    height: 80px;
}

.mock-bars span {
    display: block;
    width: 28px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 6px 6px 0 0;
    margin: 0;
    animation: barGrow 1.5s ease backwards;
}

.mock-bars span:nth-child(1) { animation-delay: 0.1s; }
.mock-bars span:nth-child(2) { animation-delay: 0.2s; }
.mock-bars span:nth-child(3) { animation-delay: 0.3s; }
.mock-bars span:nth-child(4) { animation-delay: 0.4s; }

@keyframes barGrow {
    from { height: 0 !important; }
}

/* Legacy path card compat */
.path-card {
    background: var(--gradient-card);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: inherit;
    border: 3px solid transparent;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.path-card .path-icon { margin-bottom: 1rem; }
.path-card h3 { margin-bottom: 0.35rem; }
.path-card p { color: var(--text-light); font-size: 0.9rem; }
.path-card .path-meta {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
}

/* ── Inner pages (global premium) ── */
.page-hero {
    background: linear-gradient(160deg, #FFF7ED 0%, #FFF0F6 45%, #E8FFFE 100%);
    padding: 2.5rem 0 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(21, 34, 56, 0.08);
}

.page-hero h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #1A202C;
    margin: 0.5rem 0;
}

.page-hero p {
    color: #718096;
    font-size: 1.05rem;
    margin: 0;
}

.hero-premium--hub {
    padding: 2rem 0 1.75rem;
    margin-bottom: 0;
}

.hero-premium--hub .hero-content {
    gap: 1.5rem;
}

.hero-premium--hub h1 {
    font-size: clamp(1.6rem, 3.2vw, 2.35rem);
}

.hero-premium--hub .hero-desc {
    font-size: 1rem;
    max-width: 36rem;
}

.hero-premium--hub .hero-mascot-wrap {
    max-width: 220px;
}

.hub-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
}

.hub-hero-back:hover {
    opacity: 0.85;
}

.hero-trust--hub {
    margin-top: 0.5rem;
}

.hero-trust--hub .trust-pill {
    font-size: 0.78rem;
    padding: 0.35rem 0.65rem;
}

.filter-tabs-premium .filter-tab {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.section-tight {
    padding: 2rem 0 3rem;
}

.container-narrow {
    max-width: 720px;
}

.page-actions {
    text-align: center;
    margin-top: 1.5rem;
}

.login-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #FFFBEB, #FFF7ED);
    border: 1px solid rgba(21, 34, 56, 0.15);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #4A5568;
    font-weight: 600;
}

.login-notice a {
    color: var(--primary);
    font-weight: 800;
}

.login-notice-hero {
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 1.5rem;
}

.login-notice-hero strong {
    display: block;
    color: #1A202C;
    margin-bottom: 0.25rem;
}

.content-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.content-card-premium {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.content-card-premium:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(21, 34, 56, 0.12);
}

.content-card-premium .content-card-header {
    padding: 1.5rem;
    text-align: center;
}

.content-card-premium .content-card-body {
    padding: 0 1.25rem 1rem;
    flex: 1;
}

.content-card-premium .content-card-body h3 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.content-card-premium .content-card-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-tabs-premium {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-tabs-premium .filter-tab {
    border: 1px solid rgba(21, 34, 56, 0.15);
    background: white;
    border-radius: 50px;
    padding: 0.5rem 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tabs-premium .filter-tab.active,
.filter-tabs-premium .filter-tab:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.profile-card-premium {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(21, 34, 56, 0.1);
    border: 1px solid rgba(21, 34, 56, 0.08);
    margin-bottom: 1.5rem;
    text-align: center;
}

.profile-parent-link {
    color: #718096;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.level-bar-profile {
    margin-bottom: 1.5rem;
}

.stats-profile {
    grid-template-columns: repeat(3, 1fr);
}

.child-login-info {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: linear-gradient(135deg, #FFF7ED, #E6FFFA);
    border: 1px solid rgba(21, 34, 56, 0.15);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.child-login-info code {
    background: white;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--primary);
}

/* ═══════════════════════════════════════
   NAVBAR — Premium responsive
   ═══════════════════════════════════════ */

.navbar-premium {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(21, 34, 56, 0.12);
    box-shadow: 0 4px 24px rgba(21, 34, 56, 0.06);
    padding: 0;
}

.navbar-premium .nav-container {
    max-width: 1280px;
    padding: 0.65rem 1.25rem;
    gap: 1rem;
}

.navbar-premium .logo {
    z-index: 1102;
    flex-shrink: 0;
}

.navbar-premium .logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF7ED, #E6FFFA);
    box-shadow: 0 4px 12px rgba(21, 34, 56, 0.15);
    animation: none;
}

.navbar-premium .logo-icon .mascot-svg {
    width: 40px;
    height: 40px;
}

.navbar-premium .logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
}

.navbar-premium .logo-sub {
    font-weight: 600;
    color: #718096;
}

/* Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: #FFF7ED;
    border: 1px solid rgba(21, 34, 56, 0.15);
    border-radius: 12px;
    cursor: pointer;
    z-index: 1102;
    transition: background 0.2s;
}

.nav-toggle:hover {
    background: #FFEDD5;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    margin: 0 auto;
    transition: transform 0.3s, opacity 0.3s;
}

.navbar-premium.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.navbar-premium.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.navbar-premium.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 32, 44, 0.45);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(2px);
}

.navbar-premium.nav-open .nav-overlay {
    display: block;
    opacity: 1;
}

/* Panel — desktop inline */
.nav-panel {
    display: flex;
    align-items: center;
}

.nav-panel-head {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav-group-label,
.nav-separator {
    display: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 50px;
    text-decoration: none;
    color: #4A5568;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: #FFF7ED;
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(21, 34, 56, 0.3);
}

.nav-link.active .nav-icon {
    color: white;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
    list-style: none;
}

.nav-dropdown-toggle {
    cursor: pointer;
    font-family: inherit;
    background: none;
    border: none;
    width: auto;
}

.nav-chevron {
    transition: transform 0.25s;
    opacity: 0.7;
}

.nav-dropdown.open .nav-chevron,
.nav-dropdown.is-active.open .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown.is-active > .nav-dropdown-toggle {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px rgba(21, 34, 56, 0.3);
}

.nav-dropdown.is-active > .nav-dropdown-toggle .nav-icon,
.nav-dropdown.is-active > .nav-dropdown-toggle .nav-chevron {
    color: white;
}

.nav-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    min-width: 210px;
    background: white;
    border: 1px solid rgba(21, 34, 56, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(21, 34, 56, 0.15);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    text-decoration: none;
    color: #4A5568;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.nav-dropdown-item:hover {
    background: #FFF7ED;
    color: var(--primary);
}

.nav-dropdown-item.active {
    background: var(--primary);
    color: white;
}

@media (min-width: 1025px) {
    .nav-dropdown-menu {
        position: absolute;
        top: calc(100% + 0.45rem);
        right: 0;
        z-index: 1200;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-dropdown:hover > .nav-dropdown-toggle,
    .nav-dropdown.open > .nav-dropdown-toggle {
        background: #FFF7ED;
        color: var(--primary);
    }

    .nav-dropdown.is-active:hover > .nav-dropdown-toggle,
    .nav-dropdown.is-active.open > .nav-dropdown-toggle {
        background: var(--primary);
        color: white;
    }
}

.nav-icon {
    flex-shrink: 0;
    opacity: 0.85;
}

.nav-cta.nav-child-login {
    background: linear-gradient(135deg, #0EA5E9, #152238);
    color: white !important;
    border: none;
    box-shadow: 0 4px 14px rgba(21, 34, 56, 0.25);
}

.nav-cta.nav-child-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(21, 34, 56, 0.35);
    background: linear-gradient(135deg, #0EA5E9, #152238);
    color: white;
}

.nav-cta.nav-login {
    background: linear-gradient(135deg, var(--secondary), #FF8CB0);
    color: white !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}

.nav-cta.nav-login:hover {
    color: white;
    transform: translateY(-1px);
}

.nav-cta-secondary {
    background: white;
    border: 2px solid rgba(21, 34, 56, 0.2) !important;
    color: var(--primary) !important;
}

.nav-cta-secondary:hover,
.nav-cta-secondary.active {
    background: #FFF7ED !important;
    color: var(--primary) !important;
}

.nav-child-shell {
    display: contents;
}

.nav-child-row {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.nav-child-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    background: linear-gradient(145deg, #FFF7ED, #FFEDD5);
    border: 2px solid rgba(249, 115, 22, 0.22);
    border-radius: 50%;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 12px rgba(249, 115, 22, 0.12);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.nav-child-card:hover {
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, 0.45);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.2);
}

.nav-child-card.active {
    border-color: var(--secondary);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.28);
}

.nav-child-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F7FAFC;
    border: 1px solid rgba(113, 128, 150, 0.2);
    color: #718096;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-child-logout:hover {
    background: #FEE2E2;
    border-color: rgba(229, 62, 62, 0.25);
    color: #C53030;
}

.nav-child-avatar {
    flex-shrink: 0;
    position: relative;
}

.nav-child-avatar .icon-box {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFEDD5, #FFF7ED);
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.18);
}

.nav-child-avatar .icon-box-svg {
    width: 20px;
    height: 20px;
}

.nav-child-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
    line-height: 1.2;
}

.nav-child-name {
    font-weight: 800;
    font-size: 0.88rem;
    color: #4C1D95;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-child-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-child-level,
.nav-child-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #718096;
}

.nav-child-stars {
    color: #D69E2E;
}

.nav-child-go {
    display: none;
    flex-shrink: 0;
    color: var(--primary);
    opacity: 0.6;
}

body.nav-locked {
    overflow: hidden;
    position: fixed;
    width: 100%;
    inset-inline: 0;
}

/* Tablet — compact desktop */
@media (max-width: 1200px) and (min-width: 1025px) {
    .nav-link {
        padding: 0.45rem 0.65rem;
        font-size: 0.82rem;
    }

    .nav-link span {
        display: none;
    }

    .nav-dropdown-toggle span {
        display: none;
    }

    .nav-link .nav-icon {
        width: 20px;
        height: 20px;
    }

    .nav-child-card {
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .nav-child-avatar .icon-box {
        width: 32px;
        height: 32px;
    }
}

/* Mobile + Tablet drawer */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }

    .nav-panel {
        position: fixed;
        top: 0;
        right: 0;
        width: min(340px, 100%);
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        background: white;
        z-index: 1101;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
    }

    .navbar-premium.nav-open .nav-panel {
        transform: translateX(0);
    }

    .nav-panel-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(21, 34, 56, 0.1);
        background: linear-gradient(135deg, #FFF7ED, #FFF0F6);
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .nav-panel-title {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-weight: 800;
        color: var(--primary);
        font-size: 1rem;
    }

    .nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: none;
        background: white;
        border-radius: 10px;
        cursor: pointer;
        color: var(--primary);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 1rem 1rem 2rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .nav-links li {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .nav-group-label {
        display: block;
        font-size: 0.75rem;
        font-weight: 800;
        color: #A0AEC0;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        padding: 0.75rem 0.5rem 0.35rem;
        margin-top: 0.5rem;
    }

    .nav-group-label:first-child {
        margin-top: 0;
    }

    .nav-separator {
        display: block;
        height: 1px;
        background: rgba(21, 34, 56, 0.1);
        margin: 0.75rem 0.5rem;
        list-style: none;
    }

    .nav-link {
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: 14px;
        font-size: 1rem;
        justify-content: flex-start;
    }

    .nav-link span {
        display: inline !important;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        padding: 0.85rem 1rem;
        border-radius: 14px;
        font-size: 1rem;
        justify-content: flex-start;
        text-align: right;
    }

    .nav-dropdown-menu {
        display: none;
        position: static;
        min-width: 0;
        width: 100%;
        margin: 0.15rem 0 0.5rem;
        padding: 0.35rem;
        background: #FFF7ED;
        border: 1px solid rgba(21, 34, 56, 0.1);
        box-shadow: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .nav-cta {
        margin-top: 0.25rem;
        text-align: center;
        justify-content: center;
    }

    .nav-child-row {
        width: auto;
        max-width: 100%;
        min-width: 0;
        padding: 0;
    }

    .nav-child-shell {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        width: auto;
        max-width: 100%;
        min-width: 0;
    }

    .nav-child-card {
        flex: 0 0 auto;
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        overflow: visible;
    }

    .nav-child-card:hover {
        transform: translateY(-1px);
    }

    .nav-child-avatar .icon-box {
        width: 36px;
        height: 36px;
    }

    .nav-child-avatar .icon-box-svg {
        width: 22px;
        height: 22px;
    }

    .nav-child-logout {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        align-self: center;
        border-radius: 50%;
        background: #fff;
        border: 1px solid rgba(249, 115, 22, 0.15);
        box-shadow: 0 2px 8px rgba(249, 115, 22, 0.08);
    }

    .nav-cta-secondary {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .nav-cta {
        margin-top: 0.25rem;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .navbar-premium .logo-sub {
        display: none;
    }

    .navbar-premium .nav-container {
        padding: 0.55rem 0.85rem;
    }

    .nav-panel {
        width: 100%;
        max-width: 100%;
    }

    .nav-links {
        padding: 0.85rem 0.75rem 1.5rem;
    }

    .nav-child-shell {
        gap: 0.45rem;
    }

    .nav-child-card {
        width: 42px;
        height: 42px;
        padding: 0;
    }

    .nav-child-avatar .icon-box {
        width: 34px;
        height: 34px;
    }

    .nav-child-logout {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }
}

.auth-page-premium {
    background: linear-gradient(160deg, #FFF7ED, #FFF0F6, #E8FFFE);
}

.auth-card-premium {
    max-width: 440px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(21, 34, 56, 0.15);
}

.auth-mascot {
    text-align: center;
    margin-bottom: 1rem;
}

.auth-mascot .mascot-svg {
    width: 90px;
    height: 90px;
    margin: 0 auto;
}

.auth-help-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #F7FAFC;
    border-radius: 12px;
    text-align: right;
    font-size: 0.88rem;
    color: #718096;
}

.auth-help-box h4 {
    margin: 0 0 0.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.child-pick-grid {
    display: grid;
    gap: 0.75rem;
}

.child-pick-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    font-family: var(--font);
    font-weight: 700;
    transition: all 0.2s;
}

.child-pick-btn:hover {
    border-color: var(--primary);
    background: #FFF7ED;
}

.story-reader-premium {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(21, 34, 56, 0.1);
}

.edu-youtube-host {
    display: none;
    margin: 0 auto 1rem;
    max-width: 360px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.edu-youtube-host.is-active {
    display: block;
}

.edu-youtube-iframe {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
}

.admin-youtube-preview {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.admin-youtube-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.logo-mascot {
    display: block;
}

.filter-tabs a.filter-tab {
    text-decoration: none;
    color: inherit;
}

/* Plans / Packages */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.plan-card {
    position: relative;
    background: white;
    border: 1px solid rgba(21, 34, 56, 0.12);
    border-radius: 24px;
    padding: 2rem 1.75rem;
    text-align: center;
    box-shadow: 0 8px 30px rgba(21, 34, 56, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(21, 34, 56, 0.14);
}

.plan-featured {
    border: 2px solid var(--primary);
    box-shadow: 0 12px 40px rgba(21, 34, 56, 0.18);
    transform: scale(1.02);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.85rem;
    background: linear-gradient(135deg, var(--primary), #1A2942);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 50px;
    white-space: nowrap;
}

.plan-icon {
    margin-bottom: 1rem;
}

.plan-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #2D3748;
    margin: 0 0 0.75rem;
}

.plan-price {
    margin-bottom: 1.5rem;
}

.plan-amount {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.plan-currency {
    font-size: 1rem;
    font-weight: 700;
    color: #718096;
    margin-right: 0.15rem;
}

.plan-period {
    display: block;
    font-size: 0.85rem;
    color: #A0AEC0;
    margin-top: 0.25rem;
}

.plan-currency-note {
    display: block;
    font-size: 0.78rem;
    color: #718096;
    margin-top: 0.15rem;
}

.plan-features {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    text-align: right;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    color: #4A5568;
    border-bottom: 1px solid rgba(21, 34, 56, 0.06);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features .icon-svg {
    flex-shrink: 0;
    color: #48BB78;
}

.plan-cta {
    width: 100%;
    justify-content: center;
}

.plans-faq .section-head {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.faq-card {
    background: white;
    border: 1px solid rgba(21, 34, 56, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
}

.faq-card h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.faq-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.6;
}

.plans-cta-box {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #FFF7ED, #FFF0F6, #E8FFFE);
    border-radius: 24px;
    border: 1px solid rgba(21, 34, 56, 0.12);
}

.plans-cta-box h2 {
    margin: 0.75rem 0 0.5rem;
    font-size: 1.75rem;
}

.plans-cta-box p {
    color: #718096;
    margin-bottom: 1.5rem;
}

.plans-cta-box .icon-svg {
    color: var(--primary);
}

@media (max-width: 768px) {
    .plan-featured {
        transform: none;
    }
}

/* Parent gate */
.parent-gate-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 55, 72, 0.75);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}

.parent-gate-card {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    animation: fadeInUp 0.3s ease;
}

.parent-gate-icon {
    margin-bottom: 1rem;
    color: var(--primary);
}

.parent-gate-question {
    font-size: 1.25rem;
    margin: 1.25rem 0;
}

.parent-gate-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #E2E8F0;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.parent-gate-input:focus {
    outline: none;
    border-color: var(--primary);
}

.parent-gate-error {
    color: #E53E3E;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.parent-gate-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1rem;
}

@media (max-width: 1100px) {
    .features-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }
    .subject-grid-premium {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-premium {
        padding: 2rem 0 1.5rem;
    }
    .hero-premium .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .hero-visual { order: -1; }
    .hero-stage {
        width: 260px;
        height: 260px;
    }
    .hero-mascot {
        width: 220px;
        height: 220px;
    }
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-premium .hero-buttons,
    .hero-trust {
        justify-content: center;
    }
    .hero-spark { display: none; }

    .home-section { padding: 3rem 0; }
    .path-cards,
    .path-cards-premium { grid-template-columns: 1fr; }
    .stats-premium { grid-template-columns: repeat(2, 1fr); }
    .age-grid-premium { grid-template-columns: 1fr; }
    .features-grid-premium { grid-template-columns: 1fr; }
    .subject-grid-premium { grid-template-columns: repeat(2, 1fr); }

    .safety-banner-premium {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .safety-deco {
        flex-direction: row;
        justify-content: center;
    }

    .parents-cta {
        grid-template-columns: 1fr;
        padding: 2rem;
        text-align: center;
    }
    .parents-perks { align-items: center; }
    .parents-buttons { justify-content: center; }

    .progress-quick { justify-content: center; }
    .trust-badges { justify-content: center; }
}

@media (max-width: 480px) {
    .stats-premium { grid-template-columns: 1fr; }
    .subject-grid-premium { grid-template-columns: repeat(2, 1fr); }
    .path-card-num { font-size: 2rem; }
}

/* ── Parent area premium ── */
.parent-section {
    padding-top: 0;
}

.parent-info-card {
    background: linear-gradient(135deg, #FFF7ED, #E8FFFE);
    border: 1px solid rgba(21, 34, 56, 0.15);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.parent-info-card code {
    background: white;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.dashboard-grid .profile-card {
    background: white;
    border: 1px solid rgba(21, 34, 56, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(21, 34, 56, 0.08);
}

.child-card {
    border: 1px solid rgba(21, 34, 56, 0.1);
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(21, 34, 56, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.child-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(21, 34, 56, 0.12);
}

.legal-page-premium {
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(21, 34, 56, 0.1);
    box-shadow: 0 8px 30px rgba(21, 34, 56, 0.06);
    margin: 0 auto 3rem;
    max-width: 860px;
}

/* ── Admin panel ── */
.admin-body {
    background: #F7F8FC;
    min-height: 100vh;
}

.admin-body.admin-sidebar-lock {
    overflow: hidden;
}

.admin-shell {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 268px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid rgba(21, 34, 56, 0.1);
    box-shadow: -4px 0 24px rgba(21, 34, 56, 0.06);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 200;
}

.admin-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1.1rem 1rem 0.85rem;
    border-bottom: 1px solid #EDF2F7;
}

.admin-sidebar-brand {
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1rem;
}

.admin-sidebar-close {
    display: none;
    border: none;
    background: #F7FAFC;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    color: #4A5568;
    align-items: center;
    justify-content: center;
}

.admin-sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.75rem 1rem 0;
    padding: 0.55rem 0.75rem;
    background: #F7FAFC;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4A5568;
}

.admin-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 0.65rem 1.25rem;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-section {
    margin-bottom: 1rem;
}

.admin-sidebar-section-muted {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #EDF2F7;
}

.admin-sidebar-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: #A0AEC0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.75rem 0.5rem;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 0.75rem;
    margin-bottom: 0.2rem;
    border-radius: 12px;
    text-decoration: none;
    color: #4A5568;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}

.admin-sidebar-link:hover {
    background: #F7FAFC;
    color: var(--primary);
}

.admin-sidebar-link.active {
    background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
    color: var(--primary);
    box-shadow: inset 3px 0 0 var(--primary);
}

.admin-sidebar-icon {
    flex-shrink: 0;
    opacity: 0.85;
}

.admin-sidebar-backdrop {
    display: none;
}

.admin-shell-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    background: white;
    border-bottom: 1px solid rgba(21, 34, 56, 0.12);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-topbar-inner {
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.admin-sidebar-toggle {
    display: none;
    border: none;
    background: #FFF7ED;
    color: var(--primary);
    border-radius: 12px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-topbar-title {
    display: none;
}

.admin-topbar-title h1 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #2D3748;
}

@media (max-width: 960px) {
    .admin-topbar-title {
        display: block;
    }

    .admin-topbar {
        display: block;
    }
}

@media (min-width: 961px) {
    .admin-topbar {
        display: none;
    }
}

.admin-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
}

@media (max-width: 960px) {
    .admin-sidebar {
        position: fixed;
        right: 0;
        top: 0;
        transform: translateX(100%);
        transition: transform 0.25s ease;
    }

    .admin-shell.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-sidebar-close {
        display: inline-flex;
    }

    .admin-sidebar-toggle {
        display: inline-flex;
    }

    .admin-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(26, 32, 44, 0.45);
        z-index: 150;
    }

    .admin-sidebar-backdrop[hidden] {
        display: none;
    }
}

.admin-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #faf9ff 100%);
    border: 1px solid rgba(21, 34, 56, 0.1);
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(21, 34, 56, 0.06);
}

.admin-page-head-text {
    flex: 1;
    min-width: 220px;
}

.admin-page-head h1 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.35rem;
    color: #2D3748;
    font-size: 1.45rem;
}

.admin-page-head p {
    color: #718096;
    margin: 0;
    line-height: 1.65;
    font-size: 0.92rem;
}

.admin-page-head p a {
    color: var(--primary);
    font-weight: 700;
}

.admin-page-head-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.admin-alert {
    margin-bottom: 1.25rem;
}

.admin-plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.admin-plan-card {
    background: white;
    border: 1px solid rgba(21, 34, 56, 0.12);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(21, 34, 56, 0.06);
}

.admin-plan-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(21, 34, 56, 0.08);
}

.admin-plan-currency {
    display: block;
    font-size: 0.78rem;
    color: #718096;
}

.admin-plan-slug {
    display: block;
    font-size: 0.72rem;
    color: #A0AEC0;
    margin: 0.15rem 0;
}

.admin-new-plan-card {
    margin-bottom: 1.5rem;
    border: 2px dashed rgba(21, 34, 56, 0.35);
    background: linear-gradient(135deg, #fff 0%, #faf9ff 100%);
}

.admin-plan-edit-card {
    border-top: 3px solid var(--plan-accent, #152238);
}

.admin-plan-card .form-group {
    margin-bottom: 0.85rem;
}

.admin-plan-card label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: #4A5568;
}

.admin-plan-card input,
.admin-plan-card textarea {
    width: 100%;
    padding: 0.6rem 0.85rem;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.admin-checks {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.75rem 0 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-checks label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.admin-save {
    width: 100%;
    justify-content: center;
}

@media (max-width: 600px) {
    .form-row-2 { grid-template-columns: 1fr; }
    .admin-user { width: 100%; margin-right: 0; }
}

/* Subscription & locked content */
.parent-plan-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(21, 34, 56, 0.08), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(21, 34, 56, 0.15);
    border-radius: 16px;
}

.parent-plan-banner strong {
    display: block;
    font-size: 1.05rem;
    color: #2D3748;
}

.parent-plan-banner p {
    margin: 0.2rem 0 0;
    font-size: 0.9rem;
    color: #718096;
}

.parent-plan-banner .btn {
    margin-right: auto;
}

.content-locked {
    position: relative;
    opacity: 0.72;
    pointer-events: auto;
}

.content-locked .content-card-header,
.content-locked .content-card-body {
    filter: grayscale(0.35);
}

.content-lock-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: rgba(45, 55, 72, 0.85);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
}

.packages-locked-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
    background: #FFF5F5;
    border: 1px solid #FEB2B2;
    border-radius: 14px;
    color: #C53030;
}

.packages-locked-alert p {
    margin: 0;
    font-weight: 600;
}

.reports-upgrade-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border: 1px dashed rgba(21, 34, 56, 0.25);
    border-radius: 20px;
}

.reports-upgrade-card h3 {
    margin: 1rem 0 0.5rem;
}

.admin-table-wrap {
    overflow: hidden;
    background: white;
    border: 1px solid rgba(21, 34, 56, 0.12);
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(21, 34, 56, 0.06);
    margin-bottom: 1.25rem;
}

.admin-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.15rem;
    border-bottom: 1px solid #EDF2F7;
    background: #FAFBFE;
}

.admin-table-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #2D3748;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-table-count {
    color: #A0AEC0;
    font-weight: 700;
    font-size: 0.88rem;
}

.admin-table-scroll {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
    padding: 0.75rem 1rem;
    text-align: right;
    border-bottom: 1px solid #EDF2F7;
    vertical-align: middle;
}

.admin-table th {
    background: #F7FAFC;
    font-weight: 700;
    color: #4A5568;
    white-space: nowrap;
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0;
}

.admin-table tbody tr:hover td {
    background: #FAFBFF;
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.85rem 1.15rem;
    border-top: 1px solid #EDF2F7;
    background: #FAFBFE;
}

.admin-table-toolbar .admin-pagination {
    padding: 0;
    border: none;
    background: transparent;
    flex: 1;
    justify-content: flex-end;
}

.admin-pagination-summary {
    font-size: 0.82rem;
    font-weight: 700;
    color: #718096;
    white-space: nowrap;
}

.admin-pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.admin-page-btn,
.admin-page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.65rem;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    background: #fff;
    color: #4A5568;
    font-weight: 700;
    font-size: 0.82rem;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.admin-page-btn:hover,
.admin-page-num:hover {
    border-color: rgba(21, 34, 56, 0.35);
    color: var(--primary);
    background: #F7F5FF;
}

.admin-page-num.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    pointer-events: none;
}

.admin-segment-tabs {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.35rem;
    background: #EDF2F7;
    border-radius: 14px;
    margin-bottom: 1rem;
}

.admin-segment-tab {
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    color: #4A5568;
    transition: background 0.15s, color 0.15s;
}

.admin-segment-tab:hover {
    color: var(--primary);
}

.admin-segment-tab.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(21, 34, 56, 0.12);
}

.admin-tools-panel {
    margin-bottom: 1rem;
    background: #fff;
    border: 1px dashed rgba(21, 34, 56, 0.25);
    border-radius: 14px;
    overflow: hidden;
}

.admin-tools-panel summary {
    cursor: pointer;
    padding: 0.85rem 1.1rem;
    font-weight: 700;
    color: #4A5568;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    user-select: none;
}

.admin-tools-panel summary::-webkit-details-marker {
    display: none;
}

.admin-tools-panel[open] summary {
    border-bottom: 1px solid #EDF2F7;
    background: #FAFBFE;
}

.admin-tools-panel-body {
    padding: 1rem 1.1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-table select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: inherit;
}

.admin-content-tabs {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.35rem;
    background: #EDF2F7;
    border-radius: 14px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-content-tab {
    text-decoration: none;
    color: #4A5568;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    border: none;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.15s, color 0.15s;
}

.admin-content-tab:hover {
    color: var(--primary);
}

.admin-content-tab.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(21, 34, 56, 0.12);
}

.admin-content-title {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 220px;
}

.admin-content-title p {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: #718096;
    font-weight: 500;
}

.admin-content-slug {
    display: block;
    font-size: 0.75rem;
    color: #A0AEC0;
    font-family: monospace;
}

.admin-content-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.admin-inline-form {
    display: inline;
    margin: 0;
}

.admin-subscriber-plan-form {
    margin: 0;
}

.admin-plan-select {
    min-width: 140px;
    padding: 0.4rem 0.55rem;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    background: #fff;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.admin-billing-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.5rem;
    border-radius: 18px;
    border: 2px solid rgba(21, 34, 56, 0.1);
    background: #fff;
    box-shadow: 0 8px 28px rgba(21, 34, 56, 0.08);
}

.admin-billing-panel.is-free {
    border-color: rgba(249, 115, 22, 0.25);
    background: linear-gradient(135deg, #fff 0%, #FFF7ED 100%);
}

.admin-billing-panel.is-paid {
    border-color: rgba(21, 34, 56, 0.2);
    background: linear-gradient(135deg, #fff 0%, #F1F5F9 100%);
}

.admin-billing-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 260px;
}

.admin-billing-panel-head h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1A202C;
}

.admin-billing-panel-head p {
    margin: 0;
    font-size: 0.9rem;
    color: #718096;
    line-height: 1.7;
    max-width: 42rem;
}

.admin-billing-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.admin-flash {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.admin-flash-success {
    background: #F0FFF4;
    border: 1px solid rgba(72, 187, 120, 0.35);
    color: #276749;
}

.admin-flash-error {
    background: #FFF5F5;
    border: 1px solid rgba(229, 62, 62, 0.25);
    color: #C53030;
}

.plan-amount-free {
    font-size: 1.75rem;
    color: #F97316;
}

.admin-dashboard-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(21, 34, 56, 0.1);
    text-decoration: none;
    color: #2D3748;
    transition: transform 0.15s, box-shadow 0.15s;
}

.admin-dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(21, 34, 56, 0.12);
    color: var(--primary);
}

.admin-dashboard-card strong {
    font-size: 1rem;
}

.admin-dashboard-card span {
    font-size: 0.82rem;
    color: #718096;
    font-weight: 600;
}

.btn-danger {
    background: #FFF5F5;
    color: #C53030;
    border: 1px solid #FEB2B2;
}

.btn-danger:hover {
    background: #FED7D7;
    color: #9B2C2C;
}

.admin-danger-zone {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid #FEB2B2;
    border-radius: 12px;
    background: #FFFAFA;
    max-width: 640px;
}

.admin-danger-zone h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #C53030;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.admin-danger-zone p {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    color: #718096;
    line-height: 1.6;
}

.admin-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-tag-premium { background: #FFF5F5; color: #C53030; }
.admin-tag-free { background: #F0FFF4; color: #276749; }
.admin-tag-active { background: #EBF8FF; color: #2B6CB0; }
.admin-tag-hidden { background: #EDF2F7; color: #718096; }

.admin-row-muted { opacity: 0.65; }

.admin-content-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #718096;
}

.admin-content-form { max-width: 640px; }

.admin-audio-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.admin-audio-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #EDF2F7;
}

.admin-audio-list audio {
    max-width: 220px;
    height: 32px;
}

/* Payment gateways & checkout */
.admin-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.admin-section-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.payment-gateway-admin-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-gateway-admin-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem;
    background: white;
    border: 1px solid rgba(21, 34, 56, 0.12);
    border-radius: 14px;
}

.payment-gateway-admin-item.is-inactive {
    opacity: 0.65;
}

.payment-gateway-admin-meta {
    flex: 1;
    min-width: 0;
}

.payment-gateway-admin-meta strong {
    display: block;
}

.payment-gateway-admin-meta span {
    display: block;
    font-size: 0.85rem;
    color: #718096;
}

.payment-gateway-admin-actions {
    display: flex;
    gap: 0.35rem;
}

.admin-filter-tabs {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.35rem;
    background: #EDF2F7;
    border-radius: 14px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.admin-filter-tabs a {
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    background: transparent;
    border: none;
    font-weight: 700;
    font-size: 0.88rem;
    color: #4A5568;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.admin-filter-tabs a:hover {
    color: var(--primary);
}

.admin-filter-tabs a.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(21, 34, 56, 0.12);
}

.payment-status {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.payment-status-pending { background: #FEF3C7; color: #92400E; }
.payment-status-approved { background: #D1FAE5; color: #065F46; }
.payment-status-rejected { background: #FEE2E2; color: #991B1B; }

.admin-payment-review-form {
    min-width: 180px;
}

.admin-note-input {
    width: 100%;
    padding: 0.35rem 0.5rem;
    margin-bottom: 0.35rem;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 0.82rem;
    font-family: inherit;
}

.admin-payment-btns {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.payment-pending-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.5rem;
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    border-radius: 14px;
    color: #92400E;
}

.payment-pending-banner p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

.payment-history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.payment-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: white;
    border: 1px solid #EDF2F7;
    border-radius: 12px;
    font-size: 0.9rem;
}

.payment-history-item span {
    display: block;
    color: #718096;
    font-size: 0.82rem;
}

.checkout-page {
    padding-top: 0;
}

.checkout-wrap {
    max-width: 820px;
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.checkout-step {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #A0AEC0;
    background: #F7FAFC;
    border-radius: 999px;
}

.checkout-step.active {
    color: #152238;
    background: #EBF4FF;
    border: 1px solid rgba(21, 34, 56, 0.2);
}

.checkout-step.done {
    color: #38A169;
    background: #F0FFF4;
}

.checkout-step-line {
    width: 24px;
    height: 2px;
    background: #E2E8F0;
    border-radius: 1px;
}

.checkout-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--plan-color) 8%, white) 100%);
    border: 1px solid color-mix(in srgb, var(--plan-color) 22%, transparent);
    border-radius: 18px;
    box-shadow: 0 8px 24px color-mix(in srgb, var(--plan-color) 10%, transparent);
}

.checkout-summary h2 {
    margin: 0.1rem 0 0;
    font-size: 1.35rem;
}

.checkout-amount {
    margin: 0.35rem 0 0;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.checkout-amount strong {
    font-size: 1.6rem;
    color: var(--plan-color);
}

.checkout-currency {
    font-size: 0.92rem;
    color: #718096;
}

.checkout-payment-section {
    margin-bottom: 1.5rem;
}

.checkout-section-head {
    margin-bottom: 1rem;
}

.checkout-section-head h3 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.checkout-section-head p {
    margin: 0;
    font-size: 0.88rem;
    color: #718096;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 0.85rem;
}

.payment-methods-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.payment-method-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: 1.15rem 0.85rem 1rem;
    background: linear-gradient(180deg, #fff 0%, #FFFBF5 100%);
    border: 2px solid #E8ECF4;
    border-radius: 18px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
    min-height: 148px;
}

.payment-method-tile--static {
    cursor: default;
    min-height: 120px;
    padding: 1rem 0.75rem;
}

.payment-method-tile:hover {
    border-color: rgba(21, 34, 56, 0.45);
    box-shadow: 0 8px 22px rgba(21, 34, 56, 0.1);
    transform: translateY(-2px);
}

.payment-method-tile.is-selected {
    border-color: #152238;
    background: linear-gradient(180deg, #fff 0%, #f3f0ff 100%);
    box-shadow: 0 10px 28px rgba(21, 34, 56, 0.16);
}

.payment-method-tile__check {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    color: #152238;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s, transform 0.2s;
}

.payment-method-tile.is-selected .payment-method-tile__check {
    opacity: 1;
    transform: scale(1);
}

.payment-method-tile__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid #EDF2F7;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.payment-method-tile__name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #2D3748;
    line-height: 1.35;
}

.payment-method-tile__hint {
    font-size: 0.72rem;
    font-weight: 700;
    color: #A0AEC0;
}

.payment-method-tile.is-selected .payment-method-tile__hint {
    color: #152238;
}

.checkout-gateways {
    margin-bottom: 0;
}

.payment-gateway-img,
.payment-gateway-img-admin,
.payment-gateway-img-checkout,
.payment-gateway-img-checkout-lg {
    object-fit: contain;
    background: #F7FAFC;
    border-radius: 10px;
}

.payment-gateway-img-admin {
    width: 56px;
    height: 56px;
    padding: 4px;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.payment-gateway-img-checkout {
    width: 72px;
    height: 72px;
    padding: 6px;
}

.payment-gateway-img-checkout-lg {
    width: 100px;
    height: 100px;
    padding: 8px;
    border: 1px solid #E2E8F0;
}

.payment-gateway-img-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: #A0AEC0;
    background: #EDF2F7;
    border-radius: 10px;
}

.payment-missing-image {
    display: block;
    font-size: 0.78rem;
    color: #C53030;
    margin-top: 0.2rem;
}

.payment-image-preview,
.payment-image-preview-new {
    margin-top: 0.75rem;
}

.form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #718096;
}

.checkout-gateway-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.checkout-gateway-hero h3 {
    margin: 0;
}

.checkout-payment-panel {
    padding: 1.35rem 1.5rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid rgba(21, 34, 56, 0.14);
    border-radius: 20px;
    box-shadow: 0 10px 32px rgba(21, 34, 56, 0.08);
}

.checkout-payment-panel-head {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #EDF2F7;
}

.checkout-panel-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #152238;
    margin-bottom: 0.2rem;
}

.checkout-gateway-hero p {
    margin: 0.25rem 0 0;
    font-size: 0.88rem;
    color: #718096;
}

.checkout-gateway-hero-logo {
    flex-shrink: 0;
    padding: 0.5rem;
    background: #F7FAFC;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
}

.checkout-account-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1.1rem 1.15rem;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, #f7f5ff 0%, #eef2ff 100%);
    border: 1px dashed rgba(21, 34, 56, 0.35);
    border-radius: 14px;
}

.checkout-account-box-inner {
    flex: 1;
    min-width: 200px;
}

.checkout-steps-block {
    margin-bottom: 1.15rem;
    padding: 1rem 1.1rem;
    background: #F7FAFC;
    border-radius: 14px;
}

.checkout-steps-block h4 {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.checkout-confirm-form {
    padding-top: 0.5rem;
    border-top: 1px solid #EDF2F7;
}

.checkout-trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #718096;
}

.checkout-trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.checkout-pick-banner {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.15rem;
    background: #FFFBEB;
    border: 1px solid #F6E05E;
    border-radius: 14px;
    color: #744210;
}

.checkout-pick-banner p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.checkout-account-label {
    font-size: 0.85rem;
    color: #718096;
    width: 100%;
}

.checkout-account-number {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2D3748;
    flex: 1;
}

.checkout-instructions {
    margin: 0;
    padding: 0 1.25rem 0 0;
    color: #4A5568;
    line-height: 1.75;
    font-size: 0.9rem;
}

.checkout-instructions li {
    margin-bottom: 0.35rem;
}

.checkout-form .form-group {
    margin-bottom: 1rem;
}

.checkout-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.checkout-form input,
.checkout-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
}

.checkout-form-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.checkout-hint,
.checkout-pick-hint {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: #718096;
}

.checkout-empty {
    text-align: center;
    padding: 2rem 1rem;
}

@media (max-width: 900px) {
    .admin-two-col { grid-template-columns: 1fr; }
}

/* Subscription page (parent) */
.subscription-page {
    padding-top: 0;
}

.subscription-container {
    max-width: 1080px;
}

.subscription-alert {
    margin-bottom: 1.25rem;
}

.subscription-current-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.75rem;
    background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--plan-color) 8%, white) 100%);
    border: 1px solid color-mix(in srgb, var(--plan-color) 25%, transparent);
    border-radius: 20px;
    box-shadow: 0 10px 32px color-mix(in srgb, var(--plan-color) 12%, transparent);
}

.subscription-current-card::before {
    content: '';
    position: absolute;
    top: -40px;
    left: -40px;
    width: 120px;
    height: 120px;
    background: color-mix(in srgb, var(--plan-color) 15%, transparent);
    border-radius: 50%;
    pointer-events: none;
}

.subscription-current-main {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    position: relative;
    z-index: 1;
}

.subscription-current-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--plan-color);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.15rem;
}

.subscription-current-card h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #2D3748;
}

.subscription-current-price {
    margin: 0.35rem 0 0;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.subscription-current-price strong {
    font-size: 1.35rem;
    color: var(--plan-color);
}

.subscription-current-price span {
    font-size: 0.9rem;
    color: #718096;
}

.subscription-stat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.15rem;
    position: relative;
    z-index: 1;
}

.subscription-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(21, 34, 56, 0.1);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4A5568;
}

.subscription-chip.chip-on {
    background: #F0FFF4;
    border-color: #9AE6B4;
    color: #276749;
}

.subscription-chip.chip-off {
    background: #FFF5F5;
    border-color: #FEB2B2;
    color: #9B2C2C;
}

.subscription-pending {
    align-items: center;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.subscription-pending-icon {
    color: #D69E2E;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.subscription-ref {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    font-size: 0.85rem;
}

.payment-methods-showcase {
    margin-bottom: 2rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #FFF7ED 100%);
    border: 1px solid rgba(21, 34, 56, 0.12);
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(21, 34, 56, 0.07);
}

.payment-methods-showcase-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.payment-methods-showcase-head h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.payment-methods-showcase-head p {
    margin: 0;
    font-size: 0.88rem;
    color: #718096;
}

.payment-methods-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: #F0FFF4;
    color: #276749;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.payment-methods-footnote {
    margin: 1rem 0 0;
    font-size: 0.82rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.payment-gateway-img-pill {
    width: 32px;
    height: 32px;
    padding: 3px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
}

.subscription-plans-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.subscription-plans-header h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.subscription-plans-header p {
    margin: 0;
    color: #718096;
    font-size: 0.92rem;
}

.subscription-plans-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.subscription-plan-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem 1.35rem 1.35rem;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.subscription-plan-card:hover {
    transform: translateY(-3px);
}

.subscription-plan-card.plan-current {
    border: 2px solid var(--plan-accent);
    background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--plan-accent) 6%, white) 100%);
    box-shadow: 0 8px 28px color-mix(in srgb, var(--plan-accent) 15%, transparent);
}

.subscription-plan-card.plan-featured:not(.plan-current) {
    border: 2px solid var(--primary);
    transform: scale(1.03);
    z-index: 1;
}

.plan-badge-current {
    background: linear-gradient(135deg, #48BB78, #38A169);
}

.subscription-plan-limit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin: 0 0 1rem;
    padding: 0.3rem 0.75rem;
    background: #F7FAFC;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4A5568;
}

.subscription-plan-features {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    text-align: right;
    flex: 1;
}

.subscription-plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.35rem 0;
    font-size: 0.84rem;
    color: #4A5568;
    line-height: 1.45;
    border-bottom: 1px dashed rgba(21, 34, 56, 0.08);
}

.subscription-plan-features li:last-child {
    border-bottom: none;
}

.subscription-plan-features .icon-svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: #48BB78;
}

.subscription-plan-cta {
    margin-top: auto;
}

.subscription-plan-cta form {
    width: 100%;
}

.subscription-btn-current,
.subscription-btn-wait {
    opacity: 0.85;
    cursor: default;
    pointer-events: none;
}

.subscription-history {
    margin-top: 2.5rem;
}

.subscription-history h3 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.subscription-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.15rem 1.25rem;
    background: linear-gradient(135deg, #F0FFF4, #EBF8FF);
    border: 1px solid #9AE6B4;
    border-radius: 16px;
}

.subscription-info-card .icon-svg {
    color: #38A169;
    flex-shrink: 0;
}

.subscription-info-card strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #276749;
}

.subscription-info-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #2F855A;
    line-height: 1.55;
}

.subscription-footer-actions {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 960px) {
    .subscription-plans-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .subscription-plan-card.plan-featured:not(.plan-current) {
        transform: none;
    }
}

@media (max-width: 600px) {
    .subscription-current-main {
        flex-direction: column;
        text-align: center;
    }

    .subscription-stat-chips {
        justify-content: center;
    }

    .subscription-payment-strip-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Learn hub — lessons, games, stories, path */
.learn-hub-section {
    padding-top: 0;
}

.learn-hub-level {
    margin-bottom: 1.25rem;
}

.learn-hub-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.learn-hub-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: white;
    border: 1px solid rgba(21, 34, 56, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(21, 34, 56, 0.05);
}

.learn-hub-stat strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: #2D3748;
    line-height: 1.1;
}

.learn-hub-stat span {
    font-size: 0.78rem;
    color: #718096;
    font-weight: 600;
}

.learn-subject-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.learn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4A5568;
    text-decoration: none;
    transition: all 0.2s;
}

.learn-pill:hover,
.learn-pill.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.learn-hub-grid .content-card {
    position: relative;
}

.content-xp-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    z-index: 2;
    padding: 0.2rem 0.5rem;
    background: rgba(21, 34, 56, 0.9);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 999px;
}

.content-done-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.5rem;
    background: #48BB78;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
}

.content-card-done {
    border-color: rgba(72, 187, 120, 0.35);
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.12);
}

.content-card-done .content-card-header {
    opacity: 0.92;
}

/* Path premium */
.path-page .path-age-tabs {
    margin-bottom: 1.75rem;
}

.path-timeline-premium {
    position: relative;
    padding-right: 0.5rem;
}

.path-timeline-premium::before {
    content: '';
    position: absolute;
    right: 1.15rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), #0EA5E9);
    border-radius: 3px;
    opacity: 0.25;
}

.path-level-card {
    background: white;
    border: 1px solid rgba(21, 34, 56, 0.12);
    border-radius: 18px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 6px 22px rgba(21, 34, 56, 0.06);
    border-right: 3px solid var(--path-color, var(--primary));
}

.path-level-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.path-level-head h3 {
    margin: 0;
    font-size: 1.1rem;
}

.path-level-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--path-color, var(--primary));
    background: color-mix(in srgb, var(--path-color, var(--primary)) 10%, white);
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.path-item-locked {
    opacity: 0.65;
    background: #FFF5F5 !important;
    border-color: #FEB2B2 !important;
}

.path-item.done {
    background: #F0FFF4;
    border-color: #9AE6B4;
    color: #276749;
    font-weight: 700;
}

.path-item-game {
    border-right-color: #0EA5E9;
}

.path-item-story {
    border-right-color: #1A2942;
}

@media (max-width: 700px) {
    .learn-hub-stats {
        grid-template-columns: 1fr;
    }
}

/* Certificate page */
.certificate-page {
    padding-top: 0;
}

.container-wide {
    max-width: 960px;
}

.certificate-alert {
    margin-bottom: 1.25rem;
}

.certificate-locked-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border: 1px solid rgba(21, 34, 56, 0.12);
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(21, 34, 56, 0.08);
    margin-bottom: 1.5rem;
}

.certificate-screen {
    margin-bottom: 1.75rem;
    padding: 0.5rem 0;
}

.certificate-screen .cert-owl {
    flex-shrink: 0;
}

.certificate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.certificate-hint {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #718096;
}

.certificate-progress-hint {
    margin: 1rem 0 1.25rem;
    color: #718096;
    font-size: 0.9rem;
}

.certificate-profile-card {
    text-align: center;
}

.certificate-profile-text {
    color: #4A5568;
    margin-bottom: 1rem;
}

.certificate-profile-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #718096;
}

.stats-profile {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.speak-btn.speaking {
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: white;
    border-color: #F97316;
}
