/* ============================================================
   FIFA EDGE — Dashboard styles
   Trading-desk aesthetic: dark, neutral-cool, monospace numerics
   ============================================================ */

:root {
  /* GoldeBet palette — deep navy + gold accent (FIFA design system) */
  --bg-0: #07101e;                        /* page background */
  --bg-1: #0c1729;                        /* sidebar / topbar */
  --bg-2: #122340;                        /* cards */
  --bg-3: #1a2e52;                        /* card elevated / hover */
  --bg-4: #1f3865;                        /* inputs */
  --bg-card:   rgba(18, 35, 64, 0.55);    /* translucent card */
  --bg-card-2: rgba(18, 35, 64, 0.85);    /* translucent card opaque */

  --line-1: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.10);
  --line-3: rgba(99, 169, 255, 0.18);

  --text-0: #f3f7ff;                      /* headings */
  --text-1: #d6e0f0;                      /* body */
  --text-2: #9aabc4;                      /* muted */
  --text-3: #6377a0;                      /* subtle */

  /* Brand — gold (primary accent) */
  --brand-gold:    #f5b942;
  --brand-gold-2:  #ffce5c;
  --brand-gold-dim:#c8902d;
  --brand-gold-bg: rgba(245, 185, 66, 0.12);
  --brand-gold-bd: rgba(245, 185, 66, 0.35);

  /* Brand — blue (CTA / link) */
  --brand-blue:    #2c6bff;
  --brand-blue-2:  #4d86ff;
  --brand-blue-bg: rgba(44, 107, 255, 0.12);
  --brand-blue-bd: rgba(44, 107, 255, 0.32);

  /* Accent — defaults to gold; switchable via data-accent */
  --accent:      var(--brand-gold);
  --accent-dim:  var(--brand-gold-dim);
  --accent-bg:   var(--brand-gold-bg);
  --accent-bd:   var(--brand-gold-bd);

  /* Semantic */
  --win:   #36d399;
  --loss:  #f15a5a;
  --warn:  #f5b942;
  --info:  #4d86ff;
  --neu:   var(--text-2);

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* Fonts */
  --f-ui: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 8px 24px rgba(0,0,0,.35);
  --shadow-glow: 0 0 0 1px var(--brand-blue-bd), 0 12px 40px rgba(44,107,255,0.15);

  /* Density — overridden by data-density */
  --pad-card: 16px;
  --pad-row: 12px;
  --gap-grid: 14px;
}

/* Accent variants — re-mapped to GoldeBet palette */
[data-accent="green"]  { --accent: var(--win);        --accent-dim: #1f9d6f;            --accent-bg: rgba(54,211,153,0.10);  --accent-bd: rgba(54,211,153,0.35); }
[data-accent="amber"]  { --accent: var(--brand-gold); --accent-dim: var(--brand-gold-dim); --accent-bg: var(--brand-gold-bg); --accent-bd: var(--brand-gold-bd); }
[data-accent="cyan"]   { --accent: var(--brand-blue-2); --accent-dim: var(--brand-blue);   --accent-bg: var(--brand-blue-bg); --accent-bd: var(--brand-blue-bd); }
[data-accent="violet"] { --accent: oklch(0.72 0.17 300); --accent-dim: oklch(0.48 0.12 300); --accent-bg: oklch(0.72 0.17 300 / 0.10); --accent-bd: oklch(0.72 0.17 300 / 0.35); }

[data-density="compact"]     { --pad-card: 12px; --pad-row: 8px; --gap-grid: 10px; }
[data-density="comfortable"] { --pad-card: 16px; --pad-row: 12px; --gap-grid: 14px; }
[data-density="spacious"]    { --pad-card: 22px; --pad-row: 16px; --gap-grid: 18px; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}
html {
  background-color: #07101e;
  overflow-x: hidden;
}
body {
  font-family: var(--f-ui);
  font-feature-settings: 'ss01', 'cv11';
  background: var(--bg-0);
  color: var(--text-1);
  font-size: 13px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-width: 0;
  position: relative;
  overscroll-behavior-x: none;
}

/* Atmospheric grid overlay — soft, fixed (GoldeBet design signature) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(120,180,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,180,255,0.07) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
}
.app, .sidebar, .topbar, .main { position: relative; z-index: 1; }

.mono { font-family: var(--f-mono); font-feature-settings: 'tnum'; font-variant-numeric: tabular-nums; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ---------- Layout shell ---------- */
.app {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
  max-width: 100%;
  min-width: 0;
}

/* ---------- Sidebar ---------- */
.sidebar {
  background: rgba(7,16,30,0.85);
  border-right: 1px solid var(--line-1);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.brand {
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  background: #000;
}
.brand-name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--text-0);
}
.brand-sub {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-section {
  padding: 14px 12px 8px;
}
.nav-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 0 10px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  user-select: none;
  transition: background .12s ease, color .12s ease;
}
.nav-item:hover { background: var(--bg-2); color: var(--text-1); }
.nav-item.active {
  background: var(--accent-bg);
  color: var(--text-0);
  box-shadow: inset 2px 0 0 var(--accent);
}
.nav-item .ico { width: 16px; height: 16px; color: currentColor; opacity: 0.9; flex: none; }
.nav-item .count {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-3);
  background: var(--bg-2);
  padding: 2px 6px;
  border-radius: 3px;
}
.nav-item.active .count { color: var(--accent); background: transparent; border: 1px solid var(--accent-bd); }
.nav-item .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--loss);
  margin-left: auto;
  box-shadow: 0 0 0 0 var(--loss);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(241,90,90,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(241,90,90,0); }
  100% { box-shadow: 0 0 0 0 rgba(241,90,90,0); }
}

.sidebar-foot {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--line-1);
}
.community-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
}
.community-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--f-mono);
}
.community-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.community-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  border-radius: var(--r-sm, 6px);
  border: 1px solid transparent;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, filter .12s ease;
}
.community-btn .ico { flex: 0 0 auto; }
.community-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.community-btn:active { transform: translateY(0); filter: brightness(0.95); }
.community-btn.wa {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 14px -6px rgba(18,140,126,0.55);
}
.community-btn.wa:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 8px 18px -6px rgba(37,211,102,0.65); }
.community-btn.tg {
  background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 14px -6px rgba(34,158,217,0.55);
}
.community-btn.tg:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.22) inset, 0 8px 18px -6px rgba(42,171,238,0.65); }

/* ---------- Community FAB (mobile-only floating action) ---------- */
.community-fab { display: none; }
@media (max-width: 768px) {
  .community-fab {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    right: 14px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0));
    z-index: 80;
    pointer-events: auto;
  }
  /* Esconde quando um modal H2H está aberto pra não competir com o overlay */
  body.h2h-modal-open .community-fab { display: none !important; }
  .community-fab a {
    width: 48px; height: 48px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.12);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  }
  .community-fab a:active { transform: scale(0.94); filter: brightness(0.9); }
  .community-fab .fab-wa {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 8px 22px -6px rgba(18,140,126,0.6), 0 1px 0 rgba(255,255,255,0.22) inset;
  }
  .community-fab .fab-tg {
    background: linear-gradient(135deg, #2aabee 0%, #229ed9 100%);
    box-shadow: 0 8px 22px -6px rgba(34,158,217,0.6), 0 1px 0 rgba(255,255,255,0.22) inset;
  }
}

/* ---------- Top bar ---------- */
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  background: rgba(7,16,30,0.85);
  border-bottom: 1px solid var(--line-1);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  font-family: var(--f-mono);
}
.crumbs .sep { color: var(--text-3); opacity: 0.5; }
.crumbs .cur { color: var(--text-0); }

.search {
  position: relative;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}
.search input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  color: var(--text-1);
  padding: 8px 12px 8px 34px;
  font-family: var(--f-ui);
  font-size: 12.5px;
  outline: none;
  transition: border-color .12s;
}
.search input:focus { border-color: var(--accent-bd); }
.search input::placeholder { color: var(--text-3); }
.search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.search .kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-mono); font-size: 10px; color: var(--text-3);
  background: var(--bg-3); padding: 2px 6px; border-radius: 3px;
  border: 1px solid var(--line-1);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ticker {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 14px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-md);
  background: var(--bg-2);
  font-family: var(--f-mono);
  font-size: 11px;
}
.ticker .lbl { color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.ticker .v { color: var(--text-0); }
.ticker .v.pos { color: var(--win); }
.ticker .v.neg { color: var(--loss); }
.ticker .sep { width: 1px; height: 14px; background: var(--line-1); }

.iconbtn {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--line-1);
  border-radius: var(--r-sm);
  color: var(--text-2);
  cursor: pointer;
  transition: all .12s;
}
.iconbtn:hover { background: var(--bg-2); color: var(--text-0); border-color: var(--line-2); }

.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-2);
  color: inherit;
  cursor: pointer;
  max-width: 210px;
  text-align: left;
  transition: border-color .12s, background .12s, transform .12s;
}
.user-chip:hover { background: var(--bg-3); border-color: var(--accent-dim); transform: translateY(-1px); }
.user-chip .av {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  display: grid; place-items: center;
  color: var(--bg-0); font-family: var(--f-mono); font-weight: 600; font-size: 10px;
  flex: 0 0 auto;
}
.user-chip > span:last-child { min-width: 0; display: grid; gap: 1px; }
.user-chip .nm {
  font-size: 12px; color: var(--text-0);
  max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.user-chip .rl {
  font-size: 10px; color: var(--text-3); font-family: var(--f-mono);
  text-transform: uppercase;
}

/* Guest chip — não logado */
.user-chip-guest {
  display: inline-flex; align-items: center; gap: 8px;
}
.user-chip-login {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-1);
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.user-chip-login:hover { color: var(--text-0); border-color: var(--accent-dim); background: var(--bg-3); }
.user-chip-cta {
  padding: 8px 16px;
  border: 1px solid rgba(245,185,66,0.5);
  border-radius: 999px;
  background: linear-gradient(180deg, #f5b942, #c8902d);
  color: #1a1208;
  font-family: var(--f-ui);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(245,185,66,0.22);
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.user-chip-cta::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%) skewX(-18deg);
  animation: chipSweep 3.6s cubic-bezier(.5,0,.3,1) infinite;
  pointer-events: none;
}
@keyframes chipSweep { 0%{transform:translateX(-120%) skewX(-18deg);} 100%{transform:translateX(220%) skewX(-18deg);} }
.user-chip-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(245,185,66,0.4); }
@media (max-width: 760px) {
  .user-chip-login { display: none; }
  .user-chip-cta { padding: 7px 12px; font-size: 11px; }
}

