:root {
    --primary: #FFD700;
    --dark-bg: #1c1836;
    --bg-color: #1c1836;
    --text-color: #FFFFFF;
    --text-white: #FFFFFF;
    --text-dim: #94A3B8;
    --card-bg: rgba(40, 35, 70, 0.45);
    --navbar-bg: rgba(28, 24, 54, 0.95);
    --navbar-border: rgba(255, 255, 255, 0.05);
    --accent-indigo: #6366f1;

    /* Credentials Bar colors (Lighter purple/dark background by default - lightened by 2 tones) */
    --credentials-bg: linear-gradient(180deg, #3f356e 0%, #473c7d 100%);
    --credentials-border: rgba(255, 255, 255, 0.12);

    /* Pathway colors */
    --pathway-section-bg: #1c1836;
    --path-green: #58cc02;
    --path-green-dark: #46a302;
    --path-green-shadow: #3c8700;
    --path-gold: #FFD700;
    --path-gold-dark: #d4a500;

    /* Gray locked pathway steps (slate/gray style) */
    --path-locked: #576375;
    --path-locked-border: #78879c;
    --path-locked-shadow: #3b4554;

    /* Card/Price Box colors */
    --price-box-bg: rgba(255, 255, 255, 0.03);
    --price-box-border: rgba(255, 255, 255, 0.05);

    /* Footer */
    --footer-bg: linear-gradient(180deg, #14102c 0%, #0d0a21 100%);
    --footer-border: rgba(255, 255, 255, 0.06);

    /* Cloud colors */
    --cloud-bg: rgba(255, 255, 255, 0.07);
    --cloud-border: rgba(255, 255, 255, 0.25);
}

body.light-theme {
    --bg-color: #f8fafc;
    --text-color: #0f172a;
    --text-dim: #475569;
    --card-bg: rgba(255, 255, 255, 0.9);
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --navbar-border: rgba(0, 0, 0, 0.06);

    /* Credentials Bar colors (Light gray/blue background for light theme) */
    --credentials-bg: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    --credentials-border: rgba(0, 0, 0, 0.06);

    /* Pathway colors */
    --pathway-section-bg: linear-gradient(180deg, #f8fafc 0%, #eff6ff 50%, #e0f2fe 100%);

    /* Gray locked pathway steps in light theme */
    --path-locked: #94a3b8;
    --path-locked-border: #cbd5e1;
    --path-locked-shadow: #64748b;

    /* Card/Price Box colors */
    --price-box-bg: #ffffff;
    --price-box-border: rgba(0, 0, 0, 0.08);

    /* Footer */
    --footer-bg: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    --footer-border: rgba(0, 0, 0, 0.06);

    /* Cloud colors in light theme */
    --cloud-bg: #ffffff;
    --cloud-border: rgba(99, 102, 241, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Twinkling Stars Background Overlay */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 150px 100px, rgba(255, 255, 255, 0.95), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 80px 250px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 250px 180px, rgba(255, 255, 255, 0.85), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 320px 60px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 450px 300px, rgba(255, 255, 255, 0.95), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 600px 150px, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 750px 400px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 900px 200px, rgba(255, 255, 255, 0.95), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 1050px 350px, rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0));
    background-size: 1200px 600px;
    background-repeat: repeat;
    opacity: 0.45;
    pointer-events: none;
    z-index: 0;
    animation: twinkling-stars-anim 35s linear infinite;
}

@keyframes twinkling-stars-anim {
    0% {
        opacity: 0.25;
        background-position: 0 0;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 0.25;
        background-position: 1200px 600px;
    }
}

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
.navbar {
    height: 80px;
    background: var(--navbar-bg);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--navbar-border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

body.light-theme .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

body.light-theme .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--accent-indigo);
    color: var(--accent-indigo);
}

body.dark-theme .sun-icon {
    display: block;
}

body.dark-theme .moon-icon {
    display: none;
}

body.light-theme .sun-icon {
    display: none;
}

body.light-theme .moon-icon {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 35px;
}

.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
}

.logo-text span {
    color: var(--primary);
}

.lang-switcher {
    position: relative;
}

.custom-dropdown {
    position: relative;
    user-select: none;
    min-width: 80px;
}

.dropdown-trigger {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    background: rgba(13, 10, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    min-width: 130px;
}

.custom-dropdown.active .dropdown-menu {
    display: flex;
}

.dropdown-item {
    padding: 10px 18px;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
}

.dropdown-item.active {
    color: var(--primary);
    background: rgba(255, 215, 0, 0.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: var(--dark-bg) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
}

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */
.hero {
    padding: 180px 0 120px;
    background-color: var(--dark-bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    padding: 8px 20px;
    border-radius: 50px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.hero-content h1 {
    font-size: 4.8rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-white);
    letter-spacing: -2px;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    max-width: 580px;
    line-height: 1.6;
}

/* Modern Lead Form */
.hero-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 480px;
    margin-bottom: 24px;
}

.form-group input {
    width: 100%;
    background: rgba(22, 28, 45, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 18px 24px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(22, 28, 45, 0.9);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #16123f;
    border: none;
    padding: 18px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.45);
}

.social-login {
    max-width: 480px;
}

.btn-social {
    width: 100%;
    background: var(--text-white);
    color: #1f2937;
    border: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.btn-social:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
}

/* Trust Bar styling */
.hero-trust-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 440px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-dim);
    transition: all 0.3s ease;
    line-height: 1.4;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-white);
}

.trust-item strong {
    color: var(--primary);
}

.trust-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--primary);
}

/* Hero Illustration Panel */
.hero-visual-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    position: relative;
}

.hero-illustration {
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3));
    animation: float-illustration 6s ease-in-out infinite;
    z-index: 10;
}

