:root {
  --bg: #f4f2ee;
  --panel: #fffaf4;
  --panel-strong: #ffffff;
  --ink: #24211e;
  --muted: #746c63;
  --line: #e3d9ce;
  --accent: #e8752e;
  --accent-strong: #c95f24;
  --accent-soft: #fff0e2;
  --accent-2: #2f7f78;
  --accent-2-soft: #e7f3f0;
  --warn: #b97823;
  --danger: #b33a2e;
  --ok: #2e855f;
  --dark: #272a2b;
  --hover: #fff5eb;
  --shadow: 0 14px 36px rgba(54, 44, 34, 0.11);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.button {
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  font-weight: 700;
}

button:hover,
.button:hover {
  background: var(--accent-strong);
  filter: none;
}

.button.ghost,
button.ghost {
  background: var(--accent-soft);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.site-backdrop,
.menu-toggle,
.mobile-balance,
.mobile-slip-button,
.mobile-slip-close {
  display: none;
}

.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(240px, 1fr);
  gap: 24px;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark,
.token {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
  font-weight: 800;
}

.token.image {
  background: var(--accent-soft);
  overflow: hidden;
}

.token.image img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.brand small,
.list-card small,
.row-link small,
.ticket small,
.muted {
  color: var(--muted);
}

.brand span:last-child {
  display: grid;
}

.nav,
.user-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a,
.user-nav a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 650;
}

.nav a.active,
.nav a:hover,
.user-nav a:hover {
  background: var(--accent-soft);
  color: var(--ink);
}

.nav a.live-link {
  color: var(--danger);
  animation: live-menu-blink 1.35s ease-in-out infinite;
}

.nav a.live-link.active,
.nav a.live-link:hover {
  background: #ffe8e3;
  color: var(--danger);
}

.nav a.support-link {
  color: var(--ok);
  font-weight: 900;
  border-color: rgba(46, 133, 95, 0.28);
  background: #effaf2;
}

.nav a.support-link.active,
.nav a.support-link:hover {
  background: var(--ok);
  color: #fff;
}

.user-nav {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.restricted-label {
  border: 1px solid #efb17c;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
  padding: 8px 12px;
}

.restricted-footer {
  grid-template-columns: 1fr;
}

.inline {
  display: inline;
}

.inline button,
.link-button {
  background: transparent;
  color: var(--muted);
  min-height: auto;
  padding: 0;
}

.form-message {
  min-height: 20px;
  margin: -2px 0 0;
  color: var(--ok);
  font-weight: 700;
}

.form-message.warning {
  color: var(--danger);
}

.form-link {
  color: var(--accent-strong);
  font-weight: 800;
}

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 26px auto 60px;
}

.flash {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: 8px;
  background: var(--panel-strong);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.flash.success {
  border-left-color: var(--ok);
}

.flash.warning {
  border-left-color: var(--warn);
}

.flash.leaving {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast-stack {
  position: fixed;
  top: 86px;
  right: 20px;
  z-index: 140;
  width: min(360px, calc(100vw - 28px));
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast-stack .flash {
  margin: 0;
  pointer-events: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

.hero > div:first-child {
  background:
    linear-gradient(rgba(39, 42, 43, 0.70), rgba(75, 45, 28, 0.76)),
    url("/legacy-assets/slider/9a3d0-Basket_players.jpg") center / cover;
  color: #fff;
  border-radius: 8px;
  padding: 42px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1,
.page-head h1,
.auth-shell h1,
.content-page h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.02;
}

.hero p {
  color: #f5e8db;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hero-panel {
  border-radius: 8px;
  display: grid;
  gap: 12px;
}

.hero-panel > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  align-content: center;
  box-shadow: var(--shadow);
}

.hero-panel span {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.grid.two {
  grid-template-columns: 1fr 360px;
}

.grid.three {
  grid-template-columns: 0.9fr 1.35fr 0.95fr;
}

.home-dashboard {
  display: grid;
  grid-template-columns: 300px minmax(360px, 1fr) 330px;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.home-sports,
.right-rail,
.live-right-rail {
  display: grid;
  gap: 14px;
}

.right-rail,
.live-right-rail {
  position: sticky;
  top: 88px;
  align-self: start;
}

.home-featured .row-link strong,
.home-featured .row-link small,
.upcoming-card .row-link strong,
.upcoming-card .row-link small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-featured .row-link span,
.upcoming-card .row-link span {
  min-width: 0;
}

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

.sports-card .list-card {
  min-height: 58px;
}

.match-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
}

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

.card h2 {
  font-size: 18px;
  margin: 0 0 14px;
}

.list {
  display: grid;
  gap: 8px;
}

.list.cards {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.list-card,
.row-link,
.ticket-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel-strong);
}

.list-card {
  justify-content: flex-start;
}

.row-link:hover,
.list-card:hover {
  border-color: #efb17c;
  background: var(--hover);
}

.row-link span,
.list-card span:last-child,
.ticket-item span {
  display: grid;
}

.row-link time,
.row-link b {
  color: var(--accent-strong);
  white-space: nowrap;
}

.row-link.passive:hover {
  border-color: var(--line);
  background: var(--panel-strong);
}

.balance-row.wallet-credit {
  border-color: rgba(46, 133, 95, 0.28);
  background: #f1faf4;
}

.balance-row.wallet-credit .balance-history-actions b {
  color: var(--ok);
}

.balance-row.wallet-debit {
  border-color: rgba(179, 58, 46, 0.24);
  background: #fff1ef;
}

.balance-row.wallet-debit .balance-history-actions b {
  color: var(--danger);
}

.balance-row.wallet-return,
.balance-row.wallet-neutral {
  border-color: var(--line);
  background: #f9f7f3;
}

.balance-row.wallet-return .balance-history-actions b,
.balance-row.wallet-neutral .balance-history-actions b {
  color: var(--muted);
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 8px 0 20px;
}

.page-head h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.market {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.market h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.odds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.odd {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  gap: 10px;
}

.odd button {
  min-width: 74px;
  background: var(--accent);
}

.slip,
.slip-card {
  position: sticky;
  top: 96px;
}

.slip {
  display: grid;
  gap: 10px;
  position: static;
}

.slip-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.slip-item small {
  display: block;
  color: var(--muted);
}

.slip-item > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ink);
}

.slip-total {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}

.slip-total.muted {
  color: var(--muted);
  margin-top: 0;
}

.stake-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 12px 0;
}

.form {
  display: grid;
  gap: 12px;
}

.form.stack label,
.stake-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  background: var(--panel-strong);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
}

.check input {
  width: auto;
  min-height: auto;
}

.auth-shell {
  min-height: calc(100vh - 180px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
  align-items: center;
}

.auth-shell > div:first-child {
  max-width: 620px;
}

.content-page {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  max-width: 820px;
}

.content-page p {
  color: var(--ink);
}

.content-page h2 {
  margin: 22px 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.content-page ul {
  padding-left: 20px;
}

.ticket {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
}

.ticket-status-win {
  border-color: rgba(46, 133, 95, 0.32);
  background: #eff9f2;
}

.ticket-status-lost {
  border-color: rgba(179, 58, 46, 0.2);
  background: #fff0ee;
}

.ticket-status-returned {
  border-color: #d8d1c8;
  background: #f6f3ef;
}

.ticket-status-pending {
  border-color: rgba(232, 117, 46, 0.44);
  animation: ticket-pending-pulse 1.8s ease-in-out infinite;
}

.ticket header,
.ticket footer,
.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.ticket header {
  margin-bottom: 12px;
}

.ticket footer {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.ticket header span:first-child {
  display: grid;
}

.ticket-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--accent-soft);
  color: var(--muted);
  font-weight: 800;
}

.badge.win,
button.win {
  background: var(--ok);
  color: #fff;
}

.badge.pending {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.badge.open {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.badge.waiting_user {
  background: var(--accent-2-soft);
  color: var(--accent-2);
}

.badge.closed {
  background: var(--dark);
  color: #fff;
}

.badge.lost,
button.lost {
  background: var(--danger);
  color: #fff;
}

.badge.returned,
button.returned {
  background: var(--warn);
  color: #fff;
}

.badge.ticket-kind.live {
  background: var(--accent-2);
  color: #fff;
}

.badge.ticket-kind.pregame {
  background: var(--dark);
  color: #fff;
}

.ticket-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 18px;
}

.filter-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
}

.filter-pill.active,
.filter-pill:hover {
  border-color: #efb17c;
  background: var(--accent-soft);
  color: var(--ink);
}

.balance-pill {
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--dark);
  color: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stats div,
.admin-link {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 2px;
}

.stats strong {
  font-size: 28px;
}

.stats span,
.admin-link span {
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.admin-link:hover {
  border-color: #efb17c;
}

.admin-link.important {
  border-color: #efb17c;
  background: var(--accent-soft);
}

.admin-layout {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  align-items: start;
}

.support-layout {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.35fr);
  align-items: start;
}

.support-thread {
  display: grid;
  gap: 12px;
}

.support-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  padding: 14px;
}

.support-message header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.support-message header strong {
  color: var(--ink);
}

.support-message p {
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.support-message.admin {
  border-color: #efb17c;
  background: var(--accent-soft);
}

.support-message.system {
  border-color: #cfe1dc;
  background: var(--accent-2-soft);
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.table-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.table-actions a {
  color: var(--accent-strong);
  font-weight: 800;
}

.table-actions button {
  background: transparent;
  color: var(--danger);
  min-height: auto;
  padding: 0;
}

.empty {
  border: 1px dashed #ddb08a;
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
}

.empty h3 {
  margin: 0 0 4px;
  color: var(--ink);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 18px;
}

.live-status {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 8px 12px;
  font-weight: 800;
  white-space: nowrap;
}

.live-status::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(232, 117, 46, 0.35);
  animation: live-dot 1.8s ease-out infinite;
}

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

.live-sidebar {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 96px;
}

.live-panel,
.live-scoreboard,
.live-stats {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.live-panel h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.live-sports,
.live-matches {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.live-sport,
.live-match {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--ink);
  justify-content: space-between;
  text-align: left;
  gap: 10px;
  padding: 10px;
}

.live-sport:hover,
.live-match:hover,
.live-sport.active,
.live-match.active {
  border-color: #efb17c;
  background: var(--hover);
}

.live-sport b,
.live-match b {
  color: var(--accent-strong);
}

.live-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.live-match-name {
  font-weight: 800;
  overflow-wrap: anywhere;
}

.live-match-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.live-match-meta small {
  color: var(--muted);
  max-width: 160px;
  overflow-wrap: anywhere;
}

.live-scoreboard {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.live-scoreboard h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.live-scoreboard strong {
  min-width: 104px;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  text-align: center;
  padding: 14px;
  font-size: 30px;
  animation: score-live-blink 1.1s ease-in-out infinite;
}

.live-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.live-stats div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  padding: 10px;
}

.live-stats span {
  color: var(--muted);
}

.live-odd {
  min-height: 58px;
  background: var(--panel-strong);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

.live-odd:hover {
  background: var(--hover);
  border-color: #efb17c;
}

.live-odd.selected {
  border-color: var(--accent);
  background: #fff4e8;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.live-odd.loading {
  opacity: 0.72;
}

.live-odd b {
  min-width: 74px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 9px 10px;
}

.status-pulse,
.score-pulse,
.price-pulse {
  animation: live-soft-pulse 0.8s ease-out;
}

@keyframes live-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 117, 46, 0.38);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(232, 117, 46, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 117, 46, 0);
  }
}

@keyframes live-soft-pulse {
  0% {
    filter: brightness(1);
    transform: scale(1);
  }
  35% {
    filter: brightness(1.08);
    transform: scale(1.015);
  }
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
}

@keyframes live-menu-blink {
  0%,
  100% {
    color: var(--danger);
  }
  50% {
    color: #ff6a55;
    text-shadow: 0 0 12px rgba(179, 58, 46, 0.35);
  }
}

@keyframes ticket-pending-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(232, 117, 46, 0.08);
    background: var(--panel);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(232, 117, 46, 0.13);
    background: #fff7ef;
  }
}

