/**
 * ===================================
 * ESTILOS PRINCIPAIS — Abyss 2.0
 * ===================================
 * Tema “refinado”: escuro sóbrio, azul como destaque, sem neon nem brilhos.
 */

:root {
    --bg-deep: #0a0b0e;
    --surface: #12141a;
    --surface-2: #181b23;
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);
    --text: #e8eaef;
    --text-heading: #f5f6f8;
    --text-muted: #8e95a3;
    --primary: #5b8cff;
    --primary-hover: #7aa3ff;
    --primary-dark: #4169e1;
    --primary-rgb: 91, 140, 255;
    --secondary: #64748b;
    --accent: #a8c4ff;
    --accent2: #6366f1;
    --dark: #0a0b0e;
    --darker: #060708;
    --light: #e8eaef;
    --gray: #8e95a3;
    --error: #f87171;
    --success: #4ade80;
    --warning: #facc15;
    --info: #38bdf8;
    --bg-gradient: var(--bg-deep);
    --header-gradient: rgba(10, 11, 14, 0.92);
    --footer-gradient: #0a0b0e;
    --card-gradient: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
    --border-radius: 14px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.38);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
    --neon-glow: var(--shadow-sm);
    --shadow-glow: 0 12px 36px rgba(91, 140, 255, 0.12);
    --transition: 0.2s ease;
    --transition-normal: 0.2s ease;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
}

/* =========================
   RESET E ESTILOS GLOBAIS
   ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-weight: 600;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    text-shadow: none;
}

a {
    color: var(--primary);
    transition: color var(--transition);
    text-decoration: none;
}
a:hover {
    color: var(--primary-hover);
    text-shadow: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================
   UTILITÁRIOS
   ========================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* HEADER: .main-header completo no bloco fixo abaixo (~linha 960) */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    gap: 1.5rem;
    position: relative;
    min-height: 90px;
}

/* Centralizar o menu principal */
.main-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: auto;
    min-width: 400px;
}

.logo {
    position: relative;
    z-index: 5;
    width: auto;
}

.logo img {
    height: 45px !important;
    max-height: 45px !important;
    width: auto;
    filter: none;
    transition: transform var(--transition), height var(--transition);
}
.logo img:hover {
    transform: scale(1.02);
}
@media (max-width: 900px) {
    .logo img {
        height: 36px !important;
        max-height: 36px !important;
    }
}

/* NAV */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    transition: color var(--transition), background var(--transition);
    position: relative;
    text-shadow: none;
}
.main-nav a:hover, .main-nav a:focus {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-heading);
    text-shadow: none;
    box-shadow: none;
    transform: none;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
    box-shadow: none;
    border-radius: 1px;
}

.main-nav a:hover::after {
    width: 100%;
}

/* BOTÕES */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
}

/* BOTÕES TOP RIGHT */
.auth-buttons-top-right {
    position: absolute;
    top: 1rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface);
    padding: 0.45rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.user-name {
    color: var(--text-heading);
    font-weight: 600;
    font-size: 1rem;
    text-shadow: none;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    padding: 0;
    border-radius: 0;
    animation: none;
}

.user-name i {
    color: var(--primary);
    text-shadow: none;
    margin-right: 0.5rem;
}

