﻿/* ==================== CSS VARIABLES ==================== */
:root {
    --font-scale: 1;
    --bg-body: #f0f2f5;
    --bg-card: #ffffff;
    --bg-card-alt: #f8f9fa;
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --border-color: #e0e0e0;
    --accent-color: #1e3a5f;
    --accent-hover: #162d4a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --reading-bg: #f0f4f8;
    --reading-btn-bg: #ffffff;
    --reading-btn-hover: #e2e8f0;
    --reading-btn-color: #4a5568;
    --reading-indicator-bg: #e2e8f0;
    --reading-indicator-fill: #1e3a5f;
    --reading-divider: #d0d5dd;
}

body.dark-mode {
    --bg-body: #0d1117;
    --bg-card: #161b22;
    --bg-card-alt: #1c2333;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --border-color: #30363d;
    --accent-color: #58a6ff;
    --accent-hover: #79c0ff;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --reading-bg: #161b22;
    --reading-btn-bg: #21262d;
    --reading-btn-hover: #30363d;
    --reading-btn-color: #c9d1d9;
    --reading-indicator-bg: #30363d;
    --reading-indicator-fill: #58a6ff;
    --reading-divider: #30363d;
}

/* ==================== DARK MODE OVERRIDES ==================== */
body.dark-mode .sidebar {
    background: var(--bg-card);
    border-right-color: var(--border-color);
}

body.dark-mode .close-sidebar {
    color: var(--text-primary);
}

body.dark-mode .filter-group label {
    color: var(--text-secondary);
}

body.dark-mode .filter-hint {
    color: var(--text-secondary);
}

body.dark-mode .question-card {
    border-color: var(--border-color);
}

body.dark-mode .question-number {
    color: var(--text-secondary);
}

body.dark-mode .question-header {
    border-bottom-color: var(--border-color);
}

body.dark-mode .meta-tag {
    background: var(--bg-card-alt);
    color: var(--text-secondary);
}

body.dark-mode .question-card.question-nullified {
    background: #1c1010;
    border-left-color: #dc3545;
}

body.dark-mode .question-card.question-outdated {
    background: #0d1b2a;
    border-left-color: #0d6efd;
}

body.dark-mode .filter-tag {
    background: #1e3a5f;
}

body.dark-mode .filter-tag button {
    color: white;
}

body.dark-mode .sidebar-overlay {
    background: rgba(0,0,0,0.7);
}


body.dark-mode .pagination .pagination-ellipsis {
    color: var(--text-secondary);
}

body.dark-mode .stat-value {
    color: var(--accent-color);
}

body.dark-mode .stat-label {
    color: var(--text-secondary);
}

body.dark-mode .progress-bar {
    background: var(--border-color);
}

body.dark-mode .checkbox-scroll-item.sub-nivel-1 {
    color: var(--text-secondary);
}

body.dark-mode .checkbox-scroll-item.sub-nivel-2 {
    color: var(--text-secondary);
}