@keyframes score-live-blink {
  0%,
  100% {
    background: var(--danger);
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    background: #e44534;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.65);
  }
}

.payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(36, 33, 30, 0.42);
}

.payment-modal {
  width: min(880px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(24, 19, 14, 0.28);
  padding: 20px;
}

.payment-method-window {
  width: min(720px, 100%);
}

.payment-modal header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.payment-modal h2,
.payment-modal h3 {
  margin: 0 0 8px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.payment-method {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr;
  justify-items: start;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--ink);
  text-align: left;
}

.payment-method:hover {
  border-color: #efb17c;
  background: var(--hover);
}

.payment-method small {
  color: var(--muted);
  font-weight: 700;
}

.payment-icon {
  width: 42px;
  height: 32px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.payment-method-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 16px;
}

.payment-method-head h3,
.payment-method-head p {
  margin: 0;
}

.payment-back {
  margin-bottom: 8px;
}

.payment-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  padding: 16px;
}

.payment-instruction {
  display: grid;
  gap: 8px;
  margin: 8px 0 14px;
}

.payment-instruction p {
  margin: 0;
}

.payment-error {
  border: 1px solid #f2bf9a;
  border-radius: 8px;
  background: #fff4e8;
  color: var(--accent-strong);
  font-weight: 800;
  margin-top: 12px;
  padding: 10px;
}