.btn, .btn-primary, .btn-secondary {
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.65rem 1.5rem;
    border: 1px solid transparent;
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    animation: none;
}
.btn:hover, .btn-primary:hover, .btn-secondary:hover {
    background: var(--primary-hover);
    color: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.btn-login {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}
.btn-login:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-heading);
    border-color: var(--primary);
}
.btn-register {
    background: var(--primary);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-register:hover {
    background: var(--primary-hover);
    color: #fff;
}
.btn-logout {
    background: linear-gradient(135deg, #334155, #475569);
    color: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.45);
    text-shadow: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    animation: none;
}
.btn-logout:hover {
    background: linear-gradient(135deg, #475569, #64748b);
    color: #fff;
    border-color: rgba(148, 163, 184, 0.7);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transform: translateY(-1px);
}

/* MENU MOBILE */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    text-shadow: none;
    transition: color var(--transition);
}

.mobile-menu-toggle:hover {
    color: var(--text-heading);
    text-shadow: none;
    transform: none;
}

/* SISTEMA DE ALERTAS */
.alerts-container {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 90%;
    max-width: 600px;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease;
    box-shadow: var(--shadow-md);
}

.alert-success {
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 56, 96, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-info {
    background: rgba(26, 26, 26, 0.1);
    border: 1px solid var(--info);
    color: var(--info);
}

.alert-warning {
    background: rgba(255, 221, 87, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}

.alert-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(8, 9, 12, 0.88) 0%, rgba(10, 11, 14, 0.82) 100%),
                url('../images/background-main.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    margin-top: 90px;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
    line-height: 1.15;
    text-shadow: none;
    filter: none;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-title span {
    display: inline-block;
    animation: none;
    color: var(--primary);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    text-shadow: none;
    filter: none;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.8rem 1.75rem;
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
    padding: 0.8rem 1.75rem;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-heading);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* TOAST NOTIFICATIONS */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    background: rgba(15, 15, 26, 0.95);
    border: 1px solid;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateX(400px);
    transition: transform var(--transition-normal);
    z-index: 1001;
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-color: var(--success);
    color: var(--success);
}

.toast-error {
    border-color: var(--error);
    color: var(--error);
}

.toast-info {
    border-color: var(--info);
    color: var(--info);
}

/* RODAPÉ */
.main-footer {
    background: var(--footer-gradient);
    color: var(--text);
    border-top: 1px solid var(--border);
    box-shadow: none;
    padding: 0.75rem 1rem 0.25rem;
    margin-top: 1.25rem;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
}
.footer-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1.5rem !important;
    text-align: left;
}
.footer-logo {
    height: 80px;
    margin-bottom: 1rem;
    filter: none;
}

.footer-slogan {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

/* Download Section - Corrigido */
.download-section {
    margin-top: 0 !important;
    width: 100%;
    display: flex;
    justify-content: center;
}

.download-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all var(--transition-normal);
}

.drive-icon {
    width: 50px;
    height: 50px;
    transition: transform var(--transition-normal);
    filter: none;
    opacity: 0.95;
}

.download-link:hover .drive-icon {
    transform: scale(1.06);
    filter: none;
}

.pulsing-download {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: none;
    letter-spacing: 0.02em;
    font-family: inherit;
    text-shadow: none;
    animation: none;
}

/* Game Preview - Corrigido */
.game-preview {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-preview img {
    max-width: 70%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform var(--transition-normal);
}

.game-preview:hover img {
    transform: scale(1.02);
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color var(--transition-normal);
    text-shadow: none;
}

.social-links a:hover {
    color: var(--primary);
    text-shadow: none;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.quick-links a {
    color: var(--primary);
    transition: color var(--transition-normal);
}

.quick-links a:hover {
    color: var(--accent2);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    color: var(--gray);
    font-size: 0.9rem;
    text-shadow: none;
}

/* ANIMAÇÕES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.core-data,
.race-btn,
.hero-selection-bar .hero-btn {
    animation: none;
}

/* SCROLLBAR COLORIDA */
::-webkit-scrollbar {
    width: 10px;
    background: var(--dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* RESPONSIVO */
@media (max-width: 900px) {
    .core-data {
        flex-direction: column;
        align-items: flex-start;
    }
    .core-photo img {
        width: 48px;
        height: 48px;
    }
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 1rem;
    }
    .auth-buttons {
        justify-content: center;
        margin-top: 0.5rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0.5rem 0;
    }
    .header-container {
        flex-wrap: wrap;
        padding: 1rem;
        justify-content: space-between;
        align-items: center;
    }
    .main-nav {
        position: static;
        transform: none;
        left: auto;
        width: auto;
        min-width: auto;
    }
    .logo {
        position: static;
        left: auto;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    .auth-buttons {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    .auth-buttons-top-right {
        position: relative;
        top: auto;
        right: auto;
        justify-content: center;
        width: 100%;
        margin-top: 1rem;
    }
    .user-menu {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    .mobile-menu-toggle {
        order: 3;
        margin-left: auto;
    }
    .hero-title {
        font-size: 2.5rem;
        text-shadow: none;
        -webkit-text-stroke: 0;
        text-stroke: 0;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .alerts-container {
        width: 95%;
        top: 70px;
    }
    .toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }
}

/* =========================
   CLASSES ESPECIAIS HERO
   ========================= */
.stat-changed {
    background: rgba(var(--primary-rgb), 0.1) !important;
    border-color: var(--primary) !important;
}

.save-success {
    animation: successPulse 0.5s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); box-shadow: var(--shadow-md); }
    100% { transform: scale(1); }
}

/* REMOVIDO: Estilo antigo do dashboard substituído pelo novo layout em caixas */
.features{
    text-align: center;
    color: var(--primary);
}
.cta-section{
    text-align: center;
    color: var(--primary);
}

/* Estilo para alinhar a seção de fórmulas ao cabeçalho */
#formulas-filter, #formulas {
    margin-top: 150px;
}

/* Estilo para os botões de raça */
.mixlist-race {
    display: flex;
    gap: 18px;
    margin-bottom: 24px;
    justify-content: center;
}
.race-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-radius: 50%;
    padding: 8px;
    min-width: 56px;
    min-height: 56px;
    transition: box-shadow var(--transition), border-color var(--transition), background var(--transition);
}
.race-btn.selected, .race-btn:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.35);
    background: var(--surface-2);
}
.race-btn img {
    width: 44px;
    height: 44px;
    filter: none;
}
.race-btn:empty::after {
    content: '❓';
    color: #fff;
    font-size: 1.5em;
}

/* Estilo para cápsula de filtro */
.filter-capsule {
    display: flex;
    align-items: center;
    background: var(--surface-2);
    color: var(--text-heading);
    border: 1px solid var(--border);
    border-radius: 18px;
    font-weight: 600;
    box-shadow: none;
    padding: 4px 12px;
    margin-top: 8px;
    font-size: 0.95em;
}
.filter-capsule i {
    margin-right: 6px;
    cursor: pointer;
    color: var(--accent);
}

/* Estilo para cada core-data */
.core-data {
    display: flex;
    background: var(--card-gradient);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius);
    color: var(--text);
    margin-bottom: 2rem;
    padding: 2rem 1.5rem;
    transition: box-shadow var(--transition), border-color var(--transition);
    gap: 16px;
}
.core-data:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}
.core-data h1 {
    font-size: 1.5em;
    margin-bottom: 8px;
}
.core-data h2 {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: var(--primary);
}
.core-photo img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: #111;
    border: 1px solid #333;
}
.core-info > div {
    margin-bottom: 6px;
}

