/* ============================================
   KASHACADEMY - MOBILE REDESIGN v2.1
   Mobile-Only Styles (max-width: 768px)
   REFINED: Auth popups, Panel animations, 
   Floating cards, Spacing, Filter fixes
   ============================================ */

/* ============================================
   SECTION A: AUTH POPUP - BOTTOM SHEET STYLE
   ============================================ */
@media (max-width: 768px) {
    /* Login & Signup Modal - Bottom Sheet Style - GPU OPTIMIZED */
    .modal#loginModal,
    .modal#signupModal {
        align-items: flex-end !important;
        justify-content: center !important;
    }

    .modal#loginModal .modal-content,
    .modal#signupModal .modal-content {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 85vh !important;
        margin: 0 !important;
        padding: 20px 20px 30px !important;
        border-radius: 24px 24px 0 0 !important;
        /* GPU ACCELERATED transform */
        -webkit-transform: translate3d(0, 100%, 0) !important;
        transform: translate3d(0, 100%, 0) !important;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform;
        /* FASTER transition for snappy feel */
        -webkit-transition: -webkit-transform 0.28s cubic-bezier(0.32, 0.72, 0, 1) !important;
        transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1) !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal#loginModal.active .modal-content,
    .modal#signupModal.active .modal-content {
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
    }

    /* Drag indicator bar at top */
    .modal#loginModal .modal-content::before,
    .modal#signupModal .modal-content::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: var(--border);
        border-radius: 4px;
    }

    /* PERFORMANCE: Disable expensive backdrop blur on mobile */
    .modal#loginModal .modal-overlay,
    .modal#signupModal .modal-overlay {
        /* backdrop-filter: blur(12px); */
        /* -webkit-backdrop-filter: blur(12px); */
        background: rgba(0, 0, 0, 0.6) !important;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* Optimized header spacing */
    .modal#loginModal .modal-header,
    .modal#signupModal .modal-header {
        margin-bottom: 20px;
        padding-top: 16px;
    }

    .modal#loginModal .modal-header h2,
    .modal#signupModal .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal#loginModal .modal-header p,
    .modal#signupModal .modal-header p {
        font-size: 0.9rem;
    }

    /* Close button repositioned */
    .modal#loginModal .modal-close,
    .modal#signupModal .modal-close {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
        background: var(--bg-input);
    }

    /* Form optimizations */
    .modal .auth-form {
        gap: 16px;
    }

    .modal .form-group {
        gap: 6px;
    }

    .modal .form-group label {
        font-size: 0.85rem;
    }

    .modal .form-group input {
        padding: 14px 16px;
        font-size: 16px; /* Prevents iOS zoom */
        min-height: 50px;
    }

    .modal .form-row {
        gap: 12px;
    }

    /* Social login buttons */
    .modal .social-login-buttons {
        gap: 10px;
    }

    .modal .social-login-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-height: 48px;
    }

    /* Auth switch link */
    .modal .auth-switch {
        font-size: 0.9rem;
        margin-top: 4px;
    }

    /* SECTION 5: Terms checkbox styling - single clean line */
    .modal .checkbox-label {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 0.9rem;
        line-height: 1.4;
        color: var(--text-secondary);
        cursor: pointer;
        padding: 4px 0;
    }

    .modal .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        margin: 0;
        margin-top: 2px;
        flex-shrink: 0;
        accent-color: var(--primary);
        cursor: pointer;
    }

    .modal .checkbox-label a {
        color: var(--primary);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    /* Prevent page scroll when modal open */
    body.modal-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
    }
}

/* Safe area support for auth modals */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        .modal#loginModal .modal-content,
        .modal#signupModal .modal-content {
            padding-bottom: max(30px, env(safe-area-inset-bottom)) !important;
        }
    }
}

/* ============================================
   SECTION 1 & 2: MOBILE NAVBAR REDESIGN
   Layout: [Logo + Text]  →→→  [Cart] [Theme] [Sign In / Profile]
   All items always visible, nothing clipped
   ============================================ */
