:root,
:root[data-theme="light"],
:root[data-theme="system"] {
  color-scheme: light;
  --bg: #f4f6fb;
  --ink: #111827;
  --ink-strong: #050913;
  --muted: #667085;
  --line: #dbe1ec;
  --paper: #eef2f8;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --surface-3: #e4ebf6;
  --soft: #eaf0ff;
  --coal: #090e1c;
  --green: #1f5eff;
  --green-dark: #1646c9;
  --lime: #ffd76b;
  --amber: #e94560;
  --gold: #d6a528;
  --red: #d64545;
  --blue: #1f5eff;
  --portal-teal: #1f5eff;
  --portal-teal-dark: #1646c9;
  --portal-orange: #1f5eff;
  --portal-orange-dark: #1646c9;
  --portal-input: #f0f3f8;
  --primary: #090e1c;
  --primary-hover: #1f5eff;
  --primary-text: #ffffff;
  --accent: #1f5eff;
  --accent-strong: #1646c9;
  --accent-soft: #e8efff;
  --danger: #d64545;
  --field: #f1f4f9;
  --field-strong: #ffffff;
  --chip-bg: #e7ecf5;
  --chip-text: #1d2637;
  --chip-green-bg: #e8efff;
  --chip-green-text: #1646c9;
  --chip-blue-bg: #e3eef9;
  --chip-blue-text: #1646c9;
  --chip-red-bg: #ffe6ea;
  --chip-red-text: #a82738;
  --wallet-grad: linear-gradient(135deg, rgba(31, 94, 255, 0.1), rgba(214, 165, 40, 0.12)), var(--surface);
  --hero-grad: linear-gradient(135deg, rgba(7, 10, 19, 0.96), rgba(18, 28, 66, 0.88) 48%, rgba(214, 165, 40, 0.24));
  --hover-soft: #edf3ff;
  --shadow: 0 18px 46px rgba(15, 23, 42, 0.11);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a13;
  --ink: #f5f7fb;
  --ink-strong: #ffffff;
  --muted: #9aa6bd;
  --line: #273247;
  --paper: #0b1020;
  --surface: #101728;
  --surface-2: #151d31;
  --surface-3: #202b44;
  --soft: #151f36;
  --coal: #050913;
  --green: #78a7ff;
  --green-dark: #a8c2ff;
  --lime: #ffe39a;
  --amber: #ff6b82;
  --gold: #f2c75b;
  --red: #ff7a7a;
  --blue: #78a7ff;
  --portal-teal: #78a7ff;
  --portal-teal-dark: #a8c2ff;
  --portal-orange: #f2c75b;
  --portal-orange-dark: #ffe39a;
  --portal-input: #151d31;
  --primary: #f2c75b;
  --primary-hover: #ffe39a;
  --primary-text: #070a13;
  --accent: #78a7ff;
  --accent-strong: #f2c75b;
  --accent-soft: #17223d;
  --danger: #ff7a7a;
  --field: #171f33;
  --field-strong: #101728;
  --chip-bg: #232b3d;
  --chip-text: #f5f7fb;
  --chip-green-bg: #17264d;
  --chip-green-text: #a8c2ff;
  --chip-blue-bg: #17264d;
  --chip-blue-text: #a8c2ff;
  --chip-red-bg: #4b2028;
  --chip-red-text: #ffc2ca;
  --wallet-grad: linear-gradient(135deg, rgba(120, 167, 255, 0.15), rgba(242, 199, 91, 0.12)), var(--surface);
  --hero-grad: linear-gradient(135deg, rgba(3, 6, 16, 0.96), rgba(18, 28, 66, 0.9) 58%, rgba(233, 69, 96, 0.28));
  --hover-soft: #17223d;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --bg: #070a13;
    --ink: #f5f7fb;
    --ink-strong: #ffffff;
    --muted: #9aa6bd;
    --line: #273247;
    --paper: #0b1020;
    --surface: #101728;
    --surface-2: #151d31;
    --surface-3: #202b44;
    --soft: #151f36;
    --coal: #050913;
    --green: #78a7ff;
    --green-dark: #a8c2ff;
    --lime: #ffe39a;
    --amber: #ff6b82;
    --gold: #f2c75b;
    --red: #ff7a7a;
    --blue: #78a7ff;
    --portal-teal: #78a7ff;
    --portal-teal-dark: #a8c2ff;
    --portal-orange: #f2c75b;
    --portal-orange-dark: #ffe39a;
    --portal-input: #151d31;
    --primary: #f2c75b;
    --primary-hover: #ffe39a;
    --primary-text: #070a13;
    --accent: #78a7ff;
    --accent-strong: #f2c75b;
    --accent-soft: #17223d;
    --danger: #ff7a7a;
    --field: #171f33;
    --field-strong: #101728;
    --chip-bg: #232b3d;
    --chip-text: #f5f7fb;
    --chip-green-bg: #17264d;
    --chip-green-text: #a8c2ff;
    --chip-blue-bg: #17264d;
    --chip-blue-text: #a8c2ff;
    --chip-red-bg: #4b2028;
    --chip-red-text: #ffc2ca;
    --wallet-grad: linear-gradient(135deg, rgba(120, 167, 255, 0.15), rgba(242, 199, 91, 0.12)), var(--surface);
    --hero-grad: linear-gradient(135deg, rgba(3, 6, 16, 0.96), rgba(18, 28, 66, 0.9) 58%, rgba(233, 69, 96, 0.28));
    --hover-soft: #17223d;
    --shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

button:hover {
  transform: translateY(-1px);
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  margin-top: 10px;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.app-shell {
  min-height: 100vh;
}

.hero {
  color: #fff;
  background:
    var(--hero-grad),
    url("assets/stadium-hero.png") center / cover;
}

.hero {
  min-height: 250px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-logo {
  position: relative;
  display: grid;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  place-items: center;
  filter: drop-shadow(0 10px 18px rgba(5, 9, 19, 0.24));
}

.brand-logo img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.logo-shield,
.logo-ball,
.logo-star {
  position: absolute;
}

.logo-shield {
  inset: 3px 6px 4px;
  border: 2px solid rgba(255, 227, 154, 0.9);
  border-radius: 12px 12px 16px 16px;
  background: linear-gradient(140deg, #1f5eff 0 34%, #d6a528 35% 52%, #071022 53% 100%);
  clip-path: polygon(50% 0, 94% 16%, 88% 72%, 50% 100%, 12% 72%, 6% 16%);
}

.logo-shield::after {
  content: "";
  position: absolute;
  inset: 7px 9px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 48% 48%, #121a3a 0 49%, #d6a528 51% 59%, transparent 61%);
}

.logo-ball {
  width: 22px;
  height: 22px;
  border: 2px solid #ffe39a;
  border-radius: 999px;
}

.logo-ball::before,
.logo-ball::after {
  content: "";
  position: absolute;
  background: #ffe39a;
}

.logo-ball::before {
  top: 9px;
  right: 3px;
  left: 3px;
  height: 2px;
}

.logo-ball::after {
  top: 3px;
  bottom: 3px;
  left: 9px;
  width: 2px;
}

.logo-star {
  top: 8px;
  right: 9px;
  width: 9px;
  height: 9px;
  background: #ffe39a;
  clip-path: polygon(50% 0, 62% 36%, 100% 36%, 69% 58%, 82% 100%, 50% 74%, 18% 100%, 31% 58%, 0 36%, 38% 36%);
}

.brand-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: var(--lime);
  color: #10140d;
  font-weight: 900;
}

.star-player {
  pointer-events: none;
  user-select: none;
}

.star-player svg {
  display: block;
  width: 100%;
  height: auto;
}

.session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 750;
  white-space: nowrap;
}

button.balance-pill {
  border-color: rgba(255, 255, 255, 0.28);
}

button.balance-pill:hover {
  background: rgba(215, 255, 106, 0.22);
  color: var(--lime);
}

.panel .status-pill {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 52px 18px 32px;
}

.eyebrow {
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy {
  max-width: 640px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.55;
}

.nav-band {
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 247, 245, 0.94);
  backdrop-filter: blur(14px);
}

.tabs {
  display: flex;
  gap: 6px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 18px;
  overflow-x: auto;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 780;
  white-space: nowrap;
}

.tab.active {
  background: var(--coal);
  color: #fff;
}

.content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 42px;
  animation: pageEnter 0.42s ease both;
}

.panel,
.home-card,
.match-card,
.odd-button,
.market-button,
.funds-method-card,
.wallet-panel,
.wallet-stat-card,
.wallet-balance-card,
.player-card,
.selection-box {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.home-card:hover,
.wallet-panel:hover,
.wallet-stat-card:hover,
.wallet-balance-card:hover,
.funds-method-card:hover,
.match-card:hover,
.odd-button:hover,
.market-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.sportsbook-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.match-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}

.wallet-grid,
.kyc-grid,
.account-grid,
.bets-grid,
.message-admin-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.wide-panel {
  grid-column: 1 / -1;
}

.match-admin-grid {
  display: grid;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  font-size: 1.04rem;
  font-weight: 850;
}

.subtle {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.match-list,
.player-list {
  display: grid;
}

.match-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  outline: 0;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.match-card:last-child,
.player-card:last-child {
  border-bottom: 0;
}

.match-card:hover,
.match-card:focus-visible {
  background: #f7fbf7;
}

.match-meta,
.market-row,
.transaction-row,
.bet-row,
.player-main,
.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.teams {
  display: grid;
  gap: 7px;
  font-weight: 830;
}

.team-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flag-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.flag-dot.amber {
  background: var(--amber);
}

.odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.match-footer {
  display: flex;
  align-items: center;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 820;
}

.match-footer span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.odd-button {
  display: grid;
  min-height: 62px;
  gap: 4px;
  padding: 8px;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.odd-button:hover,
.odd-button.selected {
  border-color: var(--green);
  background: var(--accent-soft);
}

.odd-label {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.odd-price {
  font-size: 1.18rem;
  font-weight: 880;
}

.betslip {
  position: sticky;
  top: 68px;
}

.slip-body,
.form-stack,
.history-list,
.bet-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.detail-body {
  display: grid;
  gap: 18px;
  padding: 16px;
}

.detail-title {
  margin-top: 8px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.match-headline {
  color: #24342a;
  font-size: 1.05rem;
  line-height: 1.55;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  display: grid;
  gap: 7px;
  min-height: 82px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.stat-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.stat-card strong {
  font-size: 0.98rem;
  line-height: 1.3;
}

.form-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.form-dot {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: #e8eee9;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
}

.form-dot.w {
  background: var(--chip-green-bg);
  color: var(--chip-green-text);
}

.form-dot.l {
  background: #ffe2de;
  color: #8f241e;
}

.form-dot.d {
  background: #e0eef8;
  color: #194a71;
}

.market-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.market-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: var(--ink);
  text-align: left;
}

.market-button:hover,
.market-button.selected {
  border-color: var(--green);
  background: var(--accent-soft);
}

.detail-odds {
  margin-top: 10px;
}

.score-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.score-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.score-column-title {
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
}

.score-column-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.result-summary {
  grid-column: 1 / -1;
}

.settled-list .match-card {
  background: #fbfcfb;
}

.form-stack.inset {
  padding: 0;
}

.selection-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.slip-list {
  display: grid;
  gap: 10px;
}

.slip-selection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.icon-button:hover {
  border-color: var(--red);
  color: var(--red);
}

.field {
  display: grid;
  gap: 7px;
}

.two-col {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: end;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #cfd8d1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus {
  border-color: var(--green);
  outline: 3px solid rgba(21, 122, 74, 0.16);
}

.primary,
.secondary,
.danger,
.ghost,
.text-button,
.segment button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 8px;
  font-weight: 850;
}

.primary {
  background: var(--green);
  color: #fff;
}

.primary:hover {
  background: var(--green-dark);
}

.secondary {
  border: 1px solid #cfd8d1;
  background: #fff;
  color: var(--ink);
}

.danger {
  background: var(--red);
  color: #fff;
}

.ghost {
  background: transparent;
  color: inherit;
}

.text-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--green);
}

.small {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 0.86rem;
}

.full,
.link-button {
  width: 100%;
}

.link-button {
  text-decoration: none;
}

.segment {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.segment.wide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segment button {
  min-height: 34px;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}

.segment button.active {
  background: var(--coal);
  color: #fff;
}

.summary-number {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e8eee9;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 780;
  white-space: nowrap;
}

.chip.green {
  background: var(--chip-green-bg);
  color: var(--chip-green-text);
}

.chip.blue {
  background: #e0eef8;
  color: #194a71;
}

.chip.red {
  background: #ffe2de;
  color: #8f241e;
}

.amount-up {
  color: var(--green);
}

.amount-down {
  color: var(--red);
}

.align-right {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.divider {
  height: 1px;
  background: var(--line);
}

.empty {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 20px;
  color: var(--muted);
  text-align: center;
}

.login-layout {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  background: #050913;
  color: var(--ink);
}

.login-copy {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 42px clamp(22px, 6vw, 76px);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(5, 9, 19, 0.18), rgba(5, 9, 19, 0.42) 36%, rgba(7, 10, 19, 0.96) 76%, #050913),
    radial-gradient(circle at 80% 58%, rgba(47, 107, 255, 0.5), transparent 30%),
    linear-gradient(120deg, rgba(233, 69, 96, 0.34), rgba(255, 255, 255, 0) 42%),
    url("assets/stadium-hero.png") center / cover;
}

.login-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 9, 19, 0.82), rgba(5, 9, 19, 0.22) 62%, rgba(5, 9, 19, 0.12)),
    radial-gradient(circle at 76% 18%, rgba(255, 227, 154, 0.22), transparent 28%);
  pointer-events: none;
}

.campaign-copy {
  position: absolute;
  inset: 0;
  z-index: 0;
  align-items: stretch;
  justify-content: stretch;
  isolation: isolate;
  min-height: 100vh;
  padding: 0;
  background: #050913;
}

.campaign-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  background:
    linear-gradient(90deg, rgba(5, 9, 19, 0.56) 0%, rgba(5, 9, 19, 0.2) 38%, rgba(5, 9, 19, 0.42) 68%, #050913 100%);
  pointer-events: none;
}

.campaign-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 227, 154, 0.16), transparent 28%),
    linear-gradient(180deg, transparent 0 54%, rgba(5, 9, 19, 0.64) 100%),
    linear-gradient(90deg, transparent 0 52%, rgba(5, 9, 19, 0.32) 72%, #050913 100%);
  pointer-events: none;
}