/* ═══════════════════════════════════════════════
   CREDENTIALS BAR — Harmonized with dark theme
   Uses original logo colors, no invert filter
   ═══════════════════════════════════════════════ */
.credentials-bar {
    background: transparent;
    border: none;
    padding: 20px 0 10px 0; /* Tight padding to pull content up */
    position: relative;
    z-index: 10;
}

.credentials-bar h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 15px; /* Reduced margin */
    font-weight: 700;
    text-align: center;
}

.credentials-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 20px;
}

.credential-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    width: 125px;
    transition: all 0.3s ease;
}

.credential-item:hover {
    transform: translateY(-4px);
}

/* Keep original logo colors — just adjust brightness for dark bg */
.tag-logo-img {
    width: auto;
    object-fit: contain;
    opacity: 0.75;
    transition: all 0.3s ease;
}

.credential-item:hover .tag-logo-img {
    opacity: 1;
    transform: scale(1.06);
}

/* SVG logos — can safely invert to white */
.tag-logo-img.bc-logo {
    height: 32px;
    filter: invert(1);
    transition: filter 0.3s ease;
}

.tag-logo-img.toefl-logo {
    height: 52px;
    filter: invert(1);
    transition: filter 0.3s ease;
}

.tag-logo-img.google-logo {
    height: 38px;
}

.tag-logo-img.ibm-logo {
    height: 32px;
    filter: invert(1);
    transition: filter 0.3s ease;
}

.tag-logo-img.yale-logo {
    height: 122px;
    transition: filter 0.3s ease;
}

