/* 
   🔱 MAESTRO AUDIÊNCIA - STYLE SHEET (v.1.0.0 Platinum Design)
   Inspirado no padrão Maestro SaaS (Elite Dark Mode)
*/

:root {
    --deep-dark: #020c1b;
    --maestro-blue: #0a192f;
    --maestro-dark: #0d1117;
    --accent-gold: #e3b341;
    --success-green: #2ecc71;
    --danger-red: #ff4757;
    --text-white: #ffffff;
    --text-muted: #8892b0;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gold-glow: rgba(227, 179, 65, 0.2);
    --green-glow: rgba(46, 204, 113, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--deep-dark);
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.playfair {
    font-family: 'Playfair Display', serif;
}

/* --- HEADER & NAVIGATION (MAESTRO GOLD STANDARD) --- */
header {
    background: #020c1b;
    border-bottom: 2px solid #1a2a41;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.header-logo {
    height: 40px;
}

.maestro-brand-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
}

.solutions-text {
    color: var(--success-green); /* Conforme print da bíblia */
}

.app-title {
    text-align: center;
    flex: 2;
}

.maestro-title-main {
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 2.8rem;
    color: white;
    margin: 0;
    letter-spacing: -2px;
    line-height: 0.9;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}

.green-text {
    color: var(--success-green);
    filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.3));
}

.maestro-slogan {
    font-family: 'Outfit', sans-serif;
    font-style: italic;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: white;
    margin-top: 2px;
    opacity: 0.8;
    text-transform: uppercase;
}

.header-subnav {
    background: #0a192f;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 1600px;
    margin: 0 auto;
}

.nav-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #8892b0;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    transition: all 0.3s;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.nav-tab.active {
    background: var(--success-green);
    color: #020c1b;
    border-color: var(--success-green);
}

.authorship {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex: 1;
}

.tioilmo-logo {
    height: 35px;
    filter: drop-shadow(0 0 5px rgba(227, 179, 65, 0.3));
}

.by-text {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 700;
}

.by-text {
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-style: italic;
}

.tioilmo-logo {
    height: 25px;
}

/* --- MAIN CONTAINER (RESPONSIVE ELITE) --- */
main {
    max-width: 1600px; /* Expandir de 1200px para 1600px para alinhar com o header */
    margin: 1rem auto; /* Reduzir margem superior */
    padding: 0 2rem;
    min-height: 80vh;
}

/* Ajustes de Grid para Desktop */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

/* Mobile First - Ajuste para telas pequenas */
@media (max-width: 768px) {
    main {
        max-width: 100%;
        padding: 0 1rem;
    }
    .stats-grid, .action-cards, .grid-list {
        grid-template-columns: 1fr;
    }
}