.campaign-hero-image {
  display: block;
  width: min(100%, 980px);
  height: auto;
  max-height: min(680px, calc(100vh - 36px));
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.18);
}

.campaign-copy .campaign-hero-image {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  max-height: none;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform-origin: 58% 50%;
  animation: loginSceneDrift 18s ease-in-out infinite alternate;
  border-radius: 0;
  box-shadow: none;
}

.campaign-overlay {
  position: absolute;
  z-index: 2;
  left: clamp(30px, 5.8vw, 94px);
  bottom: clamp(42px, 6vh, 78px);
  width: min(620px, 76%);
  color: #fff;
  pointer-events: none;
  animation: textFloatIn 0.72s ease both;
}

.login-campaign-overlay {
  left: clamp(32px, 5vw, 84px);
  right: min(34vw, 480px);
  top: clamp(30px, 5vh, 62px);
  bottom: clamp(44px, 7vh, 86px);
  width: auto;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: none;
}

.campaign-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 3vw, 34px);
  color: #fff;
  font-weight: 900;
  font-size: clamp(1.18rem, 1.8vw, 2rem);
  letter-spacing: 0;
}

.login-campaign-overlay .campaign-lockup {
  width: max-content;
  max-width: 100%;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  font-size: clamp(1.05rem, 1.35vw, 1.42rem);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
}

