:root {
  --bg: #d7dbe0;
  --surface: #eef1f4;
  --text: #1f2f3f;
  --accent: #243a4d;
  --danger: #8f1d2c;
  --border: #b7c0c9;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 54px;
  min-height: 100vh;
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #dfe3e8 0%, var(--bg) 35%, #d3d8de 100%);
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.container {
  max-width: 1360px;
  margin: 2rem auto;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(21, 33, 44, 0.12);
}

.sportsbook-page .container {
  overflow: visible;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 54px - 4rem);
}

.sportsbook-page .layout-grid {
  flex: 1;
}

.sportsbook-page #lines {
  min-height: 220px;
}

.sportsbook-page .lines-empty-state {
  min-height: 220px;
  display: flex;
  align-items: center;
}

.scroll-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 140;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 58px;
  padding: 0.85rem 1rem;
  border: 1px solid #173247;
  border-radius: 999px;
  background: linear-gradient(180deg, #2c465b 0%, #1d3347 100%);
  color: #f5fbff;
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 12px 22px rgba(20, 35, 48, 0.24);
  cursor: pointer;
  opacity: 0.96;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.scroll-to-top-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.floating-game-search {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 140;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.floating-game-search-toggle,
.floating-game-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 1px solid #173247;
  border-radius: 999px;
  background: linear-gradient(180deg, #2c465b 0%, #1d3347 100%);
  color: #f5fbff;
  box-shadow: 0 12px 22px rgba(20, 35, 48, 0.24);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease,
    background 0.18s ease;
}

.floating-game-search-toggle:hover,
.floating-game-search-clear:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(20, 35, 48, 0.28);
}

.floating-game-search-toggle:focus-visible,
.floating-game-search-clear:focus-visible,
.floating-game-search-input:focus-visible {
  outline: 3px solid rgba(255, 209, 26, 0.55);
  outline-offset: 3px;
}

.floating-game-search-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.floating-game-search-panel {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.35rem;
  border: 1px solid #b8c5cf;
  border-radius: 999px;
  background: rgba(238, 241, 244, 0.97);
  box-shadow: 0 12px 22px rgba(20, 35, 48, 0.16);
}

.floating-game-search-input {
  width: min(270px, 42vw);
  min-width: 0;
  border: 0;
  background: transparent;
  color: #1f2f3f;
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  font-size: 0.95rem;
  padding: 0.7rem 0.3rem 0.7rem 0.6rem;
}

.floating-game-search-input::placeholder {
  color: #637787;
}

.floating-game-search-input:focus {
  outline: none;
}

.floating-game-search-input[type="search"]::-webkit-search-decoration,
.floating-game-search-input[type="search"]::-webkit-search-cancel-button,
.floating-game-search-input[type="search"]::-webkit-search-results-button,
.floating-game-search-input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.floating-game-search-input[type="search"]::-ms-clear,
.floating-game-search-input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.floating-game-search-clear {
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
  line-height: 1;
}

mark.game-search-highlight {
  background: #ffe06b;
  color: inherit;
  padding: 0 0.08em;
  border-radius: 0.18em;
}

@media (max-width: 900px) {
  .floating-game-search {
    left: 0.85rem;
    bottom: 0.85rem;
    gap: 0.4rem;
  }

  .floating-game-search-toggle,
  .floating-game-search-clear {
    width: 52px;
    height: 52px;
  }

  .floating-game-search-panel {
    padding: 0.25rem;
  }

  .floating-game-search-input {
    width: min(190px, 52vw);
    font-size: 16px;
    padding: 0.6rem 0.25rem 0.6rem 0.5rem;
  }

  .floating-game-search-clear {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
}

.scroll-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(20, 35, 48, 0.28);
}

.scroll-to-top:focus-visible {
  outline: 3px solid rgba(255, 209, 26, 0.55);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .scroll-to-top {
    right: 0.85rem;
    bottom: 0.85rem;
    min-width: 52px;
    min-height: 52px;
    padding: 0.72rem 0.85rem;
  }
}

.admin-menu-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.admin-menu-jump-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  padding: 0.7rem 0.8rem;
  margin-top: 0.8rem;
  border: 1px solid #c5cdd5;
  border-radius: 6px;
  background: #e8edf2;
}

.admin-menu-jump-label {
  font-weight: 700;
  color: #22384b;
}

.admin-menu-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-menu-jump-link {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #7f96aa;
  background: #f7fafc;
  color: #21374a;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.admin-menu-jump-link:hover {
  border-color: #2a4155;
  color: #162d40;
}

.admin-menu-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  background: #f5f7f9;
  border: 1px solid #c7d0d8;
}

.admin-menu-table th,
.admin-menu-table td {
  padding: 0.6rem;
  border: 1px solid #d0d6dc;
  vertical-align: middle;
  font-size: 0.92rem;
}

.admin-menu-table th {
  background: #2a4155;
  color: #f8fcff;
  text-align: left;
}

.admin-menu-cell-sport,
.admin-menu-cell-id {
  white-space: nowrap;
  font-weight: 600;
}

.admin-menu-input {
  width: 100%;
  min-width: 260px;
  border: 1px solid #a8b2bc;
  border-radius: 4px;
  padding: 0.45rem 0.5rem;
  font-size: 0.92rem;
  background: #fff;
  color: #243444;
}

.admin-menu-cell-check {
  text-align: center;
  width: 84px;
}

.admin-menu-cell-action {
  width: 110px;
}

.admin-menu-empty {
  text-align: center;
  color: #516475;
  padding: 1rem;
}

.admin-menu-row-sport-header td {
  background: #b8c8d7;
  font-weight: 700;
}

.admin-menu-row-section-header td {
  background: #d3dee8;
}

.admin-menu-row-sport-header .admin-menu-input,
.admin-menu-row-section-header .admin-menu-input {
  background: #f9fbfd;
}

.admin-expenses-page {
  max-width: 1060px;
}

.admin-expenses-add-card {
  margin-top: 0.8rem;
  padding: 0.9rem;
  border: 1px solid #c7d0d8;
  border-radius: 8px;
  background: #f5f7f9;
}

.admin-expenses-add-grid {
  display: grid;
  grid-template-columns: 120px minmax(180px, 1fr);
  gap: 0.55rem 0.75rem;
  align-items: center;
}

.admin-expenses-label {
  font-weight: 600;
  color: #22384b;
}

.admin-expenses-input {
  width: 100%;
  border: 1px solid #a8b2bc;
  border-radius: 4px;
  padding: 0.45rem 0.5rem;
  font-size: 0.92rem;
  background: #fff;
  color: #243444;
}

.admin-expenses-add-action {
  grid-column: 2;
}

.admin-expenses-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
}

.admin-expenses-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #f5f7f9;
  border: 1px solid #c7d0d8;
}

.admin-expenses-table th,
.admin-expenses-table td {
  padding: 0.55rem;
  border: 1px solid #d0d6dc;
  vertical-align: middle;
}

.admin-expenses-table th {
  background: #2a4155;
  color: #f8fcff;
  text-align: left;
  white-space: nowrap;
}

.admin-expenses-cell-action {
  width: 96px;
  text-align: center;
}

.admin-expenses-empty {
  text-align: center;
  color: #4b6072;
}

.admin-message-form {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.85rem;
  max-width: 760px;
}

.admin-message-label {
  margin-bottom: 0;
  font-weight: 700;
  color: #22384b;
}

.admin-message-input,
.admin-message-textarea {
  margin-top: 0.45rem;
  width: 100%;
  border: 1px solid #a8b2bc;
  border-radius: 6px;
  padding: 0.55rem 0.6rem;
  font: inherit;
  color: #223546;
  background: #ffffff;
}

.admin-message-textarea {
  resize: vertical;
  min-height: 92px;
}

.admin-message-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0;
  font-weight: 700;
  color: #22384b;
}

.admin-message-toggle input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
}

.admin-message-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* ── Top navigation bar ─────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--accent);
  border-bottom: 2px solid #0a5555;
}

.site-nav,
.site-nav.hidden,
.site-nav[hidden] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.site-nav-inner,
.site-nav-right {
  display: flex !important;
  visibility: visible !important;
}

@media (min-width: 901px) {
  .site-nav-links {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

.site-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
}

.site-nav-brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.site-nav-logo {
  display: block;
  height: 34px;
  width: auto;
}

.site-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.site-nav-link {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  color: #e8f4f4;
  text-decoration: none;
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    background 0.15s,
    color 0.15s;
}

a.site-nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.site-nav-link.active {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.site-nav-link.disabled {
  color: rgba(255, 255, 255, 0.4);
  cursor: default;
}

.site-nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #eef7ff;
  font-family: "Trebuchet MS", Tahoma, Verdana, sans-serif;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 700;
}

.site-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}
/* ─────────────────────────────────────────────────────── */

.page-hero {
  display: none;
}

.eyebrow {
  margin: 0 0 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: #1b4f75;
  font-weight: 700;
}

.hero-copy {
  margin: 0.3rem 0 0;
  color: #3f4f5f;
}

.welcome-line {
  display: none;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
  color: #4d5a5a;
  font-size: 0.95rem;
}

/* Keep the main board compact per latest UI request. */
.hero-meta,
#sports-menu-status,
#status,
#board-summary {
  display: none !important;
}

.hero-meta span {
  padding: 0.2rem 0.55rem;
  border: 1px solid #b9c3cd;
  border-radius: 999px;
  background: #f4f6f8;
}

.hero-refresh-button {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #2d4c63;
  background: #2d4c63;
  color: #fff;
  font: inherit;
  font-weight: 700;
}

.hero-refresh-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.actions a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

h1 {
  margin: 0 0 1rem;
}

label {
  display: block;
  margin-bottom: 0.85rem;
}

input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
}

textarea,
select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}

button {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 0.65rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.notice {
  padding: 0.7rem 0.85rem;
  border-radius: 6px;
  background: #d7e3ec;
  border: 1px solid #b6c8d6;
  margin: 0.75rem 0 1rem;
}

.notice.error {
  background: #f8e7ea;
  border-color: #e3b0b7;
  color: var(--danger);
}

.login-screen {
  padding-top: 0;
  background:
    radial-gradient(
      circle at 12% 15%,
      rgba(255, 208, 77, 0.24),
      transparent 24%
    ),
    radial-gradient(circle at 88% 12%, rgba(26, 60, 87, 0.2), transparent 30%),
    linear-gradient(140deg, #e9edf1 0%, #d6dce3 44%, #cdd6df 100%);
  font-family: "Manrope", "Trebuchet MS", Tahoma, Verdana, sans-serif;
  overflow: hidden;
}

.login-screen-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 460px);
  gap: 3.4rem;
  align-items: center;
  max-width: 1240px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 2.5rem;
}

.login-screen-shell::before,
.login-screen-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.login-screen-shell::before {
  width: 320px;
  height: 320px;
  top: 4%;
  right: 28%;
  background: rgba(255, 255, 255, 0.34);
  filter: blur(4px);
}

.login-screen-shell::after {
  width: 220px;
  height: 220px;
  left: -2%;
  bottom: 6%;
  background: rgba(36, 58, 77, 0.1);
  filter: blur(4px);
}

.login-screen-intro,
.login-screen-panel-wrap {
  position: relative;
  z-index: 1;
}

.login-screen-intro {
  max-width: 720px;
}

.login-screen-topline {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.login-screen-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.login-screen-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: linear-gradient(180deg, #21384b 0%, #162936 100%);
  box-shadow: 0 24px 44px rgba(17, 31, 42, 0.24);
}

.login-screen-brand-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.login-screen-panel-kicker,
.login-screen-feature-label {
  margin: 0 0 0.3rem;
  color: #8b6b0f;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-screen-intro h1,
.login-screen-panel h2 {
  margin: 0;
  color: #1c3042;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.login-screen-intro h1 {
  font-size: clamp(4.1rem, 7vw, 6.6rem);
  line-height: 0.9;
}

.login-screen-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.4rem;
}

.login-screen-stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(36, 58, 77, 0.12);
  border-radius: 22px;
  background: rgba(244, 247, 250, 0.78);
  box-shadow: 0 16px 34px rgba(21, 33, 44, 0.1);
}

.login-screen-stat-value {
  color: #1e3446;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-screen-stat-copy {
  color: #4c6072;
  font-size: 0.92rem;
  line-height: 1.6;
}

