/* ============================================================
   RASPA PREMIO â€” Design System
   Estrutura idÃªntica ao raspapremioo.com
   Cores controladas via CSS vars (admin-configurÃ¡vel)
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Tema â€” sobrescritos pelo JS com valores do admin */
    --cp: #1da639;          /* primary (verde) */
    --ca: #fcd516;          /* accent / CTA (amarelo) */
    --ca-dark: #e0bd12;     /* accent escuro */
    --cp-dim: #1da63922;    /* primary transparente */
    --ca-dim: #fcd51622;    /* accent transparente */

    /* Layout â€” fixos */
    --bg:        #000000;   /* full black */
    --bg-nav:    #000000;
    --bg-card:   #1C1E22;
    --bg-card2:  #24262B;
    --bg-sect:   #171717;
    --border:    #2d3139;
    --border2:   #1a1d1a;

    /* Texto */
    --tx-title:  #ffffff;
    --tx-body:   #98A7B5;
    --tx-muted:  #656E78;
    --tx-ph:     #4D565E;

    /* Misc */
    --radius:    10px;
    --nav-h:     56px;
    --bot-h:     60px;
    --danger:    #e53e3e;   /* vermelho semântico (erros, excluir, rejeitar) */
    --danger-dim:#e53e3e22;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--tx-body);
    font-family: 'Lato', sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.ui-icon,
.ui-icon-inline,
.btn-icon,
.header-balance-icon,
.section-link-icon,
.section-title-icon,
.back-btn-icon,
.profile-item-icon,
.profile-chevron-icon,
.toast-icon-svg,
.winner-thumb-icon,
.game-card-placeholder-icon,
.empty-icon,
.inline-note-icon,
.hero-icon-svg,
.support-icon-svg,
.admin-logo-icon,
.admin-stat-icon,
.action-icon,
.tx-svg,
.scratch-overlay-icon,
.promo-pix-icon,
.award-fallback-icon,
.symbol-inline-icon,
.result-icon-svg {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    flex-shrink: 0;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
}

/* === SPLASH === */
#splash {
    position: fixed;
    inset: 0;
    background: var(--bg-nav);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    z-index: 9999;
}

.splash-logo {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--ca);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.splash-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,191,57,0.15);
    border-top-color: var(--ca);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--cp); border-radius: 2px; }

/* ============================================================
   HEADER / NAV TOP
   ============================================================ */
.nav-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    height: var(--nav-h);
    background: var(--bg-nav);
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 8px;
    z-index: 200;
    border-bottom: 1px solid #111;
}

/* Logo */
.header-logo {
    flex: 1;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    min-width: 0;
}

.header-logo-img {
    height: 34px;
    max-width: 160px;
    object-fit: contain;
}

.header-logo-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--ca);
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* AÃ§Ãµes do header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* BotÃ£o Entrar (deslogado) */
.btn-entrar {
    background: transparent;
    border: 1.5px solid #444;
    color: var(--tx-title);
    border-radius: 8px;
    padding: 7px 16px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.2s;
}
.btn-entrar:active { opacity: 0.8; }

/* BotÃ£o Registrar (deslogado) â€” accent */
.btn-registrar {
    background: var(--ca);
    color: var(--ca-text);
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.btn-registrar:active { background: var(--ca-dark); }

/* Chip de saldo (logado) */
.hdr-balance-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 3px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    font-family: 'Lato', sans-serif;
}
.hdr-balance-chip:active { background: #333; }

.hdr-chevron {
    width: 16px;
    height: 16px;
    color: #a1a1aa;
    flex-shrink: 0;
}

/* Botão Depositar — quadrado amarelo com ícone */
.hdr-deposit-btn {
    background: var(--ca);
    color: var(--ca-text);
    border: none;
    border-radius: 6px;
    width: 38px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.hdr-deposit-btn:active { background: var(--ca-dark); }

/* Botão Perfil — quadrado escuro com ícone user */
.hdr-profile-btn {
    background: #27272a;
    border: 1px solid #3f3f46;
    color: #fff;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}
.hdr-profile-btn:active { background: #333; }

/* ---- Dropdown de Saldo ---- */
.hdr-balance-wrap {
    flex-shrink: 0;
}

.hdr-balance-chip.active {
    background: #333;
}

.hdr-bal-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 14px;
    width: 280px;
    background: #191A1F;
    border: 1px solid #ffffff52;
    border-radius: 8px;
    padding: 14px;
    z-index: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    animation: ddFadeIn 0.15s ease;
}
.hdr-bal-dropdown.open {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hdr-bal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}
.hdr-bal-row.total {
    margin-top: 4px;
}

.hdr-bal-label {
    font-size: 1rem;
    color: #ffffff;
}

.hdr-bal-val {
    font-size: 1rem;
    font-weight: 700;
}
.hdr-bal-val.yellow {
    color: var(--ca);
}

.hdr-bal-divider {
    height: 1px;
    background: #ffffff1a;
}

.hdr-bal-info {
    font-size: 11px;
    color: #ffffff;
    line-height: 1.4;
    text-align: center;
    width: 100%;
    font-family: 'Lato', sans-serif;
}

.btn-bal-sync,
.btn-bal-deposit,
.btn-bal-withdraw {
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    border: none;
}

.btn-bal-sync {
    background: #2a2d35;
    border: none;
    color: #ffffff;
}
.btn-bal-sync:active {
    background: #343842;
}

.btn-bal-deposit {
    background: var(--ca);
    color: var(--ca-text);
}
.btn-bal-deposit:active {
    background: var(--ca-dark);
}

.btn-bal-withdraw {
    background: var(--ca);
    color: var(--ca-text);
}
.btn-bal-withdraw:active {
    background: var(--ca-dark);
}

/* ---- Novo pill de perfil ---- */
.hdr-profile-wrap {
    position: relative;
    flex-shrink: 0;
}

.hdr-profile-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 9999px;
    height: 36px;
    padding: 2px 10px 2px 2px;
    cursor: pointer;
    transition: background 0.2s;
}
.hdr-profile-pill:hover,
.hdr-profile-pill.active { background: #333; }

.hdr-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #42422d;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hdr-avatar-icon {
    width: 20px;
    height: 20px;
    color: var(--ca);
}

.hdr-pill-chevron {
    width: 16px;
    height: 16px;
    color: #a1a1aa;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.hdr-profile-pill.active .hdr-pill-chevron {
    transform: rotate(180deg);
}

/* ---- Dropdown do perfil ---- */
.hdr-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: #000000;
    border: 1px solid #27272a;
    border-radius: 12px;
    overflow: hidden;
    z-index: 500;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    animation: ddFadeIn 0.15s ease;
}
.hdr-dropdown.open { display: block; }

@keyframes ddFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hdr-dd-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
}

.hdr-dd-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hdr-dd-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hdr-dd-username {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    font-family: 'Lato', sans-serif;
}

.hdr-dd-subtitle {
    font-size: 11px;
    color: #71717a;
    font-family: 'Lato', sans-serif;
}

.hdr-dd-divider {
    height: 1px;
    background: #27272a;
    margin: 0;
}

.hdr-dd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}
.hdr-dd-item:hover { background: #27272a; }

.hdr-dd-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #a1a1aa;
}

.hdr-dd-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hdr-dd-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    font-family: 'Lato', sans-serif;
}

.hdr-dd-item-sub {
    font-size: 11px;
    color: #71717a;
    font-family: 'Lato', sans-serif;
}

.hdr-dd-logout .hdr-dd-item-icon { color: #ef4444; }
.hdr-dd-logout .hdr-dd-item-title { color: #ef4444; }

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 480px;
    margin: 0 auto;
    height: var(--bot-h);
    background: var(--bg-nav);
    border-top: 1px solid #111;
    display: flex;
    align-items: stretch;
    z-index: 200;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 8px 0 6px;
    font-family: 'Lato', sans-serif;
    transition: color 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.nav-item svg { width: 20px; height: 20px; display: block; }
.nav-item.active { color: var(--ca); }

/* Item central elevado */
.nav-item-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 6px;
    gap: 3px;
    color: var(--ca);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: none;
    background: none;
    font-family: 'Lato', sans-serif;
    position: relative;
}

.nav-center-circle {
    width: 50px;
    height: 50px;
    background: var(--ca);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ca-text);
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    transition: background 0.2s, transform 0.15s;
}
.nav-center-circle svg { width: 24px; height: 24px; flex-shrink: 0; }
.nav-item-center:active .nav-center-circle { transform: translateX(-50%) scale(0.93); }
.nav-center-label { margin-top: 32px; }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-wrap {
    min-height: 100vh;
    background: var(--bg);
}

.page-content {
    padding-top: calc(var(--nav-h) + 0px);
    padding-bottom: calc(var(--bot-h) + 4px);
}

/* ============================================================
   BANNER CAROUSEL
   ============================================================ */
.banner-carousel {
    position: relative;
    margin: 14px 12px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #111;
    aspect-ratio: 16/7;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

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

/* Slide placeholder (sem imagem) */
.carousel-slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #1a2e1a 0%, #0a1a0a 100%);
}
.carousel-slide-placeholder .slide-title {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 6px;
}
.carousel-slide-placeholder .slide-sub {
    font-size: 13px;
    color: var(--cp);
    font-weight: 600;
}

.carousel-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
}
.carousel-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transition: background 0.3s, width 0.3s;
    cursor: pointer;
}
.carousel-dots span.active {
    background: var(--ca);
    width: 18px;
    border-radius: 3px;
}

/* ============================================================
   ÚLTIMOS GANHOS — TICKER INFINITO
   ============================================================ */

/* Animação do ticker: translada da direita para esquerda continuamente */
@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.winners-section {
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    margin: 20px 1% 0;
}

/* Cabeçalho fixo: badge AO VIVO + título */
.winners-header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 10px 16px 8px;
    overflow: hidden;
}

/* Glow radial verde no canto esquerdo do header */
.winners-glow {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-40%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.live-badge-img {
    height: 26px;
    width: auto;
    display: block;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.winners-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0 10px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Faixa do ticker — overflow:hidden para clipar o conteúdo correndo */
.winners-ticker {
    overflow: hidden;
    width: 100%;
    padding: 4px 0 8px;
    /* Fade nas bordas para efeito de continuidade */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

/* Track — JS controla o scroll passo a passo (scroll + pausa, como no original) */
.ticker-track {
    display: flex;
    gap: 6px;
    width: max-content;
    padding: 0 6px;
    /* transition aplicada via JS — sem animation CSS contínua */
    will-change: transform;
}

/* Cada item do ticker — card com borda cinza finíssima como no original */
.ticker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    flex-shrink: 0;
    min-width: 160px;                              /* ~2.5 cards visíveis em 430px */
    border: 1px solid rgba(255,255,255,0.08);      /* cinza finíssimo — igual ao original */
    border-radius: 8px;
    background: transparent;
}

/* Miniatura do prêmio — tamanho proporcional ao original */
.ticker-thumb {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ticker-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.ticker-thumb-icon {
    width: 24px;
    height: 24px;
    color: var(--ca);
}

/* Textos do item */
.ticker-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.ticker-player {
    font-size: 11px;
    font-weight: 400;
    color: var(--tx-muted);  /* CINZA — nome do jogador é muted no original */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}
.ticker-prize-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--tx-title);  /* BRANCO — nome do prêmio é white no original */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
    line-height: 1.2;
}
.ticker-amount {
    font-size: 12px;
    font-weight: 800;
    color: var(--ca);        /* ACCENT (amarelo/tema) — valor usa var(--ca) como no original */
    white-space: nowrap;
}

/* ============================================================
   SECTION HEADER (Destaques, etc.)
   ============================================================ */
.section-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 10px;
}

.section-hdr-title {
    font-size: 1.25rem;     /* 20px — igual ao original */
    font-weight: 800;
    color: var(--tx-title);
    display: flex;
    align-items: center;
    gap: 6px;
}
.section-title-icon { width: 20px; height: 20px; color: var(--ca); }

.section-hdr-more {
    font-size: 13px;
    font-weight: 700;
    color: var(--tx-title);  /* branco padrão — conectado ao tema como no original */
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    border: none;
    background: none;
    font-family: 'Lato', sans-serif;
    padding: 0;
}
.section-hdr-more:active { color: var(--ca); }
.section-link-icon { width: 14px; height: 14px; color: var(--tx-title); }

/* ============================================================
   GAME CARDS (full-width, empilhados)
   ============================================================ */
.game-card {
    margin: 0 12px 14px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    cursor: pointer;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}
.game-card:active { border-color: var(--ca); }

.game-card-img {
    margin: 10px 10px 0;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/7;
    background: #111;
}

.game-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder sem imagem */
.game-card-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    background: linear-gradient(135deg, #1a1200 0%, #2d2000 100%);
}
.game-card-placeholder-icon { width: 52px; height: 52px; color: var(--ca); opacity: 0.42; }

.game-card-body {
    padding: 10px 14px 14px;
}

.game-card-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--tx-title);
    margin: 0 0 3px;
    line-height: 1.1;
}

.game-card-prize {
    font-size: 12px;
    font-weight: 700;
    color: var(--ca);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 0 12px;
}

.game-card-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-jogar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ca);
    color: var(--ca-text);
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    letter-spacing: 0.2px;
}
.btn-jogar:active { background: var(--ca-dark); }

/* Pill de preÃ§o: fundo preto, R$ verde, valor branco */
.btn-jogar .price-pill {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    background: #000000;
    border-radius: 5px;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.4;
}
.btn-jogar .price-pill .pill-currency { color: var(--cp); }

.btn-ver-premios {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color 0.15s;
    white-space: nowrap;
    margin-left: 45px;
}
.btn-ver-premios svg { opacity: 0.9; }
.btn-ver-premios:active { color: var(--ca); }

