/*
 * Cabeçalho e coluna do site no molde C2 (aprovado pelo dono em 28/09): uma coluna
 * só com os produtos em lista e, nas páginas de esportes, os esportes dentro de
 * "Esportes"; um botão recolhe a coluna num trilho de ícones (C4). Carregado depois
 * do CSS do layout (fifateste): só acrescenta ou ajusta, não reescreve o resto.
 */

/* ------------------------------------------------------------ cabeçalho */

.top-navbar { background: #073d2b; }
.nav-inner { gap: 14px; }
.nav-left { flex: 1 1 auto; min-width: 0; gap: 14px; }

/* O logo ocupa a largura da coluna: a busca começa onde começa o conteúdo
   (coluna + o espaço de 18 px entre ela e a página, menos o espaço do cabeçalho). */
@media (min-width: 1025px) {
    .sc-com-coluna-topo .logo { width: calc(var(--sc-coluna) + 4px); flex: none; }
    html.sc-recolhida .sc-com-coluna-topo .logo { width: calc(var(--sc-trilho) + 4px); }
    html.sc-recolhida .sc-com-coluna-topo .logo .lb-marca { height: 12px; }
}

.nav-busca {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 440px;
    min-width: 180px;
    height: 36px;
    padding: 0 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    color: var(--text-secondary);
}
.nav-busca:focus-within { border-color: rgba(0, 255, 136, 0.55); }
.nav-busca svg { width: 15px; height: 15px; flex: none; }
.nav-busca input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: var(--text-main);
    font: inherit;
    font-size: 0.93rem;
}
.nav-busca input::placeholder { color: var(--text-secondary); opacity: 0.85; }
.nav-busca input::-webkit-search-cancel-button { filter: invert(1); opacity: 0.6; }

.nav-busca-resultados {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 320px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.55);
    padding: 6px;
    z-index: 1200;
}
.nav-busca-resultados[hidden] { display: none; }
.nbr-grupo { padding: 8px 10px 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); }
.nbr-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text-main); text-decoration: none; font-size: 0.9rem; }
.nbr-item:hover, .nbr-item.ativo { background: rgba(255, 255, 255, 0.06); }
.nbr-item small { display: block; font-size: 0.76rem; color: var(--text-dim); }
.nbr-item img { width: 44px; height: 32px; object-fit: cover; border-radius: 6px; background: #161b22; flex: none; }
.nbr-vivo { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--live-red); }
.nbr-texto { flex: 1; min-width: 0; }
.nbr-texto span, .nbr-texto small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.nbr-vazio { padding: 12px 10px; font-size: 0.88rem; color: var(--text-dim); }
.nbr-todos { display: block; margin: 4px; padding: 9px 10px; border-radius: 8px; background: rgba(0, 255, 136, 0.08); color: var(--primary); text-decoration: none; font-weight: 700; font-size: 0.86rem; text-align: center; }

.nav-depositar {
    height: 36px;
    padding: 0 16px;
    background: var(--primary);
    color: #0f1114;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: 0.93rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.15s;
}
.nav-depositar:hover { filter: brightness(1.08); }

.nav-apostas {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 700;
    white-space: nowrap;
}
.nav-apostas:hover { background: rgba(255, 255, 255, 0.08); }
.nav-apostas svg { width: 17px; height: 17px; flex: none; }
/* O mesmo selo de apostas pendentes que ficava no avatar (o JS acha pelo id). */
.nav-apostas .pending-badge {
    position: static;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--primary);
    color: #0f1114;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    box-shadow: none;
}

@media (max-width: 1200px) { .nav-apostas-texto { display: none; } }
@media (max-width: 1024px) { .nav-busca { display: none; } }
@media (max-width: 768px) {
    .nav-depositar, .nav-apostas { display: none; }
    /* No celular o selo "ao vivo / offline" da conexão do FIFA encavalava no logo. */
    .sc-com-coluna-topo #connectionStatus { display: none !important; }
    .nav-left { flex: 0 1 auto; }
}

/* ------------------------------------------------------------ coluna */

:root { --sc-coluna: 256px; --sc-trilho: 72px; }

@media (min-width: 769px) {
    .sidebar.sc-coluna {
        width: var(--sc-coluna);
        padding: 8px 0 16px;
        display: flex;
        flex-direction: column;
    }
    html.sc-recolhida .sidebar.sc-coluna { width: var(--sc-trilho); }
}