/* PNG logos — keep original colors, just brighten for dark bg */
.tag-logo-img.asu-logo {
    height: 38px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.tag-logo-img.montessori-logo {
    height: 65px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    padding: 6px;
    background: rgba(255, 255, 255, 0.85);
}

/* Light Theme overrides to prevent logos from disappearing on white bg */
body.light-theme .tag-logo-img.bc-logo {
    filter: none;
}

body.light-theme .tag-logo-img.toefl-logo {
    filter: none;
}

body.light-theme .tag-logo-img.ibm-logo {
    filter: none;
}

body.light-theme .tag-logo-img.yale-logo {
    filter: none;
}

/* Show original blue & gray colors, no invert filter */
body.light-theme .tag-logo-img.asu-logo {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

body.light-theme .tag-logo-img.montessori-logo {
    background: transparent;
    border-color: rgba(0, 0, 0, 0.1);
}

.logo-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1; /* Lighter text slate-300 */
    letter-spacing: 0.5px;
    margin-top: 4px;
    line-height: 1.3;
}

.credential-item:hover .logo-label {
    color: #ffffff; /* Brighter highlight */
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */
@keyframes spin-clockwise {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin-counter {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes float-illustration {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(0.8deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* ═══════════════════════════════════════════════
   CONTENT SECTIONS
   ═══════════════════════════════════════════════ */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.glass-bg {
    background: transparent;
    border-radius: 40px;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.center-title {
    text-align: center;
    margin-bottom: 50px;
}

.center-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Buttons */
.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-main,
.btn-outline {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    transition: 0.3s;
    display: inline-block;
}

.btn-main {
    background: var(--primary);
    color: #1c1836;
}

.btn-outline {
    border: 2px solid var(--text-dim);
    color: var(--text-color);
}

body.light-theme .btn-outline {
    color: var(--text-color);
    border-color: var(--text-dim);
}

/* Check list */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1.05rem;
    color: var(--text-dim);
}

.check-list li span:first-child {
    color: var(--primary);
    font-weight: 700;
}

/* Samples Cards */
.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card-link {
    background: var(--price-box-bg);
    padding: 30px;
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    text-align: center;
    border: 1px solid var(--price-box-border);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.card-link:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.card-link strong {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.card-link span {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════
   SPLIT INTERACTIVE PRICING V2
   ═══════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════
   SIDE-BY-SIDE CARDS & DETAILED MATRIX (SLACK STYLE)
   ═══════════════════════════════════════════════ */
.packages {
    background: var(--pathway-section-bg);
    position: relative;
    overflow: hidden;
    padding-bottom: 75px;
}

/* Compact overrides for packages section header */
.packages .center-title {
    margin-bottom: 10px;
}

.packages .center-title h2 {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.packages .center-title p {
    font-size: 0.92rem;
    margin-top: 0;
}

.price-rows-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    position: relative;
    z-index: 2;
}

.price-row-v3 {
    background: linear-gradient(135deg, rgba(26, 22, 64, 0.45) 0%, rgba(15, 10, 45, 0.65) 100%);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 10px 25px;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
}

.price-row-v3:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.price-row-v3.featured {
    border-color: rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, rgba(30, 26, 75, 0.5) 0%, rgba(15, 10, 50, 0.75) 100%);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.08);
}

.price-row-v3.featured:hover {
    border-color: rgba(99, 102, 241, 0.8);
}

/* Super VIP Golden Ticket Styling */
.price-row-v3.vip-stub {
    border-color: rgba(255, 215, 0, 0.35);
    background: linear-gradient(135deg, rgba(42, 34, 15, 0.55) 0%, rgba(15, 10, 45, 0.85) 100%);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.08);
}

.price-row-v3.vip-stub:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.16);
}

.price-row-v3.vip-stub h3 {
    background: linear-gradient(135deg, #FFF7C2 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-row-v3.vip-stub .price-col-cta {
    border-left: 2px dashed rgba(255, 215, 0, 0.25);
}

.price-row-v3.vip-stub .price-row-badge {
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary);
    border-color: rgba(255, 215, 0, 0.25);
}

.price-row-content {
    display: grid;
    grid-template-columns: 1.4fr 2fr 0.9fr;
    gap: 20px;
    align-items: center;
}

.price-col-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 4px;
}

.price-row-badge {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.price-row-badge.best {
    background: rgba(255, 215, 0, 0.12);
    color: var(--primary);
    border-color: rgba(255, 215, 0, 0.25);
}

.price-col-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.price-col-info p {
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.3;
    margin: 0;
}

.format-indicator {
    display: flex;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    align-items: center;
}

.format-label {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.format-val {
    color: var(--primary);
}

.price-col-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-self: center;
}

/* Summary line visible when collapsed */
.features-summary {
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-summary-icon {
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.features-summary-text {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.35;
}

/* Toggle button */
.btn-toggle-features {
    background: rgba(255, 215, 0, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.2);
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: flex-start;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.05);
    animation: bounceChevron 2s infinite;
}

.btn-toggle-features::after {
    content: "▼";
    font-size: 0.65rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-toggle-features:hover {
    background: rgba(255, 215, 0, 0.12);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.2);
    transform: translateY(-1px);
}

.btn-toggle-features.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: none;
}

.btn-toggle-features.active::after {
    content: "▲";
}

@keyframes bounceChevron {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 0 12px rgba(255, 215, 0, 0.05);
    }
    50% {
        transform: translateY(2px);
        box-shadow: 0 0 18px rgba(255, 215, 0, 0.25);
    }
}

/* Expandable features container */
.features-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.features-expand.open {
    max-height: 500px;
    opacity: 1;
    margin-top: 6px;
}

.features-expand ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.features-expand li,
.price-col-features li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.78rem;
    color: #e2e8f0;
    text-align: left;
    line-height: 1.3;
}

.features-expand li span,
.price-col-features li span {
    color: var(--primary);
    font-weight: 800;
    flex-shrink: 0;
}

.price-col-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-left: 2px dashed rgba(255, 255, 255, 0.15);
    padding-left: 30px;
}

/* Bookmarks Tabs for Self-Learning Row */
.book-tabs {
    position: absolute;
    top: 0;
    left: 40px;
    transform: translateY(-100%);
    display: flex;
    gap: 5px;
    z-index: 5;
}

.book-tab {
    background: rgba(26, 22, 64, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    padding: 8px 18px;
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.book-tab.active {
    background: rgba(20, 16, 52, 0.95);
    color: var(--primary);
    border-color: rgba(255, 255, 255, 0.12);
    border-top-width: 2px;
}

.card-v3-header {
    margin-bottom: 25px;
}

.card-v3-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.v3-svg-icon {
    stroke: var(--primary);
}

.card-v3-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.card-v3-header p {
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.4;
    margin: 0;
}

.card-v3-customizer-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.card-v3-customizer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}

.card-v3-customizer-grid .card-v3-customizer {
    margin-bottom: 0;
}

.customizer-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill-selector {
    display: inline-flex;
    background: rgba(15, 10, 45, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: 12px;
    width: 100%;
}

.pill-option {
    flex-grow: 1;
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 9px;
    color: var(--text-dim);
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.pill-option:hover {
    color: var(--text-color);
}

.pill-option.active {
    background: var(--primary);
    color: var(--dark-bg);
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

/* Notebook index bookmarks/tabs selector */
.folder-bookmarks {
    display: flex;
    background: rgba(15, 10, 45, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 4px;
    width: 100%;
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.folder-bookmark {
    flex-grow: 1;
    background: none;
    border: none;
    padding: 10px 4px;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-dim);
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.folder-bookmark:hover {
    color: var(--text-color);
}

.folder-bookmark.active {
    background: rgba(255, 215, 0, 0.12);
    color: var(--primary);
    border: 1px solid rgba(255, 215, 0, 0.25);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

/* Dual Ratio visual progress bar */
.dual-ratio-visual-v3 {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 8px 12px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ratio-label-left,
.ratio-label-right {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-color);
}

.ratio-bar-bg {
    flex-grow: 1;
    height: 5px;
    background: #4f46e5;
    /* Native teacher color */
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.ratio-bar-fill {
    height: 100%;
    background: var(--primary);
    /* Chinese teacher color */
    border-radius: 10px;
    transition: width 0.4s ease;
}

.card-v3-price-container {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 0;
    position: relative;
}

.card-v3-price-container .currency {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-right: 3px;
}

.card-v3-price-container .price-val {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.card-v3-price-container .period {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: 4px;
    font-weight: 600;
}

/* Inline Student plus icon button */
.add-student-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 15px;
    align-self: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.add-student-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

.add-student-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark-bg);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.35);
}

.student-plus-icon {
    transition: transform 0.2s ease;
}

.add-student-btn.active .student-plus-icon {
    transform: scale(1.1);
}

.btn-card-v3 {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.8rem;
    border: 1px solid var(--text-dim);
    color: var(--text-color);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.btn-card-v3:hover {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.05);
}

.btn-card-v3.primary {
    background: var(--primary);
    color: #1c1836;
    border: none;
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.2);
}

.btn-card-v3.primary:hover {
    background: #ffe033;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.35);
}

.card-v3-features {
    text-align: left;
}

.features-checklist-v3 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.features-checklist-v3 li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-dim);
    line-height: 1.4;
}

.features-checklist-v3 li span {
    color: var(--primary);
    font-weight: 800;
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════════
   DETAILED COMPARISON MATRIX (SLACK STYLE)
   ═══════════════════════════════════════════════ */
.comparison-matrix-container {
    background: rgba(26, 22, 64, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15);
    overflow-x: auto;
}

.matrix-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0 0 30px 0;
    text-align: center;
}

.comparison-matrix-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.comparison-matrix-table th {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-color);
    padding: 18px 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    text-align: left;
}

.comparison-matrix-table th:first-child {
    width: 40%;
}

.comparison-matrix-table th:not(:first-child) {
    width: 20%;
    text-align: center;
}

.comparison-matrix-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.95rem;
    color: var(--text-dim);
}

.comparison-matrix-table td:not(:first-child) {
    text-align: center;
}

.comparison-matrix-table td span {
    color: var(--primary);
    font-weight: 800;
}

.comparison-matrix-table tr.matrix-group-row td {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 22px;
    padding-bottom: 22px;
}

@media (max-width: 1024px) {
    .price-cards-grid-v3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* ═══════════════════════════════════════════════
   INTERACTIVE HOMEWORK SHOWCASE
   ═══════════════════════════════════════════════ */
.homework-section {
    padding: 100px 0 120px;
    background: var(--pathway-section-bg);
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.homework-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.homework-card {
    background: var(--card-bg);
    border: 1px solid var(--price-box-border);
    padding: 45px 35px;
    border-radius: 30px;
    position: relative;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.homework-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-indigo);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.card-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gold-badge {
    background: rgba(10, 8, 28, 0.95);
    color: var(--primary);
    border: 1px solid rgba(255, 215, 0, 0.6);
    backdrop-filter: blur(5px);
}

.indigo-badge {
    background: rgba(10, 8, 28, 0.95);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.6);
    backdrop-filter: blur(5px);
}

.topic-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.homework-card h3 {
    font-size: 1.65rem;
    margin: 10px 0 4px;
    color: var(--text-color);
}

.student-attribution {
    font-size: 0.85rem;
    color: var(--accent-indigo);
    font-weight: 600;
    margin-bottom: 25px;
}

.homework-card .card-body p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 25px;
}

.hw-features {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
}

.hw-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.hw-features li span {
    color: var(--primary);
    font-weight: 700;
}

.btn-play {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, #d97706 100%);
    color: #1a1640;
    box-shadow: 0 4px 15px rgba(250, 189, 10, 0.25);
    transition: all 0.3s ease;
}

.btn-play:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(250, 189, 10, 0.45);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* ═══════════════════════════════════════════════
   FOOTER — Premium Polished Design
   ═══════════════════════════════════════════════ */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 40px;
    filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.2));
}