/* Skeleton do game card */
.game-card-skeleton {
    margin: 0 12px 14px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.game-card-skeleton .sk-img {
    aspect-ratio: 16/8;
}
.game-card-skeleton .sk-body {
    padding: 10px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ============================================================
   SKELETON / SHIMMER
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card2) 50%, var(--bg-card) 75%);
    background-size: 800px 100%;
    animation: shimmer 1.4s linear infinite;
    border-radius: 6px;
}
@keyframes shimmer {
    0%  { background-position: -800px 0; }
    100%{ background-position:  800px 0; }
}



/* ============================================================
   PÃGINAS â€” AUTH (login/cadastro)
   ============================================================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #000000;
}

.auth-banner-wrap {
    width: 100%;
    margin-bottom: 24px;
}

.auth-banner-img {
    width: 100%;
    display: block;
    object-fit: contain;
}

.auth-tabs-new {
    display: flex;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 24px;
}

.auth-tab-new {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #1a1a1a;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Lato', sans-serif;
}

.auth-tab-new.active {
    background: var(--ca);
    color: #000000;
}

.auth-close-row {
    display: flex;
    justify-content: flex-end;
    padding: 0 20px;
    margin-bottom: 12px;
}

.auth-close-btn {
    background: #1a1a1a;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--ca);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.auth-close-btn:active { background: #333; }

.auth-titles {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 20px;
}

.auth-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px 0;
    font-family: 'Lato', sans-serif;
}

.auth-subtitle {
    font-size: 13px;
    color: var(--tx-muted);
    margin: 0;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    color: var(--ca);
    display: flex;
}

.input-icon-right {
    position: absolute;
    right: 14px;
    color: var(--ca);
    display: flex;
    cursor: pointer;
}

.input-icon-wrap .form-input {
    padding-left: 44px;
    background: #121212;
    border: 1px solid #222;
}

.input-icon-wrap .form-input.has-right {
    padding-right: 44px;
}

/* ============================================================
   FORMULÃRIOS
   ============================================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--tx-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-input {
    width: 100%;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--tx-title);
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.form-input::placeholder { color: var(--tx-ph); }
.form-input:focus { border-color: var(--cp); }

.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23656E78' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* ============================================================
   BOTÃ•ES GLOBAIS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 12px 18px;
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
}
.btn-icon { width: 16px; height: 16px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-block { width: 100%; }

.btn-primary  { background: var(--cp); color: #fff; }
.btn-primary:active { opacity: 0.85; }

.btn-accent   { background: var(--ca); color: #111; }
.btn-accent:active { background: var(--ca-dark); }

.btn-outline  { background: transparent; border: 1.5px solid var(--cp); color: var(--cp); }
.btn-ghost    { background: transparent; border: 1.5px solid var(--border); color: var(--tx-body); }
.btn-danger   { background: #e53e3e; color: #fff; }

/* ============================================================
   CARTEIRA PAGE
   ============================================================ */