.login-screen-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 720px;
  margin-top: 0.5rem;
}

.login-screen-feature-card {
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(36, 58, 77, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 34px rgba(21, 33, 44, 0.1);
  backdrop-filter: blur(8px);
}

.login-screen-feature-card strong {
  display: block;
  color: #21384b;
  font-size: 1rem;
  line-height: 1.65;
}

.login-screen-panel-wrap {
  display: flex;
  justify-content: flex-end;
}

.login-screen-panel {
  width: 100%;
  padding: 2.1rem;
  border: 1px solid rgba(23, 42, 58, 0.14);
  border-radius: 32px;
  background: linear-gradient(
    180deg,
    rgba(249, 251, 253, 0.94) 0%,
    rgba(239, 244, 247, 0.88) 100%
  );
  box-shadow: 0 28px 60px rgba(18, 31, 43, 0.18);
  backdrop-filter: blur(12px);
}

.login-screen-panel h2 {
  font-size: 2.7rem;
  line-height: 0.94;
}

.login-screen-panel-head > p:last-child {
  margin: 0.55rem 0 0;
  color: #526578;
  line-height: 1.7;
}

.login-screen-panel-strip {
  display: flex;
  gap: 0.45rem;
  margin: 1.4rem 0 1.25rem;
}

.login-screen-panel-strip span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d5dde4, #ecf0f4);
}

.login-screen-panel-strip span:nth-child(1) {
  width: 56px;
}

.login-screen-panel-strip span:nth-child(2) {
  width: 32px;
}

.login-screen-panel-strip span:nth-child(3) {
  width: 76px;
}

.login-screen-notice {
  margin-top: 0;
  margin-bottom: 1.2rem;
  border-radius: 14px;
}

.login-screen-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-screen-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.login-screen-form label {
  margin-bottom: 0;
  color: #425466;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-screen-form input {
  margin-top: 0;
  min-height: 3.65rem;
  padding: 1rem 1.05rem;
  border: 1px solid #c4cdd6;
  border-radius: 16px;
  background: #fcfdfe;
  color: #21384b;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.login-screen-form input::placeholder {
  color: #7b8a98;
}

.login-screen-form input:focus {
  outline: none;
  border-color: #8b6b0f;
  box-shadow: 0 0 0 4px rgba(255, 209, 26, 0.18);
  transform: translateY(-1px);
}

.login-screen-submit {
  margin-top: 0.3rem;
  min-height: 3.7rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #27445b 0%, #1b3041 100%);
  color: #f7fbff;
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 18px 32px rgba(19, 33, 44, 0.2);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.login-screen-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(19, 33, 44, 0.24);
  filter: brightness(1.03);
}

.login-screen-panel-note {
  margin-top: 1.2rem;
  padding: 1rem 1rem 0.95rem;
  border: 1px solid rgba(35, 60, 80, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
}

.login-screen-panel-note strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #21384b;
  font-size: 0.95rem;
}

.login-screen-panel-note p {
  margin: 0;
  color: #5c7082;
  font-size: 0.9rem;
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .login-screen-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.6rem;
  }

  .login-screen-panel-wrap {
    justify-content: stretch;
  }
}

@media (max-width: 820px) {
  .login-screen-stat-row,
  .login-screen-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .login-screen-shell {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  .login-screen-intro {
    display: contents;
  }

  .login-screen-topline {
    order: 1;
    position: relative;
    z-index: 10;
    margin-top: 3.4rem;
  }

  .login-screen-panel-wrap {
    order: 2;
    margin-bottom: 3.4rem;
    justify-content: stretch;
    width: 100%;
  }

  .login-screen-stat-row {
    order: 3;
  }

  .login-screen-brand {
    align-items: flex-start;
  }

  .login-screen-brand-mark {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  .login-screen-brand-mark img {
    width: 36px;
    height: 36px;
  }

  .login-screen-intro h1 {
    font-size: 2.9rem;
  }

  .login-screen-panel {
    padding: 1.4rem;
    border-radius: 24px;
  }

  .login-screen-panel h2 {
    font-size: 2rem;
  }
}

.event-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0;
  margin-bottom: 0.9rem;
  background: #eceff3;
  box-shadow: 0 8px 16px rgba(18, 31, 43, 0.16);
  overflow: hidden;
}

.event-card .bookmaker-line {
  padding: 0.55rem 0.8rem 0;
}

.odds-table-wrap {
  overflow-x: auto;
  /* padding: 0 0.8rem 0.85rem; */
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #e7eaee;
}

.odds-table th,
.odds-table td {
  border-bottom: 1px solid #c7d0d8;
  padding: 0.6rem 0.5rem;
  vertical-align: middle;
}

.odds-table thead th {
  background: #ebebeb;
  color: #2f2f2f;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.odds-table tbody tr:last-child th,
.odds-table tbody tr:last-child td {
  border-bottom: 0;
}

.odds-team-cell {
  width: 50%;
  text-align: left;
  color: #203445;
  font-weight: 700;
  background: #f6f7f9;
}

.odds-market-cell {
  width: 16.667%;
  text-align: center;
  background: #e8ebef;
}

.odds-cell-button,
.odds-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  font: inherit;
  line-height: 1.15;
  text-align: center;
  font-size: 0.82rem;
}

.odds-cell-button {
  border: 1px solid #d2b200;
  background: #ffd11a;
  color: #1c2430;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.odds-cell-button:hover {
  background: #ffc800;
}

.odds-cell-button--closed,
.odds-cell-button--closed:disabled {
  background: #c8cdd3;
  border-color: #a0a8b0;
  color: #6b7280;
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.65;
  pointer-events: none;
}

.odds-cell-button--closed:hover,
.odds-cell-button--closed:disabled:hover {
  background: #c8cdd3;
}

.odds-cell-button.odds-cell-button--inverted {
  background-color: #1c2430;
  color: #ffd11a;
  border-color: #d2b200;
}

.odds-empty {
  border: 1px solid #d4d8dd;
  background: #dfe3e8;
  color: #5d6a75;
  font-weight: 700;
}

@media (max-width: 768px) {
  .odds-cell-button,
  .odds-empty {
    font-size: 0.72rem;
    padding: 0.35rem 0.4rem;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .odds-cell-button,
  .odds-empty {
    font-size: 0.64rem;
    padding: 0.3rem 0.3rem;
    min-height: 38px;
  }
}

.odds-empty {
  border: 1px solid #d4d8dd;
  background: #dfe3e8;
  color: #5d6a75;
  font-weight: 700;
}

.event-card .meta.bookmaker-line {
  margin: 0;
  color: #30495a;
}

.lines-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 2rem;
  background: #f7fafc;
}

.lines-empty-state-body {
  border: 1px dashed #aebbc8;
  border-radius: 8px;
  padding: 2rem;
  background: #eef3f7;
  text-align: center;
}

.lines-empty-state-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: #223a4e;
}

.lines-empty-state-message {
  margin: 0;
  color: #355166;
}

.sport-section {
  margin-bottom: 1rem;
}

.sport-section-head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #253a4d;
  border-radius: 8px;
  background: #253a4d;
  color: #f4f8fb;
  cursor: pointer;
  user-select: none;
}

.sport-section-head:hover {
  background: #2f4558;
}

.sport-section-head:focus-visible {
  outline: 3px solid rgba(255, 209, 26, 0.55);
  outline-offset: 2px;
}

.sport-section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  text-align: center;
}

.sport-section-collapsed .sport-section-head {
  margin-bottom: 0;
}

.sport-count {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #89a2b7;
  background: #415d76;
  font-size: 0.82rem;
  color: #f1f5f9;
}

.sports-menu-wrap {
  position: relative;
  margin: 0.75rem 0 1rem;
}

.home-message-card {
  margin: 0 0 0.75rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #b8c5cf;
  border-left: 4px solid #2f4f66;
  border-radius: 8px;
  background: #f2f6f9;
  box-shadow: 0 3px 8px rgba(30, 48, 61, 0.08);
}

.home-message-title {
  margin: 0;
  color: #20394b;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.home-message-body {
  margin: 0.3rem 0 0;
  color: #334b5e;
  font-size: 0.88rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .home-message-card {
    margin-bottom: 0.6rem;
    padding: 0.55rem 0.65rem;
  }

  .home-message-title {
    font-size: 0.94rem;
  }

  .home-message-body {
    font-size: 0.85rem;
  }
}

.sports-menu-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.sports-menu-button {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 240px;
  max-width: 300px;
  border: 1px solid #c7a10b;
  background: #ffd11a;
  color: #1b3f63;
  font-weight: 700;
  text-align: center;
  justify-content: center;
}

.sports-menu-button > span:not(.mobile-slip-count) {
  width: 100%;
  text-align: center;
}

.mobile-slip-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #1b3f63;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

.mobile-slip-toggle .mobile-slip-count {
  display: none;
}

.sports-menu-controls .mobile-slip-toggle {
  display: none;
}

.sports-menu-list {
  display: none;
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.4rem);
  left: 0;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  border: 1px solid #8fa0b0;
  border-radius: 10px;
  background: #d7dce1;
  box-shadow: 0 12px 28px rgba(31, 42, 46, 0.12);
  max-height: 460px;
  overflow: auto;
  width: 390px;
  box-sizing: border-box;
}

.sports-menu-list.open {
  display: block;
}

.sports-menu-item {
  width: 100%;
  text-align: left;
  background: #465d72;
  color: #f5f7fa;
  border: 0;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  font-weight: 600;
  justify-content: center;
}

.sports-menu-item:hover {
  background: #5b7ea6;
}

.sports-menu-sport {
  border: 1px solid #90a1b1;
  border-radius: 8px;
  margin-bottom: 0.45rem;
  overflow: hidden;
}

.sports-menu-sport:last-child {
  margin-bottom: 0;
}

.sports-menu-sport-toggle {
  border-radius: 0;
  background: #465d72;
  color: #f6f9fc;
  font-weight: 700;
}

.sports-menu-sport-body {
  display: none;
  padding: 0.35rem;
  border-top: 1px solid #9fb0bf;
  background: #d9dde2;
}

.sports-menu-sport.open .sports-menu-sport-body {
  display: block;
}

.sports-menu-item-leaf {
  background: #d9dde2;
  color: #2b4052;
}

.sports-menu-group {
  margin-bottom: 0.25rem;
  border: 1px solid #aab5c0;
  border-radius: 6px;
  overflow: hidden;
}

.sports-menu-group:last-child {
  margin-bottom: 0;
}

.sports-menu-group-toggle {
  width: 100%;
  text-align: left;
  background: #bec7cf;
  color: #223645;
  border: 0;
  border-radius: 0;
  padding: 0.55rem 0.65rem;
  font-weight: 600;
}

.sports-menu-group-body {
  display: none;
  padding: 0.2rem;
  background: #d9dde2;
}

.sports-menu-group.open .sports-menu-group-body {
  display: block;
}

.sports-menu-sub-item {
  width: 100%;
  text-align: left;
  background: transparent;
  color: #1f2f3e;
  border: 0;
  border-radius: 6px;
  padding: 0.5rem 0.55rem 0.5rem 1rem;
  font-size: 0.92rem;
}

.sports-menu-sub-item:hover {
  background: #c7d0d8;
}

.sports-menu-wrap .notice {
  margin-top: 0.6rem;
  margin-bottom: 0;
}

.event-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.55rem 0.8rem;
  background: #dedede;
  border-bottom: 1px solid #acacac;
}

.event-head-main {
  flex: 1;
  min-width: 0;
}

.event-head-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.event-head h3 {
  margin: 0;
  color: #2f2f2f;
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: left;
}

.kickoff-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #4d6b82;
  background: #314b62;
  color: #eef4f9;
  font-size: 0.82rem;
  white-space: nowrap;
}

.kickoff-badge.live {
  background: #15803d;
  border-color: #166534;
  color: #ffffff;
  font-weight: 700;
}

.event-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid #7b8a97;
  border-radius: 999px;
  background: #eef2f5;
  color: #3d4f5e;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.event-info-button:hover {
  background: #e2e8ec;
}

.event-minimize-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid #7b8a97;
  border-radius: 999px;
  background: #eef2f5;
  color: #3d4f5e;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.event-minimize-button:hover {
  background: #e2e8ec;
}

.event-card.minimized .event-info-panel,
.event-card.minimized .odds-table-wrap {
  display: none;
}

