/* ==========================================================================
   JOCKEY CLUB DE PELOTAS — Design System
   Heritage red / warm cream / antique gold — estância rustic-elegant
   ========================================================================== */

/* ------------------------------------------------------------------ Tokens */
:root {
  color-scheme: dark;
  /* ---- Cyberpunk-Brazilian neon palette ---- */
  --neon-green: #19F0A0;         /* Brazil green → cyber emerald (primary) */
  --neon-cyan:  #2BE3FF;         /* Brazil blue → electric cyan (secondary) */
  --neon-gold:  #FFD84D;         /* Brazil yellow → neon amber (money/prize) */
  --neon-pink:  #FF2E88;         /* magenta → live / hot / danger */
  --neon-purple:#B14BFF;

  /* Core aliases used across components */
  --gold: var(--neon-gold);
  --gold-2: #E6B62E;
  --gold-light: #FFE98A;
  --action: var(--neon-green);
  --action-dark: #12C083;
  --red: var(--neon-pink);       /* "red" = live/hot magenta */
  --red-deep: #14103A;           /* deep purple-blue for feature gradients */
  --red-deep-2: #0C0A26;

  /* Legacy brand aliases → neon */
  --brand-primary: var(--neon-green);
  --brand-primary-dark: #0E1230;
  --brand-primary-light: #5CFFC2;
  --brand-secondary: #10162C;
  --brand-accent: var(--neon-gold);
  --brand-accent-dark: var(--gold-2);
  --brand-accent-light: var(--gold-light);

  /* Surfaces — deep cyber night (blue-black) */
  --bg: #060814;                 /* near-black navy */
  --bg-alt: #0A0E1F;
  --surface: #0E1428;            /* panels */
  --surface-2: #151D38;
  --surface-tint: #101830;

  /* Text — cool white / blue-grey */
  --text: #E7EEFF;
  --text-muted: #8494BE;
  --text-on-dark: #E7EEFF;
  --text-on-dark-muted: #9AA8D0;

  /* Feedback */
  --success: var(--neon-green);
  --danger: #FF4D6D;
  --warning: var(--neon-gold);
  --info: var(--neon-cyan);

  /* Borders & lines */
  --border: #1E2A4E;
  --border-strong: #2E3E6E;
  --line-leather: #2E3E6E;

  /* Elevation + neon glows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.5);
  --shadow-md: 0 8px 24px rgba(0,0,0,.55);
  --shadow-lg: 0 20px 55px rgba(0,0,0,.65);
  --glow-gold: 0 0 0 1px rgba(255,216,77,.4), 0 0 18px rgba(255,216,77,.32);
  --glow-green: 0 0 0 1px rgba(25,240,160,.4), 0 0 18px rgba(25,240,160,.32);
  --glow-cyan: 0 0 0 1px rgba(43,227,255,.4), 0 0 18px rgba(43,227,255,.3);
  --glow-pink: 0 0 0 1px rgba(255,46,136,.45), 0 0 18px rgba(255,46,136,.35);
  --glow-red: var(--glow-pink);

  /* Radii — sharper for HUD feel */
  --radius-sm: 3px;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-pill: 999px;
  /* angular HUD clip (cut top-left & bottom-right corners) */
  --clip-hud: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);

  /* Typography */
  --font-head: "Orbitron", "Rajdhani", system-ui, sans-serif;
  --font-body: "Rajdhani", "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Share Tech Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1200px;
  --header-h: 68px;
  --space: 1rem;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ------------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16.5px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}