.wallet-page {
    padding: 0 12px 24px;
}
.wallet-back-wrap {
    max-width: 480px;
    margin: 0 auto 8px;
    padding: 0;
}
.wallet-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.65);
    background: none;
    border: none;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.15s;
}
.wallet-back-btn:hover { color: #fff; }
.wallet-back-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.wallet-card {
    max-width: 480px;
    margin: 0 auto 16px;
    background: #0f0f10;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.wallet-card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.wallet-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.wallet-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
}
.wallet-id {
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    letter-spacing: 0;
}
.wallet-card-icon {
    color: rgba(255,255,255,0.35);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: color 0.15s;
    display: flex;
}
.wallet-card-icon:hover { color: #fff; }
.wallet-card-icon svg { width: 16px; height: 16px; }

.wallet-refresh-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: -25px;
}
.wallet-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #faca15;
    color: #111;
    font-size: 11px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 14px rgba(250,202,21,0.3);
}
.wallet-refresh-btn:hover { background: #d4ad12; }
.wallet-refresh-btn svg { width: 12px; height: 12px; flex-shrink: 0; }

.wallet-balance-main {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.wallet-subs {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
}
.wallet-sub-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.wallet-sub-val {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}
.wallet-sub-val.gold  { color: #faca15; }
.wallet-sub-val.green { color: #22c55e; }

.wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.wallet-btn-deposit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #faca15;
    color: #111;
    font-weight: 800;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    padding: 13px 0;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 0 14px rgba(250,202,21,0.35);
}
.wallet-btn-deposit:hover { background: #d4ad12; }
.wallet-btn-deposit svg { width: 17px; height: 17px; flex-shrink: 0; }

.wallet-btn-withdraw {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #fff;
    color: #1a1a1a;
    font-weight: 800;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    padding: 13px 0;
    cursor: pointer;
    transition: background 0.15s;
}
.wallet-btn-withdraw:hover { background: #e8e8e8; }
.wallet-btn-withdraw svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ============================================================
   TRANSAÃ‡Ã•ES
   ============================================================ */
.tx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border2);
}
.tx-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.tx-svg { width: 18px; height: 18px; }
.tx-icon.deposit  { background: var(--cp-dim); }
.tx-icon.withdraw { background: #e53e3e22; }
.tx-icon.win      { background: var(--ca-dim); }
.tx-icon.bonus    { background: #9f7aea22; }

.tx-info  { flex: 1; min-width: 0; }
.tx-name  { font-size: 14px; font-weight: 700; color: var(--tx-title); }
.tx-date  { font-size: 12px; color: var(--tx-muted); margin-top: 2px; }
.tx-amount { font-size: 15px; font-weight: 800; flex-shrink: 0; }
.tx-amount.pos { color: var(--cp); }
.tx-amount.neg { color: #e53e3e; }

/* ============================================================
   MODAL (bottom sheet)
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: #09090b;
    z-index: 500;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    animation: fadein 0.2s;
    overflow-y: auto;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ── Mensagem de erro informativa (inline, vermelha) — saque e depósito ── */
.form-error-msg { display:none; align-items:center; gap:7px; margin-top:9px; padding:9px 12px; border-radius:9px; background:rgba(229,72,77,0.10); border:1px solid rgba(229,72,77,0.35); color:#ff6b6b; font-size:12.5px; font-weight:600; line-height:1.4; }
.form-error-msg.show { display:flex; animation:fadein .2s; }
.form-error-msg svg { color:#ff6b6b; }

/* ── Funil de saque: loader (3 steps) + "saque teste" + concluído/atenção ── */
.wdp-card { background:#141414; border:1px solid #262626; border-radius:18px; padding:34px 28px; width:100%; max-width:340px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:16px; animation:fadein .25s; }
.wdp-spinner { width:52px; height:52px; border:4px solid rgba(29,166,57,0.18); border-top-color:var(--cp); border-radius:50%; animation:spin .8s linear infinite; }
.wdp-title { font-size:17px; font-weight:800; color:#fff; }
.wdp-step { font-size:13.5px; color:#9aa3ad; min-height:20px; transition:opacity .2s; font-weight:600; }

.wdt-card { position:relative; background:#141414; border:1px solid #262626; border-radius:20px; padding:36px 26px 26px; width:100%; max-width:340px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px; animation:wd-pop .3s cubic-bezier(.2,1.1,.4,1); }
.wdt-close { position:absolute; top:12px; right:12px; width:30px; height:30px; border-radius:50%; border:none; background:rgba(255,255,255,0.06); color:#9aa3ad; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.wdt-icon { width:74px; height:74px; border-radius:50%; background:radial-gradient(circle at 50% 40%, rgba(163,230,53,0.22), rgba(163,230,53,0.05)); display:flex; align-items:center; justify-content:center; animation:wd-pop .4s cubic-bezier(.2,1.2,.4,1); }
.wdt-icon-check { width:40px; height:40px; color:#a3e635; }
.wdt-icon-check svg { width:100%; height:100%; }
.wdt-title { font-size:17px; font-weight:800; color:#fff; line-height:1.35; }
.wdt-hl { color:#a3e635; }
.wdt-sub { font-size:13.5px; color:#a3e635; font-weight:700; }
.wdt-note { font-size:12.5px; color:#8b9098; line-height:1.5; }
.wdt-ok { margin-top:8px; width:100%; padding:14px; border:none; border-radius:12px; background:#a3e635; color:#111; font-weight:800; font-size:15px; cursor:pointer; font-family:'Lato',sans-serif; transition:filter .15s; }
.wdt-ok:hover { filter:brightness(1.06); }

.wda-card { background:#141414; border:1px solid #262626; border-radius:20px; padding:34px 26px 28px; width:100%; max-width:340px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:16px; animation:fadein .25s; }
.wda-stage { position:relative; width:88px; height:88px; display:flex; align-items:center; justify-content:center; }
.wda-ring { position:absolute; inset:0; border-radius:50%; border:4px solid #a3e635; opacity:.9; animation:wd-ring .5s ease-out both; box-shadow:0 0 0 6px rgba(163,230,53,0.10); transition:border-color .4s, box-shadow .4s; }
.wda-mark { width:44px; height:44px; color:#a3e635; display:flex; align-items:center; justify-content:center; animation:wd-pop .5s cubic-bezier(.2,1.2,.4,1) both; transition:color .4s; }
.wda-mark svg { width:100%; height:100%; }
.wda-stage.is-alert .wda-ring { border-color:#ef4444; box-shadow:0 0 0 6px rgba(239,68,68,0.12); animation:wd-shake .45s; }
.wda-stage.is-alert .wda-mark { color:#ef4444; animation:wd-pop .35s cubic-bezier(.2,1.2,.4,1); }
.wda-title { font-size:17px; font-weight:800; color:#fff; }
.wda-sub { font-size:13.5px; color:#9aa3ad; line-height:1.5; }
.wda-sub strong { color:#ef4444; font-weight:800; }
.wda-btn { margin-top:4px; width:100%; padding:14px; border:none; border-radius:12px; background:#ef4444; color:#fff; font-weight:800; font-size:15px; cursor:pointer; font-family:'Lato',sans-serif; transition:filter .15s; animation:wd-pop .3s cubic-bezier(.2,1.1,.4,1); }
.wda-btn:hover { filter:brightness(1.08); }

@keyframes wd-pop  { from { opacity:0; transform:scale(.6); } to { opacity:1; transform:scale(1); } }
@keyframes wd-ring { from { opacity:0; transform:scale(.4); } to { opacity:.9; transform:scale(1); } }
@keyframes wd-shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-5px)} 40%{transform:translateX(5px)} 60%{transform:translateX(-3px)} 80%{transform:translateX(3px)} }

.modal-sheet {
    background: transparent;
    border-radius: 0;
    padding: 16px 18px 28px;
    width: 100%;
    max-width: 480px;
    min-height: 100%;
    animation: fadein 0.2s;
}

.modal-handle {
    display: none;
}
.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--tx-title);
    text-align: center;
    margin-bottom: 20px;
}

/* ----  Deposit sheet  ---- */
.dep-sheet {
    padding: 0;
    overflow: hidden;
    border-radius: 0;
}

.dep-banner {
    width: 100%;
    line-height: 0;
}
.dep-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.dep-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 0;
}

.dep-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 800;
    color: var(--tx-title);
    font-family: 'Lato', sans-serif;
}

.dep-close-btn {
    background: #27272a;
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.dep-close-btn:hover { background: #3f3f46; }

.dep-body {
    padding: 14px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dep-field-label {
    font-size: 13px;
    color: #a1a1aa;
    font-family: 'Lato', sans-serif;
    margin-bottom: -4px;
}

.dep-input-wrap {
    display: flex;
    align-items: center;
    background: #1c1e22;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    padding: 0 14px;
    height: 48px;
    gap: 6px;
}

.dep-prefix {
    font-size: 15px;
    font-weight: 700;
    color: #a1a1aa;
    font-family: 'Lato', sans-serif;
    flex-shrink: 0;
}

.dep-input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    width: 100%;
    -moz-appearance: textfield;
}
.dep-input::-webkit-outer-spin-button,
.dep-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* 4-column chip grid */
.deposit-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 14px;
}

.deposit-chip4 {
    background: #fbbf241f;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px 6px;
    color: var(--ca);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    font-family: 'Lato', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}
.deposit-chip4:hover { border-color: #fbbf24; }
.deposit-chip4.sel {
    background-color: #fbbf2447;
    border-color: #fbbf24;
    box-shadow: 0 0 14px #d9ac007f;
    color: var(--ca);
}

.dep-rec-badge {
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    background: #FBBF24;
    color: #111;
    font-size: 7px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    line-height: 1;
    white-space: nowrap;
    z-index: 2;
    letter-spacing: .3px;
}
.dep-rec-badge svg {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
}

.dep-check-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FBBF24;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}
.deposit-chip4.sel .dep-check-icon {
    opacity: 1;
}
.dep-check-icon svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dep-badge {
    font-size: 9px;
    font-weight: 800;
    background: rgba(255,160,0,0.18);
    color: var(--ca);
    border-radius: 3px;
    padding: 1px 4px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    font-family: 'Lato', sans-serif;
}

.dep-chip-val {
    font-size: 13px;
    font-weight: 800;
}

.btn-dep-submit {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ca);
    color: #111;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    margin-top: 4px;
}
.btn-dep-submit:active { background: var(--ca-dark); }
.btn-dep-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.pix-result-box {
    text-align: center;
    margin-top: 8px;
}

/* old deposit-chip kept for compatibility */
.deposit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}
.deposit-chip {
    background: var(--bg-card2);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 11px 8px;
    color: var(--tx-title);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s;
    font-family: 'Lato', sans-serif;
}
.deposit-chip.sel {
    border-color: var(--ca);
    background: var(--ca-dim);
    color: var(--ca);
}

/* PIX QR */
.pix-qr-box {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
}
.pix-code {
    background: var(--bg-card2);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11px;
    color: var(--tx-body);
    font-family: monospace;
    word-break: break-all;
    margin-top: 8px;
    width: 100%;
}

/* ============================================================
   TELA DE SAQUE (Solicitar Saque) -- layout clonado do original
   ============================================================ */
.wds-sheet {
    padding: 0;
    border-radius: 0;
}
.wds-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 12px;
}
.wds-back {
    background: none;
    border: none;
    color: var(--ca);
    cursor: pointer;
    width: 44px;
    height: 44px;
    margin-left: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.15s;
}
.wds-back:active { opacity: 0.6; }
.wds-title {
    font-size: 17px;
    font-weight: 900;
    color: var(--tx-title);
    letter-spacing: -0.2px;
}
.wds-close {
    background: #27272a;
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.wds-close:hover, .wds-close:active { background: #3f3f46; }

.wds-body {
    padding: 0 16px 28px;
    display: flex;
    flex-direction: column;
}
.wds-banner {
    width: 100%;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.wds-banner img {
    width: 100%;
    height: auto;
    display: block;
}
.wds-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--tx-title);
    margin-bottom: 8px;
}
.wds-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1c1e22;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    height: 48px;
    padding: 0 14px;
    transition: border-color 0.15s;
}
.wds-input-wrap:focus-within { border-color: var(--ca); }
.wds-prefix {
    font-size: 15px;
    font-weight: 700;
    color: #a1a1aa;
    flex-shrink: 0;
    padding-right: 10px;
    border-right: 1px solid #3f3f46;
    line-height: 1;
}
.wds-input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--tx-title);
    font-size: 15px;
    font-weight: 700;
    width: 100%;
    height: 100%;
    font-family: 'Lato', sans-serif;
}
.wds-input::placeholder { color: #52525b; font-weight: 600; }
.wds-input[type=number]::-webkit-outer-spin-button,
.wds-input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wds-avail {
    font-size: 12px;
    color: var(--tx-muted);
    margin: 8px 0 18px;
}
.wds-avail strong {
    color: var(--ca);
    font-weight: 800;
}
.wds-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.wds-tab {
    height: 42px;
    border-radius: 8px;
    border: 1px solid #3f3f46;
    background: #1c1e22;
    color: #a1a1aa;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    padding: 0 2px;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
}
.wds-tab:active { transform: scale(0.96); }
.wds-tab.sel {
    background: var(--ca);
    border-color: var(--ca);
    color: var(--ca-text);
    font-weight: 900;
}
.wds-key-ico {
    color: #52525b;
    flex-shrink: 0;
}
.wds-note {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    color: var(--tx-muted);
    line-height: 1.45;
    margin: 14px 0 16px;
}
.wds-note-ico {
    width: 14px;
    height: 14px;
    color: var(--ca);
    flex-shrink: 0;
}
.wds-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: var(--ca);
    color: var(--ca-text);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: transform 0.12s, background 0.15s;
}
.wds-submit:active { transform: scale(0.98); background: var(--ca-dark); }
.wds-submit:disabled { opacity: 0.6; cursor: default; }
.wds-submit .btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

.wd-fee-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    margin: -4px 0 14px;
    animation: fadein 0.2s ease;
}
.wd-fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--tx-body);
}
.wd-fee-row span:first-child { display: flex; align-items: center; gap: 6px; }
.wd-fee-row--tax { color: var(--tx-muted); font-size: 12px; }
.wd-fee-row--tax span:last-child { color: #f0ad4e; font-weight: 700; }
.wd-fee-row--tax.is-free span:last-child { color: var(--cp); }
.wd-fee-tax-ico { width: 13px; height: 13px; flex-shrink: 0; }
.wd-fee-divider { height: 1px; background: var(--border); }
.wd-fee-row--total { font-size: 15px; font-weight: 800; color: var(--tx-title); }
.wd-fee-row--total span:last-child { color: var(--cp); font-size: 17px; font-weight: 900; }

/* ============================================================
   TAXA1/UP1 -- Modal "Liberacao Pendente" (meta de deposito)
   ============================================================ */
.wd-goal-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: linear-gradient(165deg, #131518 0%, #0d0f12 100%);
    border: 1px solid var(--ca-dim);
    box-shadow: 0 0 0 1px var(--ca-dim), 0 0 40px -14px var(--ca), 0 20px 60px rgba(0,0,0,0.85);
    border-radius: 18px;
    padding: 30px 22px 24px;
    text-align: center;
}

.wd-goal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: var(--tx-muted);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.wd-goal-close:hover { background: rgba(255,255,255,0.12); color: var(--tx-title); }

.wd-goal-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    color: var(--ca);
    animation: wdGoalPulse 2.4s ease-in-out infinite;
}
.wd-goal-icon svg { width: 100%; height: 100%; display: block; }

@keyframes wdGoalPulse {
    0%, 100% { transform: scale(1);     opacity: 1; }
    50%      { transform: scale(1.06);  opacity: 0.88; }
}

.wd-goal-title {
    font-size: 21px;
    font-weight: 900;
    color: var(--tx-title);
    letter-spacing: -0.3px;
    margin: 0 0 10px;
}
.wd-goal-sub {
    font-size: 13.5px;
    color: var(--tx-body);
    line-height: 1.6;
    margin: 0 0 20px;
}
.wd-goal-sub strong { color: var(--ca); font-weight: 800; }

.wd-goal-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}
.wd-goal-btn {
    flex: 1;
    padding: 13px;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s, opacity 0.15s;
}
.wd-goal-btn:active { transform: scale(0.97); }
.wd-goal-btn--ghost {
    background: var(--bg);
    border: 1.5px solid var(--ca);
    color: var(--tx-title);
}
.wd-goal-btn--ghost:hover { background: var(--ca-dim); }
.wd-goal-btn--solid {
    background: var(--ca);
    border: 1.5px solid var(--ca);
    color: var(--ca-text);
    box-shadow: 0 8px 22px -10px var(--ca);
}
.wd-goal-btn--solid:hover { background: var(--ca-dark); border-color: var(--ca-dark); }

.wd-goal-hint {
    font-size: 12px;
    color: var(--tx-muted);
    line-height: 1.5;
    margin: 0 0 18px;
}

.wd-goal-deposit-box {
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    text-align: left;
}
.wd-goal-deposit-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--tx-muted);
    margin-bottom: 9px;
}
.wd-goal-progress-track {
    flex: 1;
    min-width: 0;
    height: 10px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    overflow: hidden;
}
.wd-goal-progress-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ca-dark) 0%, var(--ca) 100%);
    animation: wdGoalFill 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.1s;
}
@keyframes wdGoalFill {
    from { width: 0; }
    to   { width: var(--wd-goal-pct); }
}
.wd-goal-deposit-caption {
    font-size: 12px;
    color: var(--tx-muted);
    margin-top: 9px;
}
.wd-goal-deposit-caption strong { color: var(--tx-title); font-weight: 800; }

/* Flag (início) + troféu (meta concluída) flanqueando a barra -- padrão nas 3 taxas */
.wd-prog-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wd-prog-flag, .wd-prog-trophy {
    display: flex;
    flex-shrink: 0;
    color: var(--ca);
}
.wd-prog-flag svg { width: 14px; height: 14px; }
.wd-prog-trophy-ico { width: 15px; height: 15px; }

/* ============================================================
   TAXA2/UP2 -- Modal "Confirmacao Obrigatoria" (deposito unico)
   ============================================================ */
.wd-fee2-card { max-width: 400px; }

.wd-fee2-logo {
    display: block;
    width: 150px;
    height: auto;
    margin: 0 auto 18px;
    filter: brightness(0) saturate(100%) invert(79%) sepia(39%) saturate(749%) hue-rotate(350deg) brightness(102%) contrast(99%);
}

.wd-fee2-box {
    background: #e9e9ea;
    border-radius: 12px;
    padding: 14px;
    margin: 4px 0 14px;
}
.wd-fee2-box-label {
    font-size: 13px;
    font-weight: 800;
    color: #18181a;
    text-align: center;
    margin-bottom: 12px;
}
.wd-fee2-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.wd-fee2-split-item {
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
}
.wd-fee2-split-item--wrong { background: #e53e3e; }
.wd-fee2-split-item--right { background: var(--cp); }
.wd-fee2-split-val {
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}
.wd-fee2-split-lbl {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wd-fee2-hint {
    font-size: 12px;
    color: var(--tx-muted);
    line-height: 1.5;
    text-align: center;
    margin: 0 0 18px;
}

/* ============================================================
   MODAL "Confirmar solicitacao de saque?" -- intermediario entre
   a tela de saque e a cadeia de taxas (Taxa1/2/3)
   ============================================================ */
.wdc-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.85);
    color: var(--tx-title);
    overflow: hidden;
}
.wdc-head {
    position: relative;
    padding: 22px 24px 0;
}
.wdc-title {
    font-size: 17px;
    font-weight: 800;
    text-align: center;
    margin: 0;
    padding-right: 24px;
}
.wdc-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: var(--tx-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color 0.15s;
}
.wdc-close:hover { color: var(--tx-title); }
.wdc-divider {
    height: 1px;
    width: 100%;
    background: var(--border);
    margin-top: 16px;
}

.wdc-body { padding: 22px 24px 24px; }

.wdc-image-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
.wdc-image { width: 128px; height: 128px; object-fit: contain; }

.wdc-info-box {
    background: var(--bg-card2);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}
.wdc-info-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wdc-info-label { font-size: 13px; color: var(--tx-body); }
.wdc-info-value { font-size: 13px; font-weight: 700; color: var(--tx-title); }
.wdc-info-value--amount { font-size: 17px; font-weight: 900; color: var(--ca); }

.wdc-btns { display: flex; gap: 12px; }
.wdc-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 14px;
    border-radius: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.wdc-btn:active { transform: scale(0.97); }
.wdc-btn--cancel {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--tx-title);
}
.wdc-btn--cancel:hover { border-color: #e53e3e; color: #e53e3e; }
.wdc-btn--confirm {
    background: var(--ca);
    border: 2px solid var(--ca);
    color: var(--ca-text);
    font-weight: 800;
}
.wdc-btn--confirm:hover { background: var(--ca-dark); border-color: var(--ca-dark); }
.wdc-btn--confirm:disabled { opacity: 0.7; cursor: default; }

.wdc-banner {
    width: 100%;
    background: var(--ca-dark);
    color: var(--ca-text);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    padding: 12px 16px;
}

/* ============================================================
   SUBHEADER DE PÃGINA INTERNA (back button + tÃ­tulo)
   NÃƒO Ã© fixed â€” fica dentro do page-content
   ============================================================ */
.page-subheader {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border2);
    margin-bottom: 4px;
}
.back-btn-icon { width: 18px; height: 18px; }

/* ============================================================
   GAME GATE — Tela de jogo para usuário DESLOGADO
   ============================================================ */
.game-gate-wrap {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--nav-h) - var(--bot-h));
    padding: 0 16px 20px;
}

/* "← Voltar ao início" */
.game-gate-back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tx-muted);
    padding: 12px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
}
.game-gate-back:active { color: var(--tx-title); }
.game-gate-back-icon { width: 14px; height: 14px; }

/* Quadrado escuro que simula o canvas do jogo — idêntico ao .scratch-area do original */
.game-gate-canvas {
    position: relative;
    width: 90%;
    max-width: 340px;
    aspect-ratio: 1 / 1;
    padding: 1rem;
    margin: 1rem auto;
    border-radius: 12px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    overflow: hidden;
    background-color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

/* Ícone SVG de login dentro do quadrado */
.game-gate-login-icon {
    color: #ffffff;   /* full white — igual ao original */
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-gate-title {
    font-size: 22px;
    line-height: 1.1;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin: 0;
}

/* Botão accent dentro do canvas (Registrar) */
.game-gate-btn {
    background: var(--ca);
    color: var(--ca-text, #111);
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.2px;
    transition: background 0.15s;
}
.game-gate-btn:active { background: var(--ca-dark); }

/* Seção inferior fora do quadrado */
.game-gate-footer {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.game-gate-footer-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--tx-title);
    margin: 0;
}
.game-gate-footer-sub {
    font-size: 12px;
    color: var(--tx-muted);
    margin: 0 0 10px;
}

/* Botão grande "Registrar-se" — largura total */
.game-gate-register-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--ca);
    color: var(--ca-text, #111);
    border: none;
    border-radius: 10px;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.2px;
    transition: background 0.15s;
}
.game-gate-register-btn:active { background: var(--ca-dark); }
.game-gate-register-icon { width: 20px; height: 20px; }

/* ============================================================
   RASPADINHA PAGE
   ============================================================ */
.game-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border2);
}
.back-btn {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tx-title);
    font-size: 16px;
    cursor: pointer;
    flex-shrink: 0;
}
.game-page-title { font-size: 16px; font-weight: 800; color: var(--tx-title); flex: 1; }
.game-page-cost  { font-size: 15px; font-weight: 800; color: var(--ca); }

/* Grade 3x3 */
.scratch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 14px;
    max-width: 340px;
    margin: 0 auto;
}
.scratch-cell {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.scratch-cell .prize-img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 8px;
    position: absolute; inset: 0;
}
.scratch-cell canvas {
    position: absolute; inset: 0;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer;
    touch-action: none;
}

