:root {
    --kz-navy: #0A1D4E;
    --kz-royal: #0B4EB8;
    --kz-blue: #0D74E7;
    --kz-sky: #25BEFF;
    --kz-sky-soft: #E8F6FF;
    --kz-gold: #FFD426;
    --kz-orange: #FF941A;
    --kz-pink: #FF1F7A;
    --kz-green: #2CC84D;
    --kz-purple: #7B42F6;
    --kz-red: #E53935;
    --bg-cream: #F6FAFF;
    --bg-soft: #EBF5FF;
    --ink-navy: #0A1D4E;
    --ink-muted: #4A5B82;
    --pink: #FF1F7A;
    --pink-soft: #FFE4F0;
    --mint: #2CC84D;
    --mint-soft: #E1FAEA;
    --butter: #FFD426;
    --butter-soft: #FFF6CC;
    --sky: #18B4FF;
    --sky-soft: #E3F4FF;
    --lavender: #7B42F6;
    --lavender-soft: #EFE9FE;
    --radius-lg: 26px;
    --radius-md: 16px;
    --radius-pill: 999px;
    --shadow-soft: 0 12px 34px rgba(10, 29, 78, 0.09);
    --shadow-card: 0 14px 32px rgba(11, 99, 214, 0.16);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-cream);
    color: var(--ink-navy);
    font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    max-width: 100%;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, .brand-font {
    font-family: 'Fredoka', 'Nunito', 'Segoe UI', sans-serif;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-7px); }
}

@keyframes pulseRing {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 116, 231, 0.38); }
    50% { box-shadow: 0 0 0 14px rgba(13, 116, 231, 0); }
}

.float-anim {
    animation: floatSlow 3.4s ease-in-out infinite;
}

.gradient-text {
    background: linear-gradient(135deg, #0B4EB8 0%, #0D74E7 45%, #FF1F7A 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.kz-highlight-pink {
    color: var(--kz-pink);
}

/* ================= KIDZONE BUTTONS ================= */
.btn-kid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 24px;
    border-radius: var(--radius-pill);
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    text-decoration: none;
}

.btn-kid:hover {
    transform: translateY(-2px);
}

.btn-kid:active {
    transform: scale(0.97);
}