/* Signal queue lock — não logado */
.signal-locked-body {
  position: relative;
  min-height: 360px;
  overflow: hidden;
}
.signal-locked-blur {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
  filter: blur(8px) saturate(0.4);
  pointer-events: none;
  user-select: none;
  opacity: 0.55;
}
.signal-locked-ghost {
  display: grid;
  grid-template-columns: 56px 1fr 70px;
  gap: 12px;
  align-items: center;
  padding: 14px 12px;
  background: var(--bg-2, #16171b);
  border: 1px solid var(--line-1, #2a2b31);
  border-radius: 10px;
}
.signal-locked-ghost > span:nth-child(1) {
  height: 36px;
  background: linear-gradient(90deg, var(--bg-3, #1d1e23), var(--bg-2, #16171b));
  border-radius: 6px;
}
.signal-locked-ghost > span:nth-child(2) {
  height: 14px;
  background: linear-gradient(90deg, var(--bg-3, #1d1e23) 0%, var(--bg-2, #16171b) 60%, transparent 100%);
  border-radius: 4px;
}
.signal-locked-ghost > span:nth-child(3) {
  height: 18px;
  background: linear-gradient(90deg, var(--accent, #f5b942), transparent);
  border-radius: 4px;
  opacity: 0.4;
}
.signal-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px;
  padding: 24px 28px;
  text-align: center;
  background:
    radial-gradient(closest-side, rgba(245,185,66,0.10), transparent 70%),
    linear-gradient(180deg, rgba(7,16,30,0.55), rgba(7,16,30,0.85));
  backdrop-filter: blur(2px);
}
.signal-locked-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(245,185,66,0.10);
  border: 1px solid rgba(245,185,66,0.32);
  color: #f5b942;
  margin-bottom: 4px;
}
.signal-locked-title {
  font-family: var(--f-display, var(--f-ui));
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-0, #f3f7ff);
  line-height: 1.1;
}
.signal-locked-sub {
  max-width: 320px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2, #9aabc4);
}
.signal-locked-actions {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center;
  margin-top: 6px;
}
.signal-locked-login {
  padding: 10px 18px;
  border: 1px solid var(--line-2, rgba(255,255,255,0.10));
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  color: var(--text-1, #d6e0f0);
  font-family: var(--f-mono, var(--f-ui));
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.signal-locked-login:hover { color: var(--text-0, #fff); border-color: rgba(245,185,66,0.45); }
.signal-locked-cta {
  padding: 10px 20px;
  border: 1px solid rgba(245,185,66,0.5);
  border-radius: 999px;
  background: linear-gradient(180deg, #f5b942, #c8902d);
  color: #1a1208;
  font-family: var(--f-ui);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(245,185,66,0.22);
  transition: transform .2s, box-shadow .2s;
}
.signal-locked-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(245,185,66,0.4); }

/* ===== Profile guard (não logado tentando ver /profile) ===== */
.profile-guard {
  padding: 56px 32px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  gap: 14px;
  background: linear-gradient(180deg, rgba(18,35,64,.45), rgba(12,23,41,.65));
}
.profile-guard-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(245,185,66,.10);
  border: 1px solid rgba(245,185,66,.32);
  color: #f5b942;
  margin-bottom: 4px;
}
.profile-guard-title {
  font-family: var(--f-display, var(--f-ui));
  font-size: 28px; font-weight: 500;
  letter-spacing: -0.01em; color: var(--text-0, #f3f7ff);
  line-height: 1.1;
}
.profile-guard-sub {
  max-width: 380px;
  font-size: 14px; line-height: 1.55;
  color: var(--text-2, #9aabc4);
}
.profile-guard-actions {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center;
  margin-top: 8px;
}
.profile-guard-cta {
  padding: 12px 22px;
  border: 1px solid rgba(245,185,66,0.5);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffce5c, #f5b942);
  color: #1a1305;
  font-family: var(--f-ui);
  font-size: 13px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(245,185,66,0.30);
  transition: transform .2s, box-shadow .2s;
}
.profile-guard-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(245,185,66,0.45); }
.profile-guard-alt {
  padding: 12px 20px;
  border: 1px solid var(--line-2, rgba(255,255,255,0.10));
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  color: var(--text-1, #d6e0f0);
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.profile-guard-alt:hover { color: var(--text-0); border-color: rgba(245,185,66,0.45); }

/* ===== Profile page (logado): cards de dados, senha e assinatura ===== */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  align-items: start;
}
.profile-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(18,35,64,0.55), rgba(12,23,41,0.70));
  border: 1px solid var(--line-2, rgba(255,255,255,0.10));
  border-radius: 14px;
}
.profile-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line-1, rgba(255,255,255,0.06));
}
.profile-card-eyebrow {
  font-family: var(--f-mono, monospace);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-gold, #f5b942);
}
.profile-edit-btn {
  padding: 6px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2, rgba(255,255,255,0.10));
  border-radius: 999px;
  color: var(--text-1, #d6e0f0);
  font-family: var(--f-mono, monospace);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.profile-edit-btn:hover {
  color: var(--text-0, #fff);
  border-color: rgba(245,185,66,0.45);
  background: rgba(245,185,66,0.08);
}

.profile-fields {
  display: flex; flex-direction: column;
  gap: 14px;
}
.profile-field { display: flex; flex-direction: column; gap: 6px; }
.profile-field-label {
  font-family: var(--f-mono, monospace);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3, #6377a0);
}
.profile-field-value {
  font-size: 14.5px; color: var(--text-0, #f3f7ff);
  line-height: 1.45;
}
.profile-field-value.mono { font-family: var(--f-mono, monospace); font-size: 13.5px; }
.profile-field-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-input {
  padding: 11px 14px;
  background: rgba(7,16,30,0.65);
  border: 1px solid var(--line-2, rgba(255,255,255,0.10));
  border-radius: 9px;
  font: 500 14.5px var(--f-ui, sans-serif);
  color: var(--text-0, #f3f7ff);
  width: 100%;
  transition: border-color .15s, background .15s;
}
.profile-input::placeholder { color: var(--text-3, #6377a0); }
.profile-input:focus {
  outline: none;
  border-color: rgba(245,185,66,0.48);
  background: rgba(7,16,30,0.85);
}
.profile-input:disabled { opacity: .6; cursor: not-allowed; }

.profile-check {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono, monospace);
  font-size: 11px; color: var(--text-3, #6377a0);
  letter-spacing: 0.04em; cursor: pointer;
}
.profile-check input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--brand-gold, #f5b942);
  cursor: pointer;
}

.profile-actions-row {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-1, rgba(255,255,255,0.06));
}
.profile-btn {
  padding: 11px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2, rgba(255,255,255,0.10));
  border-radius: 9px;
  color: var(--text-1, #d6e0f0);
  font: 600 13px var(--f-ui, sans-serif);
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
  transition: all .2s;
}
.profile-btn:hover:not(:disabled) {
  color: var(--text-0, #fff);
  border-color: rgba(245,185,66,0.32);
  background: rgba(255,255,255,0.08);
}
.profile-btn:disabled { opacity: .6; cursor: not-allowed; }
.profile-btn-primary {
  background: linear-gradient(180deg, #ffce5c, #f5b942);
  color: #1a1305;
  border-color: rgba(245,185,66,0.5);
  box-shadow: 0 8px 22px rgba(245,185,66,0.22);
}
.profile-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(245,185,66,0.35);
}

.profile-alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid transparent;
}
.profile-alert.err {
  color: #ff9a9a;
  background: rgba(241,90,90,0.10);
  border-color: rgba(241,90,90,0.32);
}
.profile-alert.ok {
  color: var(--win, #36d399);
  background: rgba(54,211,153,0.10);
  border-color: rgba(54,211,153,0.32);
}

.profile-role-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245,185,66,0.10);
  border: 1px solid rgba(245,185,66,0.28);
  color: var(--brand-gold, #f5b942);
  font: 700 11px var(--f-mono, monospace);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.profile-status {
  font-family: var(--f-mono, monospace);
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; text-transform: lowercase;
}
.profile-status.on  { color: var(--win, #36d399); }
.profile-status.off { color: var(--loss, #f15a5a); }

@media (max-width: 600px) {
  .profile-card { padding: 20px 18px; }
  .profile-field-row { grid-template-columns: 1fr; gap: 14px; }
}
.stake-link-btn { font-size: 0 !important; }
.stake-link-btn::after { content: "link Stake"; font-size: 11px; }
.stake-save-btn { font-size: 0 !important; }
.stake-save-btn::after { content: "Salvar link"; font-size: 13px; }
.stake-link-card > div:first-child { font-size: 0 !important; }
.stake-link-card > div:first-child::before {
  content: "Editar link Stake do usuario";
  font-size: 12px;
}
.stake-link-form > :first-child,
.stake-link-form > select { display: none; }

/* ---------- Content ---------- */
.content {
  padding: 20px 24px 60px;
  min-width: 0;
  max-width: 1600px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 20px;
}
.page-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-0);
  margin: 0;
}
.page-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-top: 3px;
  letter-spacing: 0.04em;
}
.page-actions { display: flex; gap: 8px; }

.btn {
  padding: 8px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--text-1);
  font-family: var(--f-ui);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .12s;
  letter-spacing: 0.01em;
}
.btn:hover { background: var(--bg-3); color: var(--text-0); border-color: var(--line-3); }
.btn.primary {
  background: linear-gradient(180deg, var(--brand-gold), var(--brand-gold-dim));
  color: #1a1208;
  border-color: transparent;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 12px rgba(245,185,66,0.18);
}
.btn.primary:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; }
.btn.blue {
  background: rgba(44,107,255,0.10);
  color: var(--brand-blue-2);
  border-color: var(--brand-blue-bd);
  font-weight: 600;
}
.btn.blue:hover { background: rgba(44,107,255,0.16); }

/* ---------- KPIs ---------- */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-grid);
  margin-bottom: 20px;
}
.kpi {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: var(--pad-card);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.kpi .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.kpi .lbl .pip {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.kpi .val {
  font-family: var(--f-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.02em;
  line-height: 1;
}
.kpi .val .unit { font-size: 13px; color: var(--text-3); margin-left: 2px; }
.kpi .delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
}
.kpi .delta.pos { color: var(--win);  background: rgba(54,211,153,0.12);  border: 1px solid rgba(54,211,153,0.28); }
.kpi .delta.neg { color: var(--loss); background: rgba(241,90,90,0.12);   border: 1px solid rgba(241,90,90,0.28); }
.kpi .spark {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 72px;
  height: 28px;
  opacity: 0.9;
}

/* ---------- Card ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-1);
}
.card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-0);
  letter-spacing: -0.005em;
}
.card-title .bar {
  width: 3px; height: 14px; background: var(--accent); border-radius: 2px;
}
.card-title .badge {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-3);
  padding: 2px 6px;
  background: var(--bg-2);
  border-radius: 3px;
  margin-left: 4px;
  font-weight: 400;
}
.card-tools { display: flex; gap: 6px; }
.tool-btn {
  padding: 4px 8px;
  background: transparent;
  border: 1px solid var(--line-1);
  border-radius: 3px;
  color: var(--text-2);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.tool-btn:hover, .tool-btn.active { color: var(--accent); border-color: var(--accent-bd); background: var(--accent-bg); }
.iconbtn.muted { color: var(--text-3); opacity: 0.7; }
.iconbtn.muted:hover { color: var(--loss); opacity: 1; }
.card-body { padding: var(--pad-card); }
.card-body.flush { padding: 0; }

/* ---------- Match section divider (Ao vivo / Próximas) — mesmo estilo do .card-title ---------- */
.match-section {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-0);
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--line-1);
  background: var(--bg-1);
}
.match-section .bar {
  width: 3px; height: 14px; background: var(--accent); border-radius: 2px;
}
.match-section .badge {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-3);
  padding: 2px 6px;
  background: var(--bg-2);
  border-radius: 4px;
}
.match-section--live { color: var(--loss); }
.match-section--live .bar { background: var(--loss); }
.match-section--live .badge { color: var(--loss); background: rgba(229, 90, 90, 0.10); }

/* ---------- Match row ---------- */
.match {
  display: grid;
  grid-template-columns: 74px 1fr 120px 110px 90px;
  align-items: center;
  gap: 14px;
  padding: var(--pad-row) 16px;
  border-bottom: 1px solid var(--line-1);
  transition: background .1s;
}
.match:last-child { border-bottom: none; }
.match:hover { background: var(--bg-2); }

.match .time {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.3;
}
.match .time .t { color: var(--text-1); font-size: 13px; }

.match .tmr .t {
  color: var(--loss);
  display: inline-flex; align-items: center; gap: 4px;
}
.match .tmr .t::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--loss); animation: pulse 1.4s infinite;
}

.match .teams { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.match .row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.match .row .nm { color: var(--text-0); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .row .nm .tm { color: var(--text-3); margin-left: 6px; font-weight: 400; font-size: 11px; }
.match .row .sc {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--text-0);
  min-width: 18px;
  text-align: right;
}
.match .row .sc.w { color: var(--win); font-weight: 600; }

.match .league {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.odd {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: 3px;
  padding: 6px 4px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-1);
  cursor: pointer;
  transition: all .1s;
}
.odd .k { color: var(--text-3); font-size: 9px; letter-spacing: 0.1em; display: block; }
.odd .v { color: var(--text-0); font-size: 12px; font-weight: 500; }
.odd:hover { border-color: var(--line-2); background: var(--bg-3); }
.odd.highlight {
  background: var(--accent-bg);
  border-color: var(--accent-bd);
}
.odd.highlight .v { color: var(--accent); }

.ev-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px;
  border-radius: 3px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  justify-self: end;
}
.ev-pill.pos { background: rgba(54,211,153,0.12); color: var(--win); border: 1px solid rgba(54,211,153,0.30); }
.ev-pill.mid { background: rgba(245,185,66,0.10); color: var(--warn); border: 1px solid rgba(245,185,66,0.28); }
.ev-pill.flat { background: var(--bg-2); color: var(--text-3); border: 1px solid var(--line-1); }

/* ---------- Chip / tag / etc ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: 20px;
  color: var(--text-2);
  font-size: 11px;
  font-family: var(--f-mono);
  cursor: pointer;
  white-space: nowrap;
  transition: all .1s;
}
.chip:hover { color: var(--text-0); border-color: var(--line-2); }
.chip.active { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-bd); }
.chip .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Two-col grid ---------- */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: var(--gap-grid);
}

/* ---------- Table ---------- */
.table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-2);
  color: var(--text-3);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-1);
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
}
.table th.num, .table td.num { text-align: right; font-family: var(--f-mono); }
.table th:hover { color: var(--text-1); }
.table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-1);
  color: var(--text-1);
}
.table tbody tr:hover { background: var(--bg-2); }
.table tbody tr:last-child td { border-bottom: none; }

