/* =========================================
   1. VARIÁVEIS E RESET GERAL (SEU ESTILO ORIGINAL)
   ========================================= */
:root {
    --bg-body: #121212;
    --bg-header: rgba(30, 30, 30, 0.9);
    --bg-panel: #1e1e1e;
    --bg-block: #252525;
    --primary-purple: #8a2be2;
    --neon-purple: #bd00ff;
    --neon-glow: 0 0 15px rgba(189, 0, 255, 0.6);
    --text-main: #ffffff;
    --text-sec: #a0a0a0;
    --border-color: #333;
    --discord-color: #5865F2;
    --success-green: #2ecc71;
    --error-red: #ff4757;
}

body.light-mode {
    --bg-body: #f4f4f4;
    --bg-header: rgba(255, 255, 255, 0.95);
    --bg-panel: #ffffff;
    --bg-block: #e0e0e0;
    --primary-purple: #6a0dad;
    --neon-purple: #8a2be2;
    --neon-glow: 0 0 15px rgba(138, 43, 226, 0.4);
    --text-main: #121212;
    --text-sec: #555555;
    --border-color: #ddd;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; transition: all 0.3s ease; }
body { background-color: var(--bg-body); color: var(--text-main); height: 100vh; overflow-x: hidden; }
body.locked { pointer-events: none; user-select: none; cursor: wait; overflow: hidden; }

/* =========================================
   2. ANIMAÇÕES (CORTINAS ORIGINAIS)
   ========================================= */
.curtain-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; pointer-events: none; }
.curtain-panel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: #000; animation-duration: 2.5s; animation-timing-function: cubic-bezier(0.8, 0, 0.2, 1); animation-fill-mode: forwards; animation-delay: 0.5s; }
.curtain-left { clip-path: polygon(0 0, 100% 100%, 0 100%); filter: drop-shadow(4px -4px 10px var(--neon-purple)); animation-name: slideBottomLeft; }
.curtain-right { clip-path: polygon(0 0, 100% 0, 100% 100%); filter: drop-shadow(-4px 4px 10px var(--neon-purple)); animation-name: slideTopRight; }
@keyframes slideBottomLeft { to { transform: translate(-50%, 50%); opacity: 0; } }
@keyframes slideTopRight { to { transform: translate(50%, -50%); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* TOAST */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 10px; }
.custom-toast {
    background: var(--bg-panel); color: var(--text-main);
    border: 1px solid var(--border-color); border-left-width: 4px;
    padding: 15px 25px; border-radius: 5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    font-family: 'Oxanium', sans-serif; font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
    animation: slideInToast 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55); min-width: 280px;
    backdrop-filter: blur(5px);
}
.custom-toast.success { border-left-color: var(--success-green); } .custom-toast.success i { color: var(--success-green); font-size: 1.2rem; }
.custom-toast.error { border-left-color: var(--error-red); } .custom-toast.error i { color: var(--error-red); font-size: 1.2rem; }
.custom-toast.neutral { border-left-color: var(--neon-purple); } .custom-toast.neutral i { color: var(--neon-purple); font-size: 1.2rem; }
@keyframes slideInToast { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* =========================================
   3. CABEÇALHO
   ========================================= */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px; height: 80px;
    background: var(--bg-header); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(189, 0, 255, 0.2);
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: background 0.8s, border 0.8s, box-shadow 0.8s, backdrop-filter 0.8s;
}

header.initial-state {
    background: transparent; border-bottom: none;
    box-shadow: none; backdrop-filter: none; pointer-events: none;
}

header.initial-state .login-wrapper,
header.initial-state .menu-wrapper {
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.5s ease;
}

.login-wrapper, .menu-wrapper {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: all 0.8s ease 0.2s; position: relative; z-index: 1002;
}

.icon-btn { background: transparent; border: none; color: var(--text-main); font-size: 28px; cursor: pointer; }
.icon-btn:hover { color: var(--neon-purple); text-shadow: 0 0 10px var(--neon-purple); transform: scale(1.1); }

.header-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; gap: 30px; z-index: 1001; }
.header-logo { height: auto; max-height: 120px; width: auto; margin-top: 20px; filter: drop-shadow(0 0 5px var(--neon-purple)); transition: all 0.8s ease; object-fit: contain; }
.header-logo.hidden-start { opacity: 0; transform: translateY(-30px); pointer-events: none; }
header.logo-visible .header-logo { opacity: 1; transform: translateY(0); pointer-events: auto; }