.btn-kid-primary {
    background: linear-gradient(180deg, #27B6FF 0%, #0B63D6 100%);
    color: #fff;
    border: 2px solid #0A1D4E;
    box-shadow: 0 6px 0 #0A1D4E, 0 12px 22px rgba(11, 99, 214, 0.28);
}

.btn-kid-primary:hover {
    color: #fff;
    box-shadow: 0 8px 0 #0A1D4E, 0 16px 28px rgba(11, 99, 214, 0.36);
}

.btn-kid-gold {
    background: linear-gradient(180deg, #FFE853 0%, #FFAE00 100%);
    color: #0A1D4E;
    border: 2px solid #0A1D4E;
    box-shadow: 0 5px 0 #0A1D4E, 0 10px 20px rgba(255, 174, 0, 0.3);
}

.btn-kid-gold:hover {
    color: #0A1D4E;
    box-shadow: 0 7px 0 #0A1D4E, 0 14px 24px rgba(255, 174, 0, 0.4);
}

.btn-kid-mint {
    background: linear-gradient(180deg, #4FE06D 0%, #1CA83D 100%);
    color: #fff;
    border: 2px solid #0A1D4E;
    box-shadow: 0 5px 0 #0A1D4E, 0 10px 20px rgba(44, 200, 77, 0.28);
}

.btn-kid-mint:hover {
    color: #fff;
}

.btn-kid-soft {
    background: var(--kz-sky-soft);
    color: var(--kz-royal);
    border: 2px solid #BFE3FF;
}

.btn-kid-outline {
    background: #fff;
    border: 2px solid #C6DCF7;
    color: var(--kz-navy);
}

.btn-kid-outline:hover {
    border-color: var(--kz-blue);
    color: var(--kz-royal);
    background: #F4F9FF;
}

/* ================= CARDS & RIBBONS ================= */
.kid-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 2px solid rgba(13, 116, 231, 0.14);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.kid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(10, 29, 78, 0.12);
}

.kz-ribbon-banner {
    display: inline-block;
    background: linear-gradient(180deg, #FFE44D 0%, #FFC107 100%);
    color: #0A1D4E;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    padding: 8px 26px;
    border-radius: 999px;
    border: 2px solid #F5A300;
    box-shadow: 0 6px 16px rgba(255, 174, 0, 0.28);
    position: relative;
}

.kz-ribbon-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, #FFE659 0%, #FFB800 100%);
    color: #0A1D4E;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1.5px solid #0A1D4E;
}

.kz-bottom-star-strip {
    background: linear-gradient(90deg, #06256E 0%, #0D4BB8 50%, #06256E 100%);
    color: #fff;
    border-top: 4px solid #FFD426;
    border-bottom: 4px solid #FFD426;
    padding: 14px 20px;
    text-align: center;
    font-family: 'Fredoka', sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 28px rgba(6, 37, 110, 0.25);
}

.kz-bottom-star-strip .kz-gold-txt {
    color: #FFE234;
}

/* ================= PUBLIC NAVBAR & FOOTER ================= */
.public-navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 3px solid #D6ECFF;
    box-shadow: 0 4px 20px rgba(10, 29, 78, 0.06);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.public-navbar .nav-link {
    color: var(--kz-navy);
    font-family: 'Fredoka', 'Nunito', sans-serif;
    padding: 8px 14px;
    border-radius: 999px;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.public-navbar .nav-link:hover {
    background: #E8F4FF;
    color: var(--kz-blue);
}

/* Mobile Navbar Toggle & Drawer */
.kz-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #EBF5FF 0%, #D4EBFF 100%);
    border: 2px solid #0A1D4E !important;
    color: #0A1D4E;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 3px 0 #0A1D4E;
    transition: transform 0.14s ease, background-color 0.14s ease;
}

.kz-mobile-menu-btn[aria-expanded="true"] {
    background: linear-gradient(180deg, #FFE853 0%, #FFAE00 100%);
}

.kz-mobile-menu-btn:active {
    transform: translateY(1px);
}

.kz-mobile-quick-cta {
    min-height: 36px;
    padding: 6px 12px;
    font-size: 0.8rem;
    box-shadow: 0 3px 0 #0A1D4E;
}

@media (max-width: 991.98px) {
    .kz-logo-wordmark {
        height: 38px;
    }

    .public-navbar .navbar-collapse {
        margin-top: 10px;
        padding: 14px;
        border-radius: 22px;
        background: #F4FAFF;
        border: 2px solid #BFE3FF;
        box-shadow: 0 14px 32px rgba(10, 29, 78, 0.14);
    }

    .public-navbar .navbar-nav {
        gap: 6px;
    }

    .public-navbar .nav-link {
        padding: 10px 14px;
        background: #fff;
        border: 1.5px solid #DDEEFF;
        border-radius: 14px;
    }

    body.kz-public-body {
        padding-bottom: calc(68px + var(--safe-bottom));
    }
}

.public-mobile-bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {
    .public-mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(64px + var(--safe-bottom));
        padding-bottom: var(--safe-bottom);
        background: linear-gradient(180deg, #093594 0%, #051D54 100%);
        border-top: 3px solid #FFD426;
        box-shadow: 0 -8px 24px rgba(5, 29, 84, 0.25);
        z-index: 1040;
        justify-content: space-around;
        align-items: center;
    }

    .public-mobile-bottom-nav .mobile-nav-item {
        color: rgba(255, 255, 255, 0.85);
    }

    .public-mobile-bottom-nav .mobile-nav-item.active {
        color: #FFD426 !important;
    }
}

.brand-wordmark {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.kz-logo-wordmark {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.brand-wordmark:hover .kz-logo-wordmark {
    transform: scale(1.03);
}

.kz-logo-footer {
    height: 58px;
    background: rgba(255, 255, 255, 0.94);
    padding: 6px 14px;
    border-radius: 18px;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink-navy);
}

.brand-pill img {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    box-shadow: 0 4px 12px rgba(11, 99, 214, 0.22);
}

.kz-footer {
    background: linear-gradient(180deg, #08328C 0%, #051B4E 100%);
    color: #fff;
    border-top: 5px solid #FFD426;
}

.kz-footer a:hover {
    color: #FFD426 !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.78) !important;
}

/* ================= HERO & BANNER SHOWCASE ================= */
.hero-section {
    background: radial-gradient(circle at 12% 18%, rgba(56, 200, 255, 0.28) 0%, transparent 45%),
                radial-gradient(circle at 88% 12%, rgba(255, 212, 38, 0.24) 0%, transparent 42%),
                radial-gradient(circle at 50% 95%, rgba(44, 200, 77, 0.14) 0%, transparent 50%),
                linear-gradient(180deg, #EBF6FF 0%, #F8FBFF 100%);
    padding: 36px 0 32px;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: var(--radius-pill);
    background: #fff;
    border: 2px solid #75C8FF;
    font-weight: 800;
    font-size: 0.86rem;
    color: var(--kz-royal);
    box-shadow: 0 8px 20px rgba(13, 116, 231, 0.14);
}

/* Glossy Banner Feature Pills (matching Banner 1) */
.kz-feature-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px 10px 10px;
    border-radius: 999px;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.96rem;
    box-shadow: 0 8px 18px rgba(10, 29, 78, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.65);
    transition: transform 0.18s ease;
}

.kz-feature-pill:hover {
    transform: translateX(4px);
}

.kz-feature-pill-ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}

.kz-pill-blue { background: linear-gradient(180deg, #2EC4FF 0%, #0066E6 100%); }
.kz-pill-green { background: linear-gradient(180deg, #6AE042 0%, #1CA33B 100%); }
.kz-pill-purple { background: linear-gradient(180deg, #A36BFF 0%, #6328DB 100%); }
.kz-pill-orange { background: linear-gradient(180deg, #FFB830 0%, #FF7700 100%); }
.kz-pill-pink { background: linear-gradient(180deg, #FF5CA1 0%, #E0116B 100%); }

/* Banner Carousel Frame */
.kz-banner-stage {
    background: linear-gradient(135deg, #0D6EFD, #25BEFF);
    padding: 8px;
    border-radius: 30px;
    border: 3px solid #0A1D4E;
    box-shadow: 0 18px 44px rgba(10, 29, 78, 0.24);
    position: relative;
}

.kz-banner-stage .carousel-inner {
    border-radius: 22px;
    overflow: hidden;
    background: #0A1D4E;
}

.kz-banner-stage img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    display: block;
}

.kz-banner-caption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    background: rgba(10, 29, 78, 0.84);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 212, 38, 0.6);
    border-radius: 16px;
    padding: 10px 14px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.kz-banner-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 4px 2px;
    scrollbar-width: none;
}

.kz-banner-thumbs::-webkit-scrollbar {
    display: none;
}

.kz-banner-thumb-btn {
    flex: 0 0 auto;
    border: 2.5px solid transparent;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    width: 78px;
    height: 52px;
    cursor: pointer;
    background: #0A1D4E;
    opacity: 0.72;
    transition: opacity 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.kz-banner-thumb-btn.active,
.kz-banner-thumb-btn:hover {
    opacity: 1;
    border-color: #FFD426;
    transform: translateY(-2px);
}

.kz-banner-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 6 Glossy Subject Circles (matching Banner 1) */
.kz-subject-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: transform 0.18s ease;
}

.kz-subject-circle-card:hover {
    transform: translateY(-5px) scale(1.04);
}

.kz-subject-orb {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.76rem;
    border: 3px solid #fff;
    box-shadow: 0 10px 20px rgba(10, 29, 78, 0.2), inset 0 -6px 10px rgba(0, 0, 0, 0.18);
    text-align: center;
    line-height: 1.05;
}

.kz-subject-orb .orb-ico {
    font-size: 1.55rem;
    margin-bottom: 2px;
}

/* ================= HOMEPAGE INTERACTIVE VIDEO PANEL ================= */
.kz-video-panel-wrap {
    background: linear-gradient(155deg, #07266E 0%, #0E56C4 55%, #072A7A 100%);
    border-radius: 32px;
    padding: 24px;
    border: 4px solid #FFD426;
    box-shadow: 0 24px 54px rgba(10, 29, 78, 0.25);
    color: #fff;
}

.kz-tablet-bezel {
    background: #0B1533;
    border-radius: 26px;
    padding: 12px;
    border: 3px solid #38C8FF;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    position: relative;
}

.kz-tablet-screen {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #07122B;
    aspect-ratio: 9 / 14;
    max-height: 540px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .kz-tablet-screen {
        aspect-ratio: 9 / 14;
        max-height: 460px;
    }
}

.kz-tablet-screen video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #061438;
    display: block;
}

.kz-panel-playlist {
    max-height: 510px;
    overflow-y: auto;
    padding-right: 4px;
}

.kz-panel-playlist::-webkit-scrollbar {
    width: 6px;
}

.kz-panel-playlist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
}

.kz-playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
    text-align: left;
    width: 100%;
}

.kz-playlist-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(3px);
}

.kz-playlist-item.active {
    background: rgba(255, 212, 38, 0.22);
    border-color: #FFD426;
    box-shadow: 0 6px 18px rgba(255, 212, 38, 0.22);
}

.kz-playlist-item img {
    width: 96px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid rgba(255, 212, 38, 0.45);
}

/* ================= COMPARISON & LEARNING WORLDS ================= */
.kz-compare-danger {
    background: #fff;
    border-radius: 28px;
    border: 3px solid #E53935;
    box-shadow: 0 14px 32px rgba(229, 57, 53, 0.12);
    overflow: hidden;
}

.kz-compare-safe {
    background: #fff;
    border-radius: 28px;
    border: 3px solid #1CA83D;
    box-shadow: 0 14px 32px rgba(28, 168, 61, 0.14);
    overflow: hidden;
}

.kz-banner-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid #D8ECFF;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.kz-banner-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.kz-banner-card img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}

.pastel-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 800;
}

.category-tile {
    border-radius: 24px;
    padding: 20px 14px;
    text-align: center;
    background: #fff;
    border: 2px solid #DDEEFF;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: var(--kz-blue);
    box-shadow: var(--shadow-card);
}

.category-emoji-bubble {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    margin-bottom: 12px;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
}

/* Pricing Cards (INR) */
.plan-card {
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow-soft);
    border: 2px solid #DDEEFF;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(10, 29, 78, 0.14);
}

.plan-card-featured {
    background: linear-gradient(180deg, #FFFFFF 0%, #EEF9FF 100%);
    border-color: #0D74E7;
    box-shadow: 0 18px 40px rgba(13, 116, 231, 0.2);
}

.plan-price-inr {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ink-navy);
}

/* Video thumbnail card */
.video-thumb-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 2px solid #E1F0FF;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.video-thumb-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.video-thumb-media {
    position: relative;
    aspect-ratio: 16 / 11;
    background: linear-gradient(135deg, #D9F0FF, #FFF6CC);
    overflow: hidden;
}

.video-thumb-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-thumb-card:hover .video-thumb-media img {
    transform: scale(1.04);
}

.duration-pill {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(10, 29, 78, 0.88);
    color: #FFD426;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.play-fab {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--kz-blue);
    border: 2.5px solid #0A1D4E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    animation: pulseRing 2.4s infinite;
}

/* ================= KIDS PANEL AUTH SHOWCASE (Login / Register / Forgot) ================= */
.auth-showcase {
    min-height: calc(100dvh - 80px);
    display: flex;
    align-items: center;
    padding: 28px 0 44px;
    background: radial-gradient(circle at 12% 20%, rgba(56, 200, 255, 0.25) 0%, transparent 45%),
                radial-gradient(circle at 88% 15%, rgba(255, 212, 38, 0.22) 0%, transparent 45%),
                radial-gradient(circle at 75% 88%, rgba(44, 200, 77, 0.15) 0%, transparent 45%),
                #F4F9FF;
}

.auth-split-card {
    background: #fff;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(10, 29, 78, 0.14);
    border: 3px solid #CDE7FF;
}

.auth-art-pane {
    background: linear-gradient(160deg, #072B78 0%, #0D6EFD 55%, #25BEFF 100%);
    color: #fff;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-art-pane::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 212, 38, 0.14);
    bottom: -70px;
    right: -60px;
    pointer-events: none;
}

.auth-mascot-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.auth-mascot-chip {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 212, 38, 0.65);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
}

.auth-form-pane {
    padding: 36px 34px;
}

@media (max-width: 767.98px) {
    .auth-showcase {
        padding: 16px 0 32px;
    }
    .auth-art-pane {
        padding: 22px 20px;
    }
    .auth-form-pane {
        padding: 24px 20px;
    }
}

.kid-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.kid-input-icon {
    position: absolute;
    left: 16px;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}

.kid-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px 12px 44px;
    border-radius: 18px;
    border: 2px solid #D7E9FC;
    background: #F9FCFF;
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink-navy);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.kid-input:focus {
    outline: none;
    border-color: var(--kz-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(13, 116, 231, 0.16);
}

.kid-input-plain {
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 2px solid #D7E9FC;
    background: #F9FCFF;
    font-size: 1rem;
    font-weight: 600;
}

.kid-input-plain:focus {
    border-color: var(--kz-blue);
    box-shadow: 0 0 0 4px rgba(13, 116, 231, 0.16);
}

.kid-eye-btn {
    position: absolute;
    right: 10px;
    background: #E8F4FF;
    border: none;
    border-radius: 12px;
    min-width: 38px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}

.demo-fill-btn {
    background: #EFF7FF;
    border: 1.5px dashed #25BEFF;
    color: #0A3D8F;
    border-radius: 14px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease;
    min-height: 40px;
}

.demo-fill-btn:hover {
    background: #DCEEFF;
    transform: translateY(-1px);
}

/* ================= USER APP SHELL (Desktop Sidebar + Mobile Header + Bottom Nav) ================= */
.user-shell {
    display: flex;
    min-height: 100dvh;
    background: var(--bg-cream);
}

.user-sidebar {
    width: 264px;
    flex-shrink: 0;
    background: #fff;
    border-right: 3px solid #DDEEFF;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100dvh;
    z-index: 1020;
}

.kz-child-badge {
    background: linear-gradient(135deg, #E8F5FF 0%, #FFF7D6 100%);
    border: 1.5px solid #BFE3FF;
    color: var(--kz-navy);
}

.user-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 16px;
    font-weight: 700;
    color: var(--ink-muted);
    margin-bottom: 4px;
    min-height: 44px;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.user-nav-link:hover {
    background: #EBF5FF;
    color: var(--kz-blue);
    transform: translateX(2px);
}

.user-nav-link.active {
    background: linear-gradient(135deg, #0D74E7, #25BEFF);
    color: #fff;
    box-shadow: 0 8px 18px rgba(13, 116, 231, 0.28);
}

.user-main {
    flex: 1;
    min-width: 0;
    padding-bottom: 24px;
}

.user-main.feed-mode {
    padding: 0;
    background: linear-gradient(160deg, #061D52 0%, #0A388F 55%, #061C4D 100%);
    height: 100dvh;
    overflow: hidden;
    position: relative;
}

.user-mobile-header {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 991.98px) {
    .user-sidebar {
        display: none;
    }

    .user-mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(10px);
        border-bottom: 2px solid #D6ECFF;
        position: sticky;
        top: 0;
        z-index: 1025;
    }

    .user-main {
        padding-bottom: calc(74px + var(--safe-bottom));
    }

    .user-main.feed-mode {
        padding-bottom: 0;
        height: 100dvh;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: calc(64px + var(--safe-bottom));
        padding-bottom: var(--safe-bottom);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        border-top: 2px solid #D6ECFF;
        z-index: 1040;
        justify-content: space-around;
        align-items: center;
    }

    .mobile-bottom-nav.feed-dark {
        background: rgba(7, 29, 79, 0.95);
        border-top-color: rgba(255, 212, 38, 0.35);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: 800;
        color: var(--ink-muted);
        min-width: 56px;
        min-height: 44px;
        gap: 2px;
    }

    .mobile-bottom-nav.feed-dark .mobile-nav-item {
        color: rgba(255, 255, 255, 0.78);
    }

    .mobile-nav-item.active {
        color: #FFD426 !important;
    }

    .mobile-nav-item .nav-ico {
        font-size: 1.25rem;
        line-height: 1;
    }
}

/* ================= KIDZONE VIDEO PANEL (Vertical Reels Feed) ================= */
.kz-feed-top-strip {
    position: fixed;
    top: 12px;
    left: 276px;
    right: 16px;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}

.kz-feed-top-strip > * {
    pointer-events: auto;
}

.kz-feed-cat-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    max-width: 65vw;
    scrollbar-width: none;
    padding: 4px 2px;
}

.kz-feed-cat-bar::-webkit-scrollbar {
    display: none;
}

.kz-feed-cat-chip {
    flex: 0 0 auto;
    background: rgba(7, 29, 79, 0.78);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 800;
    transition: all 0.16s ease;
    text-decoration: none;
}

.kz-feed-cat-chip:hover,
.kz-feed-cat-chip.active {
    background: #FFD426;
    color: #0A1D4E;
    border-color: #0A1D4E;
}

.kz-screen-timer-pill {
    background: rgba(7, 29, 79, 0.85);
    border: 2px solid #FFD426;
    color: #FFD426;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .kz-feed-top-strip {
        left: 10px;
        right: 10px;
        top: 8px;
    }
    .kz-feed-cat-bar {
        max-width: 56vw;
    }
}

.reels-viewport {
    height: 100dvh;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    scrollbar-width: none;
    background: radial-gradient(circle at top, #1049B8 0%, #071D52 65%, #041236 100%);
}

.reels-viewport::-webkit-scrollbar {
    display: none;
}

.reel-slide {
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 60px 0 14px;
}

.reel-card {
    position: relative;
    height: calc(100dvh - 76px);
    max-height: 820px;
    width: min(100%, 440px);
    aspect-ratio: 9 / 16;
    border-radius: 28px;
    overflow: hidden;
    background: #081A47;
    border: 3px solid #38C8FF;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 212, 38, 0.35);
}

@media (max-width: 991.98px) {
    .reel-slide {
        padding: 0;
        height: 100dvh;
    }
    .reel-card {
        width: 100%;
        height: calc(100dvh - 64px - var(--safe-bottom));
        margin-bottom: calc(64px + var(--safe-bottom));
        max-height: none;
        border-radius: 0;
        border: none;
    }
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #061438;
}

.reel-top-bar {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    pointer-events: none;
}

.reel-top-bar > * {
    pointer-events: auto;
}

@media (max-width: 991.98px) {
    .reel-top-bar {
        top: 52px;
    }
}

.reel-pill-btn {
    background: rgba(7, 29, 79, 0.72);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1.5px solid rgba(255, 212, 38, 0.55);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    min-height: 36px;
}

.reel-gradient-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(to top, rgba(5, 19, 58, 0.94) 0%, rgba(5, 19, 58, 0.48) 55%, transparent 100%);
    pointer-events: none;
    z-index: 4;
}

.reel-overlay-info {
    position: absolute;
    left: 16px;
    right: 78px;
    bottom: 20px;
    z-index: 10;
    color: #fff;
}

.reel-actions-rail {
    position: absolute;
    right: 12px;
    bottom: 24px;
    z-index: 12;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.reel-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(7, 29, 79, 0.7);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.16s ease, background-color 0.16s ease;
}

.reel-action-btn:active {
    transform: scale(0.9);
}

.reel-action-btn.liked {
    background: rgba(255, 31, 122, 0.92);
    border-color: #FFD426;
}

.reel-action-btn.favorited {
    background: #FFD426;
    color: #0A1D4E;
    border-color: #fff;
}

.reel-action-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-top: -10px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.reel-center-feedback {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: rgba(7, 29, 79, 0.74);
    border: 2px solid #FFD426;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 11;
}

.reel-center-feedback.show {
    opacity: 1;
    transform: scale(1.06);
}

.reel-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(7, 29, 79, 0.55);
    color: #fff;
    z-index: 9;
    pointer-events: none;
}

.reel-fallback {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 28px;
    background: linear-gradient(160deg, #0D4BB8, #071D52);
    color: #fff;
    z-index: 15;
}

.reel-progress-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 5px;
    background: rgba(255, 255, 255, 0.22);
    z-index: 15;
}

.reel-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #25BEFF, #FFD426, #2CC84D);
    transition: width 0.15s linear;
}

.reel-desktop-nav {
    position: fixed;
    right: 24px;
    top: 52%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 30;
}

@media (max-width: 991.98px) {
    .reel-desktop-nav {
        display: none;
    }
}

/* ================= ADMIN SHELL ================= */
.admin-shell {
    display: flex;
    min-height: 100dvh;
    background: #F2F7FD;
}

.admin-sidebar {
    width: 256px;
    background: linear-gradient(180deg, #07266E 0%, #051845 100%);
    color: #E2ECFF;
    padding: 20px 14px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 3px solid #FFD426;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #C7DAFF;
    font-weight: 700;
    margin-bottom: 4px;
    min-height: 42px;
}

.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(255, 212, 38, 0.2);
    color: #FFD426;
}

.admin-main {
    flex: 1;
    min-width: 0;
    padding: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(10, 29, 78, 0.06);
    border-left: 5px solid var(--kz-blue);
}

.mini-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 160px;
    padding-top: 16px;
}

.mini-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.mini-bar-fill {
    width: 100%;
    max-width: 40px;
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, #25BEFF, #0B63D6);
    min-height: 6px;
}

.kid-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: #0A1D4E;
    border: 2px solid #FFD426;
    color: #fff;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.kid-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