.rank {
  font-family: var(--f-mono);
  color: var(--text-3);
  font-size: 11px;
}
.rank.top { color: var(--accent); font-weight: 600; }

.elo { font-family: var(--f-mono); color: var(--text-0); font-weight: 500; }
.elo .d { font-size: 10px; color: var(--win); margin-left: 4px; }
.elo .d.neg { color: var(--loss); }

.form-dots {
  display: inline-flex; gap: 3px;
}
.form-dots span {
  width: 14px; height: 14px;
  border-radius: 3px;
  font-family: var(--f-mono); font-size: 9px; font-weight: 600;
  color: var(--bg-0);
  display: grid; place-items: center;
}
.form-dots .w { background: var(--win); }
.form-dots .d { background: var(--text-3); color: var(--text-0); }
.form-dots .l { background: var(--loss); }

/* ---------- Signal queue ---------- */
.sig {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-1);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  transition: background .1s;
}
.sig:hover { background: var(--bg-2); }
.sig:last-child { border-bottom: none; }
.sig-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10px; color: var(--text-3);
  letter-spacing: 0.08em; text-transform: uppercase;
  grid-column: 1 / -1;
}
.sig-head .live {
  color: var(--loss);
  display: inline-flex; align-items: center; gap: 4px;
}
.sig-head .live::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--loss); animation: pulse 1.4s infinite;
}
.sig-match {
  font-size: 13px;
  color: var(--text-0);
  font-weight: 500;
}
.sig-match .vs { color: var(--text-3); margin: 0 6px; }
.sig-meta {
  display: flex; gap: 14px; margin-top: 4px;
  font-family: var(--f-mono); font-size: 11px; color: var(--text-2);
}
.sig-meta .k { color: var(--text-3); margin-right: 4px; text-transform: uppercase; font-size: 10px; letter-spacing: 0.08em; }

.sig-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.sig-tip {
  font-family: var(--f-mono); font-size: 12px; color: var(--text-0);
  padding: 4px 8px;
  border: 1px dashed var(--accent-bd);
  border-radius: 3px;
  background: var(--accent-bg);
}
.sig-tip .k { color: var(--accent); margin-right: 6px; font-weight: 600; }

.countdown {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.countdown .n { color: var(--text-0); font-size: 12px; }

/* ---------- EV meter (circular) ---------- */
.ev-meter {
  width: 44px; height: 44px;
  position: relative;
}
.ev-meter svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ev-meter .bg { fill: none; stroke: var(--line-1); stroke-width: 4; }
.ev-meter .fg { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .5s; }
.ev-meter .label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--text-0);
}

/* ---------- Heatmap / sparkline ---------- */
.heat {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 3px;
}
.heat .cell {
  aspect-ratio: 1;
  background: var(--bg-3);
  border-radius: 2px;
}
.heat .cell.h1 { background: rgba(54,211,153,0.15); }
.heat .cell.h2 { background: rgba(54,211,153,0.35); }
.heat .cell.h3 { background: rgba(54,211,153,0.60); }
.heat .cell.h4 { background: rgba(54,211,153,0.90); }

/* ---------- Live event ---------- */
.live-event {
  display: grid;
  grid-template-columns: 56px 1fr 120px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-1);
  gap: 14px;
  row-gap: 10px;
}
.live-event:last-child { border-bottom: none; }
.live-stats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-1);
}
.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.2;
  color: var(--text-2);
}
.stat-chip .stat-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  font-weight: 500;
}
.stat-chip .stat-val {
  color: var(--text-0);
  font-size: 11px;
  font-weight: 600;
}
.stat-chip .stat-sep {
  color: var(--text-3);
  margin: 0 3px;
  font-weight: 400;
}
.stat-chip.danger { border-color: rgba(239,68,68,.25); }
.stat-chip.danger .stat-label { color: var(--loss); }
.stat-chip.warn   { border-color: rgba(234,179,8,.3); }
.stat-chip.warn   .stat-label { color: #eab308; }
.stat-chip.red    { border-color: rgba(239,68,68,.55); background: rgba(239,68,68,.08); }
.stat-chip.red    .stat-label { color: var(--loss); }
.stat-chip.accent { border-color: rgba(99,102,241,.35); }
.stat-chip.accent .stat-label { color: var(--accent); }
.live-time {
  font-family: var(--f-mono);
  color: var(--loss);
  font-weight: 600;
  font-size: 13px;
  display: flex; flex-direction: column; gap: 2px;
}
.live-time .bar { width: 100%; height: 3px; background: var(--bg-3); border-radius: 2px; overflow: hidden; }
.live-time .bar > i { display: block; height: 100%; background: var(--loss); border-radius: 2px; }
.live-teams {
  display: flex; flex-direction: column; gap: 6px;
}
.live-teams .row {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 13px;
}
.live-teams .row .nm { color: var(--text-0); font-weight: 500; }
.live-teams .row .sc { font-family: var(--f-mono); font-size: 16px; color: var(--text-0); font-weight: 600; }
.live-odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.live-odds .o {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  padding: 4px 2px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  border-radius: 2px;
  color: var(--text-1);
}

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 280px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 14px;
  z-index: 100;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}
.tweaks-panel h4 {
  margin: 0 0 12px;
  font-size: 11px;
  font-family: var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex; justify-content: space-between; align-items: center;
}
.tweak { margin-bottom: 10px; }
.tweak .lbl { font-size: 11px; color: var(--text-2); margin-bottom: 6px; display: block; }
.swatches { display: flex; gap: 6px; }
.sw {
  width: 28px; height: 28px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--bg-0); font-size: 10px; font-weight: 700;
}
.sw.active { outline: 2px solid var(--text-0); outline-offset: 2px; }
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: 4px;
  padding: 2px;
}
.seg button {
  background: transparent; border: none; padding: 5px 8px;
  color: var(--text-3); font-family: var(--f-ui); font-size: 11px; cursor: pointer;
  border-radius: 3px;
}
.seg button.active { background: var(--bg-3); color: var(--text-0); }

/* ---------- Misc ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-grid); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-grid); }
.stack { display: flex; flex-direction: column; gap: var(--gap-grid); }

.divider { height: 1px; background: var(--line-1); margin: 6px 0; }

.alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(245,185,66,0.35);
  background: rgba(245,185,66,0.08);
  margin-bottom: 20px;
  align-items: center;
}
.alert .i {
  width: 28px; height: 28px; border-radius: 4px;
  background: rgba(245,185,66,0.18);
  color: var(--warn);
  display: grid; place-items: center;
}
.alert .t { color: var(--text-0); font-weight: 500; font-size: 12.5px; }
.alert .d { color: var(--text-2); font-size: 11.5px; margin-top: 2px; }

.select {
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-sm);
  color: var(--text-1);
  padding: 6px 28px 6px 10px;
  font-family: var(--f-ui);
  font-size: 12px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M2 4l3 3 3-3' stroke='%23787878' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}

/* ---------- H2H Hero ---------- */
.h2h-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  align-items: center;
  padding: 28px 24px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
}
.h2h-side {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.h2h-av {
  width: 72px; height: 72px; border-radius: 10px;
  background: var(--bg-3); border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 22px; font-weight: 700; color: var(--text-0);
}
.h2h-side.a .h2h-av { box-shadow: 0 0 0 2px var(--accent-bd), 0 0 20px var(--accent-bg); }
.h2h-side.b .h2h-av { box-shadow: 0 0 0 2px var(--brand-blue-bd), 0 0 20px var(--brand-blue-bg); }
.h2h-name { font-size: 18px; font-weight: 700; color: var(--text-0); letter-spacing: -0.01em; }
.h2h-team { font-family: var(--f-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }

.h2h-core { text-align: center; }
.h2h-title {
  font-size: 10px; letter-spacing: 0.18em; color: var(--text-3); text-transform: uppercase; margin-bottom: 10px;
}
.h2h-rings {
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.ring { position: relative; width: 96px; height: 96px; }
.ring.small { width: 78px; height: 78px; }
.ring svg { width: 100%; height: 100%; }
.ring .ring-v {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 28px; font-weight: 700; color: var(--text-0);
}
.ring.small .ring-v { font-size: 22px; }
.ring .ring-k {
  position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%);
  font-size: 9px; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
}

/* ---------- Stats filter block ---------- */
.stats-filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex; justify-content: space-between; align-items: center;
}
.field label .v { color: var(--accent); font-size: 11px; text-transform: none; letter-spacing: 0; }
.field input[type="range"] {
  -webkit-appearance: none;
  background: var(--bg-2);
  height: 6px;
  border-radius: 3px;
  border: 1px solid var(--line-1);
  outline: none;
  padding: 0;
}
.field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  border: 2px solid var(--bg-0);
  box-shadow: 0 0 0 1px var(--accent-bd);
}
.field input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 2px solid var(--bg-0);
}

.seg4 {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-sm);
  padding: 2px;
  gap: 2px;
}
.seg4 button {
  background: transparent; border: none; padding: 7px 8px;
  color: var(--text-3); font-family: var(--f-ui); font-size: 11.5px;
  cursor: pointer; border-radius: 3px; font-weight: 500;
  white-space: nowrap;
}
.seg4 button:hover { color: var(--text-1); }
.seg4 button.active { background: var(--accent); color: var(--bg-0); font-weight: 600; }

.search-inline {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  color: var(--text-3);
}
.search-inline input {
  background: transparent; border: none; outline: none;
  color: var(--text-1); font-family: var(--f-ui); font-size: 12px;
  width: 100%;
}

/* Stats/admin table scroller: horizontal only, never page vertical. */
.scrollx {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}
.stats-table { min-width: 1500px; }
.stats-table th, .stats-table td { padding: 9px 12px; white-space: nowrap; }
.stats-table .sticky-col {
  position: sticky; left: 0;
  background: var(--bg-1);
  z-index: 1;
  border-right: 1px solid var(--line-1);
}
.stats-table tbody tr:hover .sticky-col { background: var(--bg-2); }
.stats-table thead th:first-child {
  position: sticky; left: 0; z-index: 2; background: var(--bg-2);
  border-right: 1px solid var(--line-1);
}

.avatar-sq {
  width: 26px; height: 26px; border-radius: 4px;
  background: var(--bg-3);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 10px; color: var(--text-0); font-weight: 600;
  border: 1px solid var(--line-1);
}

.table-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-top: 1px solid var(--line-1);
  background: var(--bg-1);
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Filters row ---------- */
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-1);
  background: var(--bg-1);
  flex-wrap: wrap;
}
.filters .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 4px;
}
.filters .sep { width: 1px; height: 18px; background: var(--line-1); margin: 0 4px; }


/* ============================================================
   RESPONSIVE — Tablet (≤1024px) e Mobile (≤768px)
   Desktop intato; abaixo de 1024 a Sidebar comprime para ícones,
   abaixo de 768 vira Bottom Nav fixa (PWA-style).
   ============================================================ */