.app-section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.app-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.playfair {
    font-size: 2.8rem;
    color: var(--text-white);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- GLASS CARDS & GRIDS --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

.stat-card {
    text-align: center;
    border-bottom: 3px solid var(--maestro-blue);
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.stat-value {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.action-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    padding: 2.5rem;
}

.action-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.action-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.border-success { border-bottom: 4px solid var(--success-green); }
.border-success .action-icon { color: var(--success-green); }

.border-gold { border-bottom: 4px solid var(--accent-gold); }
.border-gold .action-icon { color: var(--accent-gold); }

/* --- ICON BUTTONS & BADGES --- */
.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
    line-height: 0;
}

.btn-icon i {
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

/* Lápis: Branco */
.btn-edit i {
    color: var(--text-white) !important;
}

/* X: Vermelho */
.btn-delete i {
    color: var(--danger-red) !important;
}

.btn-icon:hover i {
    transform: scale(1.2);
}

.badge-gold {
    background: rgba(227, 179, 65, 0.15);
    color: var(--accent-gold);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    border: 1px solid rgba(227, 179, 65, 0.3);
}

/* --- BUTTONS & ACTIONS --- */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

/* ESTILO MAESTRO GOLD ELITE */
.btn-maestro {
    background: linear-gradient(135deg, #e3b341 0%, #b8860b 100%);
    color: var(--deep-dark);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(227, 179, 65, 0.3);
}

.btn-maestro:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(227, 179, 65, 0.5);
    filter: brightness(1.1);
}

.btn-maestro:active {
    transform: translateY(-1px) scale(0.97);
    box-shadow: 0 4px 10px rgba(227, 179, 65, 0.4);
}

/* ESTILO MAESTRO WHITE GLASS */
.btn-white {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-success { 
    background: linear-gradient(135deg, #00c851 0%, #007e33 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-gold { 
    background: var(--accent-gold); 
    color: var(--deep-dark); 
}

.btn-back {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: 0.3s;
}

.btn-back:hover {
    color: white;
    transform: translateX(-5px);
}

/* --- GRID & EMPTY STATES --- */
.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

.large-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* SISTEMA DE BUSCA E ORDENAÇÃO */
.search-container {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    gap: 15px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
}

.search-container input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    font-size: 1rem;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.sortable {
    cursor: pointer;
    user-select: none;
    transition: color 0.3s;
}

.sortable:hover {
    color: var(--accent-gold);
}

/* --- TABLE STYLES --- */
.student-table-container {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.maestro-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.maestro-table th {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.maestro-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.01);
}

.maestro-table tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.text-right { text-align: right; }

/* --- FORMS & MODALS --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 12, 27, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-card {
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    animation: modalIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Responsive Quiz Editor Expansion */
.modal-quiz-editor {
    max-width: 1000px;
}

.cc-modal-size {
    max-width: 850px;
}

.quiz-editor-columns {
    display: grid;
    grid-template-columns: 280px 1fr; /* Sidebar um pouco mais estreita */
    gap: 20px;
    margin-top: 10px;
    flex: 1;
    min-height: 0;
}

.quiz-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden; /* Removendo scroll da esquerda */
    padding-right: 5px;
    border-right: 1px solid var(--glass-border);
}

.quiz-main-content {
    overflow-y: auto;
    padding-right: 15px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
}

.quiz-question-block {
    transition: transform 0.2s ease-out, background 0.2s ease;
}

/* Novo: Container de ações fixo no rodapé da sidebar */
.sidebar-actions {
    margin-top: auto;
    padding-top: 10px;
    background: var(--deep-dark);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 5;
}

@media (max-width: 900px) {
    .modal-card {
        width: 95%;
        padding: 1rem;
    }
    .quiz-editor-columns {
        grid-template-columns: 1fr;
        display: block; /* Voltar para block no mobile para scroll natural do modal */
    }
    .quiz-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 20px;
        margin-bottom: 20px;
        max-height: 40vh;
    }
}

/* Floating Add Question Button style */
.btn-add-floating {
    background: var(--success-green);
    color: #020c1b;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px var(--green-glow);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-add-floating:hover {
    transform: translateY(-2px);
    background: #27ae60;
    box-shadow: 0 6px 20px var(--green-glow);
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

input[type="text"], 
input[type="number"],
select, 
textarea {
    width: 100%;
    background: var(--maestro-dark);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: white;
    font-family: 'Outfit', sans-serif;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="text"]:focus, 
input[type="number"]:focus,
select:focus, 
textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Forçar fundo escuro em opções de select (Batalha contra o White Background do Browser) */
select option {
    background: #1a2a41; /* Maestro Blue Darker */
    color: white;
    padding: 10px;
}

/* Custom Select Specific for Library Filter */
.select-maestro-filter {
    background: rgba(10, 25, 47, 0.5) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.select-maestro-filter:hover {
    border-color: var(--accent-gold);
    background: rgba(10, 25, 47, 0.8) !important;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 2rem;
}

/* --- CARDS --- */
.item-card {
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    position: relative;
    border-radius: 16px;
    margin-bottom: 20px;
}

.item-card:hover {
    border-color: var(--accent-gold);
    background: rgba(227, 179, 65, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.card-header-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-white);
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

/* --- ARUCO PREVIEW --- */
.marker-generator-container {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

#aruco-canvas {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    max-width: 300px;
    width: 100%;
}

/* --- 🏟️ ARENA MODE & LIVE CHARTS --- */
.arena-header {
    margin-bottom: 20px;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.option-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px !important;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

.opt-letter {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 900;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.opt-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
}

/* Animação de Revelação */
.active-correct {
    background: rgba(46, 204, 113, 0.2) !important;
    border-color: var(--success-green) !important;
    box-shadow: 0 0 20px var(--green-glow) !important;
    transform: scale(1.05);
}

.correct-hidden {
    transition: opacity 0.5s, transform 0.5s;
}

#chart-live {
    filter: drop-shadow(0 0 15px rgba(227, 179, 65, 0.2));
}

/* Ranking Especial */
.badge-gold.active-correct {
    background: var(--success-green);
    color: white;
    opacity: 1 !important;
}

.student-locked {
    position: relative;
    border: 2px solid var(--success-green) !important;
    transform: scale(0.98);
    opacity: 0.9;
}

.locked-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--success-green);
    color: white;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 20px;
    box-shadow: 0 0 10px var(--green-glow);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@media print {
    header, .nav-container, .btn-back, .btn-maestro, .form-group {
        display: none !important;
    }
    .glass {
        border: 1px solid #ddd !important;
        background: white !important;
        color: black !important;
    }
    body { background: white !important; color: black !important; }
    canvas { max-width: 400px !important; }
}

/* --- FOOTER --- */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn-debug {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-debug:hover {
    opacity: 1;
    color: #ff4d4d;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    main {
        max-width: 100%;
        margin: 0;
        border: none;
        border-radius: 0;
    }
    .header-container { flex-direction: column; gap: 1rem; }
    .header-nav { width: 100%; overflow-x: auto; padding-bottom: 5px; }
    .playfair { font-size: 2rem; }
    .stats-grid { grid-template-columns: 1fr; }
}

<header id="maestro-header">
    <div class="header-main">
        <div class="brand">
            <img src="assets/logos/maestro_logo.png" alt="Maestro Logo" class="header-logo">
            <span class="maestro-brand-text">Maestro <span class="solutions-text" style="color: #2ecc71;">Solutions</span></span>
        </div>
        
        <div class="app-title">
            <h1 class="maestro-title-main" style="font-style: italic; font-weight: bold;">MAESTRO DAS AUDIÊNCIAS</h1>
            <p class="maestro-slogan">EM HARMONIA COM SUA AUDIÊNCIA!</p>
        </div>

        <div class="authorship">
            <img src="assets/logos/tio_ilmo_logo.png" alt="Tio Ilmo Logo" class="tioilmo-logo">
            <span class="by-text">V: 2.01.00</span>
        </div>
    </div>
    
    <nav class="header-subnav">
        <div class="nav-container">
            <button class="nav-tab active" onclick="app.switchView('dashboard')">🏠 DASHBOARD</button>
            <button class="nav-tab" onclick="app.switchView('turmas')">👥 MINHAS TURMAS</button>
            <button class="nav-tab" onclick="app.switchView('questoes')">📝 QUESTÕES</button>
            <button class="nav-tab" onclick="app.switchView('aruco')">📷 SCANNER ARUCO</button>
        </div>
    </nav>
</header>

/* Exemplo de renderização de linha de tabela */
/* 
    <td class="text-right">
        <button class="btn-icon btn-edit" title="Editar" onclick="window.app.openModal('edit_aluno', '${s.id}')">
            <i data-lucide="edit-3"></i>
        </button>
        <button class="btn-icon btn-delete" title="Eliminar" onclick="window.app.deleteStudent('${s.id}')">
            <i data-lucide="x-circle"></i>
        </button>
    </td>
*/

@keyframes pop-in {
    0% { transform: scale(0); opacity: 0; }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}


/* --- 📱 MOBILE OPTIMIZATIONS (PLATINUM REMOTE) --- */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    
    header {
        position: fixed !important;
        width: 100%;
        top: 0;
        left: 0;
        z-index: 5000;
        height: 70px;
        padding: 5px 15px !important;
        display: flex;
        align-items: center;
        background: rgba(1, 4, 9, 0.9) !important;
        backdrop-filter: blur(20px);
        border-bottom: 2px solid var(--accent-gold);
    }
    
    body {
        padding-top: 80px !important;
        padding-bottom: 90px !important; 
    }

    .mobile-footer {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: rgba(2, 12, 27, 0.95);
        backdrop-filter: blur(15px);
        border-top: 2px solid var(--accent-gold);
        padding: 12px 20px;
        justify-content: space-around;
        gap: 15px;
        z-index: 6000;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
    }
    
    .mobile-footer .btn {
        flex: 1;
        justify-content: center;
        padding: 14px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .mobile-footer .btn-maestro {
        flex: 2;
        background: var(--accent-gold);
        color: #000;
        box-shadow: 0 0 15px var(--gold-glow);
    }
}

.mobile-footer { display: none; }
.desktop-only { display: block; }

.student-locked {
    transform: translateY(-5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- 🔱 MAESTRO POWER EFFECTS (PREMIUM) --- */
@keyframes screenFlash {
    0% { background-color: rgba(255, 255, 255, 0); }
    10% { background-color: rgba(255, 255, 255, 0.5); }
    100% { background-color: rgba(255, 255, 255, 0); }
}

.flash-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 10000;
    animation: screenFlash 0.6s ease-out forwards;
}

.btn-carimbar-potente {
    background: linear-gradient(135deg, #e3b341 0%, #ffcc33 100%) !important;
    color: #000 !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    padding: 12px 30px !important;
    border-radius: 8px !important;
    border: 2px solid #fff !important;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px var(--gold-glow);
    text-transform: uppercase;
}

.btn-carimbar-potente:hover {
    transform: scale(1.1) rotate(1deg);
    box-shadow: 0 0 40px var(--gold-glow);
}

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

@keyframes glitch-text {
    0% { text-shadow: 2px 0 red, -2px 0 blue; }
    20% { text-shadow: -2px 0 red, 2px 0 blue; }
    40% { text-shadow: 2px 2px red, -2px -2px blue; }
    60% { text-shadow: -2px -2px red, 2px 2px blue; }
    100% { text-shadow: 2px 0 red, -2px 0 blue; }
}

.version-boost {
    animation: glitch-text 0.2s infinite;
    color: #fff !important;
    font-size: 1.2rem !important;
}

@keyframes flash-red {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.6; transform: scale(1.05); background: #ff0000; box-shadow: 0 0 25px #ff0000; }
}

/* --- 🔱 MAESTRO SCROLLBAR ELITE --- */
.maestro-scroll::-webkit-scrollbar {
    width: 8px;
}

.maestro-scroll::-webkit-scrollbar-track {
    background: rgba(10, 25, 47, 0.5);
    border-radius: 10px;
}

.maestro-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
    border: 2px solid var(--deep-dark);
}

.maestro-scroll::-webkit-scrollbar-thumb:hover {
    background: #f1c40f;
}