/* Responsividade */
@media (max-width: 900px) {
    .core-data {
        flex-direction: column;
        align-items: flex-start;
    }
    .core-photo img {
        width: 48px;
        height: 48px;
    }
}

/* =========================
   CORREÇÕES DE SOBREPOSIÇÃO E RESPONSIVIDADE
   ========================= */

/* HEADER FIXO E RESPONSIVO */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--header-gradient);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
    height: auto;
    min-height: 80px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* HERO SECTION CORRIGIDA */
.hero {
    min-height: 100vh;
    background: linear-gradient(180deg, rgba(8, 9, 12, 0.9) 0%, rgba(10, 11, 14, 0.86) 100%),
                url('../images/background-main.png') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 2rem 2rem 2rem; /* Padding top aumentado para compensar header fixo */
    position: relative;
    margin-top: 0; /* Removido margin-top */
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeInUp 1s ease;
    width: 100%;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--text-heading);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem); /* Responsivo */
    color: var(--gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

/* FEATURES SECTION CORRIGIDA */
.features {
    padding: 4rem 2rem;
    background: var(--darker);
    margin-top: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-gradient);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* CTA SECTION CORRIGIDA */
.cta-section {
    padding: 4rem 2rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
    margin-top: 0;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-heading);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* RESPONSIVIDADE MELHORADA */
@media (max-width: 1024px) {
    .header-container {
        padding: 1rem;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .hero {
        padding: 100px 1rem 2rem 1rem;
    }
}

@media (max-width: 768px) {
    .main-header {
        min-height: 70px;
    }
    
    .header-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .main-nav a {
        padding: 0.5rem 1rem;
        display: block;
    }
    
    .auth-buttons {
        justify-content: center;
        margin-top: 0.5rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .hero {
        padding: 90px 1rem 2rem 1rem;
        min-height: 90vh;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 2rem auto 0;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
    }
    
    .features {
        padding: 3rem 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 3rem 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-brand {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }
    
    .game-preview img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        text-shadow: none;
        -webkit-text-stroke: 0;
        text-stroke: 0;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* CORREÇÕES ESPECÍFICAS PARA FORMULAS */
.formulas-container {
    margin-top: 100px; /* Reduzido para compensar header fixo */
    padding: 20px;
}

/* REMOVIDO: Estilo duplicado do dashboard - já implementado acima */

/* CORREÇÕES PARA ALERTAS */
.alerts-container {
    position: fixed;
    top: 90px; /* Ajustado para header fixo */
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 90%;
    max-width: 600px;
}

@media (max-width: 768px) {
    .alerts-container {
        width: 95%;
        top: 80px; /* Ajustado para mobile */
    }
}

/* CORREÇÕES PARA TOAST */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1001;
}

@media (max-width: 768px) {
    .toast {
        right: 1rem;
        left: 1rem;
        bottom: 1rem;
    }
}

/* MENU MOBILE (duplicado — mantém display:none até 768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
    }
}

/* ANIMAÇÕES MELHORADAS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SCROLL SUAVE */
html {
    scroll-behavior: smooth;
}

/* MELHORIAS DE PERFORMANCE */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* GARANTIR NITIDEZ DO TEXTO */
.user-name, .user-name * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga" 1, "kern" 1;
}

/* REMOVIDO: PARTÍCULAS - Funcionalidade removida para evitar erros */

/* CORREÇÕES PARA HERO SCROLL */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    font-size: 0.9rem;
    text-align: center;
    z-index: 2;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* =========================
   DASHBOARD - LAYOUT EM CAIXAS
   ========================= */

.dashboard-hero {
    margin-top: 100px; /* Reduzido para compensar header fixo */
    text-align: center;
    color: var(--primary);
    padding: 2rem;
}

.dashboard-welcome {
    margin-bottom: 3rem;
}

.dashboard-welcome h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-heading);
    text-shadow: none;
    filter: none;
    animation: none;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dashboard-welcome p {
    font-size: 1.2rem;
    color: var(--gray);
}

.dashboard-quicklinks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.quicklink-card {
    background: var(--card-gradient);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.quicklink-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.quicklink-card:hover::before {
    left: 100%;
}

.quicklink-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
    color: var(--text-heading);
}

.quicklink-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: all var(--transition);
}

.quicklink-card:hover .quicklink-icon {
    color: var(--primary-hover);
    transform: scale(1.05);
}

.quicklink-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-heading);
    font-weight: 600;
}