.sc-coluna .sidebar-item { border-left: 3px solid transparent; font-size: 0.93rem; font-weight: 600; color: #d7dadf; padding: 9px 14px; gap: 10px; }
.sc-coluna .sidebar-item .sidebar-item-icon { color: var(--text-secondary); }
.sc-coluna .sidebar-item.active { font-weight: 800; color: var(--text-main); }
.sc-coluna .sidebar-item.active .sidebar-item-icon { color: var(--primary); }
.sc-item-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sc-recolher {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin: 0 10px 6px auto;
    height: 28px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.sc-recolher:hover { color: var(--text-main); border-color: var(--border-light); }
.sc-recolher svg { width: 14px; height: 14px; transition: transform 0.2s; }
html.sc-recolhida .sc-recolher { margin: 0 12px 6px; justify-content: center; padding: 0; }
html.sc-recolhida .sc-recolher svg { transform: rotate(180deg); }
html.sc-recolhida .sc-recolher-texto { display: none; }

/* Gaveta do celular: logo, fechar, saldo e Depositar (ou Entrar/Registrar). */
.sc-gaveta-topo, .sc-gaveta-conta { display: none; }

/* ------------------------------------------------------------ trilho (recolhida) */

@media (min-width: 769px) {
    html.sc-recolhida .sc-coluna .sidebar-item {
        flex-direction: column;
        gap: 3px;
        padding: 8px 2px;
        font-size: 0.64rem;
        font-weight: 700;
        text-align: center;
        position: relative;
    }
    html.sc-recolhida .sc-coluna .sc-item-nome { width: 100%; white-space: nowrap; }
    html.sc-recolhida .sc-coluna .sidebar-item-count {
        position: absolute;
        top: 3px;
        right: 8px;
        margin: 0;
        padding: 0 4px;
        font-size: 0.6rem;
    }
    html.sc-recolhida .sc-coluna .sidebar-item-count-live::before { display: none; }
}

/* ------------------------------------------------------------ esportes dentro da coluna */

.sc-esportes { margin: 0 8px 6px 22px; border-left: 1px solid var(--border); font-size: 0.86rem; }
.sc-esportes:empty { display: none; }
.sc-esp-linha, .sc-esp-esporte, .sc-esp-liga, .sc-esp-mais {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 7px 10px;
    background: transparent;
    border: 0;
    border-radius: 0 8px 8px 0;
    color: var(--text-main);
    font: inherit;
    font-size: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.sc-esp-linha { font-weight: 700; }
.sc-esp-esporte { font-weight: 800; }
.sc-esp-liga { padding: 5px 10px 5px 30px; color: var(--text-secondary); font-weight: 500; }
.sc-esp-mais { color: var(--primary); font-weight: 700; }
.sc-esp-liga.sc-esp-mais { color: var(--primary); }
.sc-esp-linha:hover, .sc-esp-esporte:hover, .sc-esp-liga:hover, .sc-esp-mais:hover { background: rgba(255, 255, 255, 0.05); }
.sc-esp-linha.active, .sc-esp-esporte.active, .sc-esp-liga.active { background: rgba(0, 255, 136, 0.1); }
.sc-esp-liga.active { color: var(--text-main); font-weight: 700; }
.sc-esp-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-esp-icone { width: 18px; flex: none; text-align: center; }
.sc-esp-curto { display: none; }
.sc-esp-ponto { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--live-red); }
.sc-esp-linha.active .sc-esp-ponto { box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.25); }
/* Contagens em colunas fixas: os números ficam alinhados de cima a baixo. */
.sc-esp-vivos { min-width: 20px; padding: 0 5px; border-radius: 999px; background: var(--live-red); color: #fff; font-size: 0.66rem; font-weight: 800; font-style: normal; line-height: 16px; text-align: center; flex: none; }
.sc-esp-total { width: 26px; flex: none; text-align: right; color: var(--text-dim); font-weight: 600; }

@media (min-width: 769px) {
    html.sc-recolhida .sc-esportes { margin: 2px 6px 6px; border-left: 0; font-size: 0.62rem; }
    html.sc-recolhida .sc-esp-linha, html.sc-recolhida .sc-esp-esporte {
        flex-direction: column;
        gap: 3px;
        padding: 7px 2px;
        border-radius: 8px;
        text-align: center;
        font-weight: 700;
    }
    html.sc-recolhida .sc-esp-nome { display: none; }
    html.sc-recolhida .sc-esp-curto { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.62rem; }
    html.sc-recolhida .sc-esp-icone { width: auto; font-size: 1rem; }
    html.sc-recolhida .sc-esp-total, html.sc-recolhida .sc-esp-liga, html.sc-recolhida .sc-esp-mais { display: none; }
}

/*
 * Na lista de jogos (computador), a tira de esportes, a busca e a coluna de
 * competições da página saem: tudo isso mora agora na coluna do site e na
 * busca do cabeçalho. No celular a página continua como era.
 */
@media (min-width: 1025px) {
    html.sc-esportes-ativos .sp-page .sp-nav,
    html.sc-esportes-ativos .sp-page .sp-strip,
    html.sc-esportes-ativos .sp-page .sp-comps,
    html.sc-esportes-ativos .sp-page .sp-comps-abrir { display: none !important; }
    html.sc-esportes-ativos .sp-page .sp-grade-in { display: block; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet: a busca do cabeçalho some, então a da página volta. */
    html.sc-esportes-ativos .sp-page .sp-strip,
    html.sc-esportes-ativos .sp-page .sp-comps,
    html.sc-esportes-ativos .sp-page .sp-comps-abrir { display: none !important; }
    html.sc-esportes-ativos .sp-page .sp-grade-in { display: block; }
}

/* ------------------------------------------------------------ celular */

@media (max-width: 768px) {
    .sidebar.sc-coluna { width: 304px; max-width: 86vw; padding: 0 0 16px; top: 0; height: 100vh; height: 100dvh; z-index: 2100; }
    .sidebar-backdrop { top: 0; z-index: 2050; }
    .sc-recolher { display: none; }
    .sc-gaveta-topo {
        display: flex;
        align-items: center;
        gap: 10px;
        height: 52px;
        padding: 0 14px;
        border-bottom: 1px solid var(--border);
    }
    .sc-gaveta-logo { display: inline-flex; align-items: center; text-decoration: none; }
    .sc-gaveta-logo .lb-marca { display: block; width: auto; height: 20px; }
    .sc-gaveta-fechar {
        margin-left: auto;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--card-bg);
        border: 0;
        border-radius: 50%;
        color: var(--text-main);
        cursor: pointer;
    }
    .sc-gaveta-fechar svg { width: 16px; height: 16px; }
    .sc-gaveta-conta { display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); }
    .sc-conta-logado, .sc-conta-visitante { display: flex; gap: 8px; }
    .sc-conta-logado { display: none; }
    html.lusa-logado .sc-conta-logado { display: flex; }
    html.lusa-logado .sc-conta-visitante { display: none; }
    .sc-conta-visitante .btn { flex: 1; }
    .sc-saldo {
        flex: 1;
        display: flex;
        align-items: center;
        height: 40px;
        padding: 0 12px;
        background: var(--bg-color);
        border: 1px solid var(--border);
        border-radius: 10px;
        font-weight: 700;
    }
    .sc-depositar {
        height: 40px;
        padding: 0 14px;
        background: var(--primary);
        color: #0f1114;
        border: 0;
        border-radius: 10px;
        font: inherit;
        font-weight: 800;
        cursor: pointer;
    }
    .sc-coluna .sidebar-item { padding: 11px 14px; font-size: 1rem; }
    .sc-esportes { font-size: 0.93rem; }
    .sc-esp-linha, .sc-esp-esporte, .sc-esp-liga { padding-top: 9px; padding-bottom: 9px; }
}

/* ------------------------------------------------------------ cadastro: país */

#registerForm select.form-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b8bcc2' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}
#registerForm select.form-input option { background: #1a1d21; color: #fff; }

/* ------------------------------------------------------------ depósito: Pix ou cripto (28/09) */

.dep-abas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 16px; background: var(--bg-color); border: 1px solid var(--border); border-radius: 10px; }
.dep-abas[hidden] { display: none; }
.dep-aba { height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); font: inherit; font-weight: 700; cursor: pointer; }
.dep-aba.ativo { background: var(--primary); color: #0f1114; }

.cripto-moedas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 236px; overflow-y: auto; padding-right: 2px; }
.cripto-moeda { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 10px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; color: var(--text-main); font: inherit; text-align: left; cursor: pointer; }
.cripto-moeda b { font-size: 0.9rem; }
.cripto-moeda small { font-size: 0.72rem; color: var(--text-dim); }
.cripto-moeda.ativo { border-color: var(--primary); background: rgba(0, 255, 136, 0.08); }
.cripto-moeda.ativo small { color: var(--text-secondary); }

