/* ============================================================
   STANIBLES — STYLESHEET
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:      #6366f1;
  --brand-dark: #4f46e5;
  --green:      rgba(99,102,241,1);
  --green-bg:   rgba(99,102,241,.1);
  --blue:       rgba(79,70,229,1);
  --red:        rgba(217,22,22,1);
  --text:       rgba(0,0,0,.9);
  --text-2:     rgba(0,0,0,.55);
  --text-3:     rgba(0,0,0,.35);
  --surface:    #ffffff;
  --surface-2:  #f5f5f3;
  --border:     rgba(0,0,0,.07);
  --border-2:   rgba(0,0,0,.13);
  --shadow:     0 1px 3px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --r-sm:       8px;
  --r-md:       12px;
  --r-lg:       16px;
  --nav-h:      60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.tabnum { font-variant-numeric: tabular-nums; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex; align-items: center; gap: 28px; height: var(--nav-h);
}

.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text); flex-shrink: 0;
}
.logo-mark {
  width: 30px; height: 30px; background: var(--brand); color: #fff;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; letter-spacing: -.5px; flex-shrink: 0;
}
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: -.5px; }

.nav-links {
  display: flex; list-style: none; gap: 2px; flex: 1;
}
.nav-links a {
  text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: var(--r-sm);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--text); }

.nav-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }

.btn-outline {
  background: transparent; border: 1.5px solid var(--border-2); color: var(--text);
  font-size: 14px; font-weight: 600; padding: 7px 16px;
  border-radius: var(--r-sm); cursor: pointer; font-family: inherit;
  transition: border-color .15s, background .15s;
}
.btn-outline:hover { border-color: rgba(0,0,0,.25); background: var(--surface-2); }

.btn-primary {
  background: var(--brand); border: none; color: #fff;
  font-size: 14px; font-weight: 600; padding: 8px 18px;
  border-radius: var(--r-sm); cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.btn-primary:hover { background: var(--brand-dark); }
.btn-large { font-size: 16px; padding: 13px 28px; border-radius: var(--r-md); }
.btn-full  { width: 100%; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
}

.mobile-menu {
  display: none; flex-direction: column;
  padding: 12px 20px 16px; border-top: 1px solid var(--border); gap: 2px;
}
.mobile-menu a {
  text-decoration: none; color: var(--text-2); font-size: 15px; font-weight: 500;
  padding: 10px 4px; border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-actions { display: flex; gap: 10px; margin-top: 12px; }
.mobile-actions button { flex: 1; }
.mobile-menu.open { display: flex; }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 460px;
  display: flex; align-items: center; overflow: hidden; background: #0d0d0d;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  filter: brightness(.48) saturate(1.1);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.5) 55%, rgba(0,0,0,.1) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 60px 20px; display: flex; align-items: center;
}
.hero-content { max-width: 520px; }
.hero-badge {
  display: inline-block; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 4px; text-transform: uppercase; margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(26px, 3.5vw, 42px); font-weight: 800; color: #fff;
  line-height: 1.15; letter-spacing: -.5px; margin-bottom: 10px;
}
.hero-sub { color: rgba(255,255,255,.55); font-size: 14px; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 10px; margin-bottom: 16px; }

.yes-btn, .no-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 11px 22px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; cursor: pointer; border: none;
  font-family: inherit; transition: opacity .15s;
}
.yes-btn:hover, .no-btn:hover { opacity: .85; }
.yes-btn { background: rgba(99,102,241,.12); color: #6366f1; border: 1.5px solid rgba(99,102,241,.25); }
.no-btn  { background: rgba(217,22,22,.08); color: #D91616; border: 1.5px solid rgba(217,22,22,.18); }
.hero-meta { color: rgba(255,255,255,.4); font-size: 13px; }

/* ── FEATURED SLIDE (Hero card) ─────────────────────────────── */
.featured-slide {
  padding: 32px 0 40px;
  background: var(--surface-2);
}
.slide-card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: 28px 32px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.slide-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.slide-title-link {
  text-decoration: none;
  color: var(--text);
  flex: 1;
  min-width: 0;
}
.slide-title {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.3px;
}
.slide-title-link:hover .slide-title { color: var(--text-2); }
.slide-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.slide-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s, color .15s;
}
.slide-arrow:hover {
  border-color: rgba(0,0,0,.2);
  color: var(--text);
}
.slide-arrow-active {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(38,92,255,.06);
}
.slide-arrow-active:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(38,92,255,.1);
}
.slide-counter {
  font-size: 13px;
  color: var(--text-2);
  min-width: 44px;
  text-align: center;
}
.slide-body {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.slide-data {
  flex: 1;
  min-width: 0;
  max-width: 420px;
}
.slide-table { margin-bottom: 20px; }
.slide-col-heads {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}
.sch-payout, .sch-odds { text-align: right; }
.slide-outcomes { display: flex; flex-direction: column; gap: 10px; }
.slide-outcome {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  min-height: 36px;
  cursor: pointer;
  transition: background .15s;
  border-radius: var(--r-sm);
  padding: 2px 0;
}
.slide-outcome:hover { background: rgba(0,0,0,.03); }
.slide-outcome-name {
  font-size: 14px;
  color: var(--text);
  padding-bottom: 2px;
}
.slide-underline-teal {
  border-bottom: 2px solid var(--brand);
}
.slide-underline-blue {
  border-bottom: 2px solid var(--blue);
}
.slide-outcome-mult {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  text-align: right;
}
.slide-odds-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--brand);
  background: rgba(99,102,241,.06);
  color: var(--text);
}
.slide-pill-teal { border-color: var(--brand); background: rgba(99,102,241,.08); }
.slide-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  font-size: 12px;
}
.slide-news-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.slide-news-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide-chart-wrap {
  position: absolute;
  right: 32px;
  bottom: 32px;
  width: 42%;
  max-width: 320px;
  height: 120px;
  opacity: 0.7;
  pointer-events: none;
}
.slide-chart-bg {
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .slide-card { padding: 20px 20px 24px; }
  .slide-card-header { flex-direction: column; gap: 16px; margin-bottom: 20px; }
  .slide-body { flex-direction: column; }
  .slide-data { max-width: none; }
  .slide-chart-wrap {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    height: 80px;
    margin-top: 16px;
  }
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.section     { padding: 40px 0; }
.section-alt { background: var(--surface-2); }

.section-header { margin-bottom: 16px; }

.section-title-link {
  display: inline-flex; align-items: center; gap: 2px;
  text-decoration: none; color: var(--text);
}
.section-title-link h2 {
  font-size: 20px; font-weight: 700; letter-spacing: -.3px;
}
.chevron-icon {
  width: 22px; height: 22px; fill: var(--green); flex-shrink: 0;
}
.section-title-link:hover h2 { opacity: .8; }

/* ── CARDS GRID ─────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 8px;
}

/* ── MARKET CARD ────────────────────────────────────────────── */
.market-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
  display: flex; flex-direction: column; gap: 8px;
  /* subtle container feel */
  background: rgba(0,0,0,.02);
}
.market-card:hover  { border-color: var(--border-2); background: var(--surface); }
.market-card:active { transform: scale(.98); }

