

/* ==========================================================================
   Styles extracted from index.html
   ========================================================================== */

body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #f2f2f7;
            max-width: 800px;
            margin: 0 auto;
            padding: 40px 20px 180px;
            color: #1c1c1e;
            -webkit-tap-highlight-color: transparent;
        }

        .header-spacer {
            height: 20px;
        }

        .app-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px 10px;
            max-width: 600px;
            margin: 0 auto 30px;
        }

        .app-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            position: relative;
        }

        .icon-box {
            width: 62px;
            height: 62px;
            border-radius: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 28px;
            color: white;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.1s;
            margin-bottom: 6px;
            overflow: hidden;
            padding: 0;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        .icon-box i {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
        }

        .app-item:active .icon-box {
            transform: scale(0.90);
            filter: brightness(0.8);
        }

        .app-name {
            font-size: 11px;
            font-weight: 500;
            color: #1c1c1e;
            text-align: center;
            line-height: 1.2;
            width: 70px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .hero-section {
            background: linear-gradient(135deg, #1e293b, #0f172a);
            border-radius: 24px;
            padding: 40px 20px;
            text-align: center;
            color: white;
            margin-bottom: 35px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 10%, transparent 50%);
            animation: rotateBG 20s linear infinite;
            z-index: 0;
            pointer-events: none;
        }

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

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

        .hero-banner-img {
            width: 100%;
            max-width: 400px;
            height: auto;
            border-radius: 15px;
            margin: 0 auto 20px auto;
            position: relative;
            z-index: 1;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            display: block;
        }

        .hero-title {
            font-size: 24px;
            font-weight: 800;
            margin: 0 0 10px 0;
            position: relative;
            z-index: 1;
            letter-spacing: -0.5px;
            background: linear-gradient(to right, #fff, #cbd5e1);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1.6;
        }

        .hero-subtitle {
            font-size: 14px;
            line-height: 1.5;
            opacity: 0.85;
            margin: 0 auto 20px;
            max-width: 90%;
            position: relative;
            z-index: 1;
        }

        .hero-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            position: relative;
            z-index: 1;
            width: 100%;
        }

        .hero-buttons>* {
            flex: 1;
        }

        .btn-primary,
        .btn-secondary {
            padding: 10px 8px;
            /* Reduced side padding so they fit side-by-side */
            border-radius: 30px;
            font-size: 11px;
            /* Slightly smaller text */
            font-weight: 600;
            cursor: pointer;
            border: none;
            transition: transform 0.1s, opacity 0.2s;
            white-space: nowrap;
            /* Prevents text from wrapping to a second line */
            overflow: hidden;
            /* Ensure it stays contained */
            text-overflow: ellipsis;
            /* Fallback if screen is aggressively small */
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            box-sizing: border-box;
            font-family: inherit;
            line-height: 1;
        }

        .btn-primary {
            background: linear-gradient(135deg, #0ea5e9, #2563eb);
            color: white;
            box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
        }

        .btn-secondary {
            background-color: transparent;
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.4);
        }

        .btn-primary:active,
        .btn-secondary:active {
            transform: scale(0.95);
        }

        /* --- HERO STAT BADGES --- */
        .hero-stats {
            display: flex;
            gap: 8px;
            justify-content: center;
            flex-wrap: wrap;
            margin: 0 auto 20px;
            position: relative;
            z-index: 1;
        }

        .hero-stat {
            display: flex;
            align-items: center;
            gap: 5px;
            background: rgba(255, 255, 255, 0.10);
            border: 1px solid rgba(255, 255, 255, 0.18);
            border-radius: 999px;
            padding: 5px 12px;
            font-size: 12px;
            font-weight: 700;
            color: #f1f5f9;
            backdrop-filter: blur(4px);
            letter-spacing: 0.2px;
        }

        .hero-stat i {
            font-size: 11px;
            opacity: 0.85;
        }

        @media (max-width: 480px) {
            .hero-title {
                font-size: 18px;
            }
            .hero-subtitle {
                font-size: 12px;
                padding: 0 10px;
            }
            .hero-buttons {
                flex-direction: column;
                gap: 10px;
            }
            .btn-primary,
            .btn-secondary {
                padding: 12px 15px;
                font-size: 13px;
                width: 100%;
                box-sizing: border-box;
                white-space: normal;
                overflow: visible;
                text-overflow: clip;
            }
        }

        /* --- SEARCH BAR STYLES --- */
        /* --- SEARCH & FILTER DASHBOARD STYLES --- */
        .search-filter-card {
            background-color: white;
            border-radius: 24px;
            padding: 20px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
            border: 1px solid rgba(0, 0, 0, 0.05);
            max-width: 100%;
            margin: 0 auto 25px;
            box-sizing: border-box;
        }

        .dashboard-title {
            font-size: 20px;
            font-weight: 800;
            margin: 0 0 10px 0;
            letter-spacing: -0.5px;
            background: linear-gradient(to right, #0f172a, #334155);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            text-align: center;
        }

        .dashboard-subtitle {
            font-size: 13px;
            line-height: 1.5;
            color: #475569;
            margin: 0 auto 18px;
            max-width: 500px;
            text-align: center;
        }

        .dashboard-stats {
            display: flex;
            gap: 8px;
            justify-content: center;
            flex-wrap: wrap;
            margin: 0 auto 15px;
        }

        .dashboard-stat {
            display: flex;
            align-items: center;
            gap: 5px;
            background: #f1f5f9;
            border: 1px solid #e2e8f0;
            border-radius: 999px;
            padding: 5px 12px;
            font-size: 11px;
            font-weight: 700;
            color: #334155;
            letter-spacing: 0.2px;
        }

        .dashboard-stat i {
            font-size: 10px;
            color: #64748b;
        }

        .search-container {
            position: relative;
        }

        .search-icon {
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #9ca3af;
            font-size: 18px;
        }

        .search-input {
            width: 100%;
            padding: 14px 15px 14px 45px;
            border-radius: 16px;
            border: 2px solid #e5e7eb;
            background-color: #f8fafc;
            font-size: 15px;
            outline: none;
            box-sizing: border-box;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.01);
            transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
            color: #1c1c1e;
        }

        .search-input:focus {
            border-color: #3b82f6;
            background-color: white;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
        }

        .filter-divider {
            height: 1px;
            background-color: #f1f5f9;
            margin: 15px 0;
            width: 100%;
        }

        .filter-chips-header {
            font-size: 10px;
            font-weight: 800;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 6px;
            justify-content: center;
        }

        /* --- FILTER CHIPS --- */
        .filter-chips {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
            max-width: 100%;
            margin: 0 auto;
        }

        .search-filter-card .filter-results {
            margin: 15px 0 0 0;
            text-align: center;
            font-weight: 700;
            color: #64748b;
        }

        .search-filter-card .no-results {
            background: transparent;
            padding: 20px 10px 0 10px;
            box-shadow: none;
        }

        .chip {
            display: flex;
            align-items: center;
            gap: 5px;
            padding: 7px 14px;
            border-radius: 999px;
            border: 2px solid #e5e7eb;
            background: white;
            font-size: 12px;
            font-weight: 600;
            color: #6b7280;
            cursor: pointer;
            transition: all 0.15s;
            user-select: none;
            white-space: nowrap;
        }

        .chip:active { transform: scale(0.95); }

        .chip.active {
            color: white;
            border-color: transparent;
        }

        .chip[data-tag="smartboard"].active { background: #2563eb; }
        .chip[data-tag="solo"].active        { background: #7c3aed; }
        .chip[data-tag="speaking"].active    { background: #059669; }
        .chip[data-tag="vocab"].active       { background: #d97706; }
        .chip[data-tag="quiz"].active        { background: #dc2626; }
        .chip[data-tag="creative"].active    { background: #db2777; }

        .filter-results {
            font-size: 12px;
            color: #9ca3af;
            margin: -12px 0 18px;
            font-weight: 500;
        }

        .no-results {
            display: none;
            text-align: center;
            padding: 40px 20px;
            background: white;
            border-radius: 20px;
            color: #9ca3af;
        }

        .no-results i { font-size: 32px; margin-bottom: 10px; display: block; }
        .no-results p { margin: 0; font-size: 14px; }

        /* --- CATEGORY SECTION STYLES --- */
        .category-block {
            margin-bottom: 30px;
            background-color: rgba(255, 255, 255, 0.6);
            border-radius: 20px;
            padding: 15px;
            box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
        }

        .category-title {
            font-size: 15px;
            font-weight: 700;
            color: #334155;
            margin: 0 0 15px 5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .category-title i {
            color: #64748b;
        }

        .no-results {
            text-align: center;
            padding: 20px;
            color: #64748b;
            font-style: italic;
            display: none;
        }

        .widget-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            max-width: 100%;
            margin: 20px auto 30px;
        }

        /* --- 3D FLIP CARD STYLES --- */
        .flip-card {
            background-color: transparent;
            perspective: 1000px;
            min-height: 250px;
            display: flex;
        }

        .flip-card-inner {
            position: relative;
            width: 100%;
            height: 100%;
            text-align: center;
            transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
            transform-style: preserve-3d;
            display: flex;
            flex: 1;
        }

        .flip-card.flipped .flip-card-inner {
            transform: rotateY(180deg);
        }

        .flip-card-front, .flip-card-back {
            position: absolute;
            width: 100%;
            height: 100%;
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            border-radius: 20px;
            padding: 20px 15px;
            color: white;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
            box-sizing: border-box;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            align-items: center;
        }

        .flip-card-front {
            z-index: 2;
            transform: rotateY(0deg);
        }

        .flip-card-back {
            transform: rotateY(180deg);
        }

        .mode-joke .flip-card-front,
        .mode-joke .flip-card-back {
            background: linear-gradient(135deg, #ff9966, #ff5e62);
        }

        .mode-vocab .flip-card-front,
        .mode-vocab .flip-card-back {
            background: linear-gradient(135deg, #3a86ff, #005ecb);
        }

        /* TTS Speaker Button */
        .tts-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            display: inline-flex;
            justify-content: center;
            align-items: center;
            margin-left: 8px;
            transition: background 0.2s, transform 0.1s;
            font-size: 14px;
            flex-shrink: 0;
            vertical-align: middle;
        }
        .tts-btn:hover {
            background: rgba(255, 255, 255, 0.35);
        }
        .tts-btn:active {
            transform: scale(0.9);
        }

        /* Multiple choice option buttons */
        .vocab-options {
            width: 100%;
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin: 8px 0;
        }

        .vocab-option-btn {
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.25);
            color: white;
            padding: 8px 12px;
            border-radius: 10px;
            font-size: 11px;
            font-weight: 600;
            cursor: pointer;
            text-align: left;
            transition: all 0.2s ease;
            width: 100%;
            outline: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .vocab-option-btn:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        .vocab-option-btn.correct {
            background-color: #10b981 !important;
            border-color: #059669;
            box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
        }

        .vocab-option-btn.incorrect {
            background-color: #ef4444 !important;
            border-color: #dc2626;
            box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
        }

        /* Shake Animation for incorrect answer */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-6px); }
            40%, 80% { transform: translateX(6px); }
        }
        .shake-card {
            animation: shake 0.4s ease-in-out;
        }

        .widget-title {
            font-size: 10px;
            text-transform: uppercase;
            font-weight: 800;
            opacity: 0.8;
            margin-bottom: 8px;
            letter-spacing: 1px;
        }

        .widget-main {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 6px;
            line-height: 1.3;
        }

        .widget-sub {
            font-size: 14px;
            font-weight: 600;
            background-color: rgba(255, 255, 255, 0.2);
            padding: 6px 10px;
            border-radius: 8px;
            display: none;
            margin-top: 5px;
            animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        @keyframes popIn {
            from {
                transform: scale(0.8);
                opacity: 0;
            }

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

        .widget-sub.visible {
            display: inline-block;
        }

        .tap-hint {
            font-size: 9px;
            margin-top: 10px;
            opacity: 0.7;
            font-style: italic;
        }

        .shop-banner-container {
            max-width: 100%;
            margin: 0 auto 20px;
            text-align: center;
        }

        .shop-banner-img {
            width: 100%;
            height: auto;
            border-radius: 15px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s;
            display: block;
        }

        .shop-banner-img:active {
            transform: scale(0.96);
        }

        .install-container {
            text-align: center;
            margin-bottom: 15px;
            display: none;
            position: relative;
            z-index: 10;
        }

        .btn-install {
            background-color: #1c1c1e;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s;
        }

        .btn-install:active {
            transform: scale(0.95);
        }

        .footer {
            margin-top: 50px;
            font-size: 0.9em;
            color: #777;
            border-top: 1px solid #eee;
            padding-top: 20px;
            text-align: center;
            position: relative;
            z-index: 5;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            font-weight: normal;
        }

        .footer p {
            margin: 0;
            font-weight: normal;
        }

        .footer a {
            color: #3498db;
            text-decoration: none;
            font-weight: normal;
        }

        .footer a:hover {
            text-decoration: underline;
        }

        .ios-modal {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 99999;
            justify-content: center;
            align-items: flex-end;
        }

        .ios-modal-content {
            background-color: white;
            width: 100%;
            max-width: 500px;
            border-top-left-radius: 20px;
            border-top-right-radius: 20px;
            padding: 25px;
            box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.2);
            animation: slideUp 0.3s ease-out;
            margin: 0 auto;
        }

        @keyframes slideUp {
            from {
                transform: translateY(100%);
            }

            to {
                transform: translateY(0);
            }
        }

        .ios-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 15px;
            color: #1c1c1e;
        }

        .ios-step {
            font-size: 14px;
            color: #3a3a3c;
            margin-bottom: 10px;
            line-height: 1.4;
        }

        .ios-close {
            margin-top: 20px;
            width: 100%;
            padding: 12px;
            background-color: #f2f2f7;
            color: #007aff;
            font-weight: 600;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            cursor: pointer;
        }

        /* --- PWA INSTALL BANNER --- */
        .pwa-install-banner {
            position: fixed;
            bottom: -100px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 400px;
            background-color: white;
            border-radius: 16px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            padding: 15px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            z-index: 100000;
            transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .pwa-install-banner.show {
            bottom: 20px;
        }

        .pwa-banner-content {
            display: flex;
            align-items: center;
            gap: 15px;
            flex: 1;
        }

        .pwa-icon {
            width: 45px;
            height: 45px;
            border-radius: 12px;
            flex-shrink: 0;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #fff;
        }

        .pwa-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .pwa-texts {
            display: flex;
            flex-direction: column;
        }

        .pwa-title {
            font-weight: 800;
            font-size: 15px;
            color: #1e293b;
            line-height: 1.2;
        }

        .pwa-subtitle {
            font-size: 12px;
            color: #64748b;
            margin-top: 2px;
        }

        .pwa-actions {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .btn-get {
            background-color: #2563eb;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
            transition: transform 0.2s;
        }

        .btn-get:active {
            transform: scale(0.95);
        }

        .btn-close-pwa {
            background: none;
            border: none;
            color: #94a3b8;
            font-size: 18px;
            cursor: pointer;
            padding: 5px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .ios-modal-icon-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 10px 0;
            background: #f8fafc;
            padding: 10px 15px;
            border-radius: 12px;
            border: 1px solid #e2e8f0;
        }

        .ios-modal-icon-row i {
            font-size: 24px;
            color: #007aff;
        }

        /* --- GUIDE MODAL --- */
        .guide-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.6);
            z-index: 99999;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(5px);
            padding: 20px;
            box-sizing: border-box;
        }

        .guide-modal-content {
            background-color: white;
            width: 100%;
            max-width: 400px;
            border-radius: 24px;
            padding: 30px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
        }

        .guide-title {
            font-size: 20px;
            font-weight: 800;
            color: #1e293b;
            margin-bottom: 20px;
            text-align: center;
        }

        .guide-section {
            background-color: #f8fafc;
            border-radius: 16px;
            padding: 15px;
            margin-bottom: 15px;
            border-left: 4px solid #3b82f6;
        }

        .guide-section.student {
            border-left-color: #10b981;
        }

        .guide-section h3 {
            margin: 0 0 5px 0;
            font-size: 14px;
            color: #334155;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .guide-section p {
            margin: 0;
            font-size: 13px;
            color: #64748b;
            line-height: 1.5;
        }

        .guide-close-btn {
            position: absolute;
            top: 15px;
            right: 15px;
            background: #f1f5f9;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            font-size: 16px;
            color: #64748b;
            cursor: pointer;
            display: flex;
            justify-content: center;
            align-items: center;
            transition: background 0.2s;
        }

        .guide-close-btn:active {
            background: #e2e8f0;
        }

        .bg-blue {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }

        .bg-indigo {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .bg-sky {
            background: linear-gradient(135deg, #00c6fb 0%, #005bea 100%);
        }

        .bg-green {
            background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
        }

        /* --- SHARE BUTTON & TOAST --- */
        .share-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            transition: all 0.2s ease;
            backdrop-filter: blur(5px);
            font-size: 18px;
        }

        .share-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: scale(1.1);
        }

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

        .toast-notification {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: #2563eb;
            color: white;
            padding: 12px 24px;
            border-radius: 30px;
            font-weight: 700;
            font-size: 15px;
            box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
            opacity: 0;
            transition: opacity 0.3s, transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            z-index: 100000;
            display: flex;
            align-items: center;
            gap: 10px;
            pointer-events: none;
        }

        .toast-notification.show {
            transform: translateX(-50%) translateY(0);
            opacity: 1;
        }
        .bg-teal {
            background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
        }

        .bg-red {
            background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
        }

        .bg-orange {
            background: linear-gradient(135deg, #f83600 0%, #f9d423 100%);
        }

        .bg-pink {
            background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
        }

        .bg-purple {
            background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
        }

        .bg-dark {
            background: linear-gradient(135deg, #434343 0%, #000000 100%);
        }

        .bg-space {
            background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
        }

        .bg-yellow {
            background: linear-gradient(135deg, #ffe259 0%, #ffa751 100%);
        }

        @media (max-width: 380px) {
            .app-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 20px 10px;
            }

            .icon-box {
                width: 70px;
                height: 70px;
                font-size: 36px;
            }

            .app-name {
                width: 80px;
                font-size: 12px;
            }
        }

        /* --- EDUCATIONAL SECTION & FAQ STYLES --- */
        .edu-section {
            max-width: 100%;
            margin: 40px auto 25px;
            padding: 28px 24px;
            background-color: rgba(255, 255, 255, 0.9);
            border: 1px solid rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 24px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
            color: #334155;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            text-align: left;
        }
        
        .edu-section h2 {
            font-size: 18px;
            font-weight: 800;
            color: #1e293b;
            margin-top: 0;
            margin-bottom: 14px;
            border-bottom: 2px solid #e2e8f0;
            padding-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .edu-section h2 i {
            color: #2563eb;
        }

        .edu-section h3 {
            font-size: 14px;
            font-weight: 700;
            color: #0f172a;
            margin-top: 20px;
            margin-bottom: 8px;
        }

        .edu-section p {
            font-size: 13px;
            line-height: 1.6;
            margin-bottom: 12px;
            color: #475569;
        }

        .faq-container {
            margin-top: 25px;
            border-top: 1px solid #e2e8f0;
            padding-top: 15px;
        }

        .faq-item {
            border-bottom: 1px solid #e2e8f0;
            padding: 14px 0;
        }

        .faq-item:last-child {
            border-bottom: none;
        }

        .faq-question {
            font-weight: 700;
            font-size: 13.5px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #1e293b;
            user-select: none;
        }

        .faq-question i {
            transition: transform 0.2s;
            color: #64748b;
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.2s ease-out, margin-top 0.2s;
            font-size: 12.5px;
            color: #64748b;
            line-height: 1.6;
        }

        .faq-item.active .faq-answer {
            margin-top: 8px;
        }

        .faq-item.active .faq-question i {
            transform: rotate(180deg);
            color: #2563eb;
        }
        
        @media (max-width: 480px) {
            .edu-section {
                padding: 20px 16px;
                margin: 30px 10px 20px;
                border-radius: 20px;
            }
        }