.cripto-linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 8px; }
.cripto-rotulo { color: var(--text-secondary); font-size: 0.85rem; }
.cripto-valor { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.cripto-valor b { color: var(--primary); }
.cripto-aviso { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 165, 2, 0.1); border: 1px solid rgba(255, 165, 2, 0.35); color: #ffd28a; font-size: 0.82rem; line-height: 1.45; }
.cripto-aviso b { color: #fff; }
.cripto-aviso-forte { margin-top: 8px; background: rgba(230, 57, 70, 0.12); border-color: rgba(230, 57, 70, 0.4); color: #ffb3b9; }
.cripto-endereco { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 10px 12px; background: var(--bg-color); border: 1px solid var(--border); border-radius: 10px; }
.cripto-endereco code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 0.82rem; color: var(--text-main); }
.cripto-copiar { flex: none; height: 30px; padding: 0 10px; border: 1px solid var(--border-light); border-radius: 8px; background: transparent; color: var(--text-main); font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.cripto-copiar:hover { border-color: var(--primary); color: var(--primary); }

/* ------------------------------------------------------------------ depósito em cripto: o que acontece com o dinheiro (02/10/2026)
   Um cliente depositou em cripto, achou que não dava para apostar e sacou. A aba diz o que o valor vira e por que
   vale a pena; a aba Pix convida para o cripto. */
.dep-aba-selo { display: inline-flex; align-items: center; height: 16px; margin-left: 6px; padding: 0 5px; border-radius: 5px; background: rgba(0, 255, 136, 0.16); color: var(--primary); font-style: normal; font-size: 10px; font-weight: 900; letter-spacing: 0.03em; vertical-align: 1px; }
.dep-aba.ativo .dep-aba-selo { background: rgba(15, 17, 20, 0.18); color: #0f1114; }
.dep-aba-selo[hidden] { display: none; }
.cripto-como { margin: 0 0 14px; }
.cripto-como-lista { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 8px; border-radius: 12px; border: 1px solid rgba(0, 255, 136, 0.22); background: rgba(0, 255, 136, 0.05); }
.cripto-como-lista li { position: relative; padding-left: 26px; font-size: 0.84rem; line-height: 1.45; color: var(--text-main); }
.cripto-como-lista li::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1114' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.cripto-como-lista li[hidden], .cripto-como-lista[hidden], .cripto-como-dolar[hidden] { display: none; }
.cripto-como-dolar { margin: 0; font-size: 0.84rem; }
.cripto-onde { margin: -8px 0 14px; text-align: center; font-size: 0.82rem; line-height: 1.5; color: var(--text-secondary); }
.cripto-onde[hidden] { display: none; }
.cripto-apostar { display: flex; width: 100%; justify-content: center; margin-top: 12px; padding: 13px; font-size: 1rem; }
.cripto-apostar[hidden] { display: none; }
.dep-convite { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(0, 255, 136, 0.35); background: rgba(0, 255, 136, 0.04); }
.dep-convite[hidden] { display: none; }
.dep-convite-texto { display: grid; gap: 2px; min-width: 0; font-size: 0.8rem; line-height: 1.4; color: var(--text-secondary); }
.dep-convite-texto b { color: var(--text-main); font-size: 0.86rem; }
.dep-convite-botao { flex: none; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--primary); background: transparent; color: var(--primary); font: inherit; font-size: 0.8rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.dep-convite-botao:hover { background: rgba(0, 255, 136, 0.12); }
@media (max-width: 480px) {
    .dep-convite { flex-direction: column; align-items: stretch; }
    .dep-convite-botao { height: 38px; }
}
/* Creditado no saldo em dólar: a saída para quem queria apostar em esportes (03/10/2026). */
.cripto-passar { display: flex; width: 100%; justify-content: center; margin-top: 8px; padding: 11px; border: 1px solid var(--border-light); border-radius: 10px; background: transparent; color: var(--text-main); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.cripto-passar:hover { border-color: var(--primary); color: var(--primary); }
.cripto-passar[hidden] { display: none; }