/* Card head */
.card-head {
  display: flex; align-items: flex-start; gap: 8px;
}
.card-head-match {
  flex-direction: column; gap: 4px;
  /* title row inside */
}
.card-head-match > div:first-child {
  display: flex; flex-direction: column; gap: 2px; flex: 1;
}

.card-title {
  flex: 1; font-size: 14px; font-weight: 600; line-height: 1.4;
  color: var(--text); margin-top: -2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title-match {
  font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: block; -webkit-line-clamp: unset;
}

.card-thumb {
  width: 28px; height: 28px; border-radius: 8px;
  object-fit: cover; flex-shrink: 0; display: block;
}

/* Match meta */
.match-meta-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-2); margin-top: 2px; flex-wrap: wrap;
}
.live-text {
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .7px;
  padding: 1px 6px; border-radius: 4px;
}

/* Outcomes */
.outcomes { display: flex; flex-direction: column; gap: 6px; }

.outcome {
  display: flex; align-items: center; gap: 6px;
  min-height: 36px;
}

.outcome-avatar {
  width: 36px; height: 36px; overflow: hidden; flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center;
}
.outcome-avatar.circle { border-radius: 100px; }
.outcome-avatar.square { border-radius: 8px; }
.outcome-avatar img { width: 100%; height: 100%; object-fit: cover; }

.outcome-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px; justify-content: center;
}
.outcome-info-full { /* no avatar, takes all space */ }

