/* Roulette Sinais Pro — theme driven by CSS variables from PHP */
:root {
  /* --primary / --secondary / --accent / --bg vêm do PHP (tema salvo no admin) */
  --primary: #C9A227;
  --secondary: #0D0D0D;
  --accent: #28a745;
  --bg: #0D0D0D;
  --surface: #121212;
  --surface-2: #1a1a1a;
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --red: #c62828;
  --black: #1c1c1c;
  --green: #1b7a3d;
  --border: color-mix(in srgb, var(--primary) 55%, transparent);
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
  --app-max: 1100px;
  --app-gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
button, input, select, textarea { font: inherit; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%),
    linear-gradient(180deg, #0c0c0c, var(--bg));
  color: var(--text);
  line-height: 1.45;
}

a { color: var(--primary); text-decoration: none; }
a:hover { opacity: .9; }
img { max-width: 100%; display: block; }

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
}

/* Header — sempre full width */
.app-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 40;
  box-sizing: border-box;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--primary); font-weight: 800; letter-spacing: .04em; font-size: .95rem; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand--logo img {
  width: auto;
  height: 40px;
  max-width: min(220px, 42vw);
  object-fit: contain;
}
.brand-fallback {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--primary);
  display: grid; place-items: center; font-size: .75rem;
}
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-balance {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 70%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 26%, #111), color-mix(in srgb, var(--primary) 10%, #0a0a0a));
  color: var(--primary);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent);
}
.header-deposit {
  padding: 8px 12px;
  font-size: .72rem;
  gap: 6px;
}
.header-deposit__ico {
  display: inline-flex;
  width: 16px;
  height: 16px;
}
.header-deposit__ico svg {
  width: 16px;
  height: 16px;
  display: block;
}
.deposit-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.deposit-quick .btn {
  flex: 1;
  min-width: 72px;
  border-radius: 8px;
  padding: 8px;
}
.deposit-qr {
  display: block;
  width: min(220px, 100%);
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}
.balance-gate-wallet {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
  background: color-mix(in srgb, var(--primary) 10%, #0d0d0d);
}
.balance-gate-wallet__label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 75%, #aaa);
}
.balance-gate-wallet__value {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 800;
}

/* Menu lateral — login externo (desktop) */
.app-sidebar {
  display: none;
}
.app-shell.has-house-sidebar .header-balance {
  display: inline-flex;
}
@media (min-width: 981px) {
  .app-shell.has-house-sidebar {
    padding-left: 248px;
  }
  .app-shell.has-house-sidebar .header-balance {
    display: none; /* saldo fica na sidebar no desktop */
  }
  .app-shell.has-house-sidebar .header-deposit {
    display: none;
  }
  .app-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 248px;
    z-index: 50;
    background: #050505;
    border-right: 1px solid rgba(255,255,255,.08);
    padding: 18px 12px 20px;
    overflow-y: auto;
  }
  .app-sidebar__profile {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 4px 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .app-sidebar__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .app-sidebar__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--primary) 65%, transparent);
    display: grid;
    place-items: center;
    color: var(--primary);
    font-weight: 800;
    font-size: .95rem;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--primary) 12%, #111);
  }
  .app-sidebar__who {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .app-sidebar__hello {
    font-size: .68rem;
    color: var(--muted);
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 600;
  }
  .app-sidebar__name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .app-sidebar__wallet {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--primary) 45%, transparent);
    background: color-mix(in srgb, var(--primary) 10%, #0d0d0d);
  }
  .app-sidebar__wallet-label {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--primary) 75%, #aaa);
  }
  .app-sidebar__balance {
    display: block;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.15;
  }
  .app-sidebar__deposit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--primary);
    color: #111;
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .app-sidebar__deposit-ico {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
  .app-sidebar__deposit-ico svg {
    width: 18px;
    height: 18px;
    display: block;
  }
  .app-sidebar__deposit:hover {
    filter: brightness(1.06);
  }
  .app-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .app-sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #e8e8e8;
    font-size: .88rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
  }
  .app-sidebar__link:hover {
    background: rgba(255,255,255,.05);
    opacity: 1;
  }
  .app-sidebar__link.is-active {
    background: rgba(255,255,255,.07);
    border-color: color-mix(in srgb, var(--primary) 70%, transparent);
    color: #fff;
  }
  .app-sidebar__ico {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: inherit;
  }
  .app-sidebar__ico svg {
    width: 20px;
    height: 20px;
  }
}
.auth-modal__hint {
  margin: 0 0 12px;
  font-size: .78rem;
  color: var(--muted);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--primary); background: transparent; color: var(--primary);
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .78rem;
  cursor: pointer; letter-spacing: .04em;
}
.btn-solid { background: var(--primary); color: #111; border-color: var(--primary); }
.btn:hover { filter: brightness(1.08); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--primary);
  display: grid; place-items: center; color: var(--primary); font-size: .75rem; font-weight: 700;
}

.container {
  width: min(var(--app-max), calc(100% - var(--app-gutter)));
  margin: 0 auto;
  padding: 18px 0 40px;
  box-sizing: border-box;
}
.panel {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(18,18,18,.9); overflow: hidden;
}

