:root {
  --bg: #07080d;
  --surface: #10131a;
  --surface-2: #171b24;
  --surface-3: #202632;
  --surface-glass: rgba(16, 19, 26, .82);
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --text: #f7f8fb;
  --muted: #a7adbb;
  --faint: #707888;
  --green: #00e5a0;
  --green-2: #35f0b8;
  --green-soft: rgba(0,229,160,.13);
  --yellow: #f6c85f;
  --yellow-soft: rgba(246,200,95,.14);
  --red: #ff7373;
  --red-soft: rgba(255,115,115,.13);
  --blue: #71a7ff;
  --blue-soft: rgba(113,167,255,.13);
  --violet: #b9a6ff;
  --violet-soft: rgba(185,166,255,.13);
  --radius: 8px;
  --shadow: 0 18px 50px rgba(0,0,0,.34);
  --font: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  background:
    linear-gradient(180deg, #0a0c11 0%, var(--bg) 45rem),
    var(--bg);
}
body.modal-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 100% 34px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
body.secure-app,
body.secure-app *:not(input):not(textarea) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.shell { min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(7,8,13,.78);
  backdrop-filter: blur(20px);
}
.topbar-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.brand {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0;
  padding: 4px 0;
}
.brand span { color: var(--green); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.profile-chip {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  color: var(--text);
  background: rgba(255,255,255,.035);
  font-weight: 850;
  font-size: 12px;
}
.refresh-chip {
  min-height: 36px;
  border: 1px solid rgba(0,229,160,.22);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: var(--green);
  background: linear-gradient(180deg, rgba(0,229,160,.13), rgba(255,255,255,.025));
  box-shadow: 0 10px 24px rgba(0,229,160,.08);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  position: relative;
}
.refresh-chip::before {
  content: "";
  position: absolute;
  inset: -60% auto -60% -40%;
  width: 36px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: rotate(18deg);
  animation: refresh-shine 3.4s ease-in-out infinite;
}
.refresh-chip span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0,229,160,.12);
  line-height: 1;
  transition: transform .25s ease;
}
.refresh-chip:hover span { transform: rotate(80deg); }
.refresh-chip.spinning span { animation: refresh-spin .75s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
@keyframes refresh-shine {
  0%, 55% { left: -45%; opacity: 0; }
  70% { opacity: 1; }
  100% { left: 120%; opacity: 0; }
}
.profile-chip span,
.profile-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-3);
}
.profile-chip img,
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.btn {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  background: var(--surface-3);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  transition: transform .15s ease, border-color .15s ease, background .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { color: #00140d; background: linear-gradient(180deg, var(--green-2), var(--green)); box-shadow: 0 12px 24px rgba(0,229,160,.16); }
.btn-ghost { color: var(--muted); background: rgba(255,255,255,.03); border-color: var(--line); }
.btn-danger { color: var(--red); background: var(--red-soft); border-color: rgba(255,115,115,.25); }
.btn-warn { color: var(--yellow); background: var(--yellow-soft); border-color: rgba(246,200,95,.25); }
.btn-sm { min-height: 32px; padding: 0 11px; font-size: 12px; }
.btn-icon { width: 36px; padding: 0; font-size: 18px; }
.btn-block { width: 100%; }
.plain-event {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.plain-event span { color: var(--muted); font-size: 12px; line-height: 1.45; }

.hero { padding: 16px 0 12px; text-align: left; }
.compact-hero { padding-top: 14px; }
.hero-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(16,19,26,.94), rgba(23,27,36,.74));
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 28px);
}
.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(0,229,160,.22);
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 18px var(--green); }
h1 { margin: 14px 0 10px; max-width: 680px; font-size: clamp(30px, 6vw, 58px); line-height: 1.02; letter-spacing: 0; }
.hero p { margin: 0; max-width: 500px; color: var(--muted); line-height: 1.7; font-size: 14px; }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hero-stats-center { justify-content: center; }
.hero-stat {
  min-width: 124px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.035);
}
.stat-big { font-size: 28px; font-weight: 850; letter-spacing: 0; }
.stat-label { color: var(--faint); font-size: 10px; font-weight: 850; letter-spacing: 0; text-transform: uppercase; margin-top: 3px; }