.header-nav { display: none; gap: 20px; }
.header-nav.active { display: flex; animation: fadeIn 0.8s ease forwards; }
.header-nav a { text-decoration: none; color: var(--text-main); font-weight: 500; font-family: 'Oxanium'; padding: 8px 12px; border-radius: 5px; white-space: nowrap; }
.header-nav a:hover { background: rgba(189, 0, 255, 0.1); color: var(--neon-purple); box-shadow: 0 0 10px rgba(189, 0, 255, 0.2) inset; }

/* =========================================
   4. MODAL E PERFIL
   ========================================= */
.login-dropdown {
    position: absolute; top: 70px; left: 0; width: 350px;
    background: var(--bg-panel); border: 1px solid var(--primary-purple);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.2); border-radius: 10px;
    padding: 20px; display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 80vh; 
}
.login-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }

.auth-view { display: none; flex-direction: column; gap: 12px; animation: fadeIn 0.3s ease; }
.auth-view.active { display: flex; }
.login-title { font-family: 'Oxanium'; text-align: center; color: var(--neon-purple); letter-spacing: 2px; margin-bottom: 5px; }
.info-text { text-align: center; color: var(--text-sec); font-size: 0.8rem; margin-bottom: 10px; }

/* INPUTS */
.input-group { position: relative; width: 100%; }
.input-group input { width: 100%; padding: 12px; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 5px; color: var(--text-main); outline: none; font-size: 0.9rem; }
.input-group input:focus { border-color: var(--neon-purple); box-shadow: 0 0 5px var(--neon-purple); }
.input-group input[readonly] { background: rgba(0,0,0,0.2); cursor: not-allowed; opacity: 0.7; }
.password-group input { padding-right: 35px; }
.toggle-pass { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text-sec); cursor: pointer; font-size: 18px; }
.row-2-col { display: flex; gap: 10px; }
.row-2-col .input-group { flex: 1; }
.register-scroll { max-height: 350px; overflow-y: auto; padding-right: 5px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--primary-purple) var(--bg-body); }
.register-scroll::-webkit-scrollbar { width: 5px; }
.register-scroll::-webkit-scrollbar-thumb { background: var(--primary-purple); border-radius: 10px; }

/* BUTTONS */
.btn { padding: 12px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; font-family: 'Oxanium'; letter-spacing: 1px; }
.btn-login { background: linear-gradient(135deg, var(--primary-purple), var(--neon-purple)); color: white; width: 100%; margin-top: 5px; }
.btn-login:hover { box-shadow: 0 0 15px var(--neon-purple); transform: translateY(-2px); }
.btn-register { background: transparent; border: 1px solid var(--text-sec); color: var(--text-sec); width: 100%; }
.btn-register:hover { border-color: var(--text-main); color: var(--text-main); }
.btn-back { background: #333; color: white; width: 48%; }
.btn-row { display: flex; justify-content: space-between; gap: 10px; margin-top: 5px; }
.btn-row .btn-login { width: 48%; margin-top: 0; }

/* DISCORD */
.discord-btn-mini { position: absolute; top: 15px; right: 15px; background: transparent; border: none; width: 35px; height: 35px; cursor: pointer; padding: 0; }
.discord-icon-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; filter: drop-shadow(0 0 2px var(--discord-color)); transition: transform 0.3s; }
.discord-btn-mini:hover .discord-icon-img { transform: scale(1.1) rotate(10deg); filter: drop-shadow(0 0 5px var(--neon-purple)); }
.discord-status-box { display: flex; align-items: center; justify-content: space-between; background: rgba(88, 101, 242, 0.1); border: 1px solid var(--discord-color); padding: 10px; border-radius: 5px; color: var(--text-sec); font-size: 0.8rem; }
.discord-status-box.connected { border-color: var(--success-green); background: rgba(46, 204, 113, 0.1); color: var(--success-green); }
.btn-connect-ds { background: var(--discord-color); color: white; border: none; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 0.75rem; }
.btn-ds-login { width: 100%; background: #333; border: 1px solid var(--border-color); color: var(--text-main); padding: 10px; border-radius: 5px; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.btn-ds-login img { width: 20px; }

/* LINKS */
.options-row { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-sec); align-items: center; }
.forgot-link { color: var(--primary-purple); text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }
.divider { text-align: center; font-size: 0.8rem; color: var(--text-sec); margin: 5px 0; }

