:root {
  color-scheme: dark;
  --bg: #07140f;
  --panel: #101f19;
  --panel-2: #162820;
  --ink: #f4f7f5;
  --muted: #9cafaa;
  --line: rgba(255, 255, 255, 0.1);
  --green: #30e17b;
  --green-dark: #092d1b;
  --yellow: #f6c84c;
  --red: #ff7979;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -15%, rgba(48, 225, 123, 0.14), transparent 34rem),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(48, 225, 123, 0.42);
  outline-offset: 2px;
}
.shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 20, 15, 0.9);
  backdrop-filter: blur(16px);
}
.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 850; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #052113;
  background: var(--green);
  font-weight: 950;
  box-shadow: 0 0 0 5px rgba(48, 225, 123, 0.1);
}
.brand small {
  display: block;
  color: var(--green);
  font-size: 9px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.nav { display: flex; align-items: center; gap: 5px; }
.nav a { padding: 10px 12px; border-radius: 6px; color: var(--muted); font-size: 13px; font-weight: 750; }
.nav a:hover, .nav a.active { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.account { display: flex; align-items: center; gap: 9px; }
.account form { margin: 0; }
.verify-badge {
  padding: 6px 8px;
  border-radius: 999px;
  color: var(--yellow);
  background: rgba(246, 200, 76, 0.1);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}
.wallet { padding: 7px 11px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.wallet span { display: block; color: var(--muted); font-size: 9px; letter-spacing: 0.8px; text-transform: uppercase; }
.wallet strong { font-size: 14px; font-variant-numeric: tabular-nums; }
i { color: var(--yellow); font-style: normal; }
main { padding: 32px 0 80px; }
.hero {
  min-height: 225px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.hero.compact { min-height: 175px; }
.eyebrow {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(36px, 6vw, 62px); line-height: 1; letter-spacing: 0; }
h2 { margin: 0; font-size: 18px; }
.hero-copy, .auth-copy p {
  max-width: 650px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.hero-stat {
  min-width: 150px;
  padding: 16px 18px;
  border-left: 3px solid var(--green);
  background: var(--panel);
}
.hero-stat strong { display: block; font-size: 30px; }
.hero-stat span { color: var(--muted); font-size: 11px; }
.play-notice {
  margin-bottom: 28px;
  padding: 11px 13px;
  border: 1px solid rgba(246, 200, 76, 0.2);
  border-radius: 6px;
  color: #c5d2cd;
  background: rgba(246, 200, 76, 0.07);
  font-size: 12px;
}
.play-notice strong { color: var(--yellow); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
}
.fixture-section { margin-bottom: 42px; }
.fixture-section:last-child { margin-bottom: 0; }
.section-count { color: var(--muted); font-size: 11px; }
.live-eyebrow { color: var(--yellow); }
.text-link { color: var(--green); font-size: 12px; font-weight: 800; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.game-card {
  overflow: hidden;
  padding: 0 16px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.game-card.closed { background: #0d1a15; }
.in-play-card { border-color: rgba(246, 200, 76, 0.28); }
.result-card { border-color: rgba(48, 225, 123, 0.2); }
.game-meta, .venue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}
.game-meta { margin: 0 -16px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.venue { margin: 0 -16px 14px; padding: 10px 16px; border-top: 1px solid var(--line); }
.game-rules {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 0 14px;
  padding: 9px 10px;
  border: 1px solid rgba(48, 225, 123, 0.14);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(48, 225, 123, 0.045);
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
}
.game-rules span { padding: 0 10px; border-right: 1px solid var(--line); }
.game-rules span:last-child { border-right: 0; }
.game-rules strong { color: var(--ink); }
.status {
  display: inline-flex;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.open-status { color: var(--green); background: rgba(48, 225, 123, 0.1); }
.closed-status { color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.live-status { color: var(--yellow); background: rgba(246, 200, 76, 0.1); }
.teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 22px 0;
}
.team { min-width: 0; display: flex; align-items: center; gap: 9px; }
.team.away { flex-direction: row-reverse; text-align: right; }
.team strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.team-code {
  flex: 0 0 38px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #07140f;
  background: #e6eee9;
  font-size: 9px;
  font-weight: 900;
}
.versus { text-align: center; }
.versus strong { display: block; font-size: 13px; }
.versus span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 850;
}
.button.small { min-height: 35px; padding: 7px 11px; font-size: 11px; }
.button.full { width: 100%; }
.button.primary { color: #052012; background: var(--green); }
.button.primary:hover { filter: brightness(1.06); }
.button.secondary { color: var(--green); border-color: rgba(48, 225, 123, 0.3); background: rgba(48, 225, 123, 0.08); }
.button.ghost { color: var(--muted); border-color: var(--line); background: transparent; }
.button.danger { color: var(--red); border-color: rgba(255, 121, 121, 0.25); background: rgba(255, 121, 121, 0.08); }
.button:disabled { opacity: 0.45; cursor: not-allowed; }
.prediction-form { padding-top: 14px; }
.prediction-form[hidden] { display: none; }
.form-note { margin: 0 0 11px; color: var(--muted); font-size: 10px; text-align: center; }
.score-entry { display: grid; grid-template-columns: 1fr 18px 1fr; align-items: end; gap: 8px; margin-bottom: 13px; }
.score-entry label span { display: block; min-height: 28px; margin-bottom: 5px; color: var(--muted); font-size: 10px; text-align: center; }
.score-entry input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #091610;
  font-size: 22px;
  font-weight: 900;
  text-align: center;
}
.score-entry > strong { padding-bottom: 13px; text-align: center; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #091610;
}
.credit-input { position: relative; }
.credit-input i { position: absolute; top: 12px; left: 13px; }
.credit-input input { padding-left: 32px; }
.locked-message {
  min-height: 54px;
  display: grid;
  place-content: center;
  padding: 9px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
}
.locked-message strong { font-size: 12px; }
.locked-message span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.live-message { background: rgba(246, 200, 76, 0.06); }
.winner-panel {
  overflow: hidden;
  border: 1px solid rgba(48, 225, 123, 0.18);
  border-radius: 6px;
  background: var(--green-dark);
}
.winner-title {
  margin: 0;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(48, 225, 123, 0.16);
  color: #8cc7a7;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
.winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px;
  border-bottom: 1px solid rgba(48, 225, 123, 0.12);
}
.winner-row:last-child { border-bottom: 0; }
.winner-row strong { display: block; font-size: 12px; }
.winner-row span { display: block; margin-top: 3px; color: #8cc7a7; font-size: 9px; }
.winner-credit { text-align: right; }
.winner-credit strong { color: var(--green); }
.no-winner { padding: 13px; text-align: center; }
.no-winner strong { display: block; font-size: 12px; }
.no-winner span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.board-link {
  display: block;
  margin-top: 11px;
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.board-link:hover { text-decoration: underline; }
.board-hero h1 { font-size: clamp(32px, 5vw, 52px); }
.live-board-stat { border-color: var(--yellow); }
.live-board-stat strong { color: var(--yellow); font-size: 21px; }
.board-notice {
  margin-bottom: 20px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 11px;
}
.score-groups { display: grid; gap: 12px; }
.score-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.score-group.winning-group {
  border-color: rgba(48, 225, 123, 0.42);
  box-shadow: 0 0 0 2px rgba(48, 225, 123, 0.07);
}
.score-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.score-group-head > div { display: flex; align-items: center; gap: 10px; }
.score-group-head > div span { color: var(--muted); font-size: 11px; }
.score-group-head > div strong { font-size: 21px; }
.slot-count { color: var(--muted); font-size: 10px; font-weight: 750; }
.anonymous-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; padding: 13px 16px; }
.anonymous-slots span {
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  text-align: center;
}
.anonymous-slots span.used {
  border-style: solid;
  border-color: rgba(246, 200, 76, 0.22);
  color: var(--yellow);
  background: rgba(246, 200, 76, 0.06);
}
.slot-progress { display: grid; gap: 8px; padding: 14px 16px; }
.slot-progress > div { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.slot-progress > div span { display: block; height: 100%; border-radius: inherit; background: var(--yellow); }
.slot-progress strong { color: var(--muted); font-size: 10px; }
.board-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 90px;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.board-entry:last-child { border-bottom: 0; }
.board-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.board-user .avatar { flex: 0 0 34px; }
.board-user strong { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.board-user span:not(.avatar), .board-stake span, .board-outcome span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.board-stake, .board-outcome { text-align: right; }
.board-stake strong, .board-outcome strong { display: block; margin-top: 3px; font-size: 12px; }
.board-outcome.won strong { color: var(--green); }
.board-outcome.lost strong { color: var(--red); }
.flash-stack { display: grid; gap: 8px; margin-bottom: 8px; }
.flash { padding: 11px 13px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.flash.success { color: #bdf1d0; border-color: rgba(48, 225, 123, 0.22); background: rgba(48, 225, 123, 0.09); }
.flash.error { color: #ffd0d0; border-color: rgba(255, 121, 121, 0.22); background: rgba(255, 121, 121, 0.08); }
.auth-layout {
  min-height: calc(100vh - 184px);
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 80px;
}
.auth-copy h1 { max-width: 620px; }
.form-panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.form-panel h2 { margin-bottom: 22px; }
.field-action { display: flex; justify-content: flex-end; margin: -6px 0 14px; }
.field-action a { color: var(--green); font-size: 10px; font-weight: 750; }
.mail-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  color: var(--green);
  background: rgba(48, 225, 123, 0.1);
  font-size: 22px;
  font-weight: 900;
}
.panel-copy { margin: -10px 0 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.panel-copy strong { color: var(--ink); }
.form-footer { margin: 15px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.form-footer a { color: var(--green); font-weight: 750; }
.table-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.table-head, .prediction-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 110px 90px; align-items: center; gap: 16px; padding: 13px 18px; }
.table-head { color: var(--muted); border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: 0.8px; text-transform: uppercase; }
.prediction-row { border-bottom: 1px solid var(--line); }
.prediction-row:last-child { border-bottom: 0; }
.prediction-row > div strong { display: block; font-size: 13px; }
.prediction-row > div span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.prediction-row .score { font-size: 20px; }
.prediction-row .stake { color: var(--ink); }
.admin-layout { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: 22px; align-items: start; }
.admin-form { position: sticky; top: 92px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.check-field { display: flex; align-items: center; gap: 9px; margin: 4px 0 18px; color: var(--muted); font-size: 11px; }
.check-field input { accent-color: var(--green); }
.admin-game {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--panel);
}
.admin-game:first-of-type { border-radius: 8px 8px 0 0; }
.admin-game:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.admin-game strong { display: block; font-size: 13px; }
.admin-game-info { min-width: 190px; }
.admin-game-info b { margin: 0 6px; color: var(--green); font-size: 17px; }
.admin-game span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.admin-game .game-rules { color: #c2d0cb; }
.admin-game-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.game-settings-form { display: flex; align-items: center; gap: 6px; }
.game-settings-form input {
  width: 62px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: #091610;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.admin-user-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.admin-user-stats div { min-width: 92px; padding: 13px; background: var(--panel); text-align: center; }
.admin-user-stats strong { display: block; font-size: 22px; }
.admin-user-stats span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.user-table { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.user-table-head, .user-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) minmax(150px, 1fr) 100px 90px minmax(150px, 1fr) minmax(170px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
}
.user-table-head { border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .7px; text-transform: uppercase; }
.user-row { border-bottom: 1px solid var(--line); }
.user-row:last-child { border-bottom: 0; }
.user-row.disabled-user { opacity: .62; background: rgba(255, 121, 121, .025); }
.user-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-identity .avatar { flex: 0 0 34px; }
.user-identity strong { display: block; font-size: 12px; }
.user-identity div span { display: block; overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.user-statuses { display: flex; gap: 5px; flex-wrap: wrap; }
.user-credit { font-size: 12px; }
.user-credit small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 600; }
.user-record strong { display: block; font-size: 13px; }
.user-record span, .user-login span { color: var(--muted); font-size: 9px; }
.user-login strong { display: block; color: #c1cfca; font-size: 9px; font-weight: 600; line-height: 1.35; }
.admin-footnote { margin: 10px 0 0; color: var(--muted); font-size: 9px; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 18px; }
.metric-grid div { padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); }
.metric-grid strong { display: block; font-size: 24px; }
.metric-grid span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.export-bar, .admin-filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.export-bar > span { margin-right: 4px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.activity-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.page-card-head { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.page-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.activity-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-row strong { font-size: 11px; }
.activity-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.activity-row .positive { color: var(--green); }
.activity-row .negative { color: var(--red); }
.activity-empty { padding: 24px; color: var(--muted); font-size: 10px; text-align: center; }
.topup-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 22px; align-items: start; }
.topup-form-panel { position: sticky; top: 92px; }
.deposit-instructions, .payment-settings-panel { margin-bottom: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.deposit-details { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 16px; }
.deposit-details div { min-width: 0; padding: 0 14px; border-right: 1px solid var(--line); }
.deposit-details div:first-child { padding-left: 0; }
.deposit-details div:last-child { padding-right: 0; border-right: 0; }
.deposit-details dt { margin-bottom: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; }
.deposit-details dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 13px; font-weight: 700; }
.deposit-reference { margin: 0; padding: 0 16px 16px; color: var(--muted); font-size: 10px; white-space: pre-wrap; }
.payment-estimate { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, .025); }
.payment-estimate span { color: var(--muted); font-size: 10px; }
.payment-estimate strong { color: var(--green); font-size: 13px; }
.payment-settings-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 16px; }
.payment-settings-form .field { margin: 0; }
.payment-settings-form .payment-reference-field { grid-column: 1 / -1; }
.payment-settings-form textarea { width: 100%; resize: vertical; }
.payment-settings-form .check-field { grid-column: 1 / -1; }
.payment-settings-form > .button { justify-self: start; }
.file-input { height: auto !important; padding: 10px !important; }
.topup-history-head { border: 1px solid var(--line); border-radius: 8px 8px 0 0; background: var(--panel); }
.topup-list { overflow: hidden; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; background: var(--panel); }
.topup-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.topup-item:last-child { border-bottom: 0; }
.topup-item strong { display: block; font-size: 13px; }
.topup-item span, .topup-item p { color: var(--muted); font-size: 9px; }
.topup-item p { margin: 6px 0 0; }
.topup-result { text-align: right; }
.topup-result > strong { margin-top: 7px; color: var(--green); }
.topup-admin-list { display: grid; gap: 10px; }
.topup-review { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.topup-review-main { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(210px, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 16px; }
.topup-request-meta strong { display: block; font-size: 13px; }
.topup-request-meta span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.topup-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .018); }
.topup-actions form { display: grid; grid-template-columns: 120px minmax(150px, 1fr) auto; gap: 7px; }
.topup-actions form:last-child { grid-template-columns: minmax(180px, 1fr) auto; }
.topup-actions input { min-width: 0; height: 35px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #091610; font-size: 10px; }
.topup-reviewed { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.topup-reviewed strong { color: var(--green); }
.proof-link { display: block; margin-top: 8px; color: var(--green); font-size: 10px; font-weight: 800; }
.refund-credit { margin-top: 8px; color: var(--green) !important; font-size: 9px !important; }
.withdrawal-review-main { grid-template-columns: minmax(170px, .8fr) minmax(190px, .7fr) minmax(220px, 1fr) auto; }
.bank-details strong, .bank-details span, .bank-details code { display: block; }
.bank-details strong { font-size: 12px; }
.bank-details span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.bank-details code { margin-top: 5px; color: var(--yellow); font-size: 11px; letter-spacing: .5px; }
.withdrawal-actions { display: grid; grid-template-columns: 1.4fr .8fr; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .018); }
.withdrawal-actions form { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) auto; gap: 7px; }
.withdrawal-actions form:last-child { grid-template-columns: minmax(180px, 1fr) auto; }
.withdrawal-actions input { min-width: 0; height: 35px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #091610; font-size: 10px; }
.admin-filter-bar input, .admin-filter-bar select, .inline-action input {
  height: 35px; padding: 0 9px; border: 1px solid var(--line); border-radius: 5px;
  color: var(--ink); background: #091610; font-size: 10px;
}
.admin-filter-bar input { min-width: 220px; }
.row-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.inline-action { position: relative; }
.inline-action summary { cursor: pointer; color: var(--green); font-size: 10px; font-weight: 800; list-style: none; }
.inline-action summary::-webkit-details-marker { display: none; }
.inline-action[open] form {
  position: absolute; z-index: 12; right: 0; top: 26px; min-width: 250px;
  display: grid; gap: 7px; padding: 10px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--panel-2); box-shadow: var(--shadow);
}
.danger-action summary { color: var(--red); }
.fixture-edit-form { min-width: 330px !important; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 15px; color: var(--muted); font-size: 10px; }
.pagination a { color: var(--green); font-weight: 800; }
.cancelled-game { opacity: .72; }
.cancelled-info { text-align: right; }
.cancelled-info small { display: block; max-width: 180px; margin-top: 5px; color: var(--muted); font-size: 9px; }
.settled-game { border-color: rgba(48, 225, 123, 0.22); }
.settlement-form {
  display: grid;
  grid-template-columns: 58px 12px 58px auto;
  align-items: end;
  gap: 7px;
}
.settlement-form label span {
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.settlement-form input {
  width: 58px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  background: #091610;
  font-weight: 900;
  text-align: center;
}
.settlement-form > strong { padding-bottom: 8px; text-align: center; }
.prediction-result {
  display: inline-flex;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}
.prediction-result.won { color: var(--green); background: rgba(48, 225, 123, 0.1); }
.prediction-result.lost { color: var(--red); background: rgba(255, 121, 121, 0.08); }
.final-result {
  margin-top: -1px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 10px;
}
.empty-state {
  min-height: 330px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 40px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  text-align: center;
}
.empty-state > span {
  min-width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border: 1px solid rgba(48, 225, 123, 0.35);
  border-radius: 50%;
  color: var(--green);
  font-weight: 900;
}
.empty-state p { max-width: 420px; margin: 8px 0 18px; color: var(--muted); font-size: 12px; }
.small-empty { min-height: 170px; }
.error-page { margin-top: 60px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .game-grid { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; gap: 28px; padding: 54px 0; }
  .auth-copy { text-align: center; }
  .auth-copy p { margin-left: auto; margin-right: auto; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-form { position: static; }
  .topup-layout { grid-template-columns: 1fr; }
  .topup-form-panel { position: static; }
  .deposit-details { grid-template-columns: 1fr 1fr; gap: 14px 0; }
  .deposit-details div, .deposit-details div:first-child, .deposit-details div:last-child { padding: 0 12px; border-right: 0; }
  .payment-settings-form { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 20px); }
  .topbar-inner { min-height: 62px; }
  .brand small, .wallet span, .account .ghost { display: none; }
  .wallet { padding: 7px 9px; }
  main { padding-top: 22px; }
  .hero { min-height: 190px; }
  .hero-stat { display: none; }
  .hero.compact { min-height: 150px; }
  h1 { font-size: 38px; }
  .teams { grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); }
  .team { flex-direction: column; align-items: flex-start; }
  .team.away { flex-direction: column; align-items: flex-end; }
  .team strong { font-size: 12px; }
  .versus span { font-size: 8px; }
  .game-rules { align-items: stretch; flex-direction: column; gap: 5px; }
  .game-rules span { padding: 0; border-right: 0; }
  .table-head { display: none; }
  .prediction-row { grid-template-columns: 1fr auto; }
  .prediction-row .stake, .prediction-row .status { margin-top: 5px; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-game { align-items: flex-start; flex-direction: column; }
  .admin-game form, .admin-game .button { width: 100%; }
  .admin-game-actions { width: 100%; }
  .game-settings-form { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
  .game-settings-form input { width: 100%; }
  .game-settings-form .button { grid-column: 1 / -1; }
  .settlement-form { grid-template-columns: 1fr 12px 1fr; width: 100%; }
  .settlement-form input { width: 100%; }
  .settlement-form .button { grid-column: 1 / -1; margin-top: 4px; }
  .score-group-head { align-items: flex-start; flex-direction: column; }
  .score-group-head > div { width: 100%; justify-content: center; }
  .board-entry { grid-template-columns: 1fr auto; }
  .board-outcome { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .admin-user-stats { display: none; }
  .user-table-head { display: none; }
  .user-row { grid-template-columns: 1fr auto; gap: 11px; }
  .user-statuses, .user-record, .user-login { grid-column: 1 / -1; }
  .user-row form, .user-row .button { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-filter-bar { align-items: stretch; flex-direction: column; }
  .admin-filter-bar input, .admin-filter-bar select, .admin-filter-bar .button { width: 100%; }
  .inline-action[open] form { position: static; min-width: 0; margin-top: 7px; }
  .fixture-edit-form { min-width: 0 !important; }
  .topup-review-main { grid-template-columns: 1fr auto; }
  .topup-request-meta { grid-column: 1 / -1; }
  .withdrawal-review-main .bank-details { grid-column: 1 / -1; }
  .topup-actions { grid-template-columns: 1fr; }
  .topup-actions form, .topup-actions form:last-child { grid-template-columns: 1fr; }
  .topup-actions .button { width: 100%; }
  .topup-reviewed { align-items: flex-start; flex-direction: column; }
  .deposit-details, .payment-settings-form { grid-template-columns: 1fr; }
  .withdrawal-actions { grid-template-columns: 1fr; }
  .withdrawal-actions form, .withdrawal-actions form:last-child { grid-template-columns: 1fr; }
  .withdrawal-actions .button { width: 100%; }
}
