:root { 
    --primary: #00c853; --primary-dark: #009624; 
    --bg: #0a192f; --card-bg: #112240; 
    --text: #e2e8f0; --text-muted: #8892b0; 
    --danger: #ff1744; 
    --accent: #ffd700; --accent-dark: #ffaa00; 
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background: radial-gradient(circle at top, #1a365d 0%, var(--bg) 70%); color: var(--text); padding: 20px 20px 0 20px; display: flex; justify-content: center; min-height: 100vh; }
.container { width: 100%; max-width: 600px; display: flex; flex-direction: column; min-height: 100vh; }
.card { background: var(--card-bg); padding: 30px 25px; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.05); }

.badge-amarelo { background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%); color: #000; font-weight: 900; padding: 8px 20px; border-radius: 25px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; white-space: nowrap; }

.header-social { display: flex; justify-content: space-between; align-items: center; background: #112240; padding: 10px 15px; border-radius: 12px; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.05); box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

.btn-whats-bg { background: #25D366; color: #fff; border: none; font-weight: bold; padding: 14px; border-radius: 10px; cursor: pointer; text-align: center; font-size: 14px; transition: 0.3s; }
.btn-whats-bg:hover { background: #1ebd5a; }

button { width: 100%; padding: 14px; border: none; font-size: 16px; font-weight: bold; border-radius: 10px; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 0.5px; }
button:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; box-shadow: 0 4px 15px rgba(0, 198, 83, 0.3); }
.btn-copa { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: #000; box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
.btn-arena { background: linear-gradient(135deg, #ff3d00 0%, #dd2c00 100%); color: white; box-shadow: 0 4px 15px rgba(255, 61, 0, 0.3); } 
.btn-danger { background: linear-gradient(135deg, var(--danger) 0%, #b3002d 100%); color: white; }
.btn-blue { background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%); color: white; }
.btn-secondary { background: linear-gradient(135deg, #233554 0%, #112240 100%); color: var(--text); border: 1px solid rgba(255,255,255,0.1); }
.btn-share { background: linear-gradient(135deg, #a8ff78 0%, #78ffd6 100%); color: #000; font-size:14px; margin-top:10px; box-shadow: 0 4px 15px rgba(168, 255, 120, 0.3);}

.nav-tabs { display: flex; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.tab-btn { background: #112240; flex: 1; min-width: 85px; padding: 12px 5px; font-size: 13px; border-radius: 8px; font-weight: bold; }
.tab-btn#tab-btn-copa { color: var(--accent); border: 1px solid var(--accent); }
.tab-btn#tab-btn-arena { color: #ff3d00; border: 1px solid #ff3d00; } 
.tab-btn#tab-btn-admin { color: #9c27b0; border: 1px solid #9c27b0; }

.tab-btn.active#tab-btn-copa { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: #000; border-color: transparent; }
.tab-btn.active#tab-btn-arena { background: linear-gradient(135deg, #ff3d00 0%, #dd2c00 100%); color: #ffffff !important; border-color: transparent; } 
.tab-btn.active#tab-btn-admin { background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%); color: white; border-color: transparent; }

.sub-nav { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; justify-content: center; }
.sub-btn { background: #0a192f; border: 2px solid #233554; padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: bold; color: var(--text-muted); }
.sub-btn.active { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: #000; border-color: var(--accent); }

h2 { color: var(--primary); margin-bottom: 20px; text-align: center; font-size: 22px; font-weight: 700; }
.hidden { display: none !important; }
.jogo-linha { background: #0a192f; padding: 18px; border-radius: 12px; border-left: 5px solid var(--accent); margin-bottom: 15px; border: 1px solid rgba(255,255,255,0.02); }
.jogo-linha.matamata-style { border-left-color: #ff3d00; background: rgba(255,61,0,0.03); border: 1px solid rgba(255,61,0,0.3); }
.jogo-meta { font-size: 11px; color: var(--text-muted); text-align: center; margin-bottom: 10px; font-weight: 600; text-transform: uppercase; }
.jogo-campeonato { font-size: 12px; font-weight: bold; color: var(--accent); text-align: center; margin-bottom: 10px; text-transform: uppercase; }
.jogo-confronto { display: flex; align-items: center; justify-content: center; width: 100%; }
.time-box { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 8px; }
.escudo-time { width: 45px; height: 45px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); transition: transform 0.3s; }
.escudo-time:hover { transform: scale(1.1); }
.time-box .time-label { text-align: center !important; font-size: 11px; font-weight: 700; color: #fff; line-height: 1.2; word-wrap: break-word; max-width: 80px; display: flex; justify-content: center; margin: 0 auto; }
.placar-input { width: 44px !important; height: 44px !important; text-align: center; font-weight: bold; padding: 0 !important; background: #112240 !important; border: 2px solid var(--accent) !important; border-radius: 8px !important; color: #fff !important; font-size: 18px !important; margin: 0 5px; flex-shrink: 0; }
.placar-input:disabled { background-color: #060d1a !important; color: #4e5d78 !important; border-color: #121d30 !important; cursor: not-allowed; }
.x { font-weight: 900; color: var(--text-muted); font-size: 14px; margin: 0 2px; }
.bloqueado-aviso { font-size: 12px; color: var(--danger); font-weight: bold; text-align: center; margin-top: 8px; }
.matamata-classificado { margin-top:15px; padding:10px; background:rgba(0,0,0,0.3); border-radius:8px; text-align:center; }
.matamata-classificado label { font-size:11px; color:#fff; font-weight:bold; }
.matamata-classificado select { margin-top:5px; padding:5px; border-radius:5px; background:#112240; color:#fff; border:1px solid #ff3d00; width:100%; font-size:12px; }

.jogo-linha.acerto-exato { border-left-color: var(--accent) !important; } .jogo-linha.acerto-vencedor { border-left-color: var(--primary) !important; } .jogo-linha.erro { border-left-color: var(--danger) !important; }
.palpite-historico-placar { font-size: 18px; font-weight: bold; background-color: #060d1a; padding: 8px 12px; border-radius: 8px; border: 2px solid #233554; }

.perfil-foto-container { display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 20px; position:relative; }
.perfil-foto-circle { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--primary); object-fit: cover; background: #0a192f; display:flex; align-items:center; justify-content:center; color:#fff; font-size:12px; font-weight:bold; overflow:hidden; cursor:pointer;}
.perfil-foto-circle img { width: 100%; height: 100%; object-fit: cover; }
#input-foto-perfil { display: none; }
#foto-aviso { color: var(--accent); font-size: 12px; font-weight: bold; margin-top: 10px; text-align:center; }
.perfil-stats { display: flex; justify-content: space-between; background: rgba(0,0,0,0.2); padding: 15px; border-radius: 12px; margin-bottom: 20px; border: 1px solid #233554; }
.stat-box { flex: 1; text-align: center; border-right: 1px solid #233554; display:flex; flex-direction:column; }
.stat-box:last-child { border-right: none; }
.stat-box span { color: var(--text-muted); font-size: 11px; text-transform: uppercase; font-weight: 800; margin-bottom: 5px; }
.stat-box strong { color: #fff; font-size: 18px; display:flex; align-items:center; justify-content:center; gap:5px; }

.footer-creditos { text-align: center; width: 100%; }
.footer-creditos p { color: #a0aec0; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.btn-patrocinio { border: 1px solid var(--accent); color: var(--accent); background: #1a2639; padding: 10px 20px; border-radius: 25px; text-decoration: none; font-weight: bold; font-size: 11px; display: inline-flex; align-items: center; gap: 5px; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s; }
.btn-patrocinio:hover { background: rgba(255, 215, 0, 0.1); box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2); }

.admin-jogo-box { background: #0a192f; padding: 15px; border: 1px solid #233554; border-radius: 10px; margin-bottom: 12px; position: relative; }
.admin-row { display: flex; gap: 10px; margin-bottom: 8px; }
.btn-remover-jogo { position: absolute; top: 10px; right: 10px; background: none; color: var(--danger); font-size: 12px; width: auto; padding: 2px 5px; }

input[type="text"], input[type="number"], input[type="email"], input[type="datetime-local"], select, textarea {
    background-color: #0a192f !important; color: #fff !important; border: 2px solid #233554; border-radius: 8px; padding: 10px 12px; width: 100%; outline: none; font-size: 13px; margin-bottom: 5px; transition: border 0.3s; font-family: inherit;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary) !important; }
select { appearance: none; -webkit-appearance: none; -moz-appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important; background-repeat: no-repeat !important; background-position: right 12px top 50% !important; background-size: 10px auto !important; padding-right: 30px; }
select option { background-color: #112240; color: #fff; }
select:disabled { opacity: 1; background-color: #060d1a !important; border-color: #233554 !important; color: #a0aec0 !important; cursor: not-allowed; font-weight: bold; }

.admin-accordion-btn { width: 100%; background: #112240; padding: 15px; text-align: left; font-size: 14px; font-weight: bold; border-radius: 10px; display: flex; justify-content: space-between; margin-top: 15px; border: 2px solid; text-transform: uppercase;}
.admin-accordion-content { padding: 15px; border: 1px solid rgba(255,255,255,0.05); border-radius: 10px; margin-bottom: 20px; background: rgba(0,0,0,0.2); }

#btn-go-top { position: fixed; bottom: 25px; right: 25px; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 20px; cursor: pointer; display: none; justify-content: center; align-items: center; z-index:9999; box-shadow: 0 4px 12px rgba(0,0,0,0.5);}

/* GERADOR DE IMAGEM INVISÍVEL */
#share-mold { width: 420px; background: radial-gradient(circle at top, #1a365d 0%, #0a192f 70%); color: #fff; padding: 30px; font-family: 'Segoe UI'; position: fixed; top: -9999px; left: -9999px; border-radius:16px; }

/* TELA DE LOGIN */
.full-screen-login { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; background: #0f172a; z-index: 9999; display: flex; flex-direction: column; overflow-y: auto; }
.full-screen-login.hidden { display: none !important; }
.topbar-login { height: 85px; display: flex; justify-content: space-between; align-items: center; background: #06101e; padding: 0 30px; border-bottom: 1px solid #1e293b; }
.topbar-left { display: flex; align-items: center; gap: 15px; height: 100%; padding: 4px 0; }
.topbar-left img { height: 100%; object-fit: contain; }

.topbar-right { display: flex; align-items: center; gap: 12px; margin-top: -8px; font-family: sans-serif; }
.mobile-inputs-row, .mobile-buttons-row { display: flex; align-items: center; gap: 12px; }
.input-group { display: flex; flex-direction: column; position: relative; }
.input-group label { font-size: 10px; color: #94a3b8; margin-bottom: 5px; font-weight: bold; text-transform: uppercase; }
.input-group input { background: #0f172a; border: 1px solid #1e293b; color: #fff; padding: 10px 12px; border-radius: 4px; font-size: 14px; width: 220px; transition: border 0.3s; margin-bottom:0; }
.input-group input:focus { outline: none; border-color: #00c853; }
.esqueci-senha-link { position: absolute; bottom: -16px; left: 0; font-size: 11px; color: #00c853; text-decoration: none; font-weight: bold; }
.esqueci-senha-link:hover { text-decoration: underline; }
.btn-acessar { background: #00c853; color: #fff; border: none; padding: 0 20px; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 13px; height: 39px; align-self: flex-end; transition: 0.2s; width: auto;}
.btn-acessar:hover { background: #009624; }
.btn-outline { background: transparent; color: #94a3b8; border: 1px solid #334155; padding: 0 20px; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 13px; height: 39px; align-self: flex-end; transition: 0.2s; width: auto;}
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-google-header { background: #fff; color: #333; border: none; padding: 0 15px; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 13px; height: 39px; align-self: flex-end; display: flex; align-items: center; justify-content:center; gap: 8px; transition: 0.2s; width: auto;}
.btn-google-header:hover { background: #e2e8f0; }

@media (max-width: 1000px) {
    .topbar-login { flex-direction: column; height: auto; gap: 15px; padding: 20px 15px; }
    .topbar-left { height: 60px; padding: 0; }
    .topbar-right { flex-direction: column; width: 100%; gap: 15px; margin-top: 0;}
    .mobile-inputs-row { width: 100%; justify-content: space-between; gap: 10px; }
    .mobile-inputs-row .input-group { width: 48%; }
    .mobile-inputs-row .input-group input { width: 100%; padding: 8px 10px; font-size: 13px;}
    .mobile-buttons-row { width: 100%; justify-content: space-between; gap: 5px; }
    .btn-acessar, .btn-outline, .btn-google-header { width: 32%; height: 38px; font-size: 10px; padding: 0; margin: 0; align-self: center;}
    .btn-google-header { font-size: 0; } 
    .btn-google-header img { margin: 0; width: 18px; }
    .esqueci-senha-link { width: 100%; position: relative; bottom: auto; display: block; text-align: right; margin-top: 5px;}
}

.login-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; }
.login-hero h1 { font-size: 36px; color: #00c853; margin-bottom: 15px; font-weight: 900; }
.login-hero p { color: #64748b; font-size: 16px; max-width: 550px; line-height: 1.6; }
.modal-overlay { position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.85); display: flex; justify-content:center; align-items:center; z-index: 10000; padding: 20px;}
.modal-box { width: 100%; max-width: 400px; border: 1px solid #233554; }

/* =======================================
   ARENA E ROLETA NOVA MÁGICA 🎰
======================================= */
.radar { width: 80px; height: 80px; border-radius: 50%; border: 4px solid #ff3d00; border-top-color: transparent; animation: spin 1s linear infinite; margin-bottom: 20px; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.timer-text { font-size: 40px; font-weight: 900; color: #ff3d00; margin: 10px 0; }

.slot-arena { height: 80px; width: 85px; overflow: hidden; position: relative; display: flex; justify-content: center; margin: 0; background: transparent; border: none; }
.slot-reol { position: absolute; top: 0; width: 100%; }
.item-time-arena { height: 80px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
@keyframes deslizarVerticalArena { 0% { transform: translateY(0); } 100% { transform: translateY(-80px); } }
.girando-roleta { animation: deslizarVerticalArena 0.1s linear infinite; }

.mural-noticias { background: rgba(30, 136, 229, 0.1); border: 1px solid #1e88e5; border-left: 5px solid #1e88e5; padding: 15px; border-radius: 8px; margin-bottom: 20px; color: #fff; font-size: 14px; line-height: 1.5; }
.mural-noticias strong { color: #1e88e5; display: block; margin-bottom: 8px; text-transform: uppercase; font-size: 12px; }
#mural-noticias-login { max-width: 600px; margin: 20px auto 0 auto; width: 90%; }

@keyframes bounce-arrow { 0%, 100% {transform:translateY(0);} 50% {transform:translateY(4px);} }
.bounce-arrow { display:inline-block; animation: bounce-arrow 1s infinite; font-size:14px; }
.btn-pwa { position: absolute; top: 15px; right: 15px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: #000; font-weight: 900; border: none; padding: 8px 12px; border-radius: 8px; box-shadow: 0 2px 5px rgba(255, 215, 0, 0.4); cursor: pointer; z-index: 10; display: flex; align-items: center; gap: 5px; font-size: 11px; text-transform: uppercase; transition: transform 0.3s; width: auto; }
.btn-pwa:hover { transform: translateY(-2px); }
