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

/* ------------------------------------------------------------------ Tokens */
:root {
  color-scheme: dark;
  /* Core betting palette */
  --red: #E11D3A;                /* vivid action red — CTAs, highlights, live */
  --red-deep: #5A0F1D;           /* deep bordô — brand areas */
  --red-deep-2: #3C0912;
  --gold: #FFC531;               /* bright gold — money / accents */
  --gold-2: #E0A21A;
  --gold-light: #FFDA6E;
  --action: #18C964;             /* betting green — odds / win / go */
  --action-dark: #12A251;

  /* Legacy aliases (keep component code working, now dark-themed) */
  --brand-primary: var(--red);           /* primary accent is now vivid red */
  --brand-primary-dark: var(--red-deep-2);
  --brand-primary-light: #F2385A;
  --brand-secondary: #211319;            /* was cream → dark surface */
  --brand-accent: var(--gold);
  --brand-accent-dark: var(--gold-2);
  --brand-accent-light: var(--gold-light);

  /* Surfaces (dark) */
  --bg: #100A0C;                 /* near-black, warm */
  --bg-alt: #180E12;
  --surface: #1E1319;            /* cards */
  --surface-2: #271821;
  --surface-tint: #241620;

  /* Text */
  --text: #F6EDEA;
  --text-muted: #B49AA0;
  --text-on-dark: #F6EDEA;
  --text-on-dark-muted: #C7ADB2;

  /* Feedback */
  --success: #18C964;
  --danger: #FF4D5E;
  --warning: #FFB020;
  --info: #4EA8FF;

  /* Borders & lines */
  --border: #33222A;
  --border-strong: #4A2F39;
  --line-leather: #8b5a2b;

  /* Elevation (dark glows) */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,.5);
  --shadow-lg: 0 18px 50px rgba(0,0,0,.6);
  --glow-gold: 0 0 0 1px rgba(255,197,49,.35), 0 6px 22px rgba(255,197,49,.22);
  --glow-red: 0 8px 26px rgba(225,29,58,.35);

  /* Radii */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Typography */
  --font-head: "Oswald", "Archivo Narrow", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Rubik", "Inter", "Segoe UI", system-ui, sans-serif;

  /* 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.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold); text-decoration: none; transition: color .15s var(--ease); }
a:not(.btn):hover { color: var(--gold-light); }
/* buttons keep their own text colour on hover (link hover must not override) */
.btn--primary:hover, .btn--primary:focus { color: #fff; }
.btn--gold:hover, .btn--gold:focus { color: #2A0E06; }
.btn--action:hover, .btn--action:focus { color: #04240F; }
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.08; color: var(--text); font-weight: 700; letter-spacing: .01em; }
h1, h2 { text-transform: uppercase; letter-spacing: .015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 600; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.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: 46px; height: 46px; flex: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
  transition: transform .35s var(--ease), filter .35s var(--ease);
  transform-origin: 50% 50%;
}
.brand:hover .brand__badge { transform: scale(1.08) rotate(-5deg); filter: drop-shadow(0 3px 10px rgba(255,197,49,.45)); }
/* animated shine sweep across the medallion */
.brand__shine { opacity: 0; transform: translateX(-24px) skewX(-20deg); }
@keyframes brand-shine {
  0%   { opacity: 0; transform: translateX(-24px) skewX(-20deg); }
  6%   { opacity: .5; }
  22%  { opacity: 0; transform: translateX(96px) skewX(-20deg); }
  100% { opacity: 0; transform: translateX(96px) skewX(-20deg); }
}
.brand__badge .brand__shine { animation: brand-shine 5.5s ease-in-out infinite; }
.brand:hover .brand__badge .brand__shine { animation-duration: 2.4s; }
/* subtle motion on the speed lines */
@keyframes brand-speed { 0%,100% { opacity: .35; transform: translateX(0); } 50% { opacity: .8; transform: translateX(4px); } }
.brand__speed line { animation: brand-speed 1.7s ease-in-out infinite; }
.brand__speed line:nth-child(2) { animation-delay: .18s; }
.brand__speed line:nth-child(3) { animation-delay: .34s; }
/* star twinkle */
@keyframes brand-twinkle { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
.brand__star { animation: brand-twinkle 3.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .brand__shine, .brand__speed line, .brand__star { animation: none !important; }
  .brand__shine { opacity: 0; }
}
.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: .4rem;
  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);
}
.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;
}
.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; }
}