.footer-logo span {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-white);
    letter-spacing: 1px;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
}

.footer-divider {
    width: 100%;
    max-width: 600px;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 10px 0;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.85rem;
}

.footer-bottom span[data-i18n] {
    color: var(--text-dim);
}

.side-img {
    width: 100%;
    max-width: 340px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
    animation: float-illustration 6s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════
   HOMEWORK SHOWCASE — Split Grid Layout
   ═══════════════════════════════════════════════ */
.homework-split-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    margin-top: 50px;
    align-items: stretch;
}

.homework-panel {
    background: var(--card-bg);
    border: 1px solid var(--price-box-border);
    border-radius: 40px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.light-theme .homework-panel {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.panel-header {
    margin-bottom: 30px;
}

.panel-header h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 8px;
}

.panel-header p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* Junior Grid — ABC Mouse Playful Kids Style (Pastels & Soft Bubbles) */
.junior-toys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 20px;
    flex-grow: 1;
    align-content: center;
}

.toy-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toy-icon-wrapper {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.toy-icon-wrapper svg {
    width: 32px;
    height: 32px;
    stroke: #ffffff;
}

.toy-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Toy Bubble Themes - bright, friendly cartoon colors */
.toy-yellow .toy-icon-wrapper {
    background: linear-gradient(135deg, #ffb300, #ff8f00);
    border: 4px solid #ffe082;
}

.toy-blue .toy-icon-wrapper {
    background: linear-gradient(135deg, #1e88e5, #1565c0);
    border: 4px solid #90caf9;
}

.toy-green .toy-icon-wrapper {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    border: 4px solid #a5d6a7;
}

.toy-red .toy-icon-wrapper {
    background: linear-gradient(135deg, #e53935, #c62828);
    border: 4px solid #ef9a9a;
}

.toy-orange .toy-icon-wrapper {
    background: linear-gradient(135deg, #fb8c00, #ef6c00);
    border: 4px solid #ffcc80;
}

.toy-purple .toy-icon-wrapper {
    background: linear-gradient(135deg, #8e24aa, #6a1b9a);
    border: 4px solid #e1bee7;
}

.toy-indigo .toy-icon-wrapper {
    background: linear-gradient(135deg, #3949ab, #283593);
    border: 4px solid #c5cae9;
}

/* Toy Bubble Hovers */
.toy-bubble:hover {
    transform: translateY(-6px);
}

.toy-bubble:hover .toy-icon-wrapper {
    box-shadow: 0 10px 0 rgba(0, 0, 0, 0.35);
    transform: scale(1.05);
}

.toy-bubble:active .toy-icon-wrapper {
    transform: translateY(4px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.toy-yellow:hover .toy-name {
    color: #ffb300;
}

.toy-blue:hover .toy-name {
    color: #1e88e5;
}

.toy-green:hover .toy-name {
    color: #43a047;
}

.toy-red:hover .toy-name {
    color: #e53935;
}

.toy-orange:hover .toy-name {
    color: #fb8c00;
}

.toy-purple:hover .toy-name {
    color: #8e24aa;
}

.toy-indigo:hover .toy-name {
    color: #3949ab;
}

/* Light Theme Adjustments for Toy Names */
body.light-theme .toy-name {
    color: #334155;
}

body.light-theme .toy-icon-wrapper {
    box-shadow: 0 6px 0 #cbd5e1;
}

body.light-theme .toy-bubble:hover .toy-icon-wrapper {
    box-shadow: 0 10px 0 #cbd5e1;
}

body.light-theme .toy-bubble:active .toy-icon-wrapper {
    box-shadow: 0 2px 0 #cbd5e1;
}

/* Senior Card List */
.senior-cards-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    justify-content: center;
    flex-grow: 1;
}

.homework-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--price-box-border);
    padding: 30px;
    border-radius: 24px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

body.light-theme .homework-card {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.06);
}

.homework-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-indigo);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.12);
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gold-badge {
    background: rgba(10, 8, 28, 0.95);
    color: var(--primary);
    border: 1px solid rgba(255, 215, 0, 0.6);
    backdrop-filter: blur(5px);
}

.indigo-badge {
    background: rgba(10, 8, 28, 0.95);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.6);
    backdrop-filter: blur(5px);
}

.topic-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.homework-card h4 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 5px 0 2px;
}

.student-attribution {
    font-size: 0.85rem;
    color: var(--accent-indigo);
    font-weight: 600;
}

.btn-play {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--accent-indigo) 0%, #4f46e5 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
    width: 100%;
}

.btn-play:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* ═══════════════════════════════════════════════
   MOBILE RESPONSIVENESS
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {

    .hero-grid,
    .split-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .nav-links,
    .nav-right .btn-nav {
        display: none;
    }

    .hero-actions {
        justify-content: center;
    }

    .homework-split-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .credentials-grid {
        gap: 20px;
    }

    .credential-item {
        width: 100px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }

    .results-homework-grid {
        grid-template-columns: 1fr !important;
    }

    .results-homework-grid .showcase-card {
        grid-template-columns: 1fr !important;
    }

    .junior-kids-showcase {
        grid-template-columns: 1fr !important;
    }
}

/* ═══════════════════════════════════════════════
   REVAMPED SHOWCASE CARDS (Real Results)
   ═══════════════════════════════════════════════ */
.results-homework-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.showcase-card {
    background: transparent;
    border: none;
    border-radius: 40px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    transform: translateY(0) scale(1);
}

body.light-theme .showcase-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.showcase-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: none;
}