.ticker { overflow: hidden; border-bottom: 1px solid var(--line); background: rgba(16,19,26,.64); }
.ticker-track { display: inline-flex; min-width: 200%; animation: ticker 44s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 10px 18px; color: var(--muted); font-size: 12px; border-right: 1px solid var(--line); }
.tick strong { color: var(--green); font-family: var(--mono); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.toolbar {
  position: sticky;
  top: 62px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 10px 0 14px;
  padding: 10px 0;
  background: linear-gradient(180deg, rgba(7,8,13,.94), rgba(7,8,13,.74));
  backdrop-filter: blur(16px);
}
.search, .input, .select, textarea.input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  color: var(--text);
  background: rgba(16,19,26,.96);
  outline: none;
}
.search-wrap { position: relative; }
.search-wrap .search { padding-right: 76px; }
.search-clear {
  position: absolute;
  right: 44px;
  top: 50%;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: none;
  place-items: center;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
}
.search-clear.show { display: grid; }
textarea.input { padding-top: 11px; line-height: 1.55; resize: vertical; }
.search { padding-left: 13px; background-image: radial-gradient(circle, var(--muted) 0 4px, transparent 5px); background-repeat: no-repeat; background-position: right 18px center; }
.search:focus, .input:focus, .select:focus, textarea.input:focus { border-color: rgba(0,229,160,.6); box-shadow: 0 0 0 3px rgba(0,229,160,.08); }
.filter-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}
.sport-pills {
  display: grid;
  grid-template-columns: 58px 42px 42px;
  gap: 7px;
}
.sport-chip {
  width: 100%;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 18px;
  font-weight: 850;
}
.sport-chip.wide { font-size: 12px; }
.sport-chip span { line-height: 1; }
.sport-chip.active { color: #00140d; background: var(--green); border-color: var(--green); }
.type-toggle {
  min-width: 0;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}
.type-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track {
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  background: rgba(255,255,255,.06);
}
.toggle-track span {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .18s ease, background .18s ease;
}
.type-toggle input:checked + .toggle-track { background: var(--green-soft); border-color: rgba(0,229,160,.45); }
.type-toggle input:checked + .toggle-track span { transform: translateX(20px); background: var(--green); }
.type-toggle small {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}
.chip.active { color: #00140d; background: var(--green); border-color: var(--green); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: 34px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16,19,26,.94);
  box-shadow: 0 12px 34px rgba(0,0,0,.2);
}
.card:hover { border-color: var(--line-strong); }
.odds-card { padding: 13px; display: flex; flex-direction: column; gap: 12px; }
.op-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #163429;
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 850;
}
.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-lg { width: 48px; height: 48px; font-size: 14px; }
.op-name { min-width: 0; flex: 1; }
.op-name strong { display: flex; align-items: center; gap: 5px; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.op-name small { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }
.verify { color: var(--green); font-size: 13px; }
.badges { display: flex; gap: 4px; flex-wrap: nowrap; justify-content: flex-end; align-items: center; }
.heart {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  font-size: 14px;
  line-height: 1;
}
.heart.active { color: var(--red); border-color: rgba(255,115,115,.35); background: var(--red-soft); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
  white-space: nowrap;
}
.badge.green { color: var(--green); background: var(--green-soft); border: 1px solid rgba(0,229,160,.23); }
.badge.yellow { color: var(--yellow); background: var(--yellow-soft); border: 1px solid rgba(246,200,95,.24); }
.badge.red { color: var(--red); background: var(--red-soft); border: 1px solid rgba(255,115,115,.24); }
.badge.blue { color: var(--blue); background: var(--blue-soft); border: 1px solid rgba(113,167,255,.24); }
.badge.violet { color: var(--violet); background: var(--violet-soft); border: 1px solid rgba(185,166,255,.24); }
.match { font-size: 15px; font-weight: 850; line-height: 1.35; letter-spacing: 0; }
.market { color: var(--yellow); font-size: 12px; line-height: 1.45; }
.legs { display: grid; gap: 6px; }
.leg { display: flex; justify-content: space-between; gap: 8px; padding: 8px 9px; border-radius: 7px; background: rgba(255,255,255,.035); font-size: 12px; }
.leg span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.odds-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.odds { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono); }
.old { color: var(--faint); text-decoration: line-through; font-size: 13px; }
.new { color: var(--green); font-size: 24px; font-weight: 850; letter-spacing: 0; }
.meta { color: var(--faint); font-size: 12px; line-height: 1.45; }
.claim-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px;
  gap: 10px;
  align-items: stretch;
}
.claim-row .btn { width: 100%; min-height: 58px; padding: 0 10px; }
.terms {
  display: grid;
  gap: 5px;
  min-width: 0;
  align-content: center;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
}
.terms div { min-width: 0; display: flex; gap: 5px; align-items: baseline; line-height: 1.25; }
.terms span { flex: 0 0 auto; color: var(--faint); font-size: 10px; font-weight: 850; }
.terms strong { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); font-size: 11px; }