.payment-waiting {
  border: 1px solid #bee3c9;
  border-radius: 8px;
  background: #effaf2;
  color: #276738;
  font-weight: 800;
  margin-top: 12px;
  padding: 10px;
}

.live-stats {
  grid-template-columns: 1fr;
  gap: 6px;
}

.live-stats header,
.live-stat-row {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) minmax(120px, 1.4fr) minmax(80px, 1fr);
  gap: 10px;
  align-items: center;
}

.live-stats header {
  border: 0;
  background: transparent;
  padding: 0 2px 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.live-stats header span,
.live-stat-row span {
  text-align: center;
}

.live-stats header strong:last-child,
.live-stat-row b:last-child {
  text-align: right;
}

.live-stats .live-stat-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  display: grid;
  padding: 10px 12px;
}

.live-stat-row b {
  font-size: 17px;
}

.line-editor {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  gap: 16px;
  align-items: start;
}

.line-table,
.line-odds {
  display: grid;
  gap: 8px;
}

.line-row,
.line-market-form,
.line-odd-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
}

.line-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
  align-items: end;
  padding: 10px;
}

.line-row.active {
  border-color: #efb17c;
  background: var(--hover);
}

.line-row label,
.line-market-form label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.line-row input,
.line-market-form input,
.line-market-form select,
.line-odd-form input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 9px;
  color: var(--ink);
  background: #fff;
}

