:root {
    /* Paleta Moderna - Dark & Red */
    --bg-color: #09090b; 
    --panel-bg: #18181b; 
    --panel-hover: #27272a;
    --text-main: #f4f4f5; 
    --text-muted: #a1a1aa;
    
    /* Cores de Ação */
    --accent-red: #e11d48; 
    --accent-red-hover: #be123c;
    --border-color: #3f3f46;
    
    /* Cores de Feedback */
    --correct-color: #10b981; 
    --error-color: #ef4444; 
    
    /* Fontes */
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Efeito sutil de tela de monitor */
.scanlines {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none; z-index: 9999;
}

/* Utilitários */
.container { max-width: 1000px; margin: 0 auto; padding: 2rem; position: relative; z-index: 10; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.hidden { display: none !important; }
.relative-z { position: relative; z-index: 10; }

h1, h2, h3, h4 { color: #fff; margin-bottom: 1rem; font-weight: 800; letter-spacing: -0.5px; }
.section-title { font-size: 2.2rem; margin-bottom: 0.5rem; text-transform: uppercase; font-family: var(--font-sans); }
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 3rem; }

/* --- Navbar Moderna --- */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(63, 63, 70, 0.5);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; color: #fff;}
.red-dot {
    display: inline-block; width: 8px; height: 8px; background-color: var(--accent-red);
    border-radius: 50%; margin-right: 8px; box-shadow: 0 0 8px var(--accent-red);
    animation: pulse 2s infinite;
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-link:hover { color: var(--text-main); }

/* --- Título com brilho --- */
.glitch { font-size: 4.5rem; color: var(--text-main); text-shadow: 0 0 20px rgba(225, 29, 72, 0.6); margin-bottom: 1rem; line-height: 1.1;}
.subtitle { color: var(--text-muted); font-size: 1.2rem; font-weight: 400; max-width: 600px; margin: 0 auto 2rem auto; }

/* --- Hero Section --- */
.hero { padding: 10rem 0 4rem 0; position: relative; }
.hero-bg-glow {
    position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(225,29,72,0.15) 0%, rgba(9,9,11,0) 70%);
    pointer-events: none; z-index: 0;
}
.hero-badge {
    display: inline-block; background: rgba(225, 29, 72, 0.1); border: 1px solid var(--accent-red);
    color: var(--accent-red); padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.85rem;
    font-weight: 600; font-family: var(--font-mono); margin-bottom: 1.5rem; text-transform: uppercase;
}
.hero-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }

/* --- Botões --- */
.btn {
    display: inline-flex; justify-content: center; align-items: center;
    padding: 0.8rem 1.8rem; border: none; border-radius: 4px; 
    cursor: pointer; font-weight: 600; font-size: 1rem;
    transition: all 0.3s ease; text-decoration: none;
    font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary { 
    background: linear-gradient(135deg, var(--accent-red), #9f1239); color: #fff;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4); border: 1px solid #fda4af;
}
.btn-primary:hover:not(:disabled) { 
    transform: translateY(-2px); box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6);
    background: linear-gradient(135deg, var(--accent-red-hover), #881337);
}
.btn-outline { background: rgba(24, 24, 27, 0.5); border: 1px solid var(--border-color); color: var(--text-main); }
.btn-outline:hover:not(:disabled) { border-color: var(--text-main); background: var(--panel-hover); }
.btn-small { padding: 0.4rem 1rem; font-size: 0.8rem; border: 1px solid var(--border-color); color: var(--text-main); }
.btn-small:hover { border-color: var(--accent-red); color: #fff; }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-full { width: 100%; margin-top: 1.5rem; padding: 1rem; font-size: 1rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* --- Seções (Features e Pricing) --- */
.features, .pricing { margin-top: 3rem; padding: 4rem 0; }
.features-grid { display: grid; gap: 1.5rem; margin-top: 3rem; }
@media(min-width: 768px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    background: linear-gradient(180deg, rgba(24,24,27,1) 0%, rgba(9,9,11,1) 100%);
    padding: 2.5rem 1.5rem; border-radius: 8px; border: 1px solid var(--border-color);
    transition: transform 0.3s, border-color 0.3s;
}
.feature-card:hover { border-color: var(--accent-red); transform: translateY(-5px); }
.feature-icon { font-size: 3rem; margin-bottom: 1.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Tabela de Preços (Pricing) --- */
.pricing-cards { display: grid; gap: 2rem; max-width: 800px; margin: 0 auto; }
@media(min-width: 768px) {
    .pricing-cards { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
}

.pricing-card {
    background: var(--panel-bg); padding: 3rem 2rem; border-radius: 8px; 
    border: 1px solid var(--border-color); display: flex; flex-direction: column;
    position: relative; transition: all 0.3s ease;
}
.pricing-card:hover { border-color: #52525b; }
.card-header { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); }
.card-header h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.price { font-size: 2.5rem; font-weight: 800; color: #fff; margin: 0; }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.plan-desc { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }

.plan-features { list-style: none; margin-bottom: 2rem; flex-grow: 1; }
.plan-features li { margin-bottom: 1rem; color: var(--text-main); font-size: 0.95rem; display: flex; align-items: flex-start; gap: 10px; }
.plan-features li.disabled { color: var(--text-muted); text-decoration: line-through; opacity: 0.6; }
.check { color: var(--correct-color); font-weight: bold; }
.cross { color: var(--error-color); font-weight: bold; }

.premium-card {
    border-color: var(--accent-red);
    background: linear-gradient(180deg, rgba(24,24,27,1) 0%, rgba(225,29,72,0.05) 100%);
    box-shadow: 0 0 30px rgba(225, 29, 72, 0.15);
    transform: scale(1.02);
}
@media(max-width: 768px) { .premium-card { transform: scale(1); } }
.premium-card:hover { border-color: var(--accent-red-hover); box-shadow: 0 0 40px rgba(225, 29, 72, 0.25); }
.popular-ribbon {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--accent-red); color: white; padding: 0.3rem 1.2rem;
    font-size: 0.75rem; font-weight: 800; border-radius: 20px; font-family: var(--font-mono);
    letter-spacing: 1px; box-shadow: 0 4px 10px rgba(225,29,72,0.4);
}
.premium-card .badge { position: absolute; top: 20px; right: 20px; background: rgba(225, 29, 72, 0.2); color: var(--accent-red); padding: 0.2rem 0.6rem; font-size: 0.75rem; border-radius: 4px; font-weight: bold; border: 1px solid var(--accent-red);}

/* Rodapé */
.main-footer { padding: 2rem; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.9rem; margin-top: 4rem; }

/* =========================================
   ESTILOS DO JOGO E DASHBOARD
   ========================================= */

.game-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; }
.game-container { width: 100%; max-width: 800px; display: flex; flex-direction: column; gap: 1rem; position: relative; z-index: 10;}
.game-header { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); border-bottom: 1px solid var(--border-color); padding-bottom: 0.8rem; }

.panel { background: var(--panel-bg); padding: 2rem; border-radius: 6px; border: 1px solid var(--border-color); }
.story-panel { font-family: var(--font-mono); font-size: 1.05rem; border-left: 4px solid var(--accent-red); background: linear-gradient(90deg, rgba(225,29,72,0.05) 0%, rgba(24,24,27,1) 10%); }
#question-text { font-size: 1.2rem; margin-bottom: 1.5rem; color: #fff; }

.options-grid { display: flex; flex-direction: column; gap: 0.8rem; }
.option-btn { background: var(--bg-color); color: var(--text-main); border: 1px solid var(--border-color); padding: 1.2rem; border-radius: 4px; text-align: left; cursor: pointer; transition: all 0.2s ease; font-size: 1rem; font-family: var(--font-sans); position: relative; overflow: hidden; }
.option-btn::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: transparent; transition: background 0.2s; }
.option-btn:hover:not(:disabled) { border-color: var(--text-muted); background: var(--panel-hover); }
.option-btn:hover:not(:disabled)::before { background: var(--accent-red); }
.option-btn:disabled { cursor: not-allowed; opacity: 0.8; }
.option-btn.correct { border-color: var(--correct-color); background: rgba(16, 185, 129, 0.1); }
.option-btn.correct::before { background: var(--correct-color); }
.option-btn.wrong { border-color: var(--error-color); background: rgba(239, 68, 68, 0.1); }
.option-btn.wrong::before { background: var(--error-color); }

.result-message { font-size: 1.3rem; font-weight: 800; margin-bottom: 1.5rem; text-align: center; text-transform: uppercase; letter-spacing: 1px;}
.result-message.success { color: var(--correct-color); text-shadow: 0 0 10px rgba(16,185,129,0.3); }
.result-message.error { color: var(--error-color); text-shadow: 0 0 10px rgba(239,68,68,0.3); }

.accordion-container h4 { font-size: 1rem; color: var(--text-muted); text-transform: uppercase; font-family: var(--font-mono); margin-bottom: 1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem;}
.icon-book { color: var(--accent-red); margin-right: 5px; }
details { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 4px; margin-bottom: 0.8rem; overflow: hidden; }
summary { padding: 1rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; transition: background 0.2s; }
summary:hover { background: var(--panel-hover); }
summary::-webkit-details-marker { display: none; }
summary::after { content: '▼'; font-size: 0.8rem; color: var(--accent-red); transition: transform 0.3s;}
details[open] summary::after { transform: rotate(180deg); }
.details-content { padding: 1.5rem; border-top: 1px solid var(--border-color); font-size: 0.95rem; color: var(--text-muted); background: #111113; line-height: 1.8; }
.details-content strong { color: var(--text-main); }

.dashboard-body { overflow-x: hidden; }
.dashboard-layout { display: flex; min-height: 100vh; position: relative; z-index: 10; }
.sidebar { width: 280px; background: var(--panel-bg); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; padding: 2rem 1.5rem; position: sticky; top: 0; height: 100vh; }
.sidebar-header { margin-bottom: 3rem; }
.brand-title { font-size: 1.5rem; color: var(--text-main); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.5rem; text-shadow: 0 0 10px rgba(225, 29, 72, 0.3); }
.user-info { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-red); }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.5rem; flex-grow: 1; }
.nav-item { padding: 1rem; color: var(--text-muted); text-decoration: none; font-weight: 600; border-radius: 4px; transition: all 0.2s ease; border-left: 3px solid transparent; }
.nav-item:hover { background: var(--panel-hover); color: var(--text-main); }
.nav-item.active { background: linear-gradient(90deg, rgba(225,29,72,0.1) 0%, transparent 100%); color: var(--text-main); border-left-color: var(--accent-red); }
.sidebar-footer { margin-top: auto; }

.main-content { flex-grow: 1; padding: 3rem 4rem; max-width: 1200px; overflow-y: auto; }
.content-header { margin-bottom: 3rem; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
.case-tier { margin-bottom: 4rem; }
.tier-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.tier-badge { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.6rem; border-radius: 4px; letter-spacing: 1px; }
.tier-badge.easy { background: rgba(16, 185, 129, 0.2); color: var(--correct-color); border: 1px solid var(--correct-color); }
.tier-badge.medium { background: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid #facc15; }
.tier-badge.hard { background: rgba(239, 68, 68, 0.2); color: var(--error-color); border: 1px solid var(--error-color); }

/* =========================================
   CARROSSEL DE DOSSIÊS 
   ========================================= */
.case-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-top: 15px; 
    padding-right: 1.5rem; 
    padding-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.case-carousel::-webkit-scrollbar { height: 8px; }
.case-carousel::-webkit-scrollbar-track { background: var(--panel-bg); border-radius: 4px; }
.case-carousel::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
.case-carousel::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

.case-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
    flex: 0 0 auto;
    width: 300px;
    scroll-snap-align: start;
}

.case-card:hover:not(.locked) { border-color: var(--text-muted); transform: translateY(-3px); }
.card-status { position: absolute; top: -12px; right: 15px; background: var(--border-color); color: var(--text-muted); font-size: 0.7rem; font-weight: 800; padding: 0.2rem 0.6rem; border-radius: 4px; font-family: var(--font-mono); z-index: 2; }
.status-new { background: var(--correct-color); color: white; }

.case-card h4 { 
    margin-top: 0.5rem; font-size: 1.2rem; color: var(--text-main); line-height: 1.4; height: 2.8em; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.case-badge-row { margin-bottom: 1rem; margin-top: 0.5rem; }
.q-badge { display: inline-block; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: var(--text-main); padding: 0.3rem 0.6rem; border-radius: 4px; font-family: var(--font-mono); font-size: 0.75rem; font-weight: bold; }
.ler-mais-btn { background: none; border: none; color: var(--text-main); font-family: var(--font-sans); font-weight: 800; font-size: 0.9rem; text-decoration: underline; cursor: pointer; padding: 0; margin-left: 5px; transition: color 0.2s; }
.ler-mais-btn:hover { color: var(--accent-red); }

.case-synopsis { color: var(--text-muted); font-size: 0.9rem; flex-grow: 1; margin-bottom: 1.5rem; }
.case-meta { display: flex; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid var(--border-color); padding-top: 1rem; margin-bottom: 1.5rem; }

.case-card.locked { opacity: 0.7; background: #0f0f11; border-color: #27272a; }
.case-card.locked .card-status { background: var(--accent-red); color: white; }

/* =========================================
   STATUS E CORREGEDORIA
   ========================================= */
.status-bar { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); background: rgba(225, 29, 72, 0.1); padding: 0.3rem 0.8rem; border-radius: 4px; border: 1px solid var(--accent-red); }
.credibility-label { font-size: 0.8rem; font-weight: bold; color: var(--text-main); }
.lives-text { letter-spacing: 2px; font-size: 1rem; text-shadow: 0 0 5px rgba(255,215,0,0.5); }
.corregedoria-panel { border-color: var(--accent-red); box-shadow: 0 0 30px rgba(225, 29, 72, 0.2); animation: alertBorder 2s infinite alternate; }
@keyframes alertBorder { from { box-shadow: 0 0 10px rgba(225, 29, 72, 0.1); border-color: var(--border-color); } to { box-shadow: 0 0 30px rgba(225, 29, 72, 0.4); border-color: var(--accent-red); } }
.corregedoria-header { text-align: center; margin-bottom: 2rem; border-bottom: 1px dashed var(--accent-red); padding-bottom: 1rem; }
.corregedoria-header h2 { color: var(--accent-red); font-family: var(--font-mono); font-size: 1.8rem; letter-spacing: -1px; text-shadow: 0 0 10px rgba(225, 29, 72, 0.5); }
.corregedoria-header p { color: var(--text-muted); font-size: 0.95rem; }
.corregedoria-stats { margin-top: 1rem; font-size: 1.2rem; font-weight: bold; font-family: var(--font-mono); color: var(--text-main); }
.corr-question { font-size: 1.25rem; color: #fff; margin-bottom: 1.5rem; border-left: 4px solid var(--accent-red); padding-left: 1rem; background: rgba(225, 29, 72, 0.05); padding: 1rem; border-radius: 0 4px 4px 0;}
.corr-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.true-btn:hover:not(:disabled)::before { background: var(--correct-color); }
.false-btn:hover:not(:disabled)::before { background: var(--error-color); }
#corr-justification { margin-bottom: 1.5rem; border-radius: 4px; font-size: 1rem;}
.corr-loader { text-align: center; padding: 3rem 0; color: var(--accent-red); font-family: var(--font-mono); font-weight: bold;}
.spinner { width: 40px; height: 40px; margin: 0 auto 1rem auto; border: 4px solid rgba(225, 29, 72, 0.2); border-top-color: var(--accent-red); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.option-btn.disabled-wrong { opacity: 0.5; filter: grayscale(1); }

/* =========================================
   RESPONSIVIDADE GERAL (TABLET & MOBILE)
   ========================================= */
@media (max-width: 900px) {
    .dashboard-layout { flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: relative; border-right: none; border-bottom: 1px solid var(--border-color); padding: 1.5rem; }
    .main-content { padding: 2rem 1.5rem; }
}
@media (max-width: 768px) {
    .container { padding: 1.5rem; }
    .glitch { font-size: 2.8rem; }
    .subtitle { font-size: 1rem; }
    .hero { padding: 8rem 0 2rem 0; }
    .hero-actions { flex-direction: column; }
    .nav-links { display: none; }
    .game-header { flex-direction: column; gap: 1rem; text-align: center; }
    .status-bar { width: 100%; justify-content: center; }
    .panel { padding: 1.5rem; }
    .story-panel { font-size: 1rem; }
    #question-text { font-size: 1.1rem; }
    .corr-options { grid-template-columns: 1fr; }
    .btn { padding: 0.8rem 1.2rem; font-size: 0.9rem; }
    .pricing-cards { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .container { padding: 1rem; }
    .glitch { font-size: 2.2rem; }
    .hero-badge { font-size: 0.7rem; white-space: normal; }
    .panel { padding: 1.2rem; }
    .option-btn { padding: 1rem; font-size: 0.9rem; }
    .result-message { font-size: 1.1rem; }
    .corregedoria-header h2 { font-size: 1.5rem; }
    .corr-question { font-size: 1.1rem; padding: 0.8rem; }
}

/* =========================================
   SISTEMA DE FLASHCARDS (REVISÃO TÁTICA)
   ========================================= */
.flashcard-container { perspective: 1000px; width: 100%; max-width: 700px; margin: 0 auto 2rem auto; height: 450px; cursor: pointer; }
.flashcard { width: 100%; height: 100%; transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1); transform-style: preserve-3d; position: relative; }
.flashcard.flipped { transform: rotateY(180deg); }
.flashcard-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 8px; padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; border: 1px solid var(--border-color); background: var(--panel-bg); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.flashcard-front { background: linear-gradient(180deg, var(--panel-bg) 0%, rgba(9,9,11,1) 100%); }
.flashcard-back { transform: rotateY(180deg); background: linear-gradient(180deg, var(--panel-bg) 0%, rgba(16, 185, 129, 0.05) 100%); border-color: var(--correct-color); }
.card-badge { position: absolute; top: 20px; left: 20px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); background: var(--bg-color); padding: 0.3rem 0.8rem; border-radius: 20px; border: 1px solid var(--border-color); }
.success-badge { color: var(--correct-color); border-color: var(--correct-color); }
.click-hint { position: absolute; bottom: 20px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); opacity: 0.7; animation: pulse 2s infinite; }
.correct-answer { font-size: 1.1rem; color: var(--text-main); font-weight: bold; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); width: 100%; }
.justification-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; overflow-y: auto; max-height: 200px; padding-right: 10px; }
.justification-text::-webkit-scrollbar { width: 5px; }
.justification-text::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 5px; }
.flashcard-controls { display: flex; justify-content: center; gap: 1rem; margin-bottom: 4rem; }
@media (max-width: 768px) { .flashcard-container { height: 500px; } .flashcard-face { padding: 1.5rem; } }

/* =========================================
   SISTEMA DE PERFIL (FICHA OPERACIONAL)
   ========================================= */
.mt-4 { margin-top: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.profile-header-card { display: flex; align-items: center; gap: 2rem; background: linear-gradient(90deg, var(--panel-bg) 0%, rgba(225,29,72,0.05) 100%); }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--bg-color); border: 2px solid var(--accent-red); display: flex; justify-content: center; align-items: center; font-size: 3rem; font-family: var(--font-mono); color: var(--accent-red); box-shadow: 0 0 20px rgba(225, 29, 72, 0.2); }
.profile-details h2 { margin-bottom: 0.2rem; font-size: 1.8rem; }
.profile-badges { display: flex; gap: 0.5rem; margin-top: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.stat-card { background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 1.5rem; text-align: center; transition: transform 0.2s; }
.stat-card:hover { transform: translateY(-3px); border-color: var(--text-muted); }
.stat-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.stat-value { font-size: 2.5rem; font-weight: 800; color: #fff; font-family: var(--font-mono); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; }
.subscription-panel { display: flex; justify-content: space-between; align-items: center; border-color: var(--accent-red); background: rgba(225, 29, 72, 0.02); }
.upgrade-pulse { animation: shadowPulse 2s infinite; }
@keyframes shadowPulse { 0% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(225, 29, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); } }

@media (max-width: 768px) {
    .profile-header-card { flex-direction: column; text-align: center; gap: 1rem; }
    .profile-badges { justify-content: center; }
    .subscription-panel { flex-direction: column; text-align: center; gap: 1.5rem; }
    .sub-action { width: 100%; }
    .sub-action .btn { width: 100%; }
}

/* =========================================
   SISTEMA DE RANKING (LEADERBOARD)
   ========================================= */
.ranking-panel { padding: 1rem; }
.table-responsive { overflow-x: auto; width: 100%; }
.ranking-table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); min-width: 600px; }
.ranking-table th { text-align: left; padding: 1.2rem 1rem; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.85rem; text-transform: uppercase; border-bottom: 2px solid var(--border-color); }
.ranking-table td { padding: 1.2rem 1rem; border-bottom: 1px solid rgba(63, 63, 70, 0.3); color: var(--text-main); }
.ranking-table tbody tr { transition: background 0.2s; }
.ranking-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.ranking-table tbody tr:nth-child(1) { background: linear-gradient(90deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%); }
.ranking-table tbody tr:nth-child(2) { background: linear-gradient(90deg, rgba(192, 192, 192, 0.05) 0%, transparent 100%); }
.ranking-table tbody tr:nth-child(3) { background: linear-gradient(90deg, rgba(205, 127, 50, 0.05) 0%, transparent 100%); }
.current-user-row { background: linear-gradient(90deg, rgba(225, 29, 72, 0.1) 0%, transparent 100%) !important; border-left: 3px solid var(--accent-red); }
.pos-cell { font-family: var(--font-mono); font-weight: bold; font-size: 1.1rem; }
.name-cell { font-weight: 600; font-size: 1.05rem; }
.value-cell { font-family: var(--font-mono); font-weight: bold; color: var(--accent-red); font-size: 1.2rem; }
.you-tag { font-size: 0.7rem; color: var(--accent-red); margin-left: 8px; vertical-align: middle; }

