/* ==========================================================================
   PracticeAbacus Core Design System & Shared Stylesheet
   Version: 1.0
   ========================================================================== */

/* ==========================================================================
   Core Design System, Layout, Components & Responsive Styles
   ========================================================================== */

:root {
            --primary-color: rgba(37, 99, 235, 0.3);
            --secondary-color: #5390d9;
            --accent-color: #4ea8de;
            --highlight-color: #48bfe3;
            --light-bg: #ffffff;
            --card-bg: rgb(248, 249, 250);
            --text-color: #2b2d42;
            --text-light: #64748b;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: system-ui, -apple-system, sans-serif;
            -webkit-tap-highlight-color: transparent;
        }

        #particles-js,
        #mathConstellationCanvas {
            position: fixed;
            width: 100vw;
            height: 100vh;
            top: 0;
            left: 0;
            z-index: -1;
            pointer-events: none;
        }

        html {
            width: 100%;
            position: relative;
            scrollbar-gutter: stable;
            /* overflow-x: hidden; moved to body to prevent sticky scroll */
        }

        body {
            background: #f6f9ff;
            color: #4a5d7e;
            font-family: system-ui, -apple-system, sans-serif;
            overflow-x: hidden;
            /* Prevent horizontal scroll */
            width: 100%;
            position: relative;
        }

        .section {
            min-height: 100vh;
            width: 100%;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            padding: 2rem;
        }

        .content {
            max-width: 1200px;
            width: 100%;
            position: relative;
            z-index: 2;
            padding: 0 1rem;
            margin-bottom: 200px
        }



        .hero-title {
            font-size: clamp(3rem, 8vw, 6rem);
            line-height: 1.1;
            margin-bottom: 2rem;
            /* opacity: 0; removed for LCP */
            /* transform: translateY(4px); removed for LCP */
        }

        .hero-subtitle {
            font-size: clamp(1.2rem, 2vw, 1.5rem);
            opacity: 0.8;
            max-width: 800px;
            transform: translateY(30px);
            line-height: 2.2rem;
        }

        .floating-abacus {
            position: fixed;
            width: min(800px, 90vw);
            height: 500px;
            right: -5%;
            top: 50%;
            transform: translateY(-50%) perspective(1000px) rotateY(-20deg);
            -webkit-transform: translateY(-50%) perspective(1000px) rotateY(-20deg);
            /* Safari fix */
            z-index: 1;
            pointer-events: none;
            /* Prevent blocking interactions on smaller screens if overlapping */
        }

        .abacus-frame {
            position: absolute;
            width: 100%;
            height: 100%;
            border: 20px solid rgba(74, 144, 226, 0.61);
            border-radius: 30px;
            box-shadow: 0 0 50px rgba(74, 144, 226, 0.58);
            background: rgba(31, 32, 35, 0);
        }

        .rod {
            position: absolute;
            width: 100%;
            height: 4px;
            margin-top: -2px;
            /* Centers 4px rod on its top coordinate */
            background: rgba(74, 144, 226, 0.61);
            left: 0;
            transform-style: preserve-3d;
            z-index: 1;
        }

        .bead {
            position: absolute;
            width: 40px;
            height: 40px;
            margin-top: -20px;
            /* Centers 40px bead vertically */
            margin-left: -20px;
            /* Centers 40px bead horizontally */
            border-radius: 50%;
            background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
            cursor: pointer;
            box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
            pointer-events: auto;
            z-index: 2;
        }

        .math-elements {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        .math-symbol {
            position: absolute;
            font-family: "Monaco", monospace;
            color: rgba(66, 153, 225, 0.15);
            font-weight: bold;
            pointer-events: none;
        }

        .features {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 4rem;
            padding: 4rem;
            z-index: 2;
        }

        .feature {
            opacity: 0;
            transform: translateY(30px);
            padding: 30px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            cursor: pointer;
            transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
            text-align: left;
        }

        .feature h3 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: #4299e1;
        }

        .feature p {
            font-size: 1.3rem;
            opacity: 0.8;
            line-height: 1.6;
        }

        .choices {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 3rem;
            margin-top: 4rem;
        }

        .choice-card {
            background: rgba(255, 255, 255, 0.05);
            padding: 3rem 2rem;
            border-radius: 20px;
            -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
            text-align: left;
            cursor: pointer;
            transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
            opacity: 0;
            transform: translateY(30px);
        }

        .choice-card:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-10px);
        }

        .overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to right, transparent 0%, rgba(193, 193, 193, 0) 70%);
            pointer-events: none;
            z-index: 1;
        }

        .cta {
            margin-top: 4rem;
            text-align: center;
        }

        .btn {
            padding: 1rem 2.5rem;
            font-size: 1.2rem;
            background: #4299e1;
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: transform 0.3s ease, background-color 0.3s ease;
            width: 100%;
        }

        .btn:hover {
            background: #2b6cb0;
            transform: translateY(-2px);
        }

        .page {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            transform: translateX(100%);
            transition: transform 0.5s ease;
            background: transparent;
            z-index: 10;
            pointer-events: none !important;
        }

        #login-page {
            background: transparent;
            z-index: 10;
            padding: 1.25rem;
        }

        #login-page.active {
            pointer-events: auto !important;
        }

        #home {
            transition: opacity 0.3s ease;
        }

        body.login-active #home,
        body:has(#login-page.active) #home,
        body.login-active .floating-scroll-indicator,
        body:has(#login-page.active) .floating-scroll-indicator {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }


        .login-container,
        .login-card,
        .teacher-section,
        .teacher-content,
        .teacher-signup-card,
        .nav-container,
        .modal .video-demo-section,
        .widget-section,
        .testimonial-section,
        .faq-standalone-section,
        .platform-overview-guide,
        .contact-section {
            pointer-events: auto !important;
        }

        .page.active {
            transform: translateX(0);
        }

        .section-header {
            text-align: center;
            margin-bottom: 4rem;
            font-size: 2.5rem;
            color: var(--text-color);
            font-weight: 800;
        }

        .login-container {
            width: 420px;
            max-width: 100%;
        }

        .login-card {
            /* OPTIMIZED LUMINOUS GLASS SURFACE (High contrast & readability) */
            background: linear-gradient(135deg,
                    rgba(255, 255, 255, 0.85) 0%,
                    rgba(255, 255, 255, 0.65) 100%);
            backdrop-filter: blur(48px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: 30px;
            border-top: 1.5px solid rgba(255, 255, 255, 0.95);
            border-left: 1.5px solid rgba(255, 255, 255, 0.95);
            border-right: 1.5px solid rgba(255, 255, 255, 0.35);
            border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
            box-shadow:
                0 24px 60px rgba(15, 23, 42, 0.15),
                0 8px 32px 0 rgba(31, 38, 135, 0.1),
                inset 0 0 0 1px rgba(255, 255, 255, 0.4);
            padding: 3rem;
            transform: translateY(0);
            transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
        }

        .login-card:hover {
            transform: translateY(-8px);
            box-shadow:
                0 28px 65px rgba(15, 23, 42, 0.18),
                0 16px 40px 0 rgba(31, 38, 135, 0.15),
                inset 0 0 0 1px rgba(255, 255, 255, 0.5);
        }


        .form-control {
            border: 1.5px solid rgba(203, 213, 225, 0.9);
            padding: 0.8rem 1rem;
            font-size: 0.95rem;
            font-weight: 500;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.92);
            box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
            transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
            margin-bottom: 1.3rem;
            width: 100%;
            color: #0f172a;
        }

        .form-control::placeholder {
            color: #64748b;
            opacity: 0.9;
            font-weight: 400;
        }

        .form-control:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.02);
            background: #ffffff;
            color: #0f172a;
            outline: none;
        }

        .form-label {
            font-weight: 600;
            color: #0f172a;
            margin-bottom: 0.5rem;
            display: block;
        }

        .login-btn {
            font-size: 1.2rem;
            background: #4299e1;
            color: white;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            transition: transform 0.3s ease, background-color 0.3s ease;
            width: 100%;
        }

        .login-btn:hover {
            background: #2b6cb0;
            transform: translateY(-2px);
        }


        .card-header {
            margin-bottom: 2rem;
            text-align: center;
        }

        .card-title {
            font-size: 2rem;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 0.5rem;
        }

        .card-subtitle {
            font-size: 1.1rem;
            font-weight: 500;
            color: #334155;
        }



        .section {
            min-height: 100vh;
            width: 100%;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .split-section {
            display: flex;
            flex-direction: column;
            padding: 10vh 0;
            z-index: 2;
        }

        .split-text {
            font-size: 4.5vw;
            line-height: 3;
            opacity: 0;
            transform: translateY(100px);
            text-align: center;
            padding: 2rem;

        }

        .choice-card h3 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .choice-card p {
            font-size: 1.3rem;
            margin-bottom: 1.5rem;
            opacity: 0.8;
        }

        .back-button {
            position: absolute;
            top: 2rem;
            left: 2rem;
            background: transparent;
            border: none;
            cursor: pointer;
            color: var(--text-color);
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1rem;
            opacity: 0.7;
            transition: opacity 0.3s ease;
        }

        .back-button:hover {
            opacity: 1;
        }

        .secondary-cta {
            background: transparent;
            border: 2px solid var(--accent-color);
            color: var(--accent-color);
            margin-top: 1rem;
        }

        .secondary-cta:hover {
            background: var(--accent-color);
            color: white;
        }

        .contact-section {
            position: relative;
            background: var(--light-bg);
            padding: 6rem 2rem;
            text-align: center;
            z-index: 20;
        }

        .contact-grid {
            display: grid;
            gap: 3rem;
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        .contact-card {
            background: var(--card-bg);
            padding: 2rem;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            z-index: 3;
        }

        .qr-placeholder {
            width: 200px;
            height: 200px;
            margin: 2rem auto;
            background: #ffffff;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
        }

        .whatsapp-img {
            width: 490px;
        }

        /* ==========================================================================
           LIGHT THEME FAQ & PLATFORM OVERVIEW
           ========================================================================== */
        .faq-standalone-section {
            display: block;
            width: 100%;
            padding: 5rem 1.5rem;
            background: #ffffff;
            border-top: 1px solid #e2e8f0;
            box-sizing: border-box;
            position: relative;
            z-index: 20;
        }

        .faq-container {
            max-width: 900px;
            margin: 0 auto;
        }

        .faq-standalone-section .faq-header {
            font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
            font-size: 2.25rem;
            color: var(--text-color, #2b2d42);
            text-align: center;
            margin-bottom: 2.5rem;
            font-weight: 800;
        }

        .faq-accordion {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .faq-item {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 14px;
            padding: 18px 22px;
            cursor: pointer;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        }

        .faq-item:hover {
            border-color: #cbd5e1;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
            transform: translateY(-1px);
        }

        .faq-item[open] {
            border-color: #93c5fd;
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.08);
        }

        .faq-item summary {
            font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
            font-size: 1.05rem;
            font-weight: 600;
            color: #1e293b;
            display: flex;
            justify-content: space-between;
            align-items: center;
            list-style: none;
            user-select: none;
        }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item .faq-icon {
            color: var(--secondary-color, #5390d9);
            font-size: 1.25rem;
            font-weight: 600;
            transition: transform 0.2s ease;
            margin-left: 12px;
            flex-shrink: 0;
        }

        .faq-item[open] .faq-icon {
            transform: rotate(45deg);
        }

        .faq-item p {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #f1f5f9;
            font-size: 0.95rem;
            line-height: 1.65;
            color: #475569;
        }

        /* Home Platform Overview */
        .platform-overview-guide {
            display: block;
            width: 100%;
            padding: 5rem 1.5rem;
            background: #f8fafc;
            border-top: 1px solid #e2e8f0;
            box-sizing: border-box;
            position: relative;
            z-index: 20;
        }

        .platform-overview-guide .overview-container {
            max-width: 1100px;
            margin: 0 auto;
        }

        .platform-overview-guide .overview-title {
            font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
            font-size: 2rem;
            color: var(--text-color, #2b2d42);
            text-align: left;
            margin-bottom: 14px;
            font-weight: 800;
        }

        .platform-overview-guide .overview-desc {
            font-size: 1rem;
            line-height: 1.7;
            margin-bottom: 28px;
            color: #64748b;
        }

        .platform-overview-guide .overview-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 24px;
        }

        .platform-overview-guide .overview-card {
            background: #ffffff;
            padding: 24px;
            border-radius: 16px;
            border: 1px solid #e2e8f0;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
        }

        .platform-overview-guide .overview-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
            border-color: #cbd5e1;
        }

        .platform-overview-guide .overview-card h3 {
            font-size: 1.15rem;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .platform-overview-guide .overview-card p {
            font-size: 0.92rem;
            line-height: 1.65;
            color: #475569;
        }

        .hidden-button {
            position: fixed;
            top: 0;
            left: 0;
            width: 32px;
            height: 32px;
            cursor: default;
            z-index: 1000;
        }

        .login-modal {
            display: none;
            position: fixed;
            top: 20%;
            left: 20%;
            width: 500px;
            height: 220px;
            background-color: rgba(255, 251, 251, 0.7);
            z-index: 1001;
            padding: 20px;
            border-radius: 20px;
        }

        .floating-scroll-indicator {
            position: fixed;
            bottom: 60px;
            left: 50%;
            transform: translateX(-50%) translateZ(0);
            will-change: transform, opacity;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            z-index: 100;
            opacity: 0;
            animation: fadeIn 0.5s ease forwards;
            pointer-events: none;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }

        .scroll-arrow {
            width: 40px;
            height: 40px;
            border-right: 4px solid var(--secondary-color);
            border-bottom: 4px solid var(--secondary-color);
            transform: rotate(45deg);
            animation: scrollArrowBounce 2s infinite;
        }

        .scroll-arrow:nth-child(2) {
            animation-delay: 0.2s;
            opacity: 0.8;
        }

        .scroll-arrow:nth-child(3) {
            animation-delay: 0.4s;
            opacity: 0.6;
        }

        @keyframes scrollArrowBounce {

            0%,
            100% {
                transform: rotate(45deg) translate(-5px, -5px);
            }

            50% {
                transform: rotate(45deg) translate(0, 0);
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .floating-scroll-indicator.hidden {
            opacity: 0 !important;
            visibility: hidden;
            pointer-events: none;
        }

        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            10%,
            30%,
            50%,
            70%,
            90% {
                transform: translateX(-5px);
            }

            20%,
            40%,
            60%,
            80% {
                transform: translateX(5px);
            }
        }

        .error-shake {
            animation: shake 0.4s cubic-bezier(.36, .07, .19, .97) both;
            border-color: #dc3545 !important;
        }

        /* --- FLOATING CONTAINER (Handles Position & Hiding) --- */
        .floating-auth-container {
            position: relative;
            margin-top: 2rem;
            z-index: 100;
            transform: translateZ(0);
            will-change: transform, opacity;
            display: flex;
            gap: 15px;
            /* Space between buttons */
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .floating-auth-container.hidden {
            opacity: 0;
            pointer-events: none;
            transform: translateY(20px);
        }

        /* --- SHARED BUTTON STYLES (Shape & 3D Effect) --- */
        .floating-auth-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            text-decoration: none;
            line-height: 1;
            box-sizing: border-box;
            width: 180px;
            height: 60px;
            color: white;
            border: none;
            border-radius: 10px;
            font-weight: 600;
            font-size: 16px;
            cursor: pointer;
            overflow: hidden;
            position: relative;
            transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
            transform-style: preserve-3d;
            -webkit-transform-style: preserve-3d;
            /* Safari fix */
            transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
            -webkit-transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
            /* Safari fix */
        }

        a.floating-auth-btn,
        a.floating-auth-btn:hover,
        a.floating-auth-btn:focus,
        a.floating-auth-btn:active,
        a.floating-auth-btn:visited {
            text-decoration: none;
            color: white;
        }

        /* 3D Hover Effect */
        .floating-auth-btn:hover {
            transform: perspective(1000px) rotateX(10deg) translateY(-5px);
            -webkit-transform: perspective(1000px) rotateX(10deg) translateY(-5px);
            /* Safari fix */
        }

        /* Glowing Effect */
        .floating-auth-btn::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
            animation: glowRotate 3s linear infinite;
        }

        /* Shine Effect */
        .floating-auth-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            animation: shine 2s infinite;
        }

        /* --- TABLET SPECIFIC (The "Missing Middle" 768px - 1024px) --- */
        @media (min-width: 768px) and (max-width: 1024px) {
            .floating-abacus {
                top: auto;
                bottom: -150px;
                right: -200px;
                transform: scale(0.7) rotateY(-20deg);
                -webkit-transform: scale(0.7) rotateY(-20deg);
                opacity: 0.8;
            }

            .hero-title {
                font-size: 4rem;
                /* Reduce from giant desktop size */
            }

            .teacher-text {
                margin-left: 0 !important;
            }

            .features {
                gap: 2rem;
                padding: 2rem;
            }

            .floating-auth-container {
                left: 30%;
                transform: translateX(-50%);
                width: auto;
                gap: 20px;
            }

            .floating-auth-container.hidden {
                transform: translate(-50%, 20px);
            }
        }

        @media (max-width: 768px) {

            /* 1. Container: Left-Aligned & Responsive Width in Normal Flow */
            .floating-auth-container {
                position: relative;
                left: 0;
                transform: none;
                margin-top: clamp(10px, 1.8vh, 20px);
                margin-bottom: 10px;

                /* Width Control */
                width: 100%;
                max-width: 380px;

                display: flex;
                justify-content: flex-start;
                gap: 12px;
                z-index: 100;
            }

            /* 2. Fix the Hidden Animation for Left-Aligned Element */
            .floating-auth-container.hidden {
                transform: translateY(20px) !important;
                opacity: 0;
                pointer-events: none;
            }

            /* 3. Buttons: Proportional Scaling */
            .floating-auth-btn {
                flex: 1;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                text-align: center;
                /* Both buttons split available space equally */
                width: auto !important;
                /* Override fixed pixels */

                /* Height scales with viewport width (min 45px, max 55px) */
                height: clamp(45px, 14vw, 55px);

                /* Font scales with viewport width (min 11px, max 15px) */
                font-size: clamp(11px, 3.8vw, 15px);

                /* Ensure text stays on one line */
                white-space: nowrap;
                padding: 0;
                /* Remove padding to prioritize text space */

                /* Center text */
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }

        /* --- SPECIFIC COLORS --- */

        /* Student Button (Original Blue/Cyan) */
        .btn-student {
            background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
            box-shadow:
                0 10px 20px rgba(83, 144, 217, 0.2),
                0 6px 6px rgba(83, 144, 217, 0.1),
                0 0 100px rgba(83, 144, 217, 0.1);
        }

        .btn-student:hover {
            box-shadow:
                0 15px 30px rgba(83, 144, 217, 0.3),
                0 10px 10px rgba(83, 144, 217, 0.2),
                0 0 150px rgba(83, 144, 217, 0.2);
        }

        /* Teacher Button (New Purple/Indigo for distinction) */
        .btn-teacher {
            /* Lighter, softer blue gradient (Sky Blue) */
            background: linear-gradient(135deg, #6ca0e0, #6dd5fa);

            /* Subtle shadow - removed the intense "glow" layer */
            box-shadow:
                0 10px 20px rgba(109, 213, 250, 0.25),
                0 6px 6px rgba(109, 213, 250, 0.15);
        }

        .btn-teacher:hover {
            /* Gentle lift on hover */
            box-shadow:
                0 15px 30px rgba(109, 213, 250, 0.35),
                0 10px 10px rgba(109, 213, 250, 0.25);
        }

        @keyframes glowRotate {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes shine {
            0% {
                left: -100%;
            }

            50%,
            100% {
                left: 150%;
            }
        }

        @keyframes LoginButtonBounce {

            0%,
            100% {
                transform: translate(0px, -5px);
            }

            50% {
                transform: translate(0, 0);
            }
        }

        .floating-student-login {
            /* Keep existing styles */
            transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
        }

        .floating-student-login.hidden {
            opacity: 0;
            pointer-events: none;
            transform: translateY(20px);
        }

        /* Ensure modal covers entire screen and appears above all content */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            /* Semi-transparent black overlay */
            display: none;
            z-index: 1050;
            /* Ensures it is above other elements */
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
            align-items: center;
            justify-content: center;
        }

        /* Show modal smoothly */
        .modal.show {
            display: flex;
            opacity: 1;
        }

        /* Centered modal dialog with responsive width */
        .modal-dialog {
            position: relative;
            width: 90%;
            max-width: 450px;
            margin: auto;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
            pointer-events: auto;
            animation: fadeIn 0.3s ease-in-out;
        }

        /* Fade-in effect */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Modal content box */
        .modal-content {
            display: flex;
            flex-direction: column;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
        }

        /* Modal header with title */
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid #ddd;
            padding-bottom: 10px;
        }

        .modal-title {
            font-size: 1.25rem;
            font-weight: bold;
            color: #333;
        }

        /* Modal body */
        .modal-body {
            padding: 15px 0;
            font-size: 1rem;
            text-align: center;
            color: #444;
        }

        /* Modal message styling */
        #waitlistMessage {
            font-size: 1rem;
            font-weight: bold;
            color: #222;
            text-align: center;
            margin-top: 10px;
        }

        /* Modal footer with buttons */
        .modal-footer {
            display: flex;
            justify-content: center;
            border-top: 1px solid #ddd;
            padding-top: 10px;
        }

        /* Close button */
        .modal-footer .btn {
            padding: 8px 16px;
            font-size: 1rem;
            border-radius: 5px;
            transition: background 0.2s;
        }

        .btn-primary {
            background-color: #007bff;
            color: white;
            border: none;
        }

        .btn-primary:hover {
            background-color: #0056b3;
        }

        /* Responsive adjustments */
        @media (max-width: 480px) {
            .modal-dialog {
                width: 95%;
            }
        }

        #teacher-page {
            position: absolute !important;
            top: 0;
            left: 0;
            width: 100%;
            min-height: 100vh;
            overflow-y: visible !important;
            overflow-x: hidden;
            display: none;
            z-index: 20;
            pointer-events: auto !important;
            transform: translateX(100%);
            transition: transform 0.5s ease;
        }

        #teacher-page.active {
            display: block !important;
            transform: translateX(0);
        }

        #teacher-page.active.settled {
            position: relative !important;
            width: 100%;
            transform: none !important;
        }

        .pin-spacer {
            width: 100% !important;
            max-width: 100% !important;
        }

        #teacher-page #teacher-marquee-section,
        #home #student-marquee-section,
        .freefall-section {
            width: 100% !important;
            left: 0 !important;
            right: 0 !important;
            box-sizing: border-box;
        }


        .teacher-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            margin-top: 4rem;
        }

        .teacher-signup-card {
            max-width: 500px;
            margin: 0 auto;
            margin-top: 20px;
            margin-bottom: 200px;
        }

        /* Phone input styling */
        .phone-input-container {
            display: flex;
            gap: 10px;
        }

        .country-code-select {
            width: auto;
            flex-shrink: 0;
        }

        .phone-field {
            flex-grow: 1;
        }

        #customCountryCode {
            width: 70px !important;
            min-width: 70px !important;
            padding: 0.8rem 0.3rem !important;
            text-align: center;
            font-weight: 400;
            flex-shrink: 0;
        }

        #customCountryCode::placeholder {
            color: #999;
        }

        /* Login card positioning */
        .login-card {
            position: relative;
            overflow: hidden;
        }

        /* Container styling for both views */
        #signup-form-container,
        #otp-verification-container {
            width: 100%;
            transition: transform 0.4s ease;
        }

        /* OTP container styling for slide effect */
        #otp-verification-container {
            position: absolute;
            top: 0;
            left: 100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg,
                    rgba(255, 255, 255, 0.88) 0%,
                    rgba(255, 255, 255, 0.7) 100%);
            backdrop-filter: blur(48px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: 30px;
            border-top: 1.5px solid rgba(255, 255, 255, 0.95);
            border-left: 1.5px solid rgba(255, 255, 255, 0.95);
            border-right: 1.5px solid rgba(255, 255, 255, 0.35);
            border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
            padding: 2.5rem 2rem;
            transform: translateX(0);
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        /* Slide animation classes */
        .slide-out {
            transform: translateX(-100%);
        }

        .slide-in {
            transform: translateX(-100%);
        }

        /* OTP header styling */
        .otp-header {
            display: flex;
            align-items: center;
            margin-top: 50px;
        }

        .btn-back {
            background: none;
            border: none;
            color: #007bff;
            margin-right: 15px;
            padding: 0;
            cursor: pointer;
        }

        .otp-instruction {
            color: #334155;
            font-weight: 500;
            margin-top: 20px;
            margin-bottom: 20px;
        }

        .otp-input {
            font-size: 1.2rem;
            letter-spacing: 8px;
            text-align: center;
            padding: 10px;
            background: rgba(255, 255, 255, 0.95) !important;
            border: 1.5px solid rgba(203, 213, 225, 0.9) !important;
            color: #0f172a !important;
        }

        .otp-input:focus {
            background: #ffffff !important;
            border-color: #2563eb !important;
            box-shadow: 0 0 0 3.5px rgba(37, 99, 235, 0.2) !important;
        }

        #recaptcha-container {
            display: flex;
            justify-content: center;
            margin-bottom: 1.25rem;
        }

        .consent-text {
            font-size: 0.85rem;
            /* slightly smaller */
            color: #475569;
            /* high contrast slate text */
            font-weight: 500;
        }

        .consent-text a {
            color: #1d4ed8;
            /* prominent high contrast link */
            font-weight: 600;
            text-decoration: underline;
        }


        @media (max-width: 768px) {



            .teacher-section {
                align-items: flex-start;
                padding: 2rem 1rem;
                /* ADD: Ensure full viewport coverage */
                min-height: calc(100vh - env(safe-area-inset-bottom));
            }

            .teacher-content {
                margin-left: 0;
                padding: 0 1rem;
            }



            .teacher-text {
                text-align: left;
                margin-left: 0;
                margin-top: 0vh;




            }

            .hero-title {
                font-size: 2.5rem;


            }

            .hero-subtitle {
                font-size: 1.1rem;
            }

            .teacher-signup-card {
                margin-top: 20px;
            }
        }

        .nav-container {
            position: relative;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 2500;
            transform: translateZ(0);
        }

        .navigation {
            display: flex;
            align-items: center;
            justify-content: space-between;
            ;
            max-width: 1300px;
            margin: 0 auto;
            padding: 50px 1rem;

        }

        .nav-logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: var(--text-color);
            font-weight: 700;
            font-size: 1.2rem;
            gap: 8px;
        }

        .nav-logo img {
            width: auto;
            height: 60px;
            max-width: 60px;
            border-radius: 10px;
            object-fit: contain;
        }

        .nav-logo img.is-branded {
            width: 60px;
            height: 60px;
            border-radius: 10px;
            object-fit: cover;
        }

        .nav-brand-name {
            font-size: 1.35rem;
            font-weight: 700;
            color: #4a5d7e;
            letter-spacing: -0.02em;
            white-space: nowrap;
            user-select: none;
            transition: color 0.2s ease;
        }

        .nav-logo:hover .nav-brand-name {
            color: var(--secondary-color);
        }

        .nav-links {
            display: flex;
            gap: 2rem;
        }

        .nav-link {
            text-decoration: none;
            color: var(--text-color);
            font-weight: 400;
            font-size: 1.1rem;
            transition: color 0.3s ease, transform 0.2s ease;
            position: relative;
        }

        .nav-link:hover {
            color: var(--secondary-color);
            transform: translateY(-2px);
        }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--secondary-color);
            border-radius: 2px;
        }

        /* --- NAV DROPDOWN (TEACHER SECTION) --- */
        .nav-dropdown {
            position: relative;
            display: inline-flex;
            align-items: center;
        }

        .nav-dropdown .nav-link,
        .nav-dropdown-trigger {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            user-select: none;
        }

        .nav-dropdown-arrow {
            font-size: 0.85rem;
            color: #0284c7;
            transition: transform 0.25s ease;
            opacity: 1;
            margin-left: 2px;
        }

        .nav-dropdown:hover .nav-dropdown-arrow,
        .nav-dropdown.open .nav-dropdown-arrow {
            transform: rotate(180deg);
            opacity: 1;
        }

        .dropdown-menu {
            position: absolute;
            top: calc(100% + 12px);
            left: 50%;
            transform: translateX(-50%) translateY(8px);
            min-width: 250px;
            background: #ffffff;
            border-radius: 14px;
            padding: 8px;
            box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15), 0 2px 6px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(226, 232, 240, 0.9);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
            z-index: 1200;
        }

        .dropdown-menu::before {
            content: '';
            position: absolute;
            top: -16px;
            left: 0;
            right: 0;
            height: 16px;
            background: transparent;
        }

        .nav-dropdown:hover .dropdown-menu,
        .nav-dropdown:focus-within .dropdown-menu,
        .nav-dropdown.open .dropdown-menu {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateX(-50%) translateY(0);
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            border-radius: 10px;
            text-decoration: none;
            color: #1e293b;
            transition: background 0.18s ease;
        }

        .dropdown-item:hover {
            background: #f1f5f9;
        }

        .dropdown-item-icon {
            font-size: 1.15rem;
            color: #0284c7;
            width: 20px;
            text-align: center;
        }

        .dropdown-item-title {
            display: block;
            font-weight: 700;
            font-size: 0.96rem;
            color: #0f172a;
            line-height: 1.25;
        }

        .dropdown-item-desc {
            display: block;
            font-size: 0.76rem;
            color: #64748b;
            margin-top: 2px;
        }

        .mobile-nav-group {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
            margin: 0.8rem 0;
        }

        .mobile-nav-parent {
            font-size: 2rem;
            font-weight: 700;
            color: #ffffff;
            text-decoration: none;
            margin: 0.5rem 0;
            cursor: default;
            user-select: none;
        }

        .mobile-nav-sublist {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.6rem;
            width: 100%;
            padding: 0;
            margin: 0.4rem 0 0.8rem;
            list-style: none;
        }

        .mobile-nav-sublink {
            color: #f8fafc;
            text-decoration: none;
            font-size: 1.25rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px 18px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.15);
            transition: all 0.2s ease;
        }

        .mobile-nav-sublink::before {
            content: "•";
            color: #bae6fd;
            font-size: 1.2rem;
            line-height: 1;
        }

        .mobile-nav-sublink:hover,
        .mobile-nav-sublink:active {
            background: rgba(255, 255, 255, 0.28);
            color: #ffffff;
            transform: scale(1.03);
        }

        /* --- MOBILE SPECIFIC --- */
        .mobile-menu-btn {
            display: none;
            /* Hidden on Desktop */
        }

        .mobile-nav-overlay {
            display: none;
            /* Hidden by default */
        }

        /* --- GLOWING PLAY BUTTON --- */
        .btn-play-glow {
            width: 52px;
            height: 52px;
            min-width: 52px;
            border-radius: 50%;
            background: linear-gradient(135deg, #38bdf8, #2563eb);
            border: 2px solid rgba(255, 255, 255, 0.8);
            color: #ffffff;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            position: relative;
            flex-shrink: 0;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

            /* Standout glowing pulse */
            box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6), 0 6px 20px rgba(37, 99, 235, 0.4);
            animation: playBtnPulse 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
        }

        .btn-play-glow i {
            font-size: 18px;
            margin-left: 3px;
            /* Optical center for triangle play icon */
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
        }

        .btn-play-glow:hover {
            transform: scale(1.12);
            box-shadow: 0 0 25px rgba(56, 189, 248, 0.9), 0 8px 30px rgba(37, 99, 235, 0.6);
        }

        @keyframes playBtnPulse {
            0% {
                box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7), 0 4px 15px rgba(37, 99, 235, 0.35);
                transform: scale(1);
            }

            50% {
                box-shadow: 0 0 0 16px rgba(56, 189, 248, 0), 0 8px 25px rgba(56, 189, 248, 0.5);
                transform: scale(1.05);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(56, 189, 248, 0), 0 4px 15px rgba(37, 99, 235, 0.35);
                transform: scale(1);
            }
        }

        /* Mobile Alignment */
        @media (max-width: 768px) {
            .teacher-cta-container {
                display: flex;
                align-items: center;
                gap: 12px;
            }

            .hero-btn {
                flex: 1;
            }

            .btn-play-glow {
                width: 48px;
                height: 48px;
                min-width: 48px;
            }
        }

        /* --- VERTICAL OVERLAY MODAL --- */
        .video-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(15, 23, 42, 0.88);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            z-index: 9999;
            display: none;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.35s ease;
            padding: 1rem;
        }

        .video-overlay.active {
            display: flex;
            opacity: 1;
        }

        /* Vertical 9:16 Phone-style Container with NO Border */
        .vertical-video-box {
            position: relative;
            height: 85vh;
            /* Fits within any screen height */
            max-height: 820px;
            aspect-ratio: 9 / 16;
            width: auto;
            max-width: calc(85vh * (9 / 16));
            border-radius: 28px;
            overflow: hidden;
            border: none !important;
            /* No border */
            background: #000;
            box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7);
            transform: scale(0.85);
            transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
            display: flex;
        }

        .video-overlay.active .vertical-video-box {
            transform: scale(1);
        }

        .vertical-video-box video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border: none;
            outline: none;
        }

        /* Custom Sleek Bottom Progress Bar (Instagram Reel / TikTok Style) */
        .video-progress-track {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 6px;
            background: rgba(255, 255, 255, 0.25);
            z-index: 10;
            cursor: pointer;
            touch-action: none;
            transition: height 0.15s ease, background 0.15s ease;
        }

        /* Expanded touch/click area above and below the bar on mobile */
        .video-progress-track::before {
            content: '';
            position: absolute;
            top: -12px;
            bottom: -12px;
            left: 0;
            right: 0;
        }

        .video-progress-track:hover,
        .video-progress-track.scrubbing {
            height: 10px;
            background: rgba(255, 255, 255, 0.4);
        }

        .video-progress-fill {
            position: relative;
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #38bdf8, #2563eb);
            border-radius: 0 4px 4px 0;
            transition: width 0.1s linear;
        }

        .video-progress-track.scrubbing .video-progress-fill {
            transition: none !important;
        }

        /* Glowing handle/thumb circle on hover or touch scrubbing */
        .video-progress-fill::after {
            content: '';
            position: absolute;
            right: -6px;
            top: 50%;
            transform: translateY(-50%) scale(0);
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #ffffff;
            box-shadow: 0 0 10px rgba(56, 189, 248, 0.8), 0 2px 6px rgba(0, 0, 0, 0.4);
            transition: transform 0.15s ease;
        }

        .video-progress-track:hover .video-progress-fill::after,
        .video-progress-track.scrubbing .video-progress-fill::after {
            transform: translateY(-50%) scale(1);
        }

        /* Clean Floating Close Button */
        .video-overlay-close {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.5);
            border: none;
            color: #ffffff;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 20;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            transition: all 0.2s ease;
        }

        .video-overlay-close:hover {
            transform: scale(1.1);
        }

        /* Responsive adjustment for small mobile screens */
        @media (max-width: 480px) {
            .vertical-video-box {
                height: 80vh;
                width: 100%;
                max-width: 90vw;
                border-radius: 22px;
            }
        }

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            .nav-container {
                padding: 20px 0;
                position: relative;
                z-index: 4000;
                pointer-events: none;
            }

            .navigation {
                padding: 50px 1rem 20px 0;
            }

            .nav-logo,
            .mobile-menu-btn {
                pointer-events: auto;
            }

            .nav-logo {
                display: inline-flex;
                align-items: center;
                gap: 5px;
                padding: 5px 16px 5px 10px;
                background: rgba(255, 255, 255, 0.45);
                backdrop-filter: blur(12px);
                -webkit-backdrop-filter: blur(12px);
                border: 1px solid rgba(255, 255, 255, 0.65);
                border-left: none;
                border-radius: 0 50px 50px 0;
                box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), inset 0 1px 1px rgba(255, 255, 255, 0.8);
                min-width: 0;
                max-width: calc(100% - 64px);
                font-size: 1rem;
            }

            .nav-logo img {
                width: auto;
                height: 48px;
                max-width: 48px;
                border-radius: 8px;
                object-fit: contain;
                margin-left: 0;
                flex-shrink: 0;
            }

            .nav-logo img.is-branded {
                width: 48px;
                height: 48px;
                border-radius: 50%;
                object-fit: cover;
            }

            .nav-links {
                display: none;
            }

            .nav-link {
                font-size: 1rem;
            }

            .nav-brand-name {
                font-size: 1.2rem;
                font-weight: 700;
                color: #334155;
                letter-spacing: -0.01em;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                min-width: 0;
            }

            /* Student Login Mobile Padding & Proportion Controls */
            #login-page {
                padding: 1rem 1.25rem;
            }

            .login-container {
                width: 100%;
                max-width: 380px;
                margin: 0 auto;
            }

            .login-card {
                padding: 2.2rem 1.6rem;
                border-radius: 24px;
            }

            .login-card .card-title {
                font-size: 1.5rem;
            }

            /* Hamburger Button (Square Container) */
            .mobile-menu-btn {
                position: relative;
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                width: 48px;
                height: 48px;
                border: 1px solid rgba(0, 0, 0, 0.1);
                background: rgba(255, 255, 255, 0.8);
                backdrop-filter: blur(10px);
                border-radius: 8px;
                /* Slight radius or 0 for perfect square */
                cursor: pointer;
                z-index: 3501;
                gap: 6px;
                transition: all 0.3s ease;
            }

            /* The Lines */
            .mobile-menu-btn span {
                width: 24px;
                height: 2px;
                background-color: #333;
                transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
                transform-origin: center;
            }

            /* --- Dedicated Close Button inside Overlay --- */
            .mobile-close-btn {
                position: absolute;
                top: 20px;
                right: 20px;
                width: 48px;
                height: 48px;
                display: flex;
                justify-content: center;
                align-items: center;
                cursor: pointer;
                z-index: 5002;
            }

            .mobile-close-btn span {
                position: absolute;
                width: 24px;
                height: 2px;
                background-color: #ffffff;
                transition: all 0.3s ease;
            }

            .mobile-close-btn span:nth-child(1) {
                transform: rotate(45deg);
            }

            .mobile-close-btn span:nth-child(2) {
                transform: rotate(-45deg);
            }

            /* --- Full Screen Overlay --- */
            .mobile-nav-overlay {
                display: flex;
                flex-direction: column;
                justify-content: center;
                align-items: center;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: #4ea8de;
                /* Clean background */
                z-index: 5000;
                overflow-y: auto;
                opacity: 0;
                pointer-events: none;
                /* Click through when hidden */
                transform: translateY(-20px);
                transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            }

            .mobile-nav-overlay.active {
                opacity: 1;
                pointer-events: auto;
                transform: translateY(0);
            }

            /* Overlay Links */
            .mobile-nav-link {
                font-size: 2rem;
                font-weight: 700;
                color: #ffffff;
                text-decoration: none;
                margin: 1.5rem 0;
                opacity: 0;
                transform: translateY(20px);
                transition: all 0.4s ease;
            }

            /* Staggered Animation for Links */
            .mobile-nav-overlay.active .mobile-nav-link,
            .mobile-nav-overlay.active .mobile-nav-sublink {
                opacity: 1;
                transform: translateY(0);
            }

            .mobile-nav-overlay.active .mobile-nav-link:nth-child(1) {
                transition-delay: 0.1s;
            }

            .mobile-nav-overlay.active .mobile-nav-link:nth-child(2) {
                transition-delay: 0.2s;
            }

            .mobile-nav-overlay.active .mobile-nav-link:nth-child(3) {
                transition-delay: 0.3s;
            }

            .mobile-nav-overlay.active .mobile-nav-link:nth-child(4) {
                transition-delay: 0.4s;
            }
        }

        @media (max-width: 768px) {
            .section {
                padding: 1rem;
                padding-bottom: max(30px, env(safe-area-inset-bottom, 30px));
                min-height: calc(100vh - env(safe-area-inset-bottom));
                display: flex;
                flex-direction: column;
                justify-content: center;
                box-sizing: border-box;
            }

            .content {
                margin-top: 0;
                margin-bottom: 0;
                display: flex;
                flex-direction: column;
                justify-content: center;
            }

            #home .content,
            .teacher-section .content {
                margin-top: clamp(-150px, -15vh, -90px);
            }

            .video-demo-section {
                min-height: auto;
                display: block;
                padding-top: 3.5rem;
                padding-bottom: 5rem;
                margin-bottom: 2.5rem;
            }

            .workflow-section {
                min-height: auto;
                display: block;
                padding-top: 3.5rem;
                padding-bottom: 5rem;
                margin-bottom: 2.5rem;
            }

            .testimonial-section {
                min-height: auto;
                display: block;
                padding-top: 3.5rem;
                padding-bottom: 4rem;
            }

            .hero-title {
                font-size: clamp(1.5rem, 4.2vh, 2.2rem);
                line-height: 1.15;
                margin-bottom: clamp(0.4rem, 1.2vh, 1rem);
            }

            .hero-subtitle {
                font-size: clamp(0.85rem, 2vh, 1.05rem);
                margin-top: 0;
                margin-bottom: clamp(0.4rem, 1.2vh, 0.8rem);
                line-height: clamp(1.2rem, 2.5vh, 1.45rem);
            }

            .floating-abacus {
                position: absolute;
                width: 100%;
                height: 35vh;
                right: -25%;
                top: 1.6%;
                transform: translateY(-70%) perspective(1000px) rotateY(-40deg);
                z-index: 3;
                opacity: 0.7;
            }

            .abacus-frame {
                border-width: 16px;
                /* Thinner border on mobile */
            }

            html,
            body {
                overflow-x: hidden;
                /* Prevents horizontal scrolling */
                position: relative;
                /* Creates a new stacking context */
                width: 100%;
                /* Ensures content doesn't extend beyond viewport */
            }

            .bead {
                width: 26px;
                height: 26px;
                margin-top: -13px !important;
                /* Exactly half of 26px */
                margin-left: -13px !important;
                touch-action: none;
            }

            .features {
                grid-template-columns: 1fr;
                /* Single column for mobile */
                gap: 2rem;
                padding: 2rem 1rem;
            }

            .feature {
                margin-bottom: 1.5rem;
                padding: 1.5rem;
            }

            .choice-card {
                padding: 2rem 1.5rem;
                text-align: left;
            }

            .choice-card h3 {
                font-size: 1.9rem;
                margin-bottom: 1rem;
            }

            .choice-card p {
                font-size: 1.1rem;
                margin-bottom: 1.3rem;
                line-height: 1.9rem;
            }

            .contact-section {
                padding: 3rem 1rem;
            }

            .contact-grid {
                padding: 0;
                gap: 1.5rem;
                width: 100%;
                box-sizing: border-box;
            }

            .contact-card {
                min-width: 0;
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
                padding: 1.5rem 1rem;
            }

            .qr-placeholder {
                width: 100%;
                max-width: 250px;
                height: auto;
                max-height: 140px;
                margin: 1rem auto;
                display: flex;
                align-items: center;
                justify-content: center;
                overflow: hidden;
            }

            .whatsapp-img {
                width: 100%;
                max-width: 100%;
                height: auto;
                object-fit: contain;
            }

            .footer-links-container {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
                gap: 8px 12px;
                margin-bottom: 1.5rem;
                line-height: 1.5 !important;
            }

            .footer-links-container a {
                margin: 0 !important;
            }

            .floating-scroll-indicator {
                bottom: 40px;
            }

            .scroll-arrow {
                width: 15px;
                height: 15px;
            }

            .floating-student-login {
                width: 150px;
                height: 50px;
                font-size: 14px;
            }
        }

        /* Video Demo Section Styles */
        .video-demo-section {
            padding: 6rem 2rem;
        }

        .video-content-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .video-content {
            padding: 2rem;
        }

        .video-content h3 {
            font-size: 3.5rem;
            margin-bottom: 2rem;
            color: var(--text-color);
        }

        .feature-list {
            list-style: none;
            margin-bottom: 2rem;
        }

        .feature-list li {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            color: var(--text-color);
        }

        .video-description {
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 2rem;
            color: var(--text-light);
        }

        .video-container {
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);

        }

        .video-cta {
            padding: 1rem 2rem;
            font-size: 1.1rem;
        }

        /* ===== FREEFALL STACK (replaces marquee widget styles) ===== */
        .freefall-section {
            position: relative;
            width: 100%;
            z-index: 10;
            overflow: hidden;
            margin: 6rem 0;
        }

        #teacher-marquee-section {
            display: none;
        }

        .freefall-pin-wrap {
            display: flex;
            align-items: center;
            gap: 4rem;
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            padding: 4rem 2rem;
            min-height: 100vh;
            box-sizing: border-box;
        }

        .teacher-section {
            display: flex;
            justify-content: center;
            padding: 2rem;
            flex-direction: column;
            align-items: center;
        }

        .teacher-content {
            max-width: 1200px;
            width: 100%;
            margin: 0 auto;
            display: flex;
            justify-content: flex-start;
        }

        .teacher-text {
            text-align: left;
            margin-left: 0;
            position: relative;
            z-index: 2;
        }

        .freefall-left {
            flex: 0 0 380px;
            max-width: 380px;
        }

        .freefall-eyebrow {
            display: block;
            font-family: "Courier New", monospace;
            font-size: 0.85rem;
            font-weight: 700;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: var(--accent-color, #38bdf8);
            margin-bottom: 1rem;
        }

        .freefall-title {
            font-size: clamp(2.2rem, 3.5vw, 3.2rem);
            font-weight: 800;
            color: var(--text-color, #1e293b);
            line-height: 1.1;
            margin-bottom: 1rem;
        }

        .freefall-desc {
            font-size: 1.05rem;
            color: var(--text-light, #64748b);
            line-height: 1.6;
            max-width: 320px;
        }

        .freefall-stage {
            flex: 1;
            min-width: 560px;
            width: 600px;
            position: relative;
            height: 600px;
            display: flex;
            align-items: center;
            justify-content: center;
            perspective: 1500px;
            /* 3D depth for fold effect */
        }

        .freefall-cards {
            position: relative;
            width: 560px;
            height: 500px;
            transform-style: preserve-3d;
            /* Enable 3D depth for stacked cards */
        }

        .freefall-card {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 560px;
            height: 500px;
            border-radius: 24px;
            overflow: hidden;
            background: #0f172a;
            box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
            will-change: transform, opacity;
            transform-origin: 50% 0%;
            /* Hinge at top edge */
            backface-visibility: hidden;
            /* Avoid mid-rotation flicker */
        }

        .freefall-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            position: absolute;
            inset: 0;
        }

        .freefall-card-text {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 24px 22px;
            background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 60%, transparent 100%);
            color: white;
            z-index: 2;
        }

        .freefall-card-text h3 {
            font-size: 1.3rem;
            margin-bottom: 4px;
            color: #ffffff;
        }

        .freefall-card-text p {
            font-size: 0.9rem;
            opacity: 0.85;
            color: #f1f5f9;
        }

        /* Progress rail — desktop only */
        .freefall-progress {
            position: absolute;
            right: -70px;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
            font-family: "Courier New", monospace;
            height: 380px;
            justify-content: flex-start;
        }

        .freefall-progress-num {
            font-weight: 800;
            font-size: 1.1rem;
            color: var(--text-color, #1e293b);
            line-height: 1;
        }

        .freefall-progress-total {
            font-size: 0.75rem;
            color: var(--text-light, #64748b);
            margin-bottom: 6px;
            line-height: 1;
        }

        .freefall-progress-track {
            position: relative;
            width: 2px;
            height: 160px;
            background: rgba(83, 144, 217, 0.2);
            flex-shrink: 0;
        }

        .freefall-progress-dot {
            position: absolute;
            left: 50%;
            top: 0;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--secondary-color, #0284c7);
            transform: translate(-50%, -50%);
            box-shadow: 0 0 10px rgba(83, 144, 217, 0.6);
            transition: none;
        }

        .freefall-progress-label {
            writing-mode: vertical-rl;
            font-size: 0.75rem;
            color: var(--text-light, #64748b);
            letter-spacing: 1px;
            margin-top: 6px;
            height: 160px;
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
            white-space: nowrap;
            overflow: hidden;
        }

        .freefall-mobile-label {
            display: none;
        }

        @media (max-width: 768px) {
            .freefall-pin-wrap {
                flex-direction: column;
                min-height: 100vh;
                justify-content: center;
                padding: 1rem 1.5rem;
                gap: 2rem;
            }

            .freefall-left {
                flex: none;
                max-width: 100%;
                text-align: center;
                margin-top: -1.5rem;
                margin-bottom: 0.5rem;
            }

            .freefall-desc {
                margin: 0 auto;
            }

            .freefall-stage {
                height: 81vw;
                max-height: 360px;
                width: 100%;
                min-width: 0;
                position: relative;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .freefall-progress {
                display: flex;
                flex-direction: column;
                align-items: center;
                position: absolute;
                right: 6px;
                left: auto;
                top: 50%;
                transform: translateY(-50%) scale(0.85);
                transform-origin: right center;
                z-index: 15;
                margin: 0;
            }

            .freefall-cards {
                width: 80vw;
                max-width: 350px;
                height: 72vw;
                max-height: 315px;
                margin: 0 auto;
            }

            .freefall-card {
                width: 100%;
                height: 100%;
            }

            .freefall-mobile-label {
                display: block;
                text-align: center;
                padding: 0 1.5rem;
                max-width: 400px;
                margin: 0 auto;
                position: relative;
                z-index: 20;
            }

            .freefall-mobile-label h4 {
                font-size: 1.15rem;
                color: var(--text-color, #1e293b);
                margin-bottom: 8px;
            }

            .freefall-mobile-label p {
                font-size: 0.95rem;
                line-height: 1.5;
                color: var(--text-light, #64748b);
            }
        }

        @media (max-width: 768px) {
            .video-content-grid {
                grid-template-columns: 1fr;
                gap: 3rem;
            }

            .video-content {
                padding: 1rem;
                order: 2;
            }

            .landscape-video-wrapper .video-container {
                transform: scale(1);
                margin: 0 -1rem;
            }

            .video-content h3 {
                font-size: 2rem;
                margin-bottom: 1.5rem;
            }

            .feature-list li {
                font-size: 1.1rem;
            }
        }

        @keyframes slideUp {
            from {
                transform: translateY(20px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        /* --- TEACHER HERO BUTTONS --- */
        .teacher-cta-container {
            display: flex;
            gap: 20px;
            margin-top: 2rem;
            align-items: center;
        }

        .hero-btn {
            padding: 1rem 2rem;
            border-radius: 10px;
            min-width: 200px;
            /* Pill shape */
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border: none;
            position: relative;
            overflow: hidden;
        }

        /* Primary Button (Purple/Indigo Gradient - Matches Teacher Theme) */
        .btn-teacher-primary {
            color: white;
            /* Matching Soft Sky Blue */
            background: linear-gradient(135deg, #6ca0e0, #6dd5fa);
            box-shadow: 0 4px 15px rgba(109, 213, 250, 0.3);
        }

        .btn-teacher-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(109, 213, 250, 0.45);
        }


        /* Secondary Button (Outline Style) */
        .btn-teacher-secondary {
            background: transparent;
            color: #4a5d7e;
            /* Theme color */
            border: 2px solid #a3b1c6;
            padding: calc(1rem - 2px) calc(2rem - 2px);
        }

        .btn-teacher-secondary:hover {
            background: rgba(109, 213, 250, 0.1);
            /* Very subtle sky blue tint */
            border-color: #6ca0e0;
            color: #6ca0e0;
            transform: translateY(-3px);
        }

        @media (max-width: 768px) {
            .teacher-cta-container {
                gap: 15px;
                width: 100%;
                margin-top: clamp(0.5rem, 1.5vh, 1.2rem);
                /* Aligns buttons to the left */
            }

            .hero-btn {
                width: 100%;
                max-width: 115px;
                min-width: 115px;
                white-space: nowrap;
                /* NEW: Responsive Font Size to prevent overflow on tiny screens */
                font-size: clamp(14px, 2vw, 1.1rem);
                padding: 0.8rem 1.5rem;
                /* Slightly reduced padding for mobile */
            }

            .btn-teacher-secondary {
                /* Recalculate for mobile padding */
                padding: calc(0.8rem - 2px) calc(0.8rem - 2px);
            }
        }

        /* --- UNIFIED AUTH BUTTON STYLES --- */

        /* Target all three buttons by ID */
        #google-signin-btn,
        #skip-to-otp-link,
        #show-passcode-login {
            /* 1. White Background & Blue Border */
            background-color: #ffffff !important;
            border: 2px solid #4299e1 !important;
            /* Theme Blue */
            color: #4299e1 !important;
            /* Text matches border */

            /* 2. Layout & Typography */
            font-weight: 600;
            padding: 12px 20px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            /* Space between icon and text */
            margin-bottom: 15px;
            /* Spacing between buttons */

            /* 3. Disable Bootstrap defaults */
            box-shadow: none;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

        /* --- HOVER STATE --- */
        /* "No color change" - just a subtle lift */
        #google-signin-btn:hover,
        #skip-to-otp-link:hover,
        #show-passcode-login:hover {
            background-color: #ffffff !important;
            /* Stay White */
            color: #4299e1 !important;
            /* Stay Blue */
            border-color: #4299e1 !important;

            transform: translateY(-2px);
            /* Tiny lift */
            box-shadow: 0 5px 15px rgba(66, 153, 225, 0.15);
            /* Soft blue shadow */
        }

        /* --- GOOGLE ICON FIX --- */
        /* Ensure the SVG is sized correctly */
        #google-signin-btn svg {
            display: block;
            width: 22px;
            height: 22px;
            /* Remove any margins since we use flex gap now */
            margin-right: 0 !important;
        }

        #google-signin-btn span {
            line-height: 1;
            /* Reset line height to match icon center */
            margin-top: 2px;
            /* Micro-adjustment if font sits high visually */
        }

        /* --- GLOBAL IMPACT SCROLLYTELLING --- */
        .impact-section {
            position: relative;
            width: 100%;
            height: 100vh;
            overflow: hidden;
            background: transparent;
            z-index: 5;
        }

        .impact-track {
            display: flex;
            height: 100%;
            /* DYNAMIC WIDTH: Fits content exactly */
            width: max-content;
            will-change: transform;
        }

        /* Panel 1: Stats Container */
        .impact-panel-stats {
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            /* Spacing: Start 10vw from left, End 5vw before Map starts */
            padding: 0 5vw 0 10vw;
            flex-shrink: 0;
        }

        .impact-header {
            font-size: clamp(3rem, 6vw, 5rem);
            /* Bigger Header */
            margin-bottom: 4rem;
            color: rgb(74, 93, 126);
            font-weight: 800;
            white-space: nowrap;
            /* Keep on one line */
        }

        .stats-row {
            display: flex;
            gap: 3rem;
            /* Spacing between cards */
            align-items: center;
        }

        .stat-item {
            /* Bigger Cards */
            min-width: 350px;
            text-align: center;
            background: rgba(255, 255, 255, 0.6);
            padding: 4rem 3rem;
            /* More padding */
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.8);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
            backdrop-filter: blur(10px);
        }

        .stat-number {
            font-size: 5rem;
            /* Huge Numbers */
            font-weight: 800;
            color: var(--secondary-color);
            margin-bottom: 1rem;
            font-family: "Courier New", monospace;
            font-variant-numeric: tabular-nums;
            line-height: 1;
        }

        .stat-label {
            font-size: 1.3rem;
            /* Bigger Label */
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 700;
        }

        /* Panel 2: Map (Last Item) */
        .impact-panel-map {
            width: 100vw;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
            flex-shrink: 0;
        }

        .map-container {
            width: 90vw;
            height: 80vh;
            position: relative;

            /* GLOSSY GLASS EFFECT */
            /* Diagonal gradient from semi-transparent white to clear creates the sheen */
            background: linear-gradient(135deg,
                    rgba(255, 255, 255, 0.4) 0%,
                    rgba(255, 255, 255, 0.1) 100%);
            backdrop-filter: blur(42px);
            /* Blurs the background elements */
            -webkit-backdrop-filter: blur(12px);

            border-radius: 30px;
            /* Top/Left border is brighter to simulate light source */
            border-top: 1px solid rgba(255, 255, 255, 0.8);
            border-left: 1px solid rgba(255, 255, 255, 0.8);
            border-right: 1px solid rgba(255, 255, 255, 0.2);
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);

            box-shadow:
                0 8px 32px 0 rgba(31, 38, 135, 0.1),
                /* Soft colored shadow */
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
            /* Inner rim */

            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        /* New Heading at the Top */
        .map-header-title {
            position: absolute;
            top: 1.5rem;
            left: 0;
            text-align: center;
            width: 100%;
            font-size: 2rem;
            font-weight: 800;
            color: var(--text-light);
            /* Matches theme text */
            z-index: 10;
            pointer-events: none;
            text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
        }

        canvas#world-map-canvas {
            display: block;
            width: 100%;
            height: 100%;
            mix-blend-mode: multiply;
            /* Helps map blend into the glass */
            position: absolute;
            top: 0;
            left: 0;
        }

        /* Overlay Card (Left Bottom) */
        .map-overlay-text {
            position: absolute;
            bottom: 10%;
            left: 4%;
            max-width: 320px;
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(15px);
            padding: 1.5rem;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.8);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
            opacity: 0;
            /* Animated in by GSAP */
            z-index: 10;
            pointer-events: none;
        }

        .map-overlay-text h3 {
            color: var(--secondary-color);
            /* Matches Abacus Blue */
            margin-bottom: 0.5rem;
            font-size: 1.3rem;
            font-weight: 700;
        }

        .map-overlay-text p {
            color: var(--text-color);
            line-height: 1.5;
            font-size: 0.95rem;
        }

        /* Footnote (Right Bottom) */
        .map-source-footnote {
            position: absolute;
            bottom: 1.5rem;
            right: 2rem;
            font-size: 0.75rem;
            color: var(--text-light);
            font-family: system-ui, -apple-system, sans-serif;
            font-weight: 600;
            opacity: 0.8;
            z-index: 5;
            pointer-events: none;
        }

        /* --- MAP LOADER STYLES --- */
        .map-loader {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: flex;
            gap: 8px;
            z-index: 5;
            transition: opacity 0.5s ease;
        }

        .map-loader.hidden {
            opacity: 0;
            pointer-events: none;
        }

        .map-loader span {
            width: 12px;
            height: 12px;
            background-color: var(--secondary-color);
            /* Uses your blue theme */
            border-radius: 50%;
            display: inline-block;
            animation: mapLoaderBounce 1.4s infinite ease-in-out both;
        }

        .map-loader span:nth-child(1) {
            animation-delay: -0.32s;
        }

        .map-loader span:nth-child(2) {
            animation-delay: -0.16s;
        }

        @keyframes mapLoaderBounce {

            0%,
            80%,
            100% {
                transform: scale(0);
            }

            40% {
                transform: scale(1);
            }
        }

        /* Mobile Adjustments */
        @media (max-width: 768px) {

            /* 1. Strict Container Constraints (Fixes Scrollbar/Buttons) */
            .impact-section {
                height: auto !important;
                width: 100% !important;
                padding: 4rem 1.5rem;
                overflow: hidden !important;
                position: relative;
            }

            /* 2. Force Track to Vertical Block */
            .impact-track {
                display: flex !important;
                flex-direction: column !important;
                width: 100% !important;
                max-width: 100vw !important;
                /* Stop horizontal leaks */
                transform: none !important;
                margin: 0;
            }

            /* 3. Stats Panel */
            .impact-panel-stats {
                width: 100% !important;
                padding: 0 !important;
                margin-bottom: 2rem;
            }

            .impact-header {
                font-size: 2.2rem;
                white-space: normal;
                text-align: center;
                margin-bottom: 3rem;
                line-height: 1.2;
            }

            /* 4. Vertical Stats Stack */
            .stats-row {
                display: flex;
                flex-direction: column;
                gap: 1.5rem;
                width: 100%;
            }

            .stat-item {
                width: 100%;
                padding: 2.5rem 1.5rem;
                /* Start hidden for animation */
                opacity: 0;
                transform: scale(0.8) translateY(20px);
            }

            /* Animation state when visible */
            .stat-item.visible {
                animation: popIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            }

            /* Pop-in animation */
            @keyframes popIn {
                0% {
                    opacity: 0;
                    transform: scale(0.8) translateY(20px);
                }

                60% {
                    transform: scale(1.05) translateY(-5px);
                }

                100% {
                    opacity: 1;
                    transform: scale(1) translateY(0);
                }

            }

            .stat-number {
                font-size: 3.5rem;
            }

            /* 5. THE BLANK SPACE (Map Container) */
            .impact-panel-map {
                display: block !important;
                /* Keep it in the layout */
                width: 100% !important;
                /* Full width */
                height: 300px;
                /* The "Blank Space" height */
                position: relative;
                margin-top: 2rem;

                /* This hides the visual map but keeps the physical space */
                visibility: hidden;
            }

            /* Ensure inner elements don't force width */
            .map-container {
                width: 100% !important;
                height: 100% !important;
            }
        }

        /* --- PROGRESSIVE HIGHLIGHT SECTION --- */
        .highlight-scroll-section {
            position: relative;
            width: 100%;
            /* Height ensures enough scroll room for the effect */
            min-height: 150vh;
            padding: 8rem 2rem;
            background: transparent;
            z-index: 2;
            display: flex;
            justify-content: center;
            align-items: center;
            /* Center content vertically in the section */
        }

        .story-container {
            max-width: 1000px;
            /* slightly wider for desktop readability */
            width: 100%;
            display: flex;
            flex-direction: column;
            /* Stack vertically on ALL screens */
            gap: 1.5rem;
            /* Reduced gap between Label and Text */
            align-items: flex-start;
        }

        .story-label {
            /* Unified Style for Desktop & Mobile */
            position: relative;
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-color);
            text-transform: uppercase;
            letter-spacing: 3px;
            font-family: "Courier New", monospace;
            opacity: 0.7;

            /* The "Left Border" look */
            text-align: left;
            border-left: 4px solid var(--secondary-color);
            padding-left: 1.2rem;

            /* Ensure it doesn't shift */
            margin: 0;
        }

        .highlight-content {
            width: 100%;
        }

        .highlight-text {
            font-size: clamp(1.8rem, 4vw, 3.5rem);
            /* Responsive scaling */
            line-height: 1.4;
            font-weight: 700;
            color: rgba(74, 93, 126, 0.15);
            /* Ghost text color */
            transition: color 0.1s linear;
            margin: 0;
            /* Remove default margins to keep gap tight */
        }

        /* The spans need to be inline-block to handle spacing correctly with GSAP */
        .highlight-text span {
            display: inline;
            will-change: color, opacity;
        }

        /* Mobile adjustments */
        @media (max-width: 768px) {
            .highlight-scroll-section {
                padding: 4rem 1.5rem;
                min-height: 120vh;
                align-items: flex-start;
                /* Align top on mobile */
            }

            .story-container {
                gap: 1rem;
                /* Even tighter gap on mobile */
            }

            .story-label {
                font-size: 1rem;
                padding-left: 1rem;
                border-left-width: 3px;
            }

            .highlight-text {
                font-size: 1.8rem;
                line-height: 1.5;
            }
        }

        /* =========================================
        1. LANDSCAPE VIDEO SECTION STYLES
        ========================================= */
        .landscape-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
        }

        .landscape-video-wrapper {
            width: 100%;
            border-radius: 20px;
            overflow: hidden;
            transform: translateZ(0);
            /* Fix for Safari border-radius */
        }

        /* Landscape Mobile Layout */
        @media (max-width: 768px) {
            .landscape-grid {
                display: flex;
                /* Stack vertically */
                flex-direction: column;
                gap: 2rem;
            }

            .landscape-video-wrapper {
                width: 100%;
                /* Ensure full width */
                margin: 0;
                order: 1;
                /* Put video on top (optional) or remove to keep text top */
            }

            /* Fix for the text content */
            #platform-overview .video-content {
                padding: 0;
                order: 2;
            }
        }


        /* =========================================
        2. HIGHLIGHT (PHONE) SECTION STYLES
        ========================================= */
        .highlight-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            min-height: 70vh;
        }

        .highlight-text-wrapper {
            padding-right: 2rem;
            font-size: 3.5rem;
        }

        .highlight-phone-column {
            display: flex;
            flex-direction: column;
            align-items: center;
            width: 100%;
        }

        /* Standard Desktop Phone Size */
        .phone-mockup {
            width: 100%;
            max-width: 340px;
            border: 12px solid #2b2d42;
            border-radius: 40px;
            overflow: hidden;
            position: relative;
            background: #000;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
            aspect-ratio: 9/16;
            display: flex;
            flex-direction: column;
            z-index: 10;
        }

        .phone-mockup iframe {
            width: 100%;
            height: 100%;
        }

        .phone-notch {
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 24px;
            background: #2b2d42;
            border-bottom-left-radius: 12px;
            border-bottom-right-radius: 12px;
            z-index: 20;
            pointer-events: none;
        }

        /* --- Video Slider Dot Styles --- */
        .video-dots-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 12px;
            min-width: 80px;
            /* Ensures space between Prev/Next buttons */
        }

        /* We reuse the existing .nav-dot class, but we can override specific props here if needed */
        #video-dots .nav-dot {
            /* Reuse existing testimonial dot styles */
            width: 10px;
            height: 10px;
            margin: 0;
            /* Remove potential inherited margins */
        }

        /* Controls below phone */
        .slider-controls-bottom {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            max-width: 340px;
            margin-top: 1.5rem;
            gap: 2rem;
        }

        .btn-nav {
            flex: 1;
            /* Makes buttons equal width */
            padding: 0.8rem 0;
            border-radius: 12px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            /* Uses your theme variable, or falls back to blue */
            border: 2px solid var(--secondary-color, #5390d9);
            background: transparent;
            color: var(--secondary-color, #5390d9);
            text-align: center;
            margin: 0;
            /* Reset margins */
        }

        .btn-nav:hover {
            background: var(--secondary-color, #5390d9);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(83, 144, 217, 0.2);
        }

        .slide-indicator {
            font-family: "Courier New", monospace;
            font-weight: 700;
            color: var(--text-light, #64748b);
            font-size: 1.1rem;
            white-space: nowrap;
            min-width: 60px;
            text-align: center;
        }

        /* --- MOBILE SPECIFIC FOR PHONE SECTION --- */
        @media (max-width: 768px) {
            .highlight-grid {
                display: flex;
                flex-direction: column;
                gap: 1.5rem;
                padding-top: 1rem;
            }

            /* Order: Phone first, Text second */
            .highlight-phone-column {
                display: flex;
                flex-direction: column;
                align-items: center !important;
                /* Forces center alignment */
                justify-content: center;
                width: 100%;
                padding: 0 !important;
                /* Removes padding that causes right-shift */
                margin: 0 auto 1.5rem auto;
            }

            .highlight-text-wrapper {
                order: 2;
                padding: 0 1rem;
                text-align: center;
                width: 100%;
            }

            .video-demo-section {
                padding: 3rem 1rem;
                min-height: auto;
            }

            /* MAKE PHONE FIT PRECISELY ON MOBILE */
            .phone-mockup {
                margin: 0 auto !important;
                /* Force horizontal centering */
                width: 100%;
                max-width: 320px;
                /* Fits all mobile screens cleanly */

                /* Reset positioning that might cause shifts */
                left: auto;
                right: auto;
                transform: none;

                border-width: 10px;
            }

            .phone-mockup .video-container {
                margin: 0 !important;
                padding: 0 !important;
                position: absolute !important;
                top: 0 !important;
                left: 0 !important;
                width: 100% !important;
                height: 100% !important;
                border-radius: 0 !important;
                box-shadow: none !important;
            }

            /* Make controls match the phone width */
            .slider-controls-bottom {
                max-width: 320px;
                width: 100%;
            }

            .highlight-hero-title {
                font-size: 2rem;
                line-height: 1.2;
            }
        }

        /* --- WORKFLOW SECTION STYLES --- */
        .workflow-section {
            padding: 6rem 2rem;
            background: transparent;
            /* Keeps the particle background visible */
            text-align: center;
        }

        .workflow-header {
            max-width: 800px;
            margin: 0 auto 4rem auto;
        }

        .section-description {
            font-size: 1.2rem;
            color: var(--text-light);
            line-height: 1.6;
            margin-top: -1.5rem;
            /* Pulls it closer to the header */
        }

        /* Image Container */
        .workflow-visual {
            width: 100%;
            max-width: 1000px;
            margin: 0 auto 5rem auto;
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(10px);
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.6);
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);

            /* CRITICAL FOR ZOOM: Hides the image if it scales outside the box */
            overflow: hidden;
            position: relative;
        }

        .workflow-img {
            width: 100%;
            height: auto;
            display: block;
            transform-origin: center center;
            /* Zoom from center */
            will-change: transform;
            /* optimizing performance */
            /* Remove the old hover effect as it conflicts with pinch zoom */
        }

        /* Icon to tell user they can zoom */
        .zoom-hint-icon {
            display: none;
            /* Hidden on desktop */
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.8);
            padding: 8px;
            border-radius: 50%;
            z-index: 10;
            pointer-events: none;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .workflow-visual:hover .workflow-img {
            transform: scale(1.02);
        }

        /* 3-Column Text Grid */
        .workflow-steps-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 3rem;
            text-align: left;
            max-width: 1100px;
            margin: 0 auto;
        }

        .step-card {
            background: rgba(255, 255, 255, 0.6);
            padding: 2rem;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.5);
            transition: transform 0.3s ease;
        }

        .step-card:hover {
            transform: translateY(-5px);
            background: rgba(255, 255, 255, 0.8);
        }

        .step-number {
            font-size: 3rem;
            font-weight: 800;
            color: rgba(66, 153, 225, 0.15);
            /* Faded Theme Blue */
            line-height: 1;
            margin-bottom: 0.5rem;
            font-family: "Courier New", monospace;
        }

        .step-card h3 {
            font-size: 1.5rem;
            color: var(--text-color);
            margin-bottom: 1rem;
            font-weight: 700;
        }

        .step-card p {
            color: var(--text-light);
            font-size: 1rem;
            line-height: 1.5;
        }

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            .workflow-section {
                padding: 3rem 1rem;
                min-height: auto;
            }

            .workflow-header {
                margin-bottom: 2rem;
            }

            .workflow-visual {
                width: 100%;
                max-width: 100%;
                margin: 0 auto 2rem auto;
                transform: none;
                padding: 0;
                box-sizing: border-box;
                border-radius: 20px;
            }

            /* 2. Ensure Image fills the new wide container */
            .workflow-img {
                width: 100%;
                height: auto;
                display: block;

                /* Ensure it stays centered if aspect ratio differs */
                margin: 0 auto;
            }

            /* 3. Keep the hint icon visible */
            .zoom-hint-icon {
                display: block;
                right: 10px;
                /* Adjust position slightly */
                top: 10px;
            }

            .workflow-steps-grid {
                grid-template-columns: 1fr;
                /* Stack text cards */
                gap: 1.5rem;
            }

            .step-card {
                text-align: center;
                padding: 1.5rem;
            }
        }

        /* =========================================
        TEACHER TESTIMONIALS SECTION
        ========================================= */
        .testimonial-section {
            padding: 8rem 2rem;
            background: transparent;
            position: relative;
            overflow: hidden;
        }

        .testimonial-container {
            max-width: 1100px;
            margin: 0 auto;
            position: relative;
        }

        .testimonial-card {
            height: 480px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            /* Pushes content to top/bottom edges */
            background: linear-gradient(145deg,
                    rgba(255, 255, 255, 0.9),
                    rgba(248, 249, 250, 0.8));
            padding: 4rem 3rem;
            border-radius: 30px;
            box-shadow:
                0 30px 60px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.6);
            position: relative;
            min-height: 400px;
            transition: transform 0.4s ease;
        }

        #testimonial-content-wrapper {
            display: flex;
            flex-direction: column;
            height: 100%;
            /* Fill the card */
            justify-content: space-between;
            /* Push Text to top, Author to bottom */
        }

        .testimonial-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
        }

        /* Decorative Quote Mark */
        .quote-icon {
            position: absolute;
            top: -20px;
            left: 40px;
            font-size: 120px;
            color: rgba(83, 143, 217, 0.396);
            font-family: Georgia, serif;
            line-height: 1;
            pointer-events: none;
        }

        .testimonial-text {
            height: 9rem;
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            /* Forces exactly 3 lines max */
            -webkit-box-orient: vertical;
            font-size: 1.4rem;
            line-height: 2;
            color: var(--text-color);
            margin-bottom: 3rem;
            font-weight: 400;
            position: relative;
            z-index: 2;
        }

        .testimonial-text .highlight {
            color: var(--secondary-color);
            font-weight: 600;
            position: relative;
        }

        .testimonial-text .highlight::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg,
                    var(--secondary-color),
                    var(--accent-color));
            opacity: 0.4;
        }

        /* Author Info Bar */
        .testimonial-author {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: auto;
            padding-top: 2rem;
            border-top: 2px solid rgba(83, 144, 217, 0.15);
        }

        .author-details {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .author-name {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--text-color);
        }

        .author-role {
            font-size: 1rem;
            color: var(--text-light);
            font-weight: 500;
        }

        .author-location {
            font-size: 0.95rem;
            color: var(--text-light);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .author-location::before {
            content: "📍";
            font-size: 0.9rem;
        }

        /* Stats Badge */
        .teacher-stats {
            padding: 1rem 1.5rem;
            border-radius: 15px;
            color: white;
            text-align: center;
            box-shadow: 0 8px 20px rgba(83, 144, 217, 0.3);
        }

        .stat-number {
            font-size: 2rem;
            font-weight: 800;
            font-family: "Courier New", monospace;
            line-height: 1;
            margin-bottom: 0.3rem;
        }

        .stat-label {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            opacity: 0.95;
        }

        /* Navigation Controls */
        .testimonial-nav {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 2rem;
            margin-top: 3rem;
        }

        .nav-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(83, 144, 217, 0.3);
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .nav-dot.active {
            background: var(--secondary-color);
            transform: scale(1.3);
            box-shadow: 0 0 15px rgba(83, 144, 217, 0.5);
        }

        .nav-dot:hover:not(.active) {
            background: rgba(83, 144, 217, 0.6);
            transform: scale(1.15);
        }

        /* Arrow Buttons */
        .nav-arrow {
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: white;
            border: 2px solid var(--secondary-color);
            color: var(--secondary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.2rem;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(83, 144, 217, 0.15);
        }

        .nav-arrow:hover {
            background: var(--secondary-color);
            color: white;
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(83, 144, 217, 0.3);
        }

        .testimonial-content {
            /* Base state: Visible and centered */
            opacity: 1;
            transform: translateX(0);
            transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
        }

        /* State 1: Slide OUT to the Left */
        .testimonial-content.slide-out {
            opacity: 0;
            transform: translateX(-50px);
        }

        /* State 2: Prepare to slide IN from the Right (Instant jump, no transition) */
        .testimonial-content.prepare-slide-in {
            transition: none;
            /* Disable transition for instant repositioning */
            opacity: 0;
            transform: translateX(50px);
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .testimonial-section {
                padding: 3rem 1rem;
                min-height: auto;
            }

            .testimonial-container {
                width: 100%;
                max-width: 100%;
                padding: 0;
                margin: 0 auto;
                box-sizing: border-box;
            }

            .testimonial-card {
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;
                height: auto;
                min-height: auto;
                min-width: 0;
                padding: 1.5rem 1rem;
                margin: 0;
            }

            .quote-icon {
                font-size: 60px;
                top: -10px;
                left: 15px;
            }

            .testimonial-text {
                height: auto;
                max-height: none;
                font-size: 1rem;
                line-height: 1.6;
                margin-bottom: 1.5rem;
                -webkit-line-clamp: unset;
            }

            .testimonial-author {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.8rem;
                /* Reduced gap since stats are now inline */
            }

            .author-name {
                font-size: 1.1rem;
            }

            .teacher-stats {
                display: none;
            }

            /* Add student count as plain text detail */
            .author-details::after {
                content: attr(data-students) " Active Students";
                display: none;
                font-size: 0.9rem;
                color: var(--text-light);
                margin-top: 0.3rem;
                font-weight: 500;
            }
        }

        .impact-panel-stats .stat-number {
            font-size: 5rem !important;
            /* Restored original size */
            font-weight: 800;
            color: var(--secondary-color);
            margin-bottom: 1rem;
            font-family: "Courier New", monospace;
            line-height: 1;
        }

        /* 2. Target the Testimonial Stats specifically to keep them small */
        .teacher-stats .stat-number {
            font-size: 2rem !important;
            margin-bottom: 0.3rem;
            font-family: "Courier New", monospace;
            font-weight: 800;
            line-height: 1;
        }

        .impact-panel-stats .stat-label {
            font-size: 1.3rem;
            /* Bigger Label */
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 700;
        }

        /* 3. Mobile Adjustment for Impact Stats */
        @media (max-width: 768px) {
            .impact-panel-stats .stat-number {
                font-size: 3.5rem !important;
                /* Restored mobile size */
            }
        }

        /* --- SAFARI FIX: HIDE ABACUS --- */
        /* Safari handles 3D z-index poorly, causing the abacus to overlay text. 
        We hide it to ensure the text remains readable. */
        .is-safari .floating-abacus {
            display: none !important;
        }

        /* --- Teacher Floating Action Button (FAB) --- */
        .teacher-fab-container {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 1002;
            display: none;
            animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        .teacher-fab-btn {
            background: linear-gradient(135deg, #6ca0e0, #6dd5fa);
            color: white;
            border: none;
            border-radius: 50px;
            padding: 12px 24px;
            font-weight: 600;
            font-size: 1rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
        }

        .teacher-fab-btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(109, 213, 250, 0.6);
        }

        /* Ensure SVG icon is sized correctly */
        .teacher-fab-icon {
            width: 20px;
            height: 20px;
        }

        @keyframes bounceIn {
            0% {
                transform: scale(0);
                opacity: 0;
            }

            60% {
                transform: scale(1.1);
                opacity: 1;
            }

            100% {
                transform: scale(1);
            }
        }

        /* --- Multi-Select Bubbles (Chips) --- */
        .interest-bubbles-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 20px;
        }

        .interest-bubble {
            cursor: pointer;
            margin: 0;
        }

        /* Hide the actual checkbox input */
        .interest-bubble input {
            display: none;
        }

        /* Style the span to look like a bubble */
        .interest-bubble span {
            display: inline-block;
            padding: 8px 16px;
            border-radius: 50px;
            background-color: #f0f2f5;
            /* Light grey default */
            color: var(--text-color);
            border: 1px solid transparent;
            font-size: 0.75rem;
            font-weight: 500;
            transition: all 0.2s ease;
            user-select: none;
        }

        /* Selected State */
        .interest-bubble input:checked+span {
            background-color: var(--secondary-color);
            /* Theme Blue */
            color: white;
            border-color: var(--secondary-color);
            box-shadow: 0 4px 10px rgba(83, 144, 217, 0.3);
            transform: translateY(-1px);
        }

        /* Hover Effects */
        .interest-bubble:hover span {
            background-color: #e4e6eb;
        }

        .interest-bubble input:checked:hover+span {
            background-color: #4a80c4;
            /* Darker blue on hover */
        }

        @media (max-width: 768px) {
            .teacher-fab-container {
                bottom: 16px;
                right: 16px;
            }

            .teacher-fab-btn {
                padding: 10px 18px;
                font-size: 0.9rem;
            }
        }

        /* --- GENERATOR SECTION STYLES --- */
        #generator-page {
            padding-top: 0;
            /* Keep page background distinct */
            min-height: 100vh;
            overflow-y: auto;
            pointer-events: none !important;
            z-index: 150 !important;
            display: flex;
            /* Center the card */
            justify-content: center;
            align-items: flex-start;
        }

        .generator-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(15px);
            width: 100%;
            max-width: 900px;
            border-radius: 20px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.5);
            padding: 3rem;
            margin: 0 auto 50px auto;
            position: relative;
            text-align: left;
            margin-top: 2rem;
            z-index: 2000 !important;
            pointer-events: auto !important;
        }

        #generator-faq-section {
            pointer-events: auto !important;
        }

        .card-header-custom {
            text-align: center;
            margin-bottom: 2.5rem;
            border-bottom: 1px solid #eee;
            padding-bottom: 2rem;
        }

        .card-title {
            font-size: 2.2rem;
            font-weight: 800;
            color: #4a5d7e;
            margin-bottom: 0.5rem;
        }

        .card-subtitle {
            color: #64748b;
            font-size: 1rem;
        }

        /* Form Elements */
        .gen-label {
            font-weight: 600;
            color: #2b2d42;
            margin-bottom: 0.6rem;
            display: block;
            margin-top: 0.6rem
        }

        .gen-form-control {
            width: 100%;
            border: 2px solid rgba(83, 144, 217, 0.15);
            border-radius: 12px;
            padding: 10px 15px;
            height: 48px;
            color: #2b2d42;
            font-size: 1rem;
            background: #fff;
            transition: all 0.3s ease;
        }

        .gen-form-control:focus {
            border-color: #5390d9;
            box-shadow: 0 4px 20px rgba(83, 144, 217, 0.1);
            outline: none;
        }

        /* Test Type Toggle */
        .test-type-group {
            background: #f1f5f9;
            padding: 6px;
            border-radius: 12px;
            display: flex;
            gap: 10px;
        }

        .test-type-label {
            flex: 1;
            text-align: center;
            padding: 12px;
            border-radius: 8px;
            cursor: pointer;
            margin: 0;
            font-weight: 600;
            color: #64748b;
            transition: all 0.2s;
            border: 1px solid transparent;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .test-type-input {
            display: none;
        }

        /* Checked State */
        .test-type-input:checked+span {
            /* This selector might be tricky if structure changes, rely on :has below */
        }

        .test-type-label:has(.test-type-input:checked) {
            background: white;
            color: #5390d9;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
            border-color: rgba(83, 144, 217, 0.2);
        }

        /* Lock Style */
        .test-type-label.locked {
            opacity: 0.6;
            cursor: not-allowed;
            background-color: #f8f9fa;
        }

        .test-type-label.locked:hover::after {
            content: attr(title);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: #333;
            color: #fff;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            white-space: nowrap;
            pointer-events: none;
            margin-bottom: 5px;
        }

        /* Formula Sections (Created by JS) */
        .formula-section {
            background-color: #ffffff;
            border: 1px solid #e0e7ee;
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
            overflow: hidden;
        }

        .section-title {
            font-size: 1.1em;
            font-weight: 700;
            color: #4a6f92;
            padding: 15px 20px;
            background-color: #f7faff;
            border-bottom: 1px solid #e0e7ee;
            margin: 0;
        }

        .section-content {
            padding: 15px;
        }

        /* Formula Accordion Item */
        .formula-container {
            border: 1px solid #e8eef3;
            border-radius: 10px;
            margin-bottom: 10px;
            background-color: #fff;
            transition: all 0.2s;
        }

        .formula-container:hover {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        .formula-header {
            padding: 12px 18px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background-color: #fdfdfe;
            border-radius: 10px;
            transition: all 0.2s;
        }

        .formula-header.active {
            background-color: #f5f8fd;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
            border-bottom: 1px solid #e8eef3;
        }

        .formula-checkbox {
            width: 18px;
            height: 18px;
            margin-right: 12px;
            cursor: pointer;
        }

        .variation-checkbox {
            width: 16px;
            height: 16px;
            margin-right: 10px;
            margin-top: 4px;
            cursor: pointer;
        }

        .formula-content {
            padding: 15px 20px 15px 45px;
            display: none;
            background: #fff;
            border-bottom-left-radius: 10px;
            border-bottom-right-radius: 10px;
        }

        /* Sticky Footer */
        #sticky-formula-summary {
            position: sticky;
            bottom: 20px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(83, 144, 217, 0.2);
            padding: 15px 25px;
            border-radius: 16px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            margin-top: 2rem;
            z-index: 90;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .selected-formulas-summary {
            flex: 1;
            margin-right: 20px;
        }

        .summary-title {
            font-size: 0.75rem;
            font-weight: 800;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 8px;
        }

        .selected-formulas-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .selected-tag {
            background: #e9ecef;
            color: #2d3748;
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            border: 1px solid #ced4da;
            font-weight: 600;
        }

        /* Generate Button */
        .btn-generate {
            background: linear-gradient(135deg, #5390d9, #4ea8de);
            color: white;
            border: none;
            padding: 12px 40px;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 700;
            transition: all 0.3s ease;
            box-shadow: 0 10px 20px rgba(83, 144, 217, 0.2);
            white-space: nowrap;
            cursor: pointer;
            display: inline-block;
            text-decoration: none;
            margin-top: 1rem;
        }

        .btn-generate:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 30px rgba(83, 144, 217, 0.35);
            color: white;
            text-decoration: none;
        }

        /* Dual Equal-Weight Generator CTA Buttons */
        .generator-btn-group {
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: stretch;
            gap: 16px;
            max-width: 560px;
            margin: 1.5rem auto 0;
            width: 100%;
        }

        .generator-btn-group .btn-generate {
            flex: 1 1 0px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 13px 20px;
            font-size: 1.05rem;
            font-weight: 700;
            margin-top: 0;
            white-space: nowrap;
            border-radius: 12px;
            box-shadow: 0 8px 20px rgba(83, 144, 217, 0.25);
            transition: all 0.3s ease;
            cursor: pointer;
            text-decoration: none;
            border: none;
        }

        .generator-btn-group .btn-pdf-worksheet,
        .generator-btn-group .btn-generate-online {
            background: linear-gradient(135deg, #0284c7, #38bdf8);
            color: #ffffff;
            box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
        }

        .generator-btn-group .btn-pdf-worksheet:hover,
        .generator-btn-group .btn-generate-online:hover {
            background: linear-gradient(135deg, #0369a1, #0ea5e9);
            color: #ffffff;
            transform: translateY(-2px);
            box-shadow: 0 12px 26px rgba(14, 165, 233, 0.45);
        }

        #sticky-formula-summary .generator-btn-group {
            max-width: 450px;
            margin: 0;
            gap: 12px;
        }

        #sticky-formula-summary .generator-btn-group .btn-generate {
            padding: 10px 16px;
            font-size: 0.95rem;
        }

        .login-notice {
            margin-top: 10px;
            font-size: 0.9rem;
            color: #64748b;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        /* Modal Tweaks */
        .modal-content {
            border-radius: 20px;
            border: none;
        }

        .modal-header {
            border-bottom: 1px solid #eee;
            background: #f8fafc;
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
        }

        @media (max-width: 768px) {
            .generator-card {
                width: 94%;
                /* Take up 94% of the screen width */
                max-width: 500px;
                /* Cap it reasonably for tablets */
                margin: 20px auto;
                /* Center it horizontally */
                padding: 1.5rem;
                left: auto;
                /* Reset any positioning */
                right: auto;
                margin-top: 2rem;
            }

            /* Adjust Title size for mobile */
            .card-title {
                font-size: 1.8rem;
            }

            /* Ensure Sticky Footer fits within the card on mobile */
            #sticky-formula-summary {
                flex-direction: column;
                gap: 15px;
                align-items: stretch;
                bottom: 10px;
                margin-left: -10px;
                /* Pull to edges slightly if needed */
                margin-right: -10px;
                width: calc(100% + 20px);
            }

            /* Ensure the Test Type buttons don't overflow on tiny screens */
            .test-type-group {
                flex-wrap: wrap;
                /* Allow buttons to stack if screen is too narrow */
            }

            .test-type-label {
                padding: 10px 5px;
                /* Reduce padding slightly */
                font-size: 0.9rem;
                /* Slightly smaller text */
                flex: 1 1 30%;
                /* Allow them to shrink but aim for 30% width */
            }

            .btn-generate {
                width: 100%;
                text-align: center;
                margin-top: 1rem;
            }

            .generator-btn-group {
                flex-direction: column;
                gap: 12px;
                width: 100%;
                max-width: 100%;
                margin-top: 1.25rem;
            }

            .generator-btn-group .btn-generate {
                width: 100%;
                padding: 14px 20px;
                font-size: 1rem;
                margin-top: 0;
            }

            /* Mobile: Generate Online Test on top, PDF Worksheet below it */
            .generator-btn-group .btn-generate-online {
                order: 1;
            }

            .generator-btn-group .btn-pdf-worksheet {
                order: 2;
            }
        }

        /* 1. Form Grid Layout Adjustments */
        .form-row-custom {
            display: flex;
            gap: 20px;
            margin-bottom: 1.5rem;
        }

        .form-col-custom {
            flex: 1;
            min-width: 0;
            /* Prevents flex overflow */
        }

        /* 2. Enhanced Login Modal UI */
        #loginRequiredModal {
            z-index: 99999 !important;
            pointer-events: auto !important;
        }

        #loginRequiredModal .modal-content {
            border-radius: 24px;
            border: none;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            background: #ffffff;
            pointer-events: auto !important;
        }

        #loginRequiredModal .modal-header {
            border-bottom: none;
            padding: 20px 20px 0 0;
            background: transparent;
            display: flex;
            justify-content: flex-end;
        }

        #loginRequiredModal .close {
            opacity: 0.6;
            transition: opacity 0.2s;
            font-size: 1.5rem;
            padding: 10px;
            display: block !important;
            cursor: pointer;
            background: transparent;
            border: none;
            color: #64748b;
        }

        #loginRequiredModal .close:hover {
            opacity: 1;
        }

        #loginRequiredModal .modal-body {
            padding: 0 20px 20px 20px;
            text-align: center;
        }

        .modal-icon-wrapper {
            width: 80px;
            height: 80px;
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 25px auto;
            box-shadow: 0 10px 20px rgba(59, 130, 246, 0.1);
        }

        .modal-icon-wrapper i {
            font-size: 32px;
            color: #3b82f6;
            /* Bright Blue */
        }

        .modal-title-text {
            font-size: 1.6rem;
            font-weight: 800;
            color: #1e293b;
            margin-bottom: 12px;
            letter-spacing: -0.5px;
        }

        .modal-desc-text {
            color: #64748b;
            font-size: 1.05rem;
            line-height: 1.6;
            margin-bottom: 30px;
        }

        .modal-steps-container {
            display: flex;
            flex-direction: column;
            gap: 0;
            margin-bottom: 30px;
            padding: 0 20px;
        }

        .modal-step {
            display: flex;
            align-items: center;
            gap: 15px;
            position: relative;
            animation: slideInStep 0.4s ease-out backwards;
        }

        .modal-step:nth-child(1) {
            animation-delay: 0.1s;
        }

        .modal-step:nth-child(3) {
            animation-delay: 0.2s;
        }

        .modal-step:nth-child(5) {
            animation-delay: 0.3s;
        }

        .modal-step:nth-child(7) {
            animation-delay: 0.4s;
        }

        @keyframes slideInStep {
            from {
                opacity: 0;
                transform: translateX(-20px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .step-icon-circle {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        }

        .step-icon-circle i {
            color: white;
            font-size: 20px;
        }

        .step-text {
            display: flex;
            flex-direction: column;
            gap: 2px;
            text-align: left;
        }

        .step-number {
            font-size: 0.75rem;
            color: #94a3b8;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .step-title {
            font-size: 1.1rem;
            color: #1e293b;
            font-weight: 700;
        }

        .step-connector {
            width: 2px;
            height: 20px;
            background: linear-gradient(180deg, #cbd5e1 0%, #e2e8f0 100%);
            margin-left: 24px;
            animation: growConnector 0.3s ease-out backwards;
        }

        .step-connector:nth-of-type(2) {
            animation-delay: 0.15s;
        }

        .step-connector:nth-of-type(4) {
            animation-delay: 0.25s;
        }

        .step-connector:nth-of-type(6) {
            animation-delay: 0.35s;
        }

        @keyframes growConnector {
            from {
                height: 0;
                opacity: 0;
            }

            to {
                height: 20px;
                opacity: 1;
            }
        }

        /* Button Enhancement */
        .btn-modal-primary i {
            transition: transform 0.3s ease;
        }

        .btn-modal-primary:hover i {
            transform: translateX(5px);
        }

        /* Mobile Responsiveness */
        @media (max-width: 480px) {
            .modal-steps-container {
                padding: 0 10px;
            }

            .step-icon-circle {
                width: 45px;
                height: 45px;
            }

            .step-icon-circle i {
                font-size: 18px;
            }

            .step-title {
                font-size: 1rem;
            }

            .step-number {
                font-size: 0.7rem;
            }

            .step-connector {
                height: 15px;
                margin-left: 22px;
            }
        }

        .btn-modal-primary {
            width: 100%;
            padding: 14px;
            border-radius: 12px;
            font-weight: 700;
            font-size: 1.1rem;
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
            border: none;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }

        .btn-modal-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
            color: white;
        }

        .modal-worksheet-footnote {
            margin: 18px auto 22px;
            font-size: 0.88rem;
            color: #64748b;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            font-weight: 500;
            line-height: 1.4;
        }

        .modal-worksheet-footnote i {
            color: #0284c7;
            font-size: 0.95rem;
        }

        .btn-modal-secondary {
            margin-top: 15px;
            background: transparent;
            border: none;
            color: #94a3b8;
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: color 0.2s;
        }

        .btn-modal-secondary:hover {
            color: #64748b;
        }

        /* Mobile Stack */
        @media (max-width: 768px) {
            .form-row-custom {
                flex-direction: column;
                gap: 15px;
            }
        }

        /* Curriculum Promo Card Styles */
        .curriculum-promo-card {
            display: flex;
            align-items: center;
            background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
            /* Subtle Blue Gradient */
            border: 1px solid #bae6fd;
            border-radius: 12px;
            padding: 16px;
            margin-top: 10px;
            margin-bottom: 20px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        /* Hover Effect */
        .curriculum-promo-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15);
            /* Soft Blue Glow */
            border-color: #7dd3fc;
            background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
        }

        /* Icon Circle */
        .promo-icon-wrapper {
            width: 42px;
            height: 42px;
            background-color: #ffffff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
            flex-shrink: 0;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

        .promo-icon-wrapper i {
            color: #0284c7;
            /* Deep Blue */
            font-size: 18px;
        }

        /* Text Content */
        .promo-text-content {
            flex: 1;
        }

        .promo-header {
            font-size: 0.95rem;
            font-weight: 700;
            color: #0c4a6e;
            /* Dark Blue Text */
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .promo-badge {
            font-size: 0.65rem;
            background-color: #0ea5e9;
            /* Vivid Blue */
            color: white;
            padding: 2px 8px;
            border-radius: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 700;
        }

        .promo-desc {
            font-size: 0.85rem;
            color: #475569;
            /* Slate Gray */
            line-height: 1.4;
            margin: 0;
        }

        .promo-desc strong {
            color: #0284c7;
            font-weight: 600;
        }

        /* Right Arrow */
        .promo-arrow {
            color: #94a3b8;
            margin-left: 10px;
            font-size: 14px;
            transition: transform 0.3s ease;
        }

        .curriculum-promo-card:hover .promo-arrow {
            color: #0284c7;
            transform: translateX(3px);
        }

        /* Mobile Adjustments */
        @media (max-width: 480px) {
            .curriculum-promo-card {
                padding: 12px;
            }

            .promo-header {
                font-size: 0.9rem;
            }

            .promo-badge {
                display: none;
                /* Hide badge on very small screens to save space */
            }
        }

        /* --- SUBTLE FROSTED PLAY BUTTON --- */
        .phone-play-btn {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 54px;
            height: 54px;
            border-radius: 50%;
            background: rgba(15, 23, 42, 0.45);
            /* Soft translucent dark backdrop */
            border: 1.5px solid rgba(255, 255, 255, 0.35);
            color: #ffffff;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 25;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
            transition: all 0.25s ease;
        }

        .phone-play-btn i {
            margin-left: 3px;
            /* Optically centers triangle play icon */
            opacity: 0.9;
            pointer-events: none;
        }

        .phone-play-btn:hover {
            transform: translate(-50%, -50%) scale(1.08);
            background: rgba(15, 23, 42, 0.7);
            border-color: rgba(255, 255, 255, 0.6);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
        }

        /* Smooth fade out when playing */
        .phone-play-btn.hidden {
            opacity: 0;
            pointer-events: none;
            transform: translate(-50%, -50%) scale(0.8);
        }

        /* --- TUTORIALS PAGE LOADER OVERLAY --- */
        .tutorials-loader-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(5, 8, 16, 0.88);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000000;
            opacity: 0;
            transition: opacity 0.25s ease;
        }

        .tutorials-loader-overlay.active {
            display: flex;
            opacity: 1;
        }

        .tutorials-loader-card {
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(56, 189, 248, 0.3);
            border-radius: 24px;
            padding: 40px 48px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 20px;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(56, 189, 248, 0.18);
            max-width: 380px;
            width: 88%;
            text-align: center;
            animation: loaderCardPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        @keyframes loaderCardPop {
            from {
                opacity: 0;
                transform: scale(0.9);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        .tutorials-abacus-loader-svg {
            width: 75px;
            height: auto;
            transform-origin: center center;
            will-change: transform;
            transform-style: preserve-3d;
            backface-visibility: hidden;
            animation: abacusFlip 4s ease-in-out infinite;
            filter: drop-shadow(0 4px 16px rgba(56, 189, 248, 0.4));
        }

        .tutorials-abacus-loader-svg rect {
            fill: rgba(255, 255, 255, 0.2);
        }

        .tutorials-abacus-loader-svg .bead {
            fill: #38bdf8;
            will-change: transform;
        }

        .tutorials-loader-text {
            font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
            font-weight: 600;
            font-size: 1.1rem;
            color: #f1f5f9;
            letter-spacing: 0.02em;
            will-change: opacity;
            animation: pulseLoaderText 1.8s ease-in-out infinite alternate;
        }

        @keyframes pulseLoaderText {
            0% {
                opacity: 0.75;
            }

            100% {
                opacity: 1;
            }
        }

        @keyframes abacusFlip {

            0%,
            38.75% {
                transform: rotate3d(0, 0, 1, 0deg);
            }

            48.75%,
            88.75% {
                transform: rotate3d(0, 0, 1, 180deg);
            }

            98.75%,
            100% {
                transform: rotate3d(0, 0, 1, 360deg);
            }
        }

        @keyframes b1Move {
            0% {
                transform: translate3d(0, 0, 0);
            }

            8.75%,
            76.25% {
                transform: translate3d(64px, 0, 0);
            }

            85%,
            100% {
                transform: translate3d(0, 0, 0);
            }
        }

        @keyframes b2Move {

            0%,
            8.75% {
                transform: translate3d(0, 0, 0);
            }

            17.5%,
            67.5% {
                transform: translate3d(-64px, 0, 0);
            }

            76.25%,
            100% {
                transform: translate3d(0, 0, 0);
            }
        }

        @keyframes b3Move {

            0%,
            17.5% {
                transform: translate3d(0, 0, 0);
            }

            26.25%,
            58.75% {
                transform: translate3d(64px, 0, 0);
            }

            67.5%,
            100% {
                transform: translate3d(0, 0, 0);
            }
        }

        @keyframes b4Move {

            0%,
            26.25% {
                transform: translate3d(0, 0, 0);
            }

            35%,
            50% {
                transform: translate3d(-64px, 0, 0);
            }

            58.75%,
            100% {
                transform: translate3d(0, 0, 0);
            }
        }

        .tutorials-loader-overlay .loader-b1 {
            animation: b1Move 4s ease-in-out infinite;
        }

        .tutorials-loader-overlay .loader-b2 {
            animation: b2Move 4s ease-in-out infinite;
        }

        .tutorials-loader-overlay .loader-b3 {
            animation: b3Move 4s ease-in-out infinite;
        }

        .tutorials-loader-overlay .loader-b4 {
            animation: b4Move 4s ease-in-out infinite;
        }

        /* Global Auth Loader Overlay */
        .auth-loader-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(15, 23, 42, 0.9);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 1000000;
            display: none;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 20px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .auth-loader-overlay.active {
            display: flex;
            opacity: 1;
        }

        .auth-loader-overlay .abacus-logo-only {
            width: 70px;
            height: auto;
            animation: abacusFlip 4s ease-in-out infinite;
            transform-style: preserve-3d;
            filter: drop-shadow(0 4px 16px rgba(56, 189, 248, 0.4));
        }

        .auth-loader-overlay rect {
            fill: rgba(255, 255, 255, 0.2);
        }

        .auth-loader-overlay .bead {
            fill: #38bdf8;
            will-change: transform;
        }

        .auth-loader-overlay .loader-b1 {
            animation: b1Move 4s ease-in-out infinite;
        }

        .auth-loader-overlay .loader-b2 {
            animation: b2Move 4s ease-in-out infinite;
        }

        .auth-loader-overlay .loader-b3 {
            animation: b3Move 4s ease-in-out infinite;
        }

        .auth-loader-overlay .loader-b4 {
            animation: b4Move 4s ease-in-out infinite;
        }

        .auth-loader-text {
            font-family: 'Space Grotesk', system-ui, sans-serif;
            font-weight: 600;
            font-size: 1.2rem;
            color: #f1f5f9;
            letter-spacing: 0.02em;
            animation: pulseLoaderText 1.8s ease-in-out infinite alternate;
        }