.campaign-logo.brand-logo {
  width: clamp(58px, 5.6vw, 94px);
  height: clamp(58px, 5.6vw, 94px);
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.42));
}

.login-campaign-overlay .campaign-logo.brand-logo {
  width: clamp(42px, 3.4vw, 52px);
  height: clamp(42px, 3.4vw, 52px);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.9) 62%, rgba(213, 225, 245, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 24px rgba(0, 0, 0, 0.28);
  filter: none;
}

.login-campaign-overlay .campaign-logo.brand-logo img {
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.22));
}

.campaign-overlay h1 {
  max-width: 620px;
  font-size: clamp(2.25rem, 3.15vw, 3.45rem);
  line-height: 0.94;
  white-space: nowrap;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.44);
}

.campaign-overlay p {
  width: min(460px, 100%);
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.45;
}

.login-campaign-message {
  position: relative;
  top: auto;
  left: auto;
  align-self: flex-start;
  width: min(860px, 100%);
  max-width: 100%;
  margin: 0;
  text-align: left;
  transform: none;
}

.login-campaign-message .eyebrow {
  margin-bottom: 10px;
  color: var(--gold);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.48);
}

.login-copy .brand {
  position: absolute;
  top: 34px;
  left: clamp(22px, 6vw, 76px);
  color: #fff;
  z-index: 2;
}

.login-message {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  margin-top: min(20vh, 180px);
}

.login-copy h1 {
  max-width: 620px;
  font-size: clamp(3rem, 7.5vw, 6.8rem);
  line-height: 0.92;
}

.campaign-copy .campaign-overlay h1 {
  max-width: none;
  font-size: clamp(3rem, 4.4vw, 4.85rem);
  line-height: 0.94;
  white-space: nowrap;
}

.login-star {
  position: absolute;
  right: clamp(10px, 5vw, 88px);
  bottom: -18px;
  z-index: 1;
  width: min(34vw, 430px);
  min-width: 280px;
  opacity: 0.98;
}

.login-card {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: min(430px, calc(100% - 36px));
  margin: 0;
  border: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.login-panel-zone {
  position: relative;
  z-index: 2;
  grid-column: 2;
  overflow: hidden;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 100vh;
  padding: clamp(18px, 2.4vw, 34px);
  background:
    linear-gradient(90deg, rgba(5, 9, 19, 0), rgba(5, 9, 19, 0.58) 18%, rgba(8, 13, 27, 0.92) 62%, #050913);
  color: #fff;
  box-shadow: -70px 0 110px rgba(5, 9, 19, 0.66);
}

.login-top-actions {
  position: absolute;
  top: clamp(20px, 3vw, 34px);
  right: clamp(18px, 2.6vw, 34px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 36px);
}

.login-language {
  position: static;
  width: 136px;
  min-width: 118px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(16, 23, 40, 0.72);
  color: #fff;
  padding: 0 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
  font-weight: 780;
}

.login-support {
  position: absolute;
  right: clamp(18px, 2.6vw, 34px);
  bottom: clamp(20px, 3vw, 34px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: var(--portal-orange);
  color: #fff;
  box-shadow: 0 18px 36px rgba(255, 129, 56, 0.22);
  font-weight: 850;
}

.login-support:hover {
  background: var(--portal-orange-dark);
}

.login-panel-zone::before {
  display: none;
}

.login-panel-zone::after {
  display: none;
}

.login-live-strip {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100% - 44px));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(19, 29, 51, 0.72);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.login-live-strip span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login-live-strip strong {
  color: #fff;
  font-size: 1.05rem;
}

.login-live-strip {
  position: absolute;
  bottom: clamp(18px, 3vh, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  animation: textFloatIn 0.82s ease 0.14s both;
}

.login-live-strip em {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #050913 !important;
  font-style: normal;
  font-weight: 900;
}

.login-card .panel-header {
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 26px 42px 14px;
  border-bottom: 0;
  text-align: center;
}

.login-panel-zone .login-card {
  background: transparent;
  color: #fff;
  box-shadow: none;
  backdrop-filter: none;
  animation: cardFloatIn 0.62s cubic-bezier(0.2, 0.9, 0.24, 1) both;
}

.login-card .panel-header::before {
  display: none;
}

.login-card .login-form-logo {
  width: 72px;
  height: 72px;
  padding: 7px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.92) 62%, rgba(213, 225, 245, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 36px rgba(0, 0, 0, 0.28);
  filter: none;
}

.login-card .panel-title {
  color: #fff;
  font-size: clamp(1.8rem, 2.4vw, 2.35rem);
  font-weight: 850;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.login-card .form-stack {
  gap: 18px;
  padding: 0;
}

.login-card .segment {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: rgba(232, 236, 244, 0.94);
  padding: 4px;
}

.login-card .segment button {
  min-height: 48px;
  border-radius: 7px;
  font-size: 0.98rem;
  font-weight: 760;
}

.login-card .segment button.active {
  background: var(--portal-teal);
  color: #fff;
}

.login-card input,
.login-card select {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  background: rgba(245, 247, 252, 0.96);
  padding: 0 18px;
  color: #071026;
}

.login-card input:focus,
.login-card select:focus {
  outline: 3px solid rgba(31, 94, 255, 0.16);
}

.login-card .primary {
  min-height: 58px;
  border-radius: 999px;
  background: var(--portal-orange);
  box-shadow: 0 12px 24px rgba(31, 94, 255, 0.24);
  font-weight: 800;
}

.login-card .primary:hover {
  background: var(--portal-orange-dark);
}

.command-box {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--coal);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.loading-screen {
  min-height: 100vh;
  display: grid;
  gap: 18px;
  place-items: center;
  align-content: center;
  background: var(--paper);
}

.loader {
  width: 42px;
  height: 42px;
  border: 4px solid var(--line);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textFloatIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardFloatIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loginSceneDrift {
  from {
    transform: scale(1.02) translateX(-1.2%);
  }
  to {
    transform: scale(1.08) translateX(1.2%);
  }
}

@keyframes bannerImageDrift {
  from {
    transform: scale(1.02) translateX(-1%);
  }
  to {
    transform: scale(1.08) translateX(1%);
  }
}

@keyframes campaignSlide {
  0%,
  27% {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
  }
  33%,
  94% {
    opacity: 0;
    transform: scale(1.015);
    z-index: 1;
  }
  100% {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
  }
}

@keyframes dotFill {
  0% {
    transform: translateX(-100%);
  }
  27% {
    transform: translateX(0);
  }
  33%,
  100% {
    transform: translateX(100%);
  }
}

.admin-hero {
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid #eef0f1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.admin-hero .brand-logo {
  filter: drop-shadow(0 8px 14px rgba(31, 94, 255, 0.14));
}

.admin-hero .ghost {
  color: var(--portal-teal);
}

.admin-hero + .nav-band .tab.active {
  background: var(--portal-teal);
}

.admin-grid .primary,
.match-admin-grid .primary,
.message-admin-grid .primary,
.account-grid .primary,
.wallet-grid .primary,
.kyc-grid .primary {
  background: var(--portal-orange);
}

.admin-grid .primary:hover,
.match-admin-grid .primary:hover,
.message-admin-grid .primary:hover,
.account-grid .primary:hover,
.wallet-grid .primary:hover,
.kyc-grid .primary:hover {
  background: var(--portal-orange-dark);
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 18px 18px;
}

.stat-box {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid #e7ecee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.stat-box span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
}

.stat-box strong {
  color: var(--portal-teal);
  font-size: 1.8rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.compact-list {
  max-height: 680px;
  overflow: auto;
}

.player-card {
  border-width: 0 0 1px;
  border-radius: 0;
}

.player-card.open-row {
  background: #f7fbf7;
}

.admin-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inline-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.match-edit-form {
  display: grid;
  gap: 10px;
}

.result-form {
  margin-top: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.remove-match-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}

.user-message-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.user-message-row.active {
  border-color: var(--green);
  background: var(--accent-soft);
}

.user-message-row span:first-child {
  display: grid;
  gap: 4px;
}

.user-message-row small {
  color: var(--muted);
  font-weight: 700;
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.95rem;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.assistant-panel {
  grid-column: 1 / -1;
}

.chat-list {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding: 16px;
}

.chat-bubble {
  display: grid;
  gap: 6px;
  max-width: 78%;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.chat-bubble span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.chat-bubble.user {
  justify-self: end;
  background: var(--coal);
  color: #fff;
}

.chat-bubble.user span {
  color: rgba(255, 255, 255, 0.75);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 0 16px 16px;
}

.compact-empty {
  min-height: 90px;
}

.strong-line {
  font-weight: 850;
}

.home-page {
  display: grid;
  gap: 28px;
}

.home-promo {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 64px);
  min-height: 230px;
  margin: -18px calc(50% - 50vw) 16px;
  padding: 24px max(18px, calc(50vw - 590px));
  background:
    radial-gradient(circle at 18% 50%, rgba(214, 165, 40, 0.2), transparent 28%),
    radial-gradient(circle at 82% 35%, rgba(31, 94, 255, 0.22), transparent 32%),
    linear-gradient(90deg, #eef2f8, #fff);
}

.home-promo-art {
  position: relative;
  display: grid;
  width: 230px;
  height: 210px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(31, 94, 255, 0.22), rgba(233, 69, 96, 0.16));
  box-shadow: none;
  transform: none;
}

.home-promo-art::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 227, 154, 0.2), transparent 64%);
}

.home-promo-art .brand-logo {
  width: 94px;
  height: 94px;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.2));
  transform: rotate(4deg);
}

.promo-star {
  position: relative;
  z-index: 1;
  width: 255px;
  transform: translateY(18px);
}

.home-promo h1 {
  max-width: none;
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  line-height: 0.98;
}

.home-promo .eyebrow {
  color: var(--portal-orange);
}

.home-promo p:last-child {
  max-width: 680px;
  margin-top: 12px;
  color: #60646a;
  font-size: 1.02rem;
  line-height: 1.5;
}

.campaign-banner {
  display: block;
  position: relative;
  overflow: hidden;
  height: clamp(360px, 42vw, 620px);
  min-height: 0;
  margin: -22px calc(50% - 50vw) 22px;
  padding: 0;
  border-radius: 0;
  background: #050913;
}

.campaign-slider {
  isolation: isolate;
  box-shadow: 0 22px 64px rgba(5, 9, 19, 0.24);
}

.campaign-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.01);
  animation: campaignSlide 18s ease-in-out infinite;
}

