﻿        :root {
            --primary: #0ea5e9;
            --primary-dark: #0284c7;
            --bg-body: #f8fafc;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(to bottom, #fafafa 0%, #f8fafc 50%, #f1f5f9 100%);
            background-attachment: fixed;
            color: #334155;
            line-height: 1.7;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            overflow-x: hidden;
            position: relative;
        }

        body.modal-open {
            overflow: hidden !important;
            height: 100vh;
            touch-action: none;
        }

        .bg-decoration {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background-image:
                radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
            background-size: 800px 800px, 800px 800px;
        }



        main {
            flex-grow: 1;
            position: relative;
            z-index: 1;
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        @media (min-width: 768px) {
            main {
                grid-template-columns: 260px 1fr;
                align-items: start;
            }

            #sidebar-column {
                position: sticky;
                top: 90px;
                max-height: calc(100vh - 100px);
                overflow-y: auto;
                padding-right: 10px;
            }

            #sidebar-column::-webkit-scrollbar {
                width: 4px;
            }

            #sidebar-column::-webkit-scrollbar-thumb {
                background: #cbd5e1;
                border-radius: 4px;
            }

            /* ========================
           CUSTOM STYLES FOR V2
           ======================== */

            /* Prevent title flashing while loading config */
            #site-name-display {
                opacity: 0;
                transition: opacity 0.3s ease-in;
            }

            #site-name-display.loaded {
                opacity: 1;
            }

        }

        /* Centraliza a landing page quando visÃ­vel */

        #main-container:has(#welcome-screen:not(.hidden)) {
            display: block;
            max-width: 100%;
        }

        #main-container:has(#welcome-screen:not(.hidden)) #sidebar-column {
            display: none;
        }

        .card {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 1.5rem;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            height: fit-content;
        }

        .card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.1);
            border-color: rgba(14, 165, 233, 0.4);
            background: rgba(255, 255, 255, 0.95);
        }

        .simulado-item {
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid transparent;
            border-radius: 1rem;
            margin-bottom: 0.5rem;
            min-height: 60px;
        }

        .simulado-item:hover {
            background-color: #f0f9ff;
            border-color: #bae6fd;
            transform: translateX(4px);
        }

        .activity-icon {
            width: 42px;
            height: 42px;
            min-width: 42px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 12px;
            font-size: 1.1rem;
            transition: transform 0.2s;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            position: relative;
        }

        .simulado-item:hover .activity-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .check-overlay {
            position: absolute;
            bottom: -4px;
            right: -4px;
            background: #22c55e;
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid white;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
            z-index: 20;
        }

        .icon-blue {
            background: linear-gradient(135deg, #e0f2fe, #bae6fd);
            color: #0284c7;
        }

        .icon-gray {
            background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
            color: #475569;
        }

        .icon-pink {
            background: linear-gradient(135deg, #fce7f3, #fbcfe8);
            color: #db2777;
        }

        .icon-purple {
            background: linear-gradient(135deg, #ede9fe, #ddd6fe);
            color: #7c3aed;
        }

        .icon-green {
            background: linear-gradient(135deg, #dcfce7, #bbf7d0);
            color: #166534;
        }

        .icon-red {
            background: linear-gradient(135deg, #fee2e2, #fecaca);
            color: #b91c1c;
        }

        .icon-orange {
            background: linear-gradient(135deg, #ffedd5, #fed7aa);
            color: #c2410c;
        }

        .icon-teal {
            background: linear-gradient(135deg, #ccfbf1, #99f6e4);
            color: #0f766e;
        }

        .icon-emerald {
            background: linear-gradient(135deg, #d1fae5, #a7f3d0);
            color: #059669;
        }

        .locked-item {
            opacity: 0.7;
            cursor: pointer;
            filter: grayscale(0.4);
        }

        .locked-item:hover {
            opacity: 0.9;
            filter: grayscale(0);
        }

        .lock-badge,
        .free-badge {
            padding: 2px 8px;
            border-radius: 99px;
            display: flex;
            align-items: center;
            gap: 4px;
            font-weight: 700;
            margin-left: auto;
            white-space: nowrap;
            font-size: 0.65rem;
        }

        .lock-badge {
            color: #b45309;
            background: linear-gradient(135deg, #fef3c7, #fde68a);
        }

        .free-badge {
            color: #15803d;
            background: linear-gradient(135deg, #dcfce7, #bbf7d0);
        }

        .category-badge {
            font-size: 0.6rem;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: bold;
            text-transform: uppercase;
            margin-left: 8px;
            vertical-align: middle;
        }

        /* Dark Mode */
        body.dark {
            background: #0f172a;
            color: #e2e8f0;
        }

        body.dark header {
            background: #1e293b;
            border-bottom-color: #334155;
        }

        body.dark .card {
            background: #1e293b;
            border-color: #334155;
        }

        body.dark main {
            background: #0f172a;
        }

        body.dark .filter-tab {
            background: #334155;
            color: #cbd5e1;
            border-color: #475569;
        }

        body.dark .filter-tab.active {
            background: #0ea5e9;
            color: white;
        }

        body.dark input,
        body.dark textarea,
        body.dark select {
            background: #0f172a;
            border-color: #334155;
            color: #e2e8f0;
        }

        body.dark .modal-backdrop {
            background: rgba(15, 23, 42, 0.8);
        }

        body.dark .modal-content {
            background: #1e293b;
            border-color: #334155;
        }

        body.dark footer {
            background: rgba(30, 41, 59, 0.8);
            border-top-color: #334155;
        }

        /* Header Improvements */
        header {
            position: relative;
            overflow: hidden;
        }

        header::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 200%;
            height: 4px;
            background: linear-gradient(90deg,
                    transparent,
                    #10b981,
                    #34d399,
                    #6ee7b7,
                    #34d399,
                    #10b981,
                    transparent);
            animation: shimmerHeader 3s linear infinite;
        }

        @keyframes shimmerHeader {
            0% {
                left: -100%;
            }

            100% {
                left: 100%;
            }
        }

        #site-logo-container {
            position: relative;
            overflow: hidden;
        }

        #site-logo-container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transform: rotate(45deg);
            animation: logoShine 3s ease-in-out infinite;
        }

        @keyframes logoShine {

            0%,
            100% {
                transform: translateX(-100%) rotate(45deg);
            }

            50% {
                transform: translateX(100%) rotate(45deg);
            }
        }

        .header-btn {
            position: relative;
            overflow: hidden;
        }

        .header-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.6s, height 0.6s;
        }

        .header-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        #header-clock-display {
            position: relative;
            background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
            transition: all 0.3s ease;
        }

        #header-clock-display:hover {
            background: linear-gradient(135deg, #e0f2fe, #bae6fd);
            transform: scale(1.05);
        }

        .admin-btn {
            position: relative;
            transition: all 0.3s ease;
        }

        .admin-btn:hover {
            transform: translateY(-2px);
        }

        .admin-btn::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #0ea5e9, #3b82f6);
            transition: width 0.3s ease;
        }

        .admin-btn:hover::after {
            width: 80%;
        }

        /* Footer Styles */
        footer {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(12px);
            border-top: 1px solid rgba(226, 232, 240, 0.6);
            margin-top: auto;
            position: relative;
            overflow: hidden;
        }

        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg,
                    #0ea5e9,
                    #3b82f6,
                    #8b5cf6,
                    #ec4899,
                    #8b5cf6,
                    #3b82f6,
                    #0ea5e9);
            background-size: 200% 100%;
            animation: gradientShift 3s linear infinite;
        }

        @keyframes gradientShift {
            0% {
                background-position: 0% 50%;
            }

            100% {
                background-position: 200% 50%;
            }
        }

        .footer-link {
            position: relative;
            transition: all 0.3s ease;
        }

        .footer-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg, #0ea5e9, #3b82f6);
            transition: width 0.3s ease;
        }

        .footer-link:hover::after {
            width: 100%;
        }

        .footer-link:hover {
            color: #0ea5e9;
            transform: translateY(-2px);
        }

        .social-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
            border: 1px solid #cbd5e1;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .social-icon::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: 50%;
            background: rgba(14, 165, 233, 0.2);
            transform: translate(-50%, -50%);
            transition: width 0.4s, height 0.4s;
        }

        .social-icon:hover::before {
            width: 100%;
            height: 100%;
        }

        .social-icon:hover {
            transform: translateY(-4px) scale(1.1);
            box-shadow: 0 8px 16px -4px rgba(14, 165, 233, 0.3);
            border-color: #0ea5e9;
        }

        .social-icon i {
            position: relative;
            z-index: 1;
            transition: all 0.3s ease;
        }

        .social-icon:hover i {
            color: #0ea5e9;
            transform: scale(1.2);
        }

        body.dark footer {
            background: rgba(30, 41, 59, 0.8);
            border-top-color: rgba(51, 65, 85, 0.6);
        }

        body.dark .social-icon {
            background: linear-gradient(135deg, #334155, #1e293b);
            border-color: #475569;
        }

        body.dark .footer-link:hover {
            color: #38bdf8;
        }

        /* Dark Mode Background */
        body.dark {
            background: linear-gradient(135deg,
                    #0f172a 0%,
                    #1e293b 25%,
                    #0f172a 50%,
                    #1e1b4b 75%,
                    #1e293b 100%);
            background-attachment: fixed;
        }

        body.dark .bg-decoration {
            background-image:
                radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
        }



        body.dark .text-slate-800 {
            color: #e2e8f0 !important;
        }

        body.dark .text-slate-600 {
            color: #cbd5e1 !important;
        }

        body.dark .text-slate-500 {
            color: #94a3b8 !important;
        }

        body.dark .bg-white\/80 {
            background: rgba(30, 41, 59, 0.8) !important;
        }

        .cat-badge-free {
            background: #dcfce7;
            color: #166534;
        }

        .cat-badge-pro {
            background: #fef3c7;
            color: #92400e;
        }

        .area-tag {
            font-size: 0.6rem;
            padding: 2px 6px;
            border-radius: 4px;
            background: #f1f5f9;
            color: #64748b;
            font-weight: 600;
            text-transform: uppercase;
            margin-right: auto;
            border: 1px solid #e2e8f0;
        }

        #area-filters-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
        }

        #area-filters {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            width: 100%;
        }

        /* Fix: Cada categoria com altura independente */
        #categories-container {
            align-items: start !important;
        }

        #categories-container>.card-futuristic {
            align-self: start;
        }

        /* Fix: Texto de área de estudo não cortado */
        #area-filters>div {
            overflow: visible;
            min-width: 0;
        }

        #area-filters>div>span {
            word-break: break-word;
            overflow-wrap: break-word;
            min-width: 0;
        }

        .filter-tab {
            padding: 0.75rem 1rem;
            border-radius: 0.75rem;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            border: 1px solid transparent;
            background: white;
            color: #64748b;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
        }

        .filter-tab:hover {
            background: #f8fafc;
            color: #0ea5e9;
            transform: translateX(2px);
        }

        .filter-tab.active {
            background: #0ea5e9;
            color: white;
            box-shadow: 0 4px 10px -2px rgba(14, 165, 233, 0.3);
            border-color: rgba(14, 165, 233, 0.2);
        }

        .filter-tab.active:hover {
            background: #0284c7;
            transform: translateX(2px);
        }

        .tab-drag-handle {
            cursor: grab;
            padding: 4px;
            color: #94a3b8;
            transition: color 0.2s;
        }

        .filter-tab.active .tab-drag-handle {
            color: rgba(255, 255, 255, 0.6);
        }

        .sortable-ghost {
            opacity: 0.4;
            background: #f1f5f9;
            border: 1px dashed #cbd5e1;
        }

        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
            opacity: 0;
        }

        .accordion-content.open {
            max-height: 10000px;
            opacity: 1;
            padding-top: 1rem;
        }

        .chevron {
            transition: transform 0.3s ease;
        }

        .chevron.rotate {
            transform: rotate(180deg);
        }

        .modal-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            transition: opacity 0.3s ease;
            backdrop-filter: blur(8px);
            background-color: rgba(15, 23, 42, 0.6);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }

        #confirm-modal {
            z-index: 11000 !important;
        }

        #block-alert-modal {
            z-index: 11001 !important;
        }

        .modal-content {
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.5);
            width: 100%;
            display: flex;
            flex-direction: column;
            margin: auto;
            max-height: 95vh;
            border-radius: 1rem;
        }

        @media (min-width: 768px) {
            .modal-content {
                max-height: 90vh;
                border-radius: 1.5rem;
            }
        }

        .modal-body-scroll {
            overflow-y: auto;
            flex-grow: 1;
            -webkit-overflow-scrolling: touch;
        }

        .drag-handle {
            cursor: grab;
            opacity: 0.0;
            transition: opacity 0.2s;
            color: #94a3b8;
        }

        .card:hover .drag-handle {
            opacity: 1;
        }

        input,
        textarea,
        select {
            transition: all 0.2s;
            border: 1px solid #e2e8f0;
        }

        input:focus,
        textarea:focus,
        select:focus {
            border-color: #0ea5e9;
            box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
            outline: none;
        }

        .tab-active {
            color: #0ea5e9 !important;
            border-bottom-color: #0ea5e9 !important;
        }

        #quiz-player-modal {
            padding: 0 !important;
            overflow: hidden !important;
        }

        #quiz-player-modal .modal-content {
            width: 100vw !important;
            height: 100vh !important;
            height: 100dvh !important;
            max-width: none !important;
            max-height: none !important;
            border-radius: 0 !important;
            border: none !important;
            margin: 0 !important;
            display: flex;
            flex-direction: column;
            background: white;
        }

        .player-header-safe {
            padding-top: env(safe-area-inset-top);
            flex-shrink: 0;
        }

        .player-footer-safe {
            padding-bottom: env(safe-area-inset-bottom);
            flex-shrink: 0;
        }

        #quiz-player-content {
            flex-grow: 1;
            overflow-y: auto;
            overflow-x: hidden;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 3rem;
        }

        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 12000;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .toast {
            padding: 1rem;
            border-radius: 0.75rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            gap: 10px;
            animation: slideIn 0.3s ease-out;
            background: white;
            border: 1px solid #e2e8f0;
            min-width: 280px;
        }

        .toast-success {
            border-left: 4px solid #22c55e;
        }

        .toast-success .toast-icon {
            color: #22c55e;
        }

        .toast-error {
            border-left: 4px solid #ef4444;
        }

        .toast-error .toast-icon {
            color: #ef4444;
        }

        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-fade-in {
            animation: fadeIn 0.4s ease-out forwards;
        }

        @keyframes shimmer {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(100%);
            }
        }

        .animate-shimmer {
            animation: shimmer 2s infinite;
        }

        .stat-card {
            transition: all 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        @keyframes scroll {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-50%);
            }
        }

        .carousel-track {
            display: flex;
            gap: 1rem;
            justify-content: center;
            align-items: center;
            width: 100%;
        }

        .carousel-track:hover {
            animation-play-state: paused;
        }

        /* ==========================================
   CORREÇÃO CRÍTICA DO FOOTER
   Adicionado em 2025-12-17 22:32
========================================== */

        /* Main cresce para empurrar footer */
        #main-container {
            flex: 1 0 auto;
        }

        /* Footer sempre visível e no final */
        #main-footer,
        footer {
            flex-shrink: 0;
            position: relative;
            z-index: 10 !important;
            display: block !important;
            visibility: visible !important;
            opacity: 1 !important;
            margin-top: auto;
        }

        /* Modal backdrop não deve cobrir footer quando hidden */
        .modal-backdrop.hidden {
            display: none !important;
            pointer-events: none !important;
        }

        /* Quando modal está aberta, footer ainda deve aparecer */
        body.modal-open #main-footer,
        body.modal-open footer {
            display: block !important;
            z-index: 10 !important;
        }

        /* Loading overlay não deve interferir depois de hidden */
        #loading-overlay.hidden {
            display: none !important;
            pointer-events: none !important;
        }

        /* WhatsApp button não deve cobrir footer */
        #whatsapp-float-btn {
            bottom: 80px;
        }

        /* ==========================================
   FUTURISTIC UI STYLES
   Adicionado em 2025-12-17 23:04
========================================== */

        /* Glassmorphism Utilities */
        .glass-panel {
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.5);
            box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
        }

        .glass-modal {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
        }

        /* Gradient Text */
        .text-gradient-futuristic {
            background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Futuristic Footer Icon */
        .footer-icon-futuristic {
            width: 3rem;
            height: 3rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 9999px;
            /* full rounded */
            background: rgba(255, 255, 255, 0.8);
            color: #64748b;
            /* slate-500 */
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            /* bouncy */
            border: 1px solid rgba(255, 255, 255, 0.5);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .footer-icon-futuristic:hover {
            transform: translateY(-5px) scale(1.1);
            background: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
            color: white;
            box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5), 0 0 15px rgba(56, 189, 248, 0.5);
            /* Blue glow */
            border-color: transparent;
        }

        .footer-icon-futuristic i {
            font-size: 1.25rem;
            transition: transform 0.3s ease;
        }

        .footer-icon-futuristic:hover i {
            transform: rotate(10deg);
        }

        /* Modal Animations */
        @keyframes modalPoof {
            0% {
                transform: scale(0.9) translateY(10px);
                opacity: 0;
                filter: blur(10px);
            }

            100% {
                transform: scale(1) translateY(0);
                opacity: 1;
                filter: blur(0);
            }
        }

        .modal-content.animate-poof {
            animation: modalPoof 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        /* Futuristic Inputs */
        .input-futuristic {
            background: rgba(248, 250, 252, 0.8);
            border: 2px solid #e2e8f0;
            transition: all 0.3s ease;
        }

        .input-futuristic:focus {
            background: white;
            border-color: #38bdf8;
            box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
            transform: translateY(-1px);
        }

        /* MORE FUTURISTIC STYLES */

        /* Futuristic Card */
        .card-futuristic {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 1.5rem;
            /* rounded-3xl */
            box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
            /* softer shadow */
            transition: all 0.3s ease;
        }

        .card-futuristic:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
            background: rgba(255, 255, 255, 0.95);
        }

        /* Gradient Buttons */
        .btn-gradient-primary {
            background: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 100%);
            color: white;
            border: none;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
            transition: all 0.3s ease;
        }

        .btn-gradient-primary:hover {
            background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 100%);
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
            transform: scale(1.02);
        }

        .btn-gradient-active {
            background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
            box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        /* Ranking Card */
        .ranking-card-futuristic {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 249, 255, 0.9) 100%);
            border: 2px solid #e0f2fe;
            box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
        }

        .ranking-badge-gold {
            background: linear-gradient(45deg, #fbbf24, #f59e0b);
            box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
            border: 2px solid white;
        }


        /* Custom Animations for Dashboard */
        @keyframes fade-in {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .animate-fade-in {
            animation: fade-in 0.5s ease-out forwards;
        }

        @keyframes shimmer {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(100%);
            }
        }

        .animate-shimmer {
            animation: shimmer 2s infinite linear;
        }

        /* ==========================================
   MOBILE RESPONSIVENESS FIXES
   Adicionado em 2025-12-22
   Correções para conteúdo cortado em celulares
========================================== */

        /* ===== MODAL GENERAL MOBILE FIXES ===== */
        @media (max-width: 767px) {

            /* Backdrop padding menor no mobile */
            .modal-backdrop {
                padding: 0.5rem;
            }

            /* Modal content dimensões adequadas */
            .modal-content {
                max-height: 100vh !important;
                max-height: 100dvh !important;
                width: 100% !important;
                margin: 0 !important;
                border-radius: 0.75rem !important;
            }

            /* Toasts em mobile */
            .toast-container {
                left: 0.5rem;
                right: 0.5rem;
                top: 0.5rem;
            }

            .toast {
                min-width: auto;
                width: 100%;
            }
        }

        /* ===== QUESTION FILTER MODAL - CSS ANTIGO REMOVIDO =====
         * O novo modal de filtro tem design responsivo próprio no HTML.
         * CSS antigo que causava conflito de layout foi removido.
         * Se precisar restaurar, consultar backup do arquivo.
         */

        /* ===== LANDING PAGE MOBILE FIXES ===== */
        @media (max-width: 767px) {

            /* Hero section */
            #welcome-screen>div:first-child {
                margin-left: 0.5rem !important;
                margin-right: 0.5rem !important;
                border-radius: 1.5rem !important;
            }

            /* Hero heading sizing */
            #welcome-screen h1 {
                font-size: 2.5rem !important;
                line-height: 1.1 !important;
                padding-top: 1rem !important;
            }

            /* Subtitle sizing */
            #landing-subtitle-display {
                font-size: 1rem !important;
                padding: 0 0.5rem;
            }

            /* Login/Test cards grid */
            #welcome-screen .grid.md\:grid-cols-2 {
                grid-template-columns: 1fr !important;
                gap: 1rem !important;
                padding: 0 0.5rem;
            }

            /* Features grid */
            #welcome-screen .grid.md\:grid-cols-3 {
                grid-template-columns: 1fr !important;
                gap: 1rem !important;
                padding: 0 0.5rem;
            }

            /* Feature cards padding */
            #welcome-screen .rounded-3xl.p-6 {
                padding: 1.25rem !important;
            }
        }

        /* ===== STUDENT DASHBOARD MOBILE FIXES ===== */
        @media (max-width: 767px) {
            #student-dashboard {
                padding: 0.5rem !important;
            }

            /* Performance cards - 2x2 grid no mobile */
            #student-dashboard .grid.grid-cols-2.md\:grid-cols-4 {
                grid-template-columns: repeat(2, 1fr) !important;
                gap: 0.5rem !important;
            }

            /* Performance card sizing */
            #student-dashboard .grid.grid-cols-2>div {
                padding: 0.75rem !important;
            }

            #student-dashboard .text-3xl {
                font-size: 1.5rem !important;
            }

            /* Study tools grid */
            #student-dashboard .grid.md\:grid-cols-2 {
                grid-template-columns: 1fr !important;
            }
        }

        /* ===== HEADER MOBILE FIXES ===== */
        @media (max-width: 767px) {
            header .container {
                padding: 0.5rem 0.75rem !important;
            }

            /* Logo container */
            #site-logo-container {
                width: 2.25rem !important;
                height: 2.25rem !important;
                font-size: 0.875rem !important;
            }

            /* Site name */
            #site-name-display {
                font-size: 0.875rem !important;
            }

            /* Admin buttons */
            .admin-btn {
                width: 2rem !important;
                height: 2rem !important;
                font-size: 0.75rem !important;
            }

            /* Login/logout buttons */
            #login-btn {
                padding: 0.5rem 0.75rem !important;
                font-size: 0.7rem !important;
            }
        }

        /* ===== FILTERS GRID MOBILE FIXES ===== */
        @media (max-width: 767px) {

            /* Filter grids responsivos */
            .grid.grid-cols-1.sm\:grid-cols-3 {
                grid-template-columns: 1fr !important;
            }

            /* Dificuldade field - full width no mobile */
            #question-filter-modal .w-1\/3 {
                width: 100% !important;
            }
        }

        /* ===== CATEGORIES CONTAINER MOBILE FIXES ===== */
        @media (max-width: 767px) {
            #categories-container {
                padding-bottom: 5rem !important;
            }

            .card {
                padding: 1rem !important;
            }

            /* Simulado items */
            .simulado-item {
                padding: 0.625rem !important;
            }

            /* Activity icon sizing */
            .activity-icon {
                width: 36px !important;
                height: 36px !important;
                min-width: 36px !important;
                font-size: 0.9rem !important;
            }
        }

        /* ===== GENERAL MODAL FIXES ===== */
        @media (max-width: 767px) {

            /* Register student modal */
            #register-student-modal .modal-content {
                height: 100vh !important;
                height: 100dvh !important;
                border-radius: 0 !important;
            }

            /* Landing config modal */
            #landing-config-modal .modal-content {
                height: 100vh !important;
                height: 100dvh !important;
                border-radius: 0 !important;
            }

            /* Login modal */
            #login-modal .modal-content {
                max-width: calc(100vw - 1rem) !important;
            }
        }

        /* ===== STUDY CONTROLS SIDEBAR MOBILE ===== */
        @media (max-width: 767px) {
            #study-controls {
                padding: 0.5rem !important;
            }

            #area-filters-container {
                max-height: none !important;
            }

            .filter-tab {
                padding: 0.625rem 0.75rem !important;
                font-size: 0.8rem !important;
            }
        }

        /* CSS antigo do filtro de questões removido - ver comentário acima */

        /* ===== SAFE AREA INSETS (iPhone notch, etc) ===== */
        @supports (padding-top: env(safe-area-inset-top)) {
            .modal-backdrop {
                padding-top: env(safe-area-inset-top);
                padding-bottom: env(safe-area-inset-bottom);
                padding-left: env(safe-area-inset-left);
                padding-right: env(safe-area-inset-right);
            }
        }