:root {
  --bg: #081119;
  --bg2: #0d1723;
  --card: rgba(12, 20, 31, 0.84);
  --line: rgba(255, 255, 255, 0.08);
  --text: #edf3fb;
  --muted: #93a2b7;
  --green: #32d27d;
  --green-2: #20b766;
  --red: #f15f6c;
  --gold: #f9c94e;
  --blue: #54a7ff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(84,167,255,0.16), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(50,210,125,0.14), transparent 26%),
    linear-gradient(180deg, #071018 0%, #0a1119 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.8), transparent 90%);
  pointer-events: none;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.glow-1 {
  width: 380px; height: 380px; background: rgba(84,167,255,0.18); top: -80px; left: -60px;
}
.glow-2 {
  width: 340px; height: 340px; background: rgba(50,210,125,0.16); bottom: 0; right: -80px;
}

.topbar, .layout {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 10px;
}

.brand-wrap { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  font-weight: 800; letter-spacing: 0.02em;
  background: linear-gradient(135deg, #0dd273, #0c7be8);
  color: white;
  box-shadow: 0 10px 30px rgba(12,123,232,0.24);
}
.brand { font-size: 1.3rem; font-weight: 800; }
.tagline { color: var(--muted); font-size: 0.88rem; }
.top-stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.pill {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: #c9d4e3;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
}
.pill strong { color: white; margin-left: 8px; }
.live-pill { color: #e8fff3; }
.dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(50,210,125,0.6); animation: pulse 1.8s infinite;
}

.layout {
  display: grid;
  gap: 18px;
  padding: 12px 0 28px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}
.glass {
  background: linear-gradient(180deg, rgba(16, 26, 39, 0.9), rgba(9, 17, 27, 0.82));
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 20px;
  padding: 26px;
}
.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--green);
  font-weight: 800;
  margin-bottom: 10px;
}
.hero h1, .candidate h2, .board-head h3, .slip h3 {
  margin: 0;
  line-height: 1;
}
.hero h1 { font-size: clamp(2rem, 4vw, 4rem); margin-bottom: 14px; }
.hero p {
  margin: 0;
  color: #d1dceb;
  max-width: 750px;
  font-size: 1.02rem;
  line-height: 1.65;
}
.accent { color: #9cffc9; font-weight: 700; }
.muted { color: #a7b5c8; }
.ticker-wrap {
  margin-top: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.ticker-label {
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.ticker {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  padding: 13px 0;
  font-weight: 700;
  color: #eff6ff;
  animation: slide 16s linear infinite;
}
.ticker span { padding-left: 18px; }

.hero-odds {
  display: grid;
  gap: 14px;
  align-content: center;
}
.odds-box {
  padding: 18px 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
}
.favorite {
  background: linear-gradient(135deg, rgba(50,210,125,0.16), rgba(255,255,255,0.04));
  box-shadow: inset 0 0 0 1px rgba(50,210,125,0.2);
}
.underdog {
  background: linear-gradient(135deg, rgba(241,95,108,0.14), rgba(255,255,255,0.03));
  box-shadow: inset 0 0 0 1px rgba(241,95,108,0.14);
}
.odds-title { font-size: 1.02rem; color: #dce6f3; }
.odds-sub { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.odds-main {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  margin: 14px 0 6px;
  font-weight: 800;
}
.odds-implied { color: #d8e1ee; font-size: 0.95rem; }

.contestants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.candidate { padding: 18px; }
.candidate-favorite { box-shadow: 0 16px 46px rgba(8, 190, 96, 0.15); }
.candidate-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}
.candidate h2 { font-size: 1.7rem; }
.status-up, .status-down {
  font-size: 0.86rem; font-weight: 800; padding: 10px 12px; border-radius: 999px;
}
.status-up { background: rgba(50,210,125,0.12); color: #97ffc6; }
.status-down { background: rgba(241,95,108,0.12); color: #ffadb5; }
.candidate-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}
.portrait-wrap {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  min-height: 280px;
}
.portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.details-wrap { display: grid; gap: 16px; align-content: center; }
.metric-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.metric {
  padding: 14px 12px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid var(--line);
}
.metric span { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 8px; }
.metric strong { font-size: 1.16rem; }
.progress-block {
  padding: 16px; border-radius: 18px; background: rgba(255,255,255,0.035); border: 1px solid var(--line);
}
.progress-labels { display: flex; justify-content: space-between; margin-bottom: 10px; color: #d6dfec; font-size: 0.92rem; }
.progress-track {
  width: 100%; height: 14px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 999px; transition: width 0.45s ease;
}
.ben-fill { width: 84%; background: linear-gradient(90deg, #21b768, #6bffc0); box-shadow: 0 0 18px rgba(50,210,125,0.35); }
.reza-fill { width: 16%; background: linear-gradient(90deg, #f15f6c, #ff9ea6); }
.bet-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.bet-btn {
  border: none; border-radius: 16px; padding: 14px 18px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.bet-btn.primary { background: linear-gradient(135deg, #15c66c, #0687ff); color: white; box-shadow: 0 12px 28px rgba(6,135,255,0.22); }
.bet-btn.secondary { background: rgba(255,255,255,0.08); color: #e7eef9; border: 1px solid var(--line); }
.bet-btn.ghost { background: rgba(255,255,255,0.04); color: #cdd8e8; border: 1px solid var(--line); }
.bet-btn.full { width: 100%; margin-top: 12px; }

.bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 1fr;
  gap: 18px;
}
.market-board, .activity, .slip { padding: 18px; }
.board-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px;
}
.board-badge {
  background: rgba(255,255,255,0.05); color: #d7e1ef; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 0.8rem;
}
.odds-table { display: grid; gap: 10px; }
.odds-row {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 10px; align-items: center;
  padding: 14px 14px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--line);
}
.odds-row.header {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--muted); background: transparent; padding: 0 8px 4px; border: none;
}
.up { color: #85ffb9; font-weight: 700; }
.down { color: #ff9faa; font-weight: 700; }

.slip-card {
  margin-top: 14px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(12,123,232,0.2), rgba(50,210,125,0.18)); border: 1px solid rgba(255,255,255,0.12);
}
.slip-market { color: #e3ebf6; font-size: 0.88rem; }
.slip-pick { font-size: 1.4rem; font-weight: 800; margin-top: 6px; }
.slip-odds { font-size: 2.2rem; font-weight: 800; margin-top: 8px; }
.stake-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px;
}
.stake-grid label { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 8px; }
.fake-input {
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); padding: 14px 14px; border-radius: 16px; font-weight: 700;
}
.slip-foot { margin-top: 12px; color: var(--muted); font-size: 0.86rem; }

.activity-list { display: grid; gap: 10px; }
.activity-item {
  display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px 14px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--line);
}
.activity-main { font-size: 0.95rem; }
.activity-meta { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.activity-amount { font-size: 1.05rem; font-weight: 800; color: #edfff5; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(50,210,125,0.65); }
  70% { box-shadow: 0 0 0 11px rgba(50,210,125,0); }
  100% { box-shadow: 0 0 0 0 rgba(50,210,125,0); }
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-40%); }
}

@media (max-width: 1180px) {
  .hero, .contestants, .bottom-grid, .candidate-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .top-stats { justify-content: flex-start; }
  .metric-row, .stake-grid { grid-template-columns: 1fr; }
  .odds-row { grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr; font-size: 0.9rem; }
  .hero, .candidate, .market-board, .activity, .slip { padding: 16px; }
}