.event-card.minimized .event-head {
  border-bottom: 0;
}

.event-info-panel {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.55rem 0.8rem 0.2rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #c4ccd3;
  border-radius: 0.5rem;
  background: #f3f6f8;
}

.event-info-row {
  color: #3d4f5e;
  font-size: 0.81rem;
}

.score-by-period-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.77rem;
  margin-bottom: 0.3rem;
}

.score-by-period-table th,
.score-by-period-table td {
  padding: 3px 5px;
  text-align: center;
  border: 1px solid #c4ccd3;
  white-space: nowrap;
}

.score-by-period-table .score-team-cell {
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-by-period-table thead th {
  background: #e3e9ee;
  font-weight: 700;
  color: #2c3e50;
}

.score-by-period-table .score-total-cell {
  font-weight: 700;
  background: #dde4ea;
}

.score-by-period-table .score-period-current {
  background: #fff3cd;
  font-weight: 700;
}

.bookmaker-line {
  margin-bottom: 0.5rem;
}

.live-game-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 0.8rem 0.15rem;
}

.live-score-line {
  color: #8b1e1e;
  font-size: 0.95rem;
  font-weight: 700;
}

.live-state-line {
  color: #4a5560;
  font-size: 0.82rem;
}

.odds-team-wrap {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.odds-team-info {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.odds-team-name {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.odds-team-score {
  color: #8b1e1e;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.odds-team-subtext {
  display: block;
  color: #5d6872;
  font-size: 0.78rem;
  font-style: italic;
  font-weight: 500;
}

.odds-team-name-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
}

.odds-team-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.team-record-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: 0.06rem;
}

.team-record-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  color: #4a7fa5;
  font-size: 0.92rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.75;
  transition: opacity 0.15s;
  min-height: unset;
  min-width: unset;
  width: auto;
  height: auto;
}

.team-record-btn:hover {
  opacity: 1;
  color: #1e5a85;
}

.team-record-popup {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 200;
  background: #fff;
  border: 1px solid #b0bec7;
  border-radius: 0.4rem;
  padding: 0.35rem 0.6rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
  white-space: nowrap;
  font-size: 0.78rem;
  color: #2c3e50;
  line-height: 1.5;
  min-width: 9rem;
}

.meta {
  margin: 0.25rem 0;
  color: #2f4657;
}

.hidden {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.board-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.95rem;
}

.sport-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.95rem;
}

.board-date-filter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
}

.sports-menu-controls .board-date-filter {
  margin: 0;
}

.board-date-filter-select {
  min-width: 210px;
  max-width: 100%;
  background: #f7fafc;
  border: 1px solid #95a8b8;
  border-radius: 8px;
  color: #243645;
  font-size: 0.85rem;
  padding: 0.3rem 0.55rem;
}

.board-date-filter-select:focus {
  outline: none;
  border-color: #2a4459;
  box-shadow: 0 0 0 2px rgba(42, 68, 89, 0.15);
}

.sport-filter-chip {
  border: 1px solid #95a8b8;
  border-radius: 999px;
  background: #e0e5ea;
  color: #2f4657;
  padding: 0.36rem 0.72rem;
  font-size: 0.86rem;
  line-height: 1;
}

.sport-filter-chip:hover {
  border-color: #2a4459;
  background: #cad4dd;
}

.sport-filter-chip.active {
  border-color: #2a4459;
  background: #2a4459;
  color: #fff;
}

.summary-pill {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #e0e6ec;
  border: 1px solid #b2bfc9;
  color: #2d4456;
  font-size: 0.86rem;
}

.board-status {
  display: none;
  margin-top: 0.1rem;
}

.skeleton {
  overflow: hidden;
}

.skeleton-line,
.skeleton-cell,
.skeleton-team {
  border-radius: 999px;
  background: linear-gradient(90deg, #eee7db 0%, #f6f2eb 50%, #eee7db 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}

.skeleton-line {
  height: 14px;
  margin-bottom: 0.65rem;
}

.skeleton-line.wide {
  width: 68%;
}

.skeleton-line.short {
  width: 24%;
  margin-left: auto;
}

.skeleton-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.8rem 0.35rem;
}

.skeleton-table {
  display: grid;
  gap: 0.45rem;
  padding: 0 0.8rem 0.85rem;
}

.skeleton-row {
  display: grid;
  grid-template-columns: 34% repeat(3, 1fr);
  gap: 0.45rem;
}

.skeleton-team,
.skeleton-cell {
  height: 44px;
  border-radius: 8px;
}

.skeleton-team {
  background: linear-gradient(90deg, #e8d9b0 0%, #f4ebc9 50%, #e8d9b0 100%);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes odds-invert-colors {
  0% {
    background-color: #1c2430;
    color: #ffd11a;
    border-color: #d2b200;
  }
  100% {
    background-color: #ffd11a;
    color: #1c2430;
    border-color: #d2b200;
  }
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
}

.layout-grid > * {
  min-width: 0;
}

.slip-panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  background: #d8e6d1;
  align-self: start;
  position: sticky;
  top: 1rem;
}

.section-head h2 {
  margin: 0;
}

.slip-items {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.slip-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.6rem;
  margin-bottom: 0.8rem;
}

.slip-mode-option {
  border: 1px solid #9fb7a3;
  background: #dce8d6;
  color: #2d4b39;
}

.slip-mode-option.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.slip-mode-option.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.slip-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  background: #edf4e9;
}

.slip-item-info {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.slip-item-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.slip-item-odds {
  margin: 0.1rem 0 0;
  font-weight: 700;
  font-size: 0.85rem;
  color: #223a4a;
  text-align: center;
}

.slip-item-controls {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.slip-remove-button {
  min-width: 28px;
  height: 28px;
  padding: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.slip-summary {
  display: grid;
  gap: 0.75rem;
}

.checkout-button {
  width: 100%;
}

.slip-parlay-odds {
  margin-top: 0;
  padding: 0.5rem 0.65rem;
  border: 1px solid #a5b79f;
  border-radius: 6px;
  background: #e6f0e1;
}

.checkout-mode {
  margin-bottom: 1rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.checkout-title {
  text-align: center;
}

.checkout-preview {
  margin: 0 0 0.8rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid #d8d2c4;
  border-radius: 12px;
  background: linear-gradient(180deg, #fcfaf5 0%, #f4efe4 100%);
  box-shadow: 0 6px 16px rgba(34, 58, 74, 0.06);
}

.checkout-preview.error {
  border-color: #e0b5bc;
  background: linear-gradient(180deg, #fdf5f6 0%, #f7e7ea 100%);
  color: #7c2535;
}

.checkout-preview p {
  margin: 0;
}

.checkout-preview-errors {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.checkout-preview-block {
  display: grid;
  gap: 0.65rem;
}

.checkout-preview-header {
  display: grid;
  gap: 0.12rem;
}

.checkout-preview-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7b6f5b;
}

.checkout-preview-title {
  font-size: 0.96rem;
  line-height: 1.15;
  color: #223a4a;
}

.checkout-preview-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.checkout-preview-stat {
  display: grid;
  gap: 0.16rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #ddd4c4;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.checkout-preview-stat.is-neutral {
  background: rgba(243, 238, 229, 0.95);
}

.checkout-preview-stat.is-accent {
  background: rgba(228, 238, 230, 0.95);
  border-color: #bfd0bf;
}

.checkout-preview-stat.is-accent-soft {
  background: rgba(236, 243, 248, 0.95);
  border-color: #c8d7e3;
}

.checkout-preview-stat.is-success {
  background: rgba(228, 242, 221, 0.95);
  border-color: #b8cfab;
}

.checkout-preview-stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f6a5f;
}

.checkout-preview-stat-value {
  font-size: 0.92rem;
  line-height: 1.15;
  color: #213949;
}

.checkout-preview-note {
  font-size: 0.8rem;
  line-height: 1.35;
  color: #465867;
}

.checkout-plays-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}

.checkout-play-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid;
}

.checkout-play-badge i {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.checkout-play-badge-label {
  font-weight: 600;
  text-transform: capitalize;
}

.checkout-play-badge-count {
  font-weight: 700;
  font-size: 1rem;
  min-width: 1.5rem;
  text-align: center;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  background: rgba(255, 255, 255, 0.6);
}

.checkout-play-badge-free {
  background: rgba(76, 175, 80, 0.1);
  color: #2d7a3f;
  border-color: rgba(76, 175, 80, 0.4);
}

.checkout-play-badge-free .checkout-play-badge-count {
  background: rgba(76, 175, 80, 0.25);
  color: #1e5128;
}

.checkout-play-badge-match {
  background: rgba(33, 150, 243, 0.1);
  color: #0d47a1;
  border-color: rgba(33, 150, 243, 0.4);
}

.checkout-play-badge-match .checkout-play-badge-count {
  background: rgba(33, 150, 243, 0.25);
  color: #001a4d;
}

.checkout-play-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.checkout-plays-container {
  padding: 0.8rem 0;
}

/* ── Weekly progress hints ────────────────────────────────────────── */
.checkout-progress-hints {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: rgba(34, 58, 74, 0.045);
  margin-top: 0.5rem;
  text-align: center;
}

.checkout-progress-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
}

.checkout-progress-hint i {
  font-size: 1rem;
  flex-shrink: 0;
}

.checkout-progress-hint-free {
  color: #2d7a3f;
}

.checkout-progress-hint-match {
  color: #0d47a1;
}

@media (prefers-reduced-motion: no-preference) {
  .checkout-progress-hint {
    animation: hint-fadein 0.25s ease both;
  }
  @keyframes hint-fadein {
    from {
      opacity: 0;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.checkout-preview-inline-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: rgba(34, 58, 74, 0.06);
}

.checkout-preview-inline-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #637786;
}

.checkout-preview-inline-summary strong {
  font-size: 1rem;
  color: #1d3341;
}

.checkout-preview-error-item {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #e5c6cb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.checkout-preview-error-main {
  min-width: 0;
  display: grid;
  gap: 0.18rem;
}

.checkout-preview-error-actions {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 0.45rem;
  margin-left: 0.7rem;
}

.checkout-accept-line-button {
  appearance: none;
  border: 1px solid #1f7a49;
  background: #ffffff;
  color: #1f7a49;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 7px;
  padding: 0.34rem 0.62rem;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease,
    filter 0.12s ease;
}

.checkout-accept-line-button,
.checkout-reject-line-button {
  width: 118px;
  text-align: center;
}

.checkout-accept-line-button:hover {
  background: #f2faf5;
  border-color: #17663b;
  color: #17663b;
}

.checkout-accept-line-button:active {
  filter: brightness(0.98);
}

.checkout-accept-line-button:focus-visible {
  outline: 2px solid rgba(31, 122, 73, 0.35);
  outline-offset: 2px;
}

.checkout-reject-line-button {
  appearance: none;
  border: 1px solid #ccd6dd;
  background: #ffffff;
  color: #3e4b57;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 7px;
  padding: 0.34rem 0.62rem;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease,
    filter 0.12s ease;
}

.checkout-reject-line-button:hover {
  background: #f7f9fb;
  border-color: #b9c5cf;
  color: #2f3a44;
}

.checkout-reject-line-button:active {
  filter: brightness(0.98);
}

.checkout-reject-line-button:focus-visible {
  outline: 2px solid rgba(95, 112, 126, 0.35);
  outline-offset: 2px;
}

.checkout-preview-error-item strong {
  display: block;
  color: #7c2535;
}

.checkout-preview-error-item span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
}

.checkout-preview-inline-meta {
  font-size: 0.74rem;
  color: #7a5560;
}

.checkout-items {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.checkout-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
}

.checkout-item.checkout-item-missing-stake {
  border-color: #d47466;
  box-shadow: 0 0 0 2px rgba(212, 116, 102, 0.2);
  background: linear-gradient(180deg, #fffefe 0%, #fff7f5 100%);
}

.checkout-item.checkout-item-missing-stake .checkout-wager-input {
  border-color: #c54c36;
  background: #fff3ee;
}

.checkout-item.checkout-item-missing-stake .checkout-wager-input:focus {
  outline: 2px solid rgba(197, 76, 54, 0.32);
  outline-offset: 1px;
}

.checkout-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.checkout-item.checkout-item-parlay {
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: start;
  gap: 1rem;
}

.checkout-parlay-left-col {
  min-width: 0;
}

.checkout-parlay-right-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checkout-parlay-right-col #submit-checkout {
  width: 100%;
}

.checkout-parlay-legs {
  display: grid;
  gap: 0.5rem;
  margin: 0.25rem 0 0.7rem;
}

.checkout-parlay-leg-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #d9dfd7;
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #f7faf6;
}

.checkout-parlay-leg-details {
  margin: 0;
  min-width: 0;
}

.checkout-parlay-leg-tools {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 0.4rem;
}

.checkout-parlay-leg-odds {
  font-size: 0.78rem;
  font-weight: 700;
  color: #223a4a;
  background: #e8efe3;
  border: 1px solid #c6d5bf;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  white-space: nowrap;
}

.checkout-leg-wrap {
  min-width: 0;
}

.checkout-leg-wrap .account-legs {
  margin: 0;
}

.checkout-item-remove {
  grid-column: 3;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: end;
}

.checkout-legs {
  margin: 0.4rem 0 0.8rem;
  padding-left: 1rem;
  color: #4d5a5a;
}

.checkout-leg-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.checkout-leg-row-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.checkout-remove-button,
.checkout-remove-button.ghost-button {
  align-self: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.checkout-remove-button:hover {
  background: transparent;
}

.checkout-amount-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.checkout-amount-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.84rem;
  color: #2f4657;
}

.checkout-amount-field input {
  width: 100%;
}

.checkout-play-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 0.42rem;
  margin-top: 0.2rem;
  padding: 0.5rem 0.55rem 0.45rem;
  border: 1px solid #c8d4df;
  border-radius: 10px;
  background:
    radial-gradient(
      120% 120% at 100% 0%,
      rgba(54, 136, 202, 0.12) 0%,
      rgba(54, 136, 202, 0) 62%
    ),
    linear-gradient(180deg, #f9fcff 0%, #f2f7fb 100%);
}

.checkout-item > .checkout-play-options {
  grid-column: 1 / 3;
  margin-top: 0;
}

.checkout-play-title {
  margin: 0;
  grid-column: 1 / -1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #355a76;
}

.checkout-play-options.has-single-option {
  grid-template-columns: minmax(0, 1fr);
}

.checkout-play-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.5rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid #c8d4df;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.checkout-play-option:hover {
  border-color: #7ea3c0;
  box-shadow: 0 2px 8px rgba(36, 71, 101, 0.12);
  transform: translateY(-1px);
}

.checkout-play-option.is-disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.checkout-play-option.is-disabled:hover {
  border-color: #c8d4df;
  box-shadow: none;
  transform: none;
}

.checkout-play-option.is-selected {
  border-color: #2a628a;
  background: #edf6fd;
  box-shadow: inset 0 0 0 1px rgba(42, 98, 138, 0.12);
}

.checkout-play-option.is-free.is-selected {
  border-color: #1c7b55;
  background: #edf9f3;
  box-shadow: inset 0 0 0 1px rgba(28, 123, 85, 0.15);
}

.checkout-play-option.is-match.is-selected {
  border-color: #1c7b55;
  background: #edf9f3;
  box-shadow: inset 0 0 0 1px rgba(28, 123, 85, 0.15);
}

.checkout-play-checkbox {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #2a628a;
  cursor: pointer;
}

.checkout-play-label {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #223d53;
  cursor: pointer;
}

.checkout-parlay-title {
  margin: 0;
}

@media (max-width: 640px) {
  .checkout-preview {
    padding: 0.7rem;
    border-radius: 10px;
  }

  .checkout-preview-inline-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .checkout-item {
    grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) auto;
    align-items: center;
  }

  .checkout-item.checkout-item-parlay {
    grid-template-columns: 1fr;
  }

  .checkout-parlay-right-col {
    order: -1;
  }

  .checkout-parlay-leg-item {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .checkout-parlay-leg-tools {
    justify-content: flex-end;
  }

  .checkout-remove-button,
  .checkout-remove-button.ghost-button {
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    padding: 0;
    font-size: 0.85rem;
  }

  .checkout-amount-grid {
    grid-template-columns: 1fr;
  }

  .checkout-play-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.45rem 0.48rem 0.4rem;
    gap: 0.38rem;
  }

  .checkout-play-option {
    padding: 0.3rem 0.4rem;
  }

  .checkout-play-label {
    font-size: 0.84rem;
  }

  .checkout-form #submit-checkout {
    width: 100%;
  }
}