/* =========================================
   SKELETON / SHIMMER LOADING (NOVO)
   ========================================= */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.skeleton {
    background: #27272a;
    background-image: linear-gradient(90deg, #27272a 0px, #3f3f46 40px, #27272a 80px);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    color: transparent !important;
    border-color: transparent !important;
    pointer-events: none;
    user-select: none;
}

.skeleton-text { border-radius: 4px; display: inline-block; min-height: 1.2em; min-width: 150px; }
.skeleton-badge { border-radius: 4px; min-width: 90px; min-height: 24px; }
.skeleton-btn { border-radius: 4px; min-width: 250px; min-height: 50px; }

/* =========================================
   TUTORIAL / COMO FUNCIONA (INDEX)
   ========================================= */
.tutorial-section {
    padding: 6rem 0;
    position: relative;
}

.tutorial-steps {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 800px;
    margin: 3rem auto 0 auto;
    text-align: left;
}

.step-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-red);
    border-radius: 6px;
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateX(10px);
    border-color: #52525b;
}

.step-number {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    background: var(--accent-red);
    color: white;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.4);
}

.step-card h3 {
    color: var(--text-main);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

@media (min-width: 768px) {
    .tutorial-steps {
        padding-left: 2rem;
    }
}

/* =========================================
   INDICADOR DE ROLAGEM (SETA MOBILE)
   ========================================= */
.scroll-indicator {
    display: none; /* Escondido no PC */
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    margin: 3rem auto 0 auto;
    color: var(--accent-red);
    animation: scrollPulse 1.5s infinite; /* Efeito de piscar e descer */
    transition: color 0.3s;
}

@keyframes scrollPulse {
    0% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.2; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Regra para mostrar APENAS em telas menores (Celulares e Tablets) */
@media (max-width: 768px) {
    .scroll-indicator {
        display: flex;
    }
}

/* =========================================
   STATUS DE CASO CONCLUÍDO (DASHBOARD)
   ========================================= */
.status-completed { 
    background: rgba(16, 185, 129, 0.1); 
    color: var(--correct-color); 
    border: 1px solid var(--correct-color); 
}
.completed-card {
    border-color: rgba(16, 185, 129, 0.4);
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(16, 185, 129, 0.02) 100%);
}
.completed-card h4 {
    color: var(--correct-color);
}

#card-question {
    max-height: 300px; /* Ou o tamanho que você preferir */
    overflow-y: auto;
    padding-right: 10px;
}