.campaign-slide > .campaign-overlay,
.campaign-slide > .campaign-odds-strip,
.campaign-slide > .campaign-live-board,
.campaign-slide > .campaign-ticket-stack {
  position: absolute;
  z-index: 3;
}

.campaign-slide.slide-2 {
  animation-delay: 6s;
}

.campaign-slide.slide-3 {
  animation-delay: 12s;
}

.campaign-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 56%, rgba(214, 165, 40, 0.2), transparent 30%),
    linear-gradient(90deg, rgba(5, 9, 19, 0.96) 0%, rgba(5, 9, 19, 0.78) 34%, rgba(5, 9, 19, 0.28) 62%, rgba(5, 9, 19, 0.06) 100%);
  pointer-events: none;
}

.campaign-slide.visual-markets::after {
  background:
    linear-gradient(90deg, rgba(4, 7, 16, 0.92) 0%, rgba(4, 7, 16, 0.74) 46%, rgba(4, 7, 16, 0.46) 100%),
    radial-gradient(circle at 74% 32%, rgba(255, 205, 86, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(255, 87, 135, 0.24), transparent 38%);
}

.campaign-slide.visual-wallet {
  background:
    radial-gradient(circle at 72% 44%, rgba(255, 205, 86, 0.28), transparent 25%),
    radial-gradient(circle at 84% 82%, rgba(255, 87, 135, 0.26), transparent 30%),
    linear-gradient(135deg, #060a17 0%, #101a34 56%, #090912 100%);
}

.campaign-slide.visual-wallet::after {
  background:
    linear-gradient(90deg, rgba(5, 9, 19, 0.94) 0%, rgba(5, 9, 19, 0.7) 48%, rgba(5, 9, 19, 0.18) 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 18px);
}

.campaign-banner .campaign-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 66% center;
  border-radius: 0;
  box-shadow: none;
  transform-origin: 58% 50%;
  animation: bannerImageDrift 18s ease-in-out infinite alternate;
}

.campaign-bg-image,
.campaign-ghost-player {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.campaign-bg-image {
  opacity: 0.68;
  filter: saturate(1.16) contrast(1.05);
  transform-origin: center;
  animation: bannerImageDrift 20s ease-in-out infinite alternate;
}

.campaign-ghost-player {
  width: 64%;
  left: auto;
  right: 0;
  object-position: right center;
  opacity: 0.72;
  filter: saturate(1.12) contrast(1.08);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
}

.campaign-banner .campaign-overlay {
  left: max(24px, calc(50vw - 570px));
  bottom: clamp(38px, 6vw, 82px);
  width: min(680px, 52vw);
}

.campaign-banner .home-campaign-overlay {
  top: clamp(32px, 4.2vw, 58px);
  bottom: clamp(42px, 6.8vw, 92px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: min(600px, 46vw);
  animation: none;
}

.campaign-message {
  width: min(560px, 100%);
}

.campaign-banner .campaign-lockup {
  width: max-content;
  max-width: 100%;
  margin-bottom: 0;
  padding: 8px 16px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(6, 10, 22, 0.36);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
  font-size: clamp(1rem, 1.25vw, 1.32rem);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.38);
}

.campaign-banner .campaign-logo.brand-logo {
  width: clamp(40px, 3.3vw, 56px);
  height: clamp(40px, 3.3vw, 56px);
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.9) 62%, rgba(213, 225, 245, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 24px rgba(0, 0, 0, 0.28);
  filter: none;
}

.campaign-banner .campaign-logo.brand-logo img {
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.22));
}

.campaign-banner .campaign-overlay h1 {
  max-width: 9ch;
  font-size: clamp(3rem, 5.8vw, 6.2rem);
  line-height: 0.92;
  white-space: normal;
}

.campaign-banner .campaign-overlay p {
  margin-top: 12px;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
}

