/*// ====================================
// 🌱 Root Variables
// ====================================*/
        :root {
            --primary: #4a6cf7;
            --primary-dark: #3a5ce5;
            --secondary: #6c757d;
            --light: #f8f9fa;
            --dark: #212529;
            --success: #28a745;
            --warning: #ffc107;
            --danger: #dc3545;
            --card-bg: #ffffff;
            --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            --border-radius: 8px;
            --transition: all 0.3s ease;
            --font-scale: 1;
            --text-strong: #0c1220;
            --text-soft: #475569;
            --surface: #ffffff;
            --surface-alt: #f7f8fb;
            --elev-shadow: 0 8px 24px rgba(0,0,0,.12);
            --header-height: 70px;
            --font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            --header-bg: rgba(74, 108, 247, 0.85);
        }

        html {
            font-size: clamp(15px, calc(16px * var(--font-scale, 1)), 20px);
            scroll-behavior: smooth;
        }

/*// ====================================
// 🎛 Theme (light/dark/system)
// ====================================*/
        .dark-mode {
            --primary: #7aa2ff;
            --primary-dark: #5c84ff;
            --secondary: #adb5bd;
            --light: #121212;
            --dark: #f8f9fa;
            --card-bg: #1e1e1e;
            --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            --text-strong: #f4f6ff;
            --text-soft: #c6cbe0;
            --surface: #151823;
            --surface-alt: #0f121b;
            --elev-shadow: 0 10px 28px rgba(0,0,0,.35);
            --header-bg: rgba(122, 162, 255, 0.85);
        }

        .high-contrast {
            --text-strong: #000;
            --text-soft: #333;
            font-weight: 600;
            letter-spacing: 0.2px;
        }

        .dark-mode.high-contrast {
            --text-strong: #fff;
            --text-soft: #e0e0e0;
        }

/*// ====================================
// 🧱 Base Layout & Typography
// ====================================*/
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.6;
            transition: var(--transition);
            font-family: var(--font-family);
            letter-spacing: 0.2px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        h1, h2, h3, h4 {
            color: var(--text-strong);
            font-weight: 600;
            text-wrap: balance;
            line-height: 1.3;
        }

        p, li {
            color: var(--text-soft);
            letter-spacing: 0.2px;
        }

        section {
            padding: 60px 0;
        }