.line-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.line-actions a {
  color: var(--accent-strong);
  font-weight: 900;
}

.line-selected {
  margin-bottom: 14px;
}

.line-selected h2 {
  margin: 0 0 4px;
}

.line-market {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.line-market-form {
  display: grid;
  grid-template-columns: minmax(160px, 2fr) minmax(100px, 1fr) 90px minmax(140px, 1.2fr) auto;
  gap: 8px;
  align-items: end;
  padding: 10px;
}

.line-odd-form {
  display: grid;
  grid-template-columns: minmax(150px, 1.6fr) 90px 110px 90px auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
}

.line-odd-form.new {
  border-style: dashed;
}

.detail-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.balance-history-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.check.compact {
  font-size: 13px;
  color: var(--muted);
}

.live-betslip h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.live-slip {
  max-height: 360px;
  overflow: auto;
}

.live-slip-message {
  border: 1px solid #bee3c9;
  border-radius: 8px;
  background: #effaf2;
  color: #276738;
  font-weight: 800;
  padding: 10px;
  margin-bottom: 10px;
}

.live-slip-message.warning {
  border-color: #f2bf9a;
  background: #fff4e8;
  color: var(--accent-strong);
}

.live-stake-form {
  grid-template-columns: 1fr;
}

.site-footer {
  width: min(1240px, calc(100% - 32px));
  margin: 30px auto 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) 0.7fr 0.7fr minmax(280px, 1fr);
  gap: 24px;
  padding: 28px 0 34px;
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
  font-size: 20px;
}