.showcase-img-container {
    width: 100%;
    height: 100%;
    min-height: 250px;
    overflow: hidden;
    position: relative;
    background: #0d0a21;
}

.showcase-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-thumbnail {
    transform: scale(1.04);
}

.showcase-card .card-badge {
    top: 15px;
    left: 15px;
    right: auto;
}

.showcase-content {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-content h4 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 6px 0 4px;
    font-weight: 800;
}

.showcase-desc {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.45;
    margin: 12px 0 20px;
}

/* ═══════════════════════════════════════════════
   JUNIOR GAMES revamping (Grid Layout with Images)
   ═══════════════════════════════════════════════ */
.junior-kids-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* More Games Image Banner Card */
.more-games-img-card {
    grid-column: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-sizing: border-box;
    aspect-ratio: 3 / 1.5;
    /* Matches the layout nicely */
}

.more-games-banner-img {
    width: 125%;
    height: 125%;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.38));
    transition: transform 0.3s ease;
    transform: scale(1);
}

.more-games-img-card:hover .more-games-banner-img {
    transform: scale(1.05) rotate(-1deg);
}

.junior-game-card {
    background: transparent;
    border: none;
    outline: none;
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) scale(1);
    transition: transform 0.15s ease-out, border-color 0.3s ease, box-shadow 0.4s ease;
    box-shadow: none;
    aspect-ratio: 3 / 3.9;
}

body.light-theme .junior-game-card {
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.25);
    outline-color: rgba(99, 102, 241, 0.1);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.06);
}

.junior-game-card::after {
    display: none;
}

.junior-game-card:hover {
    box-shadow: none;
}

body.light-theme .junior-game-card:hover {
    border-color: var(--accent-indigo);
    outline-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 45px rgba(99, 102, 241, 0.25), 0 8px 20px rgba(0, 0, 0, 0.1);
}

.game-img-wrapper {
    position: relative;
    width: 100%;
    flex-grow: 1;
    overflow: hidden;
    background: #0f172a;
}

.game-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.junior-game-card:hover .game-thumbnail {
    transform: scale(1.05);
}

.play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: var(--primary);
    color: #1c1836;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 40px;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.junior-game-card:hover .play-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.game-info {
    padding: 12px 18px 16px;
    background: linear-gradient(180deg, rgba(28, 24, 54, 0.85) 0%, rgba(20, 16, 41, 0.98) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    position: relative;
    z-index: 4;
}

body.light-theme .game-info {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    border-top-color: rgba(0, 0, 0, 0.05);
}

.game-info h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    font-weight: 800;
}

.game-info p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.4;
}