@media (max-width: 1024px) and (min-width: 769px) {
  .app { grid-template-columns: 64px 1fr; }
  .sidebar { width: 64px; }
  .brand { padding: 14px 8px; justify-content: center; }
  .brand-name, .brand-sub { display: none; }
  .nav-label, .sidebar-foot { display: none; }
  .nav-section { padding: 10px 6px; }
  .nav-item { justify-content: center; padding: 10px 6px; }
  .nav-item span:not(.live-dot):not(.count) { display: none; }
  .nav-item .count { display: none; }
  .nav-item .live-dot { margin-left: 0; position: absolute; top: 8px; right: 8px; }
  .nav-item { position: relative; }
  .topbar { padding: 12px 16px; gap: 12px; }
  .topbar .ticker { padding: 6px 10px; font-size: 10.5px; }
  .topbar .search { max-width: 280px; }
  .content { padding: 18px 18px 60px; }
  .kpis { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .stats-table { min-width: 1100px; }
}

@media (max-width: 768px) {
  /* Card-head: empilhar título + chips no mobile pra não overflow */
  .card-head { flex-wrap: wrap; row-gap: 8px; }
  .card-head .card-tools { width: 100%; }
  .card-head .chips-row { width: 100%; justify-content: flex-start; gap: 6px; }
  .card-head .chips-row .chip { flex: 1 1 auto; justify-content: center; padding: 6px 8px; font-size: 11px; }

  /* Base — bumps body para 14, inputs ≥16 evita zoom iOS */
  body { font-size: 14px; }
  body {
    width: 100%;
    max-width: 100%;
    overscroll-behavior-x: none;
  }
  input, select, textarea { font-size: 16px !important; }

  /* Shell vira coluna única; bottom-nav é overlay fixo */
  .app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* SIDEBAR → BOTTOM NAV */
  .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    overflow: hidden;
    flex-direction: row;
    align-items: stretch;
    border-right: none;
    border-top: 1px solid var(--line-1);
    background: rgba(12,23,41,0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0));
    z-index: 60;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.35);
    transform: translateZ(0);
    will-change: transform;
    contain: layout paint;
  }
  .brand, .sidebar-foot, .nav-label { display: none; }
  .nav-section {
    display: flex;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    padding: 0;
    gap: 2px;
  }
  .nav-section + .nav-section { display: none; } /* só primária no bottom-nav */
  .nav-item {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 3px;
    padding: 8px 4px;
    min-height: 56px;
    font-size: 10.5px;
    font-weight: 500;
    border-radius: var(--r-sm);
    position: relative;
    min-width: 0;
    overflow: hidden;
    color: var(--text-3);
  }
  .nav-item:hover { background: transparent; }
  .nav-item.active {
    background: transparent;
    color: var(--accent);
    box-shadow: none;
  }
  .nav-item.active::before {
    content: "";
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 22px; height: 2px;
    background: var(--accent);
    border-radius: 0 0 2px 2px;
  }
  .nav-item .ico { width: 20px; height: 20px; opacity: 1; }
  .nav-item .count {
    position: absolute;
    top: 6px; right: 14%;
    margin-left: 0;
    font-size: 9px;
    padding: 1px 5px;
    background: var(--bg-3);
    border: 1px solid var(--line-1);
  }
  .nav-item.active .count { color: var(--accent); }
  .nav-item .live-dot { position: absolute; top: 8px; right: 18%; margin-left: 0; }

  /* TOPBAR — 2 linhas: crumbs + actions / search abaixo
     No mobile: rola junto com a página (sem sticky) pra liberar a viewport */
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 14px;
    position: static !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: transparent;
    border-bottom: 1px solid var(--line-1);
  }
  /* Bottom-nav permanece fixed mas com sombra mais sutil */
  .sidebar { box-shadow: 0 -4px 16px rgba(0,0,0,0.25); }
  .topbar .crumbs { font-size: 10.5px; flex-wrap: wrap; gap: 5px; }
  .topbar .crumbs .sep:first-of-type,
  .topbar .crumbs span:not(.cur):not(.sep) { display: none; }
  .topbar .crumbs .cur { color: var(--text-0); font-weight: 600; font-size: 13px; text-transform: none; letter-spacing: 0; }

  .topbar .search {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    justify-self: stretch;
  }
  .topbar .search input { padding: 10px 12px 10px 36px; }
  .topbar .search .kbd { display: none; }

  .topbar-right { gap: 6px; }
  .topbar-right .ticker { display: none; }
  .topbar-right .user-chip { display: none; }
  .topbar-right .iconbtn { width: 38px; height: 38px; }

  /* CONTENT — padding-bottom reserva espaço pro bottom-nav (56 + safe-area) */
  .content {
    padding: 14px 14px calc(80px + env(safe-area-inset-bottom, 0));
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .page-head,
  .page-actions,
  .card,
  .kpis,
  .grid-2,
  .two-col {
    min-width: 0;
    max-width: 100%;
  }

  /* PAGE HEAD — empilha título e ações */
  .page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 14px;
  }
  .page-title { font-size: 19px; }
  .page-sub { font-size: 10.5px; }
  .page-actions { flex-wrap: wrap; gap: 6px; }
  .page-actions .btn { flex: 1 1 auto; justify-content: center; min-height: 40px; padding: 9px 12px; }

  /* KPIs — 2 colunas em mobile */
  .kpis {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }

  /* GRID-2 → empilha */
  .grid-2 { grid-template-columns: 1fr; }

  /* TWO-COL (Home: Próximas partidas + Fila/Heat) → empilha */
  .two-col {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* MATCH ROW (Próximas partidas) — redesenho em areas verticais */
  .match {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "time   league"
      "teams  teams"
      "odds   odds"
      "pill   pill";
    gap: 8px 12px;
    align-items: center;
    padding: 12px 14px;
  }
  .match .time { grid-area: time; font-size: 11px; }
  .match .time .t { font-size: 13px; }
  .match .league { grid-area: league; text-align: right; font-size: 9.5px; line-height: 1.4; }
  .match .teams { grid-area: teams; gap: 6px; }
  .match .row { font-size: 13px; gap: 8px; }
  .match .row .nm { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .match .row .nm .tm { margin-left: 0; font-size: 10.5px; }
  .match .row .sc { font-size: 13px; min-width: 32px; }
  .match .odds { grid-area: odds; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .match .odd { padding: 8px 4px; min-height: 40px; display: flex; flex-direction: column; justify-content: center; }
  .match .odd .v { font-size: 13px; }
  .match .ev-pill { grid-area: pill; justify-self: start; }

  /* SIGNAL QUEUE ITEM — empilha sig-right embaixo */
  .sig {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
  }
  .sig-head { font-size: 10px; flex-wrap: wrap; gap: 6px; }
  .sig-match { font-size: 14px; }
  .sig-meta { font-size: 11px; flex-wrap: wrap; gap: 8px; }
  .sig-right {
    text-align: left;
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .sig-tip { font-size: 11px; }

  /* CARDS — bordas mais suaves */
  .card { border-radius: 8px; }
  .card-head { padding: 10px 12px; }

  /* FILTROS — chips wrap; selects flex */
  .filters {
    padding: 10px 12px;
    gap: 6px;
  }
  .filters > .lbl { width: 100%; margin: 0 0 -2px; }
}

/* ============================================================
   GoldeBet — Signal Queue / History (overrides + new segmented)
   ============================================================ */

/* Segmented control no card-head */
.card-head .seg-tabs {
  display: inline-flex;
  gap: 2px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 2px;
}
.card-head .seg-tabs > button {
  padding: 6px 12px;
  border: none;
  cursor: pointer;
  background: transparent;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all .12s;
  min-height: 30px;
}
.card-head .seg-tabs > button:hover { color: var(--text-1); }
.card-head .seg-tabs > button.on {
  background: var(--brand-gold-bg);
  color: var(--brand-gold);
  box-shadow: inset 0 0 0 1px rgba(245,185,66,0.20);
}

/* Signal row (sq-row) — ativo + histórico */
.sq-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-1);
  transition: background .12s;
  position: relative;
}
.sq-row.sq-row-2 { grid-template-columns: 64px 1fr; }
.sq-row:hover { background: rgba(44,107,255,0.05); }
.sq-row:last-child { border-bottom: none; }

.sq-time {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-0);
  letter-spacing: -0.01em;
}
.sq-time small {
  font-size: 9px;
  color: var(--text-3);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.sq-time.live small { color: var(--brand-gold); }

.sq-info { min-width: 0; }
.sq-match {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-0);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.sq-match .vs {
  color: var(--text-3);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
}
.sq-pick {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

/* Hint discreto "ⓘ analisar" — usado apenas em live no StakeWindowRow */
.sq-h2h-hint {
  display: inline-flex; align-items: center;
  gap: 3px;
  margin-left: 8px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text-3);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color .15s;
}
.sq-h2h-hint svg { display: block; opacity: 0.85; }
.sq-row:hover .sq-h2h-hint { color: var(--brand-blue-2); }
@media (max-width: 768px) {
  .sq-h2h-hint { font-size: 9.5px; margin-left: 6px; }
}
.sq-pick b {
  color: var(--brand-gold);
  font-weight: 700;
}
.sq-pick .dot { color: var(--text-3); margin: 0 4px; }

/* Result pill (histórico) */
.sq-res {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 6px;
}
.sq-res-green { background: rgba(54,211,153,0.14); color: var(--win);  border: 1px solid rgba(54,211,153,0.30); }
.sq-res-red   { background: rgba(241,90,90,0.14);  color: #ff8c8c;     border: 1px solid rgba(241,90,90,0.28); }
.sq-res-void  { background: rgba(255,255,255,0.05); color: var(--text-3); border: 1px solid var(--line-2); }
.sq-res-pend  { background: rgba(77,134,255,0.10); color: var(--brand-blue-2); border: 1px solid var(--brand-blue-bd); }

/* CTA "ver partida" */
.sq-cta {
  padding: 8px 12px;
  background: var(--brand-blue-bg);
  border: 1px solid var(--brand-blue-bd);
  color: var(--brand-blue-2);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all .12s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  min-height: 36px;
}
.sq-cta:hover {
  background: var(--brand-gold-bg);
  border-color: var(--brand-gold-bd);
  color: var(--brand-gold);
}
.sq-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.sq-cta.gold {
  background: linear-gradient(180deg, var(--brand-gold), var(--brand-gold-dim));
  color: #1a1208;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(245,185,66,0.22);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: cta-pulse-glow 2.4s ease-in-out infinite;
}
.sq-cta.gold:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 22px rgba(245,185,66,0.55), 0 0 0 1px rgba(255,210,90,0.6) inset;
}
.sq-cta.gold:active { transform: translateY(0) scale(0.98); }

/* Shimmer sweep contínuo na CTA dourada */
.sq-cta.gold::before {
  content: '';
  position: absolute;
  top: 0; left: -150%;
  width: 60%; height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255,255,255,0.0) 30%,
    rgba(255,255,255,0.45) 50%,
    rgba(255,255,255,0.0) 70%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: cta-shimmer 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.sq-cta.gold > * { position: relative; z-index: 2; }

/* Variante "live" — mais intensa quando o jogo já começou */
.sq-cta.gold.sq-cta-live {
  animation: cta-pulse-glow-live 1.6s ease-in-out infinite;
}
.sq-cta.gold.sq-cta-live::before { animation-duration: 2.4s; }
.sq-cta.esportiva {
  background: linear-gradient(180deg, rgba(28, 214, 98, 0.18), rgba(28, 214, 98, 0.08));
  border-color: rgba(28, 214, 98, 0.34);
  color: #42f384;
}
.sq-cta.esportiva:hover {
  background: linear-gradient(180deg, rgba(28, 214, 98, 0.26), rgba(28, 214, 98, 0.12));
  border-color: rgba(66, 243, 132, 0.58);
  color: #74ffa5;
  transform: translateY(-1px);
}
.btn.esportiva {
  background: linear-gradient(180deg, rgba(28, 214, 98, 0.16), rgba(28, 214, 98, 0.08));
  color: #42f384;
  border-color: rgba(28, 214, 98, 0.36);
}
.btn.esportiva:hover:not(:disabled) {
  background: linear-gradient(180deg, rgba(28, 214, 98, 0.24), rgba(28, 214, 98, 0.10));
  color: #74ffa5;
  border-color: rgba(66, 243, 132, 0.58);
  transform: translateY(-1px);
}

@keyframes cta-shimmer {
  0%   { left: -150%; }
  60%  { left: 150%; }
  100% { left: 150%; }
}
@keyframes cta-pulse-glow {
  0%, 100% { box-shadow: 0 4px 12px rgba(245,185,66,0.22); }
  50%      { box-shadow: 0 4px 18px rgba(245,185,66,0.45), 0 0 0 1px rgba(255,210,90,0.30) inset; }
}
@keyframes cta-pulse-glow-live {
  0%, 100% { box-shadow: 0 4px 14px rgba(245,185,66,0.30); }
  50%      { box-shadow: 0 6px 22px rgba(245,185,66,0.65), 0 0 0 1px rgba(255,220,120,0.50) inset; }
}

/* Countdown live state */
.sq-countdown {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 700;
  color: var(--brand-gold);
  position: relative;
}
.sq-countdown .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-gold);
  box-shadow: 0 0 0 0 var(--brand-gold);
  animation: pulse-gold 1.4s infinite;
  position: relative;
  z-index: 2;
}
.sq-countdown .halo {
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--brand-gold);
  transform: translate(0, -50%);
  animation: live-halo 1.8s ease-out infinite;
  pointer-events: none;
  opacity: 0;
}
@keyframes pulse-gold {
  0%   { box-shadow: 0 0 0 0 rgba(245,185,66,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(245,185,66,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,185,66,0); }
}
@keyframes live-halo {
  0%   { transform: translate(0,-50%) scale(1);   opacity: 0.85; border-width: 2px; }
  60%  { transform: translate(0,-50%) scale(2.6); opacity: 0;    border-width: 0.5px; }
  100% { transform: translate(0,-50%) scale(2.6); opacity: 0;    border-width: 0; }
}

/* Número do minuto live — pulse glow contínuo + tick a cada update */
.sq-time.live .sq-time-num {
  display: inline-block;
  color: var(--brand-gold);
  text-shadow: 0 0 0 rgba(245,185,66,0);
  animation: live-num-breathe 2s ease-in-out infinite;
}
.sq-time.live .sq-time-num.live-tick {
  animation: live-num-breathe 2s ease-in-out infinite, live-num-tick 0.55s cubic-bezier(.34,1.56,.64,1);
}
@keyframes live-num-breathe {
  0%, 100% { text-shadow: 0 0 4px rgba(245,185,66,0.25); }
  50%      { text-shadow: 0 0 10px rgba(245,185,66,0.60); }
}
@keyframes live-num-tick {
  0%   { transform: scale(1);    }
  35%  { transform: scale(1.18); text-shadow: 0 0 14px rgba(245,185,66,0.95), 0 0 22px rgba(245,185,66,0.45); }
  100% { transform: scale(1);    }
}

/* ===== Goal animation ===== */
.goal-num {
  display: inline-block;
  position: relative;
  transition: color 0.2s ease;
}
.goal-sep { color: var(--text-3); margin: 0 2px; }
.goal-num-pop {
  animation: goal-pop 1.6s cubic-bezier(.34,1.56,.64,1) both;
  color: var(--brand-gold);
  text-shadow: 0 0 12px rgba(245,185,66,0.85);
  z-index: 3;
}
@keyframes goal-pop {
  0%   { transform: scale(1);    color: inherit;          text-shadow: none; }
  18%  { transform: scale(1.65); color: var(--brand-gold); text-shadow: 0 0 18px rgba(245,185,66,1), 0 0 28px rgba(245,185,66,0.7); }
  40%  { transform: scale(1.20); color: var(--brand-gold); text-shadow: 0 0 14px rgba(245,185,66,0.8); }
  70%  { transform: scale(1.05); color: var(--brand-gold); text-shadow: 0 0 8px rgba(245,185,66,0.5); }
  100% { transform: scale(1);    color: inherit;          text-shadow: none; }
}

/* Flash dourado no row inteiro quando rola gol */
.sq-row.goal-flash {
  position: relative;
  overflow: hidden;
}
.sq-row.goal-flash::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(245,185,66,0.22) 0%,
    rgba(245,185,66,0.10) 40%,
    transparent 75%
  );
  animation: goal-flash-bg 1.6s ease-out;
  pointer-events: none;
  z-index: 1;
}
.sq-row.goal-flash > * { position: relative; z-index: 2; }
@keyframes goal-flash-bg {
  0%   { opacity: 0;    transform: scale(0.9); }
  20%  { opacity: 1;    transform: scale(1.05); }
  60%  { opacity: 0.5;  transform: scale(1);    }
  100% { opacity: 0;    transform: scale(1);    }
}