.page { padding: 22px 0 calc(40px + env(safe-area-inset-bottom)); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.panel-head h2 { margin: 0 0 3px; letter-spacing: 0; font-size: clamp(24px, 5vw, 34px); }
.panel-head p { margin: 0; color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 7px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.layout { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: start; }
.side { padding: 8px; height: fit-content; position: sticky; top: 82px; }
.side button { width: 100%; justify-content: flex-start; margin-bottom: 6px; }
.side button.active, .mobile-tabbar button.active { color: #00140d; background: var(--green); border-color: var(--green); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-card { padding: 15px; }
.stat-card strong { display: block; font-size: 26px; letter-spacing: 0; }
.stat-card span { color: var(--faint); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: 0; }
.usage-stat strong { font-family: var(--mono); white-space: nowrap; }
.stat-button {
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.stat-button:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.progress { height: 7px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 9px; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--green); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.06); text-align: left; vertical-align: middle; }
th { color: var(--faint); background: rgba(255,255,255,.035); font-size: 10px; text-transform: uppercase; letter-spacing: 0; }
td { color: var(--muted); }
td strong { color: var(--text); }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

.mobile-list { display: none; gap: 10px; }
.mobile-card { padding: 13px; display: grid; gap: 11px; }
.mobile-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mobile-card-title { min-width: 0; }
.mobile-card-title strong { display: block; font-size: 14px; line-height: 1.35; }
.mobile-card-title span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.kv div { padding: 9px; border-radius: 7px; background: rgba(255,255,255,.035); }
.kv small { display: block; color: var(--faint); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: 0; margin-bottom: 4px; }
.kv strong { font-size: 13px; }

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}
.auth-card { width: min(430px, 100%); padding: 22px; }
.auth-card h1 { margin: 14px 0 6px; font-size: 31px; letter-spacing: 0; }
.auth-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--faint); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: 0; }
.suffix-field { position: relative; }
.suffix-field .input { padding-right: 42px; }
.suffix-field span {
  position: absolute;
  right: 13px;
  bottom: 13px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  pointer-events: none;
}
.hint { color: var(--faint); font-size: 12px; line-height: 1.5; }
.error { color: var(--red); background: var(--red-soft); border: 1px solid rgba(255,115,115,.25); padding: 10px 12px; border-radius: var(--radius); font-size: 13px; }
.success { color: var(--green); background: rgba(16,19,26,.96); border: 1px solid rgba(0,229,160,.25); padding: 11px 13px; border-radius: var(--radius); font-size: 13px; box-shadow: var(--shadow); }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 200;
  width: min(420px, calc(100% - 28px));
  transform: translateX(-50%);
  text-align: center;
  white-space: pre-line;
}
.empty { padding: 36px 18px; text-align: center; color: var(--muted); }
.empty strong { color: var(--text); display: block; margin-bottom: 4px; }

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  padding: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  overscroll-behavior: contain;
}
.modal {
  width: min(640px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(16,19,26,.96); backdrop-filter: blur(16px); z-index: 1; }
.modal-head h3 { margin: 0; letter-spacing: 0; }
.modal-body { padding: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.section-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.section-tools .search { max-width: 420px; }
.status-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 12px;
}
.status-tabs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.status-tabs .chip {
  width: 100%;
  min-width: 0;
  padding: 0 8px;
  font-size: 12px;
}
.report-stack { display: grid; gap: 14px; }
.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16,19,26,.94);
}
.report-toolbar strong { display: block; font-size: 18px; }
.report-toolbar span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.range-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  width: min(520px, 100%);
}
.range-tabs .chip { min-width: 0; padding: 0 8px; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.section-title { margin: 0 0 10px; font-size: 16px; }
.report-list { display: grid; gap: 9px; }
.report-item {
  display: grid;
  grid-template-columns: 32px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
}
.event-report { cursor: pointer; }
.event-report:hover { border-color: var(--line-strong); }
.event-report { grid-template-columns: 32px minmax(0, 1fr) auto; }
.rank {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #00140d;
  background: var(--green);
  font-weight: 900;
  font-size: 12px;
}
.report-main { min-width: 0; }
.report-main strong {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
}
.report-main span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 11px;
}
.report-clicks { text-align: right; }
.report-clicks strong { display: block; color: var(--green); font-family: var(--mono); font-size: 18px; }
.report-clicks span { color: var(--faint); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.report-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}
.report-hero span,
.report-hero small { display: block; color: var(--faint); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.report-hero strong { display: block; margin: 5px 0; color: var(--green); font-family: var(--mono); font-size: 34px; }
.report-hero p { margin: 0; color: var(--muted); line-height: 1.55; text-align: right; }
.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin-bottom: 14px;
}
.profile-avatar { width: 54px; height: 54px; font-size: 28px; }
.profile-head h2 { margin: 0 0 3px; }
.profile-head p { margin: 0; color: var(--muted); }
.favorite-list {
  display: grid;
  gap: 9px;
  max-width: 680px;
}
.favorite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 10px;
  padding: 9px;
  min-width: 0;
  overflow: hidden;
}
.favorite-brand {
  display: inline-grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.favorite-brand .logo-lg { width: 38px; height: 38px; font-size: 13px; }
.favorite-brand strong { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.favorite-remove {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255,115,115,.28);
  border-radius: var(--radius);
  background: var(--red-soft);
  color: var(--red);
  font-weight: 900;
  line-height: 1;
}
.favorite-row .btn { min-height: 32px; padding: 0 11px; font-size: 11px; white-space: nowrap; }
.detail-modal { max-width: 560px; }
.detail-stack { display: grid; gap: 14px; }
.detail-title { font-weight: 900; font-size: 20px; line-height: 1.3; }
.detail-sub { margin-top: 4px; color: var(--muted); font-size: 12px; }
.detail-badges { display: flex; gap: 7px; flex-wrap: wrap; }
.detail-line,
.detail-grid > div,
.detail-leg {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
}
.detail-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 11px;
}
.detail-line span,
.detail-grid span { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.detail-legs { display: grid; gap: 8px; }
.detail-leg {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px;
}
.detail-leg > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 900;
}
.detail-leg strong,
.detail-leg small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-leg small { margin-top: 3px; color: var(--muted); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.detail-grid > div { display: grid; gap: 5px; padding: 10px; }
.detail-grid strong { min-width: 0; overflow-wrap: anywhere; }
.coupon-builder {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
}
.coupon-builder[hidden] { display: none; }
.coupon-builder-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.coupon-builder-head strong { display: block; font-size: 14px; }
.coupon-builder-head span { display: block; margin-top: 3px; color: var(--faint); font-size: 12px; line-height: 1.45; }
.coupon-legs { display: grid; gap: 9px; }
.coupon-leg-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16,19,26,.74);
}
.coupon-leg-summary {
  min-width: 0;
  min-height: 38px;
  border: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 9px;
  row-gap: 2px;
  align-items: center;
  color: var(--text);
  background: transparent;
  text-align: left;
}
.leg-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 999px;
  color: #00140d;
  background: var(--green);
  font-weight: 900;
  font-size: 12px;
  grid-row: 1 / 3;
}
.leg-summary-text,
.leg-summary-market {
  min-width: 0;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.leg-summary-text { font-weight: 850; font-size: 13px; }
.leg-summary-market { color: var(--muted); font-size: 11px; }
.coupon-leg-body {
  grid-column: 1 / 3;
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(130px, .9fr) minmax(120px, .9fr);
  gap: 8px;
  padding-top: 8px;
}
.coupon-leg-row.collapsed .coupon-leg-body { display: none; }
.confirm-modal { max-width: 430px; }
.confirm-back { place-items: center; padding: 18px; }
.confirm-text { margin: 0 0 16px; color: var(--muted); line-height: 1.65; }
.confirm-actions { justify-content: flex-end; }
.sticky-submit { position: sticky; bottom: 0; z-index: 2; }
.notice { padding: 12px; border-radius: var(--radius); background: var(--blue-soft); border: 1px solid rgba(113,167,255,.22); color: var(--muted); font-size: 13px; line-height: 1.55; }
.switch-row { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.025); }
.switch-row input { width: 18px; height: 18px; accent-color: var(--green); }