.checkout-form {
  display: grid;
  gap: 0.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
}

.checkout-form #submit-checkout {
  width: 80%;
}

.checkout-submitting-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: rgba(132, 141, 149, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.checkout-submitting-overlay[hidden] {
  display: none;
}

.checkout-submitting-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: 1px solid #d2d8de;
  background: #ffffff;
  color: #2d3f4d;
  box-shadow: 0 10px 24px rgba(20, 30, 38, 0.16);
  font-size: 0.9rem;
  font-weight: 600;
}

.checkout-submitting-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ccd3db;
  border-top-color: #4f6475;
  animation: checkout-submit-spin 0.8s linear infinite;
}

@keyframes checkout-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.account-balances {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.balance-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: #fff;
}

.balance-card .meta {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  text-align: center;
}

.balance-card h3 {
  margin: 0.35rem 0 0;
  font-size: 1.4rem;
  color: #1a2e1a;
  text-align: center;
}

.account-bonus {
  position: relative;
  overflow: hidden;
  margin: -0.7rem 0 1.8rem;
  padding: 0.8rem 0.95rem 0.95rem;
  border: 1px solid #b8c9d8;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fbff 0%, #edf4fb 100%);
}

.account-bonus::before {
  content: "";
  position: absolute;
  inset: -60% -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(18, 150, 97, 0.2), transparent 38%),
    radial-gradient(
      circle at 86% 22%,
      rgba(36, 107, 170, 0.24),
      transparent 42%
    ),
    radial-gradient(
      circle at 44% 92%,
      rgba(64, 131, 196, 0.14),
      transparent 44%
    );
  animation: bonus-panel-drift 11s ease-in-out infinite alternate;
}

.account-bonus-title,
.account-bonus-subtitle,
.account-bonus-grid {
  position: relative;
  z-index: 1;
}

.account-bonus-title {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.94rem;
  font-weight: 900;
  color: #173955;
  text-align: center;
}

.account-bonus-subtitle {
  margin: 0.22rem 0 0.72rem;
  text-align: center;
  font-size: 0.75rem;
  color: #3e6078;
  letter-spacing: 0.02em;
  text-transform: none;
}

.account-bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.bonus-card {
  border: 1px solid #b8ccd9;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(22, 45, 69, 0.08);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.bonus-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(22, 45, 69, 0.12);
}

.bonus-card .meta {
  margin: 0;
  font-size: 0.69rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #55718a;
  text-align: center;
}

.bonus-card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.38rem;
  width: 100%;
}

.bonus-card-icon {
  font-size: 0.72rem;
  line-height: 1;
}

.bonus-card h3 {
  margin: 0.28rem 0 0;
  text-align: center;
  font-size: 1.72rem;
  line-height: 1;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  color: #11304b;
}