.campaign-banner .campaign-message .eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  letter-spacing: 0.08em;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.campaign-odds-strip {
  right: max(24px, calc(50vw - 570px));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(11, 17, 34, 0.74);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.campaign-odds-strip span,
.campaign-live-board span,
.campaign-mini-ticket span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.campaign-odds-strip strong {
  color: #fff;
}

.campaign-odds-strip em,
.campaign-board-row strong {
  min-width: 54px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #050913;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.campaign-live-board {
  top: 50%;
  right: max(24px, calc(50vw - 570px));
  width: min(470px, 34vw);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(10, 16, 32, 0.78);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  transform: translateY(-50%);
}

.campaign-board-head,
.campaign-board-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.campaign-board-head {
  padding-bottom: 12px;
  color: #fff;
}

.campaign-board-head strong {
  color: var(--gold);
}

.campaign-board-row {
  min-height: 58px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.campaign-board-row > span {
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}

.campaign-board-row div {
  display: flex;
  gap: 8px;
}

.campaign-board-row strong {
  min-width: 48px;
  padding: 7px 8px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
}

.campaign-ticket-stack {
  right: max(24px, calc(50vw - 555px));
  bottom: clamp(44px, 7vw, 94px);
  display: grid;
  gap: 12px;
  width: min(360px, 30vw);
}

.campaign-mini-ticket {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(10, 16, 32, 0.78);
  color: #fff;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
  transform: translateX(8px);
}

.campaign-mini-ticket.main-ticket {
  transform: translateX(-26px) rotate(-1.5deg);
}

.campaign-mini-ticket.win-ticket {
  transform: translateX(-6px) rotate(1deg);
}

.campaign-mini-ticket strong {
  display: block;
  margin-top: 6px;
  font-size: 1.35rem;
}

.campaign-mini-ticket em {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
}

.campaign-dots {
  position: absolute;
  z-index: 4;
  left: max(24px, calc(50vw - 570px));
  bottom: 24px;
  display: flex;
  gap: 9px;
}

.campaign-dots span {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.campaign-dots span::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: translateX(-100%);
  animation: dotFill 18s linear infinite;
}

.campaign-dots span:nth-child(2)::after {
  animation-delay: 6s;
}

.campaign-dots span:nth-child(3)::after {
  animation-delay: 12s;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-card {
  padding: 26px;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fff;
}

.home-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.home-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.15;
}

.home-eye {
  color: #9b9b9b;
}

.home-balance-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.home-balance-line strong {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1;
}

.home-quick-actions,
.home-market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-quick-actions button,
.home-market-tabs span {
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #e8e8e8;
  color: #1f1f1f;
  font-weight: 760;
}

.home-quick-actions button:first-child,
.home-market-tabs span.active {
  background: #1f1f1f;
  color: #fff;
}

.home-account-rows {
  display: grid;
  gap: 18px;
}

.home-account-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(70px, auto) minmax(130px, auto);
  align-items: center;
  gap: 12px;
  color: #5f6468;
}

.home-account-row strong {
  color: #1f1f1f;
  font-size: 1.05rem;
}

.home-account-row em {
  color: #1f1f1f;
  font-style: normal;
  text-align: right;
}

.markets-card {
  display: grid;
  gap: 10px;
}

.home-market-tabs {
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e5e5;
}

.home-market-list {
  display: grid;
}

.home-market-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #ededed;
  outline: 0;
}

.home-market-row:last-child {
  border-bottom: 0;
}

.home-market-row:hover,
.home-market-row:focus-visible {
  background: #fafafa;
}

.home-market-row p {
  margin-top: 5px;
  color: #74797d;
}

.home-market-prices {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  gap: 8px;
}

.home-market-prices span {
  display: grid;
  min-height: 40px;
  place-items: center;
  border-radius: 8px;
  background: #f1f1f2;
  font-weight: 850;
}

.funds-shell {
  background: #fff;
}

.funds-shell .hero {
  min-height: 76px;
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid #edf0f1;
}

.funds-shell .topbar {
  max-width: 1500px;
  padding: 18px 28px;
}

.funds-shell .hero-inner {
  display: none;
}

.funds-shell .brand-logo {
  filter: none;
}

.funds-shell .status-pill {
  border: 0;
  background: #f5f5f6;
  color: var(--ink);
}

.funds-shell .balance-pill {
  border: 0;
  background: #1f1f1f;
  color: #fff;
}

.funds-shell .ghost {
  color: var(--ink);
}

.funds-shell .nav-band {
  position: static;
  border-bottom: 0;
  background: #fff;
  backdrop-filter: none;
}

.funds-shell .tabs {
  max-width: 1500px;
  padding: 0 28px 16px;
}

.funds-shell .tab {
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #1f1f1f;
  font-size: 1rem;
}

.funds-shell .tab.active {
  background: #f3f3f4;
  color: #111;
}

.funds-shell .content {
  max-width: 1180px;
  padding: 46px 18px 70px;
}

.funds-page {
  display: grid;
  gap: 34px;
}

.wallet-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wallet-balance-card,
.wallet-panel,
.wallet-stat-card {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
}

.wallet-balance-card {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
  gap: 28px;
  align-items: end;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(31, 94, 255, 0.1), rgba(214, 165, 40, 0.12)),
    #fff;
}

.wallet-balance-card h2 {
  margin-top: 8px;
  color: #111;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1;
}

.wallet-balance-card p:last-child {
  max-width: 540px;
  margin-top: 12px;
  color: #70727a;
}

.wallet-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wallet-action-grid button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  font-weight: 820;
}

.wallet-action-grid button:nth-child(even) {
  background: #f1f1f2;
  color: #1f1f1f;
}

.wallet-stat-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wallet-stat-card {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.wallet-stat-card span,
.wallet-stat-card small {
  color: #777;
}

.wallet-stat-card strong {
  color: #111;
  font-size: 1.22rem;
}

.wallet-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.wallet-panel-head,
.wallet-list-row,
.wallet-method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wallet-panel-head h2 {
  font-size: 1.12rem;
}

.wallet-list,
.wallet-method-grid {
  display: grid;
  gap: 12px;
}

.wallet-list-row,
.wallet-method-card {
  padding: 14px;
  border-radius: 10px;
  background: #f6f6f7;
}

.wallet-method-card {
  justify-content: flex-start;
}

.wallet-method-card > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--portal-teal);
}

.funds-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.funds-title-row h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.1;
}

.funds-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #e3e3e3;
  overflow-x: auto;
}

.funds-tab {
  position: relative;
  min-height: 44px;
  padding: 0 2px 16px;
  background: transparent;
  color: #777;
  font-size: 1.02rem;
  font-weight: 760;
  white-space: nowrap;
}

.funds-tab.active {
  color: #111;
}

.funds-tab.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background: #1f1f1f;
}

.funds-workflow {
  display: grid;
  grid-template-columns: minmax(0, 58%) minmax(300px, 1fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: start;
}

.funds-form,
.funds-withdraw-stack {
  display: grid;
  gap: 28px;
}

.funds-select-box,
.funds-amount-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 16px;
  border-radius: 10px;
  background: #f4f4f5;
  color: #1f1f1f;
}

.funds-select-box.muted {
  color: #999;
}

.funds-select-box svg {
  margin-left: auto;
}

.funds-flag {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--portal-teal);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
}

.funds-helper,
.funds-note {
  color: #1f1f1f;
  font-size: 0.92rem;
  line-height: 1.5;
}

.funds-amount-input {
  border: 1px solid #1f1f1f;
  background: #fff;
}

.funds-amount-input.muted {
  border-color: transparent;
  background: #f4f4f5;
}

.funds-amount-input input {
  min-height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 760;
}

.funds-amount-input input:focus {
  outline: 0;
}

.funds-amount-input span {
  color: #777;
  font-weight: 760;
}

.funds-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.funds-filter {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f1f1f2;
  color: #333;
  font-weight: 740;
  white-space: nowrap;
}

.funds-filter.active {
  background: #1f1f1f;
  color: #fff;
}

.funds-method-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.compact-method-list {
  max-height: 440px;
  overflow: auto;
  padding-right: 8px;
}

.funds-method-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 82px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f4f4f5;
  color: #1f1f1f;
  text-align: left;
}

.funds-method-card:hover,
.funds-method-card.selected {
  border-color: #18caa8;
  background: #fbfffd;
}

.funds-method-card strong,
.funds-method-card small {
  display: block;
}

.funds-method-card small {
  margin-top: 4px;
  color: #777;
  font-size: 0.9rem;
  font-weight: 650;
}