body.dark-mode .search-input-filter {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-mode .credit-balance {
    color: #1a1a2e;
}

body.dark-mode .simulated-config {
    background: var(--bg-card);
    border-color: var(--border-color);
}


body.dark-mode .alt-item {
    border-color: var(--border-color);
}

body.dark-mode .alt-item:hover {
    background: #1c2333;
}

body.dark-mode .alt-item.eliminated {
    background: var(--bg-card-alt);
    opacity: 0.4;
}

body.dark-mode .already-answered-badge.already-correct {
    background: #0d2818;
    color: #4ade80;
    border-color: #166534;
}

body.dark-mode .already-answered-badge.already-incorrect {
    background: #2d1b00;
    color: #fbbf24;
    border-color: #78350f;
}

body.dark-mode .status-badge.status-nullified {
    background: #2d1b00;
    color: #fbbf24;
    border-color: #78350f;
}

body.dark-mode .status-badge.status-outdated {
    background: #0d1b2a;
    color: #60a5fa;
    border-color: #1e3a5f;
}

body.dark-mode .comments-section {
    background: var(--bg-card-alt) !important;
    border-top-color: var(--border-color) !important;
}

body.dark-mode .comments-section [contenteditable] {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark-mode .comments-section button[style*="background:#fff"] {
    background: var(--reading-btn-bg) !important;
    color: var(--reading-btn-color) !important;
    border-color: var(--border-color) !important;
}


body.dark-mode .modal-content {
    background: var(--bg-card);
    color: var(--text-primary);
}

body.dark-mode .modal-content .close {
    color: var(--text-secondary);
}

body.dark-mode .modal-content input,
body.dark-mode .modal-content select,
body.dark-mode .modal-content textarea {
    background: var(--bg-card-alt);
    color: var(--text-primary);
    border-color: var(--border-color);
}

body.dark-mode .modal-content label {
    color: var(--text-secondary);
}

﻿html { font-size: 15px; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

/* ==================== HEADER ==================== */
.header {
    background: #000A19;
    color: white;
    padding: 0.8rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.logo i {
    font-size: 1.5rem;
}

.header-center {
    font-size: 0.9rem;
    background: rgba(255,255,255,0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.header-right {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.btn-outline {
    background: white;
    border: 2px solid black;
    color: #1a1a2e;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: #e0e0e0;
    border-color: black;
    color: #1a1a2e;
}

.btn-primary {
    background: white;
    border: 1px solid #000000;
    color: #1a1a2e;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #f0f0f0;
    border-color: #000000;
    color: #1a1a2e;
}
.btn-primary.full {
    width: 100%;
    padding: 0.7rem;
}

.btn-outline.full {
    width: 100%;
    padding: 0.7rem;
}

.btn-outline.small {
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
}

/* ==================== LOGO ==================== */

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.logo-img {
    height: 32px;
    width: auto;
    vertical-align: middle;
}

.logo i {
    font-size: 1.5rem;
}

/* ==================== MODAL LOGIN ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.modal-content .close {
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.7rem;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #1e3a5f;
    color: white;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane input {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.error-msg {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* ==================== SIDEBAR ==================== */
.main-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 320px;
    background: white;
    padding: 1.5rem;
    border-right: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.close-sidebar {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
}

/* ==================== FILTERS ==================== */
.filter-group {
    margin-bottom: 1.2rem;
}

.filter-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.4rem;
}

.filter-hint {
    font-size: 0.65rem;
    color: #999;
    display: block;
    margin-top: 0.3rem;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.checkbox-group label {
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
}

.filter-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ==================== FILTER TAGS ==================== */
.filter-tag {
    background: #2563eb;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.filter-tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0;
    margin-left: 0.3rem;
}

.filter-tag button:hover {
    opacity: 0.8;
}

/* ==================== CONTENT ==================== */
.content {
    flex: 1;
    padding: 1.5rem;
    overflow-x: auto;
}

.content-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.nav-tab {
    background: none;
    border: none;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.nav-tab:hover {
    background: #f0f0f0;
}

.nav-tab.active {
    background: #1e3a5f;
    color: white;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.count-badge {
    background: #2563eb;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* ==================== QUESTIONS ==================== */
.questions-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.question-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.question-number {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.question-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.75rem;
}

.meta-tag {
    background: #f0f0f0;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.difficulty-FÃ¡cil { background: #28a74520; color: #28a745; }
.difficulty-MÃ©dio { background: #ffc10720; color: #b8860b; }
.difficulty-DifÃ­cil { background: #dc354520; color: #dc3545; }

.favorite-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s;
}

.favorite-btn.active {
    color: #ffc107;
}

.question-statement {
    margin: 1rem 0;
    line-height: 1.6;
    font-size: 1rem;
}

.alternatives {
    margin: 1rem 0;
}

.alt-item {
    padding: 0.6rem;
    margin: 0.3rem 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.alt-item:hover {
    background: #fff3e0;
}

.alt-item.selected {
    background: #1e3a5f;
    color: white;
    border-color: #1e3a5f;
}

.alt-item.correct-answer {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.alt-item.wrong-answer {
    background: #dc354580;
    color: white;
    border-color: #dc3545;
}

.respond-btn {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.respond-btn:hover {
    background: #1d4ed8;
}

.feedback {
    margin-top: 0.8rem;
    padding: 0.6rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.feedback.correct {
    background: #d4edda;
    color: #155724;
}

.feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
}


/* ==================== READING CONFIG ==================== */
.page-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.reading-config {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--reading-bg);
    padding: 0.3rem 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.reading-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--reading-btn-bg);
    color: var(--reading-btn-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.reading-btn:hover {
    background: var(--reading-btn-hover);
    transform: scale(1.05);
}

.reading-btn:active {
    transform: scale(0.95);
}

.reading-icon {
    font-size: 1rem;
    line-height: 1;
}

.reading-sub {
    position: absolute;
    bottom: 2px;
    right: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--accent-color);
}

#darkModeToggle .reading-icon {
    font-size: 1.1rem;
}

.reading-font-indicator {
    width: 40px;
    height: 6px;
    background: var(--reading-indicator-bg);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.reading-font-bar {
    height: 100%;
    width: 50%;
    background: var(--reading-indicator-fill);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.reading-divider {
    width: 1px;
    height: 20px;
    background: var(--reading-divider);
    margin: 0 0.2rem;
}

/* Dark mode toggle active state */
#darkModeToggle.active {
    background: var(--accent-color);
    color: #fff;
}

#darkModeToggle.active:hover {
    background: var(--accent-hover);
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pagination .pagination-info {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.pagination a {
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    cursor: pointer;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    min-width: 36px;
    text-align: center;
    user-select: none;
}

.pagination a:hover:not(.active) {
    background: #f0f4f8;
    border-color: #1e3a5f;
    color: #1e3a5f;
}

.pagination a.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(30,58,95,0.3);
}

.pagination a.pagination-nav {
    background: var(--bg-card-alt);
    border-color: var(--border-color);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.45rem 0.6rem;
}

.pagination a.pagination-nav:hover {
    background: var(--reading-btn-hover);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.pagination .pagination-ellipsis {
    padding: 0.4rem 0.3rem;
    color: #999;
    font-size: 0.9rem;
    letter-spacing: 2px;
    user-select: none;
}

/* ==================== SIMULATED ==================== */
.simulated-config {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
}

.form-group select {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.simulated-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.simulated-result {
    margin-top: 1rem;
    padding: 1rem;
    background: #d4edda;
    border-radius: 12px;
    text-align: center;
}

/* ==================== STATS ==================== */
.stats-container {
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e3a5f;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin: 0.5rem 0;
}

.progress-fill {
    background: #28a745;
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s;
}

/* ==================== TOAST ==================== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 250px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.success { background: #28a745; }
.toast.error { background: #dc3545; }
.toast.warning { background: #ffc107; color: #1a1a2e; }
.toast.info { background: #1e3a5f; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        z-index: 300;
        transform: translateX(-100%);
        overflow-y: auto;
        width: 280px;
    }
    
    .sidebar.open { transform: translateX(0); }
    .close-sidebar { display: block; }
    .sidebar-overlay.active { display: block; }
    
    .content { padding: 1rem; }
    
    .question-header { flex-direction: column; align-items: flex-start; }
    
    .simulated-config { flex-direction: column; align-items: stretch; }
    
    .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .question-meta { flex-direction: column; gap: 0.3rem; }
    .meta-tag { display: inline-block; width: fit-content; }
    
    .sidebar {
        width: 260px;
    }
}

/* ==================== CHECKBOX SCROLL ==================== */
.checkbox-scroll {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
}

.checkbox-scroll-header {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.checkbox-scroll-header button {
    background: none;
    border: none;
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.btn-select-all {
    color: #28a745;
}

.btn-select-all:hover {
    background: #28a74520;
}

.btn-clear-all {
    color: #dc3545;
}

.btn-clear-all:hover {
    background: #dc354520;
}

.checkbox-scroll-list {
    max-height: 180px;
    overflow-y: auto;
    padding: 0.3rem;
}

.checkbox-scroll-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
}

.checkbox-scroll-item:hover {
    background: #f5f7fa;
}

.checkbox-scroll-item input {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-scroll-item label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
    font-size: 0.8rem;
}

/* Sub-assuntos com indentaÃ§Ã£o */
.checkbox-scroll-item.sub-nivel-1 {
    padding-left: 1.5rem;
    font-size: 0.75rem;
    color: #555;
}

.checkbox-scroll-item.sub-nivel-2 {
    padding-left: 2.5rem;
    font-size: 0.7rem;
    color: #777;
}

.search-input-filter {
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input-filter:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,0.2);
}

/* ==================== ALTERNATIVA ELIMINADA ==================== */
.alt-item.eliminated {
    text-decoration: line-through;
    opacity: 0.5;
    background: #f0f0f0;
    cursor: default;
}

/* O Ã­cone da lixeira em alternativa eliminada ainda deve ser clicÃ¡vel */
.alt-item.eliminated .eliminate-icon {
    pointer-events: auto;
    cursor: pointer;
    opacity: 0.8;
}

.alt-item.eliminated .eliminate-icon:hover {
    opacity: 1;
}

.eliminate-icon {
    cursor: pointer;
    opacity: 1;
    font-size: 1.2rem;
    user-select: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
    pointer-events: auto !important;
    color: #ff6b6b;
    background: #f8f9fa;
    border-radius: 50%;
    padding: 0.2rem;
}

.eliminate-icon:hover {
    transform: scale(1.2);
    color: #dc3545;
    background: #ffe0e0;
}

.eliminate-icon.eliminated {
    opacity: 0.8;
}

.eliminate-icon.eliminated:hover {
    opacity: 1;
    transform: scale(1.15);
}

.alt-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================== COMMENTS BUTTON ==================== */
.comments-button {
    border: 1px solid #2563eb;
    color: #2563eb;
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s;
}

.comments-button:hover {
    background: #eff6ff;
    border-color: #1d4ed8;
    color: #1d4ed8;
}

/* ==================== ALREADY ANSWERED BADGE ==================== */
.already-answered-badge {
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
}

.already-answered-badge.already-correct {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.already-answered-badge.already-incorrect {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}


/* ==================== STATUS BADGE ANULADA E DESATUALIZADA ==================== */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: bold;
    text-align: center;
    font-size: 0.9rem;
}

.status-nullified {
    background: #dc3545;
    color: white;
    border-left: 4px solid #a71d2a;
}

.status-outdated {
    background: #0d6efd;
    color: white;
    border-left: 4px solid #084298;
}

/* ==================== QUESTÃ•ES COM STATUS ESPECIAL (FUNDO DA CAIXA) ==================== */
.question-card.question-nullified {
    background: #fff5f5;
    border-left: 6px solid #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
}

.question-card.question-outdated {
    background: #f0f8ff;
    border-left: 6px solid #0d6efd;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

/* BotÃ£o para questÃµes desatualizadas */
.respond-btn.outdated-warning {
    background: #ffc107;
    color: #1a1a2e;
    border: 1px solid #e0a800;
}

.respond-btn.outdated-warning:hover {
    background: #e0a800;
    color: #1a1a2e;
}


/* ===== INDICADOR DE CRÃ‰DITOS ===== */
#creditInfo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-right: 0.5rem;
}

.credit-balance {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}

.credit-balance:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* ===== BOTÃƒO EXPLICAÃ‡ÃƒO IA ===== */
.ai-explain-container {
    margin-top: 0.75rem;
}

.btn-ai-explain {
    background: linear-gradient(135deg, #9C27B0 0%, #7B1FA2 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-ai-explain:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.3);
}

.btn-ai-explain:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== MODAL DE RECARGA ===== */
.recharge-modal {
    max-width: 500px;
}

/* ============================================================
   BOTAO CTA DA RECARGA (premium)
   ============================================================ */
.btn-recharge-confirm {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e !important;
    border: none !important;
    padding: 1rem 1.4rem !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-size: 1.02rem !important;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow:
        0 8px 20px rgba(255, 170, 0, 0.32),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-recharge-confirm:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 32px rgba(255, 170, 0, 0.45),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.btn-recharge-confirm:active {
    transform: translateY(0);
}

.btn-recharge-confirm i {
    color: #1a1a2e;
}

/* ============================================================
   RECHARGE PAGE - PREMIUM
   ============================================================ */

/* Header com saldo + beneficios */
.recharge-header {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.2rem;
    padding: 1.6rem;
    border-radius: 18px;
    background:
        linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.8rem;
    box-shadow:
        0 12px 32px rgba(15, 52, 96, 0.28),
        0 0 0 1px rgba(255, 215, 0, 0.18) inset;
}

.recharge-header::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.55), rgba(255, 170, 0, 0.15) 40%, transparent 70%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.recharge-header::after {
    /* glow dourado de fundo */
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.recharge-header-text { position: relative; z-index: 1; }
.recharge-balance-card { position: relative; z-index: 1; }

.recharge-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
    box-shadow: 0 4px 14px rgba(255, 170, 0, 0.4);
}

.recharge-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.recharge-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0 0 1rem 0;
    max-width: 36ch;
}

.recharge-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 1rem;
}

.recharge-benefits li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.recharge-benefits li i {
    color: #ffd700;
    font-size: 0.85rem;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* Card de saldo */
.recharge-balance-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.recharge-balance-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.recharge-balance-amount {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.recharge-balance-meta {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.recharge-balance-mini {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.recharge-balance-mini i { color: #ffd700; }

/* Titulos de secao */
.recharge-section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 1.5rem 0 0.8rem;
    color: #1f2937;
    font-weight: 700;
    font-size: 1rem;
}

.recharge-section-title span i {
    color: #ffd700;
    margin-right: 0.4rem;
    text-shadow: 0 1px 4px rgba(255, 170, 0, 0.25);
}

.recharge-section-title small {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.78rem;
}

/* Cards de valor */
.recharge-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
    margin-bottom: 0.5rem;
}

.recharge-option {
    position: relative;
    border: 2px solid #e6e3f5;
    border-radius: 14px;
    padding: 1.2rem 0.8rem 1rem;
    background: #ffffff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: center;
    overflow: hidden;
}

.recharge-option:hover {
    transform: translateY(-3px);
    border-color: #c7d2fe;
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.12);
}

.recharge-option.active {
    border-color: #1a1a2e;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
    box-shadow:
        0 10px 24px rgba(26, 26, 46, 0.18),
        0 0 0 1px #1a1a2e inset;
}

.recharge-option.active .recharge-option-icon {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    color: #ffd700;
}

.recharge-option.active .recharge-value { color: #1a1a2e; }

.recharge-option-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f4f5fb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.7rem;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.recharge-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.recharge-credits {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 0.3rem;
    font-weight: 500;
}

/* Check no canto inferior */
.recharge-option-check {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #1a1a2e;
    color: #ffd700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s ease;
}

.recharge-option.active .recharge-option-check {
    opacity: 1;
    transform: scale(1);
}

/* Card "MAIS POPULAR" */
.recharge-option-best {
    border-color: #ffd700;
    background: linear-gradient(180deg, #fffbe6 0%, #ffffff 100%);
    box-shadow:
        0 0 0 1px #ffd700 inset,
        0 8px 20px rgba(255, 170, 0, 0.18);
}

.recharge-option-tag {
    position: absolute;
    top: 10px;
    right: -28px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.25rem 2rem;
    transform: rotate(35deg);
    box-shadow: 0 4px 10px rgba(255, 170, 0, 0.4);
}

.recharge-option-best:hover {
    border-color: #ffd700;
    box-shadow:
        0 0 0 1px #ffd700 inset,
        0 14px 28px rgba(255, 170, 0, 0.3);
}

.recharge-option-best.active {
    border-color: #1a1a2e;
    box-shadow:
        0 0 0 2px #1a1a2e,
        0 0 0 4px #ffd700,
        0 14px 28px rgba(26, 26, 46, 0.25);
}

.recharge-option-best .recharge-option-icon {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e;
}

/* Metodos de pagamento */
.payment-method-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.payment-method {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 1rem 0.8rem;
    border: 2px solid #e6e3f5;
    border-radius: 14px;
    background: #ffffff;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-method i {
    font-size: 1.4rem;
    color: #6b7280;
    transition: color 0.2s;
}

.payment-method-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.payment-method-meta {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 500;
}

.payment-method:hover {
    border-color: #c7d2fe;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(99, 102, 241, 0.12);
}

.payment-method.active {
    border-color: #1a1a2e;
    background: linear-gradient(180deg, #ffffff 0%, #f0f5ff 100%);
    box-shadow:
        0 10px 24px rgba(26, 26, 46, 0.18),
        0 0 0 1px #1a1a2e inset;
}

.payment-method.active i {
    color: #1a1a2e;
    text-shadow: 0 1px 4px rgba(255, 170, 0, 0.25);
}

/* Responsivo */
@media (max-width: 720px) {
    .recharge-header {
        grid-template-columns: 1fr;
    }
    .recharge-benefits { grid-template-columns: 1fr; }
    .recharge-options { grid-template-columns: 1fr; }
    .payment-method-options { grid-template-columns: 1fr; }
}

.ai-cta-recharge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 6px 18px rgba(255, 170, 0, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.ai-cta-recharge:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 170, 0, 0.5); }

.ai-trigger-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    margin-left: auto;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #f8f4ff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 4px 14px rgba(15, 52, 96, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
}

.ai-trigger-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 120deg, transparent 0%, rgba(255, 215, 0, 0.18) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.ai-trigger-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 8px 22px rgba(15, 52, 96, 0.55);
}

.ai-trigger-link:hover::before {
    transform: translateX(100%);
}

.ai-trigger-link i {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.ai-trigger-badge {
    font-size: 0.62rem;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(255, 170, 0, 0.5);
}


/* ============================================================
   MODAIS DE CONFIRMACAO (Danger Zone + Excluir Comentario)
   ============================================================ */
.danger-confirm-modal {
    max-width: 480px;
}

.danger-confirm-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.5rem 1.5rem 0.8rem;
    text-align: center;
}

.danger-confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.18);
    animation: dangerPulse 2s ease-in-out infinite;
}

@keyframes dangerPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 20px rgba(220, 38, 38, 0.18); }
    50% { transform: scale(1.06); box-shadow: 0 12px 28px rgba(220, 38, 38, 0.3); }
}

.danger-confirm-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.danger-confirm-body {
    padding: 0.5rem 1.5rem 1.2rem;
    text-align: center;
}

.danger-confirm-body p {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.5;
    margin: 0 0 0.5rem;
}

.danger-confirm-hint {
    font-size: 0.8rem;
    color: #9ca3af;
    font-style: italic;
    margin: 0;
}

.danger-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 1.5rem 1.5rem;
}

.btn-danger-confirm {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.btn-danger-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.45);
}

.btn-danger-confirm:active {
    transform: translateY(0);
}

.btn-danger-cancel {
    background: transparent;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.btn-danger-cancel:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}


/* ============================================================
   AUTH: CAPTCHA + GOOGLE
   ============================================================ */
.recaptcha-wrap {
    margin: 0.5rem 0;
    min-height: 78px;
    display: flex;
    justify-content: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
    color: #9ca3af;
    font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
    margin: 0 0.6rem;
}

.google-btn-wrap {
    display: flex;
    justify-content: center;
    min-height: 44px;
}
.google-btn-wrap > div,
.google-btn-wrap > iframe {
    border-radius: 6px;
}


/* ============================================================
   AI EXPLANATION - PREMIUM PANEL (inline, abaixo da questao)
   ============================================================ */
.ai-trigger-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    margin-left: auto;
    border-radius: 8px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #f8f4ff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 215, 0, 0.35);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 4px 14px rgba(15, 52, 96, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
}

.ai-trigger-link::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 215, 0, 0.18) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.ai-trigger-link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.1) inset,
        0 8px 22px rgba(15, 52, 96, 0.55);
}

.ai-trigger-link:hover::before {
    transform: translateX(100%);
}

.ai-trigger-link i {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.ai-trigger-badge {
    font-size: 0.62rem;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(255, 170, 0, 0.5);
}

/* Container expandido */
.ai-section {
    margin-top: 0.8rem;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    border: 1px solid #e6e3f5;
    box-shadow:
        0 8px 28px rgba(26, 26, 46, 0.08),
        0 2px 6px rgba(26, 26, 46, 0.04);
    position: relative;
}

/* Faixa gradiente no topo (gold + dark blue) */
.ai-premium-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    background:
        linear-gradient(135deg, rgba(26, 26, 46, 0.97) 0%, rgba(22, 33, 62, 0.97) 60%, rgba(15, 52, 96, 0.97) 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    position: relative;
}

.ai-premium-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffd700, transparent);
}

.ai-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.ai-premium-badge i {
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.ai-premium-badge.ai-badge-error {
    color: #ff6b6b;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.4);
}
.ai-premium-badge.ai-badge-error i { color: #ff6b6b; }

.ai-premium-badge.ai-badge-warn {
    color: #ffb84d;
    text-shadow: 0 0 8px rgba(255, 184, 77, 0.4);
}
.ai-premium-badge.ai-badge-warn i { color: #ffb84d; }

.ai-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.4rem;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}
.ai-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Corpo do painel */
.ai-premium-body {
    padding: 1.2rem 1.3rem;
    color: #1f2937;
    font-size: 0.95rem;
    line-height: 1.7;
}

.ai-premium-body.ai-loading {
    text-align: center;
    padding: 2.2rem 1rem;
}

.ai-premium-body.ai-loading p {
    margin: 0.6rem 0 0.2rem;
    font-weight: 600;
    color: #1a1a2e;
}

.ai-premium-body.ai-loading small {
    color: #6b7280;
    font-size: 0.82rem;
}

.ai-spinner {
    display: inline-flex;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #16213e, #0f3460);
    color: #ffd700;
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    animation: aiPulse 1.4s ease-in-out infinite;
    box-shadow: 0 0 22px rgba(255, 215, 0, 0.25);
}

@keyframes aiPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 22px rgba(255, 215, 0, 0.25); }
    50% { transform: scale(1.08); box-shadow: 0 0 32px rgba(255, 215, 0, 0.45); }
}

.ai-explanation-text h4 {
    margin: 1rem 0 0.4rem;
    font-size: 0.95rem;
    color: #1a1a2e;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-left: 3px solid #ffd700;
    padding-left: 0.6rem;
}

.ai-explanation-text p {
    margin: 0.4rem 0;
    color: #374151;
}

/* Ressalva da IA (divergencia do gabarito oficial) */
.ai-explanation-text h4:has(> .ressalva-icon) {
    color: #b45309;
    border-left: 4px solid #f59e0b;
    padding-left: 0.6rem;
    background: #fffbeb;
    border-radius: 0 4px 4px 0;
    padding: 0.5rem 0.6rem;
    margin-top: 1.2rem;
}

/* Erros / sem creditos */
.ai-error-body { text-align: center; padding: 1.6rem 1.2rem; }
.ai-error-body p { color: #b91c1c; margin-bottom: 1rem; }

.ai-cta-recharge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    color: #1a1a2e;
    font-weight: 700;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    box-shadow: 0 6px 18px rgba(255, 170, 0, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}
.ai-cta-recharge:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(255, 170, 0, 0.5); }

/* Rodape */
.ai-premium-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(180deg, #fafbff, #f4f5fb);
    border-top: 1px solid #e6e3f5;
    font-size: 0.78rem;
    color: #6b7280;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ai-premium-footer i { color: #ffd700; margin-right: 0.2rem; }

.ai-balance {
    font-weight: 700;
    color: #1a1a2e;
    background: rgba(255, 215, 0, 0.12);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.profile-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
}

.profile-field input {
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: #fff;
}

.profile-field input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.profile-field input:disabled {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.field-hint {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.2rem;
}

.profile-info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem;
    background: #eff6ff;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    font-size: 0.8rem;
    color: #1e40af;
    margin-top: 0.5rem;
}

.profile-info-box i {
    font-size: 1rem;
    margin-top: 0.1rem;
}

.profile-actions {
    margin-top: 0.5rem;
}

.profile-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 1.5rem 0;
}

.profile-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 1.2rem;
}

.profile-danger h3 {
    font-size: 0.95rem;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.profile-danger p {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.btn-danger {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-danger:hover {
    background: #b91c1c;
}

.success-msg {
    color: #16a34a;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    text-align: center;
}



.btn-icon {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 8px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(15deg);
}





/* ==================== RECARGA ==================== */
.recharge-options {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

/* Tema claro: o body pode ter fundo branco; garantir que o premium aparece bem */


/* Rodape */
.ai-premium-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(180deg, #fafbff, #f4f5fb);
    border-top: 1px solid #e6e3f5;
    font-size: 0.78rem;
    color: #6b7280;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ai-premium-footer i { color: #ffd700; margin-right: 0.2rem; }

.ai-balance {
    font-weight: 700;
    color: #1a1a2e;
    background: rgba(255, 215, 0, 0.12);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Tema claro: o body pode ter fundo branco; garantir que o premium aparece bem */
@media (max-width: 640px) {
    .ai-trigger-link { margin-left: 0; }
    .ai-premium-footer { flex-direction: column; align-items: flex-start; }
}

/* ==================== MENU HORIZONTAL ==================== */
.top-menu {
    background: #0a1628;
    border-bottom: 1px solid #1a2a4a;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Quando o header esta presente, o menu fica abaixo dele */
.header + .top-menu {
    top: 0;
}

.menu-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0 1.5rem;
    gap: 0;
}

.menu-item {
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1.2rem;
    color: #c0c8d8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.menu-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
    border-bottom-color: #4a90d9;
}

.menu-link i.fa-chevron-down {
    font-size: 0.65rem;
    margin-left: 0.2rem;
    transition: transform 0.2s;
}

.menu-item.dropdown:hover .menu-link i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #0f1f3a;
    border: 1px solid #1a2a4a;
    border-radius: 0 0 8px 8px;
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    padding: 0.4rem 0;
    z-index: 1000;
}

.menu-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #c0c8d8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.15s;
}

.dropdown-menu a:hover {
    background: rgba(74, 144, 217, 0.15);
    color: #fff;
}

.dropdown-divider {
    border: none;
    border-top: 1px solid #1a2a4a;
    margin: 0.3rem 0;
}

/* Responsivo: em telas pequenas, menu vira scroll horizontal */
@media (max-width: 768px) {
    .menu-list {
        padding: 0 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .menu-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .dropdown-menu {
        min-width: 200px;
    }
}




/* ==================== RODAPÉ ==================== */
.site-footer {
    background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 100%);
    color: #c8d6e5;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 3rem;
    border-top: 3px solid #2563eb;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer-bottom {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.footer-made-with {
    color: #94a3b8;
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Cursos inline nas questoes */
.cursos-inline-wrapper {
    position: relative;
    display: inline-block;
}
.cursos-inline-link {
    color: #2563eb;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0;
    transition: color 0.2s;
}
.cursos-inline-link:hover {
    color: #1d4ed8;
}
.cursos-inline-link i.fa-chevron-down {
    font-size: 0.6rem;
    transition: transform 0.2s;
}
.cursos-inline-wrapper.open .cursos-inline-link i.fa-chevron-down {
    transform: rotate(180deg);
}
.cursos-inline-wrapper.open .dropdown-menu.cursos-inline-dropdown {
    display: block;
}
.cursos-inline-dropdown {
    left: 0;
    top: 100%;
    min-width: 230px;
    margin-top: 6px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.08);
}
.cursos-inline-dropdown li a {
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}
.cursos-inline-dropdown li a:hover {
    background: rgba(255,255,255,0.08);
}
/* Spinner para botoes de login/cadastro */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}


/* ==================== LOADING SCREEN ==================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-logo {
    width: 120px;
    height: auto;
    animation: pulse-logo 1.5s ease-in-out infinite;
}

@keyframes pulse-logo {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.85; }
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top: 4px solid #6c63ff;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    font-family: 'Inter', sans-serif;
    animation: fade-subtext 2s ease-in-out infinite;
}

@keyframes fade-subtext {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