.mobile-tabbar {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 45;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16,19,26,.9);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  gap: 6px;
}
.mobile-tabbar button { flex: 1; min-width: 0; }

@media (max-width: 920px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .side::-webkit-scrollbar { display: none; }
  .side button { width: auto; white-space: nowrap; margin-bottom: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-card { grid-template-columns: 1fr; }
  .hero-stats { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 22px, 1120px); }
  .topbar-inner { min-height: 58px; }
  .nav-actions .btn-ghost[data-page="public"] { display: none; }
  .hero { padding: 10px 0 8px; }
  .hero-card { padding: 16px; box-shadow: none; }
  .hero p { font-size: 13px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-stat { min-width: 0; }
  .toolbar { top: 58px; margin-top: 6px; }
  .filter-row { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
  .sport-pills { grid-template-columns: 50px 37px 37px; gap: 5px; }
  .sport-chip { height: 36px; font-size: 16px; }
  .sport-chip.wide { font-size: 11px; }
  .type-toggle { gap: 7px; }
  .toggle-track { width: 42px; height: 26px; }
  .toggle-track span { width: 18px; height: 18px; }
  .type-toggle input:checked + .toggle-track span { transform: translateX(16px); }
  .type-toggle small { font-size: 11px; white-space: normal; line-height: 1.25; }
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .odds-card { padding: 12px; }
  .claim-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; }
  .claim-row .btn { min-height: 58px; padding: 0 10px; }
  .terms { padding: 6px 8px; }
  .terms span { font-size: 9px; }
  .terms strong { font-size: 10px; }
  .badges { max-width: none; }
  .page { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .panel-head { align-items: stretch; }
  .panel-head .btn-primary { width: 100%; }
  .side { display: none; }
  .mobile-tabbar { display: flex; }
  .desktop-table { display: none; }
  .mobile-list { display: grid; }
  .kv { grid-template-columns: repeat(2, 1fr); }
  .form-grid-2 { grid-template-columns: 1fr; }
  .status-tabs { gap: 5px; }
  .status-tabs .chip { min-height: 36px; padding: 0 4px; font-size: 10.5px; }
  .report-toolbar { align-items: stretch; flex-direction: column; }
  .range-tabs { width: 100%; gap: 5px; }
  .range-tabs .chip { min-height: 36px; padding: 0 4px; font-size: 10px; }
  .report-grid { grid-template-columns: 1fr; }
  .report-item { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; }
  .report-item .logo { display: none; }
  .event-report { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .report-clicks strong { font-size: 16px; }
  .report-hero { display: grid; }
  .report-hero p { text-align: left; }
  .profile-chip strong { display: none; }
  .refresh-chip { min-height: 34px; padding: 0 8px; }
  .refresh-chip strong { display: none; }
  .favorite-list { max-width: none; }
  .favorite-row { grid-template-columns: minmax(0, 1fr) auto 24px; gap: 7px; padding: 8px; }
  .favorite-brand { grid-template-columns: 30px minmax(0, 1fr); gap: 6px; }
  .favorite-brand .logo-lg { width: 30px; height: 30px; font-size: 11px; }
  .favorite-brand strong { font-size: 12px; }
  .favorite-row .btn { width: auto; min-height: 30px; padding: 0 8px; font-size: 10px; }
  .favorite-remove { width: 24px; height: 24px; font-size: 13px; }
  .detail-grid { grid-template-columns: 1fr; }
  .coupon-builder { padding: 10px; }
  .coupon-builder-head { align-items: stretch; }
  .coupon-leg-row {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 8px;
  }
  .coupon-leg-summary { grid-template-columns: 28px minmax(0, 1fr); }
  .coupon-leg-body { grid-template-columns: 1fr; }
  .leg-number { width: 28px; height: 28px; }
  .modal { max-height: 94vh; }
}

@media (min-width: 681px) {
  .desktop-table { display: block; }
}

@media (min-width: 700px) {
  .modal-back { place-items: center; padding: 18px; }
  .modal { border-radius: var(--radius); }
}

@media print {
  body { display: none !important; }
}