/* Cyberpunk neon grid + vignette backdrop */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(25,240,160,.10), transparent 60%),
    radial-gradient(1000px 700px at 10% 110%, rgba(43,227,255,.09), transparent 60%),
    linear-gradient(var(--bg), var(--bg));
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(43,227,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,227,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0, transparent 85%);
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--neon-cyan); text-decoration: none; transition: color .15s var(--ease), text-shadow .15s var(--ease); }
a:not(.btn):hover { color: #7af0ff; text-shadow: 0 0 8px rgba(43,227,255,.5); }
/* buttons keep their own text colour on hover (link hover must not override) */
.btn--primary:hover, .btn--primary:focus { color: #041a12; }
.btn--gold:hover, .btn--gold:focus { color: #12100a; }
.btn--action:hover, .btn--action:focus { color: #041a12; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul, ol { padding-left: 1.25rem; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.12; color: var(--text); font-weight: 700; letter-spacing: .02em; }
h1, h2 { text-transform: uppercase; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: .03em; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; font-family: var(--font-body); letter-spacing: .02em; }
strong { color: #fff; }
:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 2px; }

/* Cyberpunk utility helpers */
.mono { font-family: var(--font-mono); }
.neon-green { color: var(--neon-green); text-shadow: 0 0 10px rgba(25,240,160,.45); }
.neon-cyan { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(43,227,255,.45); }
.neon-gold { color: var(--neon-gold); text-shadow: 0 0 10px rgba(255,216,77,.45); }
.hud { clip-path: var(--clip-hud); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
main { flex: 1 0 auto; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--tint { background: var(--bg-alt); position: relative; }
.content-figure { margin: 0 0 1.6rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.content-figure img { width: 100%; height: auto; display: block; }
.content-figure figcaption { background: var(--surface-tint); color: var(--text-muted); font-size: .85rem; padding: .6rem .9rem; text-align: center; font-style: italic; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 1000;
  background: var(--brand-accent); color: var(--brand-primary-dark);
  padding: .5rem 1rem; border-radius: var(--radius-sm); font-weight: 800;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 8px; }

/* ------------------------------------------------------------- Text helpers */
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-head); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; font-size: .82rem; color: var(--gold);
}
/* Inline SVG icon — vertically centred with adjacent text */
.ico { display: inline-block; vertical-align: -0.18em; flex: none; }
.reuniao-card__meta .ico { vertical-align: -0.2em; color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--text-muted); }
.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.gold { color: var(--gold); }
.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-muted); margin-top: .5rem; font-size: 1.05rem; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .96rem;
  text-transform: uppercase; letter-spacing: .04em;
  padding: .72rem 1.5rem; border-radius: var(--radius-sm);
  border: 2px solid transparent; transition: all .16s var(--ease);
  text-align: center; white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); box-shadow: var(--glow-red); }
.btn--primary:hover { background: #ff2b48; border-color: #ff2b48; transform: translateY(-1px); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: #2A0E06;
  border-color: var(--gold); box-shadow: var(--glow-gold);
}
.btn--gold:hover { background: linear-gradient(180deg, #ffe08a, var(--gold-light)); transform: translateY(-1px); }
.btn--action { background: var(--action); color: #04240F; border-color: var(--action); box-shadow: 0 8px 24px rgba(24,201,100,.32); }
.btn--action:hover { background: #21e074; transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: #2A0E06; }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); background: rgba(255,197,49,.06); }
.btn--on-dark { background: rgba(255,255,255,.06); color: var(--text-on-dark); border-color: rgba(246,237,234,.28); }
.btn--on-dark:hover { background: rgba(255,255,255,.12); border-color: var(--gold); color: var(--gold-light); }
.btn--block { width: 100%; }
.btn--sm { padding: .5rem 1rem; font-size: .82rem; }
.btn--lg { padding: .95rem 2rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ------------------------------------------------------------ Badges/pills */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-weight: 800; font-size: .72rem; letter-spacing: .04em;
  padding: .28rem .6rem; border-radius: var(--radius-pill); line-height: 1;
}
.badge-18 {
  background: var(--brand-accent); color: var(--brand-primary-dark);
  border: 2px solid var(--brand-primary-dark); font-size: .74rem;
  padding: .2rem .5rem; border-radius: 50%; width: 2.1rem; height: 2.1rem;
  justify-content: center; font-weight: 900; letter-spacing: 0; flex: none;
}
.badge--gold { background: rgba(255,197,49,.14); color: var(--gold); border: 1px solid rgba(255,197,49,.4); text-transform: uppercase; letter-spacing: .04em; }
.badge--red { background: rgba(225,29,58,.16); color: #ff7385; border: 1px solid rgba(225,29,58,.4); text-transform: uppercase; letter-spacing: .04em; }
.badge--live {
  background: var(--red); color: #fff; font-weight: 700;
  padding: .3rem .7rem; text-transform: uppercase; box-shadow: var(--glow-red);
}
.badge--live::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: #fff; animation: pulse 1.1s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.badge--status { text-transform: uppercase; font-size: .66rem; }
.badge--pending { background: rgba(230,138,0,.16); color: var(--warning); }
.badge--won { background: rgba(46,125,50,.16); color: var(--success); }
.badge--lost { background: rgba(198,40,40,.14); color: var(--danger); }

/* --------------------------------------------------------------- Cards */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card--pad { padding: 1.5rem; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__body { padding: 1.35rem; }
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Decorative leather/rope top border for heritage cards */
.card--heritage { position: relative; }
.card--heritage::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: repeating-linear-gradient(90deg, var(--brand-accent) 0 10px, var(--brand-primary) 10px 20px);
  opacity: .85;
}

/* -------------------------------------------------------- Promo bonus bar */
.promo-bar {
  background: linear-gradient(90deg, var(--red) 0%, #9a1226 100%);
  color: #fff; font-size: .84rem; position: relative; z-index: 90;
}
.promo-bar__inner { display: flex; align-items: center; gap: .8rem; padding-block: .5rem; flex-wrap: wrap; }
.promo-bar__tag {
  background: var(--gold); color: #2A0E06; font-family: var(--font-head); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; padding: .2rem .6rem; border-radius: var(--radius-sm); flex: none;
}
.promo-bar__txt { flex: 1; min-width: 200px; }
.promo-bar__txt strong { color: #fff; }
.promo-bar__mut { color: rgba(255,255,255,.8); font-size: .78rem; }
.promo-bar__cta {
  background: #fff; color: var(--red); font-family: var(--font-head); text-transform: uppercase;
  font-weight: 600; font-size: .78rem; letter-spacing: .04em; padding: .35rem .85rem; border-radius: var(--radius-sm); flex: none;
}
.promo-bar__cta:hover { background: var(--gold); color: #2A0E06; }
.promo-bar__close { color: rgba(255,255,255,.75); font-size: 1rem; padding: .1rem .3rem; flex: none; }
.promo-bar__close:hover { color: #fff; }

/* -------------------------------------------------------- Live odds ticker */
.odds-ticker {
  display: flex; align-items: stretch; background: #0C0608; border-top: 1px solid var(--border);
  overflow: hidden; height: 34px;
}
.odds-ticker__badge {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  background: var(--red); color: #fff; font-family: var(--font-head); text-transform: uppercase;
  font-size: .72rem; letter-spacing: .06em; padding: 0 .8rem; font-weight: 600;
}
.odds-ticker__live { width: .5rem; height: .5rem; border-radius: 50%; background: #fff; animation: pulse 1.1s infinite; }
.odds-ticker__mask { overflow: hidden; flex: 1; display: flex; align-items: center; }
.odds-ticker__track { display: inline-flex; align-items: center; white-space: nowrap; animation: ticker 60s linear infinite; will-change: transform; }
.odds-ticker:hover .odds-ticker__track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: center; gap: .5rem; padding: 0 .6rem; color: var(--text-muted); font-size: .82rem; }
.tick__meta { color: var(--gold); font-weight: 600; text-transform: uppercase; font-size: .74rem; letter-spacing: .03em; }
.tick__run { color: var(--text); }
.tick__odd { font-family: var(--font-head); font-weight: 700; color: #04240F; background: var(--action); padding: .05rem .4rem; border-radius: 4px; font-style: normal; margin-left: .2rem; }
.tick__sep { color: var(--border-strong); padding: 0 .3rem; }

/* -------------------------------------------------------- Mobile bet-slip FAB */
.betslip-fab {
  display: none; position: fixed; right: 1rem; bottom: 1rem; z-index: 250;
  align-items: center; gap: .5rem; background: var(--gold); color: #2A0E06;
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  padding: .7rem 1.1rem; border-radius: var(--radius-pill); box-shadow: var(--glow-gold);
}
.betslip-fab__count {
  background: var(--red); color: #fff; font-size: .78rem; min-width: 1.4rem; height: 1.4rem;
  border-radius: var(--radius-pill); display: grid; place-items: center; padding: 0 .3rem;
}
.betslip-fab.has-items { animation: fabpop .3s var(--ease); }
@keyframes fabpop { 0% { transform: scale(.85); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

/* ----------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, #1C1016 0%, #150C10 100%);
  color: var(--text-on-dark);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0,0,0,.5);
}
.site-header__bar {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h); padding-block: .5rem;
  /* aligns with content, promo bar and ticker (same 1200 container) */
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text-on-dark); flex: none; }
.brand:hover { color: #fff; }
.brand__badge {
  width: auto; height: 27px; flex: none;
  filter: drop-shadow(0 0 5px rgba(25,240,160,.55));
  transition: filter .35s var(--ease);
  animation: brand-glow 2.6s ease-in-out infinite;
}
.brand:hover .brand__badge { filter: drop-shadow(0 0 11px rgba(43,227,255,.8)); }
/* neon glow pulse of the whole mark */
@keyframes brand-glow { 0%,100% { filter: drop-shadow(0 0 5px rgba(25,240,160,.5)); } 50% { filter: drop-shadow(0 0 10px rgba(43,227,255,.7)); } }
/* galloping horses bob (staggered) */
.lh { transform-box: fill-box; transform-origin: center; }
@keyframes gallop-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1.4px); } }
.lh1 { animation: gallop-bob .5s ease-in-out infinite; }
.lh2 { animation: gallop-bob .5s ease-in-out infinite .12s; }
.lh3 { animation: gallop-bob .5s ease-in-out infinite .24s; }
/* speed lines streak */
@keyframes brand-speed { 0% { opacity: .1; transform: translateX(-3px); } 50% { opacity: .7; } 100% { opacity: .1; transform: translateX(5px); } }
.brand__speed line { animation: brand-speed 1.1s linear infinite; }
.brand__speed line:nth-child(2) { animation-delay: .18s; }
.brand__speed line:nth-child(3) { animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) {
  .brand__badge, .lh, .lh1, .lh2, .lh3, .brand__speed line { animation: none !important; }
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: #fff; letter-spacing: .06em; text-transform: uppercase; }
.brand__name em { color: var(--gold); font-style: normal; }
.brand__sub { font-size: .58rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 0; margin-left: .3rem; flex-wrap: nowrap; }
.main-nav a {
  color: var(--text-on-dark); font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .02em;
  padding: .5rem .6rem; border-radius: var(--radius-sm); position: relative; white-space: nowrap;
}
.main-nav a:hover { color: var(--brand-accent-light); background: rgba(0,0,0,.15); }
.main-nav a[aria-current="page"] { color: var(--brand-accent-light); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 2px;
  height: 2px; background: var(--brand-accent);
}
.header-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
/* Expanding header search (grows from the icon) + live results dropdown */
.header-search { position: relative; width: 40px; height: 40px; flex: none; }
.header-search__toggle { position: absolute; right: 0; top: 0; z-index: 2; }
.header-search.open .header-search__toggle { color: var(--gold); border-color: var(--gold); }
.header-search__input {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 0; padding: 0; opacity: 0; pointer-events: none;
  height: 40px; border-radius: var(--radius-pill); border: 1px solid transparent;
  background: #0C0608; color: #fff; font-size: .88rem; z-index: 1;
  transition: width .28s var(--ease), opacity .2s var(--ease), padding .28s var(--ease), border-color .2s;
}
.header-search.open .header-search__input {
  width: min(300px, calc(100vw - 96px)); opacity: 1; pointer-events: auto;
  padding: 0 44px 0 1rem; border-color: var(--gold); box-shadow: var(--glow-gold);
}
.header-search__input::placeholder { color: var(--text-on-dark-muted); }
.header-search__input:focus { outline: none; }
.header-search__results {
  position: absolute; right: 0; top: calc(100% + .5rem); width: min(340px, calc(100vw - 32px)); z-index: 130;
  background: var(--surface); border: 1px solid var(--gold); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .4rem; max-height: 70vh; overflow-y: auto;
  animation: menu-in .16s var(--ease);
}
.header-search__group {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  font-size: .68rem; color: var(--gold); padding: .5rem .7rem .25rem;
}
.header-search__item { display: flex; flex-direction: column; padding: .5rem .7rem; border-radius: var(--radius-sm); }
.header-search__item:hover { background: var(--surface-2); }
.header-search__label { color: var(--text); font-weight: 600; font-size: .9rem; }
.header-search__item:hover .header-search__label { color: var(--gold); }
.header-search__sub { color: var(--text-muted); font-size: .76rem; }
.header-search__empty { padding: 1rem .8rem; color: var(--text-muted); font-size: .88rem; }
.header-search__all {
  display: block; text-align: center; margin-top: .3rem; padding: .6rem; border-top: 1px solid var(--border);
  font-family: var(--font-head); text-transform: uppercase; font-size: .78rem; letter-spacing: .03em; color: var(--gold);
}
.header-search__all:hover { background: var(--surface-2); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: var(--text-on-dark);
  border: 1px solid rgba(251,241,221,.25);
}
.icon-btn:hover { background: rgba(0,0,0,.18); color: var(--brand-accent-light); }
.header-balance {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1;
  padding: .2rem .7rem; background: rgba(0,0,0,.2); border-radius: var(--radius-sm);
}
/* Account dropdown menu */
.account-menu { position: relative; flex: none; }
.account-menu__btn {
  display: inline-flex; align-items: center; gap: .25rem; padding: .25rem .4rem .25rem .3rem;
  border-radius: var(--radius-pill); border: 1px solid rgba(246,237,234,.22); color: var(--text-on-dark);
  transition: all .15s var(--ease);
}
.account-menu__btn:hover, .account-menu.open .account-menu__btn { border-color: var(--gold); }
.account-menu__avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #2A0E06; font-family: var(--font-head); font-weight: 700; font-size: .95rem;
}
.account-menu__caret { transition: transform .2s var(--ease); }
.account-menu.open .account-menu__caret { transform: rotate(180deg); }
.account-menu__panel {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 230px; z-index: 120;
  background: var(--surface); border: 1px solid var(--gold); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .4rem; overflow: hidden;
  animation: menu-in .16s var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.account-menu__head { padding: .6rem .7rem .7rem; border-bottom: 1px solid var(--border); margin-bottom: .3rem; }
.account-menu__head strong { display: block; color: var(--text); font-size: .95rem; }
.account-menu__head small { color: var(--text-muted); font-size: .8rem; }
.account-menu__head small span { color: var(--gold); font-weight: 700; }
.account-menu__item {
  display: block; width: 100%; text-align: left; padding: .6rem .7rem; border-radius: var(--radius-sm);
  color: var(--text); font-size: .9rem; font-weight: 500;
}
.account-menu__item:hover { background: var(--surface-2); color: var(--gold); }
.account-menu__item--exit { color: var(--danger); border-top: 1px solid var(--border); margin-top: .3rem; }
.account-menu__item--exit:hover { background: rgba(255,77,94,.1); color: var(--danger); }
.header-balance small { font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-on-dark-muted); }
.header-balance strong { color: var(--brand-accent-light); font-size: 1rem; }

.nav-toggle { display: none; }
.header-cta { display: flex; gap: .5rem; }
.nav-mobile-actions { display: none; }
.nav-mobile-balance {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(0,0,0,.25); border-radius: var(--radius-sm); padding: .6rem .9rem; margin-bottom: .3rem;
}
.nav-mobile-balance span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-on-dark-muted); }
.nav-mobile-balance strong { color: var(--brand-accent-light); font-size: 1.1rem; }

/* ----------------------------------------------------------------- Footer */
.site-footer {
  background: var(--brand-primary-dark); color: var(--text-on-dark);
  border-top: 4px solid var(--brand-accent); margin-top: auto;
}
.site-footer a { color: var(--text-on-dark-muted); }
.site-footer a:hover { color: var(--brand-accent-light); }
.footer-top {
  display: grid; gap: 2rem; padding-block: 3rem 2rem;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.footer-col h4 { color: var(--brand-accent-light); font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul a { font-size: .9rem; }
.footer-about p { color: var(--text-on-dark-muted); font-size: .9rem; margin-top: .8rem; }
.footer-about address { font-style: normal; color: var(--text-on-dark-muted); font-size: .85rem; margin-top: 1rem; line-height: 1.7; }
.footer-badges { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.reg-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(251,241,221,.08); border: 1px solid rgba(251,241,221,.2);
  border-radius: var(--radius-sm); padding: .4rem .7rem; font-size: .72rem;
  font-weight: 700; color: var(--text-on-dark-muted);
}
.reg-badge__ico { flex: none; }
.footer-partners {
  border-top: 1px solid rgba(251,241,221,.15); padding-block: 1.6rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.footer-partners__label {
  font-family: var(--font-head); color: var(--brand-accent-light); font-size: .95rem;
  font-weight: 700; flex: none;
}
.reg-badge-img { height: 34px; width: auto; border-radius: 3px; border: 1px solid rgba(43,227,255,.3); background: #fff; padding: 2px; }
.footer-channels { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.footer-channel {
  font-family: var(--font-mono); font-size: .82rem; color: var(--neon-green);
  border: 1px solid rgba(25,240,160,.4); border-radius: 3px; padding: .35rem .7rem;
  background: rgba(25,240,160,.06); box-shadow: 0 0 10px rgba(25,240,160,.15);
}
.footer-partners__logos { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footer-partners__logos img {
  width: 64px; height: 64px; object-fit: contain; background: #fff;
  border-radius: var(--radius); padding: .5rem; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease);
}
.footer-partners__logos img:hover { transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(251,241,221,.15); padding-block: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--text-on-dark-muted);
}
.footer-18 { display: flex; align-items: center; gap: .7rem; max-width: 640px; }
.footer-18 p { font-size: .8rem; }

/* --------------------------------------------------------------- Hero */
.hero {
  position: relative; color: var(--text-on-dark); overflow: hidden;
  background:
    linear-gradient(100deg, rgba(78,14,25,.96) 0%, rgba(78,14,25,.86) 42%, rgba(110,20,35,.6) 72%, rgba(110,20,35,.4) 100%),
    url("../img/hero.webp") center 30% / cover no-repeat,
    var(--brand-primary);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: url("../img/hero-pattern.svg");
  background-size: 380px;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { color: #fff; margin-bottom: 1.1rem; font-size: clamp(2.3rem, 5vw, 4rem); text-shadow: 0 2px 20px rgba(0,0,0,.4); }
.hero h1 .gold { color: var(--gold); }
.hero__art { display: none; }
/* Hero quick-bet card */
.hero-bet {
  background: rgba(16,8,11,.8); backdrop-filter: blur(6px);
  border: 1px solid var(--gold); border-radius: var(--radius-lg); box-shadow: var(--glow-gold); overflow: hidden;
}
.hero-bet__head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); background: rgba(0,0,0,.3); }
.hero-bet__head h3 { margin: 0; font-size: 1.05rem; color: var(--gold); text-transform: uppercase; }
.hero-bet__body { padding: 1rem 1.1rem; }
.hero-bet__pareo { color: #fff; font-weight: 600; margin-bottom: .2rem; font-family: var(--font-head); font-size: 1.1rem; }
.hero-bet__meta { color: var(--text-on-dark-muted); font-size: .82rem; margin-bottom: .9rem; }
.hero-bet__runner { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; border-bottom: 1px dashed var(--border); }
.hero-bet__runner:last-of-type { border-bottom: none; }
.hero-bet__runner .horse-num { width: 1.7rem; height: 1.7rem; font-size: .8rem; }
.hero-bet__rname { flex: 1; min-width: 0; color: var(--text); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-bet__disc { font-size: .68rem; color: var(--text-on-dark-muted); margin: .7rem 0 0; line-height: 1.4; }
.hero-bet__foot { padding: .3rem 1.1rem 1.1rem; }
.hero__lead { color: var(--text-on-dark-muted); font-size: 1.2rem; max-width: 42ch; margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.4rem; }
.hero__note { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--text-on-dark-muted); }

/* --------------------------------------------------------- Countdown module */
.gp-feature {
  background: linear-gradient(120deg, var(--red-deep) 0%, var(--red-deep-2) 100%);
  color: var(--text-on-dark); border-radius: var(--radius-lg);
  border: 1px solid var(--gold); overflow: hidden; position: relative; box-shadow: var(--shadow-lg);
}
.gp-feature__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); }
.gp-feature h2 { color: #fff; }
.gp-feature h2 .gold { color: var(--gold); }
.gp-feature p { color: var(--text-on-dark-muted); }
.crown { color: var(--gold); }
.countdown { display: flex; gap: .7rem; margin-top: 1.2rem; }
.countdown__unit {
  background: rgba(0,0,0,.25); border: 1px solid var(--brand-accent);
  border-radius: var(--radius); padding: .8rem .5rem; min-width: 68px; text-align: center;
}
.gp-photo { margin: 0; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--brand-accent); box-shadow: var(--shadow-lg); }
.gp-photo img { width: 100%; height: 100%; max-height: 320px; object-fit: cover; display: block; }
.gp-photo figcaption {
  background: rgba(0,0,0,.35); color: var(--brand-accent-light); font-weight: 700;
  font-size: .82rem; text-align: center; padding: .5rem .8rem; letter-spacing: .02em;
}
.countdown__num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--brand-accent-light); line-height: 1; }
.countdown__label { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-on-dark-muted); margin-top: .3rem; }

/* ------------------------------------------------------- Reunião / race cards */
.reuniao-card { display: flex; flex-direction: column; }
.reuniao-card__head {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  color: var(--text-on-dark); border-bottom: 2px solid var(--gold);
  padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center;
}
.reuniao-card__date { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--gold); }
.reuniao-card__body { padding: 1.25rem; flex: 1; }
.reuniao-card__meta { display: flex; gap: 1.2rem; color: var(--text-muted); font-size: .88rem; margin-bottom: 1rem; flex-wrap: wrap; }
.reuniao-card__meta span { display: inline-flex; align-items: center; gap: .35rem; }

/* --------------------------------------------------------------- Tiles */
.tile {
  display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  text-align: left; height: 100%; transition: all .2s var(--ease); color: var(--text);
  position: relative; overflow: hidden;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--glow-gold); border-color: var(--gold); color: var(--text); }
.tile__icon {
  width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center;
  background: rgba(255,197,49,.1); color: var(--gold);
}
.tile__icon svg { width: 28px; height: 28px; }
.tile:hover .tile__icon { background: var(--gold); color: #2A0E06; }
.tile h3 { font-size: 1.2rem; }
.tile p { color: var(--text-muted); font-size: .9rem; }
.tile__arrow { margin-top: auto; color: var(--gold); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-head); display: inline-flex; align-items: center; gap: .3rem; }

/* --------------------------------------------------------------- Tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.race-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.race-table caption { text-align: left; padding: 1rem 1.25rem; font-family: var(--font-head); font-weight: 600; color: var(--gold); background: var(--surface-2); font-size: 1.1rem; text-transform: uppercase; }
.race-table th, .race-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.race-table thead th { background: var(--surface-2); color: var(--gold); font-family: var(--font-head); font-weight: 500; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.race-table tbody tr:hover { background: rgba(255,197,49,.05); }
.race-table tbody tr:last-child td { border-bottom: none; }
.race-table td.num, .race-table th.num { text-align: center; }
.horse-num {
  display: inline-grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: var(--radius-sm); background: var(--red); color: #fff; font-weight: 700; font-size: .9rem; font-family: var(--font-head);
}
.horse-name { font-weight: 600; color: var(--text); }
.odds-pill {
  display: inline-block; min-width: 3.4rem; font-family: var(--font-head); font-weight: 700;
  background: var(--action); color: #04240F; padding: .4rem .7rem; border-radius: var(--radius-sm);
  font-size: 1rem; transition: all .14s var(--ease); border: 1px solid transparent;
}
.odds-pill:hover { background: #21e074; color: #04240F; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(24,201,100,.35); }
.tag-fav {
  display: inline-block; background: rgba(255,197,49,.16); color: var(--gold); border: 1px solid rgba(255,197,49,.4);
  font-family: var(--font-head); text-transform: uppercase; font-size: .62rem; letter-spacing: .05em;
  padding: .08rem .4rem; border-radius: 4px; vertical-align: middle; margin-left: .3rem;
}

/* ------------------------------------------------------- Tabs & filters */
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.tab {
  padding: .7rem 1.1rem; font-weight: 800; color: var(--text-muted);
  border-bottom: 3px solid transparent; margin-bottom: -2px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
.tab { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; }
.tab:hover { color: var(--gold); background: rgba(255,197,49,.05); }
.tab[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }
.filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; margin-bottom: 1.5rem; }
.chip {
  padding: .4rem .9rem; border-radius: var(--radius-pill); border: 1px solid var(--border-strong);
  background: var(--surface-2); font-weight: 600; font-size: .85rem; color: var(--text-muted);
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); color: #2A0E06; border-color: var(--gold); }

/* --------------------------------------------------------------- Forms */
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; margin-bottom: .4rem; font-size: .92rem; }
.field .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; padding: .72rem .9rem; border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font-size: .95rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); opacity: .7; }
.select option { background: var(--surface-2); color: var(--text); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,197,49,.16);
}
.textarea { min-height: 130px; resize: vertical; }
.field__hint { font-size: .8rem; color: var(--text-muted); margin-top: .35rem; }
.field__error { font-size: .82rem; color: var(--danger); margin-top: .35rem; font-weight: 700; display: none; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field.has-error .field__error { display: block; }
.checkbox-field { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .9rem; }
.checkbox-field input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--brand-primary); }
.checkbox-field label { font-weight: 500; font-size: .9rem; margin: 0; }
.form-card { max-width: 520px; margin-inline: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-note { text-align: center; margin-top: 1rem; font-size: .9rem; color: var(--text-muted); }
.strength-meter { height: 6px; border-radius: 3px; background: var(--border); margin-top: .5rem; overflow: hidden; }
.strength-meter__bar { height: 100%; width: 0; transition: width .2s var(--ease), background .2s var(--ease); }

/* --------------------------------------------------------- Alerts / notices */
.alert {
  display: flex; gap: .7rem; padding: 1rem 1.15rem; border-radius: var(--radius);
  border-left: 4px solid; font-size: .92rem; margin-bottom: 1rem; align-items: flex-start;
}
.alert__icon { flex: none; margin-top: .1rem; }
.alert--info { background: rgba(78,168,255,.09); border-color: var(--info); color: #bfe0ff; }
.alert--warning { background: rgba(255,176,32,.1); border-color: var(--warning); color: #ffd98a; }
.alert--success { background: rgba(24,201,100,.1); border-color: var(--success); color: #9df0c2; }
.alert--danger { background: rgba(255,77,94,.1); border-color: var(--danger); color: #ffb3bb; }
.notice-18 {
  display: flex; align-items: center; gap: .8rem; background: var(--surface-tint);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem;
  font-size: .92rem; color: var(--text-muted);
}

/* --------------------------------------------------------- Bet builder */
.betbuilder { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }
.betbuilder__main { min-width: 0; }
.bet-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
.bet-step__head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.bet-step__n { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-accent); color: var(--brand-primary-dark); font-weight: 900; display: grid; place-items: center; font-size: .9rem; flex: none; }
.bet-step__head h3 { font-size: 1.1rem; margin: 0; }
.pareo-select { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: .7rem; }
.pareo-option {
  border: 1.5px solid var(--border-strong); border-radius: var(--radius); padding: .8rem;
  text-align: left; background: var(--surface); transition: all .15s var(--ease);
}
.pareo-option:hover { border-color: var(--gold); }
.pareo-option[aria-pressed="true"] { border-color: var(--gold); background: rgba(255,197,49,.08); box-shadow: inset 0 0 0 1px var(--gold); }
.pareo-option strong { color: var(--text); display: block; }
.pareo-option small { color: var(--text-muted); font-size: .78rem; }

.runner-list { display: flex; flex-direction: column; gap: .5rem; }
.runner {
  display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: all .15s var(--ease); text-align: left; width: 100%;
}
.runner:hover { border-color: var(--gold); background: var(--surface-2); }
.runner[aria-pressed="true"] { border-color: var(--gold); background: rgba(255,197,49,.09); box-shadow: inset 0 0 0 1px var(--gold); }
.runner__info { flex: 1; min-width: 0; }
.runner__name { font-weight: 600; color: var(--text); }
.runner__meta { font-size: .8rem; color: var(--text-muted); }
.runner__odds {
  font-family: var(--font-head); font-weight: 700; color: #04240F; font-size: 1rem;
  background: var(--action); padding: .28rem .62rem; border-radius: var(--radius-sm); min-width: 3.2rem; text-align: center;
}
.runner__check {
  width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border-strong);
  display: grid; place-items: center; flex: none; color: transparent;
}
.runner[aria-pressed="true"] .runner__check { background: var(--gold); border-color: var(--gold); color: #2A0E06; }

.bettype-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: .6rem; }
.bettype {
  border: 1.5px solid var(--border-strong); border-radius: var(--radius); padding: .7rem .8rem;
  background: var(--surface-2); text-align: left;
}
.bettype:hover { border-color: var(--gold); }
.bettype[aria-pressed="true"] { border-color: var(--gold); background: rgba(255,197,49,.08); box-shadow: inset 0 0 0 1px var(--gold); }
.bettype strong { display: block; color: var(--text); font-size: .95rem; }
.bettype small { color: var(--text-muted); font-size: .74rem; }

/* Bet slip / pule */
.pule {
  position: sticky; top: calc(var(--header-h) + 2.7rem);
  background: var(--surface); border: 1px solid var(--gold); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--glow-gold);
}
.pule__head { background: linear-gradient(180deg, var(--surface-2), var(--surface)); color: var(--text-on-dark); border-bottom: 2px solid var(--gold); padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.pule__head h3 { color: var(--gold); margin: 0; font-size: 1.2rem; text-transform: uppercase; }
.pule__body { padding: 1.25rem; }
.pule__empty { color: var(--text-muted); text-align: center; padding: 2rem 1rem; font-size: .9rem; }
.pule__item { display: flex; gap: .6rem; padding: .7rem 0; border-bottom: 1px dashed var(--border); }
.pule__item:first-child { padding-top: 0; }
.pule__item-info { flex: 1; min-width: 0; }
.pule__item-info strong { color: var(--text); font-size: .92rem; }
.pule__item-info small { display: block; color: var(--text-muted); font-size: .78rem; }
.pule__remove { color: var(--danger); font-size: 1.1rem; flex: none; line-height: 1; padding: .2rem; }
.pule__totals { margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--border); }
.pule__row { display: flex; justify-content: space-between; margin-bottom: .5rem; font-size: .92rem; }
.pule__row--total { font-size: 1.1rem; font-weight: 700; color: var(--gold); font-family: var(--font-head); }
.pule__row--return strong { color: var(--action); font-family: var(--font-head); font-size: 1.35rem; }
.stake-input { display: flex; align-items: center; gap: .5rem; margin: 1rem 0; }
.stake-input label { font-weight: 700; font-size: .9rem; }
.stake-input .input { max-width: 120px; }
.stake-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* --------------------------------------------------------------- Ao Vivo */
.race-track {
  background: linear-gradient(var(--line-leather), #8b5a2b);
  border-radius: var(--radius-lg); padding: 1.25rem; position: relative; overflow: hidden;
  border: 3px solid var(--brand-primary-dark);
}
.lane { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; position: relative; }
.lane__label { width: 150px; flex: none; color: #fff; font-weight: 700; font-size: .85rem; text-shadow: 0 1px 2px rgba(0,0,0,.6); display: flex; align-items: center; gap: .5rem; }
.lane__track { flex: 1; height: 30px; background: rgba(0,0,0,.18); border-radius: var(--radius-pill); position: relative; border-bottom: 2px dashed rgba(255,255,255,.25); }
.lane__horse {
  position: absolute; top: 50%; left: 0; transform: translate(0,-50%);
  width: 34px; height: 26px; transition: left .4s linear; z-index: 2;
}
.lane__num { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--brand-accent); color: var(--brand-primary-dark); font-weight: 900; font-size: .7rem; display: grid; place-items: center; z-index: 1; }
.finish-line { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(45deg, #fff 0 6px, #222 6px 12px); }
.live-panel { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; align-items: start; }
.position-board { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.position-board ol { list-style: none; padding: 0; counter-reset: pos; }
.position-list-item { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-weight: 700; }
.position-list-item:last-child { border: none; }
.pos-rank { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--text); display: grid; place-items: center; font-size: .82rem; flex: none; }
.position-list-item:first-child .pos-rank { background: var(--gold); color: #2A0E06; }

/* --------------------------------------------------------- Account dashboard */
.dash { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: start; }
.dash-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .6rem; position: sticky; top: calc(var(--header-h) + 2.7rem); }
.dash-nav a, .dash-nav button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .65rem .8rem; border-radius: var(--radius-sm); font-weight: 700; color: var(--text); font-size: .92rem; text-align: left; }
.dash-nav a:hover, .dash-nav button:hover { background: var(--surface-2); color: var(--gold); }
.dash-nav a.active { background: var(--red); color: #fff; }
.balance-card {
  background: linear-gradient(135deg, var(--red-deep) 0%, #1A0A0E 100%);
  color: var(--text-on-dark); border-radius: var(--radius-lg); padding: 1.5rem; border: 1px solid var(--gold); box-shadow: var(--glow-gold);
}
.balance-card small { text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--text-on-dark-muted); }
.balance-card .amount { font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; color: var(--gold); margin: .3rem 0 1rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; text-align: center; }
.stat__num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 600; color: var(--gold); }
.stat__label { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.dash-panel { display: none; }
.dash-panel.active { display: block; }
.limit-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.limit-row:last-child { border: none; }

/* --------------------------------------------------------------- Legal pages */
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 2.7rem); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; font-size: .88rem; }
.legal-toc h4 { font-size: .9rem; margin-bottom: .8rem; }
.legal-toc ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.legal-body { max-width: 760px; }
.legal-body h2 { margin-top: 2.5rem; padding-top: 1rem; scroll-margin-top: 90px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { margin-top: 1.6rem; color: var(--gold); text-transform: none; }
.legal-toc a { color: var(--text-muted); }
.legal-toc a:hover { color: var(--gold); }
.legal-body p, .legal-body li { color: var(--text); margin-bottom: .9rem; }
.legal-body ul, .legal-body ol { margin-bottom: 1rem; }
.legal-updated { color: var(--text-muted); font-size: .88rem; font-style: italic; }
.legal-body .callout { background: var(--surface-tint); border: 1px solid var(--border); border-left: 4px solid var(--brand-accent); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.25rem 0; }

/* --------------------------------------------------------------- Page hero */
.page-hero {
  background: linear-gradient(120deg, var(--red-deep) 0%, #170B0F 70%);
  color: var(--text-on-dark); border-bottom: 2px solid var(--gold); position: relative; overflow: hidden;
}
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: .1; background: url("../img/hero-pattern.svg") 380px; pointer-events: none; }
.page-hero--track {
  background:
    linear-gradient(90deg, rgba(20,10,13,.95) 0%, rgba(30,12,16,.82) 55%, rgba(60,20,30,.55) 100%),
    url("../img/track.webp") center 40% / cover no-repeat, var(--red-deep);
}
.page-hero__inner { padding-block: clamp(2rem, 5vw, 3.4rem); position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--text-on-dark-muted); max-width: 60ch; margin-top: .6rem; }
.breadcrumb { display: flex; gap: .5rem; font-size: .82rem; color: var(--text-on-dark-muted); margin-bottom: .8rem; align-items: center; }
.breadcrumb a { color: var(--gold); }

/* --------------------------------------------------------- Cookie banner/modal */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--brand-primary-dark); color: var(--text-on-dark);
  border-top: 3px solid var(--brand-accent); box-shadow: 0 -6px 24px rgba(0,0,0,.3);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner__inner { display: flex; gap: 1.25rem; align-items: center; padding-block: 1.1rem; flex-wrap: wrap; }
.cookie-banner__text { flex: 1; min-width: 260px; font-size: .88rem; color: var(--text-on-dark-muted); }
.cookie-banner__text strong { color: var(--brand-accent-light); }
.cookie-banner__actions { display: flex; gap: .6rem; flex-wrap: wrap; }

.modal-backdrop {
  position: fixed; inset: 0; z-index: 400; background: rgba(42,26,20,.6);
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-backdrop.show { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius-lg); max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); border-top: 5px solid var(--brand-accent);
}
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.modal__head h3 { margin: 0; }
.modal__body { padding: 1.5rem; }
.modal__foot { padding: 1.25rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: .7rem; justify-content: flex-end; flex-wrap: wrap; }
.cookie-toggle { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cookie-toggle:last-child { border: none; }
.cookie-toggle h4 { font-size: 1rem; margin-bottom: .25rem; }
.cookie-toggle p { font-size: .84rem; color: var(--text-muted); }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch__slider { position: absolute; inset: 0; background: var(--border-strong); border-radius: 999px; transition: .2s; cursor: pointer; }
.switch__slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .switch__slider { background: var(--success); }
.switch input:checked + .switch__slider::before { transform: translateX(20px); }
.switch input:disabled + .switch__slider { background: var(--brand-primary); opacity: .6; cursor: not-allowed; }

/* --------------------------------------------------------------- Toast */
.toast-stack { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 500; display: flex; flex-direction: column; gap: .6rem; max-width: 340px; }
.toast {
  background: var(--surface); border-left: 4px solid var(--brand-primary); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .9rem 1.1rem; font-size: .9rem; font-weight: 600;
  animation: toastIn .25s var(--ease); display: flex; gap: .6rem; align-items: flex-start;
}
.toast--success { border-color: var(--success); }
.toast--danger { border-color: var(--danger); }
.toast--info { border-color: var(--info); }
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* --------------------------------------------------------------- Results strip */
.result-strip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .5rem; }
.result-chip {
  flex: none; min-width: 200px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; border-top: 3px solid var(--brand-accent);
}
.result-chip small { color: var(--text-muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.result-chip .winner { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; }

/* --------------------------------------------------------------- Misc */
.divider-fence { height: 14px; background: url("../img/fence.svg") repeat-x center / auto 14px; opacity: .5; margin-block: 1rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.data-def { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .92rem; }
.data-def dt { font-weight: 700; color: var(--gold); }
.timeline { border-left: 3px solid var(--brand-accent); padding-left: 1.5rem; margin-left: .5rem; }
.timeline__item { position: relative; padding-bottom: 1.5rem; }
.timeline__item::before { content: ""; position: absolute; left: calc(-1.5rem - 8px); top: .3rem; width: 13px; height: 13px; border-radius: 50%; background: var(--brand-primary); border: 3px solid var(--brand-accent); }
.timeline__year { font-family: var(--font-head); font-weight: 700; color: var(--brand-accent-dark); font-size: 1.1rem; }

/* --------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .betbuilder { grid-template-columns: 1fr; }
  .pule { position: static; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { max-width: 440px; }
  .gp-feature__grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .dash, .legal { grid-template-columns: 1fr; }
  .dash-nav, .legal-toc { position: static; }
  .dash-nav { display: flex; flex-wrap: wrap; gap: .3rem; }
  .dash-nav a, .dash-nav button { width: auto; }
}
/* Hide the header search before the layout gets tight */
/* Collapse the desktop nav + account actions into the hamburger drawer */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-cta, .header-balance { display: none; }
  /* Mobile nav drawer */
  .main-nav.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: var(--brand-primary-dark);
    padding: 1rem; gap: .3rem; border-bottom: 3px solid var(--brand-accent); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.open > a { color: var(--text-on-dark); padding: .7rem .8rem; font-size: 1rem; }
  .main-nav.open a[aria-current="page"]::after { display: none; }
  .main-nav.open .nav-mobile-actions {
    display: flex; flex-direction: column; gap: .5rem;
    margin-top: .6rem; padding-top: .8rem; border-top: 1px solid rgba(251,241,221,.2);
  }
}
@media (max-width: 860px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .live-panel { grid-template-columns: 1fr; }
  .header-cta .btn span { display: none; }
  .betslip-fab { display: inline-flex; }
  .promo-bar__cta { order: 3; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .lane__label { width: 96px; font-size: .74rem; }
  .countdown__unit { min-width: 56px; padding: .6rem .4rem; }
  .countdown__num { font-size: 1.4rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .header-balance { display: none; }
  /* Compact header so the hamburger always fits */
  .brand__sub { display: none; }
  .brand__badge { width: 36px; height: 40px; }
  .brand__name { font-size: 1.02rem; }
  .header-actions { gap: .4rem; }
  .site-header__bar { gap: .5rem; }
  .icon-btn { width: 38px; height: 38px; }
}
@media (max-width: 380px) {
  .icon-btn[href*="jogo-responsavel"] { display: none; } /* jogo-responsável also in footer + nav */
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   CYBERPUNK-BRAZILIAN SKIN LAYER  (JCB) — appended overrides
   ========================================================================== */

/* --- Text accents --- */
.eyebrow { font-family: var(--font-mono); color: var(--neon-green); letter-spacing: .22em; text-shadow: 0 0 10px rgba(25,240,160,.4); }
.gold { color: var(--neon-gold) !important; text-shadow: 0 0 12px rgba(255,216,77,.4); }
.section-head p, .page-hero p, .hero__lead { font-family: var(--font-body); }

/* --- Buttons: angular HUD + neon --- */
.btn {
  font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; border-radius: 2px;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}
.btn--gold { background: linear-gradient(180deg, var(--neon-gold), #E6B62E); color: #12100a; border-color: transparent; box-shadow: var(--glow-gold); }
.btn--gold:hover { background: var(--gold-light); box-shadow: 0 0 26px rgba(255,216,77,.65); transform: translateY(-1px); }
.btn--primary, .btn--action { background: linear-gradient(180deg, var(--neon-green), #12C083); color: #041a12; border-color: transparent; box-shadow: var(--glow-green); }
.btn--primary:hover, .btn--action:hover { box-shadow: 0 0 26px rgba(25,240,160,.65); transform: translateY(-1px); }
.btn--outline, .btn--on-dark, .btn--ghost { background: rgba(43,227,255,.05); border: 1px solid var(--neon-cyan); color: var(--neon-cyan); }
.btn--outline:hover, .btn--on-dark:hover, .btn--ghost:hover { background: rgba(43,227,255,.14); color: #bdf3ff; box-shadow: var(--glow-cyan); }

/* --- Badges --- */
.badge { font-family: var(--font-mono); letter-spacing: .05em; }
.badge-18 { background: transparent; border: 1.5px solid var(--neon-pink); color: var(--neon-pink); box-shadow: 0 0 12px rgba(255,46,136,.4); text-shadow: 0 0 8px rgba(255,46,136,.5); }
.badge--gold { background: rgba(255,216,77,.1); color: var(--neon-gold); border-color: rgba(255,216,77,.5); }
.badge--red { background: rgba(255,46,136,.12); color: #ff77ad; border-color: rgba(255,46,136,.5); }
.badge--live { background: var(--neon-pink); color: #fff; box-shadow: 0 0 16px rgba(255,46,136,.6); }
.badge--won { color: var(--neon-green); background: rgba(25,240,160,.12); }
.badge--pending { color: var(--neon-gold); background: rgba(255,216,77,.12); }
.badge--lost { color: #ff6b86; background: rgba(255,77,109,.12); }

/* --- Cards / panels --- */
.card, .bet-step, .position-board, .stat, .dash-nav, .legal-toc {
  background: linear-gradient(180deg, rgba(21,29,56,.55), rgba(14,20,40,.85));
  border: 1px solid var(--border); border-radius: 3px;
}
.card--hover:hover, .tile:hover { border-color: var(--neon-cyan); box-shadow: var(--glow-cyan); }
.card--heritage::before { background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan), var(--neon-gold)); height: 2px; opacity: 1; box-shadow: 0 0 12px rgba(43,227,255,.5); }
.tile { border-radius: 3px; }
.tile__icon { background: rgba(25,240,160,.08); color: var(--neon-green); border: 1px solid rgba(25,240,160,.25); }
.tile:hover .tile__icon { background: var(--neon-green); color: #041a12; box-shadow: 0 0 16px rgba(25,240,160,.5); }
.tile__arrow { color: var(--neon-cyan); font-family: var(--font-head); }

/* --- Header --- */
.site-header { background: rgba(6,8,20,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--neon-green); box-shadow: 0 0 28px rgba(25,240,160,.14); }
.main-nav a { font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; font-size: .98rem; }
.main-nav a:hover { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(43,227,255,.5); background: transparent; }
.main-nav a[aria-current="page"] { color: var(--neon-green); }
.main-nav a[aria-current="page"]::after { background: var(--neon-green); box-shadow: 0 0 10px var(--neon-green); }
.header-balance strong { color: var(--neon-green); font-family: var(--font-mono); }
.brand__name { font-family: var(--font-head) !important; }

/* --- Odds pills & data → mono neon --- */
.odds-pill, .runner__odds {
  font-family: var(--font-mono); background: rgba(25,240,160,.08); color: var(--neon-green);
  border: 1px solid var(--neon-green); box-shadow: inset 0 0 10px rgba(25,240,160,.12), 0 0 8px rgba(25,240,160,.18);
  text-shadow: 0 0 8px rgba(25,240,160,.4); border-radius: 2px;
}
.odds-pill:hover { background: var(--neon-green); color: #041a12; box-shadow: 0 0 18px rgba(25,240,160,.6); text-shadow: none; }
.tick__odd { font-family: var(--font-mono); background: transparent; color: var(--neon-green); border: 1px solid rgba(25,240,160,.5); border-radius: 2px; }
.tag-fav { color: var(--neon-gold); border-color: rgba(255,216,77,.5); background: rgba(255,216,77,.1); font-family: var(--font-mono); }
.countdown__num, .stat__num, .pule__row--total, .pule__row--return strong { font-family: var(--font-mono); }
.balance-card .amount { font-family: var(--font-mono); color: var(--neon-green); text-shadow: 0 0 16px rgba(25,240,160,.45); }

/* --- Tables --- */
.table-wrap { background: rgba(10,14,31,.6); border-color: var(--border); }
.race-table thead th { background: #0a1024; color: var(--neon-cyan); font-family: var(--font-head); font-weight: 500; border-bottom: 1px solid var(--neon-cyan); }
.race-table tbody tr:hover { background: rgba(43,227,255,.05); }
.horse-num { background: transparent; border: 1px solid var(--neon-pink); color: var(--neon-pink); font-family: var(--font-mono); border-radius: 2px; box-shadow: 0 0 8px rgba(255,46,136,.25); }
.horse-name { color: var(--text); }

/* --- Chips / tabs --- */
.chip { background: var(--surface-2); border-color: var(--border-strong); font-family: var(--font-head); }
.chip[aria-pressed="true"] { background: var(--neon-green); color: #041a12; border-color: var(--neon-green); box-shadow: 0 0 14px rgba(25,240,160,.5); }
.tab { font-family: var(--font-head); }
.tab[aria-selected="true"] { color: var(--neon-green); border-bottom-color: var(--neon-green); }

/* --- Inputs --- */
.input, .select, .textarea { background: rgba(8,12,26,.7); border: 1px solid var(--border-strong); border-radius: 2px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--neon-cyan); box-shadow: 0 0 0 2px rgba(43,227,255,.2), 0 0 14px rgba(43,227,255,.2); }
.field label { font-family: var(--font-head); font-weight: 500; letter-spacing: .02em; }

/* --- GP feature / page-hero --- */
.gp-feature { background: linear-gradient(120deg, #0b1030 0%, #0e1638 55%, #12103a 100%); border: 1px solid var(--neon-gold); box-shadow: var(--glow-gold); }
.gp-feature h2 .gold { text-shadow: 0 0 16px rgba(255,216,77,.5); }
.countdown__unit { background: rgba(0,0,0,.4); border: 1px solid var(--neon-gold); box-shadow: inset 0 0 12px rgba(255,216,77,.12); }
.countdown__num { color: var(--neon-gold); text-shadow: 0 0 12px rgba(255,216,77,.5); }
.page-hero { background: linear-gradient(120deg, #080c1e 0%, #0b1230 70%); border-bottom: 1px solid var(--neon-green); position: relative; overflow: hidden; }
.page-hero::after { opacity: .16; }
.gp-photo, .content-figure { border-color: var(--neon-cyan); }

/* --- Reunião card --- */
.reuniao-card__head { background: linear-gradient(180deg, #0d1430, #0a0f24); border-bottom: 1px solid var(--neon-green); }
.reuniao-card__date { color: var(--neon-green); font-family: var(--font-mono); text-shadow: 0 0 10px rgba(25,240,160,.4); }

/* --- Pule / bet builder --- */
.pule { border: 1px solid var(--neon-gold); box-shadow: var(--glow-gold); }
.pule__head { background: linear-gradient(180deg, #12183a, #0c1128); border-bottom: 1px solid var(--neon-gold); }
.pule__head h3 { color: var(--neon-gold); font-family: var(--font-head); }
.pule__row--total { color: var(--neon-gold); }
.pule__row--return strong { color: var(--neon-green); text-shadow: 0 0 12px rgba(25,240,160,.4); }
.bet-step__n { background: var(--neon-green); color: #041a12; box-shadow: 0 0 12px rgba(25,240,160,.5); font-family: var(--font-head); }
.runner[aria-pressed="true"], .pareo-option[aria-pressed="true"], .bettype[aria-pressed="true"] { border-color: var(--neon-green); box-shadow: inset 0 0 0 1px var(--neon-green), 0 0 14px rgba(25,240,160,.25); background: rgba(25,240,160,.06); }
.runner[aria-pressed="true"] .runner__check { background: var(--neon-green); border-color: var(--neon-green); color: #041a12; }
.pareo-option strong, .runner__name, .bettype strong { color: var(--text); }

/* --- Live race track --- */
.race-track { background: linear-gradient(180deg, #0a1024, #0c1430); border: 1px solid var(--neon-cyan); box-shadow: inset 0 0 40px rgba(43,227,255,.08); }
.lane__track { background: rgba(43,227,255,.06); border-bottom: 1px dashed rgba(43,227,255,.3); }
.lane__num { background: var(--neon-pink); color: #fff; }
.pos-rank { background: var(--surface-2); color: var(--text); }
.position-list-item:first-child .pos-rank { background: var(--neon-gold); color: #12100a; }
.finish-line { background: repeating-linear-gradient(45deg, var(--neon-cyan) 0 6px, #0a1024 6px 12px); }

/* --- Dashboard --- */
.dash-nav a.active { background: var(--neon-green); color: #041a12; }
.dash-nav a:hover, .dash-nav button:hover { color: var(--neon-cyan); }
.balance-card { background: linear-gradient(135deg, #0c1330, #0a0f22); border: 1px solid var(--neon-green); box-shadow: var(--glow-green); }
.stat__num { color: var(--neon-green); }

/* --- Footer --- */
.site-footer { background: linear-gradient(180deg, #070a16, #05070f); border-top: 1px solid var(--neon-green); }
.footer-col h4 { color: var(--neon-cyan); font-family: var(--font-head); }
.reg-badge {
  border: 1px solid rgba(43,227,255,.3); color: var(--text-on-dark-muted); font-family: var(--font-mono);
  background: linear-gradient(180deg, rgba(43,227,255,.06), rgba(43,227,255,.02));
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  transition: all .16s var(--ease); letter-spacing: .02em;
}
.reg-badge:hover { border-color: var(--neon-cyan); color: #cdeeff; box-shadow: 0 0 12px rgba(43,227,255,.25); }
.reg-badge__ico { color: var(--neon-cyan); filter: drop-shadow(0 0 4px rgba(43,227,255,.5)); }
/* payment method cards */
.pay-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .7rem; }
.pay-ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 4px; background: rgba(25,240,160,.08); border: 1px solid rgba(25,240,160,.3); color: var(--neon-green); box-shadow: 0 0 14px rgba(25,240,160,.15); }
.pay-head h3 { margin: 0; }
.pay-tag { font-family: var(--font-mono); font-size: .74rem; color: var(--neon-cyan); letter-spacing: .03em; }
.brand__sub { color: var(--neon-cyan); font-family: var(--font-mono); }

/* --- Promo bar & ticker --- */
.promo-bar { background: linear-gradient(90deg, #0b1030, #14103a); border-bottom: 1px solid var(--neon-pink); }
.promo-bar__tag { background: var(--neon-pink); color: #fff; font-family: var(--font-head); box-shadow: 0 0 12px rgba(255,46,136,.4); }
.promo-bar__cta { background: var(--neon-green); color: #041a12; font-family: var(--font-head); }
.odds-ticker { background: #05070f; border-top: 1px solid var(--border); }
.odds-ticker__badge { background: var(--neon-pink); font-family: var(--font-head); box-shadow: 0 0 14px rgba(255,46,136,.4); }
.tick__meta { color: var(--neon-cyan); font-family: var(--font-mono); }
.tick__run { color: var(--text-muted); }

/* --- Account menu & search --- */
.account-menu__avatar { background: var(--neon-green); color: #041a12; font-family: var(--font-head); box-shadow: 0 0 12px rgba(25,240,160,.4); }
.account-menu__panel, .header-search__results { border: 1px solid var(--neon-cyan); box-shadow: var(--glow-cyan); }
.account-menu__item:hover, .header-search__item:hover { color: var(--neon-cyan); }
.header-search__group, .header-search__all { color: var(--neon-green); font-family: var(--font-mono); }
.betslip-fab { background: var(--neon-green); color: #041a12; font-family: var(--font-head); box-shadow: 0 0 20px rgba(25,240,160,.5); }
.betslip-fab__count { background: var(--neon-pink); }

/* --- HERO: neon grid + glitch title --- */
.hero { background: linear-gradient(120deg, rgba(6,8,20,.96) 0%, rgba(8,12,30,.8) 45%, rgba(12,16,40,.5) 100%), url("../img/hero.webp") center 30% / cover no-repeat, #060814; border-bottom: 1px solid var(--neon-green); position: relative; overflow: hidden; }
.hero::after { opacity: .18; background-image: linear-gradient(rgba(25,240,160,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(25,240,160,.12) 1px, transparent 1px); background-size: 40px 40px; }
.hero h1 { color: #fff; text-shadow: 0 0 18px rgba(43,227,255,.35); }
.hero h1 .gold { color: var(--neon-green) !important; text-shadow: 0 0 22px rgba(25,240,160,.6); }
.hero-bet { background: rgba(8,12,26,.86); border: 1px solid var(--neon-gold); box-shadow: var(--glow-gold); }
.hero-bet__head { border-bottom: 1px solid var(--border); background: rgba(0,0,0,.3); }
.hero-bet__head h3 { color: var(--neon-gold); font-family: var(--font-head); }
.hero-bet__pareo { font-family: var(--font-head); }

/* --- Scanline overlay (subtle CRT) on hero areas --- */
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
}
.hero__inner, .page-hero__inner { position: relative; z-index: 2; }

/* --- Alerts / notices --- */
.notice-18 { background: rgba(255,46,136,.06); border: 1px solid rgba(255,46,136,.3); }
.alert--info { border-color: var(--neon-cyan); color: #bdf3ff; }
.alert--success { border-color: var(--neon-green); color: #a8ffd8; }
.alert--warning { border-color: var(--neon-gold); color: #ffe9a8; }

/* ==========================================================================
   LEFT SIDEBAR (JCB) — betting-portal rail
   ========================================================================== */
.layout { display: flex; align-items: flex-start; gap: 0; }
.layout > main { flex: 1 1 auto; min-width: 0; }
.site-sidebar {
  flex: none; width: 244px; align-self: stretch;
  position: sticky; top: calc(var(--header-h) + 2.4rem);
  max-height: calc(100vh - var(--header-h) - 2.4rem); overflow-y: auto;
  background: linear-gradient(180deg, rgba(14,20,40,.75), rgba(6,8,20,.9));
  border-right: 1px solid var(--neon-green); box-shadow: 6px 0 24px rgba(0,0,0,.35);
  padding: 1.1rem .9rem; scrollbar-width: thin;
}
.site-sidebar::-webkit-scrollbar { width: 6px; }
.site-sidebar::-webkit-scrollbar-thumb { background: rgba(43,227,255,.3); border-radius: 3px; }
.sidebar-block { margin-bottom: 1.4rem; }
.sidebar-title {
  font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--neon-cyan); margin-bottom: .7rem; padding-left: .2rem;
}
.sidebar-nav { display: flex; flex-direction: column; gap: .1rem; }
.sidebar-nav__item {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 3px;
  color: var(--text); font-family: var(--font-head); font-weight: 500; font-size: .95rem;
  border-left: 2px solid transparent; transition: all .14s var(--ease);
}
.sidebar-nav__item svg { color: var(--neon-green); flex: none; }
.sidebar-nav__item:hover { background: rgba(43,227,255,.07); color: var(--neon-cyan); border-left-color: var(--neon-cyan); }
.sidebar-nav__item.active { background: rgba(25,240,160,.1); color: var(--neon-green); border-left-color: var(--neon-green); }
.sidebar-races { display: flex; flex-direction: column; gap: .35rem; }
.sidebar-race {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem;
  padding: .5rem .55rem; border-radius: 3px; background: rgba(21,29,56,.5);
  border: 1px solid var(--border); transition: all .14s var(--ease);
}
.sidebar-race:hover { border-color: var(--neon-cyan); box-shadow: 0 0 12px rgba(43,227,255,.2); }
.sidebar-race__hora { font-family: var(--font-mono); font-size: .72rem; color: var(--neon-cyan); }
.sidebar-race__nome { font-size: .82rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-race__odd { font-size: .78rem; padding: .12rem .38rem; min-width: 2.6rem; }
.sidebar-help { border-top: 1px solid var(--border); padding-top: 1rem; display: flex; gap: .6rem; align-items: flex-start; }
.sidebar-help p { font-size: .78rem; color: var(--text-muted); margin: 0; }

@media (max-width: 1080px) {
  .layout { display: block; }
  .site-sidebar { display: none; }
}