.site-footer h3 {
  color: var(--ink);
  font-size: 14px;
  margin: 0 0 10px;
}

.site-footer a {
  display: block;
  margin: 7px 0;
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero,
  .grid.two,
  .grid.three,
  .home-dashboard,
  .match-layout,
  .live-layout,
  .auth-shell,
  .admin-layout,
  .line-editor,
  .support-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .line-row,
  .line-market-form,
  .line-odd-form {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    min-height: 66px;
    gap: 10px;
    padding: 14px;
    z-index: 90;
  }

  .brand {
    min-width: 0;
  }

  .brand strong,
  .brand small {
    white-space: nowrap;
  }

  .mobile-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    border-radius: 999px;
    padding: 0 10px;
    background: var(--accent-soft);
    color: var(--ink);
    font-weight: 800;
    white-space: nowrap;
  }

  .mobile-balance span {
    color: var(--muted);
    font-size: 12px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
    min-height: 42px;
    display: grid;
    gap: 5px;
    place-content: center;
    background: var(--dark);
    padding: 0;
    position: relative;
    z-index: 80;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: #fff;
    display: block;
  }

  .nav,
  .user-nav {
    position: fixed;
    right: 14px;
    top: 78px;
    z-index: 70;
    width: min(320px, calc(100vw - 28px));
    display: grid;
    justify-content: stretch;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    box-shadow: var(--shadow);
    transform: translateX(calc(100% + 32px));
    transition: transform 0.2s ease;
  }

  .nav a,
  .user-nav a,
  .user-nav form,
  .user-nav button {
    pointer-events: auto;
  }

  .user-nav {
    top: auto;
    bottom: 74px;
  }

  .menu-open .nav,
  .menu-open .user-nav {
    transform: translateX(0);
  }

  .site-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(36, 33, 30, 0.28);
  }

  .menu-open .site-backdrop,
  .mobile-slip-open .site-backdrop {
    display: block;
  }

  .right-rail,
  .live-sidebar,
  .live-right-rail {
    position: static;
  }

  .slip-card,
  .live-betslip {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 72px;
    top: auto;
    z-index: 75;
    max-height: min(74vh, 620px);
    overflow: auto;
    transform: translateY(calc(100% + 120px));
    transition: transform 0.22s ease;
  }

  .mobile-slip-open .slip-card,
  .mobile-slip-open .live-betslip {
    transform: translateY(0);
  }

  .mobile-slip-close {
    display: inline-flex;
    float: right;
    margin: 0 0 10px 10px;
    background: var(--accent-soft);
    color: var(--ink);
  }

  .has-mobile-slip .mobile-slip-button {
    position: fixed;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    z-index: 80;
    display: inline-flex;
    gap: 8px;
    min-width: 132px;
    min-height: 46px;
    border-radius: 999px;
    box-shadow: var(--shadow);
  }

  .mobile-slip-button b {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--accent-strong);
  }

  .hero > div:first-child {
    min-height: auto;
    padding: 28px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1240px);
    margin-top: 14px;
    padding-bottom: 72px;
  }

  .hero h1,
  .page-head h1,
  .auth-shell h1 {
    font-size: 32px;
  }

  .brand small,
  .mobile-balance span {
    display: none;
  }

  .mobile-balance {
    padding: 0 9px;
    font-size: 13px;
  }

  .split,
  .stake-form,
  .search-form {
    grid-template-columns: 1fr;
  }

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

  .live-sports,
  .live-matches {
    max-height: 280px;
  }

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