/* Resultado */
.result-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.86);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 400;
    animation: fadein 0.25s;
}
.result-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px 22px;
    text-align: center;
    width: 88%;
    max-width: 300px;
    border: 1px solid var(--border);
    animation: slideup 0.3s cubic-bezier(.4,0,.2,1);
}
.result-icon  { margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.result-icon-svg { width: 60px; height: 60px; }
.result-icon-win { animation: iconpulse 1s ease-in-out infinite; }
.result-title { font-size: 22px; font-weight: 800; color: var(--tx-title); margin-bottom: 6px; }
.result-prize { font-size: 30px; font-weight: 800; color: var(--ca); margin-bottom: 18px; }

/* ============================================================
   AFFILIATES
   ============================================================ */
.referral-card {
    background: linear-gradient(135deg, #1a2e1a, #0f1a10);
    border: 1px solid #1da63933;
    border-radius: 14px;
    padding: 20px;
    margin: 12px;
    text-align: center;
}
.referral-value { font-size: 34px; font-weight: 800; color: var(--ca); margin: 6px 0; }
.referral-code-row {
    background: var(--bg-nav);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 12px 0;
}
.referral-code { font-size: 20px; font-weight: 800; color: var(--cp); letter-spacing: 2px; }

/* Link de indicação (row com URL completa) */
.referral-link-row {
    background: var(--bg-nav);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}
.referral-link-text {
    font-size: 11px;
    color: var(--cp);
    word-break: break-all;
    flex: 1;
    text-align: left;
    font-family: monospace;
}

/* ============================================================
   REFERRAL WALLET BANNER
   ============================================================ */
.referral-wallet-banner {
    margin: 12px 12px 0;
    background: linear-gradient(135deg, #1a1a0e 0%, #2a2800 100%);
    border: 1px solid rgba(252, 213, 22, 0.25);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: opacity 0.15s;
}
.referral-wallet-banner:active { opacity: 0.85; }
.rwb-top {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(252, 213, 22, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.rwb-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
}
.rwb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    background: var(--ca);
    color: #111;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    padding: 11px 0;
    margin-top: 4px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
}

/* ============================================================
   AFFILIATE STATS GRID (página /profile/affiliate)
   ============================================================ */
.aff-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 4px;
}
.aff-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 8px;
    text-align: center;
}
.aff-stat-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--tx-title);
    line-height: 1;
    margin-bottom: 4px;
}
.aff-stat-lbl {
    font-size: 11px;
    color: var(--tx-muted);
    font-weight: 600;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
/* --- admin layout --- */
:root { --admin-sw: 220px; }

/* position:fixed escapa do #app que tem max-width:480px da plataforma mobile */
.admin-wrap {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    background: var(--bg);
}

/* sidebar */
.admin-sidebar {
    width: var(--admin-sw);
    background: var(--bg-nav);
    border-right: 1px solid var(--border2);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100dvh;
    z-index: 200;
    transition: transform 0.24s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}
.admin-sidebar-header {
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--border2);
    min-height: 64px;
    display: flex;
    align-items: center;
}
.admin-sidebar-logo { display: flex; align-items: center; max-width: 100%; overflow: hidden; }
.admin-sidebar-logo img { max-height: 38px; max-width: 150px; object-fit: contain; display: block; }
.admin-sidebar-logo span { font-size: 14px; font-weight: 900; color: var(--cp); letter-spacing: 0.5px; }

.admin-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-nav::-webkit-scrollbar { display: none; }

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tx-muted);
    cursor: pointer;
    border: none;
    background: none;
    font-family: 'Lato', sans-serif;
    text-align: left;
    text-decoration: none;
    transition: background 0.14s, color 0.14s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.admin-nav-item:hover  { background: var(--border2); color: var(--tx-body); }
.admin-nav-item.active { background: var(--cp-dim); color: var(--cp); }
.admin-nav-item.active .admin-nav-icon { color: var(--cp); }
.admin-nav-icon { width: 18px; height: 18px; flex-shrink: 0; }

.admin-sidebar-footer {
    padding: 8px 8px 20px;
    border-top: 1px solid var(--border2);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.admin-nav-site { color: var(--tx-muted); }
.admin-nav-exit { color: #e05252; }
.admin-nav-exit:hover { background: #e0525218; color: #e05252; }
.admin-nav-exit .admin-nav-icon { color: #e05252; }

/* main content */
.admin-main {
    margin-left: var(--admin-sw);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100vh;
}

/* topbar — visible only on mobile */
.admin-topbar {
    display: none;
    background: var(--bg-nav);
    padding: 10px 14px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border2);
    position: sticky;
    top: 0;
    z-index: 100;
}
.admin-topbar-logo { flex: 1; display: flex; justify-content: center; align-items: center; }
.admin-topbar-logo img  { max-height: 34px; max-width: 130px; object-fit: contain; }
.admin-topbar-logo span { font-size: 13px; font-weight: 900; color: var(--cp); }
.admin-menu-btn {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: none;
    color: var(--tx-body); cursor: pointer;
    border-radius: 8px; flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.admin-menu-btn:active { background: var(--border2); }
.admin-menu-icon { width: 20px; height: 20px; }

/* overlay — mobile backdrop */
.admin-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 199;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* mobile breakpoint */
@media (max-width: 767px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.is-open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.35); }
    .admin-main   { margin-left: 0; height: 100dvh; }
    .admin-topbar { display: flex; }
    .admin-overlay.is-open { display: block; }
}

.admin-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; }
.admin-stat {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 14px;
    border: 1px solid var(--border);
}
.admin-stat .val   { font-size: 22px; font-weight: 800; color: var(--tx-title); }
.admin-stat .lbl   { font-size: 11px; color: var(--tx-muted); margin-top: 3px; }
.admin-stat .ico   { margin-bottom: 6px; color: var(--ca); }
.admin-stat-icon { width: 22px; height: 22px; }

/* ══════════════════════════════════════════════════════════════
   DASHBOARD — Design System Profissional
   ══════════════════════════════════════════════════════════════ */

/* ── Filter bar ──────────────────────────────────────────── */
.dash-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border2);
    background: var(--bg-nav);
    position: sticky;
    top: 0;
    z-index: 10;
    flex-wrap: wrap;
}
.dash-filt-group {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(0,0,0,0.25);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
}
.dash-filt-group .dash-filter-btn {
    border: none;
    background: transparent;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--tx-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    min-height: 32px;
}
.dash-filt-group .dash-filter-btn:hover {
    color: var(--tx-body);
    background: rgba(255,255,255,0.04);
}
.dash-filt-group .dash-filter-btn.active {
    background: var(--cp);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.dash-filt-icon { width: 14px; height: 14px; flex-shrink: 0; }

.dash-range-wrap { position: relative; }
.dash-range-wrap .dash-filter-btn {
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 700;
    color: var(--tx-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: 'Lato', sans-serif;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    min-height: 32px;
}
.dash-range-wrap .dash-filter-btn:hover { color: var(--tx-body); background: rgba(255,255,255,0.04); }
.dash-range-wrap .dash-filter-btn.active { background: var(--cp); color: #fff; border-color: var(--cp); box-shadow: 0 1px 3px rgba(0,0,0,0.3); }

.dash-reload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,0.25);
    color: var(--tx-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin-left: auto;
}
.dash-reload-btn:hover { color: var(--cp); border-color: var(--cp); background: rgba(29,166,57,0.08); }
.dash-reload-icon { width: 16px; height: 16px; }

/* ── Date range picker ────────────────────────────────────── */
.dash-picker {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 400;
    min-width: 300px;
}
.dash-picker-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.dpc-hint    { font-size: 11px; color: var(--tx-muted); text-align: center; margin-bottom: 16px; letter-spacing: 0.4px; text-transform: uppercase; font-weight: 600; }
.dpc-mhead   { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; font-size:13px; font-weight:800; color:var(--tx-title); letter-spacing: 0.3px; }
.dpc-nav     { background:none; border:1px solid var(--border); color:var(--tx-muted); cursor:pointer; font-size:15px; line-height:1; width:30px; height:30px; border-radius:6px; display:flex; align-items:center; justify-content:center; transition:all .12s; }
.dpc-nav:hover { color:var(--cp); background:rgba(29,166,57,0.1); border-color:var(--cp); }
.dpc-grid    { display:grid; grid-template-columns:repeat(7,1fr); gap:3px; }
.dpc-wday    { font-size:10px; color:var(--tx-muted); text-align:center; padding:6px 0 8px; font-weight:700; text-transform: uppercase; letter-spacing: 0.4px; }
.dpc-empty   { padding:6px 2px; }
.dpc-day     { text-align:center; padding:9px 4px; font-size:12px; border-radius:6px; cursor:pointer; color:var(--tx-body); transition:background .12s,color .12s; font-weight:500; }
.dpc-day:hover            { background:rgba(29,166,57,0.12); color:var(--cp); }
.dpc-day.dpc-sel          { background:var(--cp); color:#fff; font-weight:700; }
.dpc-day.dpc-in-range     { background:rgba(29,166,57,0.1); color:var(--cp); }
.dpc-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; padding-top:14px; border-top:1px solid var(--border); }

/* ── Dashboard body — grid principal ──────────────────────── */
.dash-body {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* ── KPI Bar ──────────────────────────────────────────────── */
.dash-kpi-bar {
    display: flex;
    align-items: stretch;
    gap: 1px;
    grid-column: 1 / -1;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.dash-kpi {
    flex: 1;
    padding: 20px 22px 18px;
    min-width: 0;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}
.dash-kpi::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    width: 1px;
    height: calc(100% - 40px);
    background: var(--border2);
}
.dash-kpi:last-child::after { display: none; }
.dash-kpi:hover { background: rgba(255,255,255,0.015); }
.dash-kpi-val {
    font-size: 24px;
    font-weight: 900;
    color: var(--tx-title);
    line-height: 1.1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.3px;
}
.dash-kpi--green .dash-kpi-val { color: var(--cp); }
.dash-kpi--warn  .dash-kpi-val { color: var(--ca); }
.dash-kpi-lbl {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--tx-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dash-kpi-ico { width: 12px; height: 12px; flex-shrink: 0; opacity: 0.7; }
.dash-kpi-period {
    padding: 12px 18px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    background: var(--bg-card);
}
.dash-kpi-period span {
    font-size: 11px;
    color: var(--ca);
    background: rgba(255,191,57,0.08);
    border: 1px solid rgba(255,191,57,0.2);
    border-radius: 6px;
    padding: 5px 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* ── Groups ───────────────────────────────────────────────── */
.dash-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.dash-group:hover { border-color: rgba(255,255,255,0.08); }
.dash-group--wide { grid-column: 1 / -1; }

.dash-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border2);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--tx-muted);
}
.dash-gh-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-gh-icon { width: 14px; height: 14px; color: var(--tx-muted); flex-shrink: 0; }
.dash-gh-count {
    font-size: 10px;
    color: var(--tx-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border2);
    border-radius: 10px;
    padding: 2px 9px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ── Cards de métricas ────────────────────────────────────── */
.dash-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    background: var(--border);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}
.dash-card {
    flex: 0 0 calc(50% - 1px);
    background: var(--bg-card);
    padding: 20px 18px 18px;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: background 0.12s;
}
.dash-card:hover { background: rgba(255,255,255,0.025); }

.dash-card-val {
    font-size: 24px;
    font-weight: 900;
    color: var(--tx-title);
    line-height: 1.1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.dash-card-lbl {
    font-size: 10px;
    color: var(--tx-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.dash-card-sub {
    font-size: 11px;
    color: var(--tx-muted);
    margin-top: 4px;
    font-weight: 400;
}
.dash-card--accent .dash-card-val { color: var(--cp); }
.dash-card--warn   .dash-card-val { color: var(--ca); }

/* ════════════════════════════════════════════════════════════
   DASHBOARD ENTERPRISE — hero KPIs, charts (SVG inline), funil, taxas
   ════════════════════════════════════════════════════════════ */

.dash-period-tag {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    color: var(--tx-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: -2px 0 -4px;
}
.dash-period-tag span { color: var(--ca); }
.dash-period-tag em   { font-style: normal; color: var(--tx-ph); font-weight: 600; text-transform: none; letter-spacing: 0; }
.dash-period-ico { width: 13px; height: 13px; color: var(--tx-muted); }

/* ── Hero KPI row ──────────────────────────────────────────── */
.dash-hero-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.dash-hero {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 16px 14px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.18s, transform 0.18s;
}
.dash-hero::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--border2);
}
.dash-hero:hover { border-color: rgba(255,255,255,0.1); transform: translateY(-2px); }
.dash-hero--green::before { background: linear-gradient(90deg, var(--cp), transparent); }
.dash-hero--warn::before  { background: linear-gradient(90deg, var(--ca), transparent); }
.dash-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.dash-hero-ico {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border2);
    display: flex; align-items: center; justify-content: center;
    color: var(--tx-muted);
}
.dash-hero-ico-svg { width: 15px; height: 15px; }
.dash-hero--green .dash-hero-ico { color: var(--cp); background: var(--cp-dim); border-color: transparent; }
.dash-hero--warn  .dash-hero-ico { color: var(--ca); background: var(--ca-dim); border-color: transparent; }
.dash-hero-delta {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; font-weight: 800;
    padding: 3px 7px; border-radius: 999px;
    font-variant-numeric: tabular-nums;
}
.dash-hero-delta.is-up   { color: var(--cp); background: var(--cp-dim); }
.dash-hero-delta.is-down { color: #e5484d; background: rgba(229,72,77,0.12); }
.dash-hero-delta.is-flat { color: var(--tx-ph); background: rgba(255,255,255,0.03); }
.dash-hero-val {
    font-size: 26px; font-weight: 900; color: var(--tx-title);
    line-height: 1.05; letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    margin-bottom: 5px;
}
.dash-hero--green .dash-hero-val { color: var(--cp); }
.dash-hero--warn  .dash-hero-val { color: var(--ca); }
.dash-hero-lbl {
    font-size: 10.5px; color: var(--tx-muted); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}

/* ── Charts row ────────────────────────────────────────────── */
.dash-charts-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 16px;
}
.dash-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px 14px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.dash-chart-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.dash-chart-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 800; color: var(--tx-title);
    text-transform: uppercase; letter-spacing: 0.6px;
}
.dash-chart-title-ico { width: 14px; height: 14px; color: var(--ca); }
.dash-chart-legend { display: flex; gap: 14px; }
.dash-leg { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--tx-muted); font-weight: 600; }
.dash-leg-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.dash-leg-dot--rev { background: var(--ca); }
.dash-leg-dot--dep { background: var(--cp); }

.dash-chart-plot { flex: 1; min-height: 0; }
.dash-chart-svg { width: 100%; height: auto; display: block; }
.dash-chart-grid { stroke: var(--border2); stroke-width: 1; }
.dash-chart-area--rev { fill: var(--ca); opacity: 0.14; }
.dash-chart-area--dep { fill: var(--cp); opacity: 0.12; }
.dash-chart-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.dash-chart-line--rev { stroke: var(--ca); }
.dash-chart-line--dep { stroke: var(--cp); }
.dash-chart-hit { fill: transparent; cursor: crosshair; }
.dash-chart-xlabel { fill: var(--tx-muted); font-size: 12px; font-family: 'Lato', sans-serif; }
.dash-chart-empty {
    display: flex; align-items: center; justify-content: center;
    min-height: 160px; color: var(--tx-ph); font-size: 13px; font-weight: 600;
    border: 1px dashed var(--border); border-radius: 10px;
}

/* ── Funil de taxas ────────────────────────────────────────── */
.dash-funnel { display: flex; flex-direction: column; gap: 14px; padding-top: 2px; }
.dash-funnel-row { display: flex; flex-direction: column; gap: 6px; }
.dash-funnel-head { display: flex; align-items: baseline; justify-content: space-between; }
.dash-funnel-label { font-size: 12px; color: var(--tx-body); font-weight: 600; }
.dash-funnel-count { font-size: 15px; color: var(--tx-title); font-weight: 900; font-variant-numeric: tabular-nums; }
.dash-funnel-track { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--border2); }
.dash-funnel-bar {
    height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--cp-dim), var(--cp));
    transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
}
.dash-funnel-bar.is-drop { background: linear-gradient(90deg, var(--ca-dim), var(--ca)); }
.dash-funnel-conv { font-size: 10.5px; color: var(--tx-muted); font-weight: 600; }
.dash-funnel-conv.is-drop { color: var(--ca); font-weight: 700; }