/* slot: container relative ao redor de cada número do placar — ancora bola+explosão */
.goal-num-slot {
  position: relative;
  display: inline-block;
}

/* ⚽ bola chega voando no placar e EXPLODE em flash + ring radial. Total ~1.1s */
.goal-strike {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px; height: 26px;
  margin-top: -13px; margin-left: -13px;
  font-size: 26px;
  line-height: 26px;
  text-align: center;
  filter:
    drop-shadow(0 0 8px rgba(245,185,66,1))
    drop-shadow(0 0 16px rgba(245,185,66,0.55))
    drop-shadow(0 2px 4px rgba(0,0,0,0.40));
  pointer-events: none;
  z-index: 5;
  animation: goal-strike-fly 0.4s cubic-bezier(.55,0,.85,.4) both;
  will-change: transform, opacity;
}
@keyframes goal-strike-fly {
  /* vem da esquerda em linha reta, escala crescendo até bater no número (translateX=0 = centro) */
  0%   { transform: translateX(-60px) scale(0.45); opacity: 0; }
  25%  { transform: translateX(-44px) scale(0.75); opacity: 1; }
  75%  { transform: translateX(-10px) scale(1.45); opacity: 1; }
  100% { transform: translateX(0)     scale(1.7);  opacity: 0; }
}

/* explosão centrada exatamente no placar — disparada quando a bola "bate" */
.goal-blast {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px; height: 14px;
  margin-top: -7px; margin-left: -7px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  background: radial-gradient(circle, rgba(255,240,180,1) 0%, rgba(245,185,66,0.85) 35%, rgba(245,185,66,0) 70%);
  animation: goal-blast-core 0.7s cubic-bezier(.16,.86,.4,1) 0.38s both;
  box-shadow: 0 0 0 0 rgba(245,185,66,0.95);
}

/* ring expandindo (border) — disparado em sincronia com o flash */
.goal-blast::before, .goal-blast::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--brand-gold);
  animation: goal-blast-ring 0.85s cubic-bezier(.2,.7,.3,1) 0.38s both;
}
.goal-blast::after {
  border-color: rgba(245,185,66,0.55);
  border-width: 2px;
  animation-delay: 0.48s;
  animation-duration: 0.75s;
}

@keyframes goal-blast-core {
  0%   { transform: scale(0.2);  opacity: 0;
         box-shadow: 0 0 0 0 rgba(245,185,66,0); }
  18%  { transform: scale(2.4);  opacity: 1;
         box-shadow: 0 0 30px 6px rgba(245,185,66,0.85); }
  55%  { transform: scale(1.4);  opacity: 0.6;
         box-shadow: 0 0 40px 10px rgba(245,185,66,0.30); }
  100% { transform: scale(0.6);  opacity: 0;
         box-shadow: 0 0 0 0 rgba(245,185,66,0); }
}
@keyframes goal-blast-ring {
  0%   { transform: scale(0.4); opacity: 0; border-width: 4px; }
  10%  { transform: scale(1.2); opacity: 1; border-width: 3px; }
  60%  { transform: scale(4.5); opacity: 0.4; border-width: 1.5px; }
  100% { transform: scale(7);   opacity: 0; border-width: 0; }
}

/* Live row — leve gold tint persistente */
.sq-row.sq-live-row {
  background: linear-gradient(180deg, transparent 0%, rgba(245,185,66,0.04) 100%);
}

/* ===== Acessibilidade — desliga animações ===== */
@media (prefers-reduced-motion: reduce) {
  .sq-cta.gold,
  .sq-cta.gold::before,
  .sq-cta.gold.sq-cta-live,
  .sq-countdown .pulse,
  .sq-countdown .halo,
  .sq-time.live .sq-time-num,
  .sq-time.live .sq-time-num.live-tick,
  .goal-num-pop,
  .sq-row.goal-flash::before,
  .goal-strike,
  .goal-blast,
  .goal-blast::before,
  .goal-blast::after { animation: none !important; }
  .goal-num-pop { color: var(--brand-gold); text-shadow: 0 0 4px rgba(245,185,66,0.6); }
  .sq-time.live .sq-time-num { color: var(--brand-gold); text-shadow: 0 0 4px rgba(245,185,66,0.5); }
}

/* Empty state */
.sq-empty {
  padding: 32px 14px;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Mobile: empilha CTA e diminui colunas */
@media (max-width: 768px) {
  .sq-row {
    grid-template-columns: 56px 1fr;
    gap: 8px;
    padding: 10px 12px;
  }
  .sq-row .sq-cta {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
    justify-content: center;
  }
  .sq-row .sq-actions {
    grid-column: 1 / -1;
    width: 100%;
  }
  .sq-row .sq-actions .sq-cta {
    flex: 1 1 140px;
  }
  .sq-time { font-size: 13px; }
  .sq-match { font-size: 12.5px; flex-wrap: wrap; gap: 6px; }
  .sq-pick { font-size: 10.5px; }
  .filters .sep { display: none; }
  .filters .chip { min-height: 36px; padding: 0 12px; font-size: 12px; }
  .filters .select { min-height: 36px; flex: 1 1 130px; padding: 0 10px; font-size: 14px; }

  /* TABELAS — scroll horizontal com inertia */
  .table {
    font-size: 12px;
    white-space: normal;
  }
  .table th, .table td { padding: 10px 8px; }
  .scrollx { -webkit-overflow-scrolling: auto; }
  .stats-table { min-width: 900px; }

  .signals-table {
    table-layout: fixed;
    width: 100%;
  }
  .signals-table th:nth-child(2),
  .signals-table td:nth-child(2),
  .signals-table th:nth-child(6),
  .signals-table td:nth-child(6),
  .signals-table th:nth-child(8),
  .signals-table td:nth-child(8),
  .signals-table th:nth-child(10),
  .signals-table td:nth-child(10) {
    display: none;
  }
  .signals-table th,
  .signals-table td {
    vertical-align: middle;
  }
  .signals-table th:nth-child(1),
  .signals-table td:nth-child(1) { width: 44px; }
  .signals-table th:nth-child(3),
  .signals-table td:nth-child(3) {
    width: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.25;
  }
  .signals-table th:nth-child(4),
  .signals-table td:nth-child(4) { width: 52px; }
  .signals-table th:nth-child(5),
  .signals-table td:nth-child(5) { width: 44px; }
  .signals-table th:nth-child(7),
  .signals-table td:nth-child(7) { width: 56px; }
  .signals-table th:nth-child(9),
  .signals-table td:nth-child(9) { width: 58px; }

  /* INPUTS — touch target 40px+ */
  .btn { min-height: 40px; padding: 9px 14px; font-size: 13px; }
  .btn.iconbtn, .iconbtn { min-height: 38px; }
  .field input[type="range"] { height: 28px; padding: 11px 0; background-clip: content-box; }

  /* Stats filter — uma coluna, acordeon-friendly */
  .stats-filter-row { grid-template-columns: 1fr; gap: 12px; }

  /* SEG4 (filtros segmentados) — empilha em 2 cols se largura curta */
  .seg4 { grid-template-columns: repeat(2, 1fr); grid-auto-flow: row; }
  .seg4 button { padding: 9px 8px; font-size: 12px; }

  /* TWEAKS PANEL — bottom sheet acima da bottom-nav */
  .tweaks-panel {
    left: 8px;
    right: 8px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0));
    width: auto;
  }

  /* Topbar search-drop ocupa toda a tela em mobile */
  .topbar .search-drop { left: -14px !important; right: -14px !important; }

  /* Hide ticker / heatmap labels too long; deixa cards respirarem */
  .ticker { display: none !important; }

  /* Reduce motion respect */
  @media (prefers-reduced-motion: reduce) {
    .nav-item, .btn, .card { transition: none !important; }
    @keyframes pulse { from, to { box-shadow: none; } }
  }
}

/* Mobile pequeno (≤375) — KPIs em 1 coluna se 2 ficar apertado */
@media (max-width: 380px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 6px; }
  .page-title { font-size: 17px; }
  .nav-item { font-size: 9.5px; }
  .nav-item .ico { width: 18px; height: 18px; }
}

/* ============================================================
   Modal overlay (H2H popup)
   ============================================================ */
.modal-bg {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(3, 9, 18, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 20px;
  animation: h2hFadeIn .18s ease;
}
@keyframes h2hFadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  background: linear-gradient(180deg, #122340, #0a1426);
  border: 1px solid var(--brand-blue-bd);
  border-radius: var(--r-xl);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(44,107,255,0.10);
  overflow: hidden;
  display: flex; flex-direction: column;
  animation: h2hSlideIn .22s ease;
}
@keyframes h2hSlideIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal.modal-wide { width: min(880px, 100%); }

.modal-head {
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--line-1);
  display: flex; align-items: center; justify-content: space-between;
  flex: none;
}
.modal-head h3 {
  margin: 0; color: var(--text-0);
  font-family: var(--f-ui); font-size: 16px; font-weight: 800;
  letter-spacing: -0.01em;
}
.modal-close {
  background: transparent; border: none; color: var(--text-3); cursor: pointer;
  font-size: 22px; padding: 4px 8px; line-height: 1;
  border-radius: 6px;
  transition: all .12s;
}
.modal-close:hover { color: var(--text-0); background: var(--bg-2); }
.modal-body {
  padding: 18px 20px 20px;
  overflow-y: auto;
  flex: 1;
}

/* Body scroll lock quando o modal está aberto (desktop + mobile) */
body.h2h-modal-open { overflow: hidden !important; touch-action: none; overscroll-behavior: contain; }
.modal-bg { overscroll-behavior: contain; touch-action: none; }
.modal { overscroll-behavior: contain; }
.modal-body { overscroll-behavior: contain; touch-action: pan-y; -webkit-overflow-scrolling: touch; }

