/* Ticket8 Club — página do cliente (club.php). Palco escuro (grafite, preto e roxo bem escuro) com o
   rosa da paleta ativa como destaque (--t8-brand). A roleta é SVG; partículas num <canvas> leve.
   Comportamento em assets/js/club-roleta.js. */
.cb-page {
  --cb-brand: var(--t8-brand, #e0119a);
  --cb-brand-rgb: var(--t8-brand-rgb, 224 17 154);
  --cb-ink: #f6f3f8; --cb-mute: #aaa3b2; --cb-faint: #6f6877;
  --cb-line: rgba(255, 255, 255, .08); --cb-line-2: rgba(255, 255, 255, .14);
  --cb-card: rgba(23, 19, 28, .78); --cb-card-solid: #17131c; --cb-tile: #100d13;
  position: relative; isolation: isolate; min-height: 640px;
  color: var(--cb-ink);
  background:
    radial-gradient(900px 420px at 88% -6%, rgb(var(--cb-brand-rgb) / .20), transparent 62%),
    radial-gradient(700px 520px at 104% 96%, rgb(var(--cb-brand-rgb) / .14), transparent 60%),
    radial-gradient(600px 400px at -8% 40%, rgba(88, 40, 120, .16), transparent 65%),
    linear-gradient(180deg, #120e16 0%, #0c0a0f 55%, #0a080c 100%);
}
/* faixas de luz curvas (como no material de referência), só decoração */
.cb-streak { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.cb-streak svg { position: absolute; width: 900px; max-width: none; opacity: .55; }
.cb-streak .s1 { top: -120px; right: -260px; }
.cb-streak .s2 { bottom: -160px; right: -300px; transform: scaleY(-1); opacity: .35; }

.cb-card { background: var(--cb-card); border: 1px solid var(--cb-line); border-radius: 20px; box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -20px rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.cb-ink { color: var(--cb-ink); } .cb-mute { color: var(--cb-mute); }
.cb-kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cb-ink); opacity: .9; }
.cb-slash { display: inline-block; width: 7px; height: 16px; background: var(--cb-brand); transform: skewX(-18deg); border-radius: 2px; box-shadow: 0 0 10px rgb(var(--cb-brand-rgb) / .6); }
.cb-title { font-size: clamp(26px, 4.2vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }

/* carteiras */
.cb-wallet { position: relative; overflow: hidden; min-width: 220px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(150deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid var(--cb-line-2); transition: border-color .2s, box-shadow .2s; }
.cb-wallet[aria-current="true"] { border-color: rgb(var(--cb-brand-rgb) / .75); box-shadow: 0 0 0 1px rgb(var(--cb-brand-rgb) / .35), 0 0 28px -6px rgb(var(--cb-brand-rgb) / .55); }
.cb-wallet img { position: absolute; right: 14px; top: 50%; width: 54px; transform: translateY(-50%) rotate(-10deg); opacity: .5; filter: drop-shadow(0 0 10px rgb(var(--cb-brand-rgb) / .5)); }

/* abas */
.cb-tabs { border-bottom: 1px solid var(--cb-line); }
.cb-tab { position: relative; padding: 0 2px 12px; color: var(--cb-mute); font-weight: 600; transition: color .15s; }
.cb-tab:hover { color: var(--cb-ink); }
.cb-tab[aria-selected="true"] { color: var(--cb-ink); font-weight: 700; }
.cb-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--cb-brand); box-shadow: 0 0 12px rgb(var(--cb-brand-rgb) / .8); }

/* indicadores */
.cb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--cb-line); border-radius: 16px; background: rgba(0,0,0,.22); }
.cb-stat { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-width: 0; }
.cb-stat + .cb-stat { border-left: 1px solid var(--cb-line); }
.cb-stat i, .cb-stat svg { width: 22px; height: 22px; color: var(--cb-brand); flex: none; filter: drop-shadow(0 0 6px rgb(var(--cb-brand-rgb) / .55)); }
.cb-stat p { line-height: 1.15; }
.cb-stat .v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .cb-stat { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px; } .cb-stat .v { font-size: 19px; } }