/* ── Cards de taxa ─────────────────────────────────────────── */
.dash-tax-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}
.dash-tax-card {
    background: var(--bg-card);
    padding: 18px 16px 16px;
    display: flex; flex-direction: column;
    position: relative;
    transition: background 0.12s;
}
.dash-tax-card:hover { background: rgba(255,255,255,0.025); }
.dash-tax-ico {
    width: 30px; height: 30px; border-radius: 8px;
    background: var(--ca-dim); color: var(--ca);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.dash-tax-ico-svg { width: 15px; height: 15px; }
.dash-tax-val { font-size: 20px; font-weight: 900; color: var(--ca); line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-tax-lbl { font-size: 10px; color: var(--tx-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 5px; }
.dash-tax-sub { font-size: 11px; color: var(--tx-ph); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* ── Responsivo dashboard enterprise ──────────────────────── */
@media (max-width: 900px) {
    .dash-hero-grid { grid-template-columns: repeat(3, 1fr); }
    .dash-charts-row { grid-template-columns: 1fr; }
    .dash-tax-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .dash-hero-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-hero-val { font-size: 22px; }
}

/* stagger delays estendidos p/ os blocos novos */
.dash-body > *:nth-child(8)  { animation-delay: 0.28s; }
.dash-body > *:nth-child(9)  { animation-delay: 0.32s; }
.dash-body > *:nth-child(10) { animation-delay: 0.36s; }

/* 3 cards — sem célula vazia */
@media (max-width: 767px) {
    .dash-card:last-child:nth-child(3) { flex: 0 0 100%; }
}
@media (min-width: 768px) {
    .dash-card:first-child:nth-last-child(3),
    .dash-card:first-child:nth-last-child(3) ~ .dash-card {
        flex: 0 0 calc(33.33% - 1.33px);
    }
}

/* ── Animação de entrada (stagger fade-in) ─────────────────── */
@keyframes dashFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dash-body > * {
    animation: dashFadeIn 0.35s ease both;
}
.dash-body > *:nth-child(2) { animation-delay: 0.04s; }
.dash-body > *:nth-child(3) { animation-delay: 0.08s; }
.dash-body > *:nth-child(4) { animation-delay: 0.12s; }
.dash-body > *:nth-child(5) { animation-delay: 0.16s; }
.dash-body > *:nth-child(6) { animation-delay: 0.20s; }
.dash-body > *:nth-child(7) { animation-delay: 0.24s; }

/* ── Cards — ícone watermark verde e visível ──────────────── */
.dash-card-ico {
    position: absolute;
    top: 12px;
    right: 14px;
    opacity: 0.5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cp);
}
.dash-card-ico-svg { width: 28px; height: 28px; }
.dash-card--accent .dash-card-ico { opacity: 0.55; }
.dash-card--warn   .dash-card-ico { opacity: 0.55; color: var(--ca); }
.dash-card:hover .dash-card-ico { opacity: 0.65; }

/* ── Color-coded groups ───────────────────────────────────── */
.dash-group--users   { border-top: 3px solid var(--cp); }
.dash-group--finance { border-top: 3px solid var(--ca); }
.dash-group--plays   { border-top: 3px solid var(--cp); }
.dash-group--house   { border-top: 3px solid #a78bfa; }

/* ── Tabelas de atividade dentro dos grupos ───────────────── */
.dash-group .admin-table-wrap { padding: 0; }
.dash-group .admin-table th {
    padding: 12px 18px;
    font-size: 10px;
    letter-spacing: 0.7px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--tx-muted);
    background: rgba(0,0,0,0.15);
}
.dash-group .admin-table td { padding: 11px 18px; font-size: 13px; }

/* ── Empty row ────────────────────────────────────────────── */
.dash-empty-row {
    text-align: center;
    color: var(--tx-muted);
    padding: 28px 20px;
    font-size: 13px;
}

/* ── Loading state ────────────────────────────────────────── */
.dash-filt-sep { display: none; } /* kept for JS compat */
.dash-kpi-sep  { display: none; } /* kept for JS compat */
.dash-loading { padding: 48px; text-align: center; }

/* ── Responsivo ────────────────────────────────────────────── */
@media (max-width: 767px) {
    .dash-filters { top: 54px; z-index: 9; padding: 12px 16px; gap: 6px; }
    .dash-body    { padding: 14px; gap: 12px; }
    .dash-kpi-bar { flex-wrap: wrap; gap: 1px; }
    .dash-kpi     { flex: 1 1 45%; padding: 16px 16px 14px; }
    .dash-kpi::after { display: none; }
    .dash-kpi-period { width: 100%; border-top: none; padding: 10px 16px; justify-content: center; }
    .dash-card { min-height: 80px; padding: 16px 14px 14px; }
    .dash-card-val { font-size: 20px; }
    .dash-card-ico-svg { width: 24px; height: 24px; }
}

@media (min-width: 768px) {
    .dash-cards-grid { grid-template-columns: repeat(3, 1fr); }
    .dash-card:nth-child(2n) { border-right: 1px solid var(--border2); }
    .dash-card:nth-child(3n) { border-right: none; }
    .dash-card:nth-last-child(1):nth-child(3n+1),
    .dash-card:nth-last-child(2):nth-child(3n+1) ~ .dash-card,
    .dash-card:nth-last-child(3):nth-child(3n+1) ~ .dash-card { border-bottom: none; }
}

@media (min-width: 1024px) {
    .dash-body { grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px; }
    .dash-filters { padding: 16px 28px; gap: 10px; }
    .dash-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-card:nth-child(3n) { border-right: 1px solid var(--border2); }
    .dash-card:nth-child(2n) { border-right: none; }
    .dash-card:nth-last-child(1):nth-child(odd),
    .dash-card:nth-last-child(2):nth-child(odd) ~ .dash-card { border-bottom: none; }
    .dash-card-val { font-size: 24px; }
    .dash-kpi-val { font-size: 26px; }
}

@media (min-width: 1200px) {
    .dash-cards-grid { grid-template-columns: repeat(4, 1fr); }
    .dash-card:nth-child(2n) { border-right: 1px solid var(--border2); }
    .dash-card:nth-child(4n) { border-right: none; }
    .dash-card:nth-last-child(1):nth-child(4n+1),
    .dash-card:nth-last-child(2):nth-child(4n+1) ~ .dash-card,
    .dash-card:nth-last-child(3):nth-child(4n+1) ~ .dash-card,
    .dash-card:nth-last-child(4):nth-child(4n+1) ~ .dash-card { border-bottom: none; }
    .dash-body { padding: 28px; gap: 20px; }
    .dash-kpi { padding: 22px 26px 20px; }
    .dash-kpi-val { font-size: 28px; }
}

/* ════════════════════════════════════════════════════════════
   DASHBOARD MOSAIC (mz-*) — layout modular 12-col, tema dark
   ════════════════════════════════════════════════════════════ */
.mz-wrap { padding: 20px; }
.mz-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.mz-kpi { grid-column: span 4; }
.mz-col-4 { grid-column: span 4; }
.mz-col-6 { grid-column: span 6; }
.mz-col-8 { grid-column: span 8; }
.mz-col-12 { grid-column: span 12; }

.mz-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .18s; min-width: 0; }
.mz-card:hover { border-color: rgba(255,255,255,0.09); }
.mz-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--border2); }
.mz-title { font-size: 14px; font-weight: 800; color: var(--tx-title); letter-spacing: 0.2px; }
.mz-menu { display: inline-flex; gap: 3px; padding: 4px; border-radius: 6px; color: var(--tx-ph); cursor: pointer; }
.mz-menu:hover { background: rgba(255,255,255,0.05); color: var(--tx-muted); }
.mz-menu i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; display: block; }

.mz-kpi-top { padding: 18px 20px 0; }
.mz-kpi-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mz-kpi-name { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; color: var(--tx-muted); }
.mz-kpi-ico { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; background: var(--cp-dim); color: var(--cp); flex-shrink: 0; }
.mz-kpi-ico.is-accent { background: var(--ca-dim); color: var(--ca); }
.mz-kpi-ico svg { width: 14px; height: 14px; }
.mz-kpi-row { display: flex; align-items: flex-end; gap: 10px; }
.mz-kpi-val { font-size: 30px; font-weight: 900; color: var(--tx-title); line-height: 1; letter-spacing: -0.6px; font-variant-numeric: tabular-nums; }
.mz-pill { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; margin-bottom: 3px; }
.mz-pill.is-up { color: var(--cp); background: var(--cp-dim); }
.mz-pill.is-down { color: #e5484d; background: rgba(229,72,77,0.12); }
.mz-pill.is-flat { color: var(--tx-ph); background: rgba(255,255,255,0.03); }
.mz-kpi-chart { margin-top: 12px; height: 52px; }
.mz-spark { width: 100%; height: 100%; display: block; }

.mz-body { padding: 16px 20px 18px; }
.mz-body--tight { padding: 10px; }

.mz-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 20px 6px; flex-wrap: wrap; }
.mz-chart-kpis { display: flex; gap: 22px; }
.mz-ck-lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--tx-muted); display: flex; align-items: center; gap: 6px; }
.mz-ck-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.mz-ck-val { font-size: 22px; font-weight: 900; color: var(--tx-title); font-variant-numeric: tabular-nums; letter-spacing: -0.4px; margin-top: 3px; }
.mz-bigchart { padding: 4px 12px 14px; }
.mz-area-svg { width: 100%; height: auto; display: block; }
.mz-grid-line { stroke: var(--border2); stroke-width: 1; }
.mz-area-rev { fill: var(--ca); opacity: 0.13; }
.mz-area-dep { fill: var(--cp); opacity: 0.12; }
.mz-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.mz-line-rev { stroke: var(--ca); }
.mz-line-dep { stroke: var(--cp); }
.mz-hit { fill: transparent; cursor: crosshair; }
.mz-xlabel { fill: var(--tx-muted); font-size: 12px; font-family: 'Lato', sans-serif; }
.mz-chart-empty { display: flex; align-items: center; justify-content: center; min-height: 90px; color: var(--tx-ph); font-size: 13px; font-weight: 600; border: 1px dashed var(--border); border-radius: 10px; margin: 4px; text-align: center; padding: 12px; }

.mz-donut-wrap { display: flex; justify-content: center; padding: 10px 0 4px; }
.mz-donut { width: 150px; height: 150px; }
.mz-donut-num { fill: var(--tx-title); font-size: 26px; font-weight: 900; font-family: 'Lato', sans-serif; }
.mz-donut-cap { fill: var(--tx-muted); font-size: 11px; font-weight: 700; font-family: 'Lato', sans-serif; text-transform: uppercase; letter-spacing: 0.5px; }
.mz-legend { display: flex; flex-direction: column; gap: 9px; padding: 6px 20px 4px; }
.mz-leg { display: flex; align-items: center; gap: 9px; font-size: 12.5px; }
.mz-leg-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.mz-leg-lbl { color: var(--tx-body); font-weight: 600; }
.mz-leg-val { margin-left: auto; color: var(--tx-title); font-weight: 800; font-variant-numeric: tabular-nums; }
.mz-leg-pct { color: var(--tx-muted); font-weight: 700; font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }

.mz-funnel { display: flex; flex-direction: column; gap: 14px; }
.mz-fn-row { display: flex; flex-direction: column; gap: 6px; }
.mz-fn-head { display: flex; align-items: baseline; justify-content: space-between; }
.mz-fn-lbl { font-size: 12px; color: var(--tx-body); font-weight: 600; }
.mz-fn-count { font-size: 15px; color: var(--tx-title); font-weight: 900; font-variant-numeric: tabular-nums; }
.mz-fn-track { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--border2); }
.mz-fn-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--cp-dim), var(--cp)); transition: width .5s cubic-bezier(.22,1,.36,1); }
.mz-fn-bar.is-drop { background: linear-gradient(90deg, var(--ca-dim), var(--ca)); }
.mz-fn-conv { font-size: 10.5px; color: var(--tx-muted); font-weight: 600; }
.mz-fn-conv.is-drop { color: var(--ca); font-weight: 700; }