/* Login */
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(800px 400px at 20% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent),
    radial-gradient(600px 400px at 90% 100%, color-mix(in srgb, var(--primary) 12%, transparent), transparent),
    var(--bg);
}
.login-card {
  width: min(420px, 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, #161616, #0d0d0d);
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.login-card h1 { margin: 0; color: var(--primary); font-size: 1.4rem; letter-spacing: .04em; }
.login-card .sub { color: var(--muted); margin: 8px 0 24px; font-size: .9rem; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 6px; letter-spacing: .04em; }
.form-control {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #2a2a2a; background: #0a0a0a; color: var(--text); outline: none;
}
.form-control:focus { border-color: var(--primary); }

/* Color picker (admin) */
.color-field {
  display: grid;
  grid-template-columns: 48px 1fr 28px;
  gap: 8px;
  align-items: center;
}
.color-field__swatch {
  width: 48px;
  height: 42px;
  padding: 0;
  border: 1px solid #333;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}
.color-field__swatch::-webkit-color-swatch-wrapper { padding: 3px; }
.color-field__swatch::-webkit-color-swatch {
  border: 0;
  border-radius: 7px;
}
.color-field__swatch::-moz-color-swatch {
  border: 0;
  border-radius: 7px;
}
.color-field__hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.color-field__preview {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
}

/* Page loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  background: #000;
  pointer-events: none;
}
.page-loader.is-visible {
  display: grid;
  pointer-events: auto;
}
.page-loader__inner {
  text-align: center;
  padding: 24px;
  width: min(320px, 90vw);
}
.page-loader__logo {
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
}
.page-loader__wheel {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  animation: wheelSpin 1.1s linear infinite;
}
.page-loader__wheel svg { width: 100%; height: 100%; display: block; }
@keyframes wheelSpin {
  to { transform: rotate(360deg); }
}
.page-loader__title {
  margin: 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
}
.page-loader__sub {
  margin: 8px 0 0;
  color: #555;
  font-size: .88rem;
}
.page-loader__bar {
  margin: 18px auto 0;
  width: 120px;
  height: 3px;
  border-radius: 99px;
  background: #1a1a1a;
  overflow: hidden;
}
.page-loader__bar i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 99px;
  animation: loaderBar 1.1s ease-in-out infinite;
}
@keyframes loaderBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.password-field {
  position: relative;
  display: block;
}
.password-field .form-control {
  padding-right: 46px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.password-toggle:hover { color: var(--primary); }
.password-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.password-toggle .eye-off { display: none; }
.password-toggle.is-on .eye-on { display: none; }
.password-toggle.is-on .eye-off { display: block; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.tab {
  padding: 10px; border-radius: 8px; border: 1px solid #333; background: transparent;
  color: var(--muted); font-weight: 700; font-size: .75rem; cursor: pointer; letter-spacing: .05em;
}
.tab.active { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.alert { padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; font-size: .85rem; }
.alert-error { background: #2a1212; border: 1px solid #a33; color: #f5c2c2; }
.alert-ok { background: #122a1a; border: 1px solid #2e7d4f; color: #b8e0c8; }
.hidden { display: none !important; }

/* Auth modal */
.auth-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.auth-modal.open { display: flex; }
.auth-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}
.auth-modal__dialog {
  position: relative; z-index: 1;
  width: min(440px, 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(160deg, #171717, #0c0c0c);
  padding: 26px 24px 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  animation: authIn .22s ease-out;
}
@keyframes authIn {
  from { transform: translateY(10px) scale(.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.auth-modal__close {
  position: absolute; top: 10px; right: 12px;
  border: 0; background: transparent; color: var(--muted);
  font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.auth-modal__brand { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; padding-right: 24px; }
.auth-modal__brand img { width: 44px; height: 44px; object-fit: contain; }
.auth-modal__brand h2 { margin: 0; color: var(--primary); font-size: 1.1rem; }
.auth-modal__brand p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.auth-modal__brand--logo {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-right: 0;
}
.auth-modal__brand--logo img {
  width: auto;
  height: 56px;
  max-width: min(260px, 70vw);
  object-fit: contain;
}
.auth-modal__brand--logo p { margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.auth-modal__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.auth-modal__submit { width: 100%; margin-top: 8px; padding: 12px; border-radius: 10px; }
.auth-modal__hint { margin: 14px 0 0; font-size: .72rem; color: var(--muted); text-align: center; }

.auth-age-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 10px;
  padding: 12px 12px 12px 10px;
  border: 1px solid color-mix(in srgb, var(--border) 90%, #fff);
  border-radius: 10px;
  background: color-mix(in srgb, #fff 3%, transparent);
  cursor: pointer;
  user-select: none;
}
.auth-age-check input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}
.auth-age-check__text {
  font-size: .72rem;
  line-height: 1.45;
  color: color-mix(in srgb, #fff 82%, var(--muted));
}
.auth-age-check__text strong { color: #fff; font-weight: 700; }
.auth-age-check__text a { color: var(--primary); text-decoration: underline; }

.auth-login-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 12%, #0a0a0a);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, transparent);
}
.auth-login-alert__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #0a0a0a;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}
.auth-login-alert__text {
  flex: 1;
  font-size: .7rem;
  line-height: 1.45;
  color: color-mix(in srgb, #fff 78%, var(--muted));
}
.auth-login-alert__text a { color: #fff; text-decoration: underline; }
.auth-login-alert__text strong { color: #fff; }

/* Guest preview */
.preview-note {
  text-align: center; color: var(--muted); font-size: .8rem; letter-spacing: .04em;
  margin-bottom: 8px; padding: 8px 12px; border: 1px dashed color-mix(in srgb, var(--primary) 35%, transparent);
  border-radius: 8px; background: color-mix(in srgb, var(--primary) 6%, transparent);
}
.preview-picks { margin-top: 28px; }
.preview-picks .pick-card { width: 100%; font: inherit; color: inherit; text-align: center; }
[data-require-auth] { cursor: pointer; }

/* Dashboard */
.dash { padding-bottom: 100px; }
.dash-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 14%, #0a0a0a);
  border: 1.5px solid var(--primary);
  box-shadow: none;
  color: #fff;
}
.dash-alert__ico {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  border: 1.5px solid var(--primary);
  color: var(--primary);
  box-sizing: border-box;
}
.dash-alert__ico svg {
  width: 15px !important;
  height: 15px !important;
  max-width: 15px;
  max-height: 15px;
  display: block;
  flex-shrink: 0;
  margin: 0;
  vertical-align: middle;
}
.dash-alert__text {
  flex: 1;
  min-width: 0;
  font-size: .84rem;
  line-height: 1.45;
  color: #f2f2f2;
  font-weight: 500;
}
.dash-alert__text a,
.dash-alert__text a:visited {
  color: #fff !important;
  text-decoration: underline;
  font-weight: 700;
}
.dash-alert__text strong,
.dash-alert__text b {
  color: #fff;
  font-weight: 800;
}
.dash-alert__text p { margin: 0 0 .35em; }
.dash-alert__text p:last-child { margin-bottom: 0; }
.dash-hero {
  border-radius: 16px; overflow: hidden; margin-bottom: 16px;
  border: 1px solid var(--border); background: #0a0a0a;
  line-height: 0;
  max-width: 100%;
}
.dash-hero img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}
.dash-hero .banner-mobile { display: none; }
.dash-hero__fallback {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 28px 26px;
  background:
    radial-gradient(600px 200px at 85% 50%, color-mix(in srgb, var(--primary) 22%, transparent), transparent),
    linear-gradient(120deg, #14100c, #0b0b0b 55%);
}
.dash-hero__eyebrow { margin: 0 0 6px; color: var(--primary); font-size: .72rem; letter-spacing: .12em; font-weight: 700; }
.dash-hero__fallback h1 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); color: #fff; }
.dash-hero__logo {
  display: block;
  height: clamp(42px, 7vw, 64px);
  width: auto;
  max-width: min(320px, 70vw);
  object-fit: contain;
  margin: 4px 0 2px;
}
.dash-hero__text { color: var(--muted); margin: 10px 0 18px; max-width: 42ch; font-size: .92rem; }
.dash-hero__cta { border-radius: 10px; padding: 11px 18px; }
.dash-hero__art {
  width: 110px; height: 110px; border-radius: 24px; display: grid; place-items: center;
  font-size: 3rem; color: var(--primary); border: 1px solid var(--border);
  background: color-mix(in srgb, var(--primary) 10%, #111);
}

.dash-section { margin-bottom: 18px; }
.dash-section__head { margin-bottom: 10px; }
.dash-section__head h2 { margin: 0; font-size: 1.05rem; color: #fff; }
.dash-section__head p { margin: 2px 0 0; color: var(--muted); font-size: .8rem; }
.dash-empty { color: var(--muted); font-size: .9rem; }

.game-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(170px, 200px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.game-rail::-webkit-scrollbar { height: 6px; }
.game-rail::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary) 45%, #333); border-radius: 99px;
}

.game-card {
  scroll-snap-align: start;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  background: #121212;
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s;
  display: block;
  width: 100%;
}
.game-card:hover,
.game-card.selected {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 18%, transparent);
}
.game-card__media {
  position: relative; aspect-ratio: 3/4; background: #0a0a0a; overflow: hidden;
  isolation: isolate;
}
.game-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
/* Luz passando na imagem (shimmer) — todos sincronizados */
.game-card__media::after {
  content: '';
  position: absolute;
  inset: -20% -60%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.08) 46%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0.08) 54%,
    transparent 60%
  );
  transform: translateX(-130%) skewX(-12deg);
  animation: gameCardShine 5.5s linear infinite;
}
@keyframes gameCardShine {
  /* 2.5s parado → 3s atravessando (ciclo total 5.5s) */
  0%, 45.45% { transform: translateX(-130%) skewX(-12deg); }
  99.99% { transform: translateX(130%) skewX(-12deg); }
  100% { transform: translateX(-130%) skewX(-12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .game-card__media::after { animation: none; opacity: 0; }
}
.game-card__placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  color: var(--primary); letter-spacing: .12em; font-weight: 800; font-size: .75rem;
  background: linear-gradient(160deg, #1a140c, #0d0d0d);
}
.game-card__live, .game-card__hot, .game-card__cat {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .62rem; font-weight: 800; letter-spacing: .03em;
  line-height: 1; padding: 5px 8px; pointer-events: none;
}
.game-card__live {
  top: 8px; left: 8px;
  border-radius: 999px;
  background: #e11d2e;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.game-card__live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: livePulse 1.4s ease-out infinite;
  flex: 0 0 auto;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); }
  70% { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.game-card__hot {
  top: 8px; right: 8px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ff8a1f 0%, #ff5a00 100%);
  color: #fff;
  font-style: italic;
  letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(255,90,0,.35);
}
.game-card__hot-icon {
  width: 11px; height: 11px; fill: #fff; flex: 0 0 auto;
}
.game-card__cat {
  left: 8px; bottom: 8px;
  background: rgba(0,0,0,.65); color: #fff; border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px; font-style: normal; letter-spacing: .04em;
}
.game-card__body { padding: 10px 11px 12px; }
.game-card__title { font-weight: 700; font-size: .9rem; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-card__meta {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-size: .72rem; margin-bottom: 8px; font-weight: 700;
}
.game-card__stat {
  display: inline-flex; align-items: center; gap: 5px; line-height: 1;
}
.game-card__stat svg {
  width: 14px; height: 14px; flex-shrink: 0;
}
.game-card__stat--users {
  color: #22c55e;
}
.game-card__stat--users svg { fill: currentColor; }
.game-card__stat--signals {
  color: var(--primary);
}
.game-card__stat--signals svg {
  fill: currentColor;
}
.game-card__rtp {
  display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: center;
  font-size: .68rem; color: var(--muted);
}
.game-card__rtp strong { color: #4fd1c5; }
.game-card__rtp-bar {
  height: 4px; border-radius: 99px; background: #222; overflow: hidden;
}
.game-card__rtp-bar i {
  display: block; height: 100%; background: linear-gradient(90deg, #2dd4bf, #67e8f9);
}

.game-card__cat--slot {
  background: color-mix(in srgb, #7c3aed 65%, #000);
  border-color: rgba(255,255,255,.12);
}
.slot-card { cursor: pointer; }

.strategy-rail { grid-auto-columns: minmax(200px, 240px); }

/* Slot — entrega de sinal (análise) */
.slot-analysis {
  position: relative;
  border: 1px solid var(--primary);
  border-radius: 12px;
  background: linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
  padding: 16px 14px 14px;
  margin-bottom: 8px;
  text-align: center;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 15%, transparent) inset;
}
.slot-analysis__tag {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #111;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 999px;
}
.slot-analysis__panel {
  display: none;
  gap: 8px;
  justify-items: center;
}
.slot-analysis__panel:not([hidden]) { display: grid; }
.slot-analysis__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}
.slot-analysis__icon svg { width: 20px; height: 20px; }
.slot-analysis__title {
  margin: 0;
  font-size: .92rem;
  color: #fff;
  font-weight: 800;
}
.slot-analysis__desc {
  margin: 0;
  max-width: 300px;
  font-size: .74rem;
  color: var(--muted);
  line-height: 1.35;
}
.slot-analysis__cta {
  margin-top: 2px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #111;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .04em;
  padding: 9px 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 30%, transparent);
}
.slot-analysis__cta:hover { filter: brightness(1.08); }
.slot-analysis__spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px dotted var(--primary);
  animation: slotSpin 1s linear infinite;
}
@keyframes slotSpin { to { transform: rotate(360deg); } }
.slot-analysis__progress {
  width: min(320px, 100%);
  height: 6px;
  border-radius: 999px;
  background: #222;
  overflow: hidden;
}
.slot-analysis__progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    var(--primary),
    color-mix(in srgb, var(--primary) 65%, #fff)
  );
  border-radius: 999px;
  transition: width .12s linear;
}
.slot-analysis__hint {
  margin: 0;
  font-size: .72rem;
  color: var(--muted);
  font-style: italic;
}
.slot-analysis__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
}
.slot-pill {
  flex: 1 1 120px;
  max-width: 180px;
  padding: 9px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .03em;
}
.slot-pill--turbo {
  background: var(--primary);
  color: #111;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 30%, transparent);
}
.slot-pill--normal {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 85%, #fff),
    var(--accent)
  );
  color: #06221f;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 22%, transparent);
}
.slot-analysis__valid {
  width: min(360px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  font-size: .74rem;
  color: #ddd;
}
.slot-analysis__valid-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px color-mix(in srgb, var(--primary) 80%, transparent);
}
.slot-analysis__valid strong { color: #fff; }
.slot-analysis__refresh {
  border: 1px solid #333;
  background: #161616;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.slot-analysis__refresh:not(:disabled):hover {
  border-color: var(--primary);
  color: #fff;
}
.slot-analysis__refresh[hidden] {
  display: none !important;
}
.slot-analysis__refresh:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.slot-layout .slot-analysis {
  margin-top: 6px;
}

.strategy-rail { grid-auto-columns: minmax(200px, 240px); }
.strategy-card { padding: 16px 14px; min-height: 140px; }
.strategy-card__icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--primary); margin-bottom: 12px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.strategy-card__name { font-weight: 800; font-size: .95rem; }
.strategy-card__var { color: var(--primary); font-size: .78rem; margin-top: 4px; font-weight: 700; }
.strategy-card__desc { color: var(--muted); font-size: .75rem; margin-top: 8px; line-height: 1.35; }

/* Strategy single-choice — compact */
.strategy-pick-section {
  border: 1px solid color-mix(in srgb, var(--primary) 28%, #2a2a2a);
  border-radius: 12px;
  padding: 12px 14px 12px;
  background: rgba(14,14,14,.92);
  margin-bottom: 18px;
}
.strategy-pick-intro {
  text-align: left;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.strategy-pick-intro__icon {
  display: none;
}
.strategy-pick-intro__live {
  margin: 0; color: var(--primary); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.strategy-pick-intro h2 {
  margin: 0; font-size: .95rem; color: #fff; font-weight: 800;
}
.strategy-pick-intro p {
  display: none;
}
.strategy-pick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: none;
  margin: 0;
}
.strategy-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #2c2c2c;
  background: #101010;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.strategy-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.strategy-pick__radio {
  flex: 0 0 16px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--primary) 70%, #666);
  display: grid; place-items: center;
  background: transparent;
}
.strategy-pick__radio::after {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  transform: scale(0);
  transition: transform .15s ease;
}
.strategy-pick.selected,
.strategy-pick:has(input:checked) {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, #121212);
  box-shadow: none;
}
.strategy-pick.selected .strategy-pick__radio::after,
.strategy-pick:has(input:checked) .strategy-pick__radio::after {
  transform: scale(1);
}
.strategy-pick__text {
  display: flex; flex-direction: row; align-items: center; gap: 6px; min-width: 0;
}
.strategy-pick__name {
  font-weight: 700; font-size: .82rem; color: #f2f2f2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.strategy-pick__var {
  font-size: .72rem; color: var(--primary); font-weight: 600;
  white-space: nowrap;
}
.strategy-pick__var::before { content: "· "; color: #666; }
.strategy-pick:hover {
  border-color: color-mix(in srgb, var(--primary) 55%, #444);
}

.strategy-pick-carousel { display: contents; }
.strategy-pick-nav { display: none; }

.dash-cta-bar {
  display: none;
}

.bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  transform: none !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr 54px 1fr 1fr !important;
  align-items: end;
  justify-items: center;
  gap: 0;
  z-index: 100 !important;
  border-radius: 16px 16px 0 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-top: 1px solid color-mix(in srgb, var(--primary) 35%, #333);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(8,8,8,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 -8px 30px rgba(0,0,0,.45);
  box-sizing: border-box;
  overflow: visible;
}
.bottom-nav__slot {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.bottom-nav a,
.bottom-nav button {
  border: 0; background: transparent; color: var(--muted);
  font-size: .6rem; font-weight: 700; letter-spacing: .02em;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer;
  text-decoration: none;
  min-height: 48px;
  width: 100%;
  max-width: 72px;
  padding: 0 2px;
  -webkit-user-select: none;
  user-select: none;
  box-sizing: border-box;
}
.bottom-nav button span { line-height: 1; }
.bottom-nav .bn-lbl {
  line-height: 1;
  font-size: .6rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bottom-nav .is-active { color: var(--primary); }
.bottom-nav .is-active .bn-ico svg { stroke-width: 2.1; }
.bottom-nav__home {
  width: 54px !important;
  height: 54px !important;
  max-width: 54px !important;
  min-height: 54px !important;
  margin: -26px 0 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  border-radius: 50% !important;
  background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 70%, #000)) !important;
  color: #111 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 45%, transparent) !important;
  line-height: 0;
  box-sizing: border-box;
}
.bottom-nav .bn-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  line-height: 0;
  flex-shrink: 0;
}
.bottom-nav .bn-ico svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  margin: 0;
}
.bottom-nav__home .bn-ico,
.bottom-nav__home .bn-ico svg {
  width: 24px;
  height: 24px;
}
.bottom-nav__home .bn-lbl { display: none; }

@media (max-width: 768px) {
  .dash-hero .banner-desktop { display: none; }
  .dash-hero .banner-mobile { display: block; }
  .dash-hero__fallback { flex-direction: column; align-items: flex-start; }
  .dash-hero__art { align-self: flex-end; width: 84px; height: 84px; font-size: 2.2rem; }

  /* —— Mobile app shell —— */
  html, body {
    overscroll-behavior-y: none;
    -webkit-tap-highlight-color: transparent;
    max-width: 100%;
  }
  body {
    background: #050505;
  }
  .app-shell {
    min-height: 100dvh;
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    max-width: 100%;
  }
  .container.dash,
  .dash-hero,
  .strategy-pick-section,
  .game-rail {
    max-width: 100%;
  }
  .app-header {
    position: sticky;
    top: 0;
    z-index: 60;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
    gap: 10px;
    background: rgba(5,5,5,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .nav-main { display: none !important; }
  .brand--logo img { height: 32px; max-width: 148px; }
  .brand-text { display: none; }
  .header-actions { gap: 8px; }
  .header-balance {
    padding: 7px 10px;
    font-size: .7rem;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-actions .btn {
    padding: 8px 14px;
    font-size: .72rem;
    border-radius: 999px;
  }
  .header-actions .btn-solid {
    padding: 8px 14px;
    font-size: .72rem;
    border-radius: 999px;
  }

  .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 0 24px;
  }
  .dash { padding-bottom: 100px; }

  .dash-alert {
    margin: 0 12px 12px;
    border-radius: 12px;
  }

  .dash-hero {
    margin: 0 0 12px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
  }
  .dash-hero img {
    max-height: none;
    width: 100%;
  }
  .dash-hero__fallback {
    margin: 0 12px;
    border-radius: 14px;
    padding: 18px 16px;
  }

  .strategy-pick-section {
    margin: 0 12px 14px;
    border-radius: 14px;
    padding: 10px 10px 8px;
  }
  .strategy-pick-carousel {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .strategy-pick-nav {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--primary) 42%, #333);
    background: #121212;
    color: var(--primary);
    cursor: pointer;
    transition: border-color .15s, background .15s, opacity .15s;
  }
  .strategy-pick-nav svg {
    width: 18px;
    height: 18px;
  }
  .strategy-pick-nav:hover:not(:disabled) {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, #121212);
  }
  .strategy-pick-nav:disabled {
    opacity: 0.35;
    cursor: default;
  }
  .strategy-pick-list {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: center;
    overflow: hidden;
    gap: 8px;
    padding-bottom: 0;
    width: auto;
    max-width: none;
    -webkit-overflow-scrolling: auto;
    scrollbar-width: none;
  }
  .strategy-pick-list::-webkit-scrollbar { display: none; }
  .strategy-pick {
    flex: 1 1 auto;
    display: none !important;
    justify-content: center;
    padding: 10px 12px;
    min-height: 42px;
    max-width: 100%;
  }
  .strategy-pick.selected,
  .strategy-pick:has(input:checked) {
    display: inline-flex !important;
  }
  .strategy-pick__text {
    justify-content: center;
    text-align: center;
  }
  .strategy-pick__name {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .dash-section { margin: 0 0 14px; }
  .dash-section__head {
    padding: 0 14px;
    margin-bottom: 8px;
  }
  .dash-section__head h2 { font-size: 1rem; }
  .dash-section__head p { font-size: .75rem; }

  .game-rail {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    grid-auto-columns: unset !important;
    gap: 10px;
    padding: 0 12px 6px;
    overflow-x: visible !important;
    scroll-snap-type: none;
    width: 100%;
    max-width: 100%;
  }
  .game-card {
    border-radius: 16px;
    border-color: rgba(255,255,255,.08);
    width: 100%;
    min-width: 0;
  }
  label.game-card,
  button.game-card {
    display: block;
    width: 100%;
    margin: 0;
  }
  .game-card__media { aspect-ratio: 3 / 4; }
  .game-card__body { padding: 10px 10px 12px; }
  .game-card__title { font-size: .8rem; }
  .game-card__meta { font-size: .65rem; flex-wrap: wrap; }
  .game-card__rtp { font-size: .62rem; }

  .auth-modal { padding: 0; align-items: flex-end; }
  .auth-modal__dialog {
    width: 100%;
    max-width: none;
    border-radius: 20px 20px 0 0;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    animation: authSheet .28s ease-out;
  }
  @keyframes authSheet {
    from { transform: translateY(40%); opacity: .6; }
    to { transform: none; opacity: 1; }
  }

  .signals-layout {
    padding: 0 10px 12px;
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }
  .slot-layout {
    padding-top: 14px;
  }
  .slot-layout .slot-analysis {
    margin-top: 10px;
  }
  .signal-banner {
    padding: 10px 12px;
    border-radius: 12px;
    gap: 8px;
  }
  .signal-banner__meta {
    font-size: .7rem;
    width: 100%;
    text-align: left;
  }
  .iframe-panel {
    border-radius: 12px;
    height: calc(100dvh - 280px);
    min-height: 42dvh;
    max-height: 68dvh;
    z-index: 5;
    pointer-events: auto;
    touch-action: auto;
  }
  .iframe-panel iframe {
    pointer-events: auto !important;
    touch-action: auto !important;
  }
  .mesa-panel {
    border-radius: 12px;
    padding: 10px;
  }
  .roulette-board {
    gap: 2px;
  }
  .zero-cell {
    flex-basis: 24px;
    width: 24px;
    font-size: .7rem;
  }
  .numbers-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(3, clamp(26px, 7.5vw, 34px));
    gap: 1px;
  }
  .num-cell { font-size: clamp(.48rem, 2.4vw, .68rem); }

  /* Menu inferior: fixo na viewport */
  .bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    grid-template-columns: 1fr 1fr 54px 1fr 1fr !important;
  }
  .bottom-nav__home {
    width: 54px !important;
    height: 54px !important;
    margin-top: -26px !important;
  }
}

@media (min-width: 769px) {
  .dash-hero .banner-mobile { display: none !important; }
  .dash-hero img {
    width: 100%;
    height: auto;
    max-height: none;
  }
  .dash {
    max-width: 100%;
  }
  .game-rail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 210px));
    grid-auto-flow: unset;
    grid-auto-columns: unset;
    overflow-x: visible;
    justify-content: start;
    gap: 14px;
  }
  .strategy-pick-section {
    max-width: 100%;
  }

  /* Mesmo eixo central da home: conteúdo centralizado */
  .container,
  .signals-layout.container,
  .aulas-page.container {
    width: min(var(--app-max), calc(100% - var(--app-gutter)));
    margin-left: auto;
    margin-right: auto;
  }
  .signals-layout {
    gap: 14px;
    padding-bottom: 12px;
  }
  .iframe-panel {
    height: min(62vh, 560px);
    min-height: 420px;
    border-radius: 14px;
  }
  .mesa-panel {
    border-radius: 14px;
  }
  .numbers-grid {
    grid-template-rows: repeat(3, 40px);
  }
  .num-cell {
    font-size: .8rem;
  }

  /* Menu inferior: menor e centralizado no desktop */
  .bottom-nav {
    position: fixed !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    bottom: 16px !important;
    transform: translateX(-50%) !important;
    width: min(420px, calc(100% - var(--app-gutter))) !important;
    max-width: 420px !important;
    grid-template-columns: 1fr 1fr 46px 1fr 1fr !important;
    padding: 6px 0;
    gap: 0;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--primary) 40%, #333);
  }
  .bottom-nav a,
  .bottom-nav button {
    min-height: 40px;
    font-size: .55rem;
    gap: 2px;
    max-width: 64px;
  }
  .bottom-nav .bn-lbl { font-size: .55rem; }
  .bottom-nav .bn-ico,
  .bottom-nav .bn-ico svg {
    width: 18px;
    height: 18px;
  }
  .bottom-nav__home {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    min-height: 46px !important;
    margin-top: -18px !important;
  }
  .bottom-nav__home .bn-ico,
  .bottom-nav__home .bn-ico svg {
    width: 20px;
    height: 20px;
  }
  .app-shell {
    padding-bottom: 88px;
  }
}

/* Aulas */
.aulas-page { padding-bottom: 100px; }
.aulas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.aula-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #121212;
}
.aula-card__media {
  aspect-ratio: 16 / 9;
  background: #000;
  display: grid;
  place-items: center;
}
.aula-card__media iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.aula-card__body { padding: 14px; }
.aula-card__body h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #fff;
}
.aula-card__body p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
@media (min-width: 900px) {
  .aulas-grid { grid-template-columns: 1fr 1fr; }
}

/* Home selection */
.hero-banner { border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; border: 1px solid var(--border); line-height: 0; }
.hero-banner img { width: 100%; height: auto; object-fit: contain; display: block; }
.section-title { color: var(--primary); font-size: .95rem; letter-spacing: .08em; margin: 8px 0 14px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.pick-card {
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  padding: 12px; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s;
  text-align: center; color: inherit;
}
.pick-card:hover, .pick-card.selected {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 20%, transparent);
}
.pick-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; margin-bottom: 10px; background: #000; }
.pick-card .name { font-weight: 700; font-size: .9rem; }
.pick-card .meta { color: var(--muted); font-size: .75rem; margin-top: 4px; }
.pick-placeholder {
  width: 100%; aspect-ratio: 1; border-radius: 8px; margin-bottom: 10px;
  display: grid; place-items: center; background: #0a0a0a; border: 1px dashed #333; color: var(--primary); font-size: 2rem;
}

/* Signals page */
.signals-layout {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-bottom: 8px;
  overflow-x: hidden;
}
.signal-banner {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 15%, #111), #111);
  padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  min-height: 56px;
}
.signal-banner .label { color: var(--muted); font-size: .68rem; letter-spacing: .08em; }
.signal-banner .value { color: var(--primary); font-size: clamp(1rem, 3.6vw, 1.35rem); font-weight: 800; letter-spacing: .04em; word-break: break-word; }
.signal-banner.waiting .value { color: var(--muted); font-size: .95rem; font-weight: 600; }
.signal-banner__meta {
  text-align: right;
  color: var(--muted);
  font-size: .75rem;
}
.signal-banner__meta a { color: var(--primary); }
.mesa-panel.is-layout-hidden,
.signal-banner[hidden] {
  display: none !important;
}
.signal-banner.hit {
  animation: victoryPulse 1.2s ease-in-out 3;
  border-color: var(--accent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 25%, #111), #111);
}
.signal-banner.hit .value { color: var(--accent); }
@keyframes victoryPulse {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  50% { box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent); }
}

.iframe-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #050505;
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 100%;
  height: min(58dvh, 620px);
  min-height: 320px;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
  isolation: isolate;
}
.iframe-panel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
  display: block;
  position: relative;
  z-index: 1;
  pointer-events: auto !important;
  touch-action: auto !important;
  -webkit-user-select: auto;
  user-select: auto;
}
.iframe-placeholder {
  text-align: center; color: var(--muted); padding: 40px;
  position: absolute; inset: 0; display: grid; place-content: center;
}
.iframe-placeholder strong { display: block; color: var(--primary); margin-bottom: 6px; letter-spacing: .06em; }

.mesa-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(10,10,10,.85);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}
.mesa-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.mesa-head h2 { margin: 0; color: var(--primary); font-size: .95rem; letter-spacing: .08em; }
.results-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.results-row .lbl { color: var(--muted); font-size: .7rem; letter-spacing: .06em; }
.result-chip {
  width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center;
  font-size: .75rem; font-weight: 700; color: #fff;
}
.result-chip.red { background: var(--red); }
.result-chip.black { background: #2a2a2a; border: 1px solid #444; }
.result-chip.green { background: var(--green); }
.active-signals-badge {
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .72rem; letter-spacing: .05em;
}
.active-signals-badge .count {
  background: var(--accent); color: #fff; border-radius: 999px; min-width: 24px; height: 24px;
  display: grid; place-items: center; font-weight: 800; font-size: .8rem;
}

/* European roulette grid — always fit viewport width */
.roulette-board {
  display: flex;
  align-items: stretch;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.zero-cell {
  flex: 0 0 clamp(22px, 7%, 38px);
  width: clamp(22px, 7%, 38px);
  background: var(--green); color: #fff; font-weight: 800;
  display: grid; place-items: center; border-radius: 6px;
  min-height: 0;
  border: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
  font-size: clamp(.65rem, 2.5vw, 1rem);
}
.numbers-grid {
  flex: 1 1 0%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, clamp(28px, 9vw, 44px));
  gap: 2px;
  width: 100%;
}
.num-cell {
  display: grid; place-items: center; color: #fff; font-weight: 700;
  font-size: clamp(.52rem, 2.2vw, .85rem);
  border-radius: 4px; border: 1px solid transparent; cursor: default;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s, filter .2s;
}
.num-cell.red { background: var(--red); }
.num-cell.black { background: var(--black); border-color: #333; }
.num-cell.highlighted, .zero-cell.highlighted {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 60%, transparent), 0 0 14px color-mix(in srgb, var(--primary) 35%, transparent);
  z-index: 2;
  animation: signalGlow 1.4s ease-in-out infinite;
}
.num-cell.win, .zero-cell.win {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 18px color-mix(in srgb, var(--accent) 50%, transparent);
  animation: winFlash .5s ease-in-out 4;
}
@keyframes signalGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}
@keyframes winFlash {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.45); }
}