.cb-h2 { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; font-style: italic; letter-spacing: -.01em; }
.cb-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 40px; border-radius: 12px; border: 1px solid var(--cb-line-2); background: rgba(255,255,255,.04); color: var(--cb-ink); transition: background .15s, border-color .15s; }
.cb-iconbtn:hover { background: rgba(255,255,255,.08); }
.cb-iconbtn[aria-pressed="false"] { color: var(--cb-mute); }
.cb-iconbtn svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- roleta */
.cb-stage { position: relative; width: min(100%, 460px); margin: 6px auto 0; aspect-ratio: 1; }
.cb-stage canvas { position: absolute; inset: -9%; width: 118%; height: 118%; pointer-events: none; }
.cb-stage > svg { position: relative; width: 100%; height: 100%; display: block; overflow: visible; }
.cb-halo { opacity: .55; transition: opacity .6s ease; }
.cb-spinning .cb-halo { opacity: 1; }
.cb-ring { transition: stroke-opacity .5s ease; }
.cb-spinning .cb-ring { stroke-opacity: 1; }
.cb-label { font-weight: 800; font-size: 15px; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.35); stroke-width: 2px; letter-spacing: -.01em; }
.cb-label.r { font-size: 16px; }
.cb-hl { fill: #fff; fill-opacity: 0; stroke: var(--cb-brand); stroke-opacity: 0; stroke-width: 2.5; transition: fill-opacity .35s ease, stroke-opacity .35s ease; }
.cb-hl.on { fill-opacity: .16; stroke-opacity: 1; }
.cb-won .cb-hl.on { animation: cb-pulse 1.1s ease-in-out 3; }
@keyframes cb-pulse { 50% { fill-opacity: .3; } }
.cb-rare-glow { animation: cb-breathe 3.2s ease-in-out infinite; }
@keyframes cb-breathe { 50% { opacity: .55; } }
.cb-halo-pulse { animation: cb-halo 2.8s ease-in-out infinite; }
@keyframes cb-halo { 50% { opacity: .78; } }

/* comemoração sobre a roleta (não bloqueia a página; some sozinha ou com um toque) */
.cb-celebrate { position: absolute; inset: 22%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 50%; pointer-events: auto; cursor: pointer;
  background: radial-gradient(circle, rgba(12, 8, 14, .92) 0%, rgba(12, 8, 14, .82) 58%, rgba(12, 8, 14, 0) 72%); opacity: 0; transform: scale(.7); transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.cb-celebrate.on { opacity: 1; transform: scale(1); }
.cb-celebrate .t { font-size: clamp(22px, 6vw, 34px); font-weight: 900; font-style: italic; letter-spacing: .02em; color: #fff; text-shadow: 0 0 18px rgb(var(--cb-brand-rgb) / .9), 0 0 40px rgb(var(--cb-brand-rgb) / .6); }
.cb-celebrate .p { margin-top: 2px; font-size: clamp(16px, 4.4vw, 22px); font-weight: 800; color: #ffd6f0; font-variant-numeric: tabular-nums; }
.cb-celebrate.legendary .t { font-size: clamp(20px, 5.4vw, 34px); line-height: 1.05; background: linear-gradient(90deg, #fff, #ffc2ea, #fff, #ff8ad6, #fff); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: cb-sheen 1.6s linear infinite; }
@keyframes cb-sheen { to { background-position: -200% 0; } }

/* valores do giro */
.cb-stakes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.cb-stake { height: 52px; border-radius: 14px; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--cb-ink); background: rgba(255,255,255,.04); border: 1.5px solid var(--cb-line-2); transition: border-color .15s, box-shadow .2s, background .15s, transform .1s; }
.cb-stake:hover { background: rgba(255,255,255,.07); }
.cb-stake:active { transform: scale(.97); }
.cb-stake[aria-pressed="true"] { border-color: var(--cb-brand); background: rgb(var(--cb-brand-rgb) / .16); box-shadow: 0 0 0 1px rgb(var(--cb-brand-rgb) / .5), 0 0 22px -4px rgb(var(--cb-brand-rgb) / .8); }
.cb-stake[aria-disabled="true"] { color: var(--cb-faint); background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.06); box-shadow: none; cursor: not-allowed; }
.cb-stake:focus-visible, .cb-go:focus-visible, .cb-iconbtn:focus-visible, .cb-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.cb-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.cb-check input { appearance: none; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 6px; border: 1.5px solid var(--cb-line-2); background: rgba(255,255,255,.04); display: grid; place-content: center; cursor: pointer; }
.cb-check input:checked { background: var(--cb-brand); border-color: var(--cb-brand); box-shadow: 0 0 12px rgb(var(--cb-brand-rgb) / .6); }
.cb-check input:checked::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg); }
.cb-check a { color: #ffb3e3; text-decoration: underline; text-underline-offset: 3px; }

.cb-go { position: relative; width: 100%; height: 60px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 19px; font-weight: 800; color: #fff; overflow: hidden;
  background: var(--cb-brand);
  background: linear-gradient(180deg, color-mix(in srgb, var(--cb-brand) 78%, #fff) 0%, var(--cb-brand) 48%, color-mix(in srgb, var(--cb-brand) 72%, #000) 100%);
  box-shadow: 0 0 0 1px rgb(var(--cb-brand-rgb) / .7), 0 10px 30px -8px rgb(var(--cb-brand-rgb) / .75), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .1s, filter .15s, opacity .2s; }
.cb-go:hover:not(:disabled) { filter: brightness(1.08); }
.cb-go:active:not(:disabled) { transform: scale(.985); }
.cb-go:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.cb-go svg { width: 22px; height: 22px; }
.cb-go.busy svg { animation: cb-rot .9s linear infinite; }
@keyframes cb-rot { to { transform: rotate(360deg); } }
.cb-link { background: none; border: 0; color: var(--cb-mute); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cb-link:hover { color: var(--cb-ink); }
.cb-msg { border-radius: 12px; padding: 10px 12px; font-size: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--cb-line); }
.cb-msg.bad { color: #ffb4b4; border-color: rgba(255, 99, 99, .35); background: rgba(255, 70, 70, .08); }
.cb-msg.good { color: #b7f3cd; border-color: rgba(80, 220, 140, .3); background: rgba(80, 220, 140, .07); }

/* resultado: o ingresso picotado da marca */
.cb-result { position: relative; margin-top: 18px; border-radius: 18px; padding: 18px 18px 16px; background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--cb-line-2); text-align: center; animation: cb-in .45s cubic-bezier(.2, 1.2, .4, 1); }
.cb-result.rare { border-color: rgb(var(--cb-brand-rgb) / .7); box-shadow: 0 0 34px -8px rgb(var(--cb-brand-rgb) / .8); background: linear-gradient(160deg, rgb(var(--cb-brand-rgb) / .22), rgba(255,255,255,.02)); }
@keyframes cb-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.cb-result .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--cb-ink); }
.cb-result.rare .tag { background: var(--cb-brand); color: #fff; }
.cb-result .tag svg { width: 15px; height: 15px; }
.cb-result .pay { margin-top: 8px; font-size: 32px; font-weight: 900; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cb-result .stub { margin: 14px -18px 0; padding: 12px 18px 0; border-top: 2px dashed var(--cb-line-2); position: relative; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--cb-mute); }
.cb-result .stub::before, .cb-result .stub::after { content: ""; position: absolute; top: -10px; width: 18px; height: 18px; border-radius: 50%; background: #141017; box-shadow: inset 0 0 0 1px var(--cb-line-2); }
.cb-result .stub::before { left: -10px; } .cb-result .stub::after { right: -10px; }
.cb-result .stub b { color: var(--cb-ink); font-variant-numeric: tabular-nums; }

/* tabela de chances */
.cb-odds summary { list-style: none; cursor: pointer; }
.cb-odds summary::-webkit-details-marker { display: none; }
.cb-odds summary .chev { transition: transform .2s; }
.cb-odds[open] summary .chev { transform: rotate(180deg); }
@media (min-width: 1024px) { .cb-odds summary { cursor: default; pointer-events: none; } .cb-odds summary .chev { display: none; } }
.cb-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-variant-numeric: tabular-nums; }
.cb-table th { font-size: 13px; font-weight: 600; color: var(--cb-mute); text-align: right; padding: 0 10px 8px; border-bottom: 1px solid var(--cb-line-2); }
.cb-table th:first-child { text-align: left; }
.cb-table td { padding: 10px; text-align: right; font-size: 15px; border-bottom: 1px solid var(--cb-line); }
.cb-table td:first-child { text-align: left; }
.cb-table td:last-child { font-weight: 800; }
.cb-table tr.rare td { border-bottom: 0; font-weight: 800; background: rgb(var(--cb-brand-rgb) / .2); border-top: 1px solid rgb(var(--cb-brand-rgb) / .45); border-bottom: 1px solid rgb(var(--cb-brand-rgb) / .45); }
.cb-table tr.rare td:first-child { border-left: 1px solid rgb(var(--cb-brand-rgb) / .45); border-radius: 12px 0 0 12px; }
.cb-table tr.rare td:last-child { border-right: 1px solid rgb(var(--cb-brand-rgb) / .45); border-radius: 0 12px 12px 0; }
.cb-table tr.rare.mega td { background: rgb(var(--cb-brand-rgb) / .3); }
.cb-table tr.rare.legendary td { background: rgb(var(--cb-brand-rgb) / .45); }
.cb-table tr.rare svg { width: 16px; height: 16px; display: inline; vertical-align: -3px; margin-right: 6px; color: #ff9ad8; }
.cb-table tr.now td { box-shadow: inset 0 0 0 999px rgba(255,255,255,.06); }
@media (max-width: 420px) { .cb-table td { padding: 9px 6px; font-size: 14px; } .cb-table th { padding: 0 6px 8px; font-size: 12px; } }

/* demais abas e diálogo no palco escuro */
.cb-page .cb-stub { border-top: 2px dashed var(--cb-line-2); position: relative; }
.cb-page .cb-stub::before, .cb-page .cb-stub::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--cb-tile); }
.cb-page .cb-stub::before { left: -9px; } .cb-page .cb-stub::after { right: -9px; }
.cb-page .cb-qr svg { width: 100%; height: auto; display: block; }
.cb-btn { background: var(--cb-brand); color: #fff; box-shadow: 0 6px 20px -8px rgb(var(--cb-brand-rgb) / .8); }
.cb-btn:disabled { opacity: .45; box-shadow: none; }

.sr-only-cb { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .cb-rare-glow, .cb-halo-pulse, .cb-won .cb-hl.on, .cb-celebrate.legendary .t, .cb-go.busy svg { animation: none !important; }
  .cb-result, .cb-celebrate { animation: none; transition: opacity .2s; transform: none; }
}

/* o fundo da página inteira acompanha o palco (sem faixas claras entre o cabeçalho e o rodapé) */
body.cb-dark-body { background-color: #0b090e !important; }
.cb-stake[aria-disabled="true"][aria-pressed="true"] { border-style: dashed; border-color: rgb(var(--cb-brand-rgb) / .55); color: var(--cb-mute); }