.mz-tbl-wrap { overflow-x: auto; padding: 10px; }
.mz-tbl { width: 100%; border-collapse: collapse; }
.mz-tbl thead th { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: var(--tx-muted); background: rgba(255,255,255,0.03); padding: 9px 12px; text-align: left; white-space: nowrap; }
.mz-tbl thead th:first-child { border-radius: 6px 0 0 6px; }
.mz-tbl thead th:last-child { border-radius: 0 6px 6px 0; }
.mz-tbl tbody td { font-size: 13px; padding: 11px 12px; border-bottom: 1px solid var(--border2); color: var(--tx-body); vertical-align: middle; white-space: nowrap; }
.mz-tbl tbody tr:last-child td { border-bottom: 0; }
.mz-tbl tbody tr:hover td { background: rgba(255,255,255,0.02); }
.mz-td-user { display: flex; align-items: center; gap: 10px; }
.mz-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--cp-dim); color: var(--cp); font-weight: 900; font-size: 12px; }
.mz-avatar.is-accent { background: var(--ca-dim); color: var(--ca); }
.mz-uname { color: var(--tx-title); font-weight: 700; }
.mz-money-pos { color: var(--cp); font-weight: 800; font-variant-numeric: tabular-nums; }
.mz-num { font-variant-numeric: tabular-nums; }
.mz-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; }
.mz-badge-green { background: var(--cp-dim); color: var(--cp); }
.mz-badge-yellow { background: var(--ca-dim); color: var(--ca); }
.mz-badge-red { background: rgba(229,72,77,0.14); color: #e5484d; }
.mz-badge-gray { background: var(--border); color: var(--tx-muted); }
.mz-empty-row td { text-align: center; color: var(--tx-muted); padding: 26px; font-size: 13px; }

.mz-hbars { display: flex; flex-direction: column; gap: 16px; }
.mz-hb-row { display: flex; flex-direction: column; gap: 6px; }
.mz-hb-head { display: flex; align-items: baseline; justify-content: space-between; }
.mz-hb-lbl { font-size: 12.5px; color: var(--tx-body); font-weight: 600; }
.mz-hb-val { font-size: 14px; color: var(--tx-title); font-weight: 900; font-variant-numeric: tabular-nums; }
.mz-hb-track { height: 12px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--border2); }
.mz-hb-fill { height: 100%; border-radius: 999px; transition: width .5s cubic-bezier(.22,1,.36,1); }
.mz-hb-foot { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--tx-muted); font-weight: 600; }

.mz-vbars { display: flex; align-items: flex-end; justify-content: space-around; gap: 14px; height: 160px; padding: 8px 4px 0; }
.mz-vb-col { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; height: 100%; justify-content: flex-end; }
.mz-vb-val { font-size: 13px; font-weight: 900; color: var(--tx-title); font-variant-numeric: tabular-nums; }
.mz-vb-track { width: 100%; max-width: 54px; flex: 1; display: flex; align-items: flex-end; }
.mz-vb-fill { width: 100%; border-radius: 8px 8px 3px 3px; min-height: 4px; background: linear-gradient(180deg, var(--ca), var(--ca-dark)); transition: height .5s cubic-bezier(.22,1,.36,1); }
.mz-vb-lbl { font-size: 11px; font-weight: 700; color: var(--tx-muted); text-align: center; }
.mz-foot-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border2); font-size: 11.5px; color: var(--tx-muted); display: flex; align-items: center; gap: 8px; }
.mz-foot-note b { color: var(--ca); font-weight: 800; }
.mz-foot-note svg { width: 15px; height: 15px; color: var(--ca); flex-shrink: 0; }

.mz-act-group + .mz-act-group { margin-top: 6px; }
.mz-act-item { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-bottom: 1px solid var(--border2); }
.mz-act-item:last-child { border-bottom: 0; }
.mz-act-ico { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.mz-act-ico svg { width: 16px; height: 16px; }
.mz-act-ico.tone-green { background: var(--cp-dim); color: var(--cp); }
.mz-act-ico.tone-accent { background: var(--ca-dim); color: var(--ca); }
.mz-act-ico.tone-muted { background: rgba(255,255,255,0.05); color: var(--tx-body); }
.mz-act-ico.tone-red { background: rgba(229,72,77,0.14); color: #e5484d; }
.mz-act-txt { flex: 1; font-size: 13px; color: var(--tx-body); line-height: 1.35; }
.mz-act-txt b { color: var(--tx-title); font-weight: 700; }
.mz-act-val { font-size: 13px; font-weight: 800; color: var(--tx-title); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mz-act-val.pos { color: var(--cp); }
.mz-act-time { font-size: 11px; color: var(--tx-ph); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 38px; text-align: right; }

.mz-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; background: var(--border); border-radius: 10px; overflow: hidden; }
.mz-tile { background: var(--bg-card); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 5px; }
.mz-tile-val { font-size: 20px; font-weight: 900; color: var(--tx-title); font-variant-numeric: tabular-nums; letter-spacing: -0.3px; line-height: 1; }
.mz-tile-val.accent { color: var(--ca); }
.mz-tile-val.green { color: var(--cp); }
.mz-tile-lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--tx-muted); }
.mz-tile-sub { font-size: 11px; color: var(--tx-ph); font-variant-numeric: tabular-nums; }

@keyframes mzIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.mz-grid > * { animation: mzIn .34s ease both; }
.mz-grid > *:nth-child(2){animation-delay:.03s}.mz-grid > *:nth-child(3){animation-delay:.06s}
.mz-grid > *:nth-child(4){animation-delay:.09s}.mz-grid > *:nth-child(5){animation-delay:.12s}
.mz-grid > *:nth-child(6){animation-delay:.15s}.mz-grid > *:nth-child(7){animation-delay:.18s}
.mz-grid > *:nth-child(8){animation-delay:.21s}.mz-grid > *:nth-child(9){animation-delay:.24s}
.mz-grid > *:nth-child(n+10){animation-delay:.27s}

@media (max-width: 1100px) {
    .mz-col-8 { grid-column: span 12; }
    .mz-col-4 { grid-column: span 12; }
}
@media (max-width: 767px) {
    .mz-wrap { padding: 14px; }
    .mz-grid { gap: 14px; }
    .mz-kpi { grid-column: span 6; }
    .mz-col-6 { grid-column: span 12; }
    .mz-tiles { grid-template-columns: repeat(2, 1fr); }
    .mz-kpi-val { font-size: 24px; }
    .mz-chart-kpis { gap: 16px; }
}
@media (max-width: 430px) {
    .mz-kpi { grid-column: span 12; }
}
@media (prefers-reduced-motion: reduce) {
    .mz-grid > * { animation: none !important; }
}

.admin-table-wrap { padding: 0 14px; overflow-x: auto; }
.admin-table      { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th   { background: var(--bg-card); padding: 9px; text-align: left; color: var(--tx-muted); font-weight: 700; text-transform: uppercase; font-size: 10px; letter-spacing: 0.5px; white-space: nowrap; }
.admin-table td   { padding: 9px; border-bottom: 1px solid var(--border2); color: var(--tx-body); vertical-align: middle; }
.admin-table tr:hover td { background: #1C1E2233; }

/* ============================================================
   BADGES
   ============================================================ */
.badge { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.badge-green  { background: var(--cp-dim);    color: var(--cp); }
.badge-yellow { background: var(--ca-dim);    color: var(--ca); }
.badge-red    { background: #e53e3e22;        color: #e53e3e; }
.badge-gray   { background: var(--border);    color: var(--tx-muted); }

/* Tag de status clicável (aba Depósitos): só a pendente vira botão "marcar como pago" */
.dep-tag-clickable {
    cursor: pointer;
    outline: none;
    transition: filter .15s ease, box-shadow .15s ease, transform .1s ease;
}
.dep-tag-clickable:hover,
.dep-tag-clickable:focus-visible {
    filter: brightness(1.12);
    box-shadow: 0 0 0 2px var(--ca-dim), 0 0 0 1px var(--ca) inset;
}
.dep-tag-clickable:active { transform: scale(0.94); }

/* ============================================================
   TOAST
   ============================================================ */
#toast-container {
    position: fixed;
    top: calc(var(--nav-h) + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 90%;
    max-width: 360px;
    pointer-events: none;
}
.toast {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--border);
    font-size: 14px;
    color: var(--tx-title);
    box-shadow: 0 4px 20px rgba(0,0,0,0.45);
    animation: toastIn 0.28s cubic-bezier(.4,0,.2,1);
    pointer-events: all;
}
.toast-icon-wrap { display: inline-flex; align-items: center; justify-content: center; }
.toast-icon-svg { width: 18px; height: 18px; }
@keyframes toastIn { from { transform: translateY(-12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.toast.success { border-color: var(--cp); }
.toast.error   { border-color: #e53e3e; }
.toast.info    { border-color: #3b82f6; }

/* ============================================================
   EMPTY STATE / LOADING
   ============================================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    gap: 10px;
    text-align: center;
}
.empty-state .ei { display: flex; align-items: center; justify-content: center; }
.empty-icon { width: 46px; height: 46px; color: var(--ca); }
.empty-state .et { font-size: 16px; font-weight: 700; color: var(--tx-title); }
.empty-state .es { font-size: 13px; color: var(--tx-muted); }

.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--cp-dim);
    border-top-color: var(--cp);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto;
}

/* ============================================================
   ICON ANIMATIONS
   ============================================================ */
@keyframes iconpulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}
.icon-pulse { animation: iconpulse 1.4s ease-in-out infinite; }

/* ============================================================
   MISC UTILS
   ============================================================ */
.page-inner { padding: 0 12px; }
.gap-top    { padding-top: calc(var(--nav-h) + 2px); }
.mt-8  { margin-top:  8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.card  { background: var(--bg-card); border-radius: var(--radius); padding: 14px; border: 1px solid var(--border); }
.divider { height: 1px; background: var(--border2); margin: 0; }
.inline-note-icon { width: 14px; height: 14px; margin-right: 4px; }
.hero-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.hero-icon-sm { margin-bottom: 4px; }
.hero-icon-svg { width: 34px; height: 34px; color: var(--ca); }
.profile-item-icon { width: 18px; height: 18px; }
.profile-chevron-icon { width: 14px; height: 14px; color: var(--tx-muted); }
.support-icon { display: flex; align-items: center; margin-bottom: 6px; color: var(--ca); }
.support-icon-svg { width: 22px; height: 22px; }
.action-icon { width: 14px; height: 14px; }
.scratch-overlay-icon { width: 28px; height: 28px; color: var(--ca); }
.promo-pix-icon { width: 40px; height: 40px; color: var(--ca); }
.award-fallback-icon,
.symbol-inline-icon { width: 32px; height: 32px; }

/* ============================================================
   PRÊMIOS DA RASPADINHA — Seção na tela do jogo
   ============================================================ */
.game-prizes-section {
    padding: 20px 16px 8px;
    width: 100%;
}

.game-prizes-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--tx-title);
    margin: 0 0 14px 0;
    font-family: 'Lato', sans-serif;
}

.game-prizes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.game-prize-card {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 14px 10px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}

.game-prize-img-wrap {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.game-prize-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.game-prize-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    font-family: 'Lato', sans-serif;
}

.game-prize-value {
    font-size: 15px;
    font-weight: 900;
    color: var(--ca);
    text-align: center;
    font-family: 'Lato', sans-serif;
}

/* ============================================================
   FOOTER PADRÃO
   ============================================================ */
.app-footer {
    padding: 24px 16px 20px;
    background: #000000;
    color: var(--tx-muted);
    font-family: 'Lato', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
    margin: 0 auto;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 12px;
}
.footer-badge.rounded-lg {
    border-radius: 8px;
}
.footer-badge.rounded-2xl {
    border-radius: 16px;
}

.badge-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.badge-age-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #5EFF00;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 900;
    flex-shrink: 0;
}

.badge-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.badge-text-col span {
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-text-title {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.badge-text-sub {
    font-size: 9px;
    color: #98A7B5;
    font-weight: 400;
}

.footer-disclaimer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-disclaimer p {
    font-size: 11px;
    line-height: 1.5;
    color: var(--tx-muted);
    margin: 0;
    text-align: left;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--border2);
    margin: 12px 0 0 0;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 12px;
    text-align: center;
}

.footer-legal p {
    font-size: 11px;
    line-height: 1.5;
    color: var(--tx-muted);
    margin: 0;
    text-align: center;
}

/* ============================================================
   PIX VIEW — tela unificada de pagamento
   ============================================================ */
.pix-view {
    padding: 8px 0 4px;
}

.pix-view-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.pix-qr-wrap {
    display: flex;
    justify-content: center;
    padding: 12px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}

.pix-qr-img {
    width: 180px;
    height: 180px;
    display: block;
    border-radius: 6px;
}

.pix-qr-placeholder {
    width: 180px;
    height: 180px;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 13px;
}

.pix-status-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pix-status-pending {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--tx-body);
}

.pix-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ca);
    animation: pix-pulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pix-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.8); }
}

.pix-status-paid {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #22c55e;
}

.pix-status-failed {
    font-size: 13px;
    color: #e53e3e;
}

.pix-label {
    font-size: 12px;
    color: var(--tx-muted);
    margin: 0;
    text-align: center;
    align-self: flex-start;
}

.pix-code-box {
    width: 100%;
    background: var(--bg-card2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 11px;
    color: var(--tx-body);
    word-break: break-all;
    line-height: 1.5;
    max-height: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pix-copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: var(--bg-card2);
    color: var(--tx-title);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    justify-content: center;
    transition: background .15s;
}

.pix-copy-btn:active {
    background: var(--cp);
}

.pix-expiry {
    font-size: 12px;
    color: var(--tx-muted);
    text-align: center;
}

.pix-expiry span {
    font-weight: 700;
    color: var(--ca);
}

.pix-hint {
    font-size: 11px;
    color: var(--tx-muted);
    text-align: center;
}

/* ============================================================
   ADMIN — USER MANAGEMENT MODAL
   ============================================================ */
.umgmt-balance-card {
    background: linear-gradient(135deg, var(--cp, #7c3aed), #4c1d95);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}
.umgmt-balance-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.umgmt-balance-val {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}
.umgmt-balance-chips {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 11px;
    color: rgba(255,255,255,0.65);
}
.umgmt-section {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}
.umgmt-section-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tx-muted);
    margin-bottom: 10px;
}
.umgmt-fake {
    border-color: rgba(251,191,36,0.4);
    background: rgba(251,191,36,0.05);
}
.umgmt-fake .umgmt-section-title { color: #f59e0b; }
.umgmt-hint {
    font-size: 10px;
    color: var(--tx-muted);
    margin-top: 6px;
    line-height: 1.4;
}
.umgmt-danger {
    border-color: rgba(229,62,62,0.3);
    margin-top: 4px;
}

/* ============================================================
   SCRATCH GAME
   ============================================================ */
.sg-wrap {
    padding: 0 16px 32px;
    display: flex;
    flex-direction: column;
}

/* --- Área da raspadinha (pré-compra e scratch) --- */
.sg-area {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: #0f0f0f;
}
.sg-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.2);
}
.sg-prebuy-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}
.sg-prebuy-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
    padding: 20px;
    text-align: center;
}
.sg-coin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 4px;
}
.sg-prebuy-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.sg-prebuy-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
}