/* Placeholders kids visual covers */
.placeholder-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cartoon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.yellow-bg {
    background: linear-gradient(135deg, #ffd54f 0%, #ff8f00 100%);
}

.blue-bg {
    background: linear-gradient(135deg, #64b5f6 0%, #1565c0 100%);
}

.green-bg {
    background: linear-gradient(135deg, #81c784 0%, #2e7d32 100%);
}

.orange-bg {
    background: linear-gradient(135deg, #ffb74d 0%, #d84315 100%);
}

.purple-bg {
    background: linear-gradient(135deg, #ba68c8 0%, #6a1b9a 100%);
}

.indigo-bg {
    background: linear-gradient(135deg, #7986cb 0%, #283593 100%);
}

.junior-game-card,
.showcase-card {
    animation: gentle-card-wobble 8s ease-in-out infinite alternate;
}

@keyframes gentle-card-wobble {
    0% {
        transform: perspective(1000px) rotateX(0.5deg) rotateY(-0.5deg) scale(1);
    }

    100% {
        transform: perspective(1000px) rotateX(-0.5deg) rotateY(0.5deg) scale(1);
    }
}

.junior-game-card:hover,
.showcase-card:hover {
    animation-play-state: paused;
}

.game-highlight {
    border-color: rgba(99, 102, 241, 0.5);
}

.game-highlight:hover {
    border-color: var(--primary);
}

/* ═══════════════════════════════════════════════
   AUTH MODAL
   ═══════════════════════════════════════════════ */
.auth-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.auth-overlay.active {
    display: flex;
}

.auth-modal {
    background: #1a1640;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

body.light-theme .auth-modal {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.8rem;
    cursor: pointer;
}

.auth-close:hover {
    color: #fff;
}

body.light-theme .auth-close:hover {
    color: #000;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-logo {
    height: 44px;
    margin-bottom: 10px;
}

.auth-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.auth-header p {
    color: #94A3B8;
    font-size: 0.88rem;
}

#auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#auth-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 16px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
}

body.light-theme #auth-form input {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0f172a;
}

#auth-form input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

#auth-form input::placeholder {
    color: #64748b;
}

.auth-error {
    color: #ef4444;
    font-size: 0.85rem;
    text-align: center;
    min-height: 18px;
}

.btn-auth-submit {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #16123f;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.35);
}

.btn-auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
    color: #cbd5e1;
    font-weight: 600;
}

.auth-switch a {
    color: #FFD700;
    text-decoration: underline;
    font-weight: 800;
    transition: color 0.2s;
}

.auth-switch a:hover {
    color: #ffffff;
}

/* Tooltip Styles for Credentials Bar */
.credential-item {
    position: relative;
}

/* Tooltip container */
.credential-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 20, 32, 0.98);
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    line-height: 1.45;
    width: 240px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

/* Tooltip arrow */
.credential-item::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(15, 20, 32, 0.98) transparent transparent transparent;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

/* Hover state */
.credential-item:hover::after,
.credential-item:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Light Theme overrides for tooltips */
body.light-theme .credential-item::after {
    background: #ffffff;
    color: #1e293b;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body.light-theme .credential-item::before {
    border-color: #ffffff transparent transparent transparent;
}

/* ==========================================
   CLASS REPORTS SECTION
   ========================================== */
.suke-report-card {
    background: rgba(40, 35, 70, 0.45);
    border: 1px solid var(--price-box-border);
    border-radius: 40px;
    display: flex;
    overflow: hidden;
    margin-top: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

body.light-theme .suke-report-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.report-sidebar {
    background: #1e3a8a;
    /* Deep blue style */
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: 200px;
    min-height: 800px;
}

.report-sidebar .report-date {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.report-sidebar .student-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.report-sidebar .duck-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    margin: 30px 0;
}

.report-sidebar .teacher-vertical {
    writing-mode: vertical-rl;
    text-transform: uppercase;
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 4px;
    margin-top: auto;
}

.report-content-panel {
    flex-grow: 1;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.report-badge {
    align-self: flex-start;
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.report-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-color);
}

.report-topic {
    font-size: 1.1rem;
    color: var(--text-dim);
}

.report-topic span {
    color: var(--primary);
    font-weight: 700;
}

.report-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--price-box-border);
    padding: 24px 30px;
    border-radius: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    line-height: 1.7;
}

body.light-theme .report-block {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.05);
}

.report-block .block-icon {
    font-size: 1.5rem;
}

.report-core-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
}

.core-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--price-box-border);
    padding: 30px;
    border-radius: 24px;
}

body.light-theme .core-box {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.05);
}

.core-box h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.core-box ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.core-box ul li {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.report-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.sub-box {
    border-left: 4px solid var(--accent-indigo);
    padding: 10px 20px;
}

.sub-box h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.sub-box p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.report-further {
    display: flex;
    flex-direction: column;
    gap: 20px;
    line-height: 1.7;
    font-size: 0.95rem;
    color: var(--text-dim);
}

.report-tips {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 24px 30px;
    border-radius: 24px;
    line-height: 1.6;
}

.report-tips p {
    color: var(--text-color);
}

/* ==========================================
   YAYA REWARDS SYSTEM SECTION
   ========================================== */
.rewards-tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.rewards-tier-card {
    background: var(--card-bg);
    border: 1px solid var(--price-box-border);
    padding: 40px 30px;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

body.light-theme .rewards-tier-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
}

.rewards-tier-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.15);
}

.tier-badge {
    background: var(--primary);
    color: var(--dark-bg);
    font-size: 1.1rem;
    font-weight: 800;
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.rewards-tier-card.gold-tier {
    border-color: var(--primary);
    background: rgba(255, 215, 0, 0.02);
}

.rewards-tier-card.vip-tier {
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.02);
}

.rewards-tier-card.vip-tier .tier-badge {
    background: var(--accent-indigo);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.tier-toys-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.toy-item-mini {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--price-box-border);
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    text-align: center;
}

body.light-theme .toy-item-mini {
    background: #f1f5f9;
    border-color: rgba(0, 0, 0, 0.04);
    color: #334155;
}

@media (max-width: 900px) {
    .suke-report-card {
        flex-direction: column;
    }

    .report-sidebar {
        width: 100%;
        min-height: auto;
        padding: 30px;
    }

    .report-sidebar .teacher-vertical {
        writing-mode: horizontal-tb;
        margin-top: 20px;
    }

    .report-content-panel {
        padding: 30px 24px;
    }

    .report-core-grid,
    .report-sub-grid {
        grid-template-columns: 1fr;
    }
}

/* Dual Grid Features Card Style */
.interactive-card {
    background: var(--card-bg);
    border: 1px solid var(--price-box-border);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

body.light-theme .interactive-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.interactive-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-indigo);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.18);
}

.interactive-card:hover .zoom-overlay {
    opacity: 1 !important;
}