.bonus-card.is-free {
  background:
    linear-gradient(180deg, rgba(238, 250, 244, 0.95) 0%, #ffffff 100%), #ffffff;
  border-color: #9dd2b6;
}

.bonus-card.is-free .bonus-card-icon {
  color: #16714d;
}

.bonus-card.is-match {
  background:
    linear-gradient(180deg, rgba(230, 243, 255, 0.95) 0%, #ffffff 100%), #ffffff;
  border-color: #9dc2e8;
}

.bonus-card.is-match .bonus-card-icon {
  color: #285b8f;
}

@keyframes bonus-panel-drift {
  0% {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(1.5%, 1.2%, 0) scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-bonus::before {
    animation: none;
  }

  .bonus-card {
    transition: none;
  }

  .bonus-card:hover {
    transform: none;
  }
}

.account-section {
  margin-top: 2rem;
}

.account-page-title {
  margin: 0 0 1rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.55rem;
  color: #183247;
}

.account-section-title {
  margin: 0 0 0.8rem;
  padding: 0.55rem 0.9rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.92rem;
  font-weight: 800;
  color: #eef4fb;
  background: linear-gradient(180deg, #1f3850 0%, #172d40 100%);
  border: 1px solid #112638;
  border-radius: 8px;
}

.account-section-title.completed {
  background: linear-gradient(180deg, #2a4156 0%, #1d3245 100%);
}

.account-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: inherit;
  cursor: pointer;
}

.account-section-toggle:focus-visible {
  outline: 3px solid rgba(255, 209, 26, 0.55);
  outline-offset: 2px;
}

.account-count-badge {
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(241, 245, 249, 0.2);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
}

.account-section-chevron {
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  margin-top: -0.2rem;
}

.account-section.collapsed .account-section-chevron {
  transform: rotate(-45deg);
  margin-top: 0;
}

.account-section > .row {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.account-section > .row h2 {
  margin: 0;
}

.account-bets {
  display: grid;
  gap: 1rem;
}

.account-bets[hidden] {
  display: none;
}

.account-bet {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.account-bet-top {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1rem;
  align-items: center;
}

.account-bet-left {
  min-width: 0;
  display: grid;
  gap: 0.5rem;
}

.account-bet-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
}

.account-bet-head h3 {
  margin: 0;
  font-size: 1rem;
}

.house-rules-page {
  max-width: 1120px;
}

.house-rules-sports-menu {
  margin-top: 0;
}

.house-rules-card {
  border: 1px solid #bcc5ce;
  border-radius: 10px;
  background: #f5f7fa;
  box-shadow: 0 10px 20px rgba(17, 30, 43, 0.08);
  padding: 1rem 1.15rem;
}

.house-rules-card h1 {
  margin: 0 0 1rem;
  text-align: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1d3447;
}

.house-rules-quick-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.house-rules-quick-link {
  display: block;
  padding: 0.5rem 0.65rem;
  border: 1px solid #b4bec8;
  border-radius: 8px;
  background: #edf1f5;
  color: #1f3a4f;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.house-rules-quick-link:hover {
  background: #dfe8f0;
}

.house-rules-content {
  color: #1f2f3f;
  line-height: 1.45;
}

.house-rules-content h2 {
  margin-top: 1.1rem;
  margin-bottom: 0.6rem;
  color: #243d52;
  border-bottom: 1px solid #cad2db;
  padding-bottom: 0.2rem;
}

.house-rules-content ol,
.house-rules-content ul {
  margin: 0.45rem 0 0.8rem;
}

.house-rules-content br + br {
  display: none;
}

.house-rules-content a[name] {
  display: block;
  position: relative;
  top: -68px;
  visibility: hidden;
}

@media (max-width: 768px) {
  .house-rules-quick-links {
    grid-template-columns: 1fr;
  }
}

.bet-badges {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-type {
  background: #e8f0fe;
  color: #1a56db;
}
.badge-pending {
  background: #fff8e1;
  color: #b45309;
}
.badge-win {
  background: #dcfce7;
  color: #15803d;
}
.badge-loss {
  background: #fee2e2;
  color: #b91c1c;
}
.badge-push {
  background: #f1f5f9;
  color: #475569;
}
.badge-graded {
  background: #e0f2fe;
  color: #0369a1;
}

.bet-when {
  margin: 0.3rem 0 0;
  color: #6b7280;
  font-size: 0.8rem;
}

.bet-when-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 0.7rem;
  margin-top: 0.8rem;
  border-top: 1px solid #ebebeb;
}

.bet-amounts {
  display: flex;
  gap: 1.5rem;
  padding: 0.55rem 0;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  margin-bottom: 0.65rem;
}

.bet-amounts-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  padding: 0;
  margin: 0;
  border: 0;
  align-content: center;
}

.bet-amount-panel {
  display: grid;
  justify-items: stretch;
  align-content: center;
  gap: 0.5rem;
}

.bet-amounts-with-icon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0.4rem;
  width: 100%;
}

.bet-amounts-with-icon .bet-amounts {
  width: 100%;
}

.account-grade-icon {
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.account-grade-icon i {
  font-size: 0.88rem;
  line-height: 1;
}

.account-grade-actions {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.admin-action-btn.account-notes-toggle {
  width: 1.55rem;
  height: 1.55rem;
  min-width: 1.55rem;
  min-height: 1.55rem;
  max-width: 1.55rem;
  max-height: 1.55rem;
  padding: 0;
}

.admin-action-btn.account-notes-toggle i {
  font-size: 0.88rem;
  line-height: 1;
}

.account-bet-notes {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.account-bet-notes[hidden] {
  display: none;
}

.account-grade-correct {
  background: #eef8ef;
  color: #2e7d32;
  border-color: #9fceaa;
}

.account-grade-incorrect {
  background: #fdeeee;
  color: #c62828;
  border-color: #efb8b8;
}

.account-grade-cancel {
  background: #fff9e8;
  color: #b8860b;
  border-color: #f0d58a;
}

@media (min-width: 901px) {
  .account-bet-top-straight {
    align-items: stretch;
  }

  .account-bet-top-straight .account-bet-left-straight {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .account-bet-top-straight .account-bet-left-straight .account-legs-straight {
    width: 100%;
    height: 100%;
    display: flex;
  }

  .account-bet-top-straight
    .account-bet-left-straight
    .account-legs-straight
    .leg-item {
    flex: 1;
    justify-content: center;
  }

  .account-bet-top-straight .bet-amount-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .account-bet-top-straight .bet-amount-panel .bet-amounts {
    width: 100%;
  }
}

.bet-amount-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.6rem;
  background: #f7fafc;
  border: 1px solid #d9e2ea;
  border-radius: 8px;
  text-align: center;
  align-items: center;
}

.bet-amount-item .meta {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bet-amount-item strong {
  font-size: 0.94rem;
  color: #1a2e1a;
}

.bet-amount-item-payment-from {
  background: #dcfce7;
  border-color: #86efac;
}

.bet-amount-item-payment-from strong,
.bet-amount-item-payment-from .meta {
  color: #14532d;
}

.bet-amount-item-payment-to {
  background: #fee2e2;
  border-color: #fecaca;
}

.bet-amount-item-payment-to strong,
.bet-amount-item-payment-to .meta {
  color: #7f1d1d;
}

.amount-status-badge {
  justify-self: center;
}

.bet-play-type-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-left: auto;
}

.bet-play-type-badge {
  gap: 0.28rem;
  padding: 0.2rem 0.56rem;
  border: 1px solid;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.bet-play-type-badge i {
  font-size: 0.72rem;
  line-height: 1;
}

.badge-free-play {
  background: linear-gradient(135deg, #e5f7e8 0%, #d6f2dc 100%);
  color: #17653a;
  border-color: #84c49b;
}

.badge-match-play {
  background: linear-gradient(135deg, #e6efff 0%, #d8e7ff 100%);
  color: #1d4f95;
  border-color: #8fb2df;
}

.account-pick-summary {
  display: grid;
  gap: 0.18rem;
  padding: 0.2rem 0;
}

.account-pick-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: #1f2f3f;
}

.account-pick-line {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: #1b4f75;
}

.account-legs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.account-legs-centered {
  gap: 0.95rem;
}

.account-bet-left .account-legs-centered {
  margin: 0;
}

.leg-item {
  display: flex;
  flex-direction: column;
  padding: 0.45rem 0.7rem;
  background: #f7faf6;
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.account-legs-centered .leg-item {
  align-items: center;
  text-align: center;
  padding: 0.9rem 0.9rem;
}

.account-legs-straight.account-legs-centered {
  gap: 1.15rem;
}

.account-legs-straight.account-legs-centered .leg-item {
  padding: 1rem 0.95rem;
}

.account-legs-straight .leg-pick {
  margin-top: 0.4rem;
}

.account-legs-straight .leg-when {
  margin-top: 0.44rem;
}

.leg-pick {
  font-weight: 600;
  font-size: 0.88rem;
  color: #1a2e1a;
}

.leg-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-top: 0;
  margin-bottom: 0.88rem;
}

.leg-event {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f2f3f;
}

.leg-pick {
  font-weight: 700;
  font-size: 0.88rem;
  color: #1b4f75;
  margin-top: 0.3rem;
}

.leg-meta {
  font-size: 0.76rem;
  color: #5f6f7b;
  margin-top: 0.28rem;
}

.leg-when {
  font-size: 0.76rem;
  color: #6b7280;
  margin-top: 0.34rem;
}

.leg-opponent {
  font-size: 0.8rem;
  color: #4b6070;
  margin-top: 0.88rem;
  font-style: italic;
}

.leg-pick-type {
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.account-parlay-accordion {
  border: 1px solid #d6dde5;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
  max-width: 100%;
}

.parlay-accordion-toggle {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0.7rem 3.9rem 0.7rem 3.9rem;
  background: linear-gradient(180deg, #68808f 0%, #566e7c 100%);
  color: #f4f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.parlay-accordion-toggle:hover {
  background: linear-gradient(180deg, #748fa0 0%, #607d8c 100%);
}

.parlay-accordion-toggle::after {
  content: "+";
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

.parlay-accordion-toggle[aria-expanded="true"]::after {
  content: "-";
}

.parlay-accordion-title {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.parlay-accordion-meta {
  position: absolute;
  right: 2.2rem;
  top: 50%;
  transform: translateY(-50%);
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #f4c74f;
  color: #1a2e1a;
  border: 1px solid rgba(20, 34, 46, 0.25);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.parlay-accordion-body {
  padding: 0.65rem;
  border-top: 1px solid #d6dde5;
  background: #e8edf3;
}

.parlay-accordion-body[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .account-bet-top {
    grid-template-columns: minmax(0, 1fr) minmax(105px, 33vw);
    gap: 0.8rem;
    align-items: center;
  }

  .bet-amount-panel {
    justify-self: end;
    width: 100%;
    max-width: 180px;
  }
}

.ghost-button {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.market-group {
  margin-top: 0.75rem;
}

.market-group h4 {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #4b6173;
}

.odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.odd-button {
  text-align: center;
  min-height: 56px;
  padding: 0.6rem 0.45rem;
  background: #f4cb00;
  color: #1d2d3b;
  border: 1px solid #d5ab00;
  border-radius: 6px;
  font-weight: 700;
  box-shadow: inset 0 -1px 0 rgba(145, 112, 0, 0.25);
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.odd-button:hover {
  transform: translateY(-1px);
  border-color: #c19700;
  background: #ffd427;
}

.checkout-button {
  background: #3da84c;
}

.checkout-button:hover {
  background: #349543;
}

.toolbar {
  display: grid;
  grid-template-columns: 120px 220px;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0;
}

.admin-bets {
  display: grid;
  gap: 0.85rem;
}

.admin-bet {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  background: #fff;
}

.admin-bet-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.admin-legs {
  margin: 0.75rem 0;
  padding-left: 1rem;
}

.admin-grade-grid {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

@media (max-width: 900px) {
  body {
    padding-top: 54px;
  }

  .site-nav-inner {
    position: relative;
    height: 54px;
    min-height: 54px;
    padding-top: 0;
    padding-bottom: 0;
    gap: 0.6rem;
    flex-wrap: nowrap;
  }

  .site-nav-logo {
    height: 30px;
  }

  .site-nav-right {
    width: auto;
    position: relative;
    justify-content: flex-end;
  }

  .site-nav-toggle {
    display: inline-flex;
  }

  .site-nav-links {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    width: 220px;
    padding: 0.4rem;
    border: 1px solid #3f5568;
    border-radius: 8px;
    background: #2a4154;
    box-shadow: 0 10px 24px rgba(8, 18, 25, 0.32);
    flex-direction: column;
    gap: 0.3rem;
    z-index: 120;
  }

  .site-nav-right.open .site-nav-links {
    display: flex;
  }

  .site-nav-link {
    display: block;
    width: 100%;
    padding: 0.5rem 0.7rem;
  }

  .page-hero {
    flex-direction: column;
    align-items: start;
  }

  .sports-menu-controls {
    width: 100%;
  }

  .sports-menu-controls .sports-menu-button {
    min-width: 0;
    flex: 1;
  }

  .sports-menu-controls .mobile-slip-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  .sports-menu-controls .mobile-slip-toggle > span:first-child {
    width: 100%;
    text-align: center;
  }

  .sports-menu-controls .mobile-slip-toggle .mobile-slip-count {
    display: inline-flex;
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .slip-panel.mobile-slip-dropdown {
    display: none;
    width: 100%;
    margin-top: 0.6rem;
  }

  .slip-panel.mobile-slip-dropdown.open {
    display: block;
  }

  .hero-meta {
    align-items: flex-start;
  }

  .sport-filters {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: 0.35rem;
    padding-bottom: 0.25rem;
  }

  .sport-filter-chip {
    padding: 0.22rem 0.5rem;
    font-size: 0.76rem;
    min-height: 0;
    line-height: 1.05;
  }

  .board-date-filter {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .sports-menu-controls .board-date-filter {
    width: 100%;
    margin-top: 0.35rem;
  }

  .board-date-filter-select {
    min-width: 170px;
    width: 100%;
  }

  .layout-grid {
    grid-template-columns: 1fr;
  }

  .odds-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .slip-panel {
    position: static;
  }

  .admin-grade-grid {
    grid-template-columns: 1fr;
  }

  .account-bet-head {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 54px;
    font-size: 14px;
  }

  .container {
    max-width: 100%;
    margin: 1rem auto;
    padding: 0.75rem;
    border-radius: 4px;
  }

  .site-nav-inner {
    padding: 0 0.75rem;
  }

  h1 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.15rem;
  }

  .checkout-accept-line-button,
  .checkout-reject-line-button {
    width: 98px;
    font-size: 0.68rem;
    padding: 0.26rem 0.44rem;
  }

  .page-hero {
    padding: 0.5rem 0 0.75rem;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
  }

  .eyebrow {
    font-size: 0.65rem;
    margin: 0 0 0.1rem;
  }

  .hero-copy,
  .welcome-line {
    font-size: 0.9rem;
  }

  .hero-meta {
    gap: 0.25rem;
    font-size: 0.8rem;
  }

  .hero-meta span {
    padding: 0.1rem 0.4rem;
    font-size: 0.75rem;
  }

  .hero-refresh-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }

  .notice {
    padding: 0.5rem 0.65rem;
    margin: 0.5rem 0 0.75rem;
    font-size: 0.9rem;
  }

  .row {
    gap: 0.5rem;
  }

  label {
    margin-bottom: 0.65rem;
    font-size: 0.9rem;
  }

  input,
  textarea,
  select {
    padding: 0.45rem;
    font-size: 1rem;
    margin-top: 0.25rem;
  }

  button {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .event-info-button,
  .event-minimize-button {
    width: 1.5rem;
    height: 1.5rem;
    min-height: unset;
    font-size: 0.78rem;
    padding: 0;
  }

  .sports-menu-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .sports-menu-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .sports-menu-sub-item {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .event-card {
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 8px rgba(18, 31, 43, 0.12);
  }

  .event-head {
    padding: 0.65rem 0.75rem;
  }

  .event-head h3 {
    text-align: left;
  }

  .odds-table-wrap {
    overflow-x: auto;
    padding: 0 0.6rem 0.65rem;
    -webkit-overflow-scrolling: touch;
  }

  .odds-table {
    font-size: 0.85rem;
  }

  .odds-team-cell {
    padding: 0.4rem 0.35rem;
  }

  .odds-market-cell {
    padding: 0.4rem 0.3rem;
  }

  .odds-cell-button,
  .odds-empty {
    min-height: 40px;
    padding: 0.35rem 0.4rem;
    font-size: 0.8rem;
    border-radius: 4px;
  }

  .slip-panel {
    border-width: 1px;
    padding: 0.75rem;
    margin-top: 1rem;
    position: static;
  }

  .section-head {
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .section-head h2 {
    font-size: 1rem;
    margin: 0;
  }

  .slip-items {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .slip-item {
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  .slip-mode {
    gap: 0.35rem;
    margin-bottom: 0.65rem;
  }

  .slip-mode-option {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .slip-summary {
    margin-top: 0.75rem;
  }

  .slip-summary p {
    font-size: 0.8rem;
    margin: 0.4rem 0;
  }

  .checkout-button {
    width: 100%;
    margin-top: 0.5rem;
  }

  .ghost-button {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .sport-section {
    margin-bottom: 0.75rem;
  }

  .sport-section-head {
    gap: 0.5rem;
    margin: 0 0 0.4rem;
    padding: 0.4rem 0.6rem;
    font-size: 0.9rem;
  }

  .account-balances {
    gap: 0.45rem;
  }

  .account-bonus {
    margin: -0.45rem 0 1.35rem;
    padding: 0.55rem 0.55rem 0.65rem;
    border-radius: 10px;
  }

  .account-bonus-title {
    font-size: 0.8rem;
  }

  .account-bonus-subtitle {
    margin: 0.18rem 0 0.5rem;
    font-size: 0.62rem;
  }

  .account-bonus-grid {
    gap: 0.45rem;
  }

  .bonus-card {
    padding: 0.52rem 0.3rem;
    border-radius: 8px;
  }

  .bonus-card .meta {
    font-size: 0.54rem;
    letter-spacing: 0.03em;
  }

  .bonus-card-label {
    gap: 0.28rem;
  }

  .bonus-card-icon {
    font-size: 0.62rem;
  }

  .bonus-card h3 {
    font-size: 1.08rem;
    margin-top: 0.18rem;
  }

  .balance-card {
    padding: 0.55rem 0.35rem;
  }

  .balance-card .meta {
    font-size: 0.56rem;
    letter-spacing: 0.03em;
  }

  .balance-card h3 {
    font-size: 1rem;
    margin-top: 0.2rem;
  }

  .account-bet-top {
    grid-template-columns: minmax(0, 1fr) minmax(100px, 35vw);
    gap: 0.55rem;
  }

  .bet-amount-panel {
    max-width: 150px;
  }

  .bet-amount-item {
    padding: 0.42rem 0.38rem;
  }

  .bet-amount-item .meta {
    font-size: 0.58rem;
  }

  .bet-amount-item strong {
    font-size: 0.8rem;
  }

  .bet-when-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 0.55rem;
    row-gap: 0.35rem;
  }

  .bet-when-bottom > .meta {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .bet-when-bottom .amount-status-badge {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    justify-self: end;
  }

  .bet-when-bottom .bet-play-type-badges {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
    margin-left: 0;
    margin-top: 0.1rem;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 50px;
    font-size: 13px;
  }

  .container {
    margin: 0.5rem auto;
    padding: 0.5rem;
  }

  .site-nav-inner {
    height: auto;
    min-height: 50px;
    padding: 0.3rem 0.5rem;
    gap: 0.4rem;
  }

  .site-nav-logo {
    height: 24px;
  }

  .site-nav-link {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }

  .page-hero {
    padding: 0.35rem 0 0.5rem;
    margin-bottom: 0.5rem;
    flex-direction: column;
    align-items: stretch;
  }

  .eyebrow {
    font-size: 0.6rem;
    margin: 0 0 0.05rem;
  }

  h1 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
  }

  .hero-copy,
  .welcome-line {
    font-size: 0.8rem;
    margin: 0.2rem 0;
  }

  .hero-meta {
    gap: 0.2rem;
    font-size: 0.75rem;
    align-items: stretch;
  }

  .hero-meta span {
    padding: 0.08rem 0.3rem;
    font-size: 0.7rem;
  }

  .hero-refresh-button {
    width: 100%;
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
  }

  .notice {
    padding: 0.4rem 0.5rem;
    margin: 0.3rem 0 0.5rem;
    font-size: 0.8rem;
    border-radius: 4px;
  }

  button {
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
    min-height: 42px;
    border-radius: 4px;
  }

  .event-info-button,
  .event-minimize-button {
    width: 1.35rem;
    height: 1.35rem;
    min-height: unset;
    font-size: 0.72rem;
    padding: 0;
    border-radius: 999px;
  }

  .sport-filters .sport-filter-chip {
    padding: 0.18rem 0.46rem;
    font-size: 0.74rem;
    min-height: 0;
    border-radius: 999px;
    line-height: 1.05;
  }

  .sports-menu-button {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
    flex: 1;
  }

  .sports-menu-list {
    font-size: 0.85rem;
  }

  .sports-menu-item {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  #sports-menu-current {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .event-card {
    margin-bottom: 0.5rem;
    padding: 0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(18, 31, 43, 0.12);
  }

  .event-head {
    padding: 0.5rem 0.5rem;
  }

  .event-head > div:first-child h3 {
    font-size: 0.95rem;
    margin: 0 0 0.25rem;
  }

  .event-head > div:last-child {
    font-size: 0.75rem;
  }

  .odds-table-wrap {
    overflow-x: auto;
    padding: 0 0.4rem 0.5rem;
    -webkit-overflow-scrolling: touch;
  }

  .odds-table {
    font-size: 0.7rem;
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .odds-table th,
  .odds-table td {
    padding: 0.3rem 0.2rem;
    border-bottom: 1px solid #c7d0d8;
  }

  .odds-team-cell {
    width: 45%;
    padding: 0.3rem 0.25rem;
    font-size: 0.74rem;
    word-break: break-word;
  }

  .odds-market-cell {
    width: 18.333%;
    padding: 0.3rem 0.15rem;
  }

  .odds-cell-button,
  .odds-empty {
    min-height: 36px;
    padding: 0.25rem 0.25rem;
    font-size: 0.68rem;
    border-radius: 3px;
    white-space: normal;
  }

  .odds-cell-button {
    font-weight: 600;
  }

  .slip-panel {
    border-width: 1px;
    padding: 0.5rem;
    margin-top: 0.75rem;
    position: relative;
    background: #d8e6d1;
  }

  .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    margin-bottom: 0.4rem;
  }

  .section-head h2 {
    font-size: 0.95rem;
    margin: 0;
    order: -1;
  }

  .clear-slip {
    width: 100%;
  }

  .slip-items {
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
  }

  .slip-item {
    padding: 0.4rem 0.4rem;
    font-size: 0.8rem;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
  }

  .slip-item-controls {
    margin-left: auto;
  }

  .slip-item-team {
    font-weight: 700;
    font-size: 0.85rem;
  }

  .slip-item-market {
    font-size: 0.75rem;
    color: #555;
  }

  .slip-mode {
    gap: 0.25rem;
    margin-bottom: 0.5rem;
  }

  .slip-mode-option {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }

  .slip-summary {
    margin-top: 0.5rem;
  }

  .slip-summary p {
    font-size: 0.75rem;
    margin: 0.3rem 0;
  }

  .slip-parlay-odds {
    margin: 0.3rem 0;
  }

  .checkout-button {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
  }

  .ghost-button {
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
  }

  .account-balances {
    gap: 0.3rem;
    margin: 0.8rem 0 1.25rem;
  }

  .account-bonus {
    margin: -0.7rem 0 1rem;
    padding: 0.46rem;
  }

  .account-bonus-subtitle {
    font-size: 0.58rem;
    margin-bottom: 0.4rem;
  }

  .account-bonus-grid {
    gap: 0.3rem;
  }

  .bonus-card {
    padding: 0.45rem 0.22rem;
  }

  .bonus-card-label {
    gap: 0.2rem;
  }

  .bonus-card-icon {
    font-size: 0.56rem;
  }

  .bonus-card h3 {
    font-size: 0.96rem;
  }

  .balance-card {
    padding: 0.42rem 0.26rem;
    border-radius: 7px;
  }

  .balance-card .meta {
    font-size: 0.5rem;
    letter-spacing: 0.02em;
  }

  .balance-card h3 {
    font-size: 0.8rem;
    margin-top: 0.14rem;
  }

  .account-bet-top {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 37vw);
    gap: 0.45rem;
  }

  .bet-amount-panel {
    max-width: 130px;
    gap: 0.34rem;
  }

  .bet-amount-item {
    padding: 0.33rem 0.28rem;
    border-radius: 6px;
  }

  .bet-amount-item .meta {
    font-size: 0.52rem;
  }

  .bet-amount-item strong {
    font-size: 0.74rem;
  }
}

/* --- Admin Panel - Legacy 3-Column Layout ---------------------------------- */

.admin-bets {
  display: grid;
  gap: 1rem;
}

.admin-picks-loader {
  margin: 0.35rem 0 0.95rem;
  padding: 0.7rem;
  border: 1px solid #b7c5d0;
  border-radius: 10px;
  background: linear-gradient(180deg, #f6f9fc 0%, #eef4f8 100%);
}

.admin-picks-loader-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f3548;
}

.admin-picks-loader-head {
  margin-bottom: 0.55rem;
}

.admin-picks-loader-grid {
  display: grid;
  gap: 0.65rem;
}

.admin-picks-loader-card {
  padding: 0.6rem;
  border: 1px solid #ced8e0;
  border-radius: 8px;
  background: #f9fcff;
}

.admin-picks-loader-line,
.admin-picks-loader-cell {
  border-radius: 999px;
  background: linear-gradient(90deg, #eee7db 0%, #f6f2eb 50%, #eee7db 100%);
  background-size: 200% 100%;
  animation: shimmer 1.35s linear infinite;
}

.admin-picks-loader-line {
  height: 12px;
  margin-bottom: 0.45rem;
}

.admin-picks-loader-line.wide {
  width: 62%;
}

.admin-picks-loader-line.mid {
  width: 44%;
}

.admin-picks-loader-row {
  display: grid;
  grid-template-columns: 1fr 1fr 0.6fr;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.admin-picks-loader-cell {
  height: 28px;
  border-radius: 7px;
}

.admin-picks-loader-cell.short {
  background: linear-gradient(90deg, #e8d9b0 0%, #f4ebc9 50%, #e8d9b0 100%);
}

@media (max-width: 700px) {
  .admin-picks-loader-row {
    grid-template-columns: 1fr 1fr;
  }

  .admin-picks-loader-cell.short {
    display: none;
  }
}

/* Legacy admin layout (3-column: left details | middle inputs | right icons) */

.admin-legacy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(15, 28, 40, 0.08);
  transition:
    box-shadow 0.15s,
    opacity 0.25s;
}

.admin-legacy-row {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

/* Left column: pick details */
.admin-legacy-left {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 0.4rem;
}

.admin-legacy-legs-wrap {
  width: 100%;
}

.admin-legacy-legs-wrap .account-legs {
  margin: 0;
  width: 100%;
}

.admin-legacy-legs-wrap .account-legs-centered {
  gap: 0.55rem;
}

.admin-legacy-legs-wrap .leg-item {
  width: 100%;
  max-width: none;
  padding: 0.65rem 0.75rem;
}

.admin-legacy-legs-wrap .leg-item.has-line-history {
  position: relative;
  padding-top: 1.45rem;
}

.admin-legacy-legs-wrap .leg-item .leg-line-history-btn {
  font-size: 0.68rem;
  padding: 0.06rem 0.34rem;
  line-height: 1;
}

.admin-legacy-legs-wrap .leg-item .leg-history-dock {
  position: absolute;
  top: 0.3rem;
  right: 0.42rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.12rem;
}

.admin-legacy-legs-wrap .leg-title {
  margin-bottom: 0.45rem;
}

.admin-legacy-legs-wrap .leg-opponent {
  margin-top: 0.45rem;
}

.admin-legacy-legs-wrap .leg-pick-type {
  margin-top: 0.2rem;
}

.admin-matchup {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.admin-line {
  font-size: 0.88rem;
  color: #5a6a79;
  font-weight: 600;
}

.admin-time {
  font-size: 0.78rem;
  color: #7a8a9a;
}

.admin-prop {
  font-size: 0.8rem;
  color: #6a7a8a;
  font-style: italic;
}

.admin-user-info {
  font-size: 0.75rem;
  color: #8a9aaa;
  margin-top: 0.2rem;
  text-align: center;
  font-weight: 700;
}

/* Middle column: input fields + button */
.admin-legacy-middle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  min-width: 200px;
}

.admin-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-input-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  flex: 0 0 auto;
}

.admin-input-field {
  flex: 1;
  min-width: 100px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.85rem;
  color: var(--text);
  font-family: inherit;
  background: #fff;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.admin-input-field:focus {
  outline: none;
  border-color: var(--accent);
  background: #fffbf0;
}

.admin-update-btn {
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition:
    filter 0.15s,
    transform 0.1s;
}

.admin-update-btn:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

.admin-update-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Right column: action icons */
.admin-legacy-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  align-items: center;
}

.admin-action-btn {
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  background: #fff;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.admin-action-btn i {
  font-size: 1rem;
  line-height: 1;
}

.admin-action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(15, 28, 40, 0.1);
}

.admin-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.admin-action-correct {
  background: #eef8ef;
  color: #2e7d32;
  border-color: #9fceaa;
}

.admin-action-correct:hover:not(:disabled) {
  background: #e4f4e5;
}

.admin-action-incorrect {
  background: #fdeeee;
  color: #c62828;
  border-color: #efb8b8;
}

.admin-action-incorrect:hover:not(:disabled) {
  background: #fbe4e4;
}

.admin-action-cancel {
  background: #fff9e8;
  color: #b8860b;
  border-color: #f0d58a;
}

.admin-action-cancel:hover:not(:disabled) {
  background: #fff3d6;
}

.admin-action-notes {
  background: #edf4ff;
  color: #1e62d0;
  border-color: #b4caf2;
}

.admin-action-notes:hover:not(:disabled) {
  background: #e1edff;
}

/* Bottom section: notes textarea */
.admin-legacy-notes {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.admin-legacy-play-badges {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  margin-left: auto;
  margin-top: -0.35rem;
  margin-bottom: 0.15rem;
}

.admin-legacy-card .bet-play-type-badge {
  gap: 0.28rem;
  padding: 0.2rem 0.56rem;
  border-width: 1.5px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.admin-legacy-card .bet-play-type-badge i {
  font-size: 0.72rem;
  line-height: 1;
}

.admin-legacy-notes[hidden] {
  display: none;
}

.admin-notes-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.admin-notes-input {
  width: 100%;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.8rem;
  color: var(--text);
  font-family: inherit;
  background: #fff;
  resize: vertical;
  min-height: 38px;
  transition:
    border-color 0.15s,
    background 0.15s;
}

.admin-notes-input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fffbf0;
}

/* --- Admin Balances -------------------------------------------------------- */

.admin-balances-section {
  margin-bottom: 1.25rem;
}

.admin-summary-section {
  margin-bottom: 1.25rem;
}

#admin-summary-wrap[hidden] {
  display: none;
}

.admin-summary {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 0.75rem;
  display: grid;
  gap: 0.75rem;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-summary-metric {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-summary-metric-emphasis {
  background: #f4fbf4;
  border-color: #b9d6b8;
}

.admin-summary-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.admin-summary-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.admin-activity-users-section {
  margin-bottom: 1rem;
}

.admin-activity-heading {
  margin: 0.3rem 0 0.4rem;
  font-size: 1.05rem;
  color: var(--accent);
}

#admin-activity-users-toggle,
#admin-activity-sport-toggle,
#admin-activity-day-toggle {
  border-color: #1f3446;
  background: var(--accent);
  color: #f4f9fd;
}

#admin-reports-charts-toggle {
  border-color: #1f3446;
  background: var(--accent);
  color: #f4f9fd;
}

#admin-activity-users-toggle:hover,
#admin-activity-sport-toggle:hover,
#admin-activity-day-toggle:hover {
  border-color: #1a2b3a;
  background: #1d3041;
  color: #ffffff;
}

#admin-reports-charts-toggle:hover {
  border-color: #1a2b3a;
  background: #1d3041;
  color: #ffffff;
}

.admin-activity-users-table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.admin-activity-play-adjust-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f5f8fb;
  padding: 0.6rem;
  margin: 0 0 0.55rem;
}

.admin-activity-play-adjust-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 0.5rem;
  align-items: end;
}

.admin-activity-play-adjust-field {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.admin-activity-play-adjust-field span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4c5f70;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-activity-play-adjust-field select,
.admin-activity-play-adjust-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid #b3c0cc;
  border-radius: 6px;
  padding: 0.38rem 0.46rem;
  font-size: 0.83rem;
  background: #fff;
  color: #243949;
  box-sizing: border-box;
}

.admin-activity-play-adjust-submit {
  min-width: 6.8rem;
  height: 2.25rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (min-width: 901px) {
  .admin-activity-play-adjust-submit {
    align-self: center;
  }
}

.admin-activity-users-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-activity-users-table th,
.admin-activity-users-table td {
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
  overflow-wrap: anywhere;
}

.admin-activity-users-table th {
  background: var(--surface);
  color: #5a6a79;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
  text-align: left;
}

.admin-activity-sort-btn {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0;
  cursor: pointer;
}

.admin-sort-indicator {
  font-size: 0.64rem;
  line-height: 1;
  color: #4f6375;
}

.admin-activity-users-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-activity-users-table td:first-child {
  font-weight: 700;
  color: var(--text);
}

.admin-activity-money {
  font-weight: 700;
}

.admin-money-positive {
  color: #2e7d32;
}

.admin-money-negative {
  color: var(--danger);
}

.admin-money-zero {
  color: var(--text);
}

.admin-section-toggle {
  width: 100%;
  margin-bottom: 0.6rem;
  cursor: pointer;
  position: relative;
  font-family: inherit;
}

.admin-section-toggle::after {
  content: "▾";
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
}

.admin-section-toggle[aria-expanded="false"]::after {
  content: "▸";
}

#admin-balances-wrap[hidden] {
  display: none;
}

.admin-balances {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.admin-balances-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 720px;
}

.admin-balances-table th,
.admin-balances-table td {
  width: 16.66%;
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.82rem;
  vertical-align: middle;
}

.admin-balances-table th:nth-child(1),
.admin-balances-table td:nth-child(1),
.admin-balances-table th:nth-child(6),
.admin-balances-table td:nth-child(6) {
  width: 11%;
}

.admin-balances-table th:nth-child(2),
.admin-balances-table td:nth-child(2),
.admin-balances-table th:nth-child(3),
.admin-balances-table td:nth-child(3),
.admin-balances-table th:nth-child(4),
.admin-balances-table td:nth-child(4),
.admin-balances-table th:nth-child(5),
.admin-balances-table td:nth-child(5) {
  width: 19.5%;
}

.admin-balances-table th:nth-child(6),
.admin-balances-table td:nth-child(6) {
  text-align: center;
}

.admin-balances-table th {
  background: var(--surface);
  color: #5a6a79;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
}

.admin-balances-table tr:last-child td {
  border-bottom: none;
}

.admin-balances-table tr.admin-balance-row-threshold-high td {
  background: #e8f7ea;
}

.admin-balances-table tr.admin-balance-row-threshold-low td {
  background: #fbe9e9;
}

.admin-balance-username {
  font-weight: 700;
  color: var(--text);
}

.admin-balance-username-btn {
  appearance: none;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #1f4a66;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.admin-balance-username-btn:hover {
  color: #12354b;
}

.admin-balance-username-btn:focus-visible {
  outline: 2px solid #1f4a66;
  outline-offset: 2px;
  border-radius: 3px;
}

.admin-balance-input {
  width: 100%;
  box-sizing: border-box;
  display: block;
  max-width: none;
  min-width: 0;
}

.admin-balance-readonly {
  font-weight: 600;
  color: #445566;
}

.admin-balance-save-btn {
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: 0.28rem 0.35rem;
  font-size: 0.72rem;
}

/* --- Modal & Today/Yesterday ------------------------------------------------ */

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 40, 0.55);
}

.admin-modal-box {
  position: relative;
  z-index: 201;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 48px rgba(12, 24, 36, 0.28);
  padding: 1.5rem 1.75rem 1.75rem;
  width: min(640px, 94vw);
  max-height: 80vh;
  overflow-y: auto;
}

.admin-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #6b7c8d;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition:
    color 0.15s,
    background 0.15s;
}

.admin-modal-close:hover {
  color: var(--danger);
  background: #f7eaec;
}

.admin-modal-box h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--accent);
}

.admin-history-submit-date {
  margin: -0.6rem 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5b6f80;
}

.admin-history-pick-odds {
  margin: -0.45rem 0 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #405d78;
}

.admin-account-preview-modal {
  z-index: 220;
}

.admin-account-preview-shell {
  position: relative;
  z-index: 221;
  width: min(1400px, 96vw);
  height: min(92vh, 100%);
  background: #d9e1e9;
  border: 1px solid #9ba9b7;
  border-radius: 12px;
  box-shadow: 0 24px 52px rgba(12, 24, 36, 0.34);
  overflow: hidden;
}

.admin-account-preview-title {
  position: absolute;
  top: 0.9rem;
  left: 1rem;
  margin: 0;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(240, 244, 248, 0.96);
  color: #22384b;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 1;
}

.admin-account-preview-close {
  position: absolute;
  top: 0.72rem;
  right: 0.72rem;
  z-index: 2;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid #6f7e8d;
  border-radius: 999px;
  background: rgba(246, 250, 253, 0.98);
  color: #36485a;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.admin-account-preview-close:hover {
  border-color: #9a2031;
  color: #9a2031;
  background: #fff;
}

.admin-account-preview-close:focus-visible {
  outline: 2px solid #173349;
  outline-offset: 2px;
}

.admin-account-preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #dce4ec;
}

.admin-modal-box h3 {
  margin: 0.9rem 0 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5a6a79;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
}

.admin-grade-toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  z-index: 240;
  min-width: 220px;
  max-width: min(92vw, 440px);
  padding: 0.62rem 0.85rem;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(11, 25, 38, 0.28);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
}

.admin-grade-toast-success {
  background: #1f7a3a;
}

.admin-grade-toast-error {
  background: #b93737;
}

.ty-pick-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.ty-pick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.ty-pick-matchup {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}

.ty-pick-meta {
  font-size: 0.78rem;
  color: #6b7c8d;
}

.ty-pick-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  border: 1px solid #36566d;
  background: #2f4f66;
  color: #f4f9fd;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.ty-empty {
  font-size: 0.88rem;
  color: #8a9aaa;
  font-style: italic;
  margin: 0.25rem 0;
}

.admin-card-history-dock {
  position: absolute;
  top: 0.3rem;
  right: 0.38rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.16rem;
  z-index: 3;
}

.admin-line-history-btn {
  border: 1px solid #355f83;
  background: #f2f8fe;
  color: #1e4569;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.08;
  padding: 0.11rem 0.5rem;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-books-history-btn {
  border-color: #5a4d2b;
  background: #fff7e8;
  color: #6e4d13;
}

.admin-books-history-btn:hover {
  background: #ffefd3;
  border-color: #6e5b2b;
}

.admin-line-history-btn:hover {
  background: #e1effc;
  border-color: #284f72;
}

.admin-line-history-modal-box {
  width: min(920px, 96vw);
}

.admin-line-history-table-wrap {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: auto;
  max-height: 56vh;
  background: #fff;
}

.admin-line-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-line-history-table thead th {
  position: sticky;
  top: 0;
  background: #eff4f8;
  color: #355165;
  text-align: left;
  border-bottom: 1px solid #cfdbe5;
  padding: 0.48rem 0.56rem;
  z-index: 1;
}

.admin-line-history-table tbody td {
  border-bottom: 1px solid #e5edf3;
  padding: 0.43rem 0.56rem;
  color: #233b4d;
  white-space: nowrap;
}

.admin-line-history-table tbody tr:nth-child(2n) {
  background: #fafcfe;
}

.admin-line-history-actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
}

.admin-books-history-tabs {
  margin: 0.55rem 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.admin-books-history-tab {
  border: 1px solid #c6d4df;
  border-radius: 999px;
  background: #f7fafc;
  color: #2d4457;
  padding: 0.24rem 0.66rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-books-history-tab.is-active {
  border-color: #2f5b7a;
  background: #e7f2fb;
  color: #1b4462;
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .admin-card-history-dock {
    top: 0.14rem;
    right: 0.16rem;
    gap: 0.08rem;
    transform: none;
  }

  .admin-line-history-btn {
    font-size: 0.57rem;
    line-height: 1;
    height: 1.14rem;
    min-height: 1.14rem;
    padding: 0 0.34rem;
    max-width: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .admin-legacy-legs-wrap .leg-item .leg-history-dock {
    left: 0.42rem;
    right: 0.42rem;
    top: 0.24rem;
    min-height: 1.14rem;
    display: block;
  }

  .admin-legacy-legs-wrap .leg-item .leg-history-dock .leg-line-history-btn,
  .admin-legacy-legs-wrap .leg-item .leg-history-dock .leg-books-history-btn {
    position: absolute;
    top: 0;
  }

  .admin-legacy-legs-wrap .leg-item .leg-history-dock .leg-line-history-btn {
    right: 0;
  }

  .admin-legacy-legs-wrap .leg-item .leg-history-dock .leg-books-history-btn {
    left: 0;
  }

  .admin-account-preview-shell {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: 0;
  }

  .admin-account-preview-title {
    max-width: calc(100% - 4.8rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* --- Admin Toolbar ---------------------------------------------------------- */

.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.admin-search-input {
  flex: 1;
  min-width: 200px;
  max-width: 480px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.92rem;
  background: #fff;
  color: var(--text);
}

.admin-search-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.btn-outline {
  padding: 0.45rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

#btn-today-yesterday {
  border-color: #ccb16a;
  background: #f3e4b5;
  color: #4f4220;
}

#btn-today-yesterday:hover {
  border-color: #b39854;
  background: #e8d39b;
  color: #3f3418;
}

.notice {
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.notice.error {
  background: #fde3e5;
  color: #8f1d2c;
  border: 1px solid #e6b3b9;
}

.admin-reports-page {
  display: grid;
  gap: 1rem;
}

.admin-reports-title {
  margin: 0;
  font-size: 1rem;
  color: var(--accent);
}

.admin-reports-chart-card,
.admin-reports-table-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0.9rem;
}

.admin-reports-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  font-size: 0.86rem;
  color: #516172;
}

.admin-reports-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.admin-reports-legend-swatch {
  width: 0.95rem;
  height: 0.22rem;
  border-radius: 99px;
  display: inline-block;
}

.admin-reports-legend-swatch-revenue {
  background: #297fb8;
}

.admin-reports-legend-swatch-net {
  background: #b84b4b;
}

.admin-reports-chart {
  width: 100%;
  overflow-x: hidden;
  padding-top: 0.25rem;
  position: relative;
}

.admin-reports-svg {
  width: 100%;
  min-width: 0;
  height: auto;
}

.admin-reports-grid {
  stroke: #dce5ec;
  stroke-width: 1;
}

.admin-reports-axis {
  stroke: #8ca1b3;
  stroke-width: 1.3;
}

.admin-reports-axis-label {
  fill: #607487;
  font-size: 11px;
}

.admin-reports-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.admin-reports-line-revenue {
  stroke: #297fb8;
}

.admin-reports-line-net {
  stroke: #b84b4b;
}

.admin-reports-dot {
  stroke: #fff;
  stroke-width: 1;
}

.admin-reports-dot-revenue {
  fill: #297fb8;
}

.admin-reports-dot-net {
  fill: #b84b4b;
}

.admin-reports-hover-band {
  fill: transparent;
  pointer-events: all;
  cursor: pointer;
}

.admin-reports-hover-line {
  stroke: #7f95a8;
  stroke-width: 1.1;
  stroke-dasharray: 4 4;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.admin-reports-hover-band-group:hover .admin-reports-hover-line {
  opacity: 1;
}

.admin-reports-hover-band-group.is-active .admin-reports-hover-line {
  opacity: 1;
}

.admin-reports-tooltip {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 4;
  max-width: min(290px, calc(100% - 1.1rem));
  display: grid;
  gap: 0.14rem;
  background: rgba(17, 31, 44, 0.94);
  color: #f4f9fd;
  border: 1px solid rgba(145, 175, 199, 0.35);
  border-radius: 7px;
  padding: 0.45rem 0.55rem;
  box-shadow: 0 8px 20px rgba(15, 28, 40, 0.35);
  pointer-events: none;
  font-size: 0.77rem;
  line-height: 1.3;
}

.admin-reports-tooltip strong {
  font-size: 0.78rem;
  color: #d5e9ff;
}

.admin-reports-tooltip span {
  color: #f4f9fd;
}

.admin-reports-tooltip.is-pinned {
  border-color: rgba(103, 164, 214, 0.78);
}

.admin-reports-runner-result {
  margin-top: 0.7rem;
}

.admin-reports-result-title {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: var(--accent);
}

.admin-reports-runner-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 0.6rem;
}

.admin-reports-runner-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.admin-reports-runner-table th,
.admin-reports-runner-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.44rem 0.48rem;
  text-align: left;
  vertical-align: middle;
}

.admin-reports-runner-table th {
  background: var(--surface);
  color: #5a6a79;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
}

.admin-reports-sort-btn {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0;
  cursor: pointer;
}

.admin-reports-sort-indicator {
  font-size: 0.68rem;
  line-height: 1;
  color: #4f6375;
  min-width: 0.7rem;
  text-align: center;
}

.admin-reports-runner-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-reports-input {
  width: min(260px, 100%);
  padding: 0.42rem 0.56rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.86rem;
  background: #fff;
  color: var(--text);
}

.admin-reports-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.admin-reports-empty {
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: #708294;
  font-style: italic;
  background: #f9fbfd;
  padding: 1rem;
  text-align: center;
}

.admin-reports-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 0.7rem;
}

.admin-reports-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.admin-reports-table th,
.admin-reports-table td {
  border-bottom: 1px solid var(--border);
  padding: 0.44rem 0.48rem;
  text-align: left;
}

.admin-reports-table th {
  background: var(--surface);
  color: #5a6a79;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.72rem;
}

.admin-reports-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-reports-money {
  font-weight: 700;
}

/* --- Responsive admin layout ------------------------------------------------ */

@media (max-width: 768px) {
  .admin-legacy-row {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.65rem;
    align-items: stretch;
  }

  .admin-legacy-left {
    min-width: 0;
    flex: 1 1 auto;
  }

  .admin-legacy-middle {
    min-width: 160px;
    flex: 0 0 160px;
  }

  .admin-legacy-right {
    width: auto;
    min-width: 1.75rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding-inline: 0.1rem;
  }

  .admin-action-btn {
    width: 1.62rem;
    height: 1.62rem;
    min-width: 1.62rem;
    min-height: 1.62rem;
    border-radius: 4px;
    font-size: 0.74rem;
    line-height: 1;
    padding: 0;
  }

  .admin-action-btn i {
    font-size: 0.86rem;
  }
}

@media (max-width: 600px) {
  .admin-card-history-dock {
    top: 0.12rem;
    right: 0.14rem;
    gap: 0.06rem;
  }

  .admin-line-history-btn {
    font-size: 0.54rem;
    height: 1.06rem;
    min-height: 1.06rem;
    padding: 0rem 0.46rem;
    margin: 0;
    letter-spacing: normal;
  }

  .admin-legacy-legs-wrap .leg-item.has-line-history {
    padding-top: 1.33rem;
  }

  .admin-legacy-legs-wrap .leg-item .leg-line-history-btn {
    top: 0;
    right: 0;
    font-size: 0.54rem;
    line-height: 1;
    padding: 0 0.46rem;
    height: 1.06rem;
    min-height: 1.06rem;
    margin: 0;
  }

  .admin-legacy-row {
    padding-left: max(
      0.35rem,
      env(safe-area-inset-left),
      env(safe-area-inset-right)
    );
    padding-right: max(
      0.35rem,
      env(safe-area-inset-left),
      env(safe-area-inset-right)
    );
  }

  .admin-legacy-left {
    flex: 0 1 calc(50% + 12px);
    max-width: calc(50% + 12px);
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-section-toggle {
    padding-right: 1.8rem;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-activity-users-table-wrap {
    border: 1px solid var(--border);
    background: #fff;
  }

  .admin-activity-users-table {
    table-layout: fixed;
  }

  .admin-activity-users-table th,
  .admin-activity-users-table td {
    padding: 0.24rem 0.2rem;
    font-size: 0.62rem;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .admin-activity-users-table th {
    font-size: 0.58rem;
  }

  .admin-activity-users-table th:nth-child(1),
  .admin-activity-users-table td:nth-child(1) {
    width: 16%;
  }

  .admin-activity-users-table th:nth-child(2),
  .admin-activity-users-table td:nth-child(2),
  .admin-activity-users-table th:nth-child(3),
  .admin-activity-users-table td:nth-child(3) {
    width: 11%;
  }

  .admin-activity-users-table th:nth-child(4),
  .admin-activity-users-table td:nth-child(4),
  .admin-activity-users-table th:nth-child(5),
  .admin-activity-users-table td:nth-child(5) {
    width: 16%;
  }

  .admin-activity-users-table th:nth-child(6),
  .admin-activity-users-table td:nth-child(6),
  .admin-activity-users-table th:nth-child(7),
  .admin-activity-users-table td:nth-child(7) {
    width: 15%;
  }

  .admin-activity-play-adjust-grid {
    grid-template-columns: 1fr;
  }

  .admin-activity-play-adjust-submit {
    width: 100%;
    min-width: 0;
  }

  .admin-activity-money {
    font-size: 0.65rem;
  }

  .admin-summary-value {
    font-size: 0.9rem;
  }

  .admin-balances-table th,
  .admin-balances-table td {
    padding: 0.24rem 0.2rem;
    font-size: 0.62rem;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .admin-balances-table {
    min-width: 100%;
  }

  .admin-balances-table th:nth-child(1),
  .admin-balances-table td:nth-child(1),
  .admin-balances-table th:nth-child(6),
  .admin-balances-table td:nth-child(6) {
    width: 12%;
  }

  .admin-balances-table th:nth-child(2),
  .admin-balances-table td:nth-child(2),
  .admin-balances-table th:nth-child(3),
  .admin-balances-table td:nth-child(3),
  .admin-balances-table th:nth-child(4),
  .admin-balances-table td:nth-child(4),
  .admin-balances-table th:nth-child(5),
  .admin-balances-table td:nth-child(5) {
    width: 19%;
  }

  .admin-balance-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0.14rem 0.18rem;
    font-size: 0.62rem;
  }

  .admin-balance-save-btn {
    width: 100%;
    padding: 0.14rem 0.12rem;
    font-size: 0.58rem;
    min-height: 0.95rem;
    line-height: 1;
  }

  .admin-search-input {
    max-width: 100%;
    font-size: 16px;
  }

  .admin-notes-input {
    font-size: 16px;
  }

  .admin-reports-runner-table,
  .admin-reports-table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
  }

  .admin-reports-runner-table th,
  .admin-reports-runner-table td,
  .admin-reports-table th,
  .admin-reports-table td {
    padding: 0.32rem 0.28rem;
    font-size: 0.67rem;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .admin-reports-runner-table th,
  .admin-reports-table th {
    font-size: 0.58rem;
  }

  .admin-reports-sort-btn {
    justify-content: center;
    gap: 0.22rem;
  }

  .admin-reports-input {
    width: 100%;
    font-size: 14px;
  }

  .btn-outline.admin-reports-run-btn {
    width: auto;
    min-width: 3.1rem;
    padding: 0.2rem 0.42rem;
    font-size: 0.58rem;
    line-height: 1;
  }

  .btn-outline {
    width: 100%;
  }

  .ty-pick-item {
    font-size: 0.82rem;
  }

  .ty-pick-matchup {
    font-size: 0.86rem;
  }

  .ty-pick-meta {
    font-size: 0.7rem;
  }

  .ty-pick-count {
    min-width: 1.45rem;
    height: 1.45rem;
    font-size: 0.68rem;
  }

  .admin-legacy-right {
    width: auto;
    min-width: 1.9rem;
    flex: 0 0 1.9rem;
    justify-content: center;
    gap: 0.48rem;
    padding-inline: 0;
  }

  .admin-action-btn {
    width: 1.52rem;
    height: 1.52rem;
    min-width: 1.52rem;
    min-height: 1.52rem;
    font-size: 0.7rem;
    border-radius: 3px;
    padding: 0;
  }

  .admin-action-btn i {
    font-size: 0.8rem;
  }

  .admin-input-group {
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
  }

  .admin-input-field {
    flex: 0 0 80px;
    width: 80px;
    min-width: 80px;
    margin-left: auto;
    padding: 0.25rem 0.35rem;
    font-size: 16px;
    transform: scale(0.9);
    transform-origin: right center;
  }

  .admin-input-label {
    font-size: 0.72rem;
  }

  .admin-update-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.66rem;
    min-height: 1.35rem;
    line-height: 1;
  }

  .admin-legacy-middle {
    min-width: 126px;
    flex: 0 0 126px;
  }

  .admin-expenses-add-grid {
    grid-template-columns: 1fr;
  }

  .admin-expenses-add-action {
    grid-column: auto;
  }

  .admin-expenses-table {
    min-width: 620px;
  }
}