.victory-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 99;
  display: none; align-items: center; justify-content: center;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%);
}
.victory-overlay.show { display: flex; }
.victory-overlay span {
  color: var(--accent); font-size: clamp(1.5rem, 4vw, 2.5rem); font-weight: 900;
  letter-spacing: .08em; text-shadow: 0 4px 24px rgba(0,0,0,.8);
  animation: victoryPop .6s ease-out;
}
@keyframes victoryPop {
  from { transform: scale(.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Admin */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side {
  background: #0b0b0b; border-right: 1px solid var(--border); padding: 18px 12px;
  position: sticky; top: 0; height: 100vh; overflow: auto;
  display: flex; flex-direction: column;
}
.admin-side__brand { margin-bottom: 22px; padding: 0 8px; }
.admin-side__brand.brand { margin-bottom: 22px; }
.admin-side__nav { flex: 1 1 auto; min-height: 0; }
.admin-side__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #222;
}
.admin-side a {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--muted);
  font-size: .85rem; font-weight: 600; margin-bottom: 4px;
}
.admin-side a:hover, .admin-side a.active { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.admin-main { padding: 22px; }
.admin-main h1 { margin: 0 0 6px; font-size: 1.35rem; }
.admin-main .page-sub { color: var(--muted); margin: 0 0 20px; font-size: .9rem; }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid #222; text-align: left; }
.table th { color: var(--primary); font-size: .75rem; letter-spacing: .05em; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; }
.badge-on { background: #1a3d28; color: #7ddea3; }
.badge-off { background: #3d1a1a; color: #e89; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.api-lock-panel {
  border: 1px dashed color-mix(in srgb, var(--primary) 45%, #333);
  border-radius: 12px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--primary) 6%, #101010);
}
.api-lock-panel strong { display: block; margin-bottom: 6px; color: #fff; }
.api-lock-panel p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}
.api-lock-panel__hint {
  color: var(--primary) !important;
  font-weight: 600;
}
.api-lock-panel__row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.api-lock-panel__row .form-control {
  flex: 1 1 180px;
  min-width: 0;
}
.dev-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  max-width: 560px;
}
.dev-stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: rgba(14,14,14,.92);
  display: grid;
  gap: 6px;
}
.dev-stat__label {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.dev-stat__value {
  font-size: 1.35rem;
  color: #fff;
}

.dev-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dev-gate__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dev-gate__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  border: 1px solid color-mix(in srgb, var(--primary) 45%, #333);
  border-radius: 16px;
  background: #101010;
  padding: 24px 22px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.dev-gate__dialog h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  color: #fff;
}
.dev-gate__dialog p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}
.dev-gate__form {
  display: grid;
  gap: 12px;
}
.dev-gate__submit {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
}
.dev-gate__back {
  display: inline-block;
  margin-top: 14px;
  font-size: .82rem;
  color: var(--muted);
}
.dev-gate__back:hover {
  color: var(--primary);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.admin-metrics--compact .admin-metric__value { font-size: 1.25rem; }
.admin-metric {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(14,14,14,.92);
  padding: 16px;
  display: grid;
  gap: 4px;
}
.admin-metric--small { padding: 12px 14px; }
.admin-metric__label {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.admin-metric__value {
  font-size: 1.65rem;
  color: var(--primary);
  line-height: 1.1;
}
.admin-metric__sub {
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.35;
}
.admin-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-panel {
  padding: 16px;
  min-height: 220px;
}
.admin-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
.admin-panel__head h2 {
  margin: 0;
  font-size: .95rem;
  color: #fff;
}
.admin-panel__head span {
  font-size: .72rem;
  color: var(--muted);
}
.admin-panel__empty {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}
.admin-mini-table th,
.admin-mini-table td {
  padding: 8px 6px;
  font-size: .78rem;
}
.admin-bars {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 140px;
  padding-top: 8px;
}
.admin-bar {
  display: grid;
  gap: 6px;
  justify-items: center;
  height: 100%;
}
.admin-bar__track {
  width: 100%;
  max-width: 28px;
  height: 120px;
  border-radius: 6px 6px 2px 2px;
  background: #1a1a1a;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.admin-bar__track i {
  display: block;
  width: 100%;
  min-height: 4px;
  background: linear-gradient(180deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #000));
  border-radius: 4px 4px 0 0;
}
.admin-bar__lbl {
  font-size: .62rem;
  color: var(--muted);
}
.admin-share {
  display: inline-block;
  vertical-align: middle;
  width: 48px;
  height: 4px;
  border-radius: 99px;
  background: #222;
  margin-right: 6px;
  overflow: hidden;
}
.admin-share i {
  display: block;
  height: 100%;
  background: var(--primary);
}

/* Admin settings organization */
.settings-form {
  display: grid;
  gap: 16px;
  padding-bottom: 28px;
}
.settings-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(14,14,14,.92);
  padding: 18px 18px 16px;
}
.settings-card__head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.settings-card__head h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1rem;
  letter-spacing: .03em;
}
.settings-card__head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .8rem;
}
.settings-uploads {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.settings-upload {
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  background: #0c0c0c;
  padding: 12px;
}
.settings-upload__head {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.settings-upload__preview {
  margin-bottom: 10px;
}
.settings-upload__preview img {
  max-height: 56px;
  width: auto;
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #111;
}
.settings-upload__empty {
  font-size: .75rem;
  color: #555;
  margin-bottom: 10px;
  min-height: 28px;
}
.settings-upload__remove {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--muted);
  margin: 0;
}
.settings-toggles {
  display: grid;
  gap: 10px;
}
.settings-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #262626;
  background: #0c0c0c;
  cursor: pointer;
}
.settings-toggle__text {
  font-size: .85rem;
  color: var(--text);
  font-weight: 600;
}
.settings-form__footer {
  position: sticky;
  bottom: 12px;
  z-index: 5;
  display: flex;
  justify-content: flex-start;
  padding: 12px 0 4px;
}
.settings-form__footer .btn {
  border-radius: 10px;
  padding: 12px 22px;
  box-shadow: 0 10px 28px rgba(0,0,0,.45);
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.table-actions form {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.table-actions .btn,
.admin-actions .btn {
  border-radius: 8px;
  padding: 6px 12px;
  font-size: .72rem;
  white-space: nowrap;
  line-height: 1.2;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.signals-admin-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px;
}
.signal-field {
  border: 1px solid #2a2a2a; border-radius: 8px; padding: 8px; background: #0d0d0d;
}
.signal-field .n {
  width: 28px; height: 28px; border-radius: 4px; display: grid; place-items: center;
  font-size: .75rem; font-weight: 800; color: #fff; margin-bottom: 6px;
}
.signal-field input.form-control { width: 100%; font-size: .75rem; padding: 6px 8px; }
.signal-field__neighbors {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.signal-field__lbl {
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .02em;
}
.signal-switch {
  position: relative;
  display: inline-flex;
  margin: 0;
  cursor: pointer;
  user-select: none;
}
.signal-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.signal-switch__track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 52px;
  height: 24px;
  border-radius: 999px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  transition: background .18s, border-color .18s;
}
.signal-switch__on,
.signal-switch__off {
  position: absolute;
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  pointer-events: none;
}
.signal-switch__on {
  left: 7px;
  color: #111;
  opacity: 0;
}
.signal-switch__off {
  right: 6px;
  color: #888;
  opacity: 1;
}
.signal-switch__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #bbb;
  transition: transform .18s, background .18s;
  box-shadow: 0 1px 3px rgba(0,0,0,.45);
}
.signal-switch input:checked + .signal-switch__track {
  background: var(--primary);
  border-color: var(--primary);
}
.signal-switch input:checked + .signal-switch__track .signal-switch__knob {
  transform: translateX(28px);
  background: #111;
}
.signal-switch input:checked + .signal-switch__track .signal-switch__on { opacity: 1; }
.signal-switch input:checked + .signal-switch__track .signal-switch__off { opacity: 0; }
.signal-switch input:focus-visible + .signal-switch__track {
  outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 2px;
}

/* Linha padrão: rótulo + switch ON/OFF (admin) */
.admin-main .admin-switch-row,
.admin-main label.admin-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  cursor: pointer;
  user-select: none;
}
.admin-main .admin-switch-row__text {
  flex: 1;
  min-width: 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.admin-main .settings-upload__remove.admin-switch-row {
  justify-content: flex-start;
  gap: 10px;
  width: auto;
}
.admin-main .settings-upload__remove .admin-switch-row__text {
  flex: 0 1 auto;
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
}
.admin-main .form-group > .admin-switch-row {
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #262626;
  background: #0c0c0c;
  box-sizing: border-box;
}
.signal-field__count {
  width: 56px;
  min-width: 56px;
  margin-left: auto;
  padding: 4px 6px;
  font-size: .72rem;
}
.table-actions__reset {
  display: inline-flex !important;
  gap: 4px;
  align-items: center;
}

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { position: relative; height: auto; display: flex; flex-wrap: wrap; gap: 4px; }
  .admin-dash-grid { grid-template-columns: 1fr; }
  .admin-bars { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .nav-main { display: none; }
  .form-grid { grid-template-columns: 1fr; }
}

/* Bac Bo */
.bacbo-admin-section__title {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--accent);
}
a.game-card { text-decoration: none; color: inherit; }
.game-card__cat--bacbo { background: color-mix(in srgb, var(--accent) 85%, #000); }
.bacbo-layout .signal-banner.possible {
  border-color: color-mix(in srgb, var(--primary) 70%, #444);
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 12%, #111), #111);
}
.bacbo-layout .signal-banner.possible .value { color: var(--primary); font-size: .95rem; font-weight: 700; }
.bacbo-layout .signal-banner.signal .value {
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}
.bacbo-layout .signal-banner.g1 {
  border-color: color-mix(in srgb, #f9a825 70%, #444);
  background: linear-gradient(90deg, rgba(249,168,37,.16), #111);
}
.bacbo-layout .signal-banner.g1 .value {
  color: #ffd54f;
  font-size: 1rem;
  font-weight: 800;
}
.bacbo-layout .signal-banner.loss {
  border-color: #a33;
  background: linear-gradient(90deg, rgba(180,40,40,.18), #111);
}
.bacbo-layout .signal-banner.loss .value { color: #f88; }
.bacbo-history {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(14,14,14,.9);
}
.bacbo-history .lbl {
  font-size: .65rem;
  letter-spacing: .08em;
  color: var(--muted);
}
.bacbo-history__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bacbo-chip {
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
}
.bacbo-chip--player { background: #1565c0; color: #fff; }
.bacbo-chip--banker { background: #c62828; color: #fff; }
.bacbo-chip--tie { background: #f9a825; color: #111; }
.bacbo-victory--loss span { color: #f88 !important; }
@media (max-width: 768px) {
  .bacbo-layout {
    padding-top: 14px;
  }
}