@media (max-width: 768px) {

    /* ── Hide things that don't belong on mobile ── */
    .nav-links,
    .nav-actions .btn-outline#loginBtn,
    .nav-actions .btn-primary#getStartedBtn,
    .mobile-menu-btn,
    .user-menu-container {
        display: none !important;
    }

    /* ── Show mobile Sign In pill (logged out) ── */
    .mobile-login-trigger {
        display: flex !important;
    }

    /* ── Hide Sign In pill when logged in ── */
    .user-logged-in .mobile-login-trigger {
        display: none !important;
    }

    /* ── Show profile avatar when logged in ── */
    .user-logged-in .mobile-profile-trigger {
        display: flex !important;
    }

    /* ────────────────────────────────────────
       NAV WRAPPER
       Use space-between so logo hugs left,
       actions hug right — nothing overflows
    ──────────────────────────────────────── */
    header nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        gap: 0;          /* gap controlled by children */
    }

    /* ── Container side padding — keeps content off screen edges ── */
    .container {
        padding: 0 14px;
    }

    /* ────────────────────────────────────────
       LOGO SIDE (left)
       flex-shrink:1 lets it compress if needed
       but min-width keeps it readable
    ──────────────────────────────────────── */
    .logo {
        display: flex;
        align-items: center;
        gap: 7px;
        flex-shrink: 1;
        min-width: 0;          /* allows text truncation */
        text-decoration: none;
    }

    .logo-img {
        height: 36px;
        width: 36px;
        flex-shrink: 0;        /* image never shrinks */
        border-radius: 9px;
        box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25);
        border: 1.5px solid rgba(99, 102, 241, 0.2);
    }

    [data-theme="light"] .logo-img {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
        border: 1.5px solid rgba(0, 0, 0, 0.1);
    }

    .logo-text {
        font-size: 1.05rem;     /* slightly smaller = more room for buttons */
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ────────────────────────────────────────
       ACTIONS SIDE (right)
       flex-shrink:0 so buttons are NEVER clipped
       gap:6px keeps them tight but breathable
    ──────────────────────────────────────── */
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;        /* CRITICAL — prevents clipping */
    }

    /* ── Cart button ── */
    .cart-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        border-radius: 50%;
        background: var(--bg-card);
        border: 1px solid var(--border);
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        flex-shrink: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .cart-btn svg {
        width: 17px;
        height: 17px;
        fill: var(--text-secondary);
    }

    .cart-btn:active { transform: scale(0.93); }

    .cart-count {
        position: absolute;
        top: -3px;
        right: -3px;
        min-width: 17px;
        height: 17px;
        font-size: 9px;
        border-radius: 50%;
        background: var(--primary);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
    }

    /* ── Theme toggle ── */
    .theme-toggle {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        border-radius: 50%;
        background: var(--bg-card);
        border: 1px solid var(--border);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        flex-shrink: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .theme-toggle svg {
        width: 17px;
        height: 17px;
        fill: var(--text-secondary);
    }

    .theme-toggle:active { transform: scale(0.93); }

    /* ── Sign In pill (logged out) ── */
    .mobile-login-trigger {
        display: none;          /* shown via .display:flex above */
        padding: 0 13px;
        height: 38px;
        min-height: 38px;
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        color: white;
        border-radius: 50px;
        font-size: 0.82rem;
        font-weight: 600;
        border: none;
        white-space: nowrap;
        align-items: center;
        justify-content: center;
        line-height: 1;
        flex-shrink: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-login-trigger:active { transform: scale(0.95); }

    /* ── Profile avatar circle (logged in) ── */
    .mobile-profile-trigger {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        color: white;
        font-weight: 700;
        font-size: 0.9rem;
        display: none;          /* shown via .user-logged-in above */
        align-items: center;
        justify-content: center;
        border: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
        transition: all 0.3s ease;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        padding: 0;
        flex-shrink: 0;
    }

    .mobile-profile-trigger:active { transform: scale(0.93); }

    .mobile-profile-trigger.panel-open {
        box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4);
    }

    /* ── Circular base class (shared) ── */
    .mobile-nav-btn {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-card);
        border: 1px solid var(--border);
        color: var(--text-primary);
        transition: all 0.3s ease;
        -webkit-tap-highlight-color: transparent;
        position: relative;
        flex-shrink: 0;
    }

    .mobile-nav-btn svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

    .mobile-nav-btn:active { transform: scale(0.93); }

    /* ============================================
       SECTION B: MOBILE SLIDE PANEL (Profile Menu)
       REFINED: Right-to-left animation, glass effect
       GPU OPTIMIZED for 60fps on low-end devices
       ============================================ */
    .mobile-slide-panel {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        /* Glass effect - simplified for performance */
        background: rgba(26, 26, 46, 0.98);
        /* PERFORMANCE: backdrop-filter disabled on mobile - too expensive */
        /* backdrop-filter: blur(20px); */
        /* -webkit-backdrop-filter: blur(20px); */
        z-index: 1000;
        /* GPU ACCELERATION */
        -webkit-transform: translate3d(100%, 0, 0);
        transform: translate3d(100%, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        will-change: transform;
        /* FASTER transition for mobile */
        -webkit-transition: -webkit-transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
        transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
        display: flex;
        flex-direction: column;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-left: 1px solid rgba(99, 102, 241, 0.15);
    }

    [data-theme="light"] .mobile-slide-panel {
        background: rgba(255, 255, 255, 0.98);
        border-left: 1px solid rgba(0, 0, 0, 0.08);
    }

    .mobile-slide-panel.active {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    .mobile-panel-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        /* PERFORMANCE: backdrop-filter disabled - too expensive on mobile */
        /* backdrop-filter: blur(6px); */
        /* -webkit-backdrop-filter: blur(6px); */
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        /* GPU ACCELERATION */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-transition: opacity 0.25s ease, visibility 0.25s ease;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .mobile-panel-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Panel Header (User Info) - Animation RIGHT to LEFT */
    .mobile-panel-header {
        padding: 28px 20px 20px;
        border-bottom: 1px solid var(--border);
        background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), transparent);
    }

    .mobile-panel-user {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .mobile-panel-avatar {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 700;
        font-size: 1.2rem;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
        flex-shrink: 0;
        /* GPU OPTIMIZED animation */
        opacity: 0;
        -webkit-transform: translate3d(20px, 0, 0);
        transform: translate3d(20px, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .mobile-slide-panel.active .mobile-panel-avatar {
        -webkit-animation: slideFromRightGPU 0.3s 0.05s cubic-bezier(0.32, 0.72, 0, 1) forwards;
        animation: slideFromRightGPU 0.3s 0.05s cubic-bezier(0.32, 0.72, 0, 1) forwards;
    }

    .mobile-panel-info {
        flex: 1;
        min-width: 0;
        /* GPU OPTIMIZED animation */
        opacity: 0;
        -webkit-transform: translate3d(20px, 0, 0);
        transform: translate3d(20px, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .mobile-slide-panel.active .mobile-panel-info {
        -webkit-animation: slideFromRightGPU 0.3s 0.08s cubic-bezier(0.32, 0.72, 0, 1) forwards;
        animation: slideFromRightGPU 0.3s 0.08s cubic-bezier(0.32, 0.72, 0, 1) forwards;
    }

    .mobile-panel-name {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .mobile-panel-role {
        font-size: 0.75rem;
        color: var(--primary);
        font-weight: 600;
        background: rgba(99, 102, 241, 0.12);
        padding: 4px 10px;
        border-radius: 50px;
        display: inline-block;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* Panel Navigation Links - VERTICAL with staggered RIGHT to LEFT */
    .mobile-panel-nav {
        padding: 16px 0;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .mobile-panel-nav a {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 20px;
        color: var(--text-secondary);
        font-weight: 500;
        font-size: 0.95rem;
        -webkit-transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        border-left: 3px solid transparent;
        /* GPU OPTIMIZED animation */
        opacity: 0;
        -webkit-transform: translate3d(20px, 0, 0);
        transform: translate3d(20px, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* OPTIMIZED: Faster stagger (0.04s apart), shorter animation (0.25s) */
    .mobile-slide-panel.active .mobile-panel-nav a:nth-child(1) { -webkit-animation: slideFromRightGPU 0.25s 0.04s ease-out forwards; animation: slideFromRightGPU 0.25s 0.04s ease-out forwards; }
    .mobile-slide-panel.active .mobile-panel-nav a:nth-child(2) { -webkit-animation: slideFromRightGPU 0.25s 0.08s ease-out forwards; animation: slideFromRightGPU 0.25s 0.08s ease-out forwards; }
    .mobile-slide-panel.active .mobile-panel-nav a:nth-child(3) { -webkit-animation: slideFromRightGPU 0.25s 0.12s ease-out forwards; animation: slideFromRightGPU 0.25s 0.12s ease-out forwards; }
    .mobile-slide-panel.active .mobile-panel-nav a:nth-child(4) { -webkit-animation: slideFromRightGPU 0.25s 0.16s ease-out forwards; animation: slideFromRightGPU 0.25s 0.16s ease-out forwards; }
    .mobile-slide-panel.active .mobile-panel-nav a:nth-child(5) { -webkit-animation: slideFromRightGPU 0.25s 0.20s ease-out forwards; animation: slideFromRightGPU 0.25s 0.20s ease-out forwards; }
    .mobile-slide-panel.active .mobile-panel-nav a:nth-child(6) { -webkit-animation: slideFromRightGPU 0.25s 0.24s ease-out forwards; animation: slideFromRightGPU 0.25s 0.24s ease-out forwards; }
    .mobile-slide-panel.active .mobile-panel-nav a:nth-child(7) { -webkit-animation: slideFromRightGPU 0.25s 0.28s ease-out forwards; animation: slideFromRightGPU 0.25s 0.28s ease-out forwards; }


    .mobile-panel-nav a:active {
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary);
        border-left-color: var(--primary);
    }

    .mobile-panel-nav a svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
        flex-shrink: 0;
    }

    /* Panel Footer (Buttons) - Vertical stack */
    .mobile-panel-footer {
        padding: 16px 20px 24px;
        border-top: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: auto;
    }

    .mobile-panel-btn {
        width: 100%;
        padding: 13px 18px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        -webkit-transition: background 0.2s ease, opacity 0.2s ease;
        transition: background 0.2s ease, opacity 0.2s ease;
        /* GPU OPTIMIZED animation */
        opacity: 0;
        -webkit-transform: translate3d(20px, 0, 0);
        transform: translate3d(20px, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* OPTIMIZED: Faster delays */
    .mobile-slide-panel.active .mobile-panel-btn:nth-child(1) { -webkit-animation: slideFromRightGPU 0.25s 0.28s ease-out forwards; animation: slideFromRightGPU 0.25s 0.28s ease-out forwards; }
    .mobile-slide-panel.active .mobile-panel-btn:nth-child(2) { -webkit-animation: slideFromRightGPU 0.25s 0.32s ease-out forwards; animation: slideFromRightGPU 0.25s 0.32s ease-out forwards; }

    .mobile-panel-btn svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

    .mobile-panel-btn.dashboard-btn {
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        color: white;
        border: none;
    }

    .mobile-panel-btn.dashboard-btn:active {
        -webkit-transform: scale(0.98);
        transform: scale(0.98);
        opacity: 0.9;
    }

    .mobile-panel-btn.logout-btn {
        background: transparent;
        color: var(--error);
        border: 1px solid var(--error);
    }

    .mobile-panel-btn.logout-btn:active {
        background: rgba(239, 68, 68, 0.1);
    }

    /* GPU-OPTIMIZED Animation keyframe - uses translate3d for hardware acceleration */
    @-webkit-keyframes slideFromRightGPU {
        from {
            opacity: 0;
            -webkit-transform: translate3d(20px, 0, 0);
            transform: translate3d(20px, 0, 0);
        }
        to {
            opacity: 1;
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
        }
    }
    @keyframes slideFromRightGPU {
        from {
            opacity: 0;
            -webkit-transform: translate3d(20px, 0, 0);
            transform: translate3d(20px, 0, 0);
        }
        to {
            opacity: 1;
            -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
        }
    }
    
    /* Keep original keyframe for compatibility */
    @keyframes slideFromRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    /* Reset animations when panel closes */
    .mobile-slide-panel:not(.active) .mobile-panel-avatar,
    .mobile-slide-panel:not(.active) .mobile-panel-info,
    .mobile-slide-panel:not(.active) .mobile-panel-nav a,
    .mobile-slide-panel:not(.active) .mobile-panel-btn {
        opacity: 0;
        -webkit-transform: translate3d(20px, 0, 0);
        transform: translate3d(20px, 0, 0);
        -webkit-animation: none;
        animation: none;
    }

    /* ============================================
       SECTION C: FLOATING CARDS - POSITION FIX
       ============================================ */
    .floating-card {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        /* FIX: index.html GPU block sets transform:translateZ(0) on .floating-card
           which conflicts with floatCard animation's translateY.
           Reset transform so animation can work properly on mobile. */
        transform: none !important;
        -webkit-transform: none !important;
        backface-visibility: visible !important;
        -webkit-backface-visibility: visible !important;
        perspective: none !important;
        -webkit-perspective: none !important;
        will-change: transform;
    }

    .floating-card-1 {
        position: absolute;
        top: 6%;
        left: 3%;
        padding: 10px 14px;
        background: var(--bg-card);
        border-radius: 12px;
        border: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        display: flex;
        align-items: center;
        gap: 10px;
        animation: floatCard 4s ease-in-out infinite !important;
        -webkit-animation: floatCard 4s ease-in-out infinite !important;
        z-index: 10;
    }

    .floating-card-1 .icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: linear-gradient(135deg, var(--success), #10b981);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .floating-card-1 .icon svg {
        width: 16px;
        height: 16px;
        fill: white;
    }

    .floating-card-1 .info h4 {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text-primary);
        line-height: 1.2;
    }

    .floating-card-1 .info p {
        font-size: 0.65rem;
        color: var(--text-muted);
        line-height: 1.3;
    }

    .floating-card-2 {
        position: absolute;
        bottom: 6%;
        right: 3%;
        padding: 10px 14px;
        background: var(--bg-card);
        border-radius: 12px;
        border: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        display: flex;
        align-items: center;
        gap: 10px;
        animation: floatCard 4s ease-in-out infinite 2s !important;
        -webkit-animation: floatCard 4s ease-in-out infinite 2s !important;
        z-index: 10;
    }

    .floating-card-2 .students {
        display: flex;
        margin-bottom: 5px;
    }

    .floating-card-2 .student-avatar {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        font-size: 0.6rem;
        margin-left: -7px;
        border: 2px solid var(--bg-card);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: 600;
    }

    .floating-card-2 .student-avatar:first-child {
        margin-left: 0;
    }

    .floating-card-2 p {
        font-size: 0.7rem;
        color: var(--text-secondary);
        font-weight: 500;
    }

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

    /* Hero Image Wrapper for mobile */
    .hero-image-wrapper {
    position: relative;
    min-height: 320px;
}

.hero-image {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding-top: 0px; /* cap thodi niche */
}

.hero-image-content svg {
    margin-bottom: 0px;
    margin-top: 0px;
}

    /* ============================================
       SECTION 4: STATS 2-COLUMN LAYOUT
       ============================================ */
    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        flex-direction: unset !important;
        margin-top: 28px;
    }

    .hero-stats .stat-item {
        text-align: center;
        padding: 14px 12px;
        background: var(--bg-card);
        border-radius: 12px;
        border: 1px solid var(--border);
    }

    .hero-stats .stat-item:nth-child(2) {
        display: none; /* Hide Active Students on mobile */
    }

    .hero-stats .stat-number {
        font-size: 1.6rem;
        font-weight: 800;
        background: linear-gradient(135deg, var(--primary), var(--primary-light));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero-stats .stat-number::after {
        content: '+';
        -webkit-text-fill-color: var(--primary-light);
    }

    .hero-stats .stat-label {
        font-size: 0.7rem;
        color: var(--text-muted);
        margin-top: 3px;
    }

    /* ============================================
       SECTION 5: FEATURES CAROUSEL
       ============================================ */
    .features {
        overflow: hidden;
    }

    .features-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 14px;
        padding: 8px 0 28px;
    }

    .features-grid::-webkit-scrollbar {
        display: none;
    }

    .features-grid .feature-card {
        flex: 0 0 82%;
        min-width: 270px;
        scroll-snap-align: center;
    }

    /* Features Carousel Dots */
    .features-carousel-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 16px;
    }

    .features-carousel-dots .dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--border);
        transition: all 0.3s ease;
    }

    .features-carousel-dots .dot.active {
        width: 22px;
        border-radius: 4px;
        background: var(--primary);
    }

    /* ============================================
       SECTION 6: COURSES SECTION REDESIGN
       ============================================ */
    .courses .section-header h2 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .courses .section-header p {
        font-size: 0.85rem;
        margin-top: 8px;
    }

    /* Course Filters Mobile Redesign */
    .course-filters {
        display: flex;
        flex-direction: column !important;
        gap: 12px;
        padding: 0;
    }

    .course-filters .search-box {
        display: none !important; /* Hide search on mobile */
    }

    .course-filters .filter-buttons {
        display: none !important; /* Hide category buttons */
    }

    /* Mobile Filter Row - Single Premium Container */
    .mobile-filter-row {
        display: flex;
        gap: 0;
        width: 100%;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    [data-theme="dark"] .mobile-filter-row {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    }

    .mobile-filter-dropdown {
        flex: 1;
        position: relative;
        border-right: 1px solid var(--border);
    }

    .mobile-filter-dropdown:last-child {
        border-right: none;
    }

    .mobile-filter-dropdown select {
        width: 100%;
        padding: 10px 30px 10px 12px;
        background: transparent;
        border: none;
        border-radius: 0;
        color: var(--text-primary);
        font-size: 0.78rem;
        font-weight: 500;
        appearance: none;
        -webkit-appearance: none;
        cursor: pointer;
        height: 42px;
        font-family: inherit;
    }

    .mobile-filter-dropdown select:focus {
        outline: none;
        background: rgba(99, 102, 241, 0.08);
    }

    .mobile-filter-dropdown select option {
        background: var(--bg-card);
        color: var(--text-primary);
        padding: 10px;
    }

    .mobile-filter-dropdown::after {
        content: '';
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        border: 4px solid transparent;
        border-top-color: var(--text-muted);
        pointer-events: none;
    }

    /* Hide original sort dropdown completely */
    .sort-dropdown {
        display: none !important;
    }

    /* Hide original filter buttons */
    .filter-buttons {
        display: none !important;
    }

    /* Course Slider - Must override app.js grid display */
    .courses-grid {
        display: flex;
        grid-template-columns: unset !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
        padding: 8px 0 16px;
    }

    /* Allow JS to hide the grid when filtering returns no results */
    .courses-grid[style*="display: none"] {
        display: none !important;
    }

    .courses-grid::-webkit-scrollbar {
        display: none;
    }

    .courses-grid .course-card {
        flex: 0 0 85%;
        min-width: 280px;
        max-width: 320px;
        scroll-snap-align: center;
        margin: 0 !important;
    }

    .course-card {
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Hide Load More button on mobile */
    .view-all-wrapper,
    #loadMoreBtn {
        display: none !important;
    }

    /* ── No Results: beautiful centered state ── */
    .no-results {
        width: 100%;
        padding: 50px 24px 40px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .no-results svg {
        width: 64px;
        height: 64px;
        fill: var(--text-muted);
        margin-bottom: 20px;
        opacity: 0.6;
    }

    .no-results h3 {
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .no-results p {
        font-size: 0.88rem;
        color: var(--text-muted);
        line-height: 1.5;
        max-width: 260px;
        margin: 0 auto;
    }

    /* Hide the no-courses-card from app.js, we show no-results instead */
    .no-courses-card {
        min-width: 100% !important;
        flex-shrink: 0;
    }

    /* ============================================
       SECTION 7: INSTRUCTORS CAROUSEL
       ============================================ */
    .instructors .section-header h2 {
        font-size: 1.4rem;
    }

    .instructors .section-header p {
        font-size: 0.85rem;
    }

    .instructors-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 14px;
        padding: 8px 0;
        pointer-events: none;
    }

    .instructors-grid::-webkit-scrollbar {
        display: none;
    }

    .instructors-grid .instructor-card {
        flex: 0 0 75%;
        min-width: 250px;
        scroll-snap-align: center;
        pointer-events: auto;
    }

    /* ============================================
       SECTION 9: FOOTER MOBILE REDESIGN
       ============================================ */
    footer {
        padding: 40px 0 24px;
    }

    .footer-grid {
        display: flex !important;
        flex-direction: column;
        gap: 24px;
    }

    .footer-brand {
        text-align: left;
        margin-bottom: 8px;
    }

    .footer-brand .logo {
        justify-content: flex-start;
        margin-bottom: 14px;
    }

    .footer-brand p {
        font-size: 0.85rem;
        color: var(--text-muted);
        max-width: 100%;
        line-height: 1.6;
    }

    .social-links {
        display: flex;
        gap: 10px;
        margin-top: 16px;
        justify-content: flex-start;
    }

    .social-link {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--bg-input);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s ease;
    }

    .social-link:active {
        transform: scale(0.95);
        background: var(--primary);
    }

    .social-link:active svg {
        fill: white;
    }

    /* Footer Columns - Accordion Style */
    .footer-column {
        border-bottom: 1px solid var(--border);
        padding-bottom: 0;
    }

    .footer-column h4 {
        padding: 14px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        font-size: 0.95rem;
        color: var(--text-primary);
    }

    .footer-column h4::after {
        content: '+';
        font-size: 1.4rem;
        font-weight: 300;
        color: var(--text-muted);
        transition: transform 0.3s ease;
    }

    .footer-column.active h4::after {
        content: '−';
    }

    .footer-column ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding-left: 0;
    }

    .footer-column.active ul {
        max-height: 200px;
        padding-bottom: 14px;
    }

    .footer-column ul li {
        padding: 7px 0;
    }

    .footer-column ul li a {
        color: var(--text-muted);
        font-size: 0.85rem;
    }

    .footer-bottom {
        text-align: center;
        padding-top: 20px;
        margin-top: 8px;
        border-top: 1px solid var(--border);
    }

    .footer-bottom p {
        font-size: 0.8rem;
        color: var(--text-muted);
    }

    .footer-bottom-links {
        display: none;
    }

    /* ============================================
       SECTION D: GENERAL MOBILE OPTIMIZATIONS
       ============================================ */
    
    /* Section Headers */
    .section-header {
        text-align: center;
        padding: 0 8px;
    }

    .section-header h2 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .section-header p {
        font-size: clamp(0.85rem, 3vw, 0.95rem);
    }

    .section-badge {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    /* Hero Section */
    .hero {
        padding: 95px 0 50px;
    }

    .hero h1 {
        font-size: clamp(1.65rem, 6vw, 2.1rem);
        text-align: center;
    }

    .hero-text {
        text-align: center;
        font-size: 0.9rem;
    }

    .hero-badge {
    justify-content: center;
    font-size: 0.75rem;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    display: flex;
}

    .hero-cta {
        flex-direction: column;
        gap: 10px;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        padding: 13px 22px;
    }

    /* Better touch targets */
    .btn, button, a {
        min-height: 44px;
    }

    /* Prevent text selection during swipe */
    .features-grid,
    .courses-grid,
    .instructors-grid {
        user-select: none;
        -webkit-user-select: none;
    }
}

/* ============================================
   EXTRA SMALL DEVICES (max-width: 380px)
   ============================================ */
@media (max-width: 380px) {
    .container {
        padding: 0 14px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .logo-img {
        height: 36px;
    }

    .mobile-nav-btn,
    .theme-toggle,
    .cart-btn,
    .mobile-profile-trigger {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .mobile-login-trigger {
        height: 38px;
        min-height: 38px;
        padding: 0 12px;
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 1.45rem;
    }

    .hero-stats {
        gap: 10px;
    }

    .hero-stats .stat-number {
        font-size: 1.4rem;
    }

    .floating-card-1,
    .floating-card-2 {
        padding: 8px 10px;
    }

    .floating-card-1 {
        max-width: 130px;
    }

    .floating-card-1 .info h4 {
        font-size: 0.85rem;
    }

    .floating-card-1 .info p {
        font-size: 0.6rem;
    }

    .mobile-slide-panel {
        width: 85%;
    }

    /* Auth modal on small devices */
    .modal#loginModal .modal-content,
    .modal#signupModal .modal-content {
        max-height: 90vh !important;
        padding: 18px 16px 26px !important;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
    .mobile-nav-btn:hover,
    .theme-toggle:hover,
    .cart-btn:hover {
        transform: none;
    }

    .course-card:hover {
        transform: none;
    }

    /* Remove hover states, keep active states */
    .mobile-panel-nav a:hover {
        background: transparent;
        color: var(--text-secondary);
        border-left-color: transparent;
    }

    .mobile-panel-nav a:active {
        background: rgba(99, 102, 241, 0.1);
        color: var(--primary);
        border-left-color: var(--primary);
    }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .floating-card-1,
    .floating-card-2 {
        animation: none;
    }

    .mobile-slide-panel {
        transition: none;
    }

    .mobile-slide-panel.active .mobile-panel-avatar,
    .mobile-slide-panel.active .mobile-panel-info,
    .mobile-slide-panel.active .mobile-panel-nav a,
    .mobile-slide-panel.active .mobile-panel-btn {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .modal#loginModal .modal-content,
    .modal#signupModal .modal-content {
        transition: none !important;
    }
}

/* ============================================
   SAFE AREA INSETS (Notched Phones)
   ============================================ */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        header {
            padding-left: max(16px, env(safe-area-inset-left));
            padding-right: max(16px, env(safe-area-inset-right));
        }

        .container {
            padding-left: max(16px, env(safe-area-inset-left));
            padding-right: max(16px, env(safe-area-inset-right));
        }

        .mobile-slide-panel {
            padding-bottom: max(24px, env(safe-area-inset-bottom));
        }

        footer {
            padding-bottom: max(24px, env(safe-area-inset-bottom));
        }

        .modal#loginModal .modal-content,
        .modal#signupModal .modal-content {
            padding-bottom: max(30px, env(safe-area-inset-bottom)) !important;
        }
    }
}

/* ============================================================
   LANDSCAPE PHONES — Rotated Mobile (e.g. iPhone XR, Realme 10)
   Touch device in landscape = max-width:1024 + pointer:coarse + orientation:landscape
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) and (pointer: coarse) {

    /* Nav: hide desktop elements */
    .nav-links,
    .nav-actions .btn-outline#loginBtn,
    .nav-actions .btn-primary#getStartedBtn,
    .mobile-menu-btn,
    .user-menu-container { display: none !important; }

    .mobile-login-trigger              { display: flex !important; }
    .user-logged-in .mobile-login-trigger  { display: none !important; }
    .user-logged-in .mobile-profile-trigger { display: flex !important; }

    header nav {
        display: flex; align-items: center;
        justify-content: space-between; padding: 6px 0;
    }

    .container {
        padding-left: max(14px, env(safe-area-inset-left));
        padding-right: max(14px, env(safe-area-inset-right));
    }

    .logo { display: flex; align-items: center; gap: 6px; flex-shrink: 1; min-width: 0; }
    .logo-img { height: 30px; width: 30px; flex-shrink: 0; border-radius: 8px; }
    .logo-text { font-size: 0.95rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    .nav-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }

    .cart-btn, .theme-toggle {
        width: 34px !important; height: 34px !important;
        min-width: 34px !important; min-height: 34px !important;
        border-radius: 50% !important; padding: 0 !important;
        flex-shrink: 0 !important; display: flex !important;
        align-items: center !important; justify-content: center !important;
        background: var(--bg-card) !important; border: 1px solid var(--border) !important;
    }
    .cart-btn svg, .theme-toggle svg { width: 15px !important; height: 15px !important; }
    .cart-btn:active, .theme-toggle:active { transform: scale(0.93) !important; }

    .mobile-login-trigger {
        display: none; height: 34px !important; min-height: 34px !important;
        padding: 0 11px !important; font-size: 0.78rem !important; font-weight: 600 !important;
        background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
        color: white !important; border-radius: 50px !important; border: none !important;
        white-space: nowrap !important; align-items: center !important;
        justify-content: center !important; flex-shrink: 0 !important;
    }

    .mobile-profile-trigger {
        display: none;
        width: 34px !important; height: 34px !important;
        min-width: 34px !important; min-height: 34px !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
        color: white !important; font-weight: 700 !important;
        align-items: center !important; justify-content: center !important;
        border: 2px solid rgba(255,255,255,0.2) !important;
        padding: 0 !important; flex-shrink: 0 !important;
        box-shadow: 0 4px 12px rgba(99,102,241,0.35) !important;
    }

    /* Hero: 2-column side by side */
    section.hero {
        padding-top: 54px !important;
        padding-bottom: 16px !important;
        min-height: auto !important;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 20px !important;
        align-items: center !important;
    }

    .hero-visual { display: block !important; order: 2 !important; }
    .hero h1 { font-size: 1.4rem !important; text-align: left !important; line-height: 1.25 !important; }
    .hero-text { text-align: left !important; font-size: 0.83rem !important; }
    .hero-badge { justify-content: flex-start !important; }
    .hero-cta { flex-direction: row !important; flex-wrap: wrap !important; gap: 8px !important; }
    .hero-cta .btn { width: auto !important; padding: 10px 16px !important; font-size: 0.82rem !important; }
    .hero-image { height: 170px !important; }

    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important; margin-top: 10px !important;
    }
    .hero-stats .stat-item { padding: 10px 8px !important; }
    .hero-stats .stat-item:nth-child(2) { display: flex !important; }
    .hero-stats .stat-number { font-size: 1.1rem !important; }
    .hero-stats .stat-label { font-size: 0.6rem !important; }

    /* Filters: side by side */
    .mobile-filter-row { display: flex !important; flex-direction: row !important; }
    .sort-dropdown, .filter-buttons { display: none !important; }

    /* Section headers: compact */
    .section-header { margin-bottom: 12px !important; }
    .section-header h2 { font-size: 1.3rem !important; }
    .section-header p { font-size: 0.82rem !important; }
    .section-badge { font-size: 0.7rem !important; padding: 3px 10px !important; }

    /* Courses: swipe slider */
    .courses-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 12px !important;
        padding: 6px 0 14px !important;
    }
    .courses-grid[style*="display: none"] { display: none !important; }
    .courses-grid .course-card {
        flex: 0 0 58% !important;
        min-width: 210px !important;
        max-width: 260px !important;
        scroll-snap-align: start !important;
    }

    /* No results: compact in landscape */
    .no-results {
        padding: 28px 20px !important;
    }
    .no-results svg {
        width: 50px !important; height: 50px !important;
        margin-bottom: 12px !important;
    }
    .no-results h3 { font-size: 1.05rem !important; margin-bottom: 6px !important; }
    .no-results p { font-size: 0.82rem !important; }

    /* Features carousel */
    .features { overflow: hidden; }
    .features-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 12px !important;
    }
    .features-grid .feature-card { flex: 0 0 52% !important; min-width: 190px !important; }

    /* Instructors carousel */
    .instructors-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 12px !important;
    }
    .instructors-grid .instructor-card { flex: 0 0 50% !important; min-width: 180px !important; }

    /* Auth modals: centered (not bottom sheet) */
    .modal#loginModal, .modal#signupModal {
        align-items: center !important;
        justify-content: center !important;
    }
    .modal#loginModal .modal-content, .modal#signupModal .modal-content {
        border-radius: 16px !important; max-height: 88vh !important;
        max-width: 440px !important; width: 86% !important;
        overflow-y: auto !important; transform: none !important;
        padding: 18px 22px !important;
    }
    .modal#loginModal.active .modal-content,
    .modal#signupModal.active .modal-content { transform: none !important; }

    /* Slide panel: narrower in landscape */
    .mobile-slide-panel { width: 52% !important; max-width: 240px !important; }
    .mobile-panel-header { padding: 14px 16px !important; }
    .mobile-panel-avatar { width: 48px !important; height: 48px !important; font-size: 1.1rem !important; }
    .mobile-panel-nav a { padding: 10px 14px !important; font-size: 0.85rem !important; }

    /* Footer: 2 columns */
    footer { padding: 16px 0 12px !important; }
    .footer-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        flex-direction: unset !important;
    }
    .footer-brand { grid-column: 1 / -1; margin-bottom: 0 !important; }
    .footer-column h4 { font-size: 0.85rem !important; padding: 6px 0 !important; }
    .footer-column li a { font-size: 0.78rem !important; }
    .footer-bottom { flex-direction: row !important; font-size: 0.72rem !important; }

    /* Safe area: iPhone notch is on SIDES in landscape */
    header, footer, .container {
        padding-left: max(14px, env(safe-area-inset-left)) !important;
        padding-right: max(14px, env(safe-area-inset-right)) !important;
    }
    .mobile-slide-panel { padding-bottom: max(8px, env(safe-area-inset-bottom)) !important; }
    footer { padding-bottom: max(12px, env(safe-area-inset-bottom)) !important; }
}

/* ============================================================
   TABLET — 769px to 1024px (Portrait & all tablets)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-text {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2rem !important;
        text-align: center !important;
        line-height: 1.25;
    }

    .hero-text p {
        text-align: center !important;
        max-width: 80%;
    }

    .hero-badge {
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        width: fit-content !important;
        display: flex !important;
    }

    .hero-cta {
        justify-content: center;
        width: 100%;
    }

    .hero-visual {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }
}
