
/* ============================================================
   3 NOVOS TEMAS MODERNOS (APENAS FRONT-END DO CLIENTE)
   ============================================================ */

/* ----------------------------------------------------------
   TEMA 4 — Arena Pro (Dark Glass + Esmeralda + Layout Pílula)
   ---------------------------------------------------------- */
[data-tema="arena_pro"] body:not(.admin-body) {
    background:
        radial-gradient(circle at 15% 0%, rgba(16, 185, 129, .18), transparent 42%),
        radial-gradient(circle at 85% 15%, rgba(52, 211, 153, .12), transparent 38%),
        #090d16;
    color: #f8fafc;
}
[data-tema="arena_pro"] body:not(.admin-body) .site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(9, 13, 22, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(16, 185, 129, .35);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
[data-tema="arena_pro"] body:not(.admin-body) .nav-pill {
    border-radius: 999px;
    background: rgba(16, 185, 129, .14);
    border: 1px solid rgba(16, 185, 129, .35);
    color: #a7f3d0;
}
[data-tema="arena_pro"] body:not(.admin-body) .card {
    background: rgba(17, 24, 39, .86);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 22px;
    color: #f8fafc;
    box-shadow: 0 18px 40px -15px rgba(0, 0, 0, .6);
}
[data-tema="arena_pro"] body:not(.admin-body) .round-card:hover {
    border-color: #10b981;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, .5), 0 20px 40px -12px rgba(16, 185, 129, .22);
    transform: translateY(-4px);
}
[data-tema="arena_pro"] body:not(.admin-body) .btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #042f2e;
    font-weight: 800;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(16, 185, 129, .35);
}
[data-tema="arena_pro"] body:not(.admin-body) .btn-dark,
[data-tema="arena_pro"] body:not(.admin-body) .btn-outline {
    border-radius: 999px;
}
[data-tema="arena_pro"] body:not(.admin-body) .input,
[data-tema="arena_pro"] body:not(.admin-body) .goal-input {
    background: rgba(9, 13, 22, .85);
    border-color: rgba(148, 163, 184, .28);
    color: #f8fafc;
    border-radius: 12px;
}
[data-tema="arena_pro"] body:not(.admin-body) .match-row {
    background: rgba(255, 255, 255, .03);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .06);
}
[data-tema="arena_pro"] body:not(.admin-body) .site-footer {
    background: #060911;
    border-top: 1px solid rgba(16, 185, 129, .2);
    color: #94a3b8;
}

/* ----------------------------------------------------------
   TEMA 5 — Copa Ouro (Editorial Luxo — Grafite & Dourado)
   ---------------------------------------------------------- */