/* --- Prizes behind canvas (scratch mode) --- */
.sg-prizes-behind {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    z-index: 1;
    background: var(--bg-card);
}
.sg-cell-behind {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    border: 1px solid var(--border);
}
.sg-cell-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.sg-cell-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--tx-title);
    text-align: center;
    line-height: 1.2;
}
.sg-canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    cursor: crosshair;
    touch-action: none;
}

/* --- Botões de ação --- */
.sg-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 14px 0 0;
}
.sg-buy-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--ca);
    color: #111;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    gap: 8px;
}
.sg-buy-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.sg-buy-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sg-buy-price {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #000;
    padding: 6px 13px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.sg-buy-price .pill-currency { color: var(--cp); }
.sg-auto-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    color: var(--tx-title);
    font-size: 14px;
    font-weight: 700;
    padding: 13px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    cursor: pointer;
}
.sg-auto-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.sg-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(0,0,0,0.2);
    border-top-color: #111;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    flex-shrink: 0;
}

/* --- Prêmios da raspadinha --- */
.sg-prizes-section {
    margin-top: 22px;
}
.sg-prizes-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--tx-title);
    margin-bottom: 10px;
}
.sg-prizes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sg-prize-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
}
.sg-prize-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}
.sg-prize-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.sg-prize-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--tx-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sg-prize-val {
    font-size: 14px;
    font-weight: 900;
    color: var(--ca);
}

/* --- Tela de resultado --- */
.sg-result-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 0 40px;
    min-height: 68vh;
    text-align: center;
}
.sg-result-icon {
    margin-bottom: 16px;
    animation: sg-bounce 0.55s ease;
}
.sg-result-win .sg-result-icon { color: var(--ca); }
.sg-result-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--tx-title);
    margin-bottom: 8px;
}
.sg-result-win .sg-result-title { color: var(--ca); }
.sg-result-prize {
    font-size: 44px;
    font-weight: 900;
    color: var(--ca);
    margin-bottom: 8px;
    animation: sg-pop 0.4s ease;
}
.sg-result-sub {
    font-size: 14px;
    color: var(--tx-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}
.sg-result-balance {
    font-size: 13px;
    color: var(--tx-muted);
    margin-bottom: 24px;
    padding: 10px 18px;
    background: var(--bg-card);
    border-radius: 100px;
    display: inline-block;
    border: 1px solid var(--border);
}
.sg-again-btn {
    width: 100%;
    margin-bottom: 0;
}

@keyframes sg-bounce {
    0%   { transform: scale(0.4); opacity: 0; }
    65%  { transform: scale(1.15); }
    100% { transform: scale(1);   opacity: 1; }
}
@keyframes sg-pop {
    0%   { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}

/* --- Botões: Revelar Tudo + Rodada Automática + Jogada Rápida --- */
.sg-reveal-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    background: var(--bg-card);
    color: var(--tx-title);
    font-size: 15px; font-weight: 800;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid var(--border2);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.sg-reveal-btn:active { transform: scale(0.985); background: var(--bg); }
.sg-reveal-btn svg { color: var(--ca); }

.sg-actions-row { display: flex; gap: 10px; margin-top: 10px; }
.sg-actions-row .sg-auto-btn { flex: 1; margin: 0; }
.sg-auto-btn.is-running {
    background: var(--ca-dim);
    border-color: var(--ca);
    color: var(--ca);
}
.sg-auto-btn.is-running svg { color: var(--ca); }
.sg-fast-btn {
    width: 54px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); border: 1px solid var(--border2);
    border-radius: 12px; color: var(--ca); cursor: pointer;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease, transform .1s ease;
}
.sg-fast-btn:active { transform: scale(0.95); }
.sg-fast-btn svg { width: 20px; height: 20px; }
.sg-fast-btn.is-on { background: var(--ca); border-color: var(--ca); color: #111; box-shadow: 0 0 0 3px var(--ca-dim); }

/* --- Dedo do auto-raspar --- */
.sg-finger {
    position: absolute; left: 0; top: 0;
    width: 40px; height: 40px; z-index: 3; pointer-events: none;
    color: #fdf1d6; filter: drop-shadow(0 5px 7px rgba(0,0,0,0.55));
    will-change: transform;
}
.sg-finger svg { width: 100%; height: 100%; }

/* --- Derrota: card discreto e profissional sobre o grid (leve vinheta vermelha, sem tela cheia vermelha) --- */
.sg-lose-flash::after {
    content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
    background: radial-gradient(circle at 50% 45%, rgba(229,62,62,0) 45%, rgba(229,62,62,0.26) 100%);
    animation: sg-lose-flash-anim .7s ease;
}
@keyframes sg-lose-flash-anim { 0% { opacity: 0; } 35% { opacity: 1; } 100% { opacity: 0; } }
.sg-lose-msg {
    position: absolute; inset: 0; z-index: 5;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none; background: rgba(6,8,10,0.6);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .22s ease;
}
.sg-lose-msg.is-show { opacity: 1; }
.sg-lose-card {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    background: rgba(18,21,27,0.96);
    border: 1.5px solid rgba(229,62,62,0.55);
    border-radius: 18px;
    padding: 22px 34px;
    box-shadow: 0 16px 44px rgba(0,0,0,0.55), 0 0 26px rgba(229,62,62,0.2);
    transform: scale(0.9); opacity: 0;
    transition: transform .28s cubic-bezier(.2,.9,.3,1.2), opacity .28s ease;
}
.sg-lose-msg.is-show .sg-lose-card { transform: scale(1); opacity: 1; }
.sg-lose-ico {
    width: 58px; height: 58px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, rgba(229,62,62,0.24), rgba(229,62,62,0.07));
    border: 1.5px solid rgba(229,62,62,0.5);
    color: #ff5c5c;
    box-shadow: 0 0 18px rgba(229,62,62,0.35);
    margin-bottom: 4px;
    animation: sg-lose-bob 1.7s ease-in-out infinite;
}
.sg-lose-ico svg { width: 32px; height: 32px; }
@keyframes sg-lose-bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%      { transform: translateY(1.5px) rotate(-7deg); }
    75%      { transform: translateY(1.5px) rotate(7deg); }
}
.sg-lose-ttl { font-size: 19px; font-weight: 900; color: var(--tx-title); }
.sg-lose-sub { font-size: 13px; color: var(--tx-muted); }

/* --- Vitória: overlay com fundo do site DESFOCADO + Parabéns (acima) + baú/confete (Lottie) --- */
.sg-win-overlay {
    position: fixed; inset: 0; z-index: 4000;
    display: flex; align-items: center; justify-content: center; padding: 20px;
    background: rgba(6,8,10,0.5);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; transition: opacity .28s ease;
}
.sg-win-overlay.is-show { opacity: 1; }
.sg-win-panel {
    position: relative; width: min(94vw, 440px); z-index: 2;
    display: flex; flex-direction: column; align-items: center;
}
.sg-confetti {
    position: absolute; inset: 0; z-index: 1;
    pointer-events: none;
}
.sg-win-close {
    position: absolute; top: -4px; right: -4px;
    background: none; border: none; cursor: pointer; padding: 6px; z-index: 4; line-height: 0;
}
.sg-win-close svg { width: 32px; height: 32px; }
.sg-win-caption {
    text-align: center;
    background: rgba(20,24,31,0.62);
    border: 1px solid rgba(255,201,60,0.3);
    border-radius: 16px;
    padding: 12px 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    z-index: 2;
    /* Fica invisível até o baú abrir de verdade (ver ScratchGame._showWin) — o prêmio não pode aparecer antes */
    opacity: 0;
    transform: scale(0.82) translateY(6px);
    transition: opacity .32s cubic-bezier(.2,.9,.3,1.3), transform .32s cubic-bezier(.2,.9,.3,1.3);
}
.sg-win-caption.is-revealed {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: sg-caption-pulse 1.3s ease-in-out .32s infinite;
}
.sg-win-congrats {
    font-size: 27px; font-weight: 900; line-height: 1.15;
    background: linear-gradient(180deg, #FFEDAE 0%, #FFCB3D 52%, #EBA200 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: #FFCB3D;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
.sg-win-desc { font-size: 15px; color: #FFE3A6; margin-top: 3px; }
.sg-win-desc strong { color: #FFCB3D; font-weight: 900; }
@keyframes sg-caption-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.05); }
}
.sg-win-lottie {
    width: 100%; max-width: 360px; aspect-ratio: 1 / 1;
    margin-top: -6px;
}

/* ============================================================
   ADMIN — ALTER-004: PAGE HEADERS, TOOLBARS, FILTER TABS
   ============================================================ */
.admin-page-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-page-hd-left { display: flex; flex-direction: column; gap: 2px; }
.admin-page-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--tx-title);
    letter-spacing: 0.2px;
}
.admin-page-sub { font-size: 11px; color: var(--tx-muted); }
.admin-page-hd-right { display: flex; align-items: center; gap: 8px; }

.admin-toolbar {
    padding: 0 20px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.admin-search-wrap { position: relative; flex: 1; min-width: 180px; }
.admin-search-ico {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--tx-muted);
    pointer-events: none;
}
.admin-search {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px 9px 34px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--tx-body);
    font-size: 13px;
    font-family: 'Lato', sans-serif;
    outline: none;
    transition: border-color 0.14s;
    min-height: 40px;
}
.admin-search::placeholder { color: var(--tx-muted); }
.admin-search:focus { border-color: var(--cp); }