@media (max-width: 900px) {

    .features-dual-grid,
    .split-row-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* Interactive Image Column Hover Effects */
.interactive-image-column:hover .zoom-image-wrapper {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.interactive-image-column:hover img {
    transform: scale(1.03);
}

/* Hide scrollbar helper */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Floating Animation for Mascots */
.floating-mascot-duck {
    animation: floatMascot 6s ease-in-out infinite;
}

@keyframes floatMascot {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.protocol-grid {
    gap: 40px 30px !important;
}

/* Protocol Grid Cards & Scaling with 3D Flip */
.protocol-card {
    background: transparent !important;
    border: none !important;
    perspective: 1000px;
    cursor: pointer;
    height: 300px;
    transition: transform 0.3s ease !important;
}

.protocol-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.protocol-card.flipped .protocol-card-inner {
    transform: rotateY(180deg);
}

.protocol-card-front,
.protocol-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
}

.protocol-card-front {
    background: rgba(26, 22, 64, 0.45);
}

.protocol-card-back {
    background: rgba(40, 35, 70, 0.85);
    transform: rotateY(180deg);
    justify-content: center;
    color: #a5b4fc;
}

.protocol-card-front img {
    width: 95px !important;
    height: auto;
}

.protocol-card h3 {
    font-size: 1.3rem !important;
    color: #fff;
    margin: 0;
}

.protocol-card p {
    font-size: 1.0rem !important;
    line-height: 1.6 !important;
    color: var(--text-dim);
    margin: 0;
}

.protocol-card-back p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    color: #e2e8f0 !important;
}

body.light-theme .protocol-card-front {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .protocol-card-back {
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.2) !important;
    color: var(--accent-indigo);
}

body.light-theme .protocol-card-back p {
    color: var(--text-color) !important;
}

.protocol-card:hover {
    transform: translateY(-5px);
}

.protocol-card:hover .protocol-card-front,
.protocol-card:hover .protocol-card-back {
    border-color: rgba(255, 215, 0, 0.35) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

body.light-theme .protocol-card:hover .protocol-card-front,
body.light-theme .protocol-card:hover .protocol-card-back {
    border-color: var(--accent-indigo) !important;
}

@media (max-width: 900px) {
    .protocol-grid {
        grid-template-columns: 1fr !important;
    }

    .certification-block {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px !important;
        gap: 20px !important;
    }
}

/* 3-Column Protocol Layout without Cards */
.protocol-three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

.protocol-column {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.protocol-step-item {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px;
    padding-bottom: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    min-height: 225px;
    height: auto;
    /* Grow dynamically if content grows */
    justify-content: flex-start;
    overflow: visible;
    /* Let mascot stick out */
}

/* 9 Individual Color Shades */
.protocol-step-item.step-1 {
    --step-color: 255, 215, 0;
}

/* Gold */
.protocol-step-item.step-2 {
    --step-color: 99, 102, 241;
}

/* Indigo */
.protocol-step-item.step-3 {
    --step-color: 20, 184, 166;
}

/* Teal */
.protocol-step-item.step-4 {
    --step-color: 236, 72, 153;
}

/* Pink */
.protocol-step-item.step-5 {
    --step-color: 16, 185, 129;
}

/* Emerald */
.protocol-step-item.step-6 {
    --step-color: 249, 115, 22;
}

/* Orange */
.protocol-step-item.step-7 {
    --step-color: 168, 85, 247;
}

/* Violet */
.protocol-step-item.step-8 {
    --step-color: 14, 165, 233;
}

/* Blue */
.protocol-step-item.step-9 {
    --step-color: 244, 63, 94;
}

/* Crimson */

.protocol-step-item {
    border: 1px solid rgba(var(--step-color), 0.18);
    background: rgba(var(--step-color), 0.02);
}

.protocol-step-item:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--step-color), 0.35);
    background: rgba(var(--step-color), 0.05);
    box-shadow: 0 10px 25px rgba(var(--step-color), 0.08);
}

/* Mascot overlapping the top-left border */
.protocol-mascot-wrapper {
    position: absolute;
    left: -48px;
    top: -52px;
    width: 145px;
    height: 145px;
    z-index: 10;
    pointer-events: none;
}

.protocol-mascot-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.protocol-step-item:hover .protocol-mascot-wrapper img {
    transform: scale(1.16) rotate(-7deg);
}

.protocol-content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: auto;
    justify-content: flex-start;
    gap: 8px;
    align-items: flex-start;
}

/* Push header right to avoid mascot overlap */
.protocol-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding-left: 80px;
    /* Clear the absolute mascot */
    width: 100%;
    box-sizing: border-box;
}

.protocol-icon-holder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--step-color));
    background: rgba(var(--step-color), 0.1);
    border: 1px solid rgba(var(--step-color), 0.2);
    border-radius: 8px;
    padding: 6px;
    flex-shrink: 0;
}

.protocol-content-wrapper h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.protocol-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 50px;
    text-transform: uppercase;
    margin-bottom: 8px;
    align-self: flex-start;
    background: rgba(var(--step-color), 0.1);
    color: rgb(var(--step-color));
    border: 1px solid rgba(var(--step-color), 0.2);
    margin-left: 65px;
    /* Align with header text */
}

.protocol-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dim);
    margin: 0 0 8px 0;
}