[data-tema="copa_ouro"] body:not(.admin-body) {
    background: #12100e;
    color: #fafaf9;
}
[data-tema="copa_ouro"] body:not(.admin-body) .site-header {
    background: linear-gradient(180deg, #1c1917 0%, #12100e 100%);
    border-top: 4px solid #fbbf24;
    border-bottom: 1px solid rgba(251, 191, 36, .35);
}
[data-tema="copa_ouro"] body:not(.admin-body) .brand-name {
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fde68a;
}
[data-tema="copa_ouro"] body:not(.admin-body) .rounds-grid {
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 20px;
}
[data-tema="copa_ouro"] body:not(.admin-body) .card {
    background: #1c1917;
    border: 1px solid rgba(251, 191, 36, .22);
    border-top: 3px solid #d97706;
    border-radius: 10px;
    color: #fafaf9;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .45);
}
[data-tema="copa_ouro"] body:not(.admin-body) .btn-primary {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #1c1917;
    font-weight: 800;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
[data-tema="copa_ouro"] body:not(.admin-body) .stat-prize {
    background: rgba(251, 191, 36, .12);
    border: 1px solid rgba(251, 191, 36, .35);
    color: #fde68a;
}
[data-tema="copa_ouro"] body:not(.admin-body) .input,
[data-tema="copa_ouro"] body:not(.admin-body) .goal-input {
    background: #0c0a09;
    border-color: #44403c;
    color: #fafaf9;
}
[data-tema="copa_ouro"] body:not(.admin-body) .data-table th {
    background: #292524;
    color: #fbbf24;
    border-color: #44403c;
}
[data-tema="copa_ouro"] body:not(.admin-body) .data-table td {
    border-color: #292524;
    color: #fafaf9;
}
[data-tema="copa_ouro"] body:not(.admin-body) .site-footer {
    background: #0c0a09;
    border-top: 1px solid rgba(251, 191, 36, .25);
    color: #a8a29e;
}

/* ----------------------------------------------------------
   TEMA 6 — Street Match (App Moderno — Azul Royal & Coral)
   ---------------------------------------------------------- */
[data-tema="street_fut"] body:not(.admin-body) {
    background: linear-gradient(180deg, #e0e7ff 0%, #f1f5f9 260px, #f8fafc 100%);
    color: #0f172a;
}
[data-tema="street_fut"] body:not(.admin-body) .site-header {
    max-width: 1120px;
    margin: 12px auto 4px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
    box-shadow: 0 14px 30px -10px rgba(37, 99, 235, .55);
}
[data-tema="street_fut"] body:not(.admin-body) .card {
    background: #ffffff;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 12px 30px -10px rgba(15, 23, 42, .1);
}
[data-tema="street_fut"] body:not(.admin-body) .round-card {
    border-left: 6px solid #2563eb;
    transition: transform .18s ease, box-shadow .18s ease;
}
[data-tema="street_fut"] body:not(.admin-body) .round-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 38px -12px rgba(37, 99, 235, .24);
}
[data-tema="street_fut"] body:not(.admin-body) .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .28);
}
[data-tema="street_fut"] body:not(.admin-body) .btn-primary:hover {
    transform: translateY(-1px);
}
[data-tema="street_fut"] body:not(.admin-body) .stat-prize {
    background: rgba(244, 63, 94, .1);
    color: #e11d48;
    border-radius: 12px;
}
[data-tema="street_fut"] body:not(.admin-body) .status-aberta {
    background: #dbeafe;
    color: #1d4ed8;
}
[data-tema="street_fut"] body:not(.admin-body) .site-footer {
    background: #0f172a;
    color: #cbd5e1;
}

/* ----------------------------------------------------------
   TEMA 7 — Minimalista Suíço (Claro Radical — Lista Horizontal + Bordas Retas)
   ---------------------------------------------------------- */