/* PERFIL CARD */
.identity-title { font-family: 'Oxanium', sans-serif !important; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; font-weight: 700; font-size: 1.8rem; color: var(--neon-purple); text-shadow: 0 0 10px rgba(189, 0, 255, 0.3); }
.profile-header-row { display: flex; justify-content: center; align-items: center; position: relative; width: 100%; margin-bottom: 10px; }
.profile-card { background: rgba(30, 30, 30, 0.6); padding: 20px; border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
body.light-mode .profile-card { background: rgba(0, 0, 0, 0.05); border-color: #d0d0d0; }
.profile-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 0.95rem; align-items: center; }
.p-label { color: var(--text-sec); font-family: 'Roboto', sans-serif; font-weight: 500; }
.p-value { color: var(--text-main); font-weight: 600; text-align: right; font-family: 'Oxanium', sans-serif; }
.p-value.highlight { color: var(--neon-purple); font-weight: bold; font-size: 1.1rem; }
.p-value.vip-status { color: #f1c40f; text-shadow: 0 0 5px rgba(241, 196, 15, 0.5); }
.profile-separator { height: 1px; background: linear-gradient(90deg, transparent, var(--border-color), transparent); margin: 15px 0; }

.staff-badge { color: #fff; background: linear-gradient(135deg, #6a0dad, #bd00ff); padding: 4px 10px; border-radius: 4px; font-size: 0.85rem; font-family: 'Oxanium'; font-weight: 700; text-transform: uppercase; box-shadow: 0 0 10px rgba(189, 0, 255, 0.4); letter-spacing: 1px; }

/* Admin Menu */
.admin-menu-container { position: absolute; right: 0; top: 0; }
.icon-btn-mini { background: transparent; border: none; color: var(--text-sec); font-size: 1.5rem; cursor: pointer; }
.icon-btn-mini:hover { color: var(--neon-purple); }
.admin-dropdown { display: none; position: absolute; top: 100%; right: 0; background: var(--bg-block); border: 1px solid var(--border-color); border-radius: 5px; min-width: 160px; z-index: 999; box-shadow: 0 5px 15px rgba(0,0,0,0.5); overflow: hidden; }
.admin-dropdown.show { display: block; animation: fadeIn 0.2s; }
.admin-dropdown div { padding: 10px; font-size: 0.85rem; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-main); }
.admin-dropdown div:hover { background: var(--primary-purple); color: white; }

/* Edit Inputs */
.edit-field-row { position: relative; margin-bottom: 10px; }
.edit-field-row input { padding-right: 35px; }
.edit-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--neon-purple); pointer-events: none; }

/* =========================================
   6. CONTEÚDO HERO
   ========================================= */
main { margin-top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
main.content-open { cursor: default; height: auto; min-height: calc(100vh - 80px); margin-top: 80px; }

.hero-content { width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; transition: all 0.5s ease; cursor: pointer; position: relative; }

/* === CONFIGURAÇÃO UNIFICADA (TEMA ESCURO) === */
.hero-logo-large { 
    position: absolute; 
    top: 10px; 
    left: 50%; 
    transform: translateX(-50%); 
    height: auto; 
    max-height: 280px; /* Tamanho da logo escura */
    filter: drop-shadow(0 0 15px var(--neon-purple)); 
    animation: fadeIn 1.5s ease-out; 
    z-index: 10; 
    object-fit: contain; 
}

/* === CONFIGURAÇÃO UNIFICADA (TEMA CLARO) === */
body.light-mode .hero-logo-large { 
    max-height: 280px; /* Mantenha igual ao valor de cima para não mudar o tamanho */
    top: 10px;        /* Mantenha igual para não mudar a posição */
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.2)); /* Brilho suave para a logo preta */
}

.hero-content:hover .hero-logo-large { transform: translateX(-50%) scale(1.05); filter: drop-shadow(0 0 25px var(--neon-purple)); transition: 0.3s; }