.funds-method-card em {
  padding: 5px 10px;
  border: 1px solid #18caa8;
  border-radius: 999px;
  color: #11a98d;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.funds-method-icon,
.funds-radio {
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.funds-method-icon {
  width: 38px;
  height: 38px;
  background: #fff;
  color: var(--portal-teal);
}

.funds-radio {
  width: 20px;
  height: 20px;
  border: 1px solid #bfc4c8;
  color: #fff;
}

.funds-method-card.selected .funds-radio,
.funds-method-card.saved .funds-radio {
  border-color: #18caa8;
  background: #18caa8;
}

.funds-continue {
  min-height: 58px;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 850;
}

.funds-continue:hover {
  background: #000;
}

.funds-continue:disabled {
  background: #b8b8b8;
}

.funds-back {
  justify-self: start;
  min-height: auto;
  padding: 0;
  background: transparent;
  color: #1f1f1f;
  font-weight: 760;
}

.voucher-icon {
  display: inline-flex;
  color: #18caa8;
}

.funds-process {
  display: grid;
  gap: 0;
  padding-top: 30px;
}

.funds-step {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 18px;
  min-height: 112px;
  color: #9a9ca2;
}

.funds-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 10px;
  left: 18px;
  width: 1px;
  background: #d8dadd;
}

.funds-step.active {
  color: #1f1f1f;
}

.funds-step-icon {
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: #e2e4e6;
  color: #9a9ca2;
}

.funds-step.active .funds-step-icon {
  background: #1f1f1f;
  color: #fff;
}

.funds-step strong {
  display: block;
  margin-top: 3px;
  font-size: 1.04rem;
}

.funds-step p {
  max-width: 420px;
  margin-top: 10px;
  color: #9a9ca2;
  line-height: 1.45;
}

.funds-method-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
}

.funds-method-form h3 {
  font-size: 1rem;
}

.crypto-detail-form {
  gap: 22px;
}

.crypto-method-title {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e6e6;
}

.crypto-method-title strong {
  font-size: 1.25rem;
}

.crypto-important {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 10px;
  background: #fde9e2;
  color: #1f1f1f;
}

.crypto-important ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.crypto-section {
  display: grid;
  gap: 12px;
}

.crypto-section h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.crypto-section h3 span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  font-size: 0.76rem;
}

.crypto-section p {
  color: #555;
  line-height: 1.45;
}

.crypto-qr {
  display: grid;
  grid-template-columns: repeat(8, 10px);
  gap: 3px;
  width: max-content;
  padding: 10px;
  background: #fff;
  border: 1px solid #e5e5e5;
}

.crypto-qr span {
  width: 10px;
  height: 10px;
  background: #fff;
}

.crypto-qr span.dark {
  background: #1f1f1f;
}

.crypto-copy-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  background: #f4f4f5;
  color: #6c7177;
  overflow-wrap: anywhere;
}

.copy-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.copy-button:hover {
  background: #2f6bff;
}

.copy-button i {
  width: 15px;
  height: 15px;
}

.bank-important {
  background: #eaf6f4;
}

.bank-detail-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e4e6e7;
  border-radius: 10px;
  background: #fff;
}

.bank-detail-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  border-bottom: 1px solid #f0f1f2;
}

.bank-detail-card .bank-detail-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.35fr) auto;
  align-items: center;
}

.bank-detail-card div:last-child {
  border-bottom: 0;
}

.bank-detail-card span {
  color: #777;
  font-size: 0.92rem;
}

.bank-detail-card strong {
  color: #1f1f1f;
  text-align: left;
  overflow-wrap: anywhere;
}

.payment-details {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #e5e5e5;
}

.payment-details h3 {
  font-size: 1rem;
}

.payment-details div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #777;
}

.payment-details strong {
  color: #1f1f1f;
}

.funds-empty-line,
.funds-empty-cell {
  color: #777;
  text-align: center;
}

.funds-empty-line {
  padding: 22px;
  border-radius: 10px;
  background: #f4f4f5;
}

.funds-history {
  display: grid;
  gap: 26px;
}

.funds-history-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.funds-table-wrap {
  overflow-x: auto;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fff;
}

.funds-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.funds-table th,
.funds-table td {
  padding: 18px 24px;
  border-bottom: 1px solid #ebebeb;
  text-align: left;
  white-space: nowrap;
}

.funds-table th {
  color: #8b8b8b;
  font-weight: 740;
}

.funds-table tr:last-child td {
  border-bottom: 0;
}

.funds-order {
  border-bottom: 1px dotted #1f1f1f;
  font-weight: 760;
}

.funds-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ececec;
  color: #555;
  font-size: 0.8rem;
  font-weight: 800;
}

.funds-status.green {
  background: var(--chip-green-bg);
  color: var(--chip-green-text);
}

.funds-status.blue {
  background: #e7f0ff;
  color: #2470d6;
}

.funds-status.red {
  background: #ffe6e1;
  color: #b23529;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(380px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--coal);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 760;
}

/* Theme normalization */
.app-shell,
.funds-shell,
.login-layout,
.loading-screen {
  background: var(--bg);
  color: var(--ink);
}

.login-layout {
  background: #050913;
}