.admin-filter-tabs {
    display: flex;
    gap: 6px;
    padding: 0 20px 14px;
    flex-wrap: wrap;
}
.admin-ftab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--tx-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.13s;
    font-family: 'Lato', sans-serif;
    min-height: 36px;
}
.admin-ftab:hover { border-color: var(--border2); color: var(--tx-body); background: rgba(255,255,255,0.02); }
.admin-ftab.active { border-color: var(--cp); background: var(--cp-dim); color: var(--cp); }
.admin-ftab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--border);
    color: var(--tx-muted);
    font-size: 10px;
    font-weight: 800;
}
.admin-ftab.active .admin-ftab-count { background: var(--cp); color: #fff; }
.admin-ftab.warn { border-color: rgba(224,82,82,0.25); color: #e05252; }
.admin-ftab.warn.active { border-color: #e05252; background: rgba(224,82,82,0.1); }
.admin-ftab.warn .admin-ftab-count { background: rgba(224,82,82,0.15); color: #e05252; }

/* ============================================================
   ADMIN — ALTER-004: ICON SIZE UTILITY
   ============================================================ */
.icon-lg { width: 40px; height: 40px; }
.btn-ico { width: 14px; height: 14px; margin-right: 5px; display: inline-block; vertical-align: middle; }

/* ============================================================
   ADMIN — SETTINGS PANEL
   ============================================================ */
.settings-wrap { padding: 14px; display: flex; flex-direction: column; gap: 16px; }
.st-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}
.st-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--tx-muted);
    border-bottom: 1px solid var(--border2);
    background: var(--bg-nav);
}
.st-gh-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* Segurança da conta — troca de senha do admin */
.pw-change {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    max-width: 440px;
}
.pw-change-desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--tx-muted);
    margin-bottom: 2px;
}
.pw-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.pw-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--tx-body);
}
.pw-save-btn {
    align-self: flex-start;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pw-save-btn:disabled { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 767px) {
    .pw-change { max-width: 100%; }
    .pw-save-btn { align-self: stretch; justify-content: center; }
}

.pixel-textarea {
    width: 100%;
    min-height: 220px;
    resize: vertical;
    padding: 14px 16px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--tx-title);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.12s;
    box-sizing: border-box;
    white-space: pre;
    overflow: auto;
}
.pixel-textarea:focus { border-color: var(--ca); }
.pixel-textarea::placeholder { color: var(--tx-muted); }
.st-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: var(--border2);
}
.st-row {
    flex: 1 1 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    background: var(--bg-card);
    min-height: 42px;
    transition: background 0.1s;
}
.st-row:hover { background: rgba(255,255,255,0.018); }
.st-row--full { flex: 1 1 100%; }
.st-info { flex: 1; min-width: 0; }
.st-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--tx-title);
    line-height: 1.3;
}
.st-desc {
    font-size: 10.5px;
    color: var(--tx-muted);
    margin-top: 2px;
    line-height: 1.35;
}
.st-ctrl {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.st-input {
    width: 100px;
    padding: 7px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--tx-body);
    font-size: 12px;
    font-family: 'Lato', sans-serif;
    outline: none;
    text-align: right;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.14s;
}
.st-input:focus { border-color: var(--cp); }
.st-input--wide { width: 200px; text-align: left; }
.st-color {
    width: 38px;
    height: 34px;
    padding: 2px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg);
    cursor: pointer;
}
.btn-save-sm {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    background: var(--cp);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.12s;
    font-family: 'Lato', sans-serif;
    white-space: nowrap;
    line-height: 1;
}
.btn-save-sm:hover { background: #16a34a; }

/* ── Gateway: cartões de credencial (valor mascarado + lápis + salvar) ── */
.gw-creds { display: flex; flex-direction: column; gap: 10px; }
.gw-cred { background: var(--bg-card2); border: 1px solid var(--border); border-radius: 10px; padding: 13px 15px; display: flex; flex-direction: column; gap: 7px; }
.gw-cred--ro { gap: 5px; }
.gw-cred-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gw-cred-label { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; color: var(--tx-title); }
.gw-cred-status { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px; padding: 2px 8px; border-radius: 999px; }
.gw-cred-status.is-on { color: var(--cp); background: var(--cp-dim); }
.gw-cred-status.is-off { color: var(--tx-muted); background: var(--border); }
.gw-cred-desc { font-size: 11.5px; color: var(--tx-muted); line-height: 1.45; }
.gw-cred-value { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--tx-body); background: var(--bg); border: 1px solid var(--border2); border-radius: 7px; padding: 8px 11px; word-break: break-all; }
.gw-cred-empty { color: var(--tx-ph); font-style: italic; }
.gw-edit-btn { flex-shrink: 0; width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-card); color: var(--tx-muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.gw-edit-btn:hover { color: var(--ca); border-color: var(--ca); background: var(--ca-dim); }
.gw-edit-ico { width: 15px; height: 15px; display: block; }
.gw-cred-edit { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gw-cred-input { flex: 1; min-width: 200px; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 9px 11px; color: var(--tx-title); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; }
.gw-cred-input::placeholder { color: var(--tx-ph); }
.gw-cred-input:focus { outline: none; border-color: var(--ca); box-shadow: 0 0 0 3px var(--ca-dim); }
.gw-cancel-btn { background: transparent; border: 1px solid var(--border); color: var(--tx-muted); border-radius: 6px; padding: 6px 13px; font-size: 11px; font-weight: 700; cursor: pointer; font-family: 'Lato', sans-serif; transition: color .15s, border-color .15s; line-height: 1; }
.gw-cancel-btn:hover { color: var(--tx-body); border-color: var(--tx-muted); }

/* ── Utilitários compartilhados do admin (consistência entre abas) ── */
.adm-error { padding: 20px; color: var(--danger); font-size: 13px; }
.adm-search { width: 100%; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--tx-title); font-size: 13px; font-family: 'Lato', sans-serif; outline: none; transition: border-color .14s; }
.adm-search::placeholder { color: var(--tx-ph); }
.adm-search:focus { border-color: var(--cp); }
.adm-search-wrap { padding: 16px 20px 8px; }

/* células de tabela padronizadas (ritmo consistente entre abas) */
.adm-td-id { color: var(--tx-muted); font-variant-numeric: tabular-nums; }
.adm-td-name { font-weight: 700; color: var(--tx-title); }
.adm-td-amt { color: var(--ca); font-weight: 900; font-variant-numeric: tabular-nums; }
.adm-td-amt.is-green { color: var(--cp); }
.adm-td-meta { font-size: 11px; color: var(--tx-muted); }
.adm-td-empty { text-align: center; padding: 32px; color: var(--tx-muted); }
.adm-tbl-actions { display: inline-flex; gap: 5px; align-items: center; white-space: nowrap; }
.adm-icon-btn { background: none; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; color: var(--tx-muted); width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: color .14s, border-color .14s, background .14s; }
.adm-icon-btn svg { width: 15px; height: 15px; }
.adm-icon-btn:hover { color: var(--tx-body); border-color: var(--tx-muted); background: rgba(255,255,255,0.03); }
.adm-icon-btn.is-danger:hover { color: var(--danger); border-color: var(--danger); background: var(--danger-dim); }
.adm-pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; color: var(--tx-muted); font-size: 12px; }
.adm-pager-btns { display: flex; gap: 6px; }
.adm-count { padding: 4px 20px 10px; font-size: 12px; color: var(--tx-muted); }

/* Toggle switch for settings */
.st-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}
.st-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.st-toggle-track {
    width: 44px;
    height: 24px;
    background: var(--border2);
    border-radius: 12px;
    transition: background 0.2s;
    position: relative;
}
.st-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.st-toggle input:checked + .st-toggle-track { background: var(--cp); }
.st-toggle input:checked + .st-toggle-track::after { transform: translateX(20px); }

/* ============================================================
   ADMIN — ALTER-004: USER PROFILE MODAL (UPM)
   ============================================================ */
.upm-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 16px;
    overflow: hidden;
}
.upm-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--cp-dim);
    border: 2px solid var(--cp);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: var(--cp);
    flex-shrink: 0;
    text-transform: uppercase;
}
.upm-info { flex: 1; min-width: 0; }
.upm-name {
    font-size: 16px;
    font-weight: 900;
    color: var(--tx-title);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.upm-email {
    font-size: 11px;
    color: var(--tx-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.upm-badges { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

.upm-wallet-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border2);
    border-bottom: 1px solid var(--border2);
}
.upm-wallet-cell {
    background: var(--bg-card);
    padding: 13px 10px;
    text-align: center;
}
.upm-wallet-val {
    font-size: 14px;
    font-weight: 900;
    color: var(--tx-title);
    line-height: 1;
    margin-bottom: 4px;
}
.upm-wallet-lbl {
    font-size: 9px;
    color: var(--tx-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}
.upm-wallet-cell.accent .upm-wallet-val { color: var(--cp); }
.upm-wallet-cell.warn .upm-wallet-val   { color: var(--ca); }

.upm-tabs {
    display: flex;
    border-bottom: 1px solid var(--border2);
    background: var(--bg-card);
}
.upm-tab {
    flex: 1;
    padding: 11px 8px;
    border: none;
    background: none;
    color: var(--tx-muted);
    font-size: 11px;
    font-weight: 800;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    transition: color 0.13s;
    border-bottom: 2px solid transparent;
    position: relative;
    bottom: -1px;
    min-height: 40px;
}
.upm-tab.active { color: var(--cp); border-bottom-color: var(--cp); }
.upm-tab:hover:not(.active) { color: var(--tx-body); }

.upm-panel { display: none; }
.upm-panel.active { display: block; }

.upm-body { padding: 14px 16px; }
.upm-section { margin-bottom: 18px; }
.upm-section-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--tx-muted);
    margin-bottom: 10px;
}
.upm-fields { display: grid; gap: 10px; }
.upm-field-2 { grid-template-columns: 1fr 1fr; }
.upm-field label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--tx-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}
.upm-field input:not([type="checkbox"]),
.upm-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--tx-body);
    font-size: 13px;
    font-family: 'Lato', sans-serif;
    outline: none;
    transition: border-color 0.14s;
    min-height: 40px;
}
.upm-field input:not([type="checkbox"]):focus,
.upm-field select:focus { border-color: var(--cp); }
.upm-field input[readonly] { opacity: 0.55; cursor: default; }

/* Toggle switch — modo demo */
.upm-toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.upm-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.upm-toggle-track {
    width: 44px; height: 24px;
    background: var(--border2);
    border-radius: 12px;
    transition: background .2s;
    position: relative;
}
.upm-toggle-track::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.upm-toggle input:checked + .upm-toggle-track { background: var(--cp); }
.upm-toggle input:checked + .upm-toggle-track::after { transform: translateX(20px); }

.upm-hint {
    font-size: 11px;
    color: var(--tx-muted);
    margin-top: 7px;
    line-height: 1.4;
}
.upm-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border2);
    font-size: 12px;
    gap: 8px;
}
.upm-info-row:last-child { border-bottom: none; }
.upm-info-key { color: var(--tx-muted); font-weight: 600; white-space: nowrap; }
.upm-info-val { color: var(--tx-body); font-weight: 700; text-align: right; word-break: break-all; }

.upm-danger-zone {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--border2);
}
.upm-danger-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #e05252;
    margin-bottom: 10px;
}

/* ============================================================
   ADMIN — ALTER-004: PRIZES PANEL
   ============================================================ */
.prizes-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 14px;
    flex-wrap: wrap;
}
.prizes-filter-select {
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--tx-body);
    font-size: 12px;
    font-family: 'Lato', sans-serif;
    outline: none;
    cursor: pointer;
    min-height: 38px;
    transition: border-color 0.14s;
}
.prizes-filter-select:focus { border-color: var(--cp); }

.prizes-grid {
    padding: 4px 20px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.prize-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.14s, transform 0.14s;
}
.prize-card:hover { border-color: var(--border2); transform: translateY(-1px); }
.prize-card-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.prize-card-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.prize-card-placeholder { width: 40px; height: 40px; color: var(--border); }
.prize-card-jackpot-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 10px;
    background: var(--ca);
    color: var(--ca-text);
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.prize-card-body { padding: 10px 12px 12px; }
.prize-card-name {
    font-size: 11px;
    font-weight: 800;
    color: var(--tx-title);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prize-card-value {
    font-size: 17px;
    font-weight: 900;
    color: var(--cp);
    margin-bottom: 3px;
    line-height: 1;
}
.prize-card-meta { font-size: 10px; color: var(--tx-muted); margin-bottom: 10px; }
.prize-card-actions { display: flex; gap: 6px; }
.prize-card-actions button {
    flex: 1;
    padding: 7px 4px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--border);
    background: none;
    color: var(--tx-muted);
    font-family: 'Lato', sans-serif;
    transition: all 0.13s;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.prize-card-actions .btn-edit { color: var(--tx-body); }
.prize-card-actions .btn-edit:hover { background: var(--border); color: var(--tx-title); }
.prize-card-actions .btn-del  { color: #e05252; border-color: rgba(224,82,82,0.2); }
.prize-card-actions .btn-del:hover { background: rgba(224,82,82,0.1); border-color: #e05252; }

.prizes-empty {
    padding: 52px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.prizes-empty-icon { color: var(--border); }
.prizes-empty-icon svg { width: 48px; height: 48px; }
.prizes-empty-text { font-size: 13px; color: var(--tx-muted); line-height: 1.5; }

/* Prize/Card form fields */
.pf-grid { display: grid; gap: 12px; padding: 16px; }
.pf-grid-2 { grid-template-columns: 1fr 1fr; }
.pf-field label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tx-muted);
    margin-bottom: 5px;
}
.pf-field input,
.pf-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--tx-body);
    font-size: 13px;
    font-family: 'Lato', sans-serif;
    outline: none;
    min-height: 40px;
    transition: border-color 0.14s;
}
.pf-field input:focus,
.pf-field select:focus { border-color: var(--cp); }
.pf-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    accent-color: var(--ca);
    cursor: pointer;
}
.pf-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 18px;
}
.pf-check-row label {
    font-size: 13px;
    font-weight: 700;
    color: var(--tx-body);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 0;
    cursor: pointer;
}

.pf-img-upload {
    border: 1.5px dashed var(--border);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.14s, background 0.14s;
    display: block;
}
.pf-img-upload:hover { border-color: var(--cp); background: var(--cp-dim); }
.pf-img-preview { max-height: 80px; object-fit: contain; border-radius: 6px; display: block; margin: 0 auto 8px; }
.pf-img-label { font-size: 11px; color: var(--tx-muted); display: flex; align-items: center; justify-content: center; gap: 5px; }

.pf-section {
    border: 1px solid rgba(255,191,57,0.2);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255,191,57,0.04);
}
.pf-section-title {
    font-size: 10px;
    font-weight: 800;
    color: var(--ca);
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pf-actions { padding: 0 16px 16px; display: flex; gap: 10px; }

/* Win% slider */
.pf-slider-row { display: flex; align-items: center; gap: 12px; }
.pf-slider { flex: 1; accent-color: var(--ca); height: 4px; cursor: pointer; }
.pf-win-badge {
    font-size: 22px;
    font-weight: 900;
    color: var(--ca);
    min-width: 58px;
    text-align: right;
    line-height: 1;
}
.pf-hint { font-size: 11px; color: var(--tx-muted); margin-top: 5px; line-height: 1.4; }

/* Card image upload areas */
.pf-img-pair { display: flex; gap: 10px; }
.pf-img-pair .pf-img-upload { flex: 1; }

/* Withdrawal table extras */
.wd-meta { font-size: 11px; color: var(--tx-muted); margin-top: 2px; }
.wd-pix-key { font-family: monospace; font-size: 11px; }
.wd-action-cell { display: flex; gap: 6px; flex-wrap: wrap; }

/* ============================================================
   ADMIN — ALTER-004: RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
    .prizes-grid { grid-template-columns: repeat(3, 1fr); }
    .pf-grid-2   { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
    .prizes-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 767px) {
    .upm-field-2 { grid-template-columns: 1fr; }
    .pf-grid-2   { grid-template-columns: 1fr; }
    .pf-img-pair { flex-direction: column; }
}

@media (min-width: 768px) {
    .upm-body { padding: 20px 24px; }
    .upm-section { margin-bottom: 24px; }
    .upm-fields.upm-field-2 { grid-template-columns: 1fr 1fr; }
    .upm-info-row { font-size: 13px; padding: 10px 0; }
    .upm-wallet-cell { padding: 16px 14px; }
    .upm-wallet-val { font-size: 16px; }
    .upm-tab { font-size: 12px; padding: 12px 16px; }
    .upm-danger-zone { padding: 16px 24px 20px; }
    .upm-content { margin-top: 20px; }
}