/* Mobile — full-screen */
@media (max-width: 768px) {
  .modal-bg.h2h-overlay {
    padding: 0 !important;
    align-items: stretch !important;
    justify-items: stretch !important;
  }
  .modal.h2h-modal,
  .modal.modal-wide.h2h-modal {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border-left: 0; border-right: 0;
    margin: 0;
  }
  .h2h-modal .modal-head {
    position: sticky; top: 0;
    background: #122340; z-index: 2;
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .h2h-modal .modal-body {
    padding: 14px 16px 24px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
}

/* ============================================================
   GoldeBet H2H analysis — portado do signal-modal.jsx
   ============================================================ */

.sample-tag {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; margin-bottom: 12px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 8px;
  font-family: var(--f-mono); font-size: 11px; color: var(--text-2); letter-spacing: 0.05em;
}
.sample-edit {
  background: transparent; border: none; cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; color: var(--brand-gold);
  text-decoration: underline; padding: 0;
}
.sample-edit:hover { color: var(--brand-gold-2); }

/* Slider range — visual coerente com o tema */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--brand-gold), var(--brand-gold-dim));
  border: 2px solid #1a1208;
  box-shadow: 0 0 0 1px rgba(245,185,66,0.35), 0 4px 10px rgba(245,185,66,0.25);
  cursor: grab;
  transition: transform .12s;
}
input[type="range"]::-webkit-slider-thumb:active { transform: scale(1.1); cursor: grabbing; }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(180deg, var(--brand-gold), var(--brand-gold-dim));
  border: 2px solid #1a1208;
  box-shadow: 0 0 0 1px rgba(245,185,66,0.35), 0 4px 10px rgba(245,185,66,0.25);
  cursor: grab;
}

/* Análise rows */
.ana-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.ana-cell {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px;
}
.ana-cell .lbl {
  font-family: var(--f-mono); font-size: 9.5px; color: var(--text-3);
  letter-spacing: 0.10em; text-transform: uppercase; margin-bottom: 8px;
}
.ana-cell-clickable {
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.ana-cell-clickable:hover {
  border-color: var(--accent-bd);
  background: var(--accent-bg);
}
.ana-cell-clickable:active { transform: scale(0.995); }
.ana-hint {
  font-family: var(--f-mono); font-size: 9px;
  color: var(--accent); margin-left: 6px; opacity: 0.85;
}

/* H2H detail sub-modal — abre por cima do H2HDetail */
.h2h-detail-overlay {
  z-index: 1100;
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(2px);
}
.h2h-detail-modal {
  width: min(560px, calc(100vw - 24px));
  max-height: min(80vh, 720px);
  display: flex; flex-direction: column;
}
.h2h-detail-modal .modal-body {
  overflow-y: auto;
  padding: 14px 16px 18px;
}
.h2h-detail-list {
  display: flex; flex-direction: column; gap: 6px;
}
.h2h-detail-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 10px 12px;
}
.h2h-detail-when {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--text-3); letter-spacing: 0.04em;
}
.h2h-detail-match {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--text-1);
}
.h2h-detail-team { color: var(--text-1); font-weight: 600; }
.h2h-detail-team.t-right { text-align: right; }
.h2h-detail-team-name {
  font-weight: 400;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0;
}
.h2h-detail-score {
  font-family: var(--f-mono); font-size: 14px; color: var(--text-0);
  background: var(--bg-3); padding: 4px 10px; border-radius: 6px;
  white-space: nowrap;
  display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15;
}
.h2h-detail-score-row {
  display: inline-flex; align-items: baseline; gap: 6px;
}
.h2h-detail-score-row .sep { color: var(--text-3); font-weight: 600; }
.h2h-detail-score b { font-weight: 800; }
.h2h-detail-score b.win  { color: var(--win); }
.h2h-detail-score b.loss { color: var(--loss); }
.h2h-detail-score b.draw { color: var(--text-1); }
.h2h-detail-ht {
  font-size: 10px; color: var(--text-3); font-weight: 500;
  margin-top: 1px; letter-spacing: 0.02em;
}

@media (max-width: 540px) {
  .h2h-detail-row {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .h2h-detail-when {
    grid-column: 1 / -1;
    order: -1;
    border-bottom: 1px dashed var(--line-1);
    padding-bottom: 6px;
  }
  .h2h-detail-match { font-size: 12px; }
}

/* Form chips W/D/L */
.form-strip { display: flex; gap: 5px; flex-wrap: wrap; }
.form-chip {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 800;
  border: 1px solid transparent;
}
.form-chip.f-w { background: rgba(54,211,153,0.16); color: var(--win); border-color: rgba(54,211,153,0.32); }
.form-chip.f-d { background: rgba(255,255,255,0.06); color: var(--text-2); border-color: var(--line-2); }
.form-chip.f-l { background: rgba(241,90,90,0.14); color: #ff8c8c; border-color: rgba(241,90,90,0.28); }

/* H2H bar */
.h2h-bar {
  display: flex; height: 12px; border-radius: 6px; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--line-2);
}
.h2h-bar .h2h-w { background: var(--win); }
.h2h-bar .h2h-d { background: #4a5b75; }
.h2h-bar .h2h-l { background: var(--loss); }
.h2h-legend {
  display: flex; gap: 14px; margin-top: 8px;
  font-family: var(--f-mono); font-size: 11px; color: var(--text-2);
}
.h2h-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.h2h-legend .dot-w { background: var(--win); }
.h2h-legend .dot-d { background: #4a5b75; }
.h2h-legend .dot-l { background: var(--loss); }

/* H2H Over/Under goals */
.h2h-ou-card { min-width: 0; }
.h2h-ou-table {
  display: grid;
  grid-template-columns: .72fr 1fr 1fr;
  gap: 6px;
  align-items: stretch;
}
.h2h-ou-head,
.h2h-ou-line,
.h2h-ou-pct {
  border: 1px solid var(--line-1);
  border-radius: 8px;
  background: rgba(7,16,30,0.54);
  min-width: 0;
}
.h2h-ou-head {
  padding: 7px 8px;
  color: var(--text-0);
  font: 800 11px var(--f-ui);
  text-align: center;
}
.h2h-ou-line {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-0);
  font: 900 13px var(--f-mono);
}
.h2h-ou-pct {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  text-align: center;
}
.h2h-ou-pct b {
  color: var(--text-0);
  font: 900 13px var(--f-mono);
}
.h2h-ou-pct span {
  color: var(--text-3);
  font: 700 9.5px var(--f-mono);
}
.h2h-ou-pct.over b { color: var(--win); }
.h2h-ou-pct.under b { color: #ff8c8c; }
.h2h-ou-empty {
  grid-column: 1 / -1;
  padding: 13px 10px;
  border: 1px solid var(--line-1);
  border-radius: 8px;
  color: var(--text-3);
  font: 700 11px var(--f-mono);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.h2h-ou-more {
  appearance: none;
  border: 0;
  background: transparent;
  margin: 8px 0 0;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.h2h-ou-more:hover { color: var(--brand-gold); opacity: 1; }

/* ELO row */
.elo-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.elo-side { text-align: center; }
.elo-v { font-family: var(--f-mono); font-size: 18px; font-weight: 800; color: var(--text-0); }
.elo-side .sub { font-family: var(--f-mono); font-size: 10px; color: var(--text-3); margin-top: 2px; letter-spacing: 0.05em; }
.mom {
  font-family: var(--f-mono); font-size: 13px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
  background: var(--bg-3); border: 1px solid var(--line-2);
}
.mom.up   { color: var(--win);  background: rgba(54,211,153,0.10); border-color: rgba(54,211,153,0.28); }
.mom.down { color: #ff8c8c; background: rgba(241,90,90,0.10); border-color: rgba(241,90,90,0.28); }

/* Stats grid 5 cells */
.stats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 10px;
}
.stat-cell {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 8px; text-align: center;
}
.stat-cell .lbl {
  font-family: var(--f-mono); font-size: 9px; color: var(--text-3);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; line-height: 1.3;
}
.stat-cell .val {
  font-family: var(--f-mono); font-size: 20px; font-weight: 800; color: var(--text-0);
  letter-spacing: -0.01em;
}
.stat-cell .val.gold { color: var(--brand-gold); }
.stat-cell .val.small-val { font-size: 13px; }
.stat-cell .val small { font-size: 12px; color: var(--text-3); font-weight: 600; margin-left: 1px; }
.streak-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 13px; font-weight: 800;
}
.streak-badge.up   { background: rgba(54,211,153,0.16); color: var(--win); }
.streak-badge.down { background: rgba(241,90,90,0.14); color: #ff8c8c; }
.stat-cell.streak .val small { font-family: var(--f-mono); font-size: 10px; color: var(--text-2); }

/* Picks block */
.picks-block { margin-bottom: 12px; }
.picks-h {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 2px; margin-bottom: 8px;
}
.picks-h span { font-family: var(--f-ui); font-size: 13px; font-weight: 700; color: var(--text-0); }
.picks-h small { font-family: var(--f-mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }
.pick-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; margin-bottom: 6px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px;
}
.pick-row.top {
  background: linear-gradient(180deg, rgba(245,185,66,0.10), rgba(245,185,66,0.02));
  border-color: var(--brand-gold-bd);
}
.pick-rank {
  font-family: var(--f-mono); font-size: 12px; font-weight: 800;
  color: var(--text-3); min-width: 24px;
}
.pick-row.top .pick-rank { color: var(--brand-gold); }
.pick-info { min-width: 0; }
.pick-type { font-family: var(--f-ui); font-size: 14px; font-weight: 700; color: var(--text-0); }
.pick-meta { font-family: var(--f-mono); font-size: 10.5px; color: var(--text-3); margin-top: 2px; letter-spacing: 0.04em; }
.pick-meta b { color: var(--text-1); font-weight: 700; }
.pick-edge {
  font-family: var(--f-mono); font-size: 18px; font-weight: 800; color: var(--text-2);
  letter-spacing: -0.01em;
}
.pick-edge.hot { color: var(--brand-gold); }
.pick-edge small { font-size: 11px; margin-left: 1px; }

/* Mobile compaction */
@media (max-width: 768px) {
  .ana-row { grid-template-columns: 1fr; gap: 10px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell.streak { grid-column: span 2; }
  .pick-row { padding: 10px; gap: 8px; }
  .pick-meta { white-space: normal; word-break: break-word; }
}

/* ===== Tiles compactos (estilo GoldeBet) ===== */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.tiles-mobile-only { display: none; }
@media (max-width: 1024px) {
  .tiles-mobile-only { display: grid; }
  .tiles-desktop-only { display: none; }
}
.tile {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px;
}
.tile-k {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--text-3);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tile-v {
  font-family: var(--f-mono);
  font-weight: 800;
  font-size: 18px;
  color: var(--text-0);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.tile-v.gold { color: var(--brand-gold); }
.tile-v.win  { color: var(--win); }
.tile-v.red  { color: #ff8c8c; }
.tile-d {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--text-3);
  margin-top: 4px;
}
@media (max-width: 768px) {
  .tile-k { font-size: 8px; margin-bottom: 4px; letter-spacing: 0.06em; }
  .tile-v { font-size: 14px; }
  .tile-d { font-size: 9px; }
}

/* ===== Stats · H2H manual picker ===== */
.h2h-card .card-title { color: var(--brand-gold); }
.h2h-picker {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 14px;
  align-items: end;
}
.h2h-picker .field { min-width: 0; }
.h2h-vs {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--brand-gold), var(--brand-gold-dim));
  color: #1a1208;
  font-family: var(--f-mono);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 14px rgba(245,185,66,0.30);
  margin-bottom: 4px;
}
.h2h-btn {
  height: 40px;
  padding: 0 18px;
  white-space: nowrap;
  margin-bottom: 0;
}
@media (max-width: 720px) {
  .h2h-picker {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .h2h-vs { justify-self: center; margin: 2px 0; }
  .h2h-btn { width: 100%; }
}

/* ===== Stats · paginação ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 4px 4px;
  flex-wrap: wrap;
}
.page-btn {
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text-1);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 6px;
  cursor: pointer;
  transition: all .12s;
  min-height: 30px;
}
.page-btn:hover:not(:disabled) {
  background: var(--accent-bg);
  border-color: var(--accent-bd);
  color: var(--accent);
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.page-info {
  color: var(--text-2);
  font-size: 11px;
  padding: 0 12px;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .page-info { width: 100%; text-align: center; padding: 4px 0; order: 2; }
  .page-btn:first-of-type { order: 1; }
  .page-btn:last-of-type  { order: 3; }
}

/* SaaS auth — inputs */
.input {
  background: var(--bg-2, #1a1a1a);
  border: 1px solid var(--line-1, #2a2a2a);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-0, #f0f0f0);
  outline: none;
  transition: border-color .15s;
}
.input:focus { border-color: var(--accent, #4d7); }
.input::placeholder { color: var(--text-3, #777); }

/* ---------- SaaS billing ---------- */
.billing-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.billing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 82% 12%, rgba(245,185,66,.18), transparent 34%),
    radial-gradient(circle at 6% 100%, rgba(44,107,255,.16), transparent 30%),
    linear-gradient(135deg, rgba(18,35,64,.78), rgba(7,16,30,.88));
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.billing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.billing-hero-copy,
.billing-hero-panel {
  position: relative;
  z-index: 1;
}
.billing-kicker {
  margin-bottom: 10px;
  color: var(--brand-gold);
  font: 800 10px var(--f-mono);
  letter-spacing: .14em;
}
.billing-title {
  max-width: 620px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: .98;
  letter-spacing: 0;
}
.billing-lead {
  max-width: 620px;
  margin-top: 14px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}
.billing-lead b { color: var(--text-0); }
.billing-hero-panel {
  align-self: center;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
}
.billing-live-row,
.billing-score {
  border: 1px solid var(--line-2);
  background: rgba(12,23,41,.72);
  border-radius: var(--r-md);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}
.billing-live-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: var(--text-2);
  font: 800 10px var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.billing-live-row b { color: var(--text-0); letter-spacing: 0; text-transform: none; }
.billing-pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--win);
  box-shadow: 0 0 0 0 rgba(54,211,153,.35);
  animation: billingPulse 1.8s ease-out infinite;
}
.billing-score {
  padding: 14px;
}
.billing-score span {
  display: block;
  color: var(--text-3);
  font: 800 10px var(--f-mono);
  letter-spacing: .12em;
}
.billing-score b {
  display: block;
  margin-top: 8px;
  color: var(--text-0);
  font: 900 26px/1 var(--f-mono);
}
.billing-score:first-of-type b { color: var(--win); }
.billing-alert {
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: rgba(18,35,64,.72);
  font-size: 13px;
}
.billing-alert.error { color: var(--loss); border-color: rgba(241,90,90,.28); }
.billing-alert.success { color: var(--win); border-color: rgba(54,211,153,.28); }
/* ===== Billing trust grid (4 itens com ícone) ===== */
.billing-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.billing-benefits > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  background: rgba(18,35,64,.40);
}
.billing-benefits .ico {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(245,185,66,.12);
  color: var(--brand-gold);
  display: grid; place-items: center;
}
.billing-benefits .ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.billing-benefits .copy { display: grid; gap: 2px; }
.billing-benefits b {
  color: var(--text-0);
  font: 600 13px var(--f-ui);
  letter-spacing: 0;
}
.billing-benefits span {
  color: var(--text-3);
  font: 500 10.5px var(--f-mono);
  letter-spacing: .04em;
  line-height: 1.35;
}

/* ===== Plans grid (Fraunces serif + featured glow) ===== */
.billing-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 340px));
  gap: 18px;
  align-items: stretch;
  justify-content: center;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}
.billing-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(18,35,64,.55), rgba(12,23,41,.70));
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: visible;
}
.billing-plan:hover {
  transform: translateY(-3px);
  border-color: rgba(99,169,255,.18);
}
.billing-plan.featured {
  border-color: rgba(245,185,66,.35);
  background: linear-gradient(180deg, rgba(245,185,66,.08), rgba(12,23,41,.85));
  box-shadow: 0 30px 60px -20px rgba(245,185,66,.25), 0 0 0 1px rgba(245,185,66,.35);
}
.billing-plan.current {
  border-color: rgba(54,211,153,.35);
}
.billing-plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.billing-plan-eyebrow {
  font: 700 10px var(--f-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.billing-plan.featured .billing-plan-eyebrow { color: var(--brand-gold); }
.billing-plan.current .billing-plan-eyebrow { color: var(--win); }
.billing-plan h2 {
  margin: 10px 0 0;
  font-family: var(--f-display, 'Fraunces', serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-0);
}
.billing-plan h2 em { font-style: italic; color: var(--brand-gold); font-weight: 300; }
.billing-plan-ribbon {
  position: absolute;
  top: -1px; right: 22px;
  transform: translateY(-50%);
  font: 700 9.5px var(--f-mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  background: var(--brand-gold);
  color: #1a1305;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(245,185,66,.32);
  z-index: 2;
}
.billing-plan-ribbon.current {
  background: var(--win);
  color: #062618;
  box-shadow: 0 6px 16px rgba(54,211,153,.32);
}

.billing-plan-desc {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.5;
  min-height: 40px;
}

.billing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 22px 0 0;
  font-family: var(--f-display, 'Fraunces', serif);
  color: var(--text-0);
}
.billing-price .cur {
  font: 600 14px var(--f-mono);
  color: var(--text-3);
  letter-spacing: .06em;
}
.billing-price .amount {
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
}
.billing-price .amount em { font-style: italic; color: var(--brand-gold); }
.billing-price .cents {
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-left: -4px;
}
.billing-price .per {
  font: 500 11px var(--f-mono);
  color: var(--text-3);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-left: 6px;
}
.billing-plan-monthly {
  margin-top: 6px;
  font: 500 10.5px var(--f-mono);
  color: var(--text-3);
  letter-spacing: .06em;
}
.billing-plan-monthly strong {
  color: var(--text-1);
  font-weight: 600;
}

.billing-list {
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: 1px dashed var(--line-1);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.billing-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-1);
}
.billing-list li svg.ck {
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  color: var(--brand-gold);
  stroke: currentColor; fill: none; stroke-width: 2;
}
.billing-plan.featured .billing-list li svg.ck { color: #ffce5c; }
.billing-list li .muted { color: var(--text-3); }

.billing-cta {
  width: 100%;
  margin-top: 22px;
  padding: 14px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  color: var(--text-0);
  border-radius: var(--r-md);
  cursor: pointer;
  font: 600 13.5px var(--f-ui);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all .2s ease;
  text-decoration: none;
}
.billing-cta:hover:not(:disabled) {
  background: rgba(255,255,255,0.08);
  border-color: rgba(99,169,255,.18);
}
.billing-plan.featured .billing-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffce5c, #f5b942);
  color: #1a1305;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(245,185,66,.32);
}
.billing-plan.featured .billing-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  animation: billingBtnSweep 4.5s ease-in-out infinite;
  pointer-events: none;
}
.billing-plan.featured .billing-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(245,185,66,.42);
}
.billing-cta:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}
.billing-cta .arrow { font-size: 15px; line-height: 1; }
@keyframes billingBtnSweep {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(220%) skewX(-18deg); }
}