[data-tema="minimal_branco"] body:not(.admin-body) {
    background: #fafafa;
    color: #18181b;
}
[data-tema="minimal_branco"] body:not(.admin-body) .site-header {
    background: #ffffff;
    color: #18181b;
    border-bottom: 2px solid #18181b;
    box-shadow: none;
}
[data-tema="minimal_branco"] body:not(.admin-body) .brand-name,
[data-tema="minimal_branco"] body:not(.admin-body) .site-header a {
    color: #18181b;
}
[data-tema="minimal_branco"] body:not(.admin-body) .nav-pill {
    border: 1.5px solid #18181b;
    border-radius: 2px;
    background: transparent;
    color: #18181b;
    font-weight: 700;
}
[data-tema="minimal_branco"] body:not(.admin-body) .nav-pill:hover {
    background: #18181b;
    color: #ffffff;
}
[data-tema="minimal_branco"] body:not(.admin-body) .card {
    background: #ffffff;
    border: 2px solid #18181b;
    border-radius: 4px;
    box-shadow: 4px 4px 0 #18181b;
}
[data-tema="minimal_branco"] body:not(.admin-body) .rounds-grid {
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 780px) {
    [data-tema="minimal_branco"] body:not(.admin-body) .rounds-grid .round-card {
        display: grid;
        grid-template-columns: 1.3fr 1.6fr auto;
        align-items: center;
        gap: 16px;
    }
    [data-tema="minimal_branco"] body:not(.admin-body) .rounds-grid .round-card .btn {
        width: auto;
        white-space: nowrap;
    }
}
[data-tema="minimal_branco"] body:not(.admin-body) .btn-primary {
    background: #18181b;
    color: #ffffff;
    border-radius: 2px;
    border: 2px solid #18181b;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
[data-tema="minimal_branco"] body:not(.admin-body) .btn-primary:hover {
    background: #e11d48;
    border-color: #e11d48;
}
[data-tema="minimal_branco"] body:not(.admin-body) .stat-prize {
    background: #ffe4e6;
    color: #be123c;
    border-radius: 2px;
}
[data-tema="minimal_branco"] body:not(.admin-body) .site-footer {
    background: #ffffff;
    color: #18181b;
    border-top: 2px solid #18181b;
}

/* ----------------------------------------------------------
   TEMA 8 — Cyber Arena HUD (Escuro Radical — Cantos Chanfrados + Ordem Reorganizada)
   ---------------------------------------------------------- */
[data-tema="cyber_hud"] body:not(.admin-body) {
    background-color: #05070e;
    background-image:
        linear-gradient(rgba(0, 245, 212, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 212, .04) 1px, transparent 1px);
    background-size: 28px 28px;
    color: #e2e8f0;
}
[data-tema="cyber_hud"] body:not(.admin-body) .site-header {
    background: #070b17;
    border-bottom: 2px solid #00f5d4;
    box-shadow: 0 0 24px rgba(0, 245, 212, .22);
}
[data-tema="cyber_hud"] body:not(.admin-body) .brand-name {
    color: #00f5d4;
    text-transform: uppercase;
    letter-spacing: .08em;
}
[data-tema="cyber_hud"] body:not(.admin-body) .main-content {
    display: flex;
    flex-direction: column;
}
[data-tema="cyber_hud"] body:not(.admin-body) .section-block { order: 1; }
[data-tema="cyber_hud"] body:not(.admin-body) .lookup-card { order: 2; }
[data-tema="cyber_hud"] body:not(.admin-body) .hero-slider,
[data-tema="cyber_hud"] body:not(.admin-body) .hero-card { order: 3; }
[data-tema="cyber_hud"] body:not(.admin-body) .card {
    background: #0b1021;
    border: 1px solid rgba(0, 245, 212, .35);
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    color: #e2e8f0;
    box-shadow: 0 0 20px rgba(0, 245, 212, .08);
}
[data-tema="cyber_hud"] body:not(.admin-body) .rounds-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
[data-tema="cyber_hud"] body:not(.admin-body) .btn-primary {
    background: linear-gradient(135deg, #00f5d4, #06b6d4);
    color: #05070e;
    font-weight: 900;
    border-radius: 0;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    text-transform: uppercase;
}
[data-tema="cyber_hud"] body:not(.admin-body) .stat-prize {
    background: rgba(255, 42, 133, .16);
    border: 1px solid #ff2a85;
    color: #ff80b5;
}
[data-tema="cyber_hud"] body:not(.admin-body) .input,
[data-tema="cyber_hud"] body:not(.admin-body) .goal-input {
    background: #05070e;
    border-color: rgba(0, 245, 212, .4);
    color: #00f5d4;
    border-radius: 0;
}
[data-tema="cyber_hud"] body:not(.admin-body) .site-footer {
    background: #04060c;
    border-top: 1px solid rgba(0, 245, 212, .3);
    color: #94a3b8;
}

/* ----------------------------------------------------------
   TEMA 9 — Magazine Esportivo (Editorial Radical — Capa + Header Centralizado)
   ---------------------------------------------------------- */
[data-tema="revista_esporte"] body:not(.admin-body) {
    background: #f7f4ef;
    color: #111827;
}
[data-tema="revista_esporte"] body:not(.admin-body) .site-header {
    background: #111827;
    border-bottom: 5px solid #ea580c;
    padding: 10px 0;
}
[data-tema="revista_esporte"] body:not(.admin-body) .header-inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
}
[data-tema="revista_esporte"] body:not(.admin-body) .brand-name {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -.02em;
}
[data-tema="revista_esporte"] body:not(.admin-body) .card {
    background: #ffffff;
    border: 1px solid #e5e0d8;
    border-bottom: 4px solid #ea580c;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(17, 24, 39, .06);
}
@media (min-width: 780px) {
    [data-tema="revista_esporte"] body:not(.admin-body) .rounds-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    [data-tema="revista_esporte"] body:not(.admin-body) .rounds-grid .round-card:first-child {
        grid-column: 1 / -1;
        border-left: 8px solid #ea580c;
        padding: 24px;
        background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
    }
}
[data-tema="revista_esporte"] body:not(.admin-body) .btn-primary {
    background: #ea580c;
    color: #ffffff;
    font-weight: 800;
    border-radius: 8px;
}
[data-tema="revista_esporte"] body:not(.admin-body) .btn-primary:hover {
    background: #c2410c;
}
[data-tema="revista_esporte"] body:not(.admin-body) .stat-prize {
    background: #ffedd5;
    color: #c2410c;
}
[data-tema="revista_esporte"] body:not(.admin-body) .site-footer {
    background: #111827;
    color: #e5e7eb;
    border-top: 4px solid #ea580c;
}

/* ============================================================
   MELHORIAS DE USABILIDADE (STEPPERS, PROGRESSO, SKELETON, URGÊNCIA)
   ============================================================ */
.score-stepper {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border, #cbd5e1);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface, #fff);
}
.score-stepper .goal-input {
    border: 0 !important;
    border-radius: 0 !important;
    width: 42px;
    height: 38px;
    text-align: center;
    padding: 0;
    margin: 0;
    box-shadow: none !important;
}
.score-step-btn {
    width: 30px;
    height: 38px;
    border: 0;
    background: rgba(148, 163, 184, .14);
    color: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: manipulation;
    transition: background .12s ease;
}
.score-step-btn:hover { background: rgba(148, 163, 184, .28); }
.score-step-btn:active { background: var(--primary, #15803d); color: #fff; }
@media (max-width: 480px) {
    .score-stepper .goal-input { width: 34px; height: 36px; font-size: .95rem; }
    .score-step-btn { width: 26px; height: 36px; font-size: 1rem; }
}

.bet-progress-wrap {
    margin: 8px 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border, #e2e8f0);
    background: rgba(148, 163, 184, .08);
}
.bet-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.bet-progress-track {
    height: 8px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .25);
    overflow: hidden;
}
.bet-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--primary, #15803d);
    transition: width .25s ease, background .25s ease;
}
.bet-progress-fill.is-complete {
    background: #16a34a;
}

.urgent-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .74rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    animation: urgentPulse 1.6s infinite ease-in-out;
}
@keyframes urgentPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.04); opacity: .82; }
}

.skeleton-card {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border, #e2e8f0);
    margin-bottom: 8px;
    background: var(--surface, #fff);
}
.skeleton-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: linear-gradient(90deg, rgba(148,163,184,.18) 25%, rgba(148,163,184,.35) 50%, rgba(148,163,184,.18) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.2s infinite linear;
}
.skeleton-line:last-child { margin-bottom: 0; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.w-55 { width: 55%; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-80 { width: 80%; }
@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   MENU FIXO INFERIOR NO CELULAR (APP BAR)
   ============================================================ */
.mobile-app-bar {
    display: none;
}
@media (max-width: 768px) {
    body:not(.admin-body):has(.mobile-app-bar) {
        padding-bottom: 72px;
    }
    .mobile-app-bar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        background: var(--surface, #ffffff);
        border-top: 1px solid var(--border, #e2e8f0);
        box-shadow: 0 -6px 24px rgba(15, 23, 42, .12);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    }
    .mobile-app-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        text-decoration: none;
        color: var(--muted, #475569);
        font-weight: 600;
        font-size: .72rem;
        padding: 4px 2px;
        border-radius: 10px;
    }
    .mobile-app-item span { font-size: 1.15rem; line-height: 1.1; }
    .mobile-app-item.is-active {
        color: var(--primary, #15803d);
        background: rgba(21, 128, 61, .09);
    }
}

/* ============================================================
   TEMAS ADICIONAIS + DARK MODE + SLIDER + POPUP
   Bolão de Futebol — v2.0
   ============================================================ */

/* ----------------------------------------------------------
   TEMA 2 — Futebol Escuro (azul marinho + dourado)
   ---------------------------------------------------------- */
[data-tema="futebol_escuro"] {
    --primary:      #1e3a5f;
    --primary-dark: #102240;
    --accent:       #f59e0b;
    --bg:           #0f172a;
    --surface:      #1e293b;
    --text:         #e2e8f0;
    --muted:        #94a3b8;
    --border:       #334155;
}

[data-tema="futebol_escuro"] body {
    background: var(--bg);
    color: var(--text);
}

[data-tema="futebol_escuro"] .site-header,
[data-tema="futebol_escuro"] .admin-sidebar,
[data-tema="futebol_escuro"] .admin-topbar {
    background: #0a1628;
}

[data-tema="futebol_escuro"] .card,
[data-tema="futebol_escuro"] .admin-content .card {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

[data-tema="futebol_escuro"] .input,
[data-tema="futebol_escuro"] select.input,
[data-tema="futebol_escuro"] textarea.input {
    background: #0f172a;
    border-color: var(--border);
    color: var(--text);
}

[data-tema="futebol_escuro"] .btn-primary {
    background: var(--accent);
    color: #0f172a;
}
[data-tema="futebol_escuro"] .btn-primary:hover {
    background: #d97706;
}

[data-tema="futebol_escuro"] .btn-dark {
    background: var(--primary);
    color: #fff;
}

[data-tema="futebol_escuro"] .data-table th {
    background: #102240;
    color: var(--accent);
    border-color: var(--border);
}
[data-tema="futebol_escuro"] .data-table td {
    border-color: var(--border);
    color: var(--text);
}
[data-tema="futebol_escuro"] .data-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,.03);
}

[data-tema="futebol_escuro"] .admin-topbar { border-bottom-color: var(--border); }
[data-tema="futebol_escuro"] .topbar-title { color: var(--accent); }

/* ----------------------------------------------------------
   TEMA 3 — Neon (roxo + lima / fundo ultra-escuro)
   ---------------------------------------------------------- */
[data-tema="neon"] {
    --primary:      #7c3aed;
    --primary-dark: #5b21b6;
    --accent:       #a3e635;
    --bg:           #0d0d0d;
    --surface:      #1a1a2e;
    --text:         #e2e8f0;
    --muted:        #94a3b8;
    --border:       #2d2d44;
}

[data-tema="neon"] body {
    background: var(--bg);
    color: var(--text);
}

[data-tema="neon"] .site-header {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0a2e 100%);
    border-bottom: 1px solid var(--primary);
}

[data-tema="neon"] .admin-sidebar {
    background: #0d0d1a;
    border-right: 1px solid var(--primary);
}

[data-tema="neon"] .admin-topbar {
    background: #0d0d1a;
    border-bottom-color: var(--primary);
}

[data-tema="neon"] .card {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

[data-tema="neon"] .input,
[data-tema="neon"] select.input,
[data-tema="neon"] textarea.input {
    background: #0d0d0d;
    border-color: var(--border);
    color: var(--text);
}

[data-tema="neon"] .btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px rgba(124,58,237,.5);
}
[data-tema="neon"] .btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 0 20px rgba(124,58,237,.7);
}

[data-tema="neon"] .btn-dark {
    background: #1a1a2e;
    color: var(--accent);
    border: 1px solid var(--accent);
}
[data-tema="neon"] .btn-dark:hover { background: rgba(163,230,53,.1); }

[data-tema="neon"] .prize-highlight span { color: var(--accent); }

[data-tema="neon"] .status-pill.status-aberta { background: rgba(163,230,53,.15); color: var(--accent); }

[data-tema="neon"] .data-table th {
    background: #0d0d1a;
    color: var(--accent);
    border-color: var(--border);
}
[data-tema="neon"] .data-table td { border-color: var(--border); color: var(--text); }

[data-tema="neon"] .round-card:hover {
    box-shadow: 0 0 24px rgba(124,58,237,.4);
}

[data-tema="neon"] .topbar-title { color: var(--accent); }

/* ----------------------------------------------------------
   MODO DARK — sobrepõe qualquer tema
   ---------------------------------------------------------- */
[data-dark="1"] {
    --bg:      #0f172a;
    --surface: #1e293b;
    --text:    #f1f5f9;
    --muted:   #94a3b8;
    --border:  #334155;
}

[data-dark="1"] body {
    background: var(--bg);
    color: var(--text);
}

[data-dark="1"] .site-header {
    background: #0a1628;
    border-bottom: 1px solid var(--border);
}

[data-dark="1"] .card,
[data-dark="1"] .admin-content {
    background: var(--surface);
    color: var(--text);
}

[data-dark="1"] .input,
[data-dark="1"] select.input,
[data-dark="1"] textarea.input {
    background: #0f172a;
    border-color: var(--border);
    color: var(--text);
}

[data-dark="1"] .admin-sidebar { background: #0a1628; }
[data-dark="1"] .admin-topbar  { background: #0f172a; border-bottom-color: var(--border); }
[data-dark="1"] .admin-topbar .topbar-title { color: var(--text); }

[data-dark="1"] .data-table th { background: #0a1628; color: var(--text); border-color: var(--border); }
[data-dark="1"] .data-table td { border-color: var(--border); color: var(--text); }
[data-dark="1"] .data-table tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }

[data-dark="1"] .hero-card { background: linear-gradient(135deg, #0a1628 0%, #1e293b 100%); }
[data-dark="1"] .hero-text h1 { color: #f1f5f9; }
[data-dark="1"] .hero-text p  { color: var(--muted); }

/* ----------------------------------------------------------
   SLIDER / CAROUSEL DE BANNERS
   ---------------------------------------------------------- */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    background: #0f172a;
    min-height: 180px;
    max-height: 480px;
}

.slide {
    display: none;
    position: relative;
    cursor: default;
}
.slide.active { display: block; }

.slide img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.slide[data-link]:not([data-link=""]) { cursor: pointer; }

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.25rem .75rem;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0,0,0,.8);
}

/* Nav buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    color: #fff;
    border: 0;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background .15s;
    padding: 0;
}
.slider-btn:hover { background: rgba(0,0,0,.7); }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 5;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.slider-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* Fade animation */
@keyframes slideFadeIn {
    from { opacity: 0; transform: scale(1.02); }
    to   { opacity: 1; transform: scale(1); }
}
.slide.active img {
    animation: slideFadeIn .4s ease;
}

@media (min-width: 600px) {
    .slide img { height: 320px; }
}
@media (min-width: 900px) {
    .slide img { height: 420px; }
    .slider-btn { width: 44px; height: 44px; font-size: 1.6rem; }
}

/* ----------------------------------------------------------
   POP-UP
   ---------------------------------------------------------- */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.72);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: popupFadeIn .25s ease;
}

@keyframes popupFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.popup-box {
    background: var(--surface, #fff);
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,.55);
    animation: popupSlideIn .28s ease;
}

@keyframes popupSlideIn {
    from { transform: translateY(24px) scale(.96); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    color: #fff;
    border: 0;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background .15s;
    line-height: 1;
}
.popup-close:hover { background: rgba(0,0,0,.8); }

.popup-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

.popup-titulo {
    padding: .75rem 1.25rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text, #0f172a);
}

.popup-actions {
    padding: .5rem 1.25rem 1.25rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------
   SIDEBAR — rótulo de seção
   ---------------------------------------------------------- */
.sidebar-section-label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    padding: 8px 16px 2px;
}

/* ----------------------------------------------------------
   UTILITY
   ---------------------------------------------------------- */
.btn-lg { padding: 12px 28px; font-size: 1rem; }
.btn-sm { padding: 5px 12px; font-size: .82rem; }
.btn-danger {
    background: #dc2626;
    color: #fff;
    border: 0;
}
.btn-danger:hover { background: #b91c1c; }

/* ----------------------------------------------------------
   RODADA EM DESTAQUE (CHAMATIVA)
   ---------------------------------------------------------- */
.round-featured {
    position: relative;
    border: 2px solid #f59e0b !important;
    background: linear-gradient(165deg, rgba(245, 158, 11, 0.12) 0%, var(--surface, #fff) 45%) !important;
    box-shadow: 0 8px 28px rgba(245, 158, 11, 0.25), 0 0 0 1px rgba(245, 158, 11, 0.15) !important;
    transform: translateY(-2px);
    transition: transform .2s ease, box-shadow .2s ease;
}

.round-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 34px rgba(245, 158, 11, 0.38) !important;
}

.featured-ribbon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(90deg, #f59e0b, #ea580c);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35);
    animation: featuredPulse 2.2s infinite;
}

@keyframes featuredPulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(234, 88, 12, 0.35); }
    50%      { box-shadow: 0 2px 18px rgba(245, 158, 11, 0.7); }
}

.round-featured .prize-highlight span {
    font-size: 1.2rem;
    font-weight: 800;
}

.btn-featured-cta {
    background: linear-gradient(90deg, #f59e0b, #ea580c) !important;
    color: #fff !important;
    border: 0 !important;
    font-weight: 800 !important;
    letter-spacing: .02em;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.btn-featured-cta:hover {
    filter: brightness(1.08);
    text-decoration: none;
}

[data-tema="neon"] .round-featured {
    border-color: var(--accent, #a3e635) !important;
    background: linear-gradient(165deg, rgba(163, 230, 53, 0.14) 0%, var(--surface, #1a1a2e) 50%) !important;
    box-shadow: 0 8px 28px rgba(163, 230, 53, 0.25) !important;
}
[data-tema="neon"] .featured-ribbon {
    background: linear-gradient(90deg, #a3e635, #22c55e);
    color: #0d0d0d;
}
[data-tema="neon"] .btn-featured-cta {
    background: linear-gradient(90deg, #a3e635, #22c55e) !important;
    color: #0d0d0d !important;
    box-shadow: 0 4px 16px rgba(163, 230, 53, 0.4);
}

/* ----------------------------------------------------------
   POP-UP TIMER (AUTO-FECHAMENTO)
   ---------------------------------------------------------- */
.popup-timer-bar {
    padding: .45rem 1.25rem .7rem;
    font-size: .78rem;
    color: var(--muted, #64748b);
    text-align: center;
}
.popup-timer-track {
    width: 100%;
    height: 4px;
    background: var(--border, #e2e8f0);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}
.popup-timer-fill {
    height: 100%;
    background: var(--primary, #15803d);
}

/* ----------------------------------------------------------
   PWA INSTALL BANNER & NOTIFICAÇÕES TOAST
   ---------------------------------------------------------- */
.nav-pill-btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.pwa-install-banner {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 520px;
    background: var(--surface, #fff);
    color: var(--text, #0f172a);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(0,0,0,.28);
    padding: 10px 12px;
    z-index: 950;
}

.pwa-install-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pwa-install-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.pwa-install-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    font-size: .82rem;
    line-height: 1.3;
}
.pwa-install-text strong { font-size: .9rem; }
.pwa-install-text span { color: var(--muted, #64748b); }

.pwa-install-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.notif-toast-wrap {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 980;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 340px;
    width: calc(100% - 28px);
}

.notif-toast {
    position: relative;
    background: var(--surface, #fff);
    color: var(--text, #0f172a);
    border: 1px solid var(--primary, #15803d);
    border-left: 4px solid var(--primary, #15803d);
    border-radius: 10px;
    padding: 10px 28px 10px 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
    animation: popupSlideIn .25s ease;
}

.notif-toast-title { font-weight: 700; font-size: .88rem; margin-bottom: 2px; }
.notif-toast-body { font-size: .82rem; color: var(--muted, #64748b); }
.notif-toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: 0;
    color: var(--muted, #64748b);
    font-size: .9rem;
    cursor: pointer;
    padding: 2px 4px;
}

/* ----------------------------------------------------------
   STATUS RASCUNHO & MELHORIAS VISUAIS GERAIS
   ---------------------------------------------------------- */
.status-rascunho {
    background: #e0f2fe;
    color: #0369a1;
}

.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark, #14532d) 100%);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .14);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-pill {
    backdrop-filter: blur(6px);
    transition: background .15s ease, transform .1s ease;
}
.nav-pill:hover {
    transform: translateY(-1px);
}

.hero-card {
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .14);
}

.hero-slider {
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
}

.card {
    border-radius: 14px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.round-card {
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
}
.round-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, .1);
}

.round-title {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.01em;
}

.round-meta {
    padding-top: 6px;
    border-top: 1px dashed var(--border, #e2e8f0);
    gap: 6px;
}

.prize-highlight {
    margin-top: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: .95rem;
}

.countdown {
    background: rgba(21, 128, 61, .1);
    color: var(--primary, #15803d);
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .8rem;
}
[data-dark="1"] .countdown,
[data-tema="futebol_escuro"] .countdown,
[data-tema="neon"] .countdown {
    background: rgba(245, 158, 11, .14);
    color: var(--accent, #f59e0b);
}

.lookup-card {
    border-radius: 16px;
    padding: 18px;
}

.site-footer {
    border-top: 1px solid var(--border, #e2e8f0);
    padding: 18px 0;
    margin-top: 16px;
    font-size: .84rem;
    color: var(--muted, #64748b);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* ----------------------------------------------------------
   NOTIFICAÇÕES EM TEMPO REAL NO TOPBAR ADMIN
   ---------------------------------------------------------- */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-notif-mode-btn {
    border: 1px solid var(--border, #cbd5e1);
    background: rgba(22, 163, 74, .1);
    color: #15803d;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}
.admin-notif-mode-btn.is-muted {
    background: rgba(100, 116, 139, .12);
    color: var(--muted, #64748b);
}

.admin-notif-wrap {
    position: relative;
}

.admin-notif-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border, #cbd5e1);
    background: var(--surface, #fff);
    color: var(--text, #0f172a);
    border-radius: 999px;
    padding: 5px 11px;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}
.admin-notif-btn:hover {
    border-color: var(--primary, #15803d);
}

.admin-notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #94a3b8;
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
}
.admin-notif-badge.has-items {
    background: #dc2626;
    animation: featuredPulse 2s infinite;
}

.admin-notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-width: calc(100vw - 24px);
    background: var(--surface, #fff);
    color: var(--text, #0f172a);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0,0,0,.22);
    z-index: 990;
    overflow: hidden;
}

.admin-notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    font-size: .86rem;
}

.admin-notif-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.admin-notif-item {
    display: block;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border, #e2e8f0);
    color: inherit;
    text-decoration: none;
    transition: background .12s;
}
.admin-notif-item:hover {
    background: rgba(100, 116, 139, .08);
    text-decoration: none;
}

.admin-notif-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
}
.admin-notif-val {
    font-weight: 800;
    color: var(--primary, #15803d);
    font-size: .82rem;
}

.admin-notif-foot {
    padding: 8px 12px;
    background: rgba(100, 116, 139, .04);
}