.protocol-details {
    font-size: 0.82rem;
    line-height: 1.45;
    color: #a5b4fc !important;
    margin: 0;
    opacity: 0.85;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .protocol-three-columns {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .junior-kids-showcase {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px;
    }

    .more-games-img-card {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .junior-kids-showcase {
        grid-template-columns: 1fr;
    }

    .more-games-img-card {
        grid-column: span 1;
    }
}

/* ═══════════════════════════════════════════════
   STUDENT UPGRADE SWITCH & PACKAGE LAYOUT ENHANCEMENTS
   ═══════════════════════════════════════════════ */
.packages .container {
    max-width: 1320px;
    width: 100%;
}

/* Elements cleaned up */

@media (max-width: 992px) {
    .price-row-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .price-col-cta {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 20px;
    }
    
    .price-col-features ul {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .book-tabs {
        left: 20px;
    }
}

/* Micro-animations for Mascot Illustrations */
.hover-duck-illustration {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}

.hover-duck-illustration:hover {
    transform: translateY(-8px) scale(1.04) rotate(1.5deg);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.45));
}

/* Custom Toggle Switch for Students Mode */
.student-toggle-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    padding: 10px 25px;
    width: fit-content;
    margin: 15px auto 55px auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.student-toggle-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.switch-v3 {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
}

.switch-v3 input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-v3 {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: .3s ease;
    border-radius: 34px;
}

.slider-v3::before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.switch-v3 input:checked + .slider-v3 {
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.switch-v3 input:checked + .slider-v3::before {
    transform: translateX(26px);
}

/* Zoomable modal images */
.modal-scrollable-content img {
    cursor: zoom-in;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    max-width: 100%;
}

.modal-scrollable-content img.zoomed-image {
    cursor: zoom-out;
    transform: scale(1.5);
    transform-origin: center top;
}

/* ═══════════════════════════════════════════════
   ADDITIONAL MOBILE RESPONSIVENESS (SCREENS < 768px & < 600px)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Center the lead form and align text correctly */
    .hero-form {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

@media (max-width: 600px) {
    /* 1. Navbar adjustments */
    .nav-container {
        padding: 0 16px;
    }
    .nav-right {
        gap: 12px;
    }

    /* 2. Hero Section */
    .hero-content h1 {
        font-size: 2.1rem !important;
        letter-spacing: -1px !important;
        line-height: 1.25 !important;
    }
    .hero-content p {
        font-size: 1.05rem !important;
        margin-bottom: 25px !important;
        line-height: 1.5 !important;
    }
    .form-group input {
        padding: 14px 18px !important;
        font-size: 0.95rem !important;
    }
    .btn-submit {
        padding: 14px !important;
        font-size: 0.95rem !important;
    }

    /* 3. Mentorship Protocol (Mascot overlap & left-hand clipping fix) */
    .protocol-three-columns {
        gap: 65px !important; /* Larger gap to allow room for overlapping top mascot */
        margin-top: 40px !important;
    }
    .protocol-step-item {
        margin-top: 50px !important; /* Push card down to clear top-centered mascot */
        padding-left: 24px !important; /* Reset layout to standard padding */
        min-height: auto !important;
    }
    .protocol-mascot-wrapper {
        left: 50% !important;
        transform: translateX(-50%) !important;
        top: -65px !important; /* Position mascot centered above card border */
        width: 110px !important;
        height: 110px !important;
    }
    .protocol-content-wrapper {
        align-items: center !important;
        text-align: center !important;
        padding-top: 35px !important; /* Push text down to avoid overlapping the centered mascot */
    }
    .protocol-header {
        padding-left: 0 !important; /* Clear left padding */
        justify-content: center !important;
    }

    /* 4. Pricing / Packages */
    .packages {
        padding: 40px 0 !important;
    }
    .price-row-content {
        padding: 24px !important;
    }
    .price-col-info {
        align-items: center !important;
        text-align: center !important;
    }
    .price-row-badge {
        align-self: center !important;
    }
    .card-v3-price-container {
        justify-content: center !important;
    }

    /* 5. Clean up modals on tiny screens */
    .modal-wrapper {
        padding: 16px 20px !important;
    }
}

@media (max-width: 480px) {
    /* Extra tight margins for micro viewports */
    .section {
        padding: 40px 0 !important;
    }
    .center-title h2 {
        font-size: 1.75rem !important;
    }
    .center-title p {
        font-size: 0.95rem !important;
    }
    .split-row-layout {
        gap: 20px !important;
    }
}


/* ═══════════════════════════════════════════════
   MOBILE VIEWPORT AND BUBBLE GAMES OPTIMIZATIONS
   ═══════════════════════════════════════════════ */
html, body {
    overflow-x: clip !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    margin: 0;
    padding: 0;
}

@media (max-width: 900px) {
    /* 1. Junior Games Bubble-Style Grid */
    .junior-kids-showcase {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px 16px !important; /* Spacing between cards vertically and horizontally */
        padding: 0 16px !important;
    }
    
    .junior-game-card {
        align-items: center !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding: 16px 10px !important;
        border-radius: 20px !important;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2) !important;
        height: auto !important;
        min-height: auto !important;
    }
    
    /* Make the game cover image a circular bubble */
    .junior-game-card .game-img-wrapper {
        width: 85px !important;
        height: 85px !important;
        border-radius: 50% !important;
        flex-grow: 0 !important;
        margin: 0 auto 10px auto !important;
        border: 2px solid rgba(255, 255, 255, 0.15) !important;
        aspect-ratio: 1 / 1 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
        overflow: hidden !important;
    }
    
    .junior-game-card .game-thumbnail {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Hide play indicator on mobile for cleaner look */
    .junior-game-card .play-indicator {
        display: none !important;
    }
    
    .junior-game-card .game-info {
        padding: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
    
    .junior-game-card .game-info h3 {
        font-size: 0.9rem !important;
        font-weight: 800 !important;
        margin: 0 !important;
        color: #fff !important;
        line-height: 1.2 !important;
    }
    
    .junior-game-card .game-info p {
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
        color: var(--text-dim) !important;
        margin: 0 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    /* 2. More Games Coming Banner Position & Overlap Fix */
    .more-games-img-card {
        grid-column: span 2 !important;
        margin-top: 25px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        height: auto !important;
        aspect-ratio: auto !important;
    }
    
    .more-games-banner-img {
        width: auto !important;
        height: auto !important;
        max-width: 200px !important; /* Smaller, neat fit on phones */
        display: block !important;
        transform: none !important;
        filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25)) !important;
    }
}