/* ===== Banner: checkout cancelado pelo Stripe ===== */
.billing-canceled-banner {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(245,185,66,0.08), rgba(245,185,66,0.02));
  border: 1px solid rgba(245,185,66,0.32);
  border-radius: 14px;
  margin-bottom: 4px;
}
.billing-canceled-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(245,185,66,0.12);
  border: 1px solid rgba(245,185,66,0.28);
  color: #f5b942;
}
.billing-canceled-copy { flex: 1; min-width: 0; }
.billing-canceled-title {
  font-family: var(--f-display, 'Fraunces', serif);
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-0, #f3f7ff);
  line-height: 1.2;
}
.billing-canceled-sub {
  margin-top: 4px;
  font-size: 13px; line-height: 1.5;
  color: var(--text-2, #9aabc4);
}
.billing-canceled-cta {
  flex-shrink: 0;
  padding: 12px 18px;
  border: 1px solid rgba(245,185,66,0.5);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffce5c, #f5b942);
  color: #1a1305;
  font-family: var(--f-ui, sans-serif);
  font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(245,185,66,0.24);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.billing-canceled-cta:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(245,185,66,0.38);
}
.billing-canceled-cta:disabled {
  opacity: .65;
  cursor: not-allowed;
}
@media (max-width: 700px) {
  .billing-canceled-banner { flex-direction: column; align-items: flex-start; padding: 16px 18px; gap: 14px; }
  .billing-canceled-cta { width: 100%; }
}

/* ===== Onboarding Tour (5 passos primeiro login) ===== */
.onboarding-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 30%, rgba(7,16,30,0.78), rgba(0,0,0,0.92));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: onbOverlay .25s ease-out;
}
@keyframes onbOverlay { from { opacity: 0; } to { opacity: 1; } }
.onboarding-card {
  position: relative;
  width: 100%; max-width: 480px;
  background: linear-gradient(180deg, rgba(18,35,64,0.96), rgba(7,16,30,0.98));
  border: 1px solid rgba(245,185,66,0.32);
  border-radius: 18px;
  padding: 36px 32px 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(245,185,66,0.10);
  color: var(--text-0, #f3f7ff);
  animation: onbCardIn .35s cubic-bezier(.2,.86,.4,1);
}
@keyframes onbCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.onboarding-skip {
  position: absolute; top: 14px; right: 18px;
  background: transparent; border: 0;
  color: var(--text-3, #6377a0);
  font-family: var(--f-mono, monospace);
  font-size: 11px; letter-spacing: 0.08em; text-transform: lowercase;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.onboarding-skip:hover { color: var(--text-0, #fff); background: rgba(255,255,255,0.04); }
.onboarding-eyebrow {
  font-family: var(--f-mono, monospace);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--brand-gold, #f5b942);
  margin-bottom: 14px;
}
.onboarding-title {
  font-family: var(--f-display, 'Fraunces', serif);
  font-size: 30px; font-weight: 400;
  letter-spacing: -0.02em; line-height: 1.05;
  margin: 0 0 16px;
  color: var(--text-0, #f3f7ff);
}
.onboarding-title em {
  font-style: italic; font-weight: 300;
  color: var(--brand-gold, #f5b942);
}
.onboarding-body {
  margin: 0 0 24px;
  color: var(--text-2, #9aabc4);
  font-size: 15px;
  line-height: 1.6;
}
.onboarding-progress {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 24px;
}
.onboarding-dot {
  flex: 1; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.10);
  transition: background .25s;
}
.onboarding-dot.done { background: rgba(245,185,66,0.4); }
.onboarding-dot.on {
  background: var(--brand-gold, #f5b942);
  box-shadow: 0 0 8px rgba(245,185,66,0.45);
}
.onboarding-actions {
  display: flex; gap: 10px; align-items: center; justify-content: flex-end;
}
.onboarding-btn {
  padding: 11px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 9px;
  color: var(--text-1, #d6e0f0);
  font: 600 13px var(--f-ui, sans-serif);
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.onboarding-btn:hover {
  border-color: rgba(245,185,66,0.45);
  background: rgba(255,255,255,0.08);
}
.onboarding-btn-primary {
  background: linear-gradient(180deg, #ffce5c, #f5b942);
  color: #1a1305;
  border-color: rgba(245,185,66,0.5);
  box-shadow: 0 8px 22px rgba(245,185,66,0.25);
}
.onboarding-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(245,185,66,0.38);
}
@media (max-width: 560px) {
  .onboarding-card { padding: 28px 22px 22px; border-radius: 14px; }
  .onboarding-title { font-size: 24px; }
  .onboarding-body { font-size: 14px; }
}
.billing-footer-note {
  color: var(--text-3);
  font: 700 11px var(--f-mono);
  letter-spacing: .04em;
  text-align: center;
}
@keyframes billingPulse {
  0% { box-shadow: 0 0 0 0 rgba(54,211,153,.36); }
  70% { box-shadow: 0 0 0 8px rgba(54,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(54,211,153,0); }
}
@media (max-width: 980px) {
  .billing-hero { grid-template-columns: 1fr; padding: 20px; }
  .billing-plans { grid-template-columns: minmax(0, 360px); max-width: 360px; }
  .billing-benefits { grid-template-columns: 1fr 1fr; }
  .billing-hero-panel { grid-template-columns: 1fr 1fr; }
  .billing-plan { padding: 22px 18px; }
  .billing-plan.featured { order: -1; }
  /* Card de plano: enxuga espaçamentos verticais */
  .billing-plan-desc { min-height: 0; margin: 6px 0 0; }
  .billing-price { margin-top: 18px; }
  .billing-price .amount { font-size: 44px; }
  .billing-price .cents { font-size: 18px; }
  .billing-plan-monthly { margin-top: 4px; }
  .billing-list {
    margin-top: 16px;
    padding-top: 16px;
    gap: 9px;
    flex: none;
  }
  .billing-list li { font-size: 13px; }
  .billing-cta { margin-top: 16px; padding: 12px 16px; font-size: 13px; }
}
@media (max-width: 560px) {
  .billing-benefits { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .billing-page { gap: 12px; }
  .billing-hero {
    padding: 16px;
    border-radius: var(--r-lg);
  }
  .billing-title {
    font-size: 28px;
    line-height: 1.02;
  }
  .billing-lead { font-size: 13.5px; }
  .billing-hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .billing-live-row {
    align-items: flex-start;
    flex-direction: column;
    justify-content: flex-start;
    gap: 5px;
    grid-column: auto;
    min-width: 0;
    padding: 10px;
    letter-spacing: .07em;
  }
  .billing-live-row b {
    font-size: 9px;
    line-height: 1.25;
  }
  .billing-score {
    min-width: 0;
    padding: 10px;
  }
  .billing-score span { font-size: 9px; letter-spacing: .09em; }
  .billing-score b { font-size: 18px; letter-spacing: 0; }
  .billing-benefits > div,
  .billing-plan {
    border-radius: var(--r-md);
  }
  .billing-plans {
    margin-top: 220px;
  }
  .billing-plan {
    padding: 17px;
  }
  .billing-plan-top {
    min-height: 0;
    align-items: flex-start;
  }
  .billing-featured-badge { font-size: 9px; }
  .billing-price b { font-size: 38px; }
  .billing-footer-note {
    text-align: left;
    line-height: 1.45;
  }
}

/* ---------- SaaS admin console ---------- */
.admin-page { display: flex; flex-direction: column; gap: 14px; }
.admin-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 4px;
}
.admin-kpis { margin-bottom: 14px; }
.admin-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-grid);
}
.admin-wide { grid-column: 1 / -1; }
.admin-card-body { padding: 16px; }
.admin-stat-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-stat-list > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-1);
  border-radius: 8px;
  background: rgba(18,35,64,0.38);
}
.admin-stat-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-3);
  font: 700 10px var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.admin-stat-list b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-0);
  font: 800 18px var(--f-mono);
  letter-spacing: 0;
}
.admin-toolbar {
  align-items: flex-start;
  gap: 12px;
}
.admin-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, .8fr));
  gap: 8px;
  width: min(820px, 100%);
}
.admin-table { min-width: 980px; }
.admin-users-table { min-width: 1320px; }
.admin-aff-table { min-width: 1500px; }
.admin-table th,
.admin-table td { vertical-align: middle; }
.admin-muted {
  color: var(--text-3) !important;
  font-size: 11px;
}
.admin-cell-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.admin-cell-main b {
  color: var(--text-0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-cell-main span {
  color: var(--text-3);
  font: 700 10.5px var(--f-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font: 800 10px var(--f-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  border: 1px solid var(--line-1);
  background: var(--bg-2);
  color: var(--text-3);
  white-space: nowrap;
}
.admin-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.admin-status.on {
  color: var(--win);
  background: rgba(54,211,153,.10);
  border-color: rgba(54,211,153,.26);
}
.admin-status.off {
  color: var(--loss);
  background: rgba(241,90,90,.10);
  border-color: rgba(241,90,90,.26);
}
.admin-status.warn {
  color: var(--brand-gold);
  background: rgba(245,185,66,.10);
  border-color: rgba(245,185,66,.24);
}
.admin-mini-input {
  width: 100%;
  min-width: 150px;
  padding: 7px 9px;
  border-radius: 8px;
}
.admin-link-input {
  width: 100%;
  min-width: 260px;
  padding: 7px 9px;
  border-radius: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
}
.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.admin-actions .btn {
  min-height: 30px;
  padding: 5px 9px;
  font-size: 11px;
}
.admin-inline-actions { display: flex; gap: 5px; margin-top: 5px; }
.admin-mini-metrics {
  display: grid;
  gap: 4px;
  color: var(--text-2);
  font: 700 10.5px var(--f-mono);
}
.admin-meta {
  max-width: 380px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-3) !important;
}
@media (max-width: 980px) {
  .admin-split { grid-template-columns: 1fr; }
  .admin-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .admin-filters { grid-template-columns: 1fr; }
  .admin-stat-list { grid-template-columns: 1fr; }
  .admin-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .admin-tabs .chip { flex: 0 0 auto; }
}

/* ---------- SaaS auth screen (login/signup only) ---------- */
.saas-login-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 24px 24px 70px;
  background:
    radial-gradient(circle at 72% 20%, rgba(44,107,255,0.22), transparent 30%),
    radial-gradient(circle at 70% 78%, rgba(245,185,66,0.18), transparent 32%),
    linear-gradient(90deg, rgba(7,16,30,0.98) 0%, rgba(7,16,30,0.78) 42%, rgba(7,16,30,0.42) 100%),
    var(--bg-0);
}
.saas-login-brand {
  position: absolute;
  top: 28px;
  left: 34px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}
.saas-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  background: #000;
}
.saas-brand-name { color: var(--text-0); font-weight: 800; letter-spacing: 0.01em; }
.saas-brand-sub {
  color: var(--text-3);
  font: 700 10px var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.saas-login-page > .card {
  position: relative;
  z-index: 5;
  border-radius: 24px !important;
  border: 1px solid var(--line-2) !important;
  background: linear-gradient(180deg, rgba(12,23,41,.94), rgba(7,16,30,.94)) !important;
  box-shadow: 0 30px 90px rgba(0,0,0,.48) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.saas-login-page > .card .card-head { border-bottom: 0; padding: 34px 36px 0; }
.saas-login-page > .card .card-title { display: block; color: transparent; font-size: 0; }
.saas-login-page > .card .card-title::before {
  content: "Area do assinante";
  display: block;
  margin-bottom: 10px;
  color: var(--brand-gold);
  font: 800 10px var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.saas-login-page > .card .card-title::after {
  content: "Boas vindas ao FIFA EDGE.";
  display: block;
  color: var(--text-0);
  font: 800 34px/1.04 var(--f-ui);
  letter-spacing: -0.01em;
}
.saas-login-page > .card .card-body { padding: 14px 36px 36px; }
.saas-login-page > .card .card-body::before {
  content: "Acesse sua conta para acompanhar sinais, analisar H2H, abrir oportunidades na Stake e medir sua performance com dados em tempo real.";
  display: block;
  margin: 0 0 22px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}
.saas-login-page .seg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
}
.saas-login-page .seg-tabs button {
  height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font: 700 11px var(--f-mono);
  text-transform: uppercase;
  cursor: pointer;
}
.saas-login-page .seg-tabs button.on {
  background: var(--brand-gold-bg);
  color: var(--brand-gold);
  box-shadow: inset 0 0 0 1px rgba(245,185,66,0.20);
}
.saas-login-page .seg-tabs .seg-tab-link {
  height: 34px;
  display: grid; place-items: center;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-2);
  font: 700 11px var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color .15s, background .15s;
}
.saas-login-page .seg-tabs .seg-tab-link:hover {
  color: var(--text-0);
  background: rgba(255,255,255,0.03);
}
.saas-login-page .auth-err {
  font-size: 13px;
  color: var(--loss, #f15a5a);
  padding: 8px 10px;
  background: rgba(241,90,90,0.08);
  border: 1px solid rgba(241,90,90,0.25);
  border-radius: 8px;
}
.saas-login-page .auth-info {
  font-size: 13px;
  color: var(--win, #36d399);
  padding: 8px 10px;
  background: rgba(54,211,153,0.08);
  border: 1px solid rgba(54,211,153,0.25);
  border-radius: 8px;
}
.saas-login-page .auth-ref-applied {
  justify-self: start;
  margin-top: -2px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(54,211,153,0.22);
  background: rgba(54,211,153,0.08);
  color: var(--win, #36d399);
  font: 700 10px var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  pointer-events: none;
}
.saas-login-page .auth-alt {
  display: block; text-align: center;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.saas-login-page .auth-alt strong {
  color: var(--brand-gold, #f5b942);
  font-weight: 600;
  margin-left: 4px;
}
.saas-login-page .auth-alt:hover strong {
  text-decoration: underline;
}
.saas-login-page .input {
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(18,35,64,.74);
  color: var(--text-0);
  font-size: 16px;
}
.saas-login-page .btn {
  min-height: 44px;
  border: 0;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--brand-gold), var(--brand-gold-dim));
  color: #1a1208;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(245,185,66,0.18);
}
.saas-login-page .btn:disabled { opacity: 0.7; cursor: wait; }
.saas-login-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.saas-float-card {
  position: absolute;
  border: 1px solid var(--line-2);
  background: rgba(18,35,64,.78);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.26);
  backdrop-filter: blur(8px);
  animation: saasFloatBlock 4.8s ease-in-out infinite;
}
.saas-float-card span {
  display: block;
  color: var(--text-3);
  font: 700 10px var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.saas-float-card b { display: block; margin-top: 3px; color: var(--text-0); font: 800 18px var(--f-mono); }
.saas-float-card.gold b { color: var(--brand-gold); }
.saas-float-card:nth-child(1) { top: 19%; left: 12%; animation-delay: .1s; }
.saas-float-card:nth-child(2) { top: 18%; right: 13%; animation-delay: .8s; }
.saas-float-card:nth-child(3) { bottom: 22%; right: 16%; animation-delay: 1.4s; }
.saas-notify-queue {
  position: absolute;
  left: calc(50% + 238px);
  top: 50%;
  width: 316px;
  height: 360px;
  transform: translateY(-50%);
}
.saas-notify {
  position: absolute;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(12,23,41,.86);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  opacity: 0;
  transform: translateX(34px) translateY(306px) scale(.98);
  animation: saasNotifyQueue 10.8s cubic-bezier(.2,.8,.2,1) infinite;
}
.saas-notify:nth-child(2n) { margin-left: 20px; }
.saas-notify:nth-child(3n) { margin-left: 8px; }
.saas-notify:nth-child(1) { animation-delay: 0s; }
.saas-notify:nth-child(2) { animation-delay: 1.8s; }
.saas-notify:nth-child(3) { animation-delay: 3.6s; }
.saas-notify:nth-child(4) { animation-delay: 5.4s; }
.saas-notify:nth-child(5) { animation-delay: 7.2s; }
.saas-notify:nth-child(6) { animation-delay: 9s; }
.saas-notify img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(245,185,66,0.25);
}
.saas-notify b { display: block; color: var(--text-0); font-size: 12px; }
.saas-notify span { display: block; color: var(--text-2); font-size: 11px; }
.saas-notify time { color: var(--text-3); font: 700 9px var(--f-mono); }
.saas-benefit-marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 48px;
  border-top: 1px solid var(--line-1);
  background: rgba(7,16,30,.82);
  overflow: hidden;
}
.saas-benefit-track {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  min-width: 200%;
  animation: saasMarqueeLeft 28s linear infinite;
  color: var(--text-2);
  font: 700 10px var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.saas-benefit-track span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.saas-benefit-track span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand-gold);
  box-shadow: 0 0 10px rgba(245,185,66,.5);
}
.saas-benefit-track span:nth-child(3n)::before {
  background: var(--brand-blue-2);
  box-shadow: 0 0 10px rgba(77,134,255,.5);
}
@keyframes saasFloatBlock {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes saasNotifyQueue {
  0% { opacity: 0; transform: translateX(34px) translateY(306px) scale(.98); box-shadow: 0 12px 28px rgba(0,0,0,.28); }
  7% { opacity: 1; transform: translateX(0) translateY(306px) scale(1); box-shadow: 0 16px 40px rgba(245,185,66,.13), 0 0 0 1px rgba(245,185,66,.10); }
  24% { opacity: 1; transform: translateX(0) translateY(204px) scale(1); }
  41% { opacity: 1; transform: translateX(0) translateY(102px) scale(1); }
  58% { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
  76% { opacity: 1; transform: translateX(0) translateY(0) scale(1); }
  88%, 100% { opacity: 0; transform: translateX(-12px) translateY(-28px) scale(.98); box-shadow: 0 12px 28px rgba(0,0,0,.28); }
}
@keyframes saasMarqueeLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 860px) {
  .saas-login-page { padding: 76px 14px 64px; overflow: hidden; }
  .saas-login-brand { top: 18px; left: 18px; }
  .saas-login-page > .card { width: min(100%, 420px) !important; max-width: 420px !important; }
  .saas-login-page > .card .card-head { padding: 28px 24px 0; }
  .saas-login-page > .card .card-title::after { font-size: 28px; }
  .saas-login-page > .card .card-body { padding: 14px 24px 28px; }
  .saas-login-fx { display: none; }
  .saas-benefit-marquee { height: 44px; }
}