/*// ====================================
// 🧭 Header
// ====================================*/
        .app-header {
            background: var(--header-bg);
            color: white;
            padding: 15px 0;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 100;
            transition: var(--transition);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .app-header.scrolled {
            padding: 10px 0;
            background: var(--header-bg);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .hdr-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .brand {
            font-size: 1.5rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .brand i {
            font-size: 1.8rem;
        }

/*// ====================================
// 📱 Mobile Title Only (no video)
// ====================================*/
        .mobile-title { 
            height: auto; 
            margin: calc(var(--header-height)) 0 12px; 
        }
        
        .mobile-title .hero-overlay {
            position: static; 
            background: transparent; 
            color: var(--text-strong); 
            padding: 16px 20px; 
            text-align: left;
        }
        
        @media (min-width: 769px) { 
            .mobile-title { 
                display: none; 
            } 
        }

/*// ====================================
// 🎬 Video Hero Background
// ====================================*/
        .hero-video {
            position: relative;
            top: -1px;
            height: 91vh;
            overflow: hidden;
            margin-top: var(--header-height);

        }

       @media(max-width: 1920px) {
            .hero-video {
                position: relative;
                top: -2px;
                height: 95vh;
                overflow: hidden;
                margin-top: var(--header-height);
            }
        }

        @media (max-width: 768px) {
            .hero-video {
                height: 100vh;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                z-index: -1;
                margin-top: 0;
            }
            
            .hero-overlay {
                background: rgba(0, 0, 0, 0.4);
            }
        }

        .hero-video-el {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            object-fit: cover;
            transition: opacity 0.5s ease;
        }

        .hero-video-el.fade {
            opacity: 0.3;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            color: white;
            padding: 0 20px;
        }

        .hero-overlay h1 {
            font-size: 3rem;
            margin-bottom: 20px;
            color: white;
        }

        .hero-overlay p {
            font-size: 1.2rem;
            max-width: 600px;
            margin: 0 auto 30px;
            color: rgba(255, 255, 255, 0.9);
        }

/*// ====================================
// 🎮 Handheld Shell (mobile improved)
// ====================================*/
        .handheld {
            display: none;
            padding: 40px 0;
            justify-content: center;
            position: relative;
            z-index: 10;
        }

        @media (max-width: 768px) {
            .handheld {
                display: flex;
                height: calc(100vh - var(--header-height) - 90px);
                padding: 0;
                align-items: stretch;
            }
        }

        .shell {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 24px;
            padding: 14px;
            width: min(96vw, 520px);
            height: 390px;
            position: absolute;
            top: 254px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
            border: 3px solid var(--primary-dark);
            backdrop-filter: blur(10px);
        }

        .power-led {
            position: absolute;
            top: 3px;
            left: 15px;
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: #ef4444;
            box-shadow: 0 0 5px #ef4444;
        }

        .bezel {
            background: transparent;
            border-radius: 18px;
            padding: 0;
            margin: 8px 0 16px;
            border: 0;
        }

        .screen {
            background: rgba(0,0,0,0.72);
            border-radius: 18px;
            aspect-ratio: 20 / 9;
            padding: 16px;
            color: white;
            position: relative;
            overflow: hidden;
            border: 0;
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
        }

        .screen::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
            pointer-events: none;
        }

        .screen-inner {
            position: relative;
            z-index: 1;
            height: 100%;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .screen-content {
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .screen-title {
            text-align: center;
            margin-bottom: 10px;
            font-size: 1.1rem;
        }

        .screen-sub {
            text-align: center;
            font-size: 0.9rem;
            opacity: 0.9;
            margin-bottom: 15px;
        }

        .mobile-items-container {
            flex: 1;
            overflow: hidden;
            position: relative;
        }

        .mobile-items {
            display: flex;
            transition: transform 0.3s ease;
            height: 100%;
        }

        .mobile-item {
            flex: 0 0 100%;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            padding: 12px;
            cursor: pointer;
            transition: var(--transition);
            border: 1px solid rgba(255, 255, 255, 0.2);
            font-size: clamp(14px, 3vw, 16px);
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .mobile-item.selected {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.4);
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
        }

        .mobile-item h3 {
            font-size: 1rem;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 5px;
        }

        .mobile-item p {
            font-size: 0.85rem;
            opacity: 0.9;
        }

        .item-badge {
            background: var(--primary);
            color: white;
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: auto;
        }

        .logo-stripe {
            background: linear-gradient(to bottom, var(--primary-dark), var(--primary));
            border-radius: 8px;
            padding: 8px;
            text-align: center;
            margin: 15px 0;
            color: white;
            font-weight: bold;
            font-size: 1.1rem;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
            border: 2px solid var(--primary);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .controls {
            display: flex;
            justify-content: center;
            gap: 18px;
            margin: 14px 0 4px;
        }

        .btn-start {
            background: linear-gradient(to bottom, #10b981, #059669);
            border: none;
            border-radius: 20px;
            padding: 10px 25px;
            color: white;
            font-weight: bold;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 0 #047857, 0 5px 10px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
        }

        .btn-start:active {
            transform: translateY(4px);
            box-shadow: 0 0 0 #047857, 0 2px 5px rgba(0, 0, 0, 0.2);
        }

        @keyframes pulse-glow {
            0% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.7); }
            50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.9); }
            100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.7); }
        }

        .btn-start.pulse {
            animation: pulse-glow 2s infinite;
        }

        .btn-a, .btn-b {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            border: none;
            background: linear-gradient(to bottom, #ef4444, #dc2626);
            color: white;
            font-weight: bold;
            cursor: pointer;
            box-shadow: 0 4px 0 #b91c1c, 0 5px 10px rgba(0, 0, 0, 0.2);
        }

        .btn-b {
            background: linear-gradient(to bottom, #3b82f6, #2563eb);
            box-shadow: 0 4px 0 #1d4ed8, 0 5px 10px rgba(0, 0, 0, 0.2);
        }

        .speaker-holes {
            display: flex;
            justify-content: flex-end;
            margin-top: 10px;
            gap: 5px;
        }

        .speaker-hole {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background-color: #374151;
        }

        .hint {
            text-align: center;
            font-size: 0.9rem;
            color: var(--secondary);
            margin-top: 10px;
        }

/*// ====================================
// 🃏 Flashcards Grid (desktop)
// ====================================*/
        .flashcards-section {
            background-color: var(--surface-alt);
        }

        .section-title {
            text-align: center;
            margin-bottom: 40px;
            color: var(--primary);
            font-size: 2rem;
        }

        .flashcards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
        }

        .flashcard {
            background-color: var(--card-bg);
            border-radius: var(--border-radius);
            box-shadow: var(--card-shadow);
            padding: 25px;
            transition: var(--transition);
            cursor: pointer;
            border-left: 4px solid var(--primary);
        }

        .flashcard:hover {
            transform: translateY(-5px);
            box-shadow: var(--elev-shadow);
        }

        .dark-mode .flashcard:hover {
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .card-header h2 {
            font-size: 1.3rem;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .card-header i.fa-expand {
            color: var(--secondary);
            transition: var(--transition);
        }

        .flashcard:hover .card-header i.fa-expand {
            color: var(--primary);
        }

        .card-content {
            color: var(--secondary);
        }

        .card-content ul {
            margin-left: 20px;
            margin-top: 10px;
        }

        .card-content li {
            margin-bottom: 8px;
        }

        .highlight {
            background-color: rgba(74, 108, 247, 0.1);
            padding: 3px 6px;
            border-radius: 4px;
            font-weight: 600;
        }

/*// ====================================
// 📚 Resources Tabs
// ====================================*/
        .resources-tabs {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        .dark-mode .resources-tabs {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .resource-tab {
            padding: 12px 24px;
            background: none;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            color: var(--text-soft);
            font-weight: 500;
            border-bottom: 2px solid transparent;
        }

        .resource-tab.active {
            color: var(--primary);
            border-bottom: 2px solid var(--primary);
        }

        .resource-tab-content {
            display: none;
        }

        .resource-tab-content.active {
            display: block;
        }

/*// ====================================
// 🪟 Modal
// ====================================*/
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            overflow-y: auto;
            padding: 20px;
        }

        .modal-content {
            background-color: var(--card-bg);
            margin: 50px auto;
            max-width: 800px;
            border-radius: var(--border-radius);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            position: relative;
            animation: modalFadeIn 0.3s;
        }

        @keyframes modalFadeIn {
            from { opacity: 0; transform: translateY(-50px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .modal-header {
            padding: 20px 25px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .dark-mode .modal-header {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .modal-header h2 {
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .close-modal {
            background: none;
            border: none;
            font-size: 1.5rem;
            color: var(--secondary);
            cursor: pointer;
            transition: var(--transition);
        }

        .close-modal:hover {
            color: var(--danger);
        }

        .modal-body {
            padding: 27px 27px 27px 60px;
        }

        .cta-button {
            display: inline-block;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            padding: 12px 24px;
            border-radius: var(--border-radius);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            box-shadow: 0 4px 15px rgba(74, 108, 247, 0.4);
        }

        .cta-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(74, 108, 247, 0.6);
        }

/*// ====================================
// 📚 Resources
// ====================================*/
        .resources-section {
            background-color: rgba(74, 108, 247, 0.05);
        }

        .dark-mode .resources-section {
            background-color: rgba(93, 125, 250, 0.05);
        }

        .resources-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
        }

        .resource-card {
            background-color: var(--card-bg);
            border-radius: var(--border-radius);
            box-shadow: var(--card-shadow);
            padding: 20px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .resource-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--primary-dark));
        }

        .resource-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .resource-card h3 {
            color: var(--primary);
            margin-bottom: 10px;
        }

        .resource-card p {
            color: var(--secondary);
            margin-bottom: 15px;
            font-size: 0.9rem;
        }

        .resource-link {
            display: inline-block;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
        }

        .resource-link:hover {
            text-decoration: underline;
        }

/*// ====================================
// 🤖 AI Assistant Panel
// ====================================*/
        .ai-assistant {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(74, 108, 247, 0.4);
            z-index: 999;
            transition: var(--transition);
        }

        .ai-assistant:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(74, 108, 247, 0.6);
        }

        .ai-panel {
            position: fixed;
            bottom: 100px;
            right: 30px;
            background-color: var(--card-bg);
            border-radius: var(--border-radius);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            width: 350px;
            max-height: 500px;
            z-index: 998;
            display: none;
            animation: panelFadeIn 0.3s;
            overflow: hidden;
        }

        @keyframes panelFadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .ai-panel-header {
            padding: 15px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .dark-mode .ai-panel-header {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .ai-panel-tabs {
            display: flex;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        .dark-mode .ai-panel-tabs {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .ai-tab {
            flex: 1;
            padding: 12px;
            text-align: center;
            background: none;
            border: none;
            cursor: pointer;
            transition: var(--transition);
            color: var(--text-soft);
            font-weight: 500;
        }

        .ai-tab.active {
            color: var(--primary);
            border-bottom: 2px solid var(--primary);
        }

        .ai-tab-content {
            padding: 15px;
            max-height: 380px;
            overflow-y: auto;
        }

        .ai-tab-pane {
            display: none;
        }

        .ai-tab-pane.active {
            display: block;
        }

        /* Chat tab styles */
        .chat-messages {
            height: 250px;
            overflow-y: auto;
            margin-bottom: 15px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: var(--border-radius);
            padding: 10px;
            background-color: var(--surface-alt);
        }

        .dark-mode .chat-messages {
            border-color: rgba(255, 255, 255, 0.1);
        }

        .message {
            margin-bottom: 10px;
            padding: 8px 12px;
            border-radius: 18px;
            max-width: 85%;
        }

        .message.user {
            background-color: var(--primary);
            color: white;
            margin-left: auto;
            border-bottom-right-radius: 4px;
        }

        .message.assistant {
            background-color: var(--surface);
            color: var(--text-strong);
            margin-right: auto;
            border-bottom-left-radius: 4px;
            border: 1px solid rgba(0, 0, 0, 0.1);
        }

        .dark-mode .message.assistant {
            border-color: rgba(255, 255, 255, 0.1);
        }

        .typing-indicator {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            margin-right: auto;
            max-width: 85%;
        }

        .typing-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: var(--text-soft);
            margin: 0 2px;
            animation: typing 1.4s infinite ease-in-out;
        }

        .typing-dot:nth-child(1) { animation-delay: 0s; }
        .typing-dot:nth-child(2) { animation-delay: 0.2s; }
        .typing-dot:nth-child(3) { animation-delay: 0.4s; }

        @keyframes typing {
            0%, 60%, 100% { transform: translateY(0); }
            30% { transform: translateY(-5px); }
        }

        .chat-input-container {
            display: flex;
            gap: 10px;
        }

        .chat-input {
            flex: 1;
            padding: 10px;
            border: 1px solid rgba(0, 0, 0, 0.2);
            border-radius: var(--border-radius);
            resize: none;
            font-family: inherit;
            background-color: var(--surface);
            color: var(--text-strong);
        }

        .dark-mode .chat-input {
            border-color: rgba(255, 255, 255, 0.2);
        }

        .chat-send {
            background-color: var(--primary);
            color: white;
            border: none;
            border-radius: var(--border-radius);
            padding: 10px 15px;
            cursor: pointer;
            transition: var(--transition);
        }

        .chat-send:hover {
            background-color: var(--primary-dark);
        }

        /* Settings tab styles */
        .setting-group {
            margin-bottom: 20px;
        }

        .setting-label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: var(--text-strong);
        }

        .setting-option {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
        }

        .setting-option input {
            margin-right: 8px;
        }

        .color-picker {
            width: 100%;
            height: 40px;
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
        }

        .slider-container {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .slider-value {
            min-width: 40px;
            text-align: center;
            font-weight: 500;
            color: var(--text-strong);
        }

        .range-slider {
            flex: 1;
            height: 6px;
            -webkit-appearance: none;
            background: var(--surface-alt);
            border-radius: 3px;
            outline: none;
        }

        .range-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
        }

        .endpoint-input {
            width: 100%;
            padding: 8px;
            border: 1px solid rgba(0, 0, 0, 0.2);
            border-radius: var(--border-radius);
            margin-top: 8px;
            background-color: var(--surface);
            color: var(--text-strong);
        }

        .dark-mode .endpoint-input {
            border-color: rgba(255, 255, 255, 0.2);
        }

        /* Links tab styles */
        .links-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .link-item {
            display: flex;
            align-items: center;
            padding: 10px;
            background-color: var(--surface-alt);
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: var(--transition);
        }

        .link-item:hover {
            background-color: var(--surface);
        }

        .link-item i {
            margin-right: 10px;
            color: var(--primary);
        }

        .link-info {
            flex: 1;
        }

        .link-info h4 {
            margin-bottom: 4px;
            font-size: 0.9rem;
        }

        .link-info p {
            font-size: 0.8rem;
            opacity: 0.8;
        }

        .link-badge {
            background: var(--primary);
            color: white;
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 10px;
        }

/*// ====================================
// 🖼️ Assistant Backdrop
// ====================================*/
        .ai-backdrop {
            position: fixed; 
            inset: 0;
            background: rgba(0,0,0,0.35);
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            z-index: 997;
            display: none;
        }
        
        @media (min-width: 769px) { 
            .ai-backdrop { 
                display: none !important; 
            } 
        }

/*// ====================================
// 🔚 Footer
// ====================================*/
        .site-footer {
            background-color: var(--dark);
            color: var(--light);
            padding: 40px 0;
            text-align: center;
        }

        .footer-logo {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .site-footer p {
            color: var(--light);
            max-width: 600px;
            margin: 0 auto 20px;
        }

        .copy {
            margin-top: 20px;
            font-size: 0.9rem;
            opacity: 0.8;
        }

        .footer-social { 
            margin: 16px 0 6px; 
            display: flex; 
            gap: 16px; 
            justify-content: center; 
        }
        
        .footer-social a { 
            color: var(--light); 
            font-size: 1.4rem; 
            transition: var(--transition); 
        }
        
        .footer-social a:hover { 
            color: var(--primary); 
            transform: translateY(-2px); 
        }

/*// ====================================
// 📱 Responsive Breakpoints
// ====================================*/
        @media (max-width: 768px) {
            .handheld {
                display: flex;
            }
            
            .flashcards-section {
                display: none;
            }
            
            .resources-section {
                display: none;
            }
            
            .ai-panel {
                right: 10px;
                left: 10px;
                bottom: 80px;
                width: auto;
            }
            
            body {
                padding-top: var(--header-height);
            }
            
            .hero-overlay h1 {
                font-size: 2rem;
            }
            
            .hero-overlay p {
                font-size: 1rem;
            }
        }

        @media (min-width: 769px) {
            .handheld {
                display: none;
            }
            
            .flashcards-section {
                display: block;
            }
            
            .resources-section {
                display: block;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }