/* A base do layout (o <style> que ficava no <head> do layouts/fifateste.blade.php até 01/12/2026).
   Fase 3 dos temas (3.4): saiu da página para um arquivo, no MESMO lugar da cascata (o <link> fica onde o <style> estava).
   As cores são as do C1, pelos papéis do tema (passo 3.8). */
:root {

    /* ===== PREMIUM POLISH (fifateste) ===== */
    /* Largura máxima do "shell" central (navbar + sidebar + conteúdo).
       Tudo se alinha a estas bordas, estilo bet365. */
    --shell-max: 1500px;
    --radius-md: 12px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* ===== MARCA LUSA.BET ===== */
}

html {
    font-size: 14px;
    scrollbar-width: thin;
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-attachment: fixed;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== TOP NAVBAR ===== */
.top-navbar {
    height: 48px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Conteúdo da navbar centralizado no mesmo "shell" do conteúdo da página */
.nav-inner {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--shell-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Hamburger (mobile only) */
.nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: var(--text-main);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s var(--ease);
}


.nav-hamburger svg {
    width: 24px;
    height: 24px;
}

/* Drawer backdrop (mobile only) */
.sidebar-backdrop {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    transition: opacity 0.18s var(--ease);
}

.logo:hover {
    opacity: 0.85;
}

/* Marca LusaBet em vetor (novo/marca.blade.php). Com as duas versões, a de fundo claro só aparece onde o tema
   pede (c1.css: as janelas no C1). */
.lb-marca-sobre-claro { display: none !important; }
.lb-marca {
    display: block;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
}

.modal-logo .lb-marca {
    object-position: center;
}

.logo .lb-marca {
    height: 22px;
}

.nav-links {
    display: flex;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-link:hover {
    background: var(--card-bg);
    color: var(--text-main);
}


.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Live Badge */
.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--live-red);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-display {
    background: var(--surface-grad);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 5px 7px 5px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 9px;
}

.balance-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
    /* Sem isso o valor quebra em "R$" / "1234,50" quando o card aperta
       (mobile), o que empurra o card para cima do logo. */
    white-space: nowrap;
}

.balance-value {
    font-variant-numeric: tabular-nums;
}

/* Menor que o card, para caber dentro dele sem competir com o valor */
.balance-refresh-btn,
.balance-eye-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 7px;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}


.balance-refresh-btn:disabled {
    cursor: default;
    opacity: 0.7;
}

.balance-refresh-btn svg,
.balance-eye-btn svg {
    width: 13px;
    height: 13px;
}

/* O olhinho troca de ícone conforme o estado; só um dos dois fica visível.
   O JS marca .is-hidden no botão quando o saldo está oculto. */
.balance-eye-btn .eye-off,
.balance-eye-btn.is-hidden .eye-on {
    display: none;
}

.balance-eye-btn.is-hidden .eye-off {
    display: block;
}

/* Saldo oculto: os pontinhos ficam com a mesma largura do valor real
   (tabular-nums) para o card não "pular" ao alternar. */
.balance-masked {
    letter-spacing: 1px;
}

.balance-refresh-btn.is-refreshing svg {
    animation: balance-refresh-spin 0.7s linear infinite;
}

@keyframes balance-refresh-spin {
    to {
        transform: rotate(360deg);
    }
}

.balance-label {
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-decoration: none;
}


.btn-primary:hover {
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--card-hover);
    border-color: var(--border-light);
}

.btn-ghost {
    color: var(--text-secondary);
    padding: 8px 12px;
}

.btn-ghost:hover {
    background: var(--card-bg);
    color: var(--text-main);
}

/* My Bets Button */
.my-bets-btn {
    position: relative;
}

.pending-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Ações de autenticação (estado deslogado) */
.auth-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Botão Sair (logado) */
.btn-logout {
    border: 1px solid var(--hairline);
    color: var(--text-secondary);
}


/* ===== "AO VIVO" NAV BUTTON (bet365-style) ===== */
.nav-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
    transition: all 0.18s var(--ease);
}



.nav-live-dot {
    width: 8px;
    height: 8px;
    background: var(--live-red);
    border-radius: 50%;
    animation: livePulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* ===== PROFILE AVATAR + DROPDOWN ===== */
.profile-menu {
    position: relative;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-grad);
    border: 1px solid var(--hairline);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.18s var(--ease);
}

.profile-avatar:hover,
.profile-menu.open .profile-avatar {
    border-color: var(--primary);
    box-shadow: var(--glow-primary);
}

.profile-avatar svg {
    width: 22px;
    height: 22px;
}

.profile-avatar .pending-badge {
    top: -3px;
    right: -3px;
    box-shadow: 0 0 0 2px #004937;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    /* 268px: cabe "Verificar conta" + o selo de situação na mesma linha */
    min-width: 268px;
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
    z-index: 1100;
}

.profile-menu.open .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    background: var(--bg-secondary);
}

.profile-dropdown-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}

.profile-dropdown-balance {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.profile-dropdown-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
}

.profile-dropdown-item:hover {
    background: var(--card-hover);
    color: var(--text-main);
}

.profile-dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-dim);
    transition: color 0.15s;
}

.profile-dropdown-item:hover svg {
    color: var(--primary);
}


.profile-dropdown-item.danger:hover svg {
    color: var(--brand-red);
}

.profile-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 4px;
}

/* Selo de verificação, à direita do item "Verificar conta" */
.verify-chip {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
}





/* ===== MAIN LAYOUT ===== */
.main-container {
    display: flex;
    gap: 18px;
    max-width: var(--shell-max);
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    min-height: calc(100vh - 48px);
}

/* Páginas full-width (showSidebar=false, ex.: /sporting e game-play):
   no DESKTOP esconde a coluna fixa da sidebar p/ o conteúdo ocupar tudo.
   No MOBILE a regra não vale (a sidebar vira drawer overlay via hamburguer). */
@media (min-width: 769px) {
    .main-container.no-sidebar .sidebar { display: none; }
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 16px 0;
    overflow-y: auto;
    position: sticky;
    top: 48px;
    height: calc(100vh - 48px);
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-title {
    padding: 0 16px;
    margin-bottom: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.15s;
    cursor: pointer;
}

.sidebar-item:hover {
    background: var(--card-bg);
    color: var(--text-main);
}



/* Destaque discreto pulsante no item Promoção */
.sidebar-item-promo:not(.active) {
    color: var(--primary);
    animation: promoPulse 2.4s ease-in-out infinite;
}

.sidebar-item-promo:not(.active) .sidebar-item-icon {
    color: var(--primary);
}

@keyframes promoPulse {
    0%, 100% {
        background: rgba(0, 255, 136, 0.04);
        border-left-color: rgba(0, 255, 136, 0.25);
    }
    50% {
        background: rgba(0, 255, 136, 0.12);
        border-left-color: var(--primary);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-item-promo:not(.active) {
        animation: none;
    }
}

.sidebar-item-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

.sidebar-item-count {
    margin-left: auto;
    background: var(--card-bg);
    color: var(--text-dim);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}


/* Contador de jogos AO VIVO (FIFA / eBasket). Bolinha pulsante + número,
   no mesmo padrão do badge "N AO VIVO" dos cabeçalhos de liga. */
.sidebar-item-count-live {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sidebar-item-count-live[hidden] {
    display: none;
}

.sidebar-item-count-live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    animation: sidebarLiveDot 1.6s ease-in-out infinite;
}

@keyframes sidebarLiveDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar-item-count-live::before { animation: none; }
}

.sidebar-item-action {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
}



/* Compact match list inside sidebar (active league) */
.sidebar-matches {
    padding: 6px 10px 12px 34px;
}

.sidebar-match {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 10px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, border-color 0.15s;
}


.sidebar-match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.sidebar-match-time {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

.sidebar-match-market {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.4px;
    max-width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-match-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.sidebar-match-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sidebar-match-team {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
    min-width: 0;
}

.sidebar-match-score {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    flex: none;
    min-width: 14px;
    text-align: right;
}

.sidebar-match-odds {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
}

.sidebar-odd {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 32px;
    border-radius: 8px;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.sidebar-odd-label {
    font-size: 0.62rem;
    color: var(--text-dim);
    font-weight: 700;
}

.sidebar-odd-value {
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--primary);
}

.sidebar-odd.locked {
    opacity: 0.55;
}

.sidebar-match-markets {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-match-markets-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.65rem;
    color: var(--text-dim);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

.sidebar-match-markets-label:hover {
    color: var(--text-secondary);
}

.sidebar-markets-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
    opacity: 0.75;
}

.sidebar-match-markets.expanded .sidebar-markets-chevron {
    transform: rotate(180deg);
}

.sidebar-match-markets-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sidebar-chip {
    max-width: 100%;
    font-size: 0.68rem;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-markets-panel {
    display: none;
    margin-top: 8px;
    padding-top: 8px;
    gap: 8px;
    flex-direction: column;
    max-height: 360px;
    overflow-y: auto;
}

.sidebar-match-markets.expanded .sidebar-markets-panel {
    display: flex;
}

.sidebar-market {
    border-radius: 10px;
    overflow: hidden;
}

.sidebar-market-name {
    padding: 8px 10px;
    font-size: 0.72rem;
    font-weight: 800;
}

.sidebar-market-odds {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 8px 10px 10px;
}

.sidebar-market-odd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 8px;
}

.sidebar-market-odd-name {
    font-size: 0.68rem;
    color: var(--text-secondary);
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    min-width: 0;
    line-height: 1.15;
}

.sidebar-market-odd-price {
    font-size: 0.78rem;
    font-weight: 900;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
    flex: none;
}

.sidebar-market-more {
    grid-column: 1 / -1;
    font-size: 0.68rem;
    color: var(--text-dim);
    padding: 2px 2px 0;
}

/* ===== CONTENT AREA ===== */
.content-area {
    flex: 1;
    min-width: 0;
    padding: 16px 0;
    overflow-y: auto;
}

/* (o @yield('layout-styles') que ficava aqui no <style> do layout agora fica no layout, logo depois do <link> deste arquivo) */

/* ===== MODALS ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    /* Respiro nas bordas para o conteúdo alto não colar na tela. */
    padding: 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    border-radius: 12px;
    padding: 32px;
    max-width: 400px;
    width: 90%;
    animation: modalSlideIn 0.25s ease-out;
    position: relative;
    /* Sem isto o conteúdo que passa da altura da tela (verificação de
       conta com as três prévias, cadastro no celular) fica cortado
       FORA da área visível e sem rolagem — o botão do fim do modal
       simplesmente some. dvh depois de vh: navegador antigo ignora. */
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}


.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-dim);
}

/* Logo dentro dos modais (login/cadastro) */
.modal-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin-bottom: 18px;
}

.modal-logo .lb-marca {
    height: 30px;
}

/* Aceite dos termos no cadastro */
.register-terms {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 4px 0 18px;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-dim);
}

.register-terms input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 1px;
    flex-shrink: 0;
    accent-color: var(--secondary, var(--brand-green));
    cursor: pointer;
}

.register-terms .terms-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.register-terms .terms-link:hover {
    text-decoration: underline;
}

/* Modal de Termos e Condições */
.terms-modal-content {
    max-width: 560px;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    padding: 28px 28px 24px;
}

.terms-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 4px;
    -webkit-overflow-scrolling: touch;
}

.terms-body::-webkit-scrollbar {
    width: 7px;
}

.terms-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.terms-body h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 18px 0 6px;
}

.terms-body h3:first-child {
    margin-top: 0;
}

.terms-body p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0 0 4px;
}

.terms-modal-footer {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

/* Dois campos lado a lado (nome e sobrenome no cadastro). */
.form-group-duplo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-group-duplo .form-input {
    min-width: 0;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
}


/* Campo preenchido pelo sistema e não editável (ex.: CPF do titular no saque) */
.form-input.is-locked {
    cursor: not-allowed;
    padding-right: 38px;
}

.form-input.is-locked:focus {
    border-color: var(--border);
}

.form-lock-wrap {
    position: relative;
}

.form-lock-wrap .form-lock-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-dim);
    pointer-events: none;
}

.form-input::placeholder {
    color: var(--text-dim);
}

.error-message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    display: none;
}

.error-message.active {
    display: block;
}

/* ===== DEPOSIT MODAL ===== */
.deposit-amount-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 14px;
    transition: border-color 0.18s var(--ease);
}

.deposit-amount-wrap:focus-within {
    border-color: var(--primary);
}

.deposit-currency {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dim);
    margin-right: 6px;
}

.deposit-amount-input {
    padding: 14px 0 !important;
    font-size: 1.4rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}


.deposit-chips {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.deposit-chip {
    flex: 1;
    padding: 8px 0;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s var(--ease);
}

.deposit-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.deposit-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* A promoção só do domínio (28/11/2026): o bônus em cada botão de valor e na linha do valor digitado. */
.deposit-chip-bonus { display: block; margin-top: 2px; font-size: 0.7rem; font-weight: 700; }
.deposit-chip.tem-bonus { padding: 6px 0; line-height: 1.25; }
.dep-bonus-linha { font-size: 0.8rem; color: var(--text-secondary); }
.dep-bonus-linha[hidden] { display: none; }

/* O Depósito Premiado na janela de depósito (04/11/2026): a regra e, sem o Telegram ligado, o botão para ligar. */
.dep-bonus {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    line-height: 1.35;
}

.dep-bonus[hidden] { display: none; }

.dep-bonus-texto { flex: 1; min-width: 0; }


.dep-bonus-ligar {
    flex: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.78rem;
    white-space: nowrap;
}

.deposit-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.deposit-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warning);
    animation: livePulse 1.5s ease-in-out infinite;
}


.deposit-status.paid .deposit-status-dot {
    background: var(--primary);
    animation: none;
}

.deposit-qr-box {
    display: none;
    justify-content: center;
    margin: 4px 0 16px;
}

.deposit-qr-box.show {
    display: flex;
}

.deposit-qr-box .deposit-qr-inner {
    padding: 12px;
    border-radius: 12px;
    line-height: 0;
}

.deposit-qr-box img {
    display: block;
    width: 200px;
    height: 200px;
    image-rendering: pixelated;
}

.deposit-pix-box {
    margin: 8px 0 12px;
}

.deposit-pix-code {
    width: 100%;
    resize: none;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-secondary);
    font-family: monospace;
    font-size: 0.78rem;
    word-break: break-all;
}

/* ===== BET SLIP MODAL ===== */
.bet-slip-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.bet-slip-modal.active {
    display: flex;
}

.bet-slip-content {
    border-radius: 12px;
    width: 90%;
    max-width: 380px;
    animation: modalSlideIn 0.2s ease-out;
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    overflow: hidden;
}

.bet-slip-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-secondary);
}

.bet-slip-title {
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* O .modal-close é absoluto e, sem ancestral posicionado, o "×" do cupom
   ia parar no canto da TELA (em cima do topo do site). Aqui ele entra no
   fluxo do header e fica onde deve, ao lado do título. */
.bet-slip-header .modal-close {
    position: static;
    flex-shrink: 0;
}

.bet-slip-body {
    padding: 20px;
    overflow-y: auto;
}

.bet-slip-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

/* Bet Selection Styles */
.bet-selection {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.bet-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.bet-selection-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.bet-selection-odd {
    font-size: 1.25rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
}

.bet-match-info {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.bet-market-info {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.bet-stake-input {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    font-family: inherit;
    transition: all 0.2s;
}

.bet-stake-input:focus {
    border-color: var(--primary);
}

.bet-stake-input::-webkit-outer-spin-button,
.bet-stake-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== Valores rápidos =====
   Três atalhos que o próprio usuário define (ficam no navegador, em
   localStorage). Um toque preenche o campo — no celular evita abrir o
   teclado só para digitar o valor de sempre. */
.bet-quick-stakes {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.bet-quick-chip {
    flex: 1;
    min-width: 0;
    padding: 11px 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bet-quick-chip:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}


.bet-quick-action {
    flex: 0 0 auto;
    width: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s, color 0.15s;
}

.bet-quick-action:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.bet-quick-action.save {
    width: auto;
    padding: 0 12px;
    border-color: var(--primary);
    color: var(--primary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
}

.bet-quick-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 11px 4px;
    background: var(--bg-color);
    border: 1px solid var(--accent);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.bet-quick-input:focus {
    border-color: var(--primary);
}

.bet-quick-hint {
    margin-top: 7px;
    font-size: 0.7rem;
    color: var(--text-dim);
    text-align: center;
}

/* Só aparece no celular (ver media query) */
.bet-footer-return {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.bet-footer-return strong {
    font-size: 1rem;
    color: var(--primary);
}

/* ===== Crédito de aposta (saldo de bônus) no bilhete ===== */
.bet-credit-box {
    display: none;
    /* o JS mostra só quando existe crédito */
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-color);
    transition: border-color 0.18s, background 0.18s;
}


.bet-credit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

.bet-credit-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.bet-credit-check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--accent);
    cursor: pointer;
}

.bet-credit-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.bet-credit-box.on .bet-credit-label {
    color: var(--text-main);
}

.bet-credit-value {
    font-size: 0.95rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.bet-credit-note {
    margin-top: 7px;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--text-dim);
}


/* ===== Pagar com: saldo em reais ou saldo em dólar (04/10/2026) =====
   O bloco em si é o .sd-pagar de public/css/novo/saldo-dolar.css, o mesmo dos
   outros bilhetes; aqui só o encaixe no cupom. Aparece só para quem tem dólar. */
/* O handicap asiático novo (05/11/2026): quanto volta em cada resultado depois da aposta. */
.bet-hc { display: grid; gap: 4px; margin: 10px 0 2px; padding: 10px 12px; border-radius: 10px; }
.bet-hc[hidden] { display: none; }
.bet-hc-cab { font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.bet-hc-linha { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline; min-height: 24px; font-size: 13px; }
.bet-hc-linha b { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.bet-hc-linha small { grid-column: 1 / -1; margin-top: -2px; font-size: 11px; }
.bet-pay-with {
    margin-top: 12px;
}

.bet-pay-with[hidden] {
    display: none;
}

/* "Pagar com" vem antes do valor (bilhete em dólar, 06/10/2026): o campo desce um pouco quando ele aparece. */
.bet-pay-with:not([hidden]) + .bet-stake-input {
    margin-top: 10px;
}

.bet-pay-with .sd-pagar {
    margin: 0;
}

/* Só a opção que não está escolhida: a escolhida (.on) fica com as cores do saldo-dolar.css. */
.bet-pay-with .sd-pagar-op:not(.on) {
    background: var(--bg-color);
    border-color: var(--border);
}


.bet-potential-win {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.bet-potential-label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.bet-potential-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.bet-place-button {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.bet-place-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.bet-place-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.bet-processing {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

.bet-processing.active {
    display: flex !important;
}

/* Enviando a aposta: rodinha + "Processando sua aposta" com reticências
   e um brilho atravessando o botão. O botão fica desabilitado, mas sem
   o esmaecido de desabilitado (senão parece travado). */
.bet-processing {
    gap: 10px;
    overflow: hidden;
    font-weight: 800;
}

.bet-processing::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 50%;
    animation: betShine 1.3s ease-in-out infinite;
}

.bet-place-button:disabled:has(.bet-processing.active) {
    opacity: 1;
}

.bet-processing-texto {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.bet-processing-texto i {
    font-style: normal;
}

.bet-processing-texto i b {
    animation: betDots 1.2s ease-in-out infinite;
}

.bet-processing-texto i b:nth-child(2) { animation-delay: 0.2s; }
.bet-processing-texto i b:nth-child(3) { animation-delay: 0.4s; }

@keyframes betShine {
    to { left: 120%; }
}

@keyframes betDots {
    0%, 80%, 100% { opacity: 0.2; }
    40%           { opacity: 1; }
}

.bet-spinner {
    position: relative;
    z-index: 1;
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
    .bet-processing::after { animation: none; display: none; }
    .bet-processing-texto i b { animation: none; opacity: 1; }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Locked Odds */
.odd-box.locked,
.odd-item.locked {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sidebar {
        width: 210px;
    }
}

@media (max-width: 768px) {
    /* Sidebar turns into a slide-in drawer */
    .sidebar {
        display: block;
        position: fixed;
        top: 48px;
        left: 0;
        height: calc(100vh - 48px);
        width: 280px;
        max-width: 82vw;
        transform: translateX(-100%);
        transition: transform 0.28s var(--ease);
        z-index: 1500;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        top: 48px;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s var(--ease), visibility 0.28s;
        z-index: 1400;
    }

    .sidebar-backdrop.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .main-container {
        padding: 0;
        gap: 0;
    }

    .content-area {
        padding: 12px;
    }

    .top-navbar {
        padding: 0 10px;
        gap: 8px;
    }

    .nav-left {
        gap: 10px;
        min-width: 0;
    }

    .logo {
        font-size: 1rem;
    }

    .logo .lb-marca {
        height: 18px;
    }

    .nav-live-btn {
        padding: 6px 11px;
        font-size: 0.8rem;
    }

    .nav-right {
        gap: 10px;
    }

    .user-section {
        gap: 10px;
    }

    /* Compacto porque agora são dois botões dentro do card (olhinho +
       atualizar) e o topo do mobile não tem folga. */
    .balance-display {
        padding: 4px 5px 4px 8px;
        gap: 5px;
    }

    .balance-label {
        font-size: 0.58rem;
    }

    .balance-value {
        font-size: 0.82rem;
    }

    .balance-refresh-btn,
    .balance-eye-btn {
        width: 21px;
        height: 21px;
    }

    .balance-refresh-btn svg,
    .balance-eye-btn svg {
        width: 11px;
        height: 11px;
    }

    .profile-avatar {
        width: 36px;
        height: 36px;
    }

    .profile-avatar svg {
        width: 20px;
        height: 20px;
    }

    /* Login/register buttons stay compact */
    .auth-actions .btn {
        padding: 8px 12px;
    }

    /* ===== Bilhete de aposta como folha fixa no rodapé =====
       Antes o cupom era um modal centralizado de altura livre: quando o
       teclado subia, o botão "Fazer Aposta" saía da área visível e era
       preciso rolar para concluir. Agora a folha é presa embaixo, o
       conteúdo rola por dentro e o rodapé (valor + botão) fica sempre
       visível. A altura vem do visualViewport (--bet-vvh), então o
       teclado do celular encolhe a folha em vez de empurrá-la. */
    .bet-slip-modal {
        align-items: flex-end;
        top: var(--bet-vvtop, 0px);
        height: var(--bet-vvh, 100%);
    }

    .bet-slip-content {
        width: 100%;
        max-width: none;
        max-height: 100%;
        border-radius: 16px 16px 0 0;
        animation: betSheetUp 0.22s var(--ease, ease-out);
    }

    .bet-slip-header {
        padding: 12px 16px;
    }

    .bet-slip-body {
        padding: 16px;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .bet-slip-footer {
        position: sticky;
        bottom: 0;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .bet-footer-return {
        display: flex;
    }

    .bet-quick-chip,
    .bet-quick-input {
        padding-top: 13px;
        padding-bottom: 13px;
    }
}

@keyframes betSheetUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Era 380px; subiu para 430 (limite dos celulares "grandes") porque o
   card do saldo ganhou o olhinho e passou a encostar no logo escrito.
   Com a marca única (sem brasão à parte) o logo encolhe em vez de sumir. */
@media (max-width: 430px) {
    .logo .lb-marca {
        height: 13px;
    }

    .balance-label {
        display: none;
    }

    /* Em tela estreita o "Ao Vivo" do topo não cabia ao lado do card e
       ficava metade atrás dele (já acontecia antes do olhinho, que só
       apertou mais). O mesmo destino está no menu do hambúrguer. */
    .nav-live-btn {
        display: none;
    }
}