.panel,
.login-card,
.selection-box,
.stat-card,
.stat-box,
.wallet-balance-card,
.wallet-panel,
.wallet-stat-card,
.home-card,
.funds-method-form,
.bank-detail-card,
.funds-table-wrap {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.panel-header,
.crypto-method-title,
.payment-details,
.funds-tabs,
.home-market-tabs,
.home-market-row,
.bank-detail-card div,
.funds-table th,
.funds-table td {
  border-color: var(--line);
}

.match-card:hover,
.match-card:focus-visible,
.player-card.open-row,
.user-message-row.active {
  background: var(--hover-soft);
}

.match-headline,
.funds-helper,
.funds-note,
.crypto-important,
.bank-detail-card strong,
.payment-details strong,
.wallet-balance-card h2,
.wallet-stat-card strong,
.home-account-row strong,
.home-account-row em {
  color: var(--ink);
}

.subtle,
.odd-label,
.funds-tab,
.funds-method-card small,
.funds-amount-input span,
.funds-step,
.funds-step p,
.crypto-section p,
.crypto-copy-line,
.bank-detail-card span,
.payment-details div,
.funds-empty-line,
.funds-empty-cell,
.funds-table th,
.wallet-balance-card p:last-child,
.wallet-stat-card span,
.wallet-stat-card small,
.home-account-row,
.home-market-row p,
.home-promo p:last-child,
.home-eye {
  color: var(--muted);
}

.hero .eyebrow,
.login-copy .eyebrow {
  color: var(--lime);
}

.funds-shell .eyebrow,
.wallet-balance-card .eyebrow,
.wallet-panel .eyebrow,
.home-card .eyebrow {
  color: var(--accent-strong);
}

.home-promo .eyebrow {
  color: var(--gold);
}

input,
select,
.odd-button,
.market-button,
.icon-button,
.secondary,
.user-message-row,
.funds-amount-input,
.crypto-copy-line {
  border-color: var(--line);
  background: var(--field-strong);
  color: var(--ink);
}

.login-card input,
.login-card select,
.funds-select-box,
.funds-amount-input.muted,
.funds-filter,
.funds-method-card,
.funds-empty-line,
.wallet-list-row,
.wallet-method-card,
.home-quick-actions button,
.home-market-tabs span,
.home-market-prices span,
.form-dot,
.score-column-title {
  background: var(--field);
  color: var(--ink);
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline-color: rgba(10, 122, 92, 0.18);
}

.primary,
.funds-continue,
.wallet-action-grid button,
.home-quick-actions button:first-child,
.home-market-tabs span.active,
.funds-filter.active,
.funds-step.active .funds-step-icon,
.crypto-section h3 span {
  background: var(--primary);
  color: var(--primary-text);
}

.primary:hover,
.funds-continue:hover {
  background: var(--primary-hover);
}

.secondary:hover,
.funds-filter:hover,
.home-quick-actions button:hover,
.home-market-tabs span:hover {
  background: var(--surface-3);
}

.text-button,
.match-footer,
.funds-back,
.admin-hero .ghost,
.admin-hero + .nav-band .tab:not(.active),
.wallet-panel-head .text-button,
.home-card .text-button {
  color: var(--accent-strong);
}

.danger {
  background: var(--danger);
  color: #fff;
}

.segment,
.login-card .segment,
.theme-switch {
  border-color: var(--line);
  background: var(--surface-2);
}

.segment button {
  color: var(--muted);
}

.segment button.active,
.tab.active,
.funds-shell .tab.active {
  background: var(--primary);
  color: var(--primary-text);
}

.nav-band,
.funds-shell .nav-band,
.admin-hero,
.funds-shell .hero {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.admin-hero {
  box-shadow: var(--shadow);
}

.admin-hero + .nav-band .tab.active,
.admin-grid .primary,
.match-admin-grid .primary,
.message-admin-grid .primary,
.account-grid .primary,
.wallet-grid .primary,
.kyc-grid .primary {
  background: var(--portal-orange);
  color: #fff;
}

.admin-hero + .nav-band .tab.active:hover,
.admin-grid .primary:hover,
.match-admin-grid .primary:hover,
.message-admin-grid .primary:hover,
.account-grid .primary:hover,
.wallet-grid .primary:hover,
.kyc-grid .primary:hover,
.login-card .primary:hover {
  background: var(--portal-orange-dark);
}

.login-card .panel-header::before,
.wallet-method-card > span,
.funds-method-icon,
.crypto-qr,
.crypto-qr span {
  background-color: var(--surface);
}

.crypto-qr span.dark {
  background: var(--ink);
}

.wallet-balance-card {
  background: var(--wallet-grad);
}

.wallet-action-grid button:nth-child(even) {
  background: var(--field);
  color: var(--ink);
}

.wallet-list-row,
.wallet-method-card {
  background: var(--field);
}

.funds-shell .status-pill {
  background: var(--field);
  color: var(--ink);
}

.funds-shell .balance-pill {
  background: var(--primary);
  color: var(--primary-text);
}

.funds-shell .ghost,
.funds-shell .tab {
  color: var(--ink);
}

.funds-tab.active {
  color: var(--ink);
}

.funds-tab.active::after {
  background: var(--ink);
}

.funds-order {
  border-bottom-color: var(--ink);
  background: transparent;
}

.funds-method-card:hover,
.funds-method-card.selected,
.market-button:hover,
.market-button.selected,
.odd-button:hover,
.odd-button.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.funds-method-card em {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.funds-method-card.selected .funds-radio,
.funds-method-card.saved .funds-radio {
  border-color: var(--accent);
  background: var(--accent);
}

.funds-radio {
  border-color: var(--line);
}

.funds-step:not(:last-child)::after {
  background: var(--line);
}

.funds-step.active {
  color: var(--ink);
}

.funds-step-icon {
  background: var(--surface-3);
  color: var(--muted);
}

.crypto-important {
  background: rgba(214, 165, 40, 0.14);
}

.bank-important {
  background: var(--accent-soft);
}

.funds-status,
.chip {
  background: var(--chip-bg);
  color: var(--chip-text);
}

.funds-status.green,
.chip.green,
.form-dot.w {
  background: var(--chip-green-bg);
  color: var(--chip-green-text);
}

.funds-status.blue,
.chip.blue,
.form-dot.d {
  background: var(--chip-blue-bg);
  color: var(--chip-blue-text);
}

.funds-status.red,
.chip.red,
.form-dot.l {
  background: var(--chip-red-bg);
  color: var(--chip-red-text);
}

.amount-up,
.voucher-icon {
  color: var(--accent-strong);
}

.amount-down {
  color: var(--red);
}

.home-promo {
  background:
    radial-gradient(circle at 20% 50%, rgba(214, 165, 40, 0.24), transparent 31%),
    radial-gradient(circle at 82% 28%, rgba(31, 94, 255, 0.34), transparent 36%),
    linear-gradient(95deg, rgba(5, 9, 19, 0.98), rgba(18, 28, 66, 0.94) 58%, rgba(5, 9, 19, 0.34)),
    url("assets/stadium-hero.png") center / cover;
  color: #fff;
}

.home-promo.campaign-banner {
  background: #050913;
}

.home-promo-art {
  background: linear-gradient(135deg, rgba(31, 94, 255, 0.24), rgba(233, 69, 96, 0.18));
}

.home-promo p:last-child {
  color: rgba(255, 255, 255, 0.74);
}

.toast {
  background: var(--coal);
  color: #fff;
}

.panel-tools {
  display: grid;
  width: min(100%, 360px);
  gap: 10px;
}

.theme-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font-weight: 820;
  white-space: nowrap;
}

.theme-switch button.active {
  background: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 8px 18px rgba(10, 18, 14, 0.12);
}

.funds-shell .theme-switch,
.admin-hero .theme-switch,
.login-card .theme-switch {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
}

.funds-shell .theme-switch button.active,
.admin-hero .theme-switch button.active,
.login-card .theme-switch button.active {
  background: var(--surface);
  color: var(--ink);
}

:root[data-theme="dark"] .login-copy {
  background:
    linear-gradient(180deg, rgba(5, 9, 19, 0.24), rgba(5, 9, 19, 0.42) 35%, rgba(7, 10, 19, 0.96) 74%, #050913),
    radial-gradient(circle at 78% 58%, rgba(120, 167, 255, 0.4), transparent 31%),
    linear-gradient(120deg, rgba(233, 69, 96, 0.28), rgba(255, 255, 255, 0) 42%),
    url("assets/stadium-hero.png") center / cover;
}

:root[data-theme="dark"] .login-copy .brand {
  color: #fff;
}

:root[data-theme="dark"] .funds-shell .brand-logo,
:root[data-theme="dark"] .admin-hero .brand-logo {
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.login-form-panel {
  background: transparent !important;
  color: #fff;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.login-form-panel .panel-header {
  padding: 0 0 24px;
}

.login-form-panel .segment {
  background: rgba(232, 236, 244, 0.94);
}

.login-form-panel input,
.login-form-panel select {
  background: rgba(245, 247, 252, 0.96);
  color: #071026;
}

.login-form-panel label {
  color: rgba(255, 255, 255, 0.78);
}

.login-top-actions .theme-switch {
  width: 260px;
  min-height: 42px;
  padding: 4px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(16, 23, 40, 0.72);
  color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.login-top-actions .theme-switch button {
  min-height: 34px;
  padding: 6px 8px;
  color: inherit;
  font-size: 0.82rem;
}

.login-top-actions .theme-switch button.active {
  background: var(--portal-orange);
  color: #071026;
  box-shadow: 0 10px 20px rgba(255, 202, 83, 0.18);
}

@media (max-width: 880px) {
  .grid,
  .sportsbook-grid,
  .match-detail-grid,
  .wallet-grid,
  .kyc-grid,
  .account-grid,
  .bets-grid,
  .message-admin-grid,
  .admin-grid,
  .login-layout {
    grid-template-columns: 1fr;
  }

  .betslip {
    position: static;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .session-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .login-card {
    align-self: start;
    width: auto;
  }

  .login-panel-zone {
    grid-column: 1;
    min-height: auto;
    padding: 22px 14px 32px;
    background:
      radial-gradient(circle at 70% 12%, rgba(255, 210, 91, 0.1), transparent 28%),
      linear-gradient(180deg, #050913, #0b1020);
    box-shadow: none;
  }

  .login-panel-zone .login-card,
  .login-live-strip {
    width: min(520px, 100%);
  }

  .login-copy {
    min-height: auto;
    padding: 14px;
  }

  .campaign-copy {
    position: relative;
    inset: auto;
    min-height: 46vh;
  }

  .login-campaign-overlay {
    inset: 18px 18px 22px;
    width: auto;
    max-width: none;
  }

  .login-campaign-message {
    position: relative;
    top: auto;
    left: auto;
    align-self: flex-start;
    width: 100%;
    transform: none;
  }

  .campaign-copy .campaign-hero-image {
    width: 100%;
    height: 46vh;
    min-height: 46vh;
    max-height: none;
    object-fit: cover;
    object-position: center left;
    box-shadow: none;
  }

  .campaign-overlay {
    left: 22px;
    bottom: 24px;
    width: min(82%, 430px);
  }

  .login-campaign-overlay {
    inset: 18px 18px 22px;
    width: auto;
    max-width: none;
  }

  .campaign-lockup {
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1.02rem;
  }

  .campaign-logo.brand-logo {
    width: 54px;
    height: 54px;
  }

  .campaign-overlay h1 {
    font-size: clamp(1.35rem, 5.7vw, 1.6rem);
    white-space: nowrap;
  }

  .campaign-copy .login-campaign-overlay h1 {
    font-size: clamp(1.35rem, 5.7vw, 1.6rem);
    white-space: nowrap;
  }

  .campaign-overlay p {
    margin-top: 10px;
    font-size: 0.94rem;
  }

  .login-live-strip {
    position: relative;
    bottom: auto;
  }

  .login-copy .brand {
    top: 24px;
    left: 22px;
  }

  .login-message {
    width: min(100%, 340px);
    margin-top: 70px;
  }

  .login-copy h1 {
    font-size: clamp(2.45rem, 11vw, 3rem);
    line-height: 0.98;
  }

  .login-star {
    right: -48px;
    bottom: -42px;
    min-width: 230px;
    width: 260px;
    opacity: 0.58;
  }

  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .funds-shell .topbar,
  .funds-shell .tabs {
    padding-right: 18px;
    padding-left: 18px;
  }

  .funds-workflow {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .wallet-balance-card,
  .wallet-overview,
  .wallet-stat-grid {
    grid-template-columns: 1fr;
  }

  .funds-process {
    order: -1;
    padding-top: 0;
  }

  .home-card-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
  }
}

@media (max-width: 620px) {
  .hero-inner {
    padding-top: 36px;
  }

  .panel-header,
  .match-meta,
  .market-row,
  .transaction-row,
  .bet-row,
  .player-main,
  .admin-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .align-right,
  .admin-actions {
    justify-items: start;
    justify-content: flex-start;
    text-align: left;
  }

  .two-col,
  .three-col,
  .detail-stats,
  .form-panels,
  .admin-control-grid,
  .inline-form,
  .result-form,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .score-board {
    gap: 6px;
  }

  .score-column-options {
    grid-template-columns: 1fr;
  }

  .session-actions .balance-pill,
  .session-actions .status-pill {
    white-space: normal;
  }

  .login-card {
    margin: 14px;
  }

  .login-panel-zone .login-card,
  .login-live-strip {
    width: calc(100% - 28px);
  }

  .login-card .panel-header {
    padding: 28px 22px 14px;
  }

  .login-card .form-stack {
    padding: 0 22px 28px;
  }

  .funds-shell .content {
    padding-top: 28px;
  }

  .funds-title-row,
  .funds-history-actions,
  .wallet-panel-head,
  .wallet-list-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .wallet-action-grid {
    grid-template-columns: 1fr;
  }

  .bank-detail-card div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .bank-detail-card .bank-detail-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bank-detail-card .copy-button {
    justify-self: start;
  }

  .bank-detail-card strong {
    text-align: left;
  }

  .funds-tabs {
    gap: 22px;
  }

  .funds-method-card {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .funds-method-card em {
    grid-column: 2;
    justify-self: start;
  }

  .funds-radio {
    grid-row: 1;
    grid-column: 3;
  }

  .funds-step {
    min-height: 98px;
  }

  .home-promo {
    grid-template-columns: 1fr;
    margin-top: -10px;
  }

  .home-promo.campaign-banner {
    height: clamp(260px, 68vw, 420px);
    margin: -10px calc(50% - 50vw) 16px;
  }

  .campaign-banner .campaign-overlay {
    left: 18px;
    top: 22px;
    bottom: 28px;
    width: min(82%, 420px);
  }

  .campaign-banner .home-campaign-overlay {
    width: min(420px, calc(100% - 36px));
  }

  .campaign-banner .campaign-lockup {
    margin-bottom: 8px;
    font-size: 0.9rem;
  }

  .campaign-banner .campaign-logo.brand-logo {
    width: 40px;
    height: 40px;
  }

  .campaign-banner .campaign-overlay h1 {
    font-size: clamp(1.95rem, 8vw, 3rem);
    max-width: 10ch;
  }

  .campaign-banner .campaign-overlay p {
    display: block;
    font-size: 0.9rem;
  }

  .campaign-slide.visual-markets .campaign-overlay,
  .campaign-slide.visual-wallet .campaign-overlay {
    top: 22px;
    bottom: auto;
  }

  .campaign-slide.visual-markets .campaign-overlay p,
  .campaign-slide.visual-wallet .campaign-overlay p {
    display: none;
  }

  .campaign-odds-strip,
  .campaign-live-board,
  .campaign-ticket-stack {
    right: 18px;
    left: 18px;
    width: auto;
  }

  .campaign-odds-strip {
    bottom: 42px;
    justify-content: space-between;
    gap: 6px;
    padding: 8px;
  }

  .campaign-odds-strip span,
  .campaign-odds-strip strong {
    display: none;
  }

  .campaign-odds-strip em {
    min-width: 0;
    flex: 1;
  }

  .campaign-live-board {
    top: auto;
    bottom: 42px;
    padding: 12px;
    transform: none;
  }

  .campaign-board-row {
    min-height: 46px;
    padding: 8px 0;
  }

  .campaign-board-row:nth-child(n + 4) {
    display: none;
  }

  .campaign-board-row div {
    gap: 5px;
  }

  .campaign-board-row strong {
    min-width: 42px;
    padding: 6px;
  }

  .campaign-ticket-stack {
    bottom: 40px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .campaign-mini-ticket {
    padding: 10px 12px;
  }

  .campaign-mini-ticket:nth-child(n + 3) {
    display: none;
  }

  .campaign-mini-ticket.main-ticket,
  .campaign-mini-ticket.win-ticket,
  .campaign-mini-ticket {
    transform: none;
  }

  .campaign-ghost-player {
    width: 88%;
    opacity: 0.46;
  }

  .campaign-dots {
    left: 18px;
    bottom: 14px;
  }

  .home-promo-art {
    width: 150px;
    height: 140px;
  }

  .home-promo-art .brand-logo {
    width: 76px;
    height: 76px;
  }

  .promo-star {
    width: 175px;
    transform: translateY(12px);
  }

  .home-card {
    padding: 18px;
  }

  .home-account-row,
  .home-market-row {
    grid-template-columns: 1fr;
  }

  .home-account-row em {
    text-align: left;
  }

  .home-market-prices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  h1 {
    font-size: 2.3rem;
  }
}

@media (max-width: 420px) {
  .content,
  .tabs,
  .topbar,
  .hero-inner,
  .admin-summary {
    padding-left: 12px;
    padding-right: 12px;
  }

  .odds-grid {
    gap: 6px;
  }

  .odd-button {
    min-height: 58px;
    padding: 7px;
  }

  .odd-price {
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .campaign-slide:first-child {
    opacity: 1;
  }
}