.outcome-name {
  font-size: 12px; font-weight: 400; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Progress bar */
.progress-wrap {
  width: 100%; height: 2px; border-radius: 9999px;
  background: rgba(0,0,0,.07); overflow: hidden;
}
.progress-fill {
  height: 100%; min-width: 4px; border-radius: 9999px;
  transition: width .3s ease-out;
}
.progress-fill.green { background-color: var(--green); }
.progress-fill.blue  { background-color: var(--blue); }

/* Multiplier */
.outcome-mult {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  min-width: 38px; text-align: right; flex-shrink: 0;
}

/* Percent button */
.pct-btn {
  appearance: none; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 36px; padding: 0 6px;
  border: 1px solid var(--green); border-radius: 9999px;
  background: transparent; color: var(--text);
  font-size: 13px; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.pct-btn:hover { background: var(--green-bg); }

/* Card vol row */
.card-vol-row {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 28px; padding-top: 4px;
}
.card-vol {
  font-size: 12px; color: var(--text); line-height: 18px;
}
.card-markets {
  font-size: 12px; color: var(--text-2);
  text-decoration: none; margin-left: 6px;
}
.card-markets:hover { color: var(--text); }

/* ── CTA BANNER ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  padding: 64px 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-text h2 {
  font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.5px; margin-bottom: 8px;
}
.cta-text p { color: rgba(255,255,255,.6); font-size: 16px; }

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer { background: #111; color: rgba(255,255,255,.7); }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding: 56px 20px 40px;
}
.footer .logo-mark { background: var(--brand); }
.footer .logo-text { color: #fff; }
.footer-desc {
  font-size: 13px; color: rgba(255,255,255,.4);
  line-height: 1.6; margin-top: 12px; max-width: 260px;
}
.footer-links h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: rgba(255,255,255,.4); margin-bottom: 14px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,.65); text-decoration: none; font-size: 14px;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding: 20px;
}
.footer-bottom p {
  font-size: 12px; color: rgba(255,255,255,.3); text-align: center;
}

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity .2s; backdrop-filter: blur(3px);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--surface); border-radius: 18px;
  width: 100%; max-width: 420px; padding: 36px 32px 28px;
  position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.22);
  transform: translateY(16px) scale(.97);
  transition: transform .2s;
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--surface-2); border: none;
  width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; font-size: 16px; color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; line-height: 1;
}
.modal-close:hover { background: rgba(0,0,0,.12); }

.modal-header { text-align: center; margin-bottom: 26px; }
.modal-logo {
  width: 48px; height: 48px; font-size: 22px; font-weight: 800;
  border-radius: 12px; margin: 0 auto 14px;
}
.modal-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.modal-header p  { font-size: 14px; color: var(--text-2); }

.modal-form { display: flex; flex-direction: column; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input {
  padding: 10px 14px; border: 1.5px solid var(--border-2);
  border-radius: var(--r-sm); font-size: 14px; font-family: inherit;
  color: var(--text); background: var(--surface); outline: none;
  transition: border-color .15s;
}
.form-group input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(40,204,149,.12);
}
.form-group input.error { border-color: var(--red); }
.field-error { font-size: 12px; color: var(--red); min-height: 16px; }

.form-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-2);
}
.form-check input[type="checkbox"] {
  margin-top: 2px; accent-color: var(--brand); flex-shrink: 0;
}
.form-check a { color: var(--brand); text-decoration: none; }
.form-check a:hover { text-decoration: underline; }

.modal-footer-text {
  text-align: center; font-size: 13px; color: var(--text-2); margin-top: 16px;
}
.modal-footer-text a { color: var(--brand); text-decoration: none; font-weight: 600; }

.modal-success { text-align: center; padding: 16px 0; }
.success-icon {
  width: 56px; height: 56px; background: rgba(99,102,241,.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 26px; color: var(--green);
}
.modal-success h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.modal-success p  { font-size: 14px; color: var(--text-2); margin-bottom: 24px; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }

  .hero { min-height: 340px; }
  .hero-title { font-size: 24px; }
  .hero-btns { flex-direction: column; align-items: flex-start; }

  .section { padding: 32px 0; }
  .section-title-link h2 { font-size: 17px; }

  .cards-grid { grid-template-columns: 1fr; }

  .cta-inner { flex-direction: column; text-align: center; }
  .cta-text h2 { font-size: 22px; }

  .footer-inner { grid-template-columns: 1fr 1fr; padding: 36px 20px 28px; gap: 24px; }
  .modal { padding: 28px 20px 24px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .hero-title { font-size: 20px; }
}