.quicklink-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 1rem;
}

/* RESPONSIVIDADE DO DASHBOARD */
@media (max-width: 1024px) {
    .dashboard-quicklinks {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .quicklink-card {
        padding: 2rem 1.5rem;
        min-height: 180px;
    }
}

@media (max-width: 768px) {
    .dashboard-hero {
        margin-top: 90px;
        padding: 1rem;
    }
    
    .dashboard-quicklinks {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .quicklink-card {
        padding: 1.5rem 1rem;
        min-height: 160px;
    }
    
    .quicklink-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .quicklink-card h3 {
        font-size: 1.3rem;
    }
    
    .quicklink-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .dashboard-welcome h1 {
        font-size: 2rem;
    }
    
    .dashboard-welcome p {
        font-size: 1rem;
    }
    
    .quicklink-card {
        padding: 1.2rem 1rem;
        min-height: 140px;
    }
    
    .quicklink-icon {
        font-size: 2.5rem;
    }
    
    .quicklink-card h3 {
        font-size: 1.2rem;
    }
}

/* =========================
   BOX FLUTUANTE - JOGADORES ONLINE
   ========================= */
.online-players-box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    padding: 12px 16px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 200px;
}

.online-players-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.online-players-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 600;
}

.online-icon {
    color: var(--primary);
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

.online-text {
    color: var(--light);
    font-size: 0.9rem;
    white-space: nowrap;
}

.online-count {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: none;
    animation: none;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* RESPONSIVIDADE DA BOX ONLINE */
@media (max-width: 768px) {
    .online-players-box {
        bottom: 15px;
        left: 15px;
        padding: 10px 12px;
        min-width: 160px;
    }
    
    .online-players-content {
        gap: 6px;
    }
    
    .online-icon {
        font-size: 1rem;
    }
    
    .online-text {
        font-size: 0.8rem;
    }
    
    .online-count {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .online-players-box {
        bottom: 10px;
        left: 10px;
        padding: 8px 10px;
        min-width: 140px;
    }
    
    .online-text {
        font-size: 0.75rem;
    }
    
    .online-count {
        font-size: 0.9rem;
    }
}