.hero-trigger { text-align: center; margin-top: 50px; }
.hero-content.hidden { opacity: 0; transform: translateY(-50px); pointer-events: none; visibility: hidden; }
.hero-title { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 4.5rem; color: var(--text-main); text-shadow: 0 0 25px var(--neon-purple); transition: transform 0.3s, text-shadow 0.3s; }
.hero-subtitle { color: var(--text-sec); font-size: 1.2rem; margin-top: 15px; font-family: 'Oxanium'; }
/* =========================================
   7. BLOCOS DE INFORMAÇÃO
   ========================================= */
.main-content-blocks { display: none; gap: 30px; padding: 50px; width: 100%; max-width: 1200px; opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.main-content-blocks.active { display: flex; opacity: 1; transform: translateY(0); }
.info-block { flex: 1; background: var(--bg-block); padding: 30px; border-radius: 15px; text-align: center; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.3s, border-color 0.3s; }
.info-block:hover { transform: translateY(-10px); border-color: var(--neon-purple); }
.block-icon { font-size: 4rem; color: var(--neon-purple); margin-bottom: 20px; }
.info-block h3 { font-family: 'Oxanium'; margin-bottom: 10px; }
.info-block p { color: var(--text-sec); }

/* =========================================
   8. BLOCO DE STATUS DO SERVIDOR (NOVO)
   ========================================= */
.server-status-block { display: flex; flex-direction: column; gap: 15px; text-align: left; background: rgba(30, 30, 30, 0.95); border: 1px solid var(--primary-purple); position: relative; overflow: hidden; padding: 20px; border-radius: 12px; }
.server-status-block::before { content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--neon-purple); box-shadow: 0 0 10px var(--neon-purple); }

/* Ajustes Modo Claro */
body.light-mode .server-status-block { background: #ffffff; border-color: var(--primary-purple); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
body.light-mode #serverStatusText, body.light-mode .server-status-block .stat-value { color: #333333; }
body.light-mode .server-status-block .stat-label { color: #666666; }

.status-header { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.status-indicator { width: 10px; height: 10px; border-radius: 50%; background: #444; box-shadow: 0 0 5px #444; transition: 0.3s; }
#serverStatusText { font-family: 'Oxanium'; font-size: 1.2rem; margin: 0; color: var(--text-main); }

.status-details { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; gap: 15px; }
.stat-item { flex: 1; display: flex; flex-direction: column; }
.stat-item:last-child { align-items: flex-end; } 

.stat-label { font-size: 0.75rem; color: var(--text-sec); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; white-space: nowrap; }
.stat-value { font-family: 'Orbitron'; font-size: 1.1rem; color: var(--text-main); white-space: nowrap; } /* white-space impede quebra de linha */

.progress-bar-container { width: 100%; height: 5px; background: #333; border-radius: 2px; margin-top: 5px; overflow: hidden; }
body.light-mode .progress-bar-container { background: #e0e0e0; }
.progress-bar-fill { height: 100%; background: var(--primary-purple); width: 0%; transition: width 0.5s ease; box-shadow: 0 0 5px var(--primary-purple); }

.rr-timer { color: var(--neon-purple); text-shadow: 0 0 5px rgba(189, 0, 255, 0.3); }
body.light-mode .rr-timer { color: var(--primary-purple); text-shadow: none; font-weight: 800; }

/* =========================================
   9. BOTÃO DE TEMA
   ========================================= */
.theme-toggle { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--primary-purple); background: var(--bg-panel); color: var(--text-main); box-shadow: 0 0 15px rgba(0,0,0,0.3); cursor: pointer; font-size: 24px; display: flex; align-items: center; justify-content: center; z-index: 2000; }
.theme-toggle:hover { transform: scale(1.1) rotate(15deg); background: var(--primary-purple); color: white; }

/* Animação de entrada do conteúdo */
.animate-in {
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilo básico da Loja (ajuste conforme seu gosto) */
.shop-container { padding: 40px; color: white; width: 100%; max-width: 1200px; }
.vip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; }
.vip-card { 
    background: rgba(20, 20, 20, 0.8); 
    border: 1px solid var(--primary-purple); 
    padding: 30px; 
    border-radius: 15px; 
    transition: 0.3s;
    text-align: center;
}
.vip-card:hover { transform: scale(1.02); box-shadow: 0 0 20px var(--neon-purple); }
.buy-btn {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Orbitron';
    margin-top: 20px;
}