/* Casinos tab — immersive blue, negatives red, no green. */
#view-casinos { --cz-pos: var(--primary); }
html[data-theme="dark"] #view-casinos { --cz-pos: #93C5FD; }
#view-casinos .cz-pos { color: var(--cz-pos); }
#view-casinos .neg { color: var(--loss); }
.cz-new { white-space: nowrap; }
.cz-subtabs { display: flex; gap: 6px; padding: 4px; margin: 4px 0 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; width: max-content; max-width: 100%; overflow-x: auto; }
.cz-subtabs button { border: 0; background: transparent; color: var(--ink-muted); font: inherit; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; }
.cz-subtabs button.on { background: var(--primary); color: var(--on-primary); box-shadow: 0 4px 12px var(--primary-ring); }
.cz-body { min-height: 70vh; contain: layout paint; }
.cz-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.cz-kpi { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(160deg, var(--hero-from), var(--hero-to)); border: 1px solid var(--line); min-width: 0; }
.cz-kpi-l { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.cz-kpi-v { font-size: 19px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-kpi-s { font-size: 11px; color: var(--ink-faint); }
.cz-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cz-card-head h2 { font-size: 15px; margin: 0; }
.cz-count { font-size: 12px; color: var(--primary); background: var(--primary-soft); padding: 1px 8px; border-radius: 999px; margin-left: 4px; }
.cz-chart-card, .cz-tablecard, .cz-filters { margin-bottom: 14px; }
.cz-chart { width: 100%; height: 240px; display: block; }
.cz-axis { stroke: var(--line-strong); stroke-width: 1; }
.cz-bar { fill: var(--primary); opacity: .85; }
.cz-bar.neg { fill: var(--loss); }
.cz-line { fill: none; stroke: var(--primary-dark); stroke-width: 2.5; stroke-linejoin: round; }
html[data-theme="dark"] .cz-line { stroke: #93C5FD; }
.cz-dot { fill: var(--bg-elevated); stroke: var(--primary-dark); stroke-width: 2; }
.cz-lbl { font-size: 11px; fill: var(--ink-muted); text-anchor: middle; }
.cz-scroll { overflow: auto; -webkit-overflow-scrolling: touch; }
.cz-tall { max-height: 560px; }
.cz-mid { max-height: 300px; }
.cz-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.cz-table th { position: sticky; top: 0; z-index: 1; background: var(--primary); color: var(--on-primary); text-align: right; font-weight: 700; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; padding: 8px 10px; white-space: nowrap; }
.cz-table th:first-child { text-align: left; border-top-left-radius: 8px; }
.cz-table th:last-child { border-top-right-radius: 8px; }
.cz-table td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.cz-table td:first-child { text-align: left; }
.cz-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--primary-soft) 55%, transparent); }
.cz-table tbody tr[data-cz-casino], .cz-row { cursor: pointer; }
.cz-table tbody tr[data-cz-casino]:hover td, .cz-row:hover td, .cz-row:focus td { background: var(--primary-soft); outline: none; }
.cz-sessions td:nth-child(2), .cz-sessions td:nth-child(3) { text-align: left; }
.cz-nowrap { white-space: nowrap; }
.cz-empty { text-align: center !important; color: var(--ink-muted); padding: 24px !important; }
.cz-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cz-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.cz-seg button { border: 0; background: transparent; padding: 5px 12px; font: inherit; font-size: 12px; color: var(--ink-muted); cursor: pointer; }
.cz-seg button.on { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.cz-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.cz-field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .03em; min-width: 0; }
.cz-field input, .cz-field select { font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); background: var(--bg-elevated); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; min-height: 38px; width: 100%; box-sizing: border-box; }
.cz-field input:focus, .cz-field select:focus { outline: 2px solid var(--primary-ring); border-color: var(--primary); }
.cz-grow { flex: 1 1 160px; }
.cz-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); min-height: 38px; cursor: pointer; }
.cz-toggle input { width: 18px; height: 18px; accent-color: var(--primary); }
.cz-btn { min-height: 38px; padding: 0 14px; }
.cz-sumbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 2px 10px; font-size: 13px; color: var(--ink-muted); }
.cz-sumbar b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cz-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.cz-pill.open { background: var(--primary-soft); color: var(--primary-dark); }
.cz-pill.wait { background: var(--amber-soft); color: var(--amber); }
.cz-pill.done { background: var(--bg-soft); color: var(--ink-muted); }
.cz-more { margin-top: 10px; }
.cz-casgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.cz-cas { display: flex; flex-direction: column; gap: 6px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; border: 1px solid var(--line); }
.cz-cas:hover { border-color: var(--primary); }
.cz-cas.ready { border-color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }
.cz-cas-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.cz-cas-name { font-weight: 800; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-rev { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800; line-height: 20px; white-space: nowrap; color: var(--primary); background: var(--primary-soft); border: 1px solid transparent; text-decoration: none; font-variant-numeric: tabular-nums; }
.cz-rev i { font-style: normal; font-weight: 600; opacity: .8; }
a.cz-rev:hover, a.cz-rev:focus-visible { border-color: var(--primary); outline: none; }
.cz-rev.none { color: var(--ink-faint); background: var(--bg-soft); font-weight: 600; }
html[data-theme="dark"] .cz-rev { color: #BFDBFE; }
html[data-theme="dark"] .cz-rev.none { color: var(--ink-muted); }
.cz-cas:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cz-cas-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--ink-muted); }
.cz-cas-row b { color: var(--ink); }
.cz-cas.ready .cz-cas-row b:first-child { color: var(--cz-pos); }
.cz-games { display: flex; flex-wrap: wrap; gap: 4px; }
.cz-game { font-size: 11px; background: var(--primary-soft); color: var(--primary-dark); border-radius: 999px; padding: 2px 8px; }
.cz-game i { font-style: normal; font-weight: 700; }
.cz-notes { font-size: 12px; color: var(--ink-muted); }
.cz-cas-stat { border-top: 1px dashed var(--line); padding-top: 6px; }
.cz-skel { display: grid; gap: 12px; }
.cz-skel div { height: 120px; border-radius: 14px; background: linear-gradient(90deg, var(--bg-soft), var(--primary-soft), var(--bg-soft)); }
.cz-panel { max-width: 560px; background: var(--bg-elevated); }
.cz-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.cz-recv { align-self: end; }
.cz-preview { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-muted); background: var(--primary-soft); border-radius: 10px; padding: 10px 12px; }
.cz-preview b { color: var(--ink); }
.cz-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.cz-actions .btn-primary { min-width: 120px; }
@media (max-width: 1100px) { .cz-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .cz-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cz-kpi { padding: 10px 12px; }
  .cz-kpi-v { font-size: 16px; }
  .cz-two { grid-template-columns: 1fr; }
  .cz-filters .cz-field { flex: 1 1 calc(50% - 10px); }
  .cz-tall { max-height: 70vh; }

}
.bottom-nav { grid-template-columns: repeat(9, minmax(0, 1fr)); }
/* ---- Sessions v2 ---- */
.cz-mono { font-family: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
#view-casinos .cz-amber { color: var(--amber); }
.cz-actbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.cz-bigbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg-elevated); color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.cz-bigbtn:hover { border-color: var(--primary); }
.cz-bigbtn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); box-shadow: 0 6px 16px var(--primary-ring); }
.cz-bigbtn.primary:hover { background: var(--primary-dark); }
.cz-bigbtn svg, .cz-ibtn svg, .cz-chip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cz-range { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; padding: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.cz-range button { border: 0; background: transparent; color: var(--ink-muted); font: inherit; font-size: 13px; font-weight: 700; padding: 8px 0; border-radius: 9px; cursor: pointer; }
.cz-range button.on { background: var(--primary); color: var(--on-primary); }
.cz-custom { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.cz-casrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cz-casrow > span { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.cz-casrow select { flex: 1; min-width: 0; font: inherit; font-size: 14px; color: var(--ink); background: var(--bg-elevated); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 10px; min-height: 40px; }
.cz-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.cz-stat { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--hero-from), var(--hero-to)); min-width: 0; }
.cz-stat > span { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.cz-stat b { font-size: 24px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-sec { margin-bottom: 14px; }
.cz-sec-head { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: transparent; padding: 8px 2px; font: inherit; cursor: pointer; color: var(--ink); }
.cz-sec-head > span:first-child { flex: 1; text-align: left; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cz-sec-head em { font-style: normal; font-size: 11px; color: var(--primary); background: var(--primary-soft); padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.cz-sec-head .cz-mono { font-weight: 700; }
.cz-chev { width: 18px; height: 18px; fill: none; stroke: var(--ink-muted); stroke-width: 2; transition: transform .15s; }
.cz-sec.folded .cz-chev { transform: rotate(-90deg); }
.cz-sec.folded .cz-sec-body { display: none; }
.cz-sec-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cz-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--bg-elevated); color: var(--ink-muted); font: inherit; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 9px; cursor: pointer; }
.cz-chip svg { width: 14px; height: 14px; }
.cz-chip.on { color: var(--primary-dark); border-color: var(--primary); background: var(--primary-soft); }
.cz-search { flex: 1 1 200px; max-width: 320px; font: inherit; font-size: 14px; color: var(--ink); background: var(--bg-elevated); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; }
.cz-pcard { border: 1px solid var(--line); background: var(--bg-elevated); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; box-shadow: inset 3px 0 0 var(--amber); }
.cz-pcard-name { font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.cz-pcard-name span { font-weight: 500; font-size: 12px; color: var(--ink-muted); }
.cz-pcard-row { display: flex; align-items: center; gap: 12px; }
.cz-pdate { font-size: 13px; color: var(--ink-muted); }
.cz-pcard-row .cz-mono { font-size: 16px; font-weight: 700; }
.cz-pact { margin-left: auto; display: flex; gap: 6px; }
.cz-ibtn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink-muted); cursor: pointer; }
.cz-ibtn:hover { background: var(--bg-soft); }
.cz-ibtn.recv { color: var(--primary); }
.cz-ibtn.del { color: var(--loss); }
.cz-inh { font-style: normal; color: var(--ink-faint); margin-left: 1px; }
.cz-settings { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin-bottom: 14px; }
.cz-settings .cz-field { width: 180px; }
.cz-settings-hint { flex: 1 1 280px; margin: 0; }
.cz-span { grid-column: 1 / -1; }
.cz-paste-text { font-family: ui-monospace, Menlo, monospace; font-size: 12px; width: 100%; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px; background: var(--bg-elevated); color: var(--ink); resize: vertical; }
@media (max-width: 720px) {
  .cz-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cz-stat b { font-size: 19px; }
  .cz-bigbtn { font-size: 14px; min-height: 44px; }
  .cz-range button { font-size: 12px; }
}
#view-casinos .cz-toggle, #view-casinos .cz-casrow, .cz-form .cz-toggle { flex-direction: row; align-items: center; width: auto; }
#view-casinos .cz-toggle input, .cz-form .cz-toggle input { margin: 0; width: 18px; height: 18px; flex: none; }
#view-casinos .cz-casrow > span { flex: none; }

/* Withdrawal times: fixed row heights so tab switches and sorting never move the page */
.cz-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cz-wd-note { margin: 0 2px 10px; }
.cz-wdt th, .cz-wdt td { height: 40px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; line-height: 40px; }
.cz-wdt td.cz-nodata { text-align: center; color: var(--ink-faint); font-style: italic; }
.cz-wdt td:first-child { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .cz-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .cz-kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
