:root {
  --bg: #070b10;
  --bg-elevated: #0c1118;
  --card: rgba(16, 22, 34, 0.78);
  --card-solid: #101622;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --muted: #64748b;
  --accent: #e8b84a;
  --accent-bright: #f5d06a;
  --accent-dim: rgba(232, 184, 74, 0.12);
  --accent-glow: rgba(232, 184, 74, 0.28);
  --link: #e2e8f0;
  --link-hover: #f5d06a;
  --safe: #34d399;
  --dagger: #fbbf24;
  --danger: #f87171;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 8px 24px rgba(0, 0, 0, 0.32);
  --glass: blur(18px) saturate(1.25);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.15s var(--ease-out);
  --transition-med: 0.25s var(--ease-out);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  overscroll-behavior-x: none;
  width: 100%;
  max-width: 100%;
  touch-action: manipulation;
  -ms-touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
.site-body {
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(232, 184, 74, 0.09), transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 20%, rgba(59, 130, 246, 0.05), transparent 50%),
    radial-gradient(ellipse 45% 40% at 0% 85%, rgba(52, 211, 153, 0.04), transparent 50%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  opacity: 1;
}

/* Mobile app shell — no page-level horizontal scroll; wide tables scroll in wrappers only */
.mobile-app-shell .site-header,
.mobile-app-shell .site-footer,
.mobile-app-shell .site-footer-inner,
.mobile-app-shell .site-footer-nav,
.mobile-app-shell .site-footer-nav-grid,
.mobile-app-shell .admin-shell,
.mobile-app-shell .page-with-sidebar,
.mobile-app-shell .page-main-column,
.mobile-app-shell .community-chat-dock,
.mobile-app-shell .site-fab-cluster {
  max-width: 100%;
  min-width: 0;
}

.mobile-app-shell img,
.mobile-app-shell video,
.mobile-app-shell canvas,
.mobile-app-shell iframe {
  max-width: 100%;
  height: auto;
}

.mobile-app-shell .site-brand-logo,
.mobile-app-shell .game-matchup-logo,
.mobile-app-shell .team-logo,
.mobile-app-shell .nav-user-avatar,
.mobile-app-shell .nav-league-logo {
  height: auto;
}

.mobile-app-shell pre,
.mobile-app-shell code {
  overflow-x: auto;
  max-width: 100%;
  word-break: break-word;
}

::selection {
  background: rgba(232, 184, 74, 0.28);
  color: var(--text);
}

body.page-loaded {
  opacity: 1;
}

/* Top golden page-load progress bar */
.page-load-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  overflow: visible;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.25);
}
html.page-loading .page-load-bar {
  opacity: 1;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.page-load-bar-fill {
  height: 100%;
  width: 100%;
  border-radius: 0 2px 2px 0;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
  background: linear-gradient(
    90deg,
    #5c4a00 0%,
    #7a6200 12%,
    #a67c00 25%,
    #c9a020 40%,
    #f0d060 55%,
    #e0b040 70%,
    #d4a017 85%,
    #f5e06a 100%
  );
  background-size: 240% 100%;
  box-shadow: 0 0 14px rgba(240, 208, 96, 0.35);
  animation: page-load-shimmer 3.2s ease-in-out infinite;
}
.page-load-bar-glow {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    circle,
    #fffef0 0%,
    #fff3a8 28%,
    #f5e06a 52%,
    rgba(224, 176, 64, 0.4) 72%,
    transparent 100%
  );
  box-shadow:
    0 0 6px 2px rgba(255, 252, 220, 1),
    0 0 16px 5px rgba(255, 236, 140, 0.9),
    0 0 28px 10px rgba(240, 208, 96, 0.65),
    0 0 48px 18px rgba(224, 176, 64, 0.35);
  transition: opacity 0.35s ease;
  animation: page-load-tip-pulse 1.8s ease-in-out infinite;
}
.page-load-bar-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 50%;
  width: 72px;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 244, 180, 0.15) 25%,
    rgba(255, 236, 140, 0.55) 70%,
    rgba(255, 252, 220, 0.85) 100%
  );
  box-shadow: 0 0 20px 4px rgba(255, 236, 140, 0.45);
  filter: blur(0.5px);
}
html.page-loading .page-load-bar-glow {
  opacity: 1;
}
@keyframes page-load-shimmer {
  0% { background-position: 130% 0; }
  50% { background-position: 0% 0; }
  100% { background-position: -130% 0; }
}
@keyframes page-load-tip-pulse {
  0%, 100% {
    filter: brightness(1);
    box-shadow:
      0 0 6px 2px rgba(255, 252, 220, 1),
      0 0 16px 5px rgba(255, 236, 140, 0.9),
      0 0 28px 10px rgba(240, 208, 96, 0.65),
      0 0 48px 18px rgba(224, 176, 64, 0.35);
  }
  50% {
    filter: brightness(1.18);
    box-shadow:
      0 0 8px 3px rgba(255, 255, 240, 1),
      0 0 20px 7px rgba(255, 244, 180, 0.95),
      0 0 36px 14px rgba(245, 224, 106, 0.75),
      0 0 56px 22px rgba(224, 176, 64, 0.45);
  }
}
html.page-load-complete .page-load-bar {
  opacity: 0;
}
html.page-load-complete .page-load-bar-glow {
  opacity: 0;
}

/* Full-screen slow-request overlay (filters / history — only after delay) */
.bg-slow-load {
  position: fixed;
  inset: 0;
  z-index: 13010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.bg-slow-load[hidden] {
  display: none !important;
}
.bg-slow-load.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.bg-slow-load-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  max-width: 22rem;
  width: 100%;
  text-align: center;
}
.bg-slow-load-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold, #e0b040);
  text-shadow: 0 0 24px rgba(224, 176, 64, 0.35);
}
.bg-slow-load-bar.page-load-bar {
  position: relative;
  top: auto;
  left: auto;
  width: min(20rem, 78vw);
  height: 6px;
  border-radius: 999px;
  opacity: 1;
  overflow: visible;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 0 28px rgba(224, 176, 64, 0.2);
}
.bg-slow-load.is-visible .bg-slow-load-bar .page-load-bar-glow {
  opacity: 1;
}

.bg-slow-load-status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text, #e2e8f0);
  max-width: 20rem;
}

.bg-slow-load-eta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted, #94a3b8);
}

/* Section update — gold outline intro/outro when fresh DB data lands */
.bg-section-update-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 10050;
  min-width: min(18rem, 88vw);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(224, 176, 64, 0.55);
  background: rgba(20, 24, 32, 0.94);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(224, 176, 64, 0.15);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.bg-section-update-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.bg-section-update-toast.is-exiting {
  opacity: 0;
  transform: translate(-50%, -48%) scale(0.98);
}

.bg-section-update-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--gold, #e0b040);
  font-size: 0.95rem;
}

.bg-section-update-count {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.bg-section-update-armed {
  outline: 2px solid transparent;
  outline-offset: 3px;
  transition: outline-color 0.4s ease, box-shadow 0.4s ease;
}

.bg-section-update-active {
  outline: 2px solid var(--gold, #e0b040);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(224, 176, 64, 0.18);
  animation: bg-section-pulse 1.2s ease-in-out infinite;
}

.bg-section-update-outro {
  outline: 2px solid rgba(224, 176, 64, 0.35);
  outline-offset: 2px;
  animation: bg-section-fadeout 0.65s ease forwards;
}

@keyframes bg-section-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(224, 176, 64, 0.12); }
  50% { box-shadow: 0 0 0 7px rgba(224, 176, 64, 0.22); }
}

@keyframes bg-section-fadeout {
  from { outline-color: rgba(224, 176, 64, 0.45); opacity: 1; }
  to { outline-color: transparent; opacity: 1; }
}

/* Inline async loading slots (1s bar → 1s+ full overlay) */
.bg-loading-slot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.35rem 0;
  min-width: 10rem;
}

.bg-loading-slot-compact {
  padding: 0.15rem 0;
  gap: 0.35rem;
}

.bg-loading-label {
  margin: 0;
}

.bg-loading-bar.page-load-bar {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  max-width: 18rem;
  height: 5px;
  border-radius: 999px;
  opacity: 1;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.bg-loading-slot.is-active .bg-loading-bar .page-load-bar-glow {
  opacity: 1;
}

.stats-deferred-row td {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.table-scroll-hint .scroll-hint-arrow {
  pointer-events: auto;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0.35rem 0.5rem;
  font: inherit;
  color: inherit;
  line-height: 1;
}

.table-scroll-hint .scroll-hint-arrow:hover,
.table-scroll-hint .scroll-hint-arrow:focus-visible {
  color: #fde047;
  outline: none;
}

.page-content {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

/* Universal page shell — boot + navigation fades */
.page-shell {
  transition:
    opacity var(--pt-fade-ms, 260ms) cubic-bezier(0.4, 0, 0.2, 1),
    transform var(--pt-fade-ms, 260ms) cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear var(--pt-fade-ms, 260ms);
}
.page-shell.pt-shell-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}
.page-shell.pt-shell-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}
.page-shell.pt-shell-exiting {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
html.pt-loading .page-shell {
  pointer-events: none;
}

html.pt-loading #page-shell.pt-shell-visible {
  filter: blur(10px) saturate(0.88);
  transform: scale(1.006);
  transform-origin: center top;
}

@media (prefers-reduced-motion: reduce) {
  html.pt-loading #page-shell.pt-shell-visible {
    filter: none;
    transform: none;
  }
}

.bg-slow-load.pt-overlay-visible:not([hidden]) {
  opacity: 1;
  pointer-events: auto;
}

html:not(.page-load-complete):not(.pt-boot):not(.pt-ready) .page-content {
  animation: fadeSlideIn 0.28s ease-out forwards;
}

.page-content.is-exiting {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.page-content.is-entering {
  opacity: 0;
  transform: translateY(-6px);
}

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

.fade-in {
  animation: fadeSlideIn 0.5s ease forwards;
}

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

.chunk-fade-in {
  animation: chunkFadeIn 0.38s ease forwards;
  animation-delay: var(--chunk-delay, 0s);
}

.ui-stagger > * {
  animation: fadeSlideIn 0.45s ease backwards;
}

.ui-stagger > *:nth-child(1) { animation-delay: 0.03s; }
.ui-stagger > *:nth-child(2) { animation-delay: 0.07s; }
.ui-stagger > *:nth-child(3) { animation-delay: 0.11s; }
.ui-stagger > *:nth-child(4) { animation-delay: 0.15s; }
.ui-stagger > *:nth-child(5) { animation-delay: 0.19s; }
.ui-stagger > *:nth-child(6) { animation-delay: 0.23s; }

@media (prefers-reduced-motion: reduce) {
  .page-shell,
  .page-shell.pt-shell-hidden,
  .page-shell.pt-shell-exiting,
  .page-content,
  .fade-in,
  .chunk-fade-in,
  .ui-stagger > * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .bg-slow-load {
    transition: none !important;
  }
}

.impersonation-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.55rem clamp(1rem, 3vw, 2rem);
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.22), rgba(234, 179, 8, 0.08));
  border-bottom: 1px solid rgba(234, 179, 8, 0.35);
  color: #fde68a;
  position: sticky;
  top: 0;
  z-index: 1103;
}
.impersonation-banner-text { font-size: 0.88rem; }
.impersonation-banner-form { margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1102;
  background: rgba(7, 11, 16, 0.82);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
  overflow: visible;
}

.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.7rem clamp(1.25rem, 3vw, 2.25rem);
  min-height: 3.75rem;
  box-sizing: border-box;
}

.site-brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 0;
  text-decoration: none;
  line-height: 1;
  transition: opacity var(--transition-fast), filter var(--transition-fast);
}

.site-brand-link:hover {
  opacity: 0.92;
  filter: drop-shadow(0 0 12px var(--accent-glow));
}

.site-brand-text {
  display: none;
  color: var(--accent-bright);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.site-brand-link--text .site-brand-text {
  display: inline;
}

.site-brand-logo {
  display: block;
  height: 2rem;
  width: auto;
  max-width: min(180px, 52vw);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 769px) {

  .site-brand-logo {
    height: 2.75rem;
    max-width: 220px;
  }

  .site-brand-text {
    font-size: 1.35rem;
  }
}

.navbar,
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  padding: 0;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  flex: 1 1 auto;
  min-width: 0;
}

.navbar a:not(.brand):not(.site-brand):not(.site-brand-link) {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.42rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.navbar a:not(.brand):not(.site-brand):not(.site-brand-link):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.navbar .brand,
.navbar .site-brand {
  color: var(--accent-bright);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  margin-right: auto;
  padding: 0.35rem 30px;
  text-decoration: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.navbar .brand:hover,
.navbar .site-brand:hover {
  color: #fff;
  text-shadow: 0 0 24px var(--accent-glow);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-label {
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.nav-dropdown-label.nav-link-style {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.42rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-dropdown-caret {
  color: #a67c1a;
  font-size: 0.72em;
  margin-left: 0.1rem;
}

.nav-dropdown-label.nav-section-active,
.nav-dropdown:hover .nav-dropdown-label.nav-link-style:not(.nav-user),
.nav-dropdown.is-open .nav-dropdown-label.nav-link-style:not(.nav-user) {
  background: var(--accent) !important;
  color: #141820 !important;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(196, 146, 42, 0.45);
}

/* Account/admin: no stuck gold when trigger keeps focus after menu closes */
.nav-dropdown-account:focus-within:not(.is-open):not(:hover) .nav-account-trigger {
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  font-weight: inherit;
}

.nav-dropdown-auth:hover .nav-dropdown-label.nav-user,
.nav-dropdown-auth:focus-within .nav-dropdown-label.nav-user,
.nav-dropdown-auth.is-open .nav-dropdown-label.nav-user {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text) !important;
  font-weight: 600;
  border-color: rgba(224, 176, 64, 0.45);
  box-shadow: 0 0 0 1px rgba(224, 176, 64, 0.22);
}

/* Account / admin menu — gold only on hover, open, or admin route active */
.nav-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-dropdown-account:hover .nav-account-trigger,
.nav-dropdown-account.is-open .nav-account-trigger,
.nav-account-trigger.nav-section-active {
  background: var(--accent) !important;
  color: #141820 !important;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(196, 146, 42, 0.45);
}

.nav-dropdown-account:hover .nav-account-trigger,
.nav-dropdown-account.is-open .nav-account-trigger {
  background: var(--accent-bright) !important;
  color: #141820 !important;
}

.nav-dropdown-account .nav-dropdown-menu-wide {
  min-width: 18rem;
  max-width: min(28rem, 92vw);
  max-height: 85vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
  padding-bottom: 0.65rem;
}

@media (min-width: 900px) {
  .nav-dropdown-account .nav-dropdown-menu-wide {
    min-width: 28rem;
    max-width: 44rem;
    grid-template-columns: 1fr 1fr;
    column-gap: 0.75rem;
  }

  .nav-dropdown-account .nav-dropdown-menu-wide .nav-dropdown-heading,
  .nav-dropdown-account .nav-dropdown-menu-wide .nav-dropdown-divider {
    grid-column: 1 / -1;
  }
}

.nav-dropdown-menu-wide .nav-dropdown-heading {
  margin-top: 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold, #e0b040);
}

.nav-dropdown-menu-wide .nav-dropdown-heading:first-of-type {
  margin-top: 0.15rem;
  border-top: none;
  padding-top: 0;
}

.nav-account-logout {
  color: var(--text-secondary);
}

.nav-dropdown-auth:hover .nav-dropdown-caret,
.nav-dropdown-auth:focus-within .nav-dropdown-caret,
.nav-dropdown-auth.is-open .nav-dropdown-caret {
  color: var(--accent-bright);
}

.nav-dropdown-label.nav-section-active .nav-dropdown-caret,
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown.is-open .nav-dropdown-caret {
  color: #7a5a12;
}

.nav-dropdown:hover .nav-dropdown-label:not(.nav-link-style),
.nav-dropdown:focus-within .nav-dropdown-label:not(.nav-link-style),
.nav-dropdown.is-open .nav-dropdown-label:not(.nav-link-style) {
  color: var(--text);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 9.5rem;
  padding: 0.35rem 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 200;
}

/* Invisible bridge so the menu stays open while moving the cursor down */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-dropdown:not(.nav-dropdown-account):hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
}

/* Account/admin — click toggle only; never hover-open (fixes stuck open menu) */
.nav-dropdown-account .nav-dropdown-menu {
  display: none !important;
}

.nav-dropdown-account.is-open .nav-dropdown-menu {
  display: flex !important;
  flex-direction: column;
}

.nav-dropdown-account:focus-within:not(.is-open) .nav-dropdown-menu {
  display: none !important;
}

.nav-dropdown-stats:hover .nav-dropdown-menu,
.nav-dropdown-stats:focus-within .nav-dropdown-menu,
.nav-dropdown-stats.is-open .nav-dropdown-menu {
  display: block !important;
  padding: 0;
}

.nav-dropdown-stats:hover .nav-stats-mega,
.nav-dropdown-stats:focus-within .nav-stats-mega,
.nav-dropdown-stats.is-open .nav-stats-mega {
  display: grid;
}

.nav-stats-mega {
  display: none;
  grid-template-columns: minmax(9rem, 11rem) minmax(14rem, 1fr);
  gap: 0;
  min-width: 28rem;
  max-width: min(36rem, 92vw);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.nav-stats-mega-leagues {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.65rem;
  border-right: 1px solid var(--border);
}

.nav-stats-league-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nav-stats-league-btn:hover,
.nav-stats-league-btn:focus-visible,
.nav-stats-league-btn.is-active {
  background: rgba(224, 176, 64, 0.12);
  color: var(--accent-bright);
  outline: none;
}

.nav-stats-mega-panels {
  position: relative;
  min-height: 12rem;
  padding: 0.85rem 1rem 1rem;
}

.nav-stats-league-panel {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-stats-league-panel.is-active {
  display: flex;
}

.nav-stats-panel-kicker,
.nav-stats-panel-section {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-stats-panel-section {
  margin-top: 0.65rem;
}

.nav-stats-panel-hero {
  display: block;
  padding: 0.2rem 0;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-stats-panel-hero:hover {
  color: var(--accent-bright);
}

.nav-stats-panel-link {
  display: block;
  padding: 0.35rem 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-decoration: none;
}

.nav-stats-panel-link:hover {
  color: var(--accent);
}

.nav-dropdown-stats-grid {
  display: none;
  gap: 0;
  min-width: 0;
}

.stats-context-bar {
  margin: 0 0 0.75rem;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.45rem 0.85rem;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-dropdown-menu a:hover {
  background: rgba(224, 176, 64, 0.1);
  color: var(--accent-bright);
}

.nav-dropdown-menu a:visited {
  color: var(--text);
}

.nav-dropdown-menu a.active-tab {
  color: var(--accent-bright);
  font-weight: 600;
}

.nav-dropdown-divider {
  display: block;
  height: 1px;
  margin: 0.25rem 0.5rem;
  background: var(--border);
}

.nav-dropdown-right .nav-dropdown-menu {
  left: auto;
  right: 0;
  min-width: 11.5rem;
}

.nav-auth-details {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-auth-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  color: var(--text-secondary);
}

.nav-auth-summary::-webkit-details-marker {
  display: none;
}

.nav-auth-menu {
  display: none;
  flex-direction: column;
  min-width: 11.5rem;
  padding: 0.35rem 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 200;
}

.nav-auth-details[open] .nav-auth-menu {
  display: flex;
}

.nav-auth-menu a {
  display: block;
  padding: 0.4rem 0.85rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
}

.nav-auth-menu a:hover {
  background: rgba(224, 176, 64, 0.1);
}

.nav-auth-summary.nav-link-style {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.42rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-auth-details[open] > .nav-auth-summary.nav-link-style {
  background: var(--accent) !important;
  color: #141820 !important;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(196, 146, 42, 0.45);
}

.nav-dropdown-menu-wide {
  min-width: 12.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.nav-stats-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--border);
}

.nav-stats-column:last-child {
  border-right: none;
}

.nav-stats-column > a {
  display: block;
  padding: 0.4rem 0.85rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
}

.nav-stats-column > a:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.page-with-sidebar {
  display: grid;
  grid-template-columns: minmax(11rem, 13.5rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.page-main-column {
  min-width: 0;
}

.league-sidebar {
  position: sticky;
  top: 5.5rem;
}

.league-sidebar-inner {
  padding: 0.65rem 0.35rem 0.75rem;
}

.league-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0 0.35rem 0.35rem;
}

.league-sidebar-hint {
  display: none;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.league-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.league-sidebar-link {
  display: block;
  padding: 0.42rem 0.75rem;
  border-radius: 0.45rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.25;
}

.league-sidebar-link:hover {
  background: var(--surface-2);
  color: var(--accent);
}

.league-sidebar-link.active {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-weight: 600;
}

.schedule-unavailable {
  margin: 1rem 0 1.5rem;
  padding: 1.25rem 1.35rem;
}

.nav-dropdown-heading {
  display: block;
  padding: 0.35rem 0.85rem 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

.nav-dropdown-meta {
  display: block;
  padding: 0.35rem 0.85rem 0.15rem;
  font-size: 0.75rem;
  pointer-events: none;
}

.nav-dropdown-heading {
  display: block;
  padding: 0.45rem 0.85rem 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  pointer-events: none;
}

.nav-dropdown-league-heading {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.85rem 0.25rem;
}

.nav-league-logo {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  line-height: 1.6;
  margin-bottom: 1rem !important;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}

.admin-subnav a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.admin-subnav a:hover {
  color: var(--text);
}

.admin-subnav a.active-tab {
  color: var(--accent-bright);
  font-weight: 600;
}

.stats-subnav-sep {
  display: inline-block;
  width: 1px;
  height: 1.4rem;
  margin: 0 0.15rem;
  background: var(--border);
  vertical-align: middle;
}

.positions-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
}

@media (max-width: 640px) {
  .positions-grid {
    grid-template-columns: 1fr;
  }
}

.sync-priority-badge {
  color: var(--accent);
  font-size: 0.85rem;
  margin-left: 0.15rem;
}

.position-games-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.position-games-list li {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.player-positions-verify label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.nav-data-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  text-decoration: none;
  color: var(--text);
}
.nav-data-status:hover { border-color: rgba(224, 176, 64, 0.35); }
.data-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.data-status-current { background: #4ade80; box-shadow: 0 0 6px rgba(74, 222, 128, 0.5); }
.data-status-updating { background: #f0cc55; animation: pulse-dot 1.2s ease-in-out infinite; }
.data-status-scheduled { background: #60a5fa; box-shadow: 0 0 6px rgba(96, 165, 250, 0.45); animation: pulse-dot 2.4s ease-in-out infinite; }
.data-status-stale { background: #60a5fa; box-shadow: 0 0 6px rgba(96, 165, 250, 0.45); }

.bg-stale-flash {
  animation: bgStaleFlash 0.85s ease-out 1;
}

@keyframes bgStaleFlash {
  0% { box-shadow: 0 0 0 rgba(34, 197, 94, 0); }
  30% { box-shadow: 0 0 0.85rem rgba(34, 197, 94, 0.28); }
  100% { box-shadow: 0 0 0 rgba(34, 197, 94, 0); }
}

.is-stale-odds .signal-odds-chip,
.is-stale-odds .odds-chip,
.is-stale-odds [data-odds-chip] {
  opacity: 0.78;
}
.data-status-label { font-weight: 600; white-space: nowrap; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(224, 176, 64, 0.12);
  border: 1px solid rgba(224, 176, 64, 0.25);
  border-radius: 8px;
  font-size: 0.78rem;
}

.nav-status-icon { font-size: 1rem; }

.nav-status-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav-status-sub { opacity: 0.85; }

.nav-status-label {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-status-timer {
  font-weight: 700;
  color: #f0cc55;
  font-variant-numeric: tabular-nums;
  min-width: 3.5rem;
}

.nav-status-time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#toast-container {
  position: fixed;
  top: 4.5rem;
  right: 1.25rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  min-width: 260px;
  max-width: 360px;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.toast-success { border-left-color: var(--safe); }
.toast-error { border-left-color: #ef4444; }

.toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-exit {
  opacity: 0 !important;
  transform: translateX(20px) !important;
}

.toast-body { flex: 1; font-size: 0.9rem; }

.toast-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.toast-close:hover { color: var(--text); }

.restart-wait-banner {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(7, 11, 16, 0.82);
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
}

.restart-wait-banner-inner,
.restart-wait-banner {
  text-align: center;
}

.restart-wait-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.restart-wait-detail {
  margin: 0;
  max-width: 28rem;
}

.restart-fail-banner .restart-fail-title {
  color: #f87171;
}

.restart-fail-banner code {
  font-size: 0.85em;
}

.nav-search-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-search input,
.nav-search-input {
  width: min(280px, 40vw);
  padding: 0.45rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.85rem;
}

.nav-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(224, 176, 64, 0.25);
}

.nav-search-btn {
  padding: 0.45rem 0.65rem;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.nav-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 1200;
  min-width: min(360px, 92vw);
  max-width: 420px;
  max-height: min(70vh, 480px);
  overflow-y: auto;
  background: #243044;
  border: 1px solid #3a4d66;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 0.35rem 0;
}

.nav-search-dropdown[hidden] {
  display: none !important;
}

.nav-suggest-group {
  padding: 0.35rem 0 0.15rem;
}

.nav-suggest-group + .nav-suggest-group {
  border-top: 1px solid rgba(45, 58, 79, 0.85);
  margin-top: 0.2rem;
  padding-top: 0.45rem;
}

.nav-suggest-heading {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.85rem 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9eb0c8;
}

.nav-suggest-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.5rem 0.85rem;
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.nav-suggest-item:hover,
.nav-suggest-item.is-active {
  background: rgba(224, 176, 64, 0.18);
}

.nav-suggest-item.is-active {
  outline: 1px solid rgba(224, 176, 64, 0.35);
  outline-offset: -1px;
}

.nav-suggest-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  background: rgba(15, 20, 25, 0.35);
}

.nav-suggest-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  background: rgba(15, 20, 25, 0.35);
  border-radius: 4px;
}

.nav-suggest-text {
  min-width: 0;
  flex: 1;
}

.nav-suggest-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-suggest-sublabel {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-suggest-empty {
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-suggest-loading {
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.search-input, .date-input {
  padding: 0.5rem 0.75rem;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 140px;
}

.filters-wrap { flex-wrap: wrap; }

@media (min-width: 640px) {
  .filters-wrap.ratings-filters:not(.stats-view-tabs) {
    flex-wrap: nowrap;
    align-items: center;
  }

  .filters-wrap.ratings-filters:not(.stats-view-tabs) .search-input {
    flex: 1 1 12rem;
    min-width: 10rem;
  }

  .filters-wrap.ratings-filters:not(.stats-view-tabs) select,
  .filters-wrap.ratings-filters:not(.stats-view-tabs) .filter-min {
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .filters-wrap.ratings-filters:not(.stats-view-tabs) {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .filters-wrap.ratings-filters:not(.stats-view-tabs) .search-input,
  .filters-wrap.ratings-filters:not(.stats-view-tabs) input[type="month"],
  .filters-wrap.ratings-filters:not(.stats-view-tabs) input[type="date"],
  .filters-wrap.ratings-filters:not(.stats-view-tabs) select,
  .filters-wrap.ratings-filters:not(.stats-view-tabs) button,
  .filters-wrap.ratings-filters:not(.stats-view-tabs) .filter-min {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  vertical-align: middle;
}

.team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nfl-txn-logo {
  width: 57px;
  height: 57px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.35rem;
}

.team-record {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.matchup-cell { min-width: 280px; }
.matchup-at { color: var(--muted); margin: 0 0.35rem; }

.schedule-table .small-odds { font-size: 0.78rem; }
.row-postponed { opacity: 0.65; background: rgba(245, 158, 11, 0.08); }

.game-detail-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.matchup-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.detail-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.detail-box h3 { margin-bottom: 0.6rem; font-size: 0.95rem; }

.odds-list { list-style: none; font-size: 0.9rem; }
.odds-list li { margin: 0.3rem 0; }
.odds-books-wrap { margin-top: 0.75rem; }
.odds-books-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 0.35rem; }
.odds-books-table th, .odds-books-table td { padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--border, #2a2a2a); text-align: left; }
.odds-books-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted, #888); }
.api-usage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem 1rem; margin: 0.75rem 0; }
.api-usage-stat { display: flex; flex-direction: column; gap: 0.2rem; }
.api-usage-bar { height: 6px; background: var(--border, #2a2a2a); border-radius: 3px; overflow: hidden; margin-top: 0.25rem; }
.api-usage-bar-fill { height: 100%; background: linear-gradient(90deg, #3d8bfd, #5eead4); }
.api-usage-tips { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.tracker-parlay-meta { margin: 0.25rem 0 0.35rem; display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: center; }
.odds-source { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }

.lineup-list { margin: 0.5rem 0 0.5rem 1.25rem; font-size: 0.88rem; }
.lineup-status { margin-bottom: 0.5rem; }

.warn-box {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(245, 158, 11, 0.15);
  border-left: 3px solid var(--dagger);
  border-radius: 4px;
}

.back-link { margin-bottom: 1rem; }
.back-link a { color: var(--link); text-decoration: none; border-bottom: 1px solid rgba(224, 176, 64, 0.28); }
.back-link a:hover { color: var(--link-hover); }

.search-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.search-breakdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.search-breakdown-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.search-breakdown-count {
  font-weight: 600;
  color: var(--accent);
}
.search-section { margin-bottom: 1.5rem; }
.search-section-card { padding: 1.1rem 1.25rem; }
.search-section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.search-section-header h2 { margin: 0; font-size: 1.05rem; }
.search-section-meta { font-size: 0.85rem; color: var(--muted); }
.search-section-footer { margin-top: 0.75rem; margin-bottom: 0; }
.search-results { list-style: none; padding: 0; margin: 0; }
.search-results li { margin: 0.5rem 0; }
.search-game-list .search-game-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
@media (min-width: 720px) {
  .search-game-list .search-game-row {
    grid-template-columns: 9rem 1fr auto auto;
    align-items: center;
  }
}
.search-game-upcoming { background: rgba(224, 176, 64, 0.04); margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; border-radius: 6px; }
.search-game-matchup { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.search-game-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.search-team-row,
.search-player-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.search-player-team .team-chip { font-size: 0.9rem; }
.search-results a:not(.entity-link):not(.team-chip) { color: var(--link); text-decoration: none; border-bottom: 1px solid rgba(224, 176, 64, 0.28); }
.search-results a:not(.entity-link):not(.team-chip):hover { color: var(--link-hover); }

.tiny { font-size: 0.78rem; }

.container,
.site-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-sizing: border-box;
}

.public-landing-body .container,
.public-landing-body .site-main {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Site-wide text links — gold hover, never default blue */
.container a:not(.btn):not(.btn-sm):not(.btn-dagger):not(.brand):not(.kind-pill):not(.kind-legs-pill):not(.result-pill):not(.nav-suggest-item):not(.flash):not(.team-logo-link) {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 176, 64, 0.28);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.container a:not(.btn):not(.btn-sm):not(.btn-dagger):not(.brand):not(.kind-pill):not(.kind-legs-pill):not(.result-pill):not(.nav-suggest-item):not(.flash):not(.team-logo-link):hover {
  color: var(--link-hover);
  border-bottom-color: rgba(224, 176, 64, 0.55);
}
.container a:not(.btn):not(.btn-sm):not(.btn-dagger):not(.brand):not(.kind-pill):not(.kind-legs-pill):not(.result-pill):not(.nav-suggest-item):not(.flash):not(.team-logo-link):visited {
  color: var(--link);
}

h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.65rem, 3.5vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.brand-gold-text {
  color: var(--accent-bright);
  font-weight: 800;
}

h2 {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.subtitle {
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  font-size: 1rem;
  max-width: 46rem;
  line-height: 1.6;
}

.home-ticket-nav {
  margin-bottom: 1.65rem;
  max-width: 100%;
}

.home-ticket-nav-title {
  margin: 0 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-ticket-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.home-ticket-nav-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-ticket-nav-btn-span {
  grid-column: 1 / -1;
}

.home-ticket-nav-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  grid-column: 1 / -1;
}

.home-ticket-nav-btn-bgf {
  background: linear-gradient(135deg, #fcd34d, #e8b84a);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 2px 10px rgba(251, 191, 36, 0.35);
}

.home-ticket-nav-btn-bgf:hover,
.home-ticket-nav-btn-bgf:focus-visible {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.45);
}

.home-ticket-nav-btn-all-bets {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
}

.home-ticket-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.35rem;
  width: 100%;
  min-height: 100%;
  padding: 0.85rem 0.9rem;
  text-align: left;
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0c1118;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(232, 184, 74, 0.22);
  cursor: pointer;
  transition:
    filter var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast);
}

.home-ticket-nav-btn:hover,
.home-ticket-nav-btn.is-active {
  color: #0c1118;
  filter: brightness(1.06);
  box-shadow: 0 4px 16px rgba(232, 184, 74, 0.32);
}

.home-ticket-nav-btn:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.home-ticket-nav-label {
  color: #0c1118;
  font-size: 0.98rem;
}

.home-ticket-nav-desc {
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(12, 17, 24, 0.72);
  line-height: 1.45;
}

#home-parlays,
#home-safe-bets,
#home-daggers {
  scroll-margin-top: calc(var(--site-header-height, 4rem) + 1rem);
}

.home-ticket-spotlight {
  position: relative;
  z-index: 2;
  animation: home-ticket-spotlight 2.8s ease-out forwards;
}

.dashboard-section .section-header.home-ticket-spotlight {
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.5rem;
  margin: -0.35rem -0.5rem 0.65rem;
}

@keyframes home-ticket-spotlight {
  0%, 30% {
    box-shadow:
      0 0 0 2px rgba(232, 184, 74, 0.9),
      0 0 18px rgba(232, 184, 74, 0.45),
      0 0 36px rgba(232, 184, 74, 0.2);
  }
  100% {
    box-shadow: none;
  }
}

@media (max-width: 720px) {
  .home-ticket-nav-grid,
  .home-ticket-nav-grid-2 {
    grid-template-columns: 1fr;
  }

  .home-ticket-nav-btn-span,
  .home-ticket-nav-pair {
    grid-column: auto;
  }

  .home-ticket-nav-pair {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-med), box-shadow var(--transition-med);
}

.card.dagger { border-color: var(--dagger); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── WatchGenie admin ── */
.watchgenie-finding {
  margin: 0.35rem 0;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  list-style: none;
}

.watchgenie-ok { background: rgba(34, 197, 94, 0.1); }
.watchgenie-warn { background: rgba(234, 179, 8, 0.12); }
.watchgenie-fail { background: rgba(239, 68, 68, 0.12); }

.watchgenie-findings {
  padding: 0;
  margin: 0.5rem 0 0;
}

/* ── Dashboard homepage ── */
.dashboard-layout-home .dashboard-col-span-row {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .dashboard-layout-home .dashboard-col-span-row {
    grid-column: auto;
  }
}

/* Homepage board lanes — mobile tab switcher + desktop 4-col */
@media (max-width: 767px) {
  [data-home-board-lanes="1"] .dashboard-col:not(.is-active-lane) {
    display: none;
  }

  [data-home-board-lanes="1"] .home-board-lane-tabs {
    position: sticky;
    top: calc(var(--header-height, 56px) + 8px);
    z-index: 5;
    background: var(--bg, #0b1220);
    padding-bottom: 0.35rem;
  }
}

@media (min-width: 1200px) {
  [data-home-board-lanes="1"].dashboard-layout-home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  [data-home-board-lanes="1"] .dashboard-col-daggers {
    grid-column: auto;
  }

  [data-home-board-lanes="1"] .dashboard-collapsible > summary {
    pointer-events: none;
    list-style: none;
  }

  [data-home-board-lanes="1"] .dashboard-collapsible > summary::-webkit-details-marker {
    display: none;
  }

  [data-home-board-lanes="1"] .dashboard-col[hidden] {
    display: block !important;
  }
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Homepage bet modules — always 2 equal columns on desktop (not 3+full-width daggers) */
@media (min-width: 900px) {
  .dashboard-layout.dashboard-layout-home-2col,
  .dashboard-layout.dashboard-layout-home[data-home-bet-modules="1"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-layout-home-2col .dashboard-col-daggers,
  .dashboard-layout-home[data-home-bet-modules="1"] .dashboard-col-daggers,
  .dashboard-layout-home-2col .dashboard-col-span-row,
  .dashboard-layout-home[data-home-bet-modules="1"] .dashboard-col-span-row {
    grid-column: auto;
  }
}

@media (max-width: 899px) {
  .dashboard-layout.dashboard-layout-home-2col,
  .dashboard-layout.dashboard-layout-home[data-home-bet-modules="1"] {
    grid-template-columns: 1fr;
  }
}

.dashboard-layout-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1200px) {
  .dashboard-layout-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-layout-3 .dashboard-col-daggers {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .dashboard-layout,
  .dashboard-layout-3 {
    grid-template-columns: 1fr;
  }

  .dashboard-layout-3 .dashboard-col-daggers {
    grid-column: auto;
  }
}

.dashboard-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.dashboard-section {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-header h2 {
  margin: 0;
  font-size: 1.2rem;
  flex: 1 1 auto;
  min-width: 0;
}

.section-link {
  color: var(--accent);
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
}

.section-link:hover { text-decoration: underline; }

.pick-matchup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.pick-line {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Dashboard: one parlay per row, match safe-bet column width */
.parlays-list.dashboard-parlays {
  margin-top: 0;
}

.parlays-list.dashboard-parlays.parlays-grid-2 {
  grid-template-columns: 1fr;
  width: 100%;
}

.parlays-list.dashboard-parlays .parlay-card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.parlays-list.dashboard-safe-bets {
  margin-top: 0;
  width: 100%;
}

.parlays-list.dashboard-safe-bets .safe-bet-card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* Safe bet dashboard cards — full parlay-style layout */
.safe-bet-card {
  display: flex;
  flex-direction: column;
}

/* Unified pick card shell (parlays, safe bets, daggers on dashboard) */
.pick-card {
  display: flex;
  flex-direction: column;
}

.pick-card-header {
  padding: 0.75rem 1rem 0.6rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pick-card-header-compact {
  padding: 0.65rem 0.85rem 0.5rem;
  gap: 0.45rem;
}

.pick-card-header .intel-big-four {
  margin-bottom: 0;
}

.pick-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.5rem 0.65rem;
  flex-wrap: nowrap;
}

.pick-card-title-main {
  flex: 1 1 auto;
  min-width: 0;
}

.pick-card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
}

.pick-card-meta,
.pick-card-extra-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.pick-card-title-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.pick-card-sport-logo {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
}

.pick-card-odds-badge {
  flex: 0 0 auto;
  margin-left: auto;
  align-items: flex-end;
  min-width: 5.25rem;
  padding: 0.35rem 0.55rem;
}

.pick-card-body {
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pick-card-cover {
  margin: 0;
  padding: 0.65rem 0.85rem 0.75rem;
  border-top: 1px solid rgba(250, 204, 21, 0.22);
  background: rgba(8, 47, 73, 0.18);
}

.pick-card-cover .signal-cover-label {
  margin: 0 0 0.45rem;
}

.pick-card-cover .cover-deadline-bar {
  margin-top: 0;
}

.pick-card-cover-lazy .cover-deadline-bar-loading {
  margin: 0;
}

.pick-card-dashboard .parlay-legs {
  padding: 0.35rem 0.85rem;
  margin: 0;
}

.pick-card-dashboard .parlay-leg {
  padding: 0.45rem 0;
}

.pick-card-dashboard .parlay-footer {
  padding: 0.5rem 0.85rem;
  margin: 0;
  gap: 0.5rem;
}

.pick-card-dashboard .dna-strip,
.pick-card-dashboard .why-this-bet {
  margin: 0;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.pick-card-dashboard .why-this-bet {
  padding-bottom: 0.5rem;
}

.pick-card-dashboard .parlay-cover-compact {
  margin-top: 0;
  padding: 0.4rem 0.85rem 0.65rem;
  border: none;
  background: transparent;
}

.pick-card-dashboard .btn-cover-toggle-compact {
  padding: 0.52rem 0.8rem;
  font-size: 0.92rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(250, 204, 21, 0.32);
}

.pick-card-dashboard .btn-cover-toggle-badge {
  padding: 0.22rem 0.62rem;
  background: rgba(28, 25, 23, 0.18);
  border: 1px solid rgba(28, 25, 23, 0.12);
  font-size: 0.64rem;
}

.pick-card-dashboard .btn-cover-toggle-chevron {
  margin-left: 0.1rem;
  opacity: 0.85;
}

.parlays-list.dashboard-parlays .intel-big-four-compact,
.parlays-list.dashboard-safe-bets .intel-big-four-compact,
.signals-list.compact .intel-big-four-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .parlays-list.dashboard-parlays .intel-big-four-compact,
  .parlays-list.dashboard-safe-bets .intel-big-four-compact,
  .signals-list.compact .intel-big-four-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pick-card-title-row {
    flex-wrap: wrap;
  }

  .pick-card-odds-badge {
    margin-left: 0;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem 0.65rem;
  }
}

.safe-bet-header {
  padding: 0.85rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.safe-bet-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.safe-bet-header-main {
  flex: 1;
  min-width: 0;
}

.safe-bet-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.safe-bet-card .safe-bet-title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

.safe-bet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.safe-bet-header-side {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.safe-bet-header-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.5rem;
}

.safe-bet-odds-badge {
  flex: 1;
  min-width: 5.5rem;
  max-width: 9rem;
  margin-left: auto;
  align-items: center;
  text-align: center;
}

.safe-bet-body {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.safe-bet-matchup {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.safe-bet-team {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.safe-bet-team-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.safe-bet-team-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
}

.safe-bet-team-name {
  font-size: 0.92rem;
  line-height: 1.25;
  color: inherit;
  text-decoration: none;
}

.safe-bet-team-body .team-record {
  font-size: 0.78rem;
}

.safe-bet-team-body .standings-chip {
  margin-left: 0;
  font-size: 0.68rem;
}

.safe-bet-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.15rem 0 0.15rem 2.75rem;
}

.safe-bet-player-prop {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.safe-bet-prop-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.15rem 0 0.15rem 2.75rem;
}

.safe-bet-prop-line .prop-player-name {
  font-size: 0.92rem;
}

.safe-bet-prop-line .prop-action {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-gold, #d4af37);
}

.safe-bet-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.safe-bet-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.4rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.5);
  text-align: center;
  min-width: 0;
}

.safe-bet-metric-value {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.safe-bet-metric-label {
  margin-top: 0.18rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.safe-bet-metric.tile-model {
  border-color: rgba(224, 176, 64, 0.35);
  background: rgba(224, 176, 64, 0.1);
}

.safe-bet-metric.tile-model .safe-bet-metric-value {
  color: #f0cc55;
}

.safe-bet-metric.tile-edge {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
}

.safe-bet-metric.tile-edge .safe-bet-metric-value {
  color: var(--safe);
}

.safe-bet-live .live-game-strip {
  margin: 0;
}

.safe-bet-card .signal-explain {
  padding: 0.75rem 1rem 0.85rem;
  border-top: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.4);
}

.safe-bet-card .signal-explain-dashboard .stat-pills {
  margin-bottom: 0.5rem;
}

.safe-bet-cover {
  padding: 0 1rem 0.85rem;
}

.safe-bet-cover .signal-cover-wrap {
  margin-top: 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
}

@media (max-width: 480px) {
  .safe-bet-header-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .safe-bet-odds-badge {
    max-width: none;
    margin-left: 0;
  }

  .safe-bet-action {
    padding-left: 0;
  }
}

.dashboard-section .signals-list,
.dashboard-section .parlays-list {
  width: 100%;
}

@media (max-width: 900px) {
  .dashboard-layout:not(.dashboard-layout-3) {
    grid-template-columns: 1fr;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th { color: var(--muted); font-weight: 600; }

.mono { font-family: ui-monospace, monospace; font-size: 0.8rem; }

.positive { color: var(--safe); }
.negative { color: var(--danger); }
.warn { color: var(--dagger); }
.empty { color: var(--muted); padding: 1rem; }

.explain-row td {
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 0;
  padding-bottom: 0.75rem;
}

.badge {
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-safe { background: rgba(34, 197, 94, 0.2); color: var(--safe); }
.badge-dagger { background: rgba(245, 158, 11, 0.2); color: var(--dagger); }

.btn-sm {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: none;
}

.btn-sm:hover { opacity: 0.9; }
.btn-dagger { background: var(--dagger); color: #000; }

.filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filters select, .filters button {
  padding: 0.5rem 0.75rem;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.rating-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.player-list { margin: 0.5rem 0 0 1.25rem; font-size: 0.9rem; }

.stats-card h3 { margin-bottom: 0.5rem; }

footer,
.site-footer {
  margin-top: 3rem;
  padding: 2rem clamp(1rem, 3vw, 2rem) 2.5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(7, 11, 16, 0.65));
}

.site-footer-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(1.25rem, 3vw, 2.25rem);
  padding-right: clamp(1.25rem, 3vw, 2.25rem);
  box-sizing: border-box;
  text-align: left;
}

.public-landing-body .site-footer-inner {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.site-footer-nav {
  text-align: left;
  margin-bottom: 2rem;
}

.site-footer-brand-col {
  border-bottom: 1px solid var(--border);
}

.site-footer-brand {
  padding: 0.85rem 0;
}

.site-footer-brand-name {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-footer-brand-location {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
}

.site-footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.site-footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.45);
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.site-footer-social-link:hover {
  color: var(--accent-bright);
  border-color: rgba(232, 184, 74, 0.45);
}

.site-footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(232, 184, 74, 0.18);
  color: var(--accent-bright);
  font-size: 0.68rem;
  font-weight: 800;
}

.site-footer-brand-account {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.site-footer-brand-account-title {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer-nav-grid {
  display: grid;
  gap: 0;
}

.site-footer-account-links {
  margin-bottom: 0.85rem;
}

.site-footer-auth-links {
  padding: 0;
}

.site-footer-auth-links a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer-auth-links a:hover,
.site-footer-auth-links a.active-tab {
  color: var(--accent-bright);
}

.site-footer-nav-group {
  border-bottom: 1px solid var(--border);
}

.site-footer-nav-group summary {
  padding: 0.85rem 0;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.site-footer-nav-group summary::-webkit-details-marker {
  display: none;
}

.site-footer-nav-group summary::after {
  content: "▾";
  float: right;
  color: var(--muted);
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.site-footer-nav-group[open] summary::after {
  transform: rotate(180deg);
}

.site-footer-nav-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
}

.site-footer-nav-list a,
.site-footer-nav-links a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer-nav-list a:hover,
.site-footer-nav-links a:hover,
.site-footer-nav-list a.active-tab,
.site-footer-nav-links a.active-tab {
  color: var(--accent-bright);
}

.site-footer-nav-links {
  margin-bottom: 0.85rem;
}

.site-footer-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0.85rem;
}

.site-footer-league-dropdown {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.site-footer-league-dropdown:last-child {
  border-bottom: none;
}

.site-footer-league-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.site-footer-league-summary::-webkit-details-marker {
  display: none;
}

.site-footer-league-summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.site-footer-league-dropdown[open] .site-footer-league-summary::after {
  transform: rotate(180deg);
}

.site-footer-league-name {
  letter-spacing: 0.04em;
}

.site-footer-league-links {
  padding: 0 0 0.5rem 0.15rem;
}

.site-footer-league-links a,
.site-footer-stats-grid .nav-stats-column a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
}

.site-footer-league-links a:hover,
.site-footer-stats-grid .nav-stats-column a:hover {
  color: var(--accent-bright);
}

.site-footer-league-logo,
.site-footer-stats-grid .nav-league-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .site-footer-nav {
    text-align: center;
  }

  .site-footer-nav-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    justify-content: center;
    max-width: 1240px;
    margin: 0 auto;
  }

  .site-footer-nav-group {
    border-bottom: none;
    text-align: left;
  }

  .site-footer-nav-group summary {
    padding: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: default;
    pointer-events: none;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
    text-align: left;
  }

  .site-footer-nav-group summary::after {
    display: none;
  }

  .site-footer-nav-group > :not(summary) {
    display: block !important;
  }

  .site-footer-stats-grid {
    gap: 0;
  }

  .site-footer-league-summary {
    padding: 0.35rem 0;
    font-size: 0.84rem;
  }
}

@media (min-width: 1100px) {
  .site-footer-stats-grid {
    max-width: 100%;
  }
}

.site-footer-mission,
footer p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.65;
  max-width: 42rem;
  margin: 0 auto;
}

.public-footer-links {
  margin: 0.75rem auto 0;
  max-width: 42rem;
  text-align: center;
  line-height: 1.8;
}

.public-footer-links a {
  text-decoration: none;
  color: var(--accent, #60a5fa);
}

.public-footer-links a:hover {
  text-decoration: underline;
}

.public-footer-links a[aria-current="page"] {
  font-weight: 600;
}

.site-footer-public-links {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

footer .footer-copyright,
.site-footer .footer-copyright {
  margin-top: 1rem;
  margin-bottom: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.pick-celebrate-hit {
  position: relative;
  overflow: hidden;
}

.pick-celebrate-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.pick-celebrate-overlay.is-playing { opacity: 1; }
.pick-celebrate-overlay.is-done { opacity: 0; }

.pick-celebrate-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.pick-celebrate-hit.pick-celebrate-done {
  box-shadow: 0 0 0 1px rgba(134, 239, 172, 0.35), 0 0 24px rgba(34, 197, 94, 0.15);
}

code {
  background: var(--card);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85rem;
}

.explain-ai {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: rgba(224, 176, 64, 0.12);
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
}

.assist-panel {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.assist-panel.assist-compact {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.assist-panel.assist-compact h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.assist-panel.assist-compact textarea {
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  resize: vertical;
}

.assist-panel.assist-compact .assist-answer {
  margin-top: 0.65rem;
  min-height: 1.5rem;
  font-size: 0.85rem;
}

.assist-panel textarea {
  width: 100%;
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
}

.assist-answer {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 6px;
  white-space: pre-wrap;
  font-size: 0.9rem;
  min-height: 2rem;
}

.muted { color: var(--muted); font-size: 0.9rem; }

/* ── Signal cards ── */
.signals-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  width: 100%;
}

.signals-list:not(.compact):not(.dashboard-props):not(.entity-props-list):not(.game-props-list) {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .signals-list.signals-page-grid,
  [data-list-root="signals-page"].signals-list,
  .signals-list.signals-board-grid,
  [data-list-root="daggers-page"].signals-list,
  [data-list-root="props-page"].signals-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .signals-list.signals-page-grid,
  [data-list-root="signals-page"].signals-list,
  .signals-list.signals-board-grid,
  [data-list-root="daggers-page"].signals-list,
  [data-list-root="props-page"].signals-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.signals-list.compact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.signal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.signal-card.tier-safe { border-left: 4px solid var(--safe); }
.signal-card.tier-dagger { border-left: 4px solid var(--dagger); }

.signal-card-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  padding: 1rem 1.25rem 0.75rem;
  align-items: center;
}

.signal-id-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  grid-column: 1 / -1;
  font-size: 0.8rem;
}

.league-tag {
  background: rgba(224, 176, 64, 0.15);
  color: var(--accent);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.78rem;
}

.signal-id-short { color: var(--muted); }

.signal-pick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.bet-type-tag {
  color: var(--muted);
  font-size: 0.85rem;
}

.pick-name { font-size: 1.05rem; }

.signal-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-self: end;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}

.metric-chip-labeled {
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  min-width: 3.75rem;
  padding: 0.3rem 0.55rem 0.35rem;
}

.metric-chip-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.metric-chip-value {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.1;
}

.chip-model .metric-chip-value { color: #f0cc55; }
.chip-conf .metric-chip-value { color: var(--text); }
.chip-edge .metric-chip-value { color: var(--safe); }

.odds-chip-labeled .signal-odds-chip {
  font-size: 0.95rem;
}

.odds-chip-align-start {
  align-items: flex-start;
}

.odds-chip-align-center {
  align-items: center;
}

.ratings-labeled {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
}

.parlay-payout-labeled {
  align-items: flex-start;
}

.cover-win-inline-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.cover-win-inline-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.chip-model {
  background: rgba(224, 176, 64, 0.2);
  color: #f0cc55;
  border: 1px solid rgba(224, 176, 64, 0.35);
}

.chip-conf {
  background: rgba(139, 156, 179, 0.15);
  color: var(--text);
  border: 1px solid var(--border);
}

.chip-edge {
  background: rgba(34, 197, 94, 0.2);
  color: var(--safe);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.signal-action { justify-self: end; }

/* ── Explanation block ── */
.signal-explain {
  padding: 0.75rem 1.25rem 1.1rem;
  border-top: 1px solid var(--border);
  background: rgba(15, 20, 25, 0.45);
}

.ml-explain-block {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(99, 179, 237, 0.25);
  background: rgba(30, 58, 95, 0.25);
}
.ml-explain-heading {
  margin: 0 0 0.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ml-explain-summary { margin: 0 0 0.5rem; color: var(--text-muted); }
.ml-explain-factors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.ml-factor {
  display: grid;
  grid-template-columns: 1.25rem 1fr auto;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
}
.ml-factor-positive .ml-factor-dir { color: var(--success, #48bb78); }
.ml-factor-negative .ml-factor-dir { color: var(--danger, #fc8181); }
.pill-ensemble { border-color: rgba(99, 179, 237, 0.45); }
.filters-chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}
.pm-bridge-shap {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--border);
  font-style: italic;
}
.daily-brief-ml {
  margin: 0.25rem 0 0;
  line-height: 1.35;
}

.explain-header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.explain-icon { font-size: 1.5rem; line-height: 1; }

.explain-headline {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.explain-bet-icon { margin-right: 0.25rem; }

.explain-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.meta-chip {
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted);
}

.stat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.stat-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
}

.pill-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.pill-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.pill-vs {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.75rem;
  margin: 0 0.15rem;
}

.pill-model { border-color: rgba(224, 176, 64, 0.4); }
.pill-model .pill-value { color: #f0cc55; }

.pill-edge { border-color: rgba(34, 197, 94, 0.4); }
.pill-edge .pill-value { color: var(--safe); }

.pill-coach .pill-value { color: var(--dagger); }
.pill-margin .pill-value { color: #a78bfa; }

.pill-rating { min-width: auto; max-width: 100%; }
.pill-rating .pill-value { font-size: 0.8rem; line-height: 1.3; }

.explain-factors {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.explain-factors li {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.explain-factors strong { color: var(--text); }

.factor-icon { flex-shrink: 0; }

.ai-badge {
  display: inline-block;
  background: rgba(224, 176, 64, 0.25);
  color: #f0cc55;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.signals-list.compact { gap: 0.75rem; }
.compact-card .signal-explain { font-size: 0.9rem; }
.compact-card .stat-pills { gap: 0.35rem; }

/* Ratings spreadsheet table */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  max-width: 100%;
}

.table-scroll-wrap > .table-scroll {
  border-radius: 10px;
}

.ratings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ratings-table thead {
  position: sticky;
  top: 0;
  background: #152030;
  z-index: 1;
}

.ratings-table th {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.ratings-table th.num { text-align: right; }

.sortable-th { white-space: nowrap; }

.sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.sort-link:hover { color: var(--accent); }

.sort-active .sort-link { color: #f0cc55; font-weight: 700; }

.sort-arrow {
  font-size: 0.7rem;
  color: var(--accent);
}

.ratings-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.ratings-table tbody tr:hover {
  background: rgba(224, 176, 64, 0.06);
}

.ratings-table .num { text-align: right; font-variant-numeric: tabular-nums; }

.rank-cell { color: var(--muted); font-weight: 600; }

.score-overall { color: #f0cc55; font-weight: 700; }
.score-offense { color: var(--safe); font-weight: 600; }
.score-defense { color: #a78bfa; font-weight: 600; }
.score-consistency { color: var(--dagger); font-weight: 600; }

.coach-cell strong { display: block; }
.coach-grade {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.4rem;
  background: rgba(224, 176, 64, 0.2);
  border-radius: 4px;
  font-size: 0.75rem;
}

.top-players-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
}

.top-players-list li {
  margin: 0.2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: baseline;
}

.player-grade {
  font-weight: 700;
  color: var(--safe);
  font-size: 0.75rem;
}

.filter-min {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.filter-min input {
  width: 3.5rem;
  padding: 0.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
}

.ratings-filters { align-items: center; }

.card {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.signal-card {
  animation: fadeSlideIn 0.4s ease backwards;
}

.signals-list .signal-card:nth-child(1) { animation-delay: 0.02s; }
.signals-list .signal-card:nth-child(2) { animation-delay: 0.05s; }
.signals-list .signal-card:nth-child(3) { animation-delay: 0.08s; }

@media (max-width: 900px) {
  .nav-status-sub { display: none; }
  .nav-header-utils {
    flex-wrap: wrap;
    width: 100%;
  }
  .nav-header-utils .nav-auth-desktop {
    order: 1;
    flex: 0 0 auto;
  }
  .nav-header-utils .nav-data-status,
  .nav-header-utils .nav-status {
    order: 2;
    flex: 0 0 auto;
  }
  .nav-header-utils .nav-search-wrap {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
  }
  .nav-header-utils .nav-search { width: 100%; }
  .nav-header-utils .nav-search input,
  .nav-header-utils .nav-search-input { width: 100%; }
  .nav-header-utils .nav-search-dropdown {
    left: 0;
    right: 0;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 700px) {
  .signal-card-top {
    grid-template-columns: 1fr;
  }
  .signal-metrics, .signal-action {
    justify-self: start;
  }
}

/* ── Parlay cards ── */
.parlays-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
}

.parlays-list.parlays-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.parlays-list.parlays-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Full parlays board (/parlays) — 1 col mobile, 2 col tablet/desktop (never 3–4) */
.parlays-list.parlays-page-grid,
[data-list-root="parlays-page"].parlays-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2.2vw, 1.35rem);
  margin-top: 1rem;
  width: 100%;
  align-items: stretch;
}

.parlays-list.parlays-page-grid .parlay-card,
[data-list-root="parlays-page"] .parlay-card {
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .parlays-list.parlays-page-grid,
  [data-list-root="parlays-page"].parlays-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .parlays-list.parlays-page-grid,
  [data-list-root="parlays-page"].parlays-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.parlays-list.dashboard-parlays.parlays-grid-2 {
  grid-template-columns: 1fr;
}

.parlays-empty {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .parlays-list.parlays-grid-2,
  .parlays-list.parlays-grid-3 {
    grid-template-columns: 1fr;
  }
}

.parlay-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  overflow: hidden;
  animation: fadeSlideIn 0.4s ease backwards;
}

.parlay-card.tier-dagger { border-left-color: var(--dagger); }
.parlay-card.tier-safe { border-left-color: var(--safe); }

.share-copy-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: pre-wrap;
  border: 0;
}

.share-copy-btn {
  position: relative;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  opacity: 0.75;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.share-copy-btn:hover,
.share-copy-btn:focus-visible {
  opacity: 1;
  border-color: var(--accent);
  outline: none;
}

.share-copy-btn-done {
  transform: scale(1.08);
  border-color: var(--safe);
}

.share-btn {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  opacity: 0.85;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.share-btn:hover,
.share-btn:focus-visible {
  opacity: 1;
  border-color: var(--accent);
  outline: none;
}

body.bg-share-modal-open {
  overflow: hidden;
}

.bg-share-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bg-share-modal[hidden] {
  display: none !important;
}

.bg-share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
}

.bg-share-modal-panel {
  position: relative;
  width: min(32rem, 100%);
  max-height: min(92vh, 52rem);
  overflow: auto;
  background: var(--surface, #161b22);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.25rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.bg-share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bg-share-modal-title {
  margin: 0;
  font-size: 1.15rem;
}

.bg-share-modal-close {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.bg-share-platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.bg-share-platform {
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  cursor: pointer;
}

.bg-share-platform.is-active {
  border-color: var(--accent, #c9a227);
  color: var(--accent, #c9a227);
}

.bg-share-preview-wrap {
  margin-bottom: 0.85rem;
}

.bg-share-preview-frame {
  background: #0d1117;
  border: 1px dashed var(--border);
  border-radius: 10px;
  min-height: 10rem;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  overflow: hidden;
}

.bg-share-preview-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.bg-share-preview-placeholder {
  padding: 1.5rem;
  text-align: center;
}

.bg-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.bg-share-native-primary {
  flex: 1 1 100%;
  min-height: var(--touch-min, 2.75rem);
  font-weight: 700;
}

@media (max-width: 768px) {
  .bg-share-native-primary:not([hidden]) {
    order: -1;
  }
}

.bg-share-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bg-share-social-btn {
  min-width: 2.4rem;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 8px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  font-size: 0.8rem;
}

.bg-share-social-btn:hover {
  border-color: var(--accent, #c9a227);
}

.parlay-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.parlay-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.parlay-header-intel .intel-big-four {
  margin-bottom: 0;
}

.parlay-title-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.parlay-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.parlay-sport-logo {
  width: 57px;
  height: 57px;
  max-width: 57px;
  max-height: 57px;
  flex-shrink: 0;
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.parlay-leg-logo {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.parlay-leg-logo-opp {
  margin: 0 0.15rem;
}

.parlay-card-compact .parlay-title {
  font-size: 1rem;
}

.parlay-card-compact .parlay-header {
  padding: 0.75rem 1rem 0.55rem;
}

.parlay-card-compact .parlay-legs {
  padding: 0.35rem 1rem;
}

.parlay-card-compact .parlay-footer {
  padding: 0.55rem 1rem;
}

.parlay-card-compact .parlay-sport-logo {
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
}

.parlay-odds-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background: rgba(224, 176, 64, 0.12);
  border: 1px solid rgba(224, 176, 64, 0.25);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  white-space: nowrap;
}

.parlay-total-odds {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
}

.parlay-odds-labeled,
.parlay-hit-labeled {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
}

.parlay-odds-micro-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

.parlay-win-pct {
  font-size: 0.82rem;
  color: var(--muted);
}

@media (min-width: 520px) {
  .parlay-leg-row {
    flex-wrap: nowrap;
  }

  .parlay-leg-pick {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.parlay-legs {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1.25rem;
}

.parlay-leg {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.parlay-leg:last-child { border-bottom: none; }

.parlay-leg-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.parlay-leg-main {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.parlay-leg-pick {
  font-size: 0.95rem;
  line-height: 1.4;
  min-width: 0;
}

.parlay-leg-pick strong {
  color: var(--text);
}

.parlay-leg-vs {
  color: var(--muted);
  font-weight: 400;
}

.parlay-leg-odds-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.05rem;
  flex-shrink: 0;
}

.builder-suggestion-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  margin: 0.25rem 0 0;
}

.parlay-leg-odds {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
  min-width: 3.25rem;
  text-align: right;
}

.parlay-leg-event {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.parlay-leg-bet-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  flex-shrink: 0;
}

.parlay-leg-row .signal-odds-chip {
  flex-shrink: 0;
  font-weight: 700;
  min-width: 3rem;
  justify-content: center;
}

.parlay-leg-total-pick {
  color: var(--accent-bright);
}

.parlay-leg-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.parlay-leg-pick-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.parlay-leg-player-prop {
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.parlay-leg-player-photo {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.parlay-leg-player-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.parlay-leg-prop-line {
  margin-left: auto;
  color: var(--accent, #7dcea0);
  white-space: nowrap;
}

.parlay-leg-action {
  color: var(--muted);
  font-weight: 500;
}

.parlay-leg-matchup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.signal-event-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0.35rem 0 0.15rem;
}

.bet-kind-tag {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.signal-odds-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.35);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.pick-action {
  font-size: 0.9rem;
  font-weight: 500;
}

.parlay-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background: rgba(0, 0, 0, 0.15);
}

.parlay-payout {
  color: var(--safe);
  font-weight: 700;
  font-size: 0.95rem;
}

.parlay-ev-badge {
  background: rgba(34, 197, 94, 0.15);
  color: var(--safe);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.parlay-ai-insight {
  margin: 0;
  padding: 0.65rem 1.25rem 0.85rem;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.45;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.parlay-rationale {
  padding: 0 1.25rem 1rem;
  margin: 0;
}

@media (max-width: 600px) {
  .parlay-header-row {
    flex-direction: column;
    align-items: stretch;
  }
  .parlay-odds-badge {
    align-items: flex-start;
  }
}

/* ── Horizontal drag-scroll tables ── */
/* Viewport stays fixed on mobile; wide tables scroll inside wrappers only. */
.site-body {
  overflow-x: hidden;
  max-width: 100%;
}

.site-main,
.page-content,
.container.page-content,
.dashboard-layout,
.dashboard-col,
.card,
.filters-wrap,
.filters {
  max-width: 100%;
  min-width: 0;
}

.table-scroll-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  max-width: 100%;
}

.table-scroll.is-scrollable {
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.table-scroll.is-scrollable.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.table-scroll.is-scrollable.is-dragging .player-row-link {
  cursor: grabbing;
}

.table-scroll-hint {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 64px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  background: linear-gradient(to left, var(--card) 35%, transparent);
  border-radius: 0 10px 10px 0;
  opacity: 1;
  transition: opacity 0.45s ease;
  z-index: 2;
}

.table-scroll-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.scroll-hint-arrow {
  display: inline-block;
  color: #facc15;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.45);
  animation: scroll-hint-nudge 1.4s ease-in-out infinite;
}

@keyframes scroll-hint-nudge {
  0%, 100% { transform: translateX(0); opacity: 0.55; }
  50% { transform: translateX(10px); opacity: 1; }
}

/* ── Player stats + profile ── */
.player-stats-table .starter-col,
.player-stats-table .starter-cell {
  width: 6px;
  min-width: 6px;
  max-width: 6px;
  padding: 0;
  border: 0;
}

.starter-bar {
  display: block;
  width: 4px;
  min-height: 100%;
  height: 2rem;
  margin: 0 auto;
  border-radius: 2px;
  background: transparent;
}

.starter-bar.is-starter {
  background: linear-gradient(180deg, #fde047 0%, #facc15 50%, #eab308 100%);
  box-shadow: 0 0 6px rgba(250, 204, 21, 0.55);
}

.starter-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.starter-legend .starter-bar {
  height: 1rem;
  width: 4px;
}

.player-stats-table .injury-col,
.player-stats-table .injury-cell {
  width: 6px;
  min-width: 6px;
  max-width: 6px;
  padding: 0;
  border: 0;
}

.injury-bar {
  display: block;
  width: 4px;
  min-height: 100%;
  height: 2rem;
  margin: 0 auto;
  border-radius: 2px;
  background: transparent;
}

.injury-bar.is-injured {
  background: linear-gradient(180deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.55);
}

.injury-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.injury-legend .injury-bar {
  height: 1rem;
  width: 4px;
}

.player-stats-table .il-badge-col,
.player-stats-table .il-badge-cell {
  width: 2.25rem;
  min-width: 2.25rem;
  max-width: 2.25rem;
  padding: 0 0.15rem;
  text-align: center;
  vertical-align: middle;
}

.il-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0 0.15rem;
  border-radius: 50%;
  background: rgba(127, 29, 29, 0.55);
  border: 1px solid #ef4444;
  color: #fecaca;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.25);
}

.il-badge.il-badge-4,
.il-badge.il-badge-5 {
  font-size: 0.5rem;
  min-width: 1.7rem;
  height: 1.7rem;
}

.stat-with-rank {
  white-space: nowrap;
  line-height: 1.2;
}

.stat-with-rank .stat-val {
  display: block;
}

.stat-mlb-rank {
  display: block;
  font-size: 0.62rem;
  color: #f0cc55;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 0.1rem;
}

/* ── MLB Leaders page ── */
.leaders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.leader-card h2 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}

.leader-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.leader-row {
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  gap: 0.35rem 0.5rem;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leader-rank {
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

.leader-player {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.leader-player:hover { color: var(--accent); }

.leader-meta {
  grid-column: 2;
  font-size: 0.72rem;
}

.leader-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.top100-table th.col-stat,
.top100-table td.col-stat,
.top100-table th:last-child,
.top100-table td:last-child {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.top100-table th:last-child .sort-link {
  justify-content: flex-end;
  width: 100%;
}

.stats-view-tabs {
  margin-bottom: 0.75rem;
}

.active-tab {
  background: rgba(224, 176, 64, 0.25) !important;
  border-color: var(--accent) !important;
}

.muted-link { opacity: 0.85; }

/* Top 100 leaderboard tabs — selected vs available vs unavailable */
.top100-hint {
  margin: -0.35rem 0 0.85rem;
  max-width: 42rem;
}

.top100-tabs {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.top100-tabs-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-right: 0.15rem;
}

.top100-tabs-sep {
  width: 1px;
  height: 1.25rem;
  background: var(--border);
  margin: 0 0.15rem;
}

.top100-tabs a.btn-sm.tab-active,
.top100-tabs a.btn-sm.active-tab,
.stats-view-tabs a.btn-sm.tab-active,
.stats-view-tabs a.btn-sm.active-tab,
.stats-subnav.top100-subnav a.btn-sm.tab-active,
.stats-subnav.top100-subnav a.btn-sm.active-tab {
  background: var(--accent) !important;
  color: #141820 !important;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(196, 146, 42, 0.45);
  opacity: 1;
  border: 1px solid var(--accent);
}

.top100-tabs a.btn-sm.tab-inactive,
.stats-view-tabs a.btn-sm.tab-inactive,
.stats-subnav a.btn-sm.tab-inactive {
  background: rgba(224, 176, 64, 0.08) !important;
  color: rgba(255, 255, 255, 0.52) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.top100-tabs a.btn-sm.tab-inactive:hover,
.stats-view-tabs a.btn-sm.tab-inactive:hover,
.stats-subnav a.btn-sm.tab-inactive:hover {
  background: rgba(224, 176, 64, 0.2) !important;
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 1;
}

.top100-tabs .btn-sm.tab-unavailable,
.top100-tabs span.tab-unavailable {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: rgba(20, 28, 40, 0.55) !important;
  color: rgba(255, 255, 255, 0.28) !important;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: not-allowed;
  pointer-events: none;
  text-decoration: none;
}

.top100-tabs a.btn-sm.tab-utility {
  background: transparent !important;
  color: var(--muted) !important;
  border: 1px dashed rgba(255, 255, 255, 0.18) !important;
  font-size: 0.75rem;
  box-shadow: none;
}

.top100-tabs a.btn-sm.tab-utility:hover {
  color: var(--text) !important;
  border-color: rgba(224, 176, 64, 0.45) !important;
  background: rgba(224, 176, 64, 0.06) !important;
}

/* ── Bet tracker ── */
.tracker-stats { margin: 1rem 0; padding: 1rem 1.25rem; }
.tracker-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
}
.tracker-stat { text-align: center; }
.tracker-stat-val { display: block; font-size: 1.35rem; font-weight: 700; }
.tracker-stat-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tracker-kind-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; }
.tracker-period-bar { margin: 0.75rem 0; padding: 0.75rem 1rem; }
.tracker-period-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tracker-period-tab {
  padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.85rem;
  background: var(--surface-2, rgba(255,255,255,0.06)); color: var(--text);
  text-decoration: none; border: 1px solid transparent;
}
.tracker-period-tab.is-active { border-color: var(--accent, #3b82f6); font-weight: 600; }
.tracker-period-label { margin: 0.5rem 0 0; }
.tracker-custom-range { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.5rem; }
.tracker-split-stats { margin: 1rem 0; padding: 1rem 1.25rem; }
.tracker-split-title { margin: 0 0 0.75rem; font-size: 1rem; }
.tracker-split-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; }
.tracker-split-card { padding: 0.75rem; border-radius: 8px; background: var(--surface-2, rgba(255,255,255,0.04)); }
.tracker-split-card h3 { margin: 0 0 0.35rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.tracker-split-wlp { font-size: 1.25rem; font-weight: 700; margin: 0; }
.win-prob-badge {
  display: inline-flex; flex-direction: column; align-items: stretch; gap: 0.35rem;
  margin: 0.5rem 0 1rem; padding: 0.5rem 0.85rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600;
  background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.25);
}
.win-prob-rows { display: flex; flex-direction: column; gap: 0.2rem; width: 100%; }
.win-prob-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.win-prob-row-muted { justify-content: flex-start; }
.win-prob-label { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
.win-prob-sublabel { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.win-prob-value { text-align: right; white-space: nowrap; }
.win-prob-likely strong { color: #93c5fd; }
.win-prob-score strong { color: #86efac; }
.win-prob-badge.is-live .win-prob-score strong { color: #4ade80; }
.win-prob-badge.is-live { border-color: rgba(34, 197, 94, 0.35); background: rgba(34, 197, 94, 0.1); }
.win-prob-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; min-width: 8rem; background: rgba(255,255,255,0.1); }
.win-prob-bar-away { background: var(--away-color, #64748b); }
.win-prob-bar-home { background: var(--home-color, #3b82f6); }
.tier-badge-pill {
  display: inline-flex; align-items: center; margin-left: 0.5rem; padding: 0.2rem 0.65rem;
  border-radius: 999px; font-size: 0.75rem; font-weight: 600; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12); white-space: nowrap;
}
.tier-badge-pill.tier-free { background: rgba(148,163,184,0.15); color: var(--muted); }
.tier-badge-pill.tier-trial { background: rgba(59,130,246,0.15); color: #93c5fd; border-color: rgba(59,130,246,0.35); }
.tier-badge-pill.tier-pro { background: rgba(34,197,94,0.12); color: #86efac; }
.tier-badge-pill.tier-elite { background: rgba(234,179,8,0.15); color: #fde047; }
.tier-badge-pill.tier-admin { background: rgba(168,85,247,0.15); color: #d8b4fe; }
.crowd-pct { display: block; margin-top: 0.35rem; font-size: 0.78rem; }
.bg-walkthrough { position: fixed; inset: 0; z-index: 12000; pointer-events: none; }
.bg-walkthrough-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.55); pointer-events: auto; }
.bg-walkthrough-spotlight {
  position: fixed; border: 2px solid var(--accent, #3b82f6); border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.55); pointer-events: none; z-index: 1;
}
.bg-walkthrough-card {
  position: fixed; z-index: 2; width: min(20rem, calc(100vw - 24px)); pointer-events: auto;
  padding: 1rem; box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.bg-walkthrough-actions { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.75rem; flex-wrap: wrap; }
body.bg-walkthrough-active { overflow: hidden; }
@media (max-width: 768px) {
  .bg-walkthrough-card { width: auto; max-width: none; }
}
.community-chat-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px)) + 3.75rem);
  z-index: 12200;
  width: 3rem; height: 3rem; border-radius: 999px; border: none; cursor: pointer;
  pointer-events: auto;
  background: var(--accent, #3b82f6); color: #fff; font-size: 1.25rem; box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.community-chat-fab.is-open { background: #64748b; }
.community-chat-tooltip {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px)) + 7.75rem);
  z-index: 12201;
  max-width: 14rem; padding: 0.55rem 0.85rem; border-radius: 8px;
  background: rgba(59, 130, 246, 0.95); color: #fff; font-size: 0.85rem; font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3); pointer-events: none; opacity: 0;
  transform: translateY(6px); transition: opacity 0.5s ease, transform 0.5s ease;
}
.community-chat-tooltip.is-visible { opacity: 1; transform: translateY(0); }
.community-chat-tooltip.is-fading { opacity: 0; transform: translateY(-4px); }
.community-chat-dock {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(max(1rem, env(safe-area-inset-bottom, 0px)) + 3.75rem);
  z-index: 12300;
  width: min(24rem, calc(100vw - 2rem));
  pointer-events: none;
}
.community-chat-dock[data-state="minimized"],
.community-chat-dock[data-state="expanded"] {
  pointer-events: auto;
}
.community-chat-dock[data-state="minimized"] .community-chat-minibar {
  display: flex;
}
.community-chat-dock[data-state="minimized"] .community-chat-panel-wrap {
  display: none;
}
.community-chat-dock[data-state="expanded"] .community-chat-minibar {
  display: none;
}
.community-chat-dock[data-state="expanded"] .community-chat-panel-wrap {
  display: block;
}
.community-chat-dock[data-state="closed"] {
  display: none !important;
}
.community-chat-minibar {
  width: 100%;
  display: none;
  align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem; border-radius: 999px; border: 1px solid rgba(224, 176, 64, 0.45);
  background: rgba(15, 23, 42, 0.96); color: inherit; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  pointer-events: auto;
  font: inherit;
  text-align: left;
}
.community-chat-minibar:hover {
  border-color: rgba(224, 176, 64, 0.75);
  background: rgba(20, 28, 42, 0.98);
}
.community-chat-minibar-ticker { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; text-align: left; }
.community-chat-panel-wrap {
  display: none;
  width: 100%;
}
.community-chat-fab[hidden] {
  display: none !important;
}
.community-chat-panel {
  width: 100%; max-height: min(80vh, 620px); display: flex; flex-direction: column;
  margin-bottom: 0;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  background: var(--card-solid, #101622);
  color: #f1f5f9;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.chat-genie-visual {
  position: absolute;
  right: 0;
  top: 85px;
  bottom: 60px;
  width: 38%;
  height: auto;
  object-fit: cover;
  opacity: 0.18;
  z-index: 0;
  pointer-events: none;
  /* flushed inside border, no margin/pad, bleed style */
  margin: 0;
  padding: 0;
  /* image on right of box; fade its left/inner side to blend with content */
  -webkit-mask-image: linear-gradient(to right, transparent 15%, rgba(0,0,0,0.92) 50%);
  mask-image: linear-gradient(to right, transparent 15%, rgba(0,0,0,0.92) 50%);
}
.community-chat-header { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.9rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); background: linear-gradient(90deg, rgba(201,162,39,0.08), rgba(59,130,246,0.05)); position: relative; z-index: 2; flex: 0 0 auto; }
.community-chat-header-main { flex: 1; min-width: 0; }
.community-chat-header-actions { display: flex; gap: 0.25rem; flex-shrink: 0; }
.community-chat-header h2 { margin: 0; font-size: 1rem; }
.community-chat-close, .community-chat-minimize {
  background: rgba(255,255,255,0.08); border: none; width: 2rem; height: 2rem; border-radius: 6px;
  font-size: 1.25rem; cursor: pointer; color: inherit; line-height: 1;
}
.community-chat-messages { flex: 1; overflow-y: auto; padding: 0.75rem 1rem; min-height: 300px; max-height: 55vh; font-size: 1.15rem; line-height: 1.55; }
.community-chat-msg { margin-bottom: 0.65rem; font-size: 1.15rem; line-height: 1.5; color: #e2e8f0; }
.community-chat-body { font-size: inherit; }
.community-chat-safety-banner {
  margin: 0.5rem 0.75rem 0;
  padding: 0.45rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.35;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
}
.community-chat-strike-warn {
  margin: 0.35rem 0.75rem 0;
  padding: 0.4rem 0.55rem;
  font-size: 0.78rem;
  border-radius: 8px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #fde68a;
}
.community-chat-msg-bubble {
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.community-chat-msg-bubble.is-own {
  margin-left: auto;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.28);
}
.community-chat-msg-bubble.is-other { margin-right: auto; }
.community-chat-bubble-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.2rem;
}
.community-chat-bubble-head .community-chat-user { font-weight: 600; font-size: 1.05rem; color: #f8fafc; }
.community-chat-time { font-size: 0.78rem; white-space: nowrap; }
.community-chat-role {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  vertical-align: middle;
}
.community-chat-role-admin { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.community-chat-role-mod { background: rgba(34, 197, 94, 0.18); color: #86efac; }
.community-help-panel { padding: 0.75rem 1rem; overflow-y: auto; max-height: 50vh; }
.community-mod-panel { padding: 0.75rem 1rem; overflow-y: auto; max-height: 50vh; }
.community-mod-intro { margin: 0 0 0.75rem; }
.community-mod-queue { display: flex; flex-direction: column; gap: 0.65rem; }
.community-mod-item {
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: rgba(248, 113, 113, 0.06);
}
.community-mod-item-head { margin-bottom: 0.25rem; }
.community-mod-item-body { margin: 0.25rem 0; word-break: break-word; }
.community-mod-item-reason { margin: 0; }
.community-mod-item-actions,
.community-chat-mod-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-top: 0.35rem; }
.community-chat-msg-flagged {
  outline: 1px dashed rgba(248, 113, 113, 0.45);
  outline-offset: 2px;
  border-radius: 8px;
}
.community-mod-chip { display: inline-flex; align-items: center; gap: 0.2rem; margin: 0 0.35rem 0.25rem 0; }
.community-help-section { margin-bottom: 1rem; }
.community-help-title { font-size: 0.95rem; margin: 0 0 0.35rem; }
.community-help-list { margin: 0; padding-left: 1.1rem; }
.community-help-complaint-form label { display: block; margin-bottom: 0.5rem; }
.community-help-complaint-form input,
.community-help-complaint-form textarea { width: 100%; margin-top: 0.2rem; }
.community-chat-msg-welcome,
.community-chat-msg-moderation {
  opacity: 0.72; font-size: 0.92rem; padding: 0.5rem 0.65rem; border-radius: 8px;
  background: rgba(234, 179, 8, 0.08); border: 1px solid rgba(234, 179, 8, 0.2);
}
.community-chat-msg-welcome .community-chat-user,
.community-chat-msg-moderation .community-chat-user { color: #fde047; }
.community-chat-msg-score {
  padding: 0.35rem 0.5rem; border-radius: 6px; background: rgba(34, 197, 94, 0.08);
  border-left: 3px solid rgba(34, 197, 94, 0.45); font-size: 0.85rem;
}
.community-chat-msg-score .community-chat-user { color: #86efac; font-size: 0.75rem; }
.community-chat-msg-raffle {
  color: #fde68a;
  font-weight: 600;
  background: rgba(234, 179, 8, 0.08);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}
.community-chat-msg-raffle .community-chat-user { color: #fbbf24; }
.community-raffle-bar {
  border-bottom: 1px solid rgba(234, 179, 8, 0.25);
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.12), rgba(0, 0, 0, 0.2));
  padding: 0.45rem 0.75rem;
}
.community-raffle-bar-inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.community-raffle-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.community-raffle-copy strong {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.community-raffle-joined {
  font-size: 0.72rem;
  color: #86efac;
  white-space: nowrap;
}
.community-raffle-winner {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.community-raffle-winner[hidden] {
  display: none !important;
}
.community-raffle-winner-stage {
  text-align: center;
  padding: 1rem;
  width: min(100%, 280px);
}
.community-raffle-winner-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
  margin-bottom: 0.5rem;
}
.community-raffle-winner-reel {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #fef3c7;
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.65);
  min-height: 2rem;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.community-raffle-winner-reel.is-winner {
  color: #fde047;
  transform: scale(1.08);
  text-shadow: 0 0 28px rgba(253, 224, 71, 0.9);
}
.community-raffle-winner-prize { margin-top: 0.65rem; }
.community-chat-panel { position: relative; }
.community-chat-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0 0.75rem 0.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}
.community-chat-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
}
.community-chat-tab.is-active {
  color: #fde68a;
  background: rgba(234, 179, 8, 0.12);
}
.community-chat-panel-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
}
.community-chat-panel-body[hidden] { display: none !important; }
.community-video-panel { padding: 0.75rem; gap: 0.5rem; }
.community-video-stage {
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  min-height: 10rem;
  aspect-ratio: 16 / 9;
}
.community-video-player,
.community-video-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.community-video-offline {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.community-video-note { margin: 0; }
.community-bridge-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem 0.65rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.community-bridge-link {
  color: #93c5fd;
  text-decoration: none;
}
.community-bridge-link:hover { text-decoration: underline; }
.raffle-admin-form {
  display: grid;
  gap: 0.5rem;
  max-width: 28rem;
}
.raffle-admin-form input { width: 100%; }
.raffle-admin-active { margin-top: 0.5rem; padding: 0.75rem; }
.community-chat-msg-past {
  opacity: 0.42;
  filter: saturate(0.65);
}
.community-chat-msg-past .community-chat-user,
.community-chat-msg-past .community-chat-body {
  color: var(--muted);
}
.community-chat-past-note {
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}
.community-chat-user { font-weight: 700; margin-right: 0.35rem; }
.community-chat-form { padding: 0.5rem; border-top: 1px solid rgba(255,255,255,0.08); }
.community-chat-compose { display: flex; flex-direction: column; gap: 0.3rem; }
.community-chat-toolbar { display: flex; gap: 0.25rem; align-items: center; }
.community-chat-tool-btn {
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.2);
  color: inherit;
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  font-size: 0.72rem;
  cursor: pointer;
}
.community-chat-form-row { display: flex; gap: 0.35rem; }
.community-chat-form-row input { flex: 1; min-width: 0; font-size: 1rem; padding: 0.6rem 0.85rem; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: #f8fafc; }
.community-chat-msg-media .community-chat-media-wrap { display: inline-block; margin-top: 0.15rem; }
.community-chat-media {
  display: block;
  max-width: min(220px, 100%);
  max-height: 180px;
  border-radius: 8px;
  object-fit: contain;
}
.community-chat-gif-picker {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 0.5rem 0.75rem 0.75rem;
  background: rgba(0,0,0,0.15);
}
.community-chat-gif-picker-head {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.45rem;
}
.community-chat-gif-search { flex: 1; min-width: 0; }
.community-chat-gif-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.community-chat-gif-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  max-height: 9rem;
  overflow-y: auto;
}
.community-chat-gif-option {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  overflow: hidden;
}
.community-chat-gif-option img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
}
.community-chat-gif-loading,
.community-chat-gif-empty {
  grid-column: 1 / -1;
  padding: 0.35rem 0;
}
.community-chat-form input { flex: 1; min-width: 0; }
.community-chat-form input,
.community-chat-form button,
.community-chat-close,
.community-chat-minimize {
  pointer-events: auto;
}
.community-chat-form button {
  background: var(--accent, #3b82f6);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.2s;
}
.community-chat-form button:hover {
  background: #2563eb;
}
.community-chat-room-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.community-chat-room-picker {
  position: relative;
  margin-top: 0.35rem;
}
.community-chat-room-trigger {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(224, 176, 64, 0.35);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.community-chat-room-trigger:hover {
  border-color: rgba(224, 176, 64, 0.6);
}
.community-chat-room-logo,
.community-chat-room-picker .nav-league-logo {
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: contain;
}
.community-chat-room-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.62rem;
  font-weight: 700;
  flex-shrink: 0;
}
.community-chat-room-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
}
.community-chat-room-chevron {
  flex-shrink: 0;
  opacity: 0.7;
  font-size: 0.75rem;
}
.community-chat-room-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.35rem);
  max-height: min(16rem, 42vh);
  overflow-y: auto;
  padding: 0.35rem;
  border-radius: 10px;
  border: 1px solid rgba(224, 176, 64, 0.35);
  background: rgba(12, 17, 24, 0.98);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  z-index: 5;
}
.community-chat-room-group + .community-chat-room-group {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.community-chat-room-group-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.35rem 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.community-chat-room-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.4rem 0.45rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.community-chat-room-option:hover,
.community-chat-room-option.is-active {
  background: rgba(224, 176, 64, 0.12);
}
.community-chat-room-option-game {
  padding-left: 1.35rem;
}
.community-chat-room-option-label {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.win-prob-inline {
  display: inline-block;
  font-size: 0.8rem;
  white-space: nowrap;
}
.win-prob-inline strong { color: #93c5fd; }
.win-prob-inline.is-live strong { color: #4ade80; }
.schedule-wp-cell { min-width: 4.5rem; }
.game-win-prob-wrap { display: flex; flex-direction: column; gap: 0.5rem; }
.game-intel-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  margin: 0.35rem 0;
}
.game-intel-strip .crowd-pct { margin-top: 0; }
.game-live-wrap { margin: 0.35rem 0; }
.win-prob-compact { margin: 0.35rem 0; padding: 0.35rem 0.6rem; font-size: 0.8rem; }
.live-board-card .win-prob-badge { margin: 0.35rem 0; }

.game-sim-panel {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 0.5rem;
  background: rgba(59, 130, 246, 0.06);
}
.game-sim-disclaimer { margin: 0 0 0.65rem; }
.game-sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.65rem;
}
.game-sim-col { display: flex; flex-direction: column; gap: 0.25rem; }
.game-sim-team {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.game-sim-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.game-sim-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.game-sim-model { color: #93c5fd; font-size: 1rem; }
.game-sim-market { font-size: 0.9rem; }
.game-sim-edge.positive { color: #4ade80; font-weight: 600; }
.game-sim-edge.negative { color: #f87171; font-weight: 600; }
.game-sim-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  margin-bottom: 0.45rem;
}
.game-sim-bar-away { background: var(--away-color, #64748b); }
.game-sim-bar-home { background: var(--home-color, #3b82f6); }
.game-sim-meta { margin: 0; font-size: 0.72rem; }

.graph-neighborhood-panel,
.graph-similar-games-panel {
  margin: 0.5rem 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.45rem;
  background: rgba(15, 23, 42, 0.35);
}
.graph-panel-title { margin: 0 0 0.4rem; font-size: 0.82rem; }
.graph-facts-list { margin: 0 0 0.45rem; padding: 0; list-style: none; }
.graph-facts-list li { margin: 0.2rem 0; font-size: 0.82rem; }
.graph-fact-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-right: 0.35rem;
}
.graph-bets-list { margin: 0.25rem 0 0; padding-left: 1rem; font-size: 0.8rem; }
.graph-disclaimer { margin: 0.35rem 0 0; }
.graph-similar-list { margin: 0.35rem 0 0; padding-left: 1rem; }
.graph-similar-list li { margin: 0.25rem 0; }
.graph-neighborhood-slot { margin: 0.35rem 0; }
.graph-empty-panel {
  margin: 0.35rem 0;
  padding: 0.55rem 0.65rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 0.4rem;
  background: rgba(15, 23, 42, 0.25);
}
.graph-empty-stale { border-color: rgba(251, 191, 36, 0.35); }
.graph-empty-unreachable { border-color: rgba(248, 113, 113, 0.35); }
.graph-empty-detail { margin-top: 0.25rem; font-style: italic; }

/* ── Crowd % badge (Phase G) ── */
.crowd-pct {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.28);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.crowd-pct::before {
  content: '👥';
  font-size: 0.85em;
  line-height: 1;
}
.crowd-pct.is-visible {
  display: inline-flex;
}

.win-prob-chart-card {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
}
.win-prob-chart-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}
.win-prob-chart {
  width: 100%;
  height: 220px;
  min-height: 180px;
  margin-top: 0.5rem;
}
@media (max-width: 520px) {
  .game-win-prob-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .win-prob-chart-card { padding: 0.75rem; }
  .win-prob-chart { height: 180px; min-height: 140px; }
  .game-intel-strip { gap: 0.35rem 0.5rem; }
}
.win-prob-chart-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.35rem;
}
.win-prob-legend-away::before,
.win-prob-legend-home::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.win-prob-legend-away::before { background: #94a3b8; }
.win-prob-legend-home::before { background: #3b82f6; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.admin-stat-card { text-align: center; padding: 0.75rem; border-radius: 8px; background: var(--surface-2, rgba(255,255,255,0.04)); }
.admin-stat-val { display: block; font-size: 1.35rem; font-weight: 700; }
.admin-stat-label { font-size: 0.75rem; color: var(--muted); }
.admin-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.admin-kv-list { list-style: none; padding: 0; margin: 0; }
.admin-kv-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.admin-table-wrap { overflow-x: auto; margin: 0.75rem 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th, .admin-table td { padding: 0.45rem 0.6rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.06); }
.admin-table th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-row-warn { background: rgba(251, 191, 36, 0.08); }
.season-transition-details { margin-top: 0.5rem; font-size: 0.88rem; }
.season-transition-details summary { cursor: pointer; color: var(--muted); }
.season-transition-apply-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.5rem 0 0.75rem;
}
.tracker-month-summary { margin: 1rem 0; }
.compact-table th, .compact-table td { padding: 0.4rem 0.6rem; font-size: 0.85rem; }

@media (max-width: 720px) {
  .tracker-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .tracker-filters .search-input,
  .tracker-filters input[type="month"],
  .tracker-filters input[type="date"],
  .tracker-filters select,
  .tracker-filters button {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .tracker-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tracker-unit-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .tracker-unit-select {
    width: 100%;
  }
}
.kind-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(100, 116, 139, 0.25);
}
.kind-parlay { background: rgba(168, 85, 247, 0.22); color: #d8b4fe; }
.kind-futures { background: rgba(251, 191, 36, 0.2); color: #fcd34d; }
.kind-straight { background: rgba(224, 176, 64, 0.18); color: #f0cc55; }
.kind-legs-pill {
  background: rgba(14, 165, 233, 0.2);
  color: #7dd3fc;
  text-decoration: none;
  border-bottom: none;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.kind-legs-pill:hover {
  background: rgba(14, 165, 233, 0.32);
  color: #bae6fd;
  border-bottom: none;
}
/* —— BGF (BetGenie Futures) —— */
.bgf-betgeniefied-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.bgf-betgeniefied-badge-lg { font-size: 0.72rem; padding: 0.2rem 0.55rem; }
.bgf-leg-trophy { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }
.bgf-leg-logo { border-radius: 4px; object-fit: contain; }
.bgf-pick-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
}
.bgf-pick-betgeniefied { border-color: rgba(251, 191, 36, 0.25); }
.bgf-pick-trophy { font-size: 2rem; text-align: center; }
.bgf-pick-head { display: flex; gap: 0.65rem; align-items: center; }
.bgf-pick-team { margin: 0; font-size: 1.05rem; }
.bgf-pick-metrics { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin-top: 0.35rem; }
.bgf-pick-intel .intel-big-four { margin-top: 0.5rem; }
.bgf-pick-intel .dna-strip,
.bgf-pick-intel .narrative-strip { margin-top: 0.45rem; }
.bgf-ultimate-card { border-color: rgba(251, 191, 36, 0.3); }
.bgf-ultimate-head { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; align-items: center; }
.bgf-ultimate-trophy { font-size: 2.25rem; }
.bgf-ultimate-metrics { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin: 0.75rem 0; }
.bgf-ultimate-legs { list-style: none; padding: 0; margin: 0 0 1rem; }
.bgf-ultimate-leg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.06));
}
.bgf-validity {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
  margin: 0.5rem 0 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: 0.78rem;
}
.bgf-validity-in_progress { background: rgba(234, 179, 8, 0.1); border-color: rgba(234, 179, 8, 0.25); }
.bgf-validity-pending_refresh { background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.25); }
.bgf-validity-ratings_sync { background: rgba(100, 116, 139, 0.12); border-color: rgba(100, 116, 139, 0.25); }
.bgf-leg-validity { margin-left: auto; font-size: 0.72rem; }
.bgf-validity-countdown.submit-countdown-closed .submit-countdown-value { color: var(--accent-warn, #fbbf24); }
.bgf-view-tabs { margin: 0.75rem 0 1rem; }
.bgf-market-hub { display: grid; gap: 1.25rem; }
.bgf-market-league-head { display: flex; gap: 0.65rem; align-items: flex-start; margin-bottom: 0.75rem; }
.bgf-market-grid { display: grid; gap: 0.75rem; margin-top: 0.75rem; }
.bgf-market-row { display: grid; gap: 0.5rem; }
.bgf-market-value { border-color: rgba(34, 197, 94, 0.35); }
.bgf-market-favorite { border-color: rgba(251, 191, 36, 0.25); }
.bgf-market-edge-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  margin-left: 0.25rem;
}
.bgf-market-books { width: 100%; border-collapse: collapse; margin-top: 0.25rem; }
.bgf-market-books th, .bgf-market-books td { text-align: left; padding: 0.2rem 0.45rem 0.2rem 0; }
.bgf-market-best-book { font-weight: 600; }
.bgf-market-value-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.35rem; }
.bgf-market-value-list li { display: flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; align-items: center; }
.bgf-market-spotlight { margin-bottom: 0.75rem; }
.bgf-market-metrics { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.bgf-league-grid { display: grid; gap: 1rem; margin: 1.5rem 0; }
.bgf-section-head { margin-bottom: 0.75rem; }
.bgf-builder-pool .bgf-builder-leg { align-items: center; }
.builder-mode-tabs { margin-bottom: 1rem; }
.tracker-futures-pick { display: inline-flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.public-bgf-layout {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-color: rgba(251, 191, 36, 0.2);
}
.public-bgf-hero { display: grid; gap: 0.5rem; }
.public-bgf-leagues { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.35rem; }
.public-bgf-picks { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.5rem; }
.public-bgf-pick { display: grid; grid-template-columns: auto auto 1fr auto; gap: 0.35rem 0.5rem; align-items: center; }
.public-bgf-pick-team.public-blur-text,
.public-blur-text { filter: blur(4px); user-select: none; }
.public-bgf-pick-edge { color: var(--accent-gold, #d4a853); }
.public-bgf-ultimate-meta { margin: 0.5rem 0 0; }
.public-bgf-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }
@media (min-width: 640px) {
  .bgf-league-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .bgf-league-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .public-bgf-layout { grid-template-columns: 1fr auto; align-items: center; }
}
.tracker-date-cell { white-space: nowrap; min-width: 5.75rem; }
.tracker-league-cell { text-align: center; vertical-align: middle; }
.tracker-league-logo { display: block; margin: 0 auto; border-radius: 4px; }
.tracker-pick-cell { min-width: 18rem; vertical-align: top; padding-top: 0.65rem; padding-bottom: 0.65rem; }
.tracker-parlay-block { display: flex; flex-direction: column; gap: 0.35rem; }
.tracker-parlay-legs-table {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
}
.tracker-parlay-leg-header-row,
.tracker-parlay-leg-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(9rem, 1fr) 3.25rem;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
}
.tracker-parlay-leg-header-row {
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}
.tracker-leg-col-score { text-align: right; }
.tracker-parlay-leg-row:last-child { border-bottom: none; }
.tracker-leg-picked {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}
.tracker-leg-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.tracker-leg-team { font-weight: 700; white-space: nowrap; }
.tracker-leg-matchup {
  white-space: nowrap;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.tracker-game-link { margin-left: 0.15rem; opacity: 0.75; }
.tracker-straight-pick { display: inline-flex; align-items: center; gap: 0.35rem; }
.team-logo-inline,
.tracker-leg-logo {
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}
.team-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-bottom: none !important;
}
.team-abbr-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.team-abbr-text { font-weight: 700; white-space: nowrap; }
.team-matchup-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.matchup-sep { font-size: 0.78rem; padding: 0 0.1rem; }
.tracker-parlay-leg-pick {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.linescore-team-col .team-abbr-inline { justify-content: flex-start; }
.game-pitchers-row {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.game-pitchers-label {
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.game-linescore-score {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.game-linescore-score .score-split {
  font-size: 1.05rem;
  font-weight: 700;
}
.tracker-leg-score {
  text-align: right;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}
.leg-result-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  line-height: 1.2;
}
.leg-result-w { background: rgba(34, 197, 94, 0.22); color: #86efac; }
.leg-result-l { background: rgba(239, 68, 68, 0.22); color: #fca5a5; }
.season-banner {
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.season-banner-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}
.season-banner-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
}
.season-banner-muted {
  background: rgba(148, 163, 184, 0.08);
}
.season-banner-detail {
  font-size: 0.88rem;
  color: var(--muted);
}
.board-notices .season-banner + .season-banner {
  margin-top: 0.35rem;
}
.season-kickoff-countdown {
  margin: 0.35rem 0 0.15rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  font-size: 0.95rem;
}
.season-kickoff-label {
  color: var(--muted);
}
.season-kickoff-value {
  color: var(--accent, #60a5fa);
  font-weight: 600;
}
.season-kickoff-live .season-kickoff-value {
  color: #fbbf24;
}
.league-stats-season-note {
  margin: 0 0 0.25rem;
}
.parlay-dead-banner {
  margin: 0 0 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: baseline;
}
.parlay-dead-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fca5a5;
}
.parlay-dead-detail {
  font-size: 0.82rem;
  color: #fecaca;
}
.parlay-card-dead {
  opacity: 0.72;
}
.result-pill {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.result-win { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.result-loss { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.result-open { background: rgba(250, 204, 21, 0.15); color: #fde047; }
.result-push { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
.tracker-verify-banner {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
}
.tracker-verify-ok { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.25); }
.tracker-verify-warn { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); }
.verify-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.verify-ok { background: rgba(34, 197, 94, 0.22); color: #86efac; }
.verify-pending { background: rgba(250, 204, 21, 0.15); color: #fde047; }
.verify-warn { background: rgba(239, 68, 68, 0.22); color: #fca5a5; }
.tracker-series-section { margin-bottom: 1.25rem; }
.series-panel {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
  background: rgba(15, 23, 42, 0.35);
}
.series-panel-needs { border-color: rgba(250, 204, 21, 0.35); }
.series-panel-header { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; }
.series-math-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--muted, #94a3b8);
}
.series-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.series-option-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: rgba(2, 6, 23, 0.4);
}
.series-option-card.role-recovery_underdog { border-color: rgba(168, 85, 247, 0.35); }
.series-option-card.role-recovery_safe { border-color: rgba(34, 197, 94, 0.25); }
.series-option-card.role-hedge { border-color: rgba(56, 189, 248, 0.4); }
.series-preview {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  background: rgba(8, 47, 73, 0.25);
}
.series-preview-title { margin: 0 0 0.35rem; font-size: 1rem; }
.series-preview-steps { list-style: none; padding: 0; margin: 0.65rem 0 0; }
.series-step { padding: 0.55rem 0; border-top: 1px solid rgba(148, 163, 184, 0.12); }
.series-step:first-child { border-top: none; }
.series-step-head { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.25rem; }
.series-step-pick { margin: 0.2rem 0; }
.series-leg-opposites { list-style: none; padding: 0; margin: 0.25rem 0; }
.series-leg-opposites li { padding: 0.15rem 0; }
.series-intertwine { margin-top: 0.65rem; padding-top: 0.5rem; border-top: 1px dashed rgba(148, 163, 184, 0.2); }
.series-intertwine-list { list-style: none; padding: 0; margin: 0.25rem 0 0; }
.series-step-hedge .kind-pill { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }
.parlay-cover {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  background: rgba(8, 47, 73, 0.22);
}
.parlay-cover-collapsible {
  padding: 0.65rem 0.75rem;
  border: none;
  background: transparent;
}
.parlay-cover-compact { margin-top: 0.5rem; padding: 0.55rem 0.65rem; }
.btn-cover-toggle-compact {
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
}
.parlay-leg-row .leg-result-badge { margin-left: 0.35rem; flex-shrink: 0; }
.parlay-cover-head { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.45rem; }
.parlay-cover-title { margin: 0; font-size: 0.9rem; font-weight: 700; }
.parlay-cover-lead { margin: 0 0 0.65rem; line-height: 1.45; }
.parlay-cover-panel {
  margin-top: 0.65rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(250, 204, 21, 0.28);
  border-radius: 10px;
  background: rgba(8, 47, 73, 0.22);
  min-width: 0;
  max-width: 100%;
}
.parlay-cover-panel[hidden] { display: none !important; }
.parlay-cover-form { margin-top: 0.75rem; }
.btn-cover-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(234, 179, 8, 0.65);
  border-radius: 999px;
  background: linear-gradient(180deg, #fde047 0%, #facc15 48%, #eab308 100%);
  color: #1c1917;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(250, 204, 21, 0.28);
  transition: filter 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn-cover-toggle:hover {
  filter: brightness(1.05);
  box-shadow: 0 3px 14px rgba(250, 204, 21, 0.38);
}
.btn-cover-toggle.is-open {
  background: linear-gradient(180deg, #fef08a 0%, #fde047 50%, #facc15 100%);
}
.btn-cover-toggle-label { flex: 1; text-align: left; }
.btn-cover-toggle-loading {
  opacity: 0.85;
  cursor: wait;
}
.cover-badge-loading {
  font-style: italic;
  opacity: 0.75;
}
.intel-lazy-shell {
  padding: 0.35rem 0 0.5rem;
  opacity: 0.85;
}
.intel-lazy-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: intel-skeleton-shimmer 1.2s ease-in-out infinite;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}
.intel-lazy-skeleton-bar { height: 2.4rem; }
.intel-lazy-skeleton-strip { height: 1.1rem; width: 72%; }
@keyframes intel-skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.btn-cover-toggle-badge {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(28, 25, 23, 0.12);
  color: #422006;
}
.btn-cover-toggle-chevron {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.btn-cover-toggle.is-open .btn-cover-toggle-chevron { transform: rotate(180deg); }
.btn-cover { background: rgba(56, 189, 248, 0.22); border-color: rgba(56, 189, 248, 0.45); color: #bae6fd; font-weight: 600; }
.btn-cover:hover { background: rgba(56, 189, 248, 0.35); }
.cover-badge { margin-left: 0.25rem; font-size: 0.65rem; background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }

/* Cover yourself — step flow */
.cover-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0 0 0.75rem;
}
.cover-guide-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.45);
  font-size: 0.68rem;
  line-height: 1.3;
  text-align: center;
  color: #cbd5e1;
}
.cover-guide-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(56, 189, 248, 0.25);
  color: #bae6fd;
}
.cover-guide-win .cover-guide-num { background: rgba(34, 197, 94, 0.25); color: #86efac; }
.cover-guide-lose .cover-guide-num { background: rgba(239, 68, 68, 0.25); color: #fca5a5; }

.cover-win-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}
.cover-win-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
}
.cover-win-card-best { border-color: rgba(34, 197, 94, 0.4); background: rgba(6, 78, 59, 0.25); }
.cover-win-card-backup { border-color: rgba(56, 189, 248, 0.35); background: rgba(8, 47, 73, 0.3); }
.cover-win-card-risk { border-color: rgba(239, 68, 68, 0.35); background: rgba(69, 10, 10, 0.22); }
.cover-win-card-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.cover-win-card-amount { font-size: 1rem; font-weight: 800; line-height: 1.15; }
.cover-win-card-hint { font-size: 0.65rem; color: #94a3b8; }
.cover-win-summary-compact {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.cover-win-inline-sep { color: #64748b; }

.cover-ticket-stack { display: flex; flex-direction: column; gap: 0; margin: 0.25rem 0 0.5rem; }
.cover-ticket {
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  background: rgba(2, 6, 23, 0.7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.cover-ticket.role-anchor {
  border-color: rgba(56, 189, 248, 0.5);
  border-left-width: 4px;
  border-left-color: #38bdf8;
}
.cover-ticket.role-hedge {
  border-color: rgba(250, 204, 21, 0.45);
  border-left-width: 4px;
  border-left-color: #facc15;
  background: rgba(25, 20, 5, 0.45);
}
.cover-ticket.role-recovery {
  border-color: rgba(148, 163, 184, 0.28);
  border-left-width: 4px;
  border-left-color: #94a3b8;
}
.cover-ticket.is-dimmed { opacity: 0.7; border-style: dashed; }
.cover-ticket-head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}
.cover-ticket-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
  background: rgba(56, 189, 248, 0.35);
  border: 2px solid rgba(56, 189, 248, 0.55);
}
.cover-ticket.role-hedge .cover-ticket-badge {
  background: rgba(250, 204, 21, 0.3);
  border-color: rgba(250, 204, 21, 0.55);
  color: #fef08a;
}
.cover-ticket.role-recovery .cover-ticket-badge {
  background: rgba(100, 116, 139, 0.35);
  border-color: rgba(148, 163, 184, 0.45);
}
.cover-ticket-head-text { flex: 1; min-width: 0; }
.cover-ticket-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.25;
}
.cover-ticket-sub { margin: 0.15rem 0 0; line-height: 1.35; }
.cover-ticket-context {
  margin: 0 0 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-size: 0.76rem;
  background: rgba(69, 10, 10, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.cover-section-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
}
.cover-picks-block { margin-bottom: 0.6rem; }
.cover-picks-list { display: flex; flex-direction: column; gap: 0.35rem; }
.cover-pick-card {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
}
.cover-deadline-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
  font-size: 0.78rem;
  line-height: 1.35;
}
.cover-deadline-icon { font-size: 1rem; flex-shrink: 0; }
.cover-pattern-details { margin: 0 0 0.65rem; max-width: 100%; min-width: 0; }
.cover-pattern-details summary { cursor: pointer; color: var(--muted); }
.cover-pattern-list { margin: 0.35rem 0 0 1.1rem; padding: 0; }
.cover-pattern-list li { margin-bottom: 0.2rem; }
.cover-pattern-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.75rem;
  margin-top: 0.35rem;
}
.cover-pattern-table th,
.cover-pattern-table td {
  padding: 0.3rem 0.35rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cover-pattern-table th:nth-child(1),
.cover-pattern-table td:nth-child(1) { width: 1.75rem; }
.cover-pattern-table th:nth-child(3),
.cover-pattern-table td:nth-child(3) { width: 2.75rem; }
.cover-pattern-table th:nth-child(4),
.cover-pattern-table td:nth-child(4) { width: 3.25rem; }
.cover-pattern-table th:nth-child(5),
.cover-pattern-table td:nth-child(5) {
  width: 6.75rem;
  max-width: 6.75rem;
}
.cover-pattern-table th:nth-child(6),
.cover-pattern-table td:nth-child(6) { width: 4.75rem; }
.cover-pattern-table .cover-guarantee-badge {
  white-space: normal;
  display: inline-block;
  max-width: 100%;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cover-pattern-table th { color: var(--muted); font-weight: 600; }

.cover-pick-card.is-placeholder { border-style: dashed; }
.cover-pick-matchup { display: block; margin-bottom: 0.15rem; }
.cover-pick-line { display: flex; align-items: center; gap: 0.4rem; }
.cover-pick-logo { border-radius: 4px; object-fit: contain; flex-shrink: 0; }
.cover-pick-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.cover-money-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}
.cover-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-height: 3.6rem;
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.55);
}
.cover-chip-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}
.cover-chip-value {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  word-break: break-word;
}
.cover-chip-sub {
  font-size: 0.62rem;
  line-height: 1.2;
  color: #94a3b8;
}
.cover-chip-bet { border-color: rgba(148, 163, 184, 0.35); }

.cover-guarantee-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}

.cover-guarantee-proven {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.45);
}

.cover-guarantee-partial {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.4);
}

.cover-guarantee-missing {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.cover-ticket-infeasible td {
  opacity: 0.75;
}

.cover-savior-notes {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
  list-style: disc;
}

.cover-portfolio-advice {
  margin: 0.35rem 0 0;
}

.cover-plan-link-row {
  margin: 0.5rem 0 0.25rem;
}

.cover-plan-summary {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
}

.cover-plan-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.cover-plan-stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.cover-plan-stat-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
}

.cover-plan-stake-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.cover-plan-anchor {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
}

.cover-plan-anchor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.cover-plan-anchor-head h3 {
  margin: 0;
  font-size: 1rem;
}

.cover-plan-slot {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93c5fd;
}

.cover-plan-pool-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cover-plan-pool-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
}

.cover-plan-pool-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.cover-plan-footnote {
  margin-top: 2rem;
  max-width: 42rem;
}

.cover-plan-recommended {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
}

.cover-plan-preset {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}

.cover-plan-preset-featured {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.06);
}

.cover-plan-preset-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #86efac;
  margin-right: 0.5rem;
}

.cover-plan-presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.cover-plan-rank-table {
  width: 100%;
  margin: 1rem 0;
  font-size: 0.85rem;
}

.cover-plan-rank-table th,
.cover-plan-rank-table td {
  padding: 0.45rem 0.5rem;
  vertical-align: top;
}

.parlay-builder-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) 1fr;
  grid-template-areas:
    "slip preview"
    "pool suggestions";
  gap: 1rem;
  align-items: start;
}

.parlay-builder-slip { grid-area: slip; }
.parlay-builder-preview { grid-area: preview; }
.parlay-builder-pool { grid-area: pool; }
.parlay-builder-suggestions { grid-area: suggestions; }

@media (max-width: 900px) {
  .parlay-builder-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "slip" "preview" "pool" "suggestions";
  }
}

.builder-slip-legs {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0;
}

.builder-slip-leg {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.builder-slip-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.builder-leg-pool {
  max-height: 28rem;
  overflow-y: auto;
  margin-top: 0.75rem;
}

.builder-leg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.builder-suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.builder-suggestion {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.builder-game-stats {
  display: grid;
  gap: 0.25rem;
  margin: 0.5rem 0;
}

.builder-game-stats div {
  display: flex;
  gap: 0.5rem;
}

.builder-game-stats dt {
  font-weight: 600;
  min-width: 4.5rem;
}

.parlay-builder-footnote {
  margin-top: 1.5rem;
  max-width: 42rem;
}

.cover-guarantee-active {
  animation: cover-glow 2s ease-in-out infinite;
}

@keyframes cover-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35); }
  50% { box-shadow: 0 0 8px 2px rgba(34, 197, 94, 0.45); }
}

.cover-deadline-closed {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
}

.cover-deadline-blocked {
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.cover-badge-closed {
  color: #f87171;
}

.cover-tracker-advice {
  margin: 0.35rem 0 0;
  padding: 0.35rem 0.5rem;
  background: rgba(34, 197, 94, 0.08);
  border-radius: 6px;
}
.cover-chip-win {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(6, 78, 59, 0.35);
}
.cover-chip-win .cover-chip-label { color: #86efac; }
.cover-chip-win .cover-chip-value { color: #4ade80; }
.cover-chip-win .cover-chip-sub { color: #86efac; }
.cover-chip-lose {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(69, 10, 10, 0.3);
}
.cover-chip-lose .cover-chip-label { color: #fca5a5; }
.cover-chip-lose .cover-chip-value { color: #f87171; font-size: 0.82rem; }

.cover-flow-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.45rem 0;
  margin: 0.1rem 0;
}
.cover-flow-arrow {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f87171;
  line-height: 1;
}
.cover-flow-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fca5a5;
}

.cover-ticket-stack-compact .cover-ticket { padding: 0.55rem 0.65rem; }
.cover-ticket-stack-compact .cover-ticket-badge { width: 1.6rem; height: 1.6rem; font-size: 0.85rem; }
.cover-ticket-stack-compact .cover-chip-sub { display: none; }
.cover-ticket-stack-compact .cover-chip-value { font-size: 0.8rem; }
.cover-ticket-stack-compact .cover-guide { display: none; }
.cover-ticket-stack-compact .cover-win-summary:not(.cover-win-summary-compact) { display: none; }

@media (max-width: 420px) {
  .cover-guide { grid-template-columns: 1fr; }
  .cover-money-grid { grid-template-columns: 1fr; }
  .cover-chip { min-height: auto; flex-direction: row; justify-content: space-between; text-align: left; }
  .cover-chip-label { min-width: 3.5rem; }
}
.signal-cover-wrap {
  margin-top: 0.65rem; padding-top: 0.55rem;
  border-top: 1px solid rgba(56, 189, 248, 0.2);
}
.signal-cover-label { margin: 0 0 0.4rem; }
.signal-cover-form { margin-top: 0.5rem; }
.error-body { min-height: 100vh; display: flex; flex-direction: column; }
.error-header { border-bottom: 1px solid rgba(148, 163, 184, 0.15); }
.error-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}
.error-page {
  max-width: 32rem;
  width: 100%;
  text-align: center;
  padding: 2rem 1.5rem;
}
.error-code {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.5rem;
  color: rgba(148, 163, 184, 0.35);
}
.error-ref-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.error-ref-code {
  font-size: 1.25rem;
  color: var(--accent-bright, #fbbf24);
}
.error-ref-hint { margin: 0 0 1rem; }
.error-title { margin: 0 0 0.75rem; font-size: 1.5rem; }
.error-message { margin: 0 0 0.5rem; font-size: 1rem; line-height: 1.5; }
.error-hint { margin: 0 0 1rem; }
.error-detail {
  text-align: left;
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  overflow-x: auto;
  max-height: 14rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.error-context {
  margin: 0.75rem 0 1rem;
  text-align: left;
}
.error-context-list {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.error-copy-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0.25rem;
}
.error-copy-btn {
  font-size: 0.82rem;
}
.error-copy-status {
  color: var(--safe);
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.visually-hidden,
.error-copy-source {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: pre-wrap;
  border: 0;
}
.error-footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
}
.series-option-head { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 0.35rem; }
.series-option-pick { margin: 0.25rem 0 0.5rem; font-weight: 600; }
.series-option-stats { list-style: none; padding: 0; margin: 0 0 0.65rem; }
.series-loss-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.series-loss-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}
.badge-warn { background: rgba(250, 204, 21, 0.18); color: #fde047; }
.tracker-verify-cell { text-align: center; width: 2.5rem; }
.row-win { background: rgba(34, 197, 94, 0.04); }
.row-loss { background: rgba(239, 68, 68, 0.04); }
.tracker-actions { white-space: nowrap; }
.leg-icon {
  display: inline-flex;
  width: 1.1rem;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}
.leg-icon-win { color: #22c55e; }
.leg-icon-loss { color: #ef4444; }
.leg-icon-push { color: #94a3b8; }
.leg-icon-open { color: #64748b; }
.tracker-bet-summary { margin-bottom: 1.25rem; }
.tracker-bet-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}
.tracker-bet-summary-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.tracker-parlay-games {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.tracker-parlay-games > h2 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.tracker-parlay-leg-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.tracker-parlay-leg-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.game-linescore {
  padding: 1rem 1.1rem;
}
.game-linescore-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}
.game-linescore-matchup {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.game-linescore-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.game-linescore-link { margin-left: 0.35rem; }
.linescore-scroll { overflow-x: auto; }
.linescore-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.linescore-table th,
.linescore-table td {
  padding: 0.35rem 0.45rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.linescore-table .linescore-team-col {
  text-align: left;
  font-weight: 700;
  min-width: 3rem;
}
.linescore-table .linescore-total-col {
  font-weight: 600;
  background: rgba(224, 176, 64, 0.06);
}
.game-linescore-score {
  font-size: 1.1rem;
  margin: 0.25rem 0;
}
.game-pitchers {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.game-pitchers-row {
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0.25rem 0;
}
.parlay-paper-bet { margin-top: 0.75rem; }

.player-stats-table .player-row-link { cursor: pointer; }
.player-stats-table .player-row-link:hover { background: rgba(224, 176, 64, 0.08); }

/* Unified team + player text links */
.entity-link {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 176, 64, 0.28);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.entity-link:hover {
  color: var(--link-hover);
  border-bottom-color: rgba(224, 176, 64, 0.55);
}
.entity-link strong { font-weight: inherit; }
a.team-chip.entity-link:hover { border-bottom-color: transparent; }
.player-link { color: var(--text); text-decoration: none; }
.player-link:hover { color: var(--accent); }

.player-availability-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin-top: 0.65rem;
}
.game-day-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.game-day-starting { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.game-day-benched { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.game-day-starting_pitcher { background: rgba(224, 176, 64, 0.15); color: #f0cc55; }
.game-day-not_posted { background: rgba(148, 163, 184, 0.12); color: var(--muted); }
.game-day-injury { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.starter-status-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: default;
  letter-spacing: 0.02em;
}
.starter-status-btn-sm { padding: 0.15rem 0.45rem; font-size: 0.72rem; }
.starter-status-starting {
  background: rgba(34, 197, 94, 0.18);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.35);
}
.starter-status-benched {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}
.starter-status-starting_pitcher {
  background: rgba(224, 176, 64, 0.15);
  color: #f0cc55;
  border-color: rgba(224, 176, 64, 0.35);
}
.starter-status-not_posted {
  background: rgba(148, 163, 184, 0.12);
  color: var(--muted);
}
.lineup-position-label {
  font-size: 0.88rem;
  color: var(--muted);
}
.lineup-position-label strong { color: var(--text); }

.team-lineup-today { margin-bottom: 1.25rem; }
.team-lineup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.team-lineup-header h2 { margin: 0; }
.team-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.team-section-header h2 { margin: 0; }
.team-roster-scroll { overflow-x: auto; }
.team-roster-table { min-width: 100%; white-space: nowrap; }
.team-roster-table .team-roster-group-label {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.team-roster-table .team-roster-player { white-space: normal; min-width: 9rem; }
.team-roster-table th.team-roster-player,
.team-roster-table td.team-roster-player {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface, #121212);
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.15);
}

.sync-summary-strip .flash { margin: 0; }
.admin-tech-details summary { cursor: pointer; }
.admin-tech-details summary h2 { display: inline; font-size: 1rem; }
.admin-checkbox-list { list-style: none; padding: 0; margin: 0.75rem 0; }
.admin-checkbox-list li { margin: 0.35rem 0; }
.tester-flags-form { margin-top: 1rem; }
.team-roster-card h2 { margin-bottom: 0.35rem; }
.roster-scroll-hint { display: none; margin: 0.25rem 0 0.35rem; text-align: center; }
.bgv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.35rem;
  padding: 0 0.25rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  vertical-align: middle;
}
.bgv-verified { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.bgv-stale-valid { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(251, 191, 36, 0.45); }
.bgv-stale-valid .bgv-clock { margin-left: 0.1rem; font-size: 0.62rem; color: #fbbf24; }
.bgv-failed { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.bgv-unknown { background: rgba(148, 163, 184, 0.15); color: var(--muted); }
@media (max-width: 768px) {
  .team-roster-scroll-wrap .table-scroll { min-width: 36rem; }
  .roster-scroll-hint { display: block; }
}
.team-lineup-order,
.team-lineup-bench {
  list-style: none;
  padding: 0;
  margin: 0;
}
.team-lineup-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.lineup-order-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(224, 176, 64, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
}
.team-lineup-bench-title {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.submit-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(224, 176, 64, 0.1);
  border: 1px solid rgba(224, 176, 64, 0.2);
  font-size: 0.78rem;
  white-space: nowrap;
}
.submit-countdown-compact {
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
}
.submit-countdown-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.submit-countdown-closed {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.25);
}
.submit-countdown-closed .submit-countdown-value {
  color: var(--muted);
}
.parlay-title-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 0;
}
.parlay-title-block .submit-countdown {
  margin-top: 0.1rem;
}
.signal-pick-row .submit-countdown {
  margin-top: 0.2rem;
}
.tracker-submit-cell { min-width: 6.5rem; }

.grade-pill {
  display: inline-block;
  background: rgba(224, 176, 64, 0.18);
  color: var(--accent);
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.9rem;
}
.grade-pill.sm { font-size: 0.78rem; padding: 0.1rem 0.4rem; }

.rating-tier-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
.rating-tier-badge.sm {
  font-size: 0.62rem;
  padding: 0.08rem 0.35rem;
  margin-left: 0.25rem;
}
.rating-tier-elite {
  background: rgba(212, 175, 55, 0.22);
  color: #e8c547;
  border: 1px solid rgba(212, 175, 55, 0.45);
}
.rating-tier-great {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.rating-tier-above_average {
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.32);
}
.rating-tier-average {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.28);
}
.rating-tier-below_average {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.rank-block-primary .rating-tier-badge {
  display: block;
  margin: 0.35rem auto 0;
  width: fit-content;
}

.player-profile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.player-profile-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.player-photo-wrap {
  flex-shrink: 0;
}

.player-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--border);
}

.player-photo.player-photo--placeholder,
.player-photo[src$="player-no-photo.svg"] {
  object-fit: contain;
  padding: 0.35rem;
  background: var(--card);
}

.player-season-label,
.player-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
}

.player-page-title {
  line-height: 1.15;
}

.player-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.player-nickname-popout {
  flex: 0 1 auto;
  max-width: min(16rem, 42vw);
  margin-left: auto;
  padding: 0.55rem 0.85rem 0.5rem;
  text-align: right;
  background: linear-gradient(145deg, rgba(224, 176, 64, 0.22), rgba(224, 176, 64, 0.06));
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 0.75rem;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 2px 0 color-mix(in srgb, var(--accent) 35%, transparent);
  transform: rotate(-2deg) translateY(-2px);
}

.player-nickname-primary {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--accent);
  letter-spacing: 0.01em;
}

.player-nickname-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.12rem;
  margin-top: 0.35rem;
}

.player-nickname-alt {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

.player-accolades-card {
  margin-bottom: 1rem;
}

.player-accolades-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.player-accolade-chip {
  display: inline-block;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.25;
}

.player-full-name {
  margin: -0.25rem 0 0.65rem;
}

.player-rank-hero {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.rank-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.rank-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
}

.rank-betgenie {
  color: var(--accent);
  font-size: 2.25rem;
}

.rank-label {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
  text-transform: uppercase;
}

.rank-label-sub {
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.85;
}

.rank-block-primary {
  padding: 0.35rem 0.75rem;
  background: rgba(224, 176, 64, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(224, 176, 64, 0.25);
}

.season-select {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
}

.team-season-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.season-toolbar-form {
  margin: 0;
}

.archive-season-note {
  margin: 0 0 0.5rem;
}

.badge-muted {
  opacity: 0.85;
  border-color: var(--border);
}

.player-meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.player-team-name { color: var(--accent); }

.player-rating-breakdown h2 {
  margin-bottom: 0.35rem;
}

.player-rating-components {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.player-rating-component {
  background: rgba(224, 176, 64, 0.08);
  border: 1px solid rgba(224, 176, 64, 0.2);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rating-component-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.rating-component-score {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.rating-component-detail {
  line-height: 1.3;
}

.rating-notes {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.player-stat-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.player-stat-cell .stat-label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
}

.player-stat-cell .stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0.2rem 0;
}

.player-stat-cell .stat-rank {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

.player-roster-nav { margin-top: 1rem; }

.roster-jump-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 320px;
  overflow-y: auto;
}

.roster-jump-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
}

.roster-jump-item:hover,
.roster-jump-item.active {
  background: rgba(224, 176, 64, 0.1);
  border-color: rgba(224, 176, 64, 0.2);
}

.roster-jump-name { flex: 1; font-weight: 600; }

.section-link-row { margin-top: 1rem; }
.section-link-row a { color: var(--link); border-bottom: 1px solid rgba(224, 176, 64, 0.28); }
.section-link-row a:hover { color: var(--link-hover); }

.tracker-unit-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.team-ats-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
}

.team-ats-splits {
  margin-bottom: 0.75rem;
}

.team-ats-table .ats-row-cover {
  background: rgba(34, 197, 94, 0.04);
}

.team-ats-table .ats-row-no_cover {
  background: rgba(239, 68, 68, 0.04);
}

.sync-priority-badge.ats-strong {
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.sync-priority-badge.ats-weak {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
}

.tracker-unit-select {
  min-width: 7rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 11, 16, 0.55);
  color: var(--text);
}

.tracker-unit-bar.tracker-unit-active {
  border-color: rgba(224, 176, 64, 0.35);
  background: rgba(224, 176, 64, 0.06);
}

.nav-auth-desktop {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.nav-mobile-admin,
.nav-mobile-login {
  display: none;
}

.nav-mobile-only {
  display: none;
}

.nav-desktop-only {
  display: contents;
}

.nav-site-links {
  display: contents;
}

.nav-site-links .nav-main-link,
.navbar .nav-main-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.42rem 0.7rem;
  border-radius: var(--radius-sm);
}

.nav-desktop-bet-links {
  display: contents;
}

.nav-user { color: var(--muted); }

.flash { padding: 0.6rem 0.9rem; border-radius: 6px; margin-bottom: 1rem; }
.flash-ok { background: rgba(34, 197, 94, 0.15); color: #86efac; }
.flash-error { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

.login-form label { display: block; margin-bottom: 0.75rem; }
.login-form input { width: 100%; max-width: 280px; }

.parlay-title a { color: inherit; text-decoration: none; }
.parlay-title a:hover { color: var(--accent); }

.parlay-paper-bet-compact { margin-top: 0.5rem; }

.result-pill.result-void { background: rgba(148, 163, 184, 0.25); color: #cbd5e1; }

.void-queue { margin-bottom: 1.5rem; }
.void-row-system { background: rgba(251, 191, 36, 0.08); }
.kind-system { background: rgba(251, 191, 36, 0.25); color: #fcd34d; }
.void-form { display: inline-flex; gap: 0.35rem; align-items: center; margin-top: 0.35rem; }
.void-form input { max-width: 140px; }

.ai-insight-panel { margin-top: 1.5rem; }
.ai-insight-body { line-height: 1.55; }
.assist-box textarea { width: 100%; margin-bottom: 0.5rem; }

.admin-user-form fieldset { border: 1px solid var(--border); padding: 0.75rem; margin: 0.75rem 0; }
.admin-user-form label { display: inline-block; margin-right: 1rem; }
.inline-form { display: inline; }

/* Live game strips */
.live-game-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0.65rem;
  margin: 0.5rem 0;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.15);
}
.live-game-strip-active {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(224, 176, 64, 0.08));
  border-color: rgba(34, 197, 94, 0.35);
}
.live-game-strip-compact { padding: 0.35rem 0.5rem; margin: 0.25rem 0; font-size: 0.85rem; }
.home-live-board { margin-bottom: 1.25rem; }
.game-lazy-slot {
  margin-top: 0.75rem;
}
.game-lazy-slot + .game-lazy-slot {
  margin-top: 0.5rem;
}
.home-live-board .section-header {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.2rem 0.75rem;
}
.home-live-board .section-header h2 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}
.home-live-board .section-link {
  grid-column: 2;
  grid-row: 1;
}
.home-live-board .section-subtitle {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
}
.live-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.home-games-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.home-games-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}
.home-games-slide {
  min-width: 0;
}
.home-games-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
  position: relative;
  z-index: 3;
}
.home-games-arrow {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-bright);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.home-games-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.home-games-counter {
  min-width: 3.5rem;
  text-align: center;
}
@media (max-width: 768px) {
  .home-games-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    overscroll-behavior-x: contain;
    gap: 0;
    scrollbar-width: none;
    width: 100%;
    cursor: grab;
  }
  .home-games-track.is-swiping {
    cursor: grabbing;
    scroll-snap-type: none;
  }
  .home-games-track::-webkit-scrollbar {
    display: none;
  }
  .home-games-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    padding: 0;
    touch-action: pan-x;
  }
  .home-games-nav {
    display: flex;
  }
}

/* Prop cards: team line sits above the market line */
.prop-card-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  line-height: 1.3;
  color: var(--muted);
}
.prop-team-tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text, inherit);
  opacity: 0.85;
}

/* Homepage ticket carousels — ONE full-width card per type (desktop + mobile) */
.home-ticket-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.home-ticket-track {
  width: 100%;
}
/* Jump-to-type nav (page-level) stays visible; carousel chrome is scoped below */
.home-ticket-carousel > .home-ticket-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
  position: relative;
  z-index: 3;
}
.home-ticket-arrow {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--accent-bright);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.home-ticket-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.home-ticket-counter {
  min-width: 3.5rem;
  text-align: center;
}
/* Force one slide visible at every breakpoint (was mobile-only → 2 cards stacked/side-by-side) */
.home-ticket-carousel .home-ticket-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  gap: 0 !important;
  scrollbar-width: none;
  width: 100%;
  grid-template-columns: none !important;
}
.home-ticket-carousel .home-ticket-track.is-swiping {
  cursor: grabbing;
  scroll-snap-type: none;
}
.home-ticket-carousel .home-ticket-track::-webkit-scrollbar {
  display: none;
}
.home-ticket-carousel .home-ticket-track > .parlay-card,
.home-ticket-carousel .home-ticket-track > .safe-bet-card,
.home-ticket-carousel .home-ticket-track > .signal-card,
.home-ticket-carousel .home-ticket-track > * {
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  box-sizing: border-box;
}
.live-board-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  margin: 0;
}
.live-board-matchup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
.schedule-live-cell .live-game-strip { margin: 0; }
.schedule-row-live { background: rgba(34, 197, 94, 0.04); }

/* Phase 6 intelligence products */
.intel-product-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.35rem 0;
}
.market-stress-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(30, 41, 59, 0.5);
}
.market-stress-badge.stress-tier-calm { border-color: rgba(34, 197, 94, 0.35); }
.market-stress-badge.stress-tier-steady { border-color: rgba(56, 189, 248, 0.35); }
.market-stress-badge.stress-tier-watch { border-color: rgba(245, 158, 11, 0.45); }
.market-stress-badge.stress-tier-hot { border-color: rgba(248, 113, 113, 0.5); background: rgba(127, 29, 29, 0.15); }
.market-stress-score { font-weight: 700; }
.narrative-strip { margin: 0.25rem 0; font-size: 0.88rem; }
.narrative-strip summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: baseline; }
.narrative-score-pill {
  display: inline-block;
  min-width: 2rem;
  text-align: center;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  background: rgba(167, 139, 250, 0.2);
}
.narrative-score-pill.tier-high { background: rgba(248, 113, 113, 0.2); }
.narrative-story-list { margin: 0.35rem 0 0 1rem; padding: 0; }
.similar-parlays-block { margin-top: 0.75rem; padding: 0.75rem; }
.similar-parlays-summary { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.5rem; }
.bet-replay-phase-game_event { border-left-color: #4a9eff; }
.bet-replay-timeline { list-style: none; padding: 0; margin: 1rem 0; }
.terminal-last-plays {
  list-style: none;
  margin: 0.35rem 0 0.5rem;
  padding: 0;
  max-height: 4.5rem;
  overflow: hidden;
}
.terminal-last-plays li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bet-replay-step {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-left: 2px solid rgba(148, 163, 184, 0.2);
  margin-left: 0.65rem;
  padding-left: 1rem;
}
.bet-replay-step-marker { font-size: 1.1rem; line-height: 1.2; min-width: 1.25rem; }
.bet-replay-step-header { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.bet-replay-timeline-compact .bet-replay-step { border-left: none; margin-left: 0; padding-left: 0; }
.bet-replay-llm { margin: 0.75rem 0 0; padding: 0.75rem 1rem; border-left: 3px solid var(--gold, #e0b040); font-style: italic; }

.what-to-bet-next { margin-bottom: 1.25rem; }
.what-to-bet-next-subline { margin-bottom: 0.65rem; }
.what-to-bet-next-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.65rem; }
.what-to-bet-next-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.what-to-bet-next-rank {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold, #e0b040);
  min-width: 1.25rem;
}
.what-to-bet-next-top { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; align-items: center; margin-bottom: 0.25rem; }
.what-to-bet-next-pick { display: block; margin: 0.15rem 0; }
.what-to-bet-next-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin-top: 0.25rem; }
.what-to-bet-next-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.5rem; }

.daily-brief-widget { margin-bottom: 1.25rem; }
.daily-brief-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.65rem; }
.daily-brief-list-compact { gap: 0.5rem; }
.daily-brief-row { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.5rem 0; border-bottom: 1px solid var(--border-subtle, #2a2a2a); }
.daily-brief-row:last-child { border-bottom: none; }
.daily-brief-rank { flex: 0 0 1.5rem; font-weight: 600; color: var(--gold, #c9a227); }
.daily-brief-top { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; align-items: center; margin-bottom: 0.25rem; }
.daily-brief-pick { display: block; margin: 0.15rem 0; }
.daily-brief-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; margin-top: 0.25rem; }
.daily-brief-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin: 1rem 0; }
.daily-brief-section h2 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.daily-brief-delta { color: var(--gold, #c9a227); }
.daily-brief-footer { margin-top: 1.5rem; }
.daily-brief-upgrade { margin-top: 0.65rem; }

.dna-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; margin: 1rem 0; }
.dna-dashboard-section h2 { font-size: 1.05rem; }
.dna-summary-lead { font-size: 1rem; margin-bottom: 0.35rem; }
.dna-roi-positive { color: #4ade80; }
.dna-roi-negative { color: #f87171; }
.dna-focus-list, .dna-avoid-list { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.dna-focus-list li, .dna-avoid-list li { padding: 0.45rem 0; border-bottom: 1px solid var(--border-subtle, #2a2a2a); }
.dna-focus-list li:last-child, .dna-avoid-list li:last-child { border-bottom: none; }
.live-phase-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.phase-in_progress { color: #4ade80; }
.phase-final { color: #94a3b8; }
.phase-scheduled { color: #f0cc55; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  animation: live-pulse 1.2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.live-win-pct { font-weight: 700; color: var(--accent); font-size: 0.9rem; }
.live-ahead { color: #4ade80; }
.live-behind { color: #f87171; }
.live-score-line { color: #e2e8f0; font-size: 0.9rem; }
.signal-action-row, .parlay-action-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.parlay-live-bar { margin-top: 0.35rem; }
.parlay-leg-live {
  width: 100%;
  padding-left: 2.5rem;
}
.parlay-leg-live .live-game-strip {
  width: 100%;
  flex-wrap: wrap;
}
.parlay-action-row { margin-top: 0.5rem; justify-content: space-between; }

/* Team profile */
.team-profile-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.team-hero-logo { border-radius: 12px; background: rgba(255,255,255,0.05); padding: 0.5rem; }
.team-next-game-hero {
  margin-bottom: 1.5rem;
  background: linear-gradient(160deg, rgba(59,130,246,0.12), rgba(15,23,42,0.6));
}
.next-game-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--muted); margin: 0 0 0.5rem; }
.next-game-matchup { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 1.15rem; margin-bottom: 0.75rem; }
.next-game-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.75rem; }
.team-next-game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.pitcher-card { margin-bottom: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }

/* ── Weather display ── */
.weather-detail-box { min-height: 160px; }
.weather-display {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 120px;
}
.weather-visual {
  font-size: clamp(3.5rem, 10vw, 5rem);
  line-height: 1;
  flex-shrink: 0;
  width: 5.5rem;
  text-align: center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}
.weather-details { flex: 1; min-width: 0; }
.weather-label {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.weather-summary {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.weather-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.weather-tone-storm .weather-visual { animation: weather-pulse 2.5s ease infinite; }
@keyframes weather-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* ── Game matchup H1 ── */
.game-matchup-h1 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0.5rem 0 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.game-matchup-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 3px solid var(--team-color, var(--accent));
  padding-bottom: 0.35rem;
}
.game-matchup-side.away-side { justify-content: flex-start; text-align: left; }
.game-matchup-side.home-side { justify-content: flex-end; text-align: right; }
.game-matchup-side:hover { color: var(--team-color, var(--accent)); }
.game-matchup-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.game-matchup-abbrev {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--team-color, var(--text));
}
.game-matchup-name { font-size: 0.95rem; }
.game-matchup-record { font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.game-matchup-at {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 300;
  color: var(--muted);
  text-align: center;
  line-height: 1;
}

/* ── Game lineups (2 columns) ── */
.game-lineups-hero {
  margin: 1rem 0 1.25rem;
  background: linear-gradient(180deg, rgba(26, 35, 50, 0.95), rgba(15, 20, 25, 0.85));
}
.game-lineups-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.game-lineups-head h2 { margin: 0; font-size: 1.1rem; }
.game-lineups-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.game-lineup-col {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.game-lineup-col-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--team-color, var(--accent)) 22%, transparent);
  border-bottom: 3px solid var(--team-color, var(--accent));
}
.game-lineup-col-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--team-color, var(--text));
}
.game-lineup-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.game-lineup-list {
  margin: 0;
  padding: 0.75rem 1rem 1rem 2rem;
}
.game-lineups-empty,
.game-lineups-verified {
  margin-top: 0.75rem;
}
.team-top-avg {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
}

/* ── Standings ── */
.standings-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(224, 176, 64, 0.18);
  color: #f0cc55;
  margin-left: 0.25rem;
  white-space: nowrap;
}
.standings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .standings-grid {
    grid-template-columns: 1fr;
  }
}
.standings-division-title {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--border);
}
.standings-team-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.standings-team-logo {
  width: 24px;
  height: 24px;
}
.standings-table .standings-col-short {
  font-size: 0.82rem;
  text-align: center;
  white-space: nowrap;
}
.standings-table th.standings-col-short {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}
.standings-division-card .table-scroll {
  overflow-x: auto;
}
.text-safe { color: var(--safe); }
.text-danger { color: var(--danger); }

@media (max-width: 768px) {
  .game-matchup-h1 {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .game-matchup-side.away-side,
  .game-matchup-side.home-side {
    justify-content: center;
    text-align: center;
  }
  .game-matchup-at { order: -1; margin-bottom: 0.25rem; }
  .game-lineups-columns { grid-template-columns: 1fr; }
  .weather-display { flex-direction: column; text-align: center; }
}

/* ── About page ── */
.about-hero h1 { margin-bottom: 0.35rem; }

.cms-legal-page {
  text-align: left;
}
.cms-legal-page h1 { margin-bottom: 0.5rem; }
.cms-legal-page h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}
.cms-legal-page .cms-lead {
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 0.75rem;
}
.cms-legal-page ul,
.cms-legal-page ol {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}
.cms-legal-page li { margin-bottom: 0.35rem; }
.cms-legal-page p { margin: 0.5rem 0; line-height: 1.55; }

.legal-consent-page {
  max-width: 36rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.legal-consent-card h1 { margin-bottom: 0.5rem; }
.legal-consent-docs,
.legal-consent-contact {
  border: none;
  margin: 1.25rem 0;
  padding: 0;
  text-align: left;
}
.legal-consent-docs legend,
.legal-consent-contact legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.legal-consent-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.legal-consent-doc-list li { margin-bottom: 0.65rem; }
.legal-consent-doc-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;
}
.legal-consent-doc-check input { margin-top: 0.2rem; flex-shrink: 0; }
.legal-consent-form .field-label { display: block; margin-bottom: 0.75rem; }

.account-contact-form { text-align: left; }
.account-resend-verify-form { margin-top: 0.5rem; }
.account-password-note {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.account-legal-table { width: 100%; text-align: left; }
.account-legal-table th[scope="row"] { font-weight: 500; }
.about-tagline {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text, inherit);
  max-width: 42rem;
  margin: 0.35rem 0 0.5rem;
  line-height: 1.35;
}
.about-eyebrow { text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.25rem; }
.about-hero-summary { margin: 0 0 0.85rem; max-width: 42rem; line-height: 1.5; }
.about-hero-cta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.about-jump-nav { margin: 0 0 0.75rem; text-align: center; }
.about-section-lead { margin: -0.25rem 0 0.75rem; }
.about-subhead { font-size: 0.95rem; margin: 1.25rem 0 0.5rem; }
.about-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem;
}
.about-source-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}
.about-source-card h3 { margin: 0.15rem 0 0.35rem; font-size: 0.95rem; }
.about-source-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.65rem;
}
.about-cadence-table th,
.about-cadence-table td { font-size: 0.88rem; }
.about-stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.about-chip strong { margin-right: 0.25rem; }
.about-status-banner {
  margin: 0.75rem 0 0;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  background: rgba(46, 160, 67, 0.12);
  border: 1px solid var(--safe);
  font-size: 0.9rem;
}
.about-last-update { margin: 0.5rem 0 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
}
.about-flow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about-flow-step {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.about-flow-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent, #3b82f6);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-flow-step p { margin: 0.2rem 0 0; }
.about-pick-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.about-pick-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: var(--bg, rgba(0, 0, 0, 0.15));
}
.about-pick-card.tier-safe { border-left: 3px solid var(--safe); }
.about-pick-card.tier-dagger { border-left: 3px solid var(--dagger); }
.about-pick-card.tier-parlay { border-left: 3px solid var(--accent, #3b82f6); }
.about-pick-card h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.about-pick-card p { margin: 0 0 0.35rem; font-size: 0.92rem; }
.about-analyze-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 0.25rem 0.5rem 0;
}
@media (max-width: 768px) {
  .about-analyze-grid { grid-template-columns: 1fr; }
}
.about-analyze-group {
  padding: 0 0.35rem;
}
.about-analyze-group h3 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem 0.15rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.about-analyze-group ul {
  margin: 0 0 0 0.15rem;
  padding-left: 1.35rem;
  font-size: 0.92rem;
}
.about-analyze-group li {
  margin-bottom: 0.35rem;
  padding-left: 0.15rem;
}
.about-sources {
  margin: 0;
  padding: 0.25rem 0.5rem 0 1.25rem;
  list-style: disc;
}
.about-sources li {
  padding: 0.55rem 0.5rem 0.55rem 0.15rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.about-sources li:last-child { border-bottom: none; }
.about-freshness-table th,
.about-freshness-table td { font-size: 0.88rem; }
.about-disclaimer .warn { margin: 0; }

/* ── RBAC / admin users ── */
.admin-rbac-form .admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}
.admin-rbac-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.88rem;
}
.admin-rbac-form input,
.admin-rbac-form select {
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: inherit;
}
.admin-user-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
}
.admin-user-panel summary {
  cursor: pointer;
  padding: 0.35rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.admin-extra-perms {
  border: none;
  margin: 0.5rem 0;
  padding: 0;
}
.admin-extra-perms legend {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.admin-perm-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0.15rem 0.75rem 0.15rem 0;
  font-size: 0.82rem;
}
.admin-user-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.perf-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}
.perf-badge-ok { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.perf-badge-warn { background: rgba(234, 179, 8, 0.2); color: #fde047; }
.perf-badge-slow { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.perf-row-slow td { background: rgba(239, 68, 68, 0.06); }
.perf-row-warn td { background: rgba(234, 179, 8, 0.05); }
.perf-alert-list { margin: 0; padding-left: 1.2rem; }
.perf-status-slow { color: #fca5a5; }
.perf-status-warn { color: #fde047; }
.perf-status-error { color: #fca5a5; }

/* ══════════════════════════════════════════════════════════════
   2026 site-wide design system — shared across all pages
   ══════════════════════════════════════════════════════════════ */

/* Buttons & form controls */
button,
[type="submit"],
[type="button"],
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.62rem 1.15rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: #0c1118;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(232, 184, 74, 0.22);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

button:hover,
[type="submit"]:hover,
.btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 16px rgba(232, 184, 74, 0.32);
}

button:active,
[type="submit"]:active,
.btn:active {
  transform: translateY(1px);
}

button.home-ticket-nav-btn,
a.home-ticket-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.35rem;
  width: 100%;
  min-height: 100%;
  padding: 0.85rem 0.9rem;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #0c1118;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 8px rgba(232, 184, 74, 0.22);
}

button.home-ticket-nav-btn:hover,
a.home-ticket-nav-btn:hover,
button.home-ticket-nav-btn.is-active,
a.home-ticket-nav-btn.is-active {
  color: #0c1118;
  filter: brightness(1.06);
  box-shadow: 0 4px 16px rgba(232, 184, 74, 0.32);
}

button.home-ticket-nav-btn:active,
a.home-ticket-nav-btn:active {
  transform: translateY(1px);
}

button.home-ticket-nav-btn .home-ticket-nav-desc,
a.home-ticket-nav-btn .home-ticket-nav-desc {
  color: rgba(12, 17, 24, 0.72);
}

/* Default: auto-width CTAs (was width:100% — stretched landing "Request access" etc.) */
.btn-primary {
  width: auto;
  max-width: 100%;
  padding: 0.72rem 1.25rem;
  font-size: 0.92rem;
  box-sizing: border-box;
}

/* Secondary / muted outline button (Sign in, cancel, etc.) */
.btn-muted,
a.btn-muted,
button.btn-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  max-width: 100%;
  min-height: 2.5rem;
  padding: 0.62rem 1.15rem;
  font-family: var(--font, inherit);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent-bright, #f5d078);
  background: transparent;
  border: 1.5px solid rgba(232, 184, 74, 0.5);
  border-radius: var(--radius-sm, 8px);
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-muted:hover,
a.btn-muted:hover,
.btn-muted:focus-visible {
  color: #0c1118;
  background: linear-gradient(135deg, var(--accent-bright, #f5d078), var(--accent, #e8b84a));
  border-color: rgba(232, 184, 74, 0.85);
  box-shadow: 0 4px 14px rgba(232, 184, 74, 0.3);
  filter: none;
}

/* Forms / rails that need full-width primary actions */
form .btn-primary[type="submit"],
form button.btn-primary[type="submit"],
.login-form .btn-primary,
.join-access-form .btn-primary,
.field-stack .btn-primary,
.filters-v2 .btn-primary,
.list-filters-rail .btn-primary,
.list-filters-rail .filters-quick-apply,
.auth-form .btn-primary,
.contact-form .btn-primary {
  width: 100%;
}

.btn-inline {
  width: auto;
  min-width: 10rem;
  margin-top: 0.35rem;
}

.btn-sm {
  padding: 0.38rem 0.8rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  color: #0c1118;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  border: none;
  box-shadow: 0 1px 6px rgba(232, 184, 74, 0.2);
}

.btn-dagger {
  background: linear-gradient(135deg, #fcd34d, var(--dagger));
  color: #1a1200;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.25);
}

.tab-inactive {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border) !important;
  box-shadow: none !important;
}

.tab-inactive:hover {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.09) !important;
}

.toast-close {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 0.25rem;
  color: var(--muted);
  font-size: 1.25rem;
}

.starter-status-btn,
.starter-status-btn-sm {
  box-shadow: none;
  cursor: default;
}

.toast-close:hover {
  color: var(--text);
  filter: none;
  transform: none;
}

.filters button,
.filters select + button {
  background: rgba(7, 11, 16, 0.55);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.filters button:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  filter: none;
}

input,
select,
textarea {
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(7, 11, 16, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(232, 184, 74, 0.45);
  box-shadow: 0 0 0 3px rgba(232, 184, 74, 0.12);
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.field-label input {
  width: 100%;
}

/* Tables */
table {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

thead th {
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
}

tbody tr {
  transition: background var(--transition-fast);
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

/* Chips, badges, pills */
.meta-chip {
  font-size: 0.76rem;
  padding: 0.28rem 0.62rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
}

.badge {
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.sync-priority-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  border: 1px solid rgba(232, 184, 74, 0.22);
  color: var(--accent-bright);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-muted,
.sync-priority-badge.badge-muted {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--muted);
}

.league-tag {
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  border: 1px solid rgba(232, 184, 74, 0.18);
}

/* Cards — signals, parlays, assist */
.signal-card,
.parlay-card {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition-med), transform var(--transition-med), box-shadow var(--transition-med);
}

.signal-card:hover,
.parlay-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.assist-panel {
  border-radius: var(--radius-md);
  background: var(--card);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.assist-panel.assist-compact {
  background: rgba(7, 11, 16, 0.45);
}

/* BetGenie Score (BGS) */
.bgs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99, 179, 237, 0.18), rgba(56, 189, 248, 0.08));
  border: 1px solid rgba(99, 179, 237, 0.35);
  font-size: 0.78rem;
  line-height: 1.2;
}
.bgs-badge-compact { font-size: 0.72rem; }
.bgs-label {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent, #63b3ed);
  text-transform: uppercase;
}
.bgs-value {
  font-weight: 800;
  font-size: 1.05em;
  color: #e8f4ff;
}
.bgs-hit {
  color: var(--muted);
  font-size: 0.85em;
}
.bgs-breakdown {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.82rem;
}
.bgs-breakdown summary {
  cursor: pointer;
  color: var(--accent, #63b3ed);
}
.bgs-breakdown-list {
  list-style: none;
  padding: 0.35rem 0 0;
  margin: 0;
}
.bgs-breakdown-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.bgs-breakdown-list .bgs-total {
  font-weight: 700;
  margin-top: 0.25rem;
  border-bottom: none;
}
.league-prefs-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin: 0.75rem 0;
}
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1rem;
}

.stat-pill {
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.metric-chip {
  border-radius: var(--radius-sm);
}

/* Filters & tabs */
.filters select,
.filters button {
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 16, 0.55);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.filters select:hover,
.filters button:hover {
  border-color: var(--border-strong);
}

/* Flash messages */
.flash {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 500;
}

.flash-ok {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.25);
  color: #6ee7b7;
}

.flash-error {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.25);
  color: #fca5a5;
}

/* Nav chrome */
.nav-dropdown-menu,
.nav-auth-menu {
  border-radius: var(--radius-md);
  background: rgba(12, 17, 24, 0.96);
  backdrop-filter: var(--glass);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.nav-dropdown-menu a {
  border-radius: 6px;
  margin: 0 0.35rem;
}

.nav-status {
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid rgba(232, 184, 74, 0.2);
}

.nav-search-input {
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 16, 0.55);
}

.nav-search-btn {
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
}

.nav-search-dropdown {
  border-radius: var(--radius-md);
  background: rgba(12, 17, 24, 0.97);
  backdrop-filter: var(--glass);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.nav-auth-desktop {
  padding-left: 0.5rem;
}

.nav-user {
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.82rem;
}

.contact-page .contact-shell {
  max-width: 32rem;
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form textarea {
  width: 100%;
  min-height: 8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.contact-altcha {
  min-height: 78px;
}

.contact-dev-note {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border);
}

/* Message Center */
.nav-badge-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  margin-left: 0.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.msg-center-summary { margin-bottom: 1rem; }

.msg-stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.msg-stat-chips .meta-chip {
  text-decoration: none;
  color: inherit;
}

.msg-stat-chips .meta-chip.active {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.msg-search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.msg-search-input {
  flex: 1;
  min-width: 12rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.msg-inbox-table .msg-row-unread td {
  font-weight: 600;
}

.msg-preview-cell {
  max-width: 22rem;
  color: var(--muted);
}

.msg-status {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.msg-status-new { background: rgba(224, 176, 64, 0.2); color: var(--accent-bright); }
.msg-status-open { background: rgba(96, 165, 250, 0.15); color: #93c5fd; }
.msg-status-replied { background: rgba(34, 197, 94, 0.15); color: var(--safe); }
.msg-status-archived { background: rgba(148, 163, 184, 0.15); color: var(--muted); }
.msg-status-spam { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

.msg-detail-grid {
  display: grid;
  grid-template-columns: 1fr 17rem;
  gap: 1.25rem;
  align-items: start;
}

@media (max-width: 900px) {
  .msg-detail-grid { grid-template-columns: 1fr; }
}

.msg-thread-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.msg-thread-header h2 { margin: 0; }

.msg-bubble {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.msg-bubble-inbound {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent);
}

.msg-bubble-reply {
  background: rgba(34, 197, 94, 0.06);
  border-left: 3px solid var(--safe);
  margin-left: 1.5rem;
}

.msg-bubble-body {
  white-space: pre-wrap;
  line-height: 1.55;
}

.msg-reply-form {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.msg-reply-form textarea {
  width: 100%;
  min-height: 7rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.msg-check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.msg-side-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.msg-side-form select,
.msg-side-form textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.msg-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.msg-meta-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0;
}

.msg-meta-list dt { font-weight: 600; }
.msg-meta-list dd { margin: 0; }

.text-danger { color: #fca5a5; }

.list-load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 1rem 0 0.25rem;
}

.list-load-more-btn {
  min-width: 10rem;
}

.infinite-scroll-sentinel td {
  text-align: center;
  padding: 0.75rem;
}

.infinite-loading-cell {
  opacity: 0.7;
}

.infinite-scroll-sentinel.is-loading .infinite-loading-cell {
  opacity: 1;
}

.infinite-scroll-sentinel.is-loading .infinite-loading-cell::after {
  content: " Loading…";
}

/* Toasts */
.toast {
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

/* Section links */
.section-link {
  font-weight: 600;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.section-link:hover {
  background: var(--accent-dim);
  text-decoration: none !important;
}

/* Auth page */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1rem, 5vw, 3rem) 0 4rem;
  min-height: 55vh;
}

.auth-shell {
  width: min(100%, 420px);
  margin-bottom: 0;
  padding: clamp(1.5rem, 4vw, 2rem);
}

.auth-header h1 {
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
}

.auth-header .subtitle {
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.login-form {
  margin-top: 0.25rem;
}

.login-form label:not(.field-label) {
  display: block;
  margin-bottom: 0.85rem;
}

/* About page — align with global system */
.about-hero {
  background: linear-gradient(145deg, rgba(232, 184, 74, 0.06), rgba(16, 22, 34, 0.9));
  border-color: rgba(232, 184, 74, 0.18);
}

.about-pick-card {
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 16, 0.4);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.about-pick-card:hover {
  background: rgba(7, 11, 16, 0.55);
  border-color: var(--border-strong);
}

.about-flow-num {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #0c1118;
  box-shadow: 0 2px 10px rgba(232, 184, 74, 0.3);
}

.about-status-banner {
  border-radius: var(--radius-sm);
}

/* Admin / account */
.admin-user-panel {
  border-radius: var(--radius-md);
  background: rgba(7, 11, 16, 0.35);
}

.admin-user-panel[open] {
  border-color: var(--border-strong);
}

.admin-rbac-form input,
.admin-rbac-form select {
  background: rgba(7, 11, 16, 0.55);
}

.admin-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.admin-user-search {
  min-width: 220px;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 11, 16, 0.55);
  color: var(--text);
}

.admin-users-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
}

.admin-user-filter-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
}

.admin-user-filter-label select {
  min-width: 9rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 11, 16, 0.55);
  color: var(--text);
}

.admin-users-filters {
  flex-wrap: wrap;
}

.admin-users-table-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-users-table th,
.admin-users-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-users-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-user-row-actions {
  white-space: nowrap;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.admin-row-action-form {
  display: inline;
  margin: 0;
}

.admin-mod-quick-actions {
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.admin-user-detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .admin-user-detail-grid {
    grid-template-columns: 1fr;
  }
}

.admin-kv-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.admin-kv-list dt {
  color: var(--muted);
}

.admin-perm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-activity-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.admin-stat-pill {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 11, 16, 0.4);
  min-width: 100px;
}

.admin-stat-pill .label {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
}

.admin-stat-pill .value {
  font-size: 1.25rem;
  font-weight: 700;
}

.admin-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-mini-table th,
.admin-mini-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.admin-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-timeline li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.admin-delete-title {
  color: #f87171;
  margin-top: 1.25rem;
}

.admin-delete-form {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(248, 113, 113, 0.25);
}

.admin-delete-confirm-label {
  display: block;
  margin: 0.65rem 0;
}

.admin-delete-input {
  display: block;
  width: 100%;
  max-width: 220px;
  margin-top: 0.35rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 16, 0.55);
  color: var(--text);
}

.btn-danger,
.btn-delete-user,
.btn-delete-user-final {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  border: 1px solid rgba(248, 113, 113, 0.5);
  font-weight: 600;
}

.btn-danger:hover,
.btn-delete-user:hover,
.btn-delete-user-final:hover {
  filter: brightness(1.08);
}

.btn-delete-user {
  margin-top: 0.5rem;
}

.consent-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.consent-modal {
  width: min(440px, 100%);
  max-height: 90vh;
  overflow-y: auto;
}

.consent-form .field-label {
  display: block;
  margin-bottom: 0.75rem;
}

.consent-terms-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 1rem 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 0.35rem;
  object-fit: cover;
  background: var(--surface-2, #1e293b);
}

.user-avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2, #1e293b);
}

.user-avatar-lg {
  width: 96px;
  height: 96px;
}

.account-avatar-preview {
  margin: 0.75rem 0 1rem;
}

.account-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.timezone-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.site-footer-tagline {
  margin: 0.35rem 0 0;
}

.auth-footer-link {
  margin-top: 1rem;
  text-align: center;
}

.spotlight-groups {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.spotlight-group-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spotlight-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spotlight-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.spotlight-headline {
  flex: 1 1 220px;
  line-height: 1.4;
}

.spotlight-meta {
  flex-shrink: 0;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.wc-bracket-section {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.wc-bracket,
.wc-bracket-section h2,
.wc-bracket-section h3,
.wc-group-label,
.wc-knockout h3 {
  color: var(--text);
}

.league-home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1100px) {
  .league-home-grid {
    grid-template-columns: 1fr;
  }
}

.league-home-section {
  color: var(--text);
  min-height: 2rem;
}

.wc-group-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  color: var(--text);
}

.wc-group-table th {
  color: var(--text-secondary);
}

.wc-group-table td {
  color: var(--text);
}

.wc-group-advance td {
  color: var(--text);
  background: rgba(56, 189, 120, 0.12);
}

.wc-bracket-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.wc-bracket-title {
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.wc-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0.85rem;
}

.wc-group-card {
  padding: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.wc-group-label {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.wc-group-table th,
.wc-group-table td {
  padding: 0.25rem 0.35rem;
  font-size: 0.82rem;
}

.wc-group-advance {
  background: rgba(56, 189, 120, 0.08);
}

.wc-knockout {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
}

.wc-knockout-list {
  display: grid;
  gap: 0.5rem;
}

.wc-knockout-match {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.wc-knockout-match:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.wc-knockout-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 600;
}

.wc-knockout-score {
  min-width: 3rem;
  text-align: center;
  opacity: 0.85;
}

@media (max-width: 640px) {
  .wc-knockout-match {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.35);
}

/* Page intro rhythm */
.site-main > h1:first-child {
  margin-top: 0.15rem;
}

.site-main > h1:first-child + .subtitle {
  margin-top: 0;
}

.home-mobile-search {
  display: none !important;
}

/* Live strips & game hero — subtle polish */
.live-game-strip {
  border-radius: var(--radius-md);
}

.team-next-game-hero {
  border-radius: var(--radius-md);
}

.standings-division-card {
  border-radius: var(--radius-md);
}

@media (min-width: 769px) {
  .nav-header-utils {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem 0.5rem;
    order: 100;
    margin-left: auto;
    flex: 0 0 auto;
    flex-shrink: 0;
  }

  .navbar.site-nav {
    width: 100%;
    align-items: center;
  }

  .nav-header-utils .nav-auth-desktop,
  .nav-header-utils .nav-account-desktop {
    display: flex !important;
    order: 1;
    margin-left: 0;
    flex-shrink: 0;
  }

  .nav-header-utils .nav-mobile-user-btn {
    display: none !important;
  }

  .nav-header-utils .nav-data-status {
    order: 2;
    margin-left: 0;
    flex-shrink: 0;
  }

  .nav-header-utils .nav-status {
    order: 3;
    flex-shrink: 0;
  }

  .nav-header-utils .nav-search-wrap {
    order: 4;
    flex-shrink: 1;
    min-width: 0;
  }

  .nav-auth-details .nav-auth-menu,
  .nav-dropdown-auth .nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
  }
}

@media (max-width: 1100px) {
  .nav-dropdown-right .nav-dropdown-menu {
    left: 0;
    right: auto;
  }
}

@media (max-width: 900px) {
  .page-with-sidebar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .league-sidebar {
    position: sticky;
    top: 3.5rem;
    z-index: 6;
    margin: 0 -0.15rem;
  }

  .league-sidebar-inner {
    padding: 0.45rem 0.35rem 0.55rem;
  }

  .league-sidebar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.35rem;
    padding-bottom: 0.2rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 0.65rem,
      #000 calc(100% - 0.65rem),
      transparent 100%
    );
  }

  .league-sidebar-link {
    white-space: nowrap;
    flex: 0 0 auto;
    scroll-snap-align: start;
    font-size: 0.82rem;
    padding: 0.38rem 0.65rem;
  }

  .league-sidebar .nav-dropdown-league-heading {
    display: inline-flex;
    margin-right: 0;
    vertical-align: middle;
  }

  .league-sidebar-hint {
    display: inline;
  }

  .league-sidebar .nav-league-logo {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 900px) {
  .navbar,
  .site-nav {
    gap: 0.35rem 0.4rem;
  }

  .navbar a:not(.brand):not(.site-brand):not(.site-brand-link) {
    padding: 0.38rem 0.55rem;
    font-size: 0.82rem;
  }
}

.bet-intel-section { margin-bottom: 1.25rem; }
.bet-intel-section h2 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.bet-intel-section h3 { font-size: 0.85rem; margin: 0.5rem 0 0.35rem; }
.intel-bar-chart { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.5rem; }
.intel-plot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}
.intel-plot { min-height: 260px; width: 100%; }
.intel-plot-wide { grid-column: 1 / -1; min-height: 280px; }
.confidence-timeline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.15rem;
  color: var(--accent, #c9a227);
}
.confidence-timeline-compact { margin-top: 0.25rem; }
.confidence-sparkline {
  width: 72px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.9;
}
.confidence-timeline-summary { color: var(--muted, #888); white-space: nowrap; }
.intel-bar-row { display: grid; grid-template-columns: 3.5rem 1fr 4.5rem; gap: 0.5rem; align-items: center; }
.intel-bar-label { text-align: right; color: var(--muted, #888); }
.intel-bar-track {
  position: relative;
  height: 0.65rem;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.intel-bar-dual { height: 1.1rem; }
.intel-bar-fill { height: 100%; border-radius: 3px; min-width: 2px; }
.intel-bar-hit { background: linear-gradient(90deg, #3b82f6, #22c55e); }
.intel-bar-pred { background: rgba(59,130,246,0.55); position: absolute; left: 0; top: 0; height: 45%; }
.intel-bar-actual { background: rgba(34,197,94,0.75); position: absolute; left: 0; bottom: 0; height: 45%; }
.intel-bar-meta { color: var(--muted, #888); text-align: right; }
.why-this-lost-panel { border-left: 3px solid var(--danger, #c44); }
.why-lost-summary { font-weight: 500; }
.why-lost-bullets { margin: 0.5rem 0 0 1.1rem; }
.why-lost-bullets li { margin-bottom: 0.35rem; }
.why-lost-teaser { margin: 0.25rem 0 0; max-width: 14rem; line-height: 1.3; }
.why-lost-legs-table .leg-row-loss { background: rgba(200, 60, 60, 0.06); }
.live-period-label { font-size: 0.85em; color: var(--muted, #888); margin-left: 0.35rem; }
.player-team-live { margin-bottom: 1rem; }
.tracker-live-strip { display: block; margin-top: 0.25rem; }
.tracker-live-strip .live-game-strip { margin: 0; }
.bet-intel-reasons { list-style: none; padding: 0; margin: 0.5rem 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.bet-intel-factors { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-direction: column; gap: 0.35rem; }
.bet-intel-verdict { font-size: 1rem; margin: 0.25rem 0; }
.factor-tag {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.82rem;
  background: rgba(100, 116, 139, 0.2);
}
.factor-helped { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.factor-hurt { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.factor-neutral { background: rgba(148, 163, 184, 0.15); }
.parlay-uvs-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: rgba(234, 179, 8, 0.2);
  color: #fde047;
  margin-right: 0.35rem;
}
.parlay-uvs-notes { margin: 0.35rem 0 0; padding-left: 1rem; }

/* Elite picks — BGS ≥ highlight_bgs (default 75), matches page-load gold shimmer */
.signal-card.pick-elite-glow,
.parlay-card.pick-elite-glow {
  position: relative;
  z-index: 0;
  border-color: rgba(224, 176, 64, 0.45) !important;
  animation: elite-pick-glow 2.8s ease-in-out infinite;
}
.signal-card.pick-elite-glow::after,
.parlay-card.pick-elite-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  opacity: 0.85;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(212, 160, 23, 0.08) 20%,
    rgba(255, 236, 140, 0.22) 45%,
    rgba(245, 224, 106, 0.18) 55%,
    rgba(212, 160, 23, 0.08) 80%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: page-load-shimmer 3.2s ease-in-out infinite;
}
@keyframes elite-pick-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(224, 176, 64, 0.35),
      0 0 14px rgba(240, 208, 96, 0.22),
      0 0 28px rgba(224, 176, 64, 0.08);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 236, 140, 0.55),
      0 0 20px rgba(255, 236, 140, 0.38),
      0 0 40px rgba(240, 208, 96, 0.18);
  }
}
.parlay-card.pick-elite-glow .parlay-odds-badge .bgs-value,
.signal-card.pick-elite-glow .bgs-value {
  text-shadow: 0 0 12px rgba(255, 236, 140, 0.65);
}
.intel-proposal-actions { white-space: nowrap; }
.intel-proposal-actions form { margin-right: 0.25rem; }
.risk-low { background: rgba(34, 197, 94, 0.15); }
.risk-medium { background: rgba(234, 179, 8, 0.15); }
.risk-high { background: rgba(239, 68, 68, 0.15); }
.result-approved { color: #86efac; }
.result-rejected { color: #fca5a5; }
.result-deferred { color: #fde047; }
.result-pending { color: #94a3b8; }

/* —— Legend / abbreviation tooltips —— */
.legend-term {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  vertical-align: baseline;
  white-space: nowrap;
}
.legend-abbr { font-weight: 700; }
.legend-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(240, 208, 96, 0.45);
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.12);
  color: #f5e06a;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  transition: background 0.15s, border-color 0.15s;
}
.legend-term:hover .legend-plus,
.legend-term:focus-within .legend-plus {
  background: rgba(240, 208, 96, 0.25);
  border-color: rgba(255, 236, 140, 0.7);
}
.legend-popup {
  position: absolute;
  z-index: 2000;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  max-width: min(320px, 90vw);
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(240, 208, 96, 0.35);
  background: linear-gradient(165deg, #1e2430 0%, #151a22 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(240, 208, 96, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  text-align: left;
  font-weight: 400;
  white-space: normal;
}
.legend-popup-name {
  display: block;
  font-weight: 700;
  color: #f5e06a;
  font-size: 0.82rem;
  margin-bottom: 0.25rem;
}
.legend-popup-def {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #cbd5e1;
}
.legend-popup-why {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #94a3b8;
}
.legend-term:hover .legend-popup,
.legend-term:focus-within .legend-popup {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.legend-term.legend-open .legend-plus {
  background: rgba(240, 208, 96, 0.25);
  border-color: rgba(255, 236, 140, 0.7);
}

.legend-popup-floating {
  position: fixed;
  z-index: 11500;
  display: none;
  left: auto;
  bottom: auto;
  transform: none !important;
  min-width: 200px;
  max-width: min(320px, 90vw);
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(240, 208, 96, 0.35);
  background: linear-gradient(165deg, #1e2430 0%, #151a22 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(240, 208, 96, 0.12);
  text-align: left;
  font-weight: 400;
  white-space: normal;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.legend-term-compact .legend-popup {
  min-width: 180px;
}
.sortable-th-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}
.sort-link-icon {
  padding: 0.1rem 0.25rem;
  opacity: 0.65;
  font-size: 0.75em;
}
.sort-link-icon:hover { opacity: 1; }
.sort-arrow-muted { opacity: 0.35; font-size: 0.7em; }

.page-legend {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  padding: 1rem 1.15rem;
}
.page-legend-title {
  font-size: 1rem;
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.page-legend-hint { margin: 0 0 0.75rem; }
.page-legend-list {
  margin: 0;
  display: grid;
  gap: 0.65rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.page-legend-item {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.65rem;
  align-items: start;
}
.page-legend-item dt { margin: 0; }
.page-legend-item dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}
.page-legend-why {
  display: block;
  margin-top: 0.2rem;
}
.page-legend-full .legend-category-block {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}
.page-legend-full .legend-category-block:first-of-type {
  border-top: none;
  margin-top: 0.5rem;
  padding-top: 0;
}
.legend-category-title {
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
  color: #e2e8f0;
}
.page-legend-list-full {
  grid-template-columns: 1fr;
  max-width: 900px;
}
.page-legend-list-full .page-legend-item {
  grid-template-columns: 7rem 1fr;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
@media (max-width: 640px) {
  .page-legend-list-full .page-legend-item {
    grid-template-columns: 1fr;
  }
}

/* —— Mobile navigation & responsive polish —— */
.nav-mobile-toggle {
  display: none;
  position: fixed;
  top: 0.65rem;
  right: clamp(0.75rem, 2vw, 1.25rem);
  z-index: 1103;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 16, 0.95);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
}

.nav-mobile-toggle-bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

body.nav-mobile-open .site-header {
  background: rgba(7, 11, 16, 0.99);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 768px) {
  :root {
    --site-header-height: 3.85rem;
  }

  .nav-mobile-toggle {
    display: inline-flex;
  }

  .site-header {
    background: rgba(7, 11, 16, 0.98);
  }

  .site-header-inner {
    flex-wrap: nowrap;
    align-items: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-right: clamp(3.75rem, 12vw, 4.5rem);
    min-height: var(--site-header-height);
    gap: 1rem 1.25rem;
  }

  .site-brand-link {
    position: relative;
    z-index: 1104;
    padding: 0.35rem 0;
    margin-right: 0;
    flex-shrink: 0;
  }

  .site-brand-logo {
    height: 1.85rem;
    max-width: min(160px, 48vw);
  }

  .navbar.site-nav {
    display: none;
    position: fixed;
    top: var(--site-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    flex: none;
    flex-direction: column;
    flex-wrap: nowrap !important;
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-x: none;
    touch-action: pan-y;
    padding: 1rem clamp(1.25rem, 3vw, 2.25rem) 1.5rem;
    gap: 0.15rem;
    background: rgba(7, 11, 16, 0.98);
    border-top: 1px solid var(--border);
  }

  .navbar.site-nav.is-mobile-open {
    display: flex;
  }

  .navbar.site-nav > * {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  .nav-auth-desktop,
  .nav-account-desktop {
    display: none !important;
  }

  .nav-drill-body .nav-mobile-admin-group {
    margin-top: 0.35rem;
  }

  .nav-drill-body .nav-mobile-sublink {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.65rem 0.15rem;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
  }

  .nav-drill-body .nav-mobile-sublink:hover,
  .nav-drill-body .nav-mobile-sublink.active-tab {
    color: var(--accent-bright);
    background: rgba(224, 176, 64, 0.08);
  }

  .nav-mobile-user-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
  }

  .nav-mobile-user-btn .nav-dropdown-caret {
    margin-left: auto;
    color: var(--accent-bright);
  }

  .nav-desktop-only {
    display: none !important;
  }

  .nav-desktop-bet-links {
    display: none !important;
  }

  .nav-mobile-only {
    display: block;
    width: 100%;
  }

  .nav-mobile-drill {
    position: relative;
    width: 100%;
    min-height: 12rem;
    margin: 0.25rem 0 0.5rem;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  }

  .nav-drill-panel {
    display: none;
    flex-direction: column;
    width: 100%;
    opacity: 0;
    transition: opacity 0.22s ease;
  }

  .nav-drill-panel.is-active {
    display: flex;
    opacity: 1;
  }

  .nav-drill-header {
    display: grid;
    grid-template-columns: 2.5rem 1fr 2.5rem;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-drill-back,
  .nav-drill-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--accent-bright);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
  }

  .nav-drill-back:hover,
  .nav-drill-close:hover,
  .nav-drill-back:focus-visible,
  .nav-drill-close:focus-visible {
    background: rgba(224, 176, 64, 0.12);
    outline: none;
  }

  .nav-drill-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
  }

  .nav-drill-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }

  .nav-drill-root-link,
  .nav-drill-trigger,
  .nav-drill-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0.7rem 0.15rem;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s, background 0.15s;
  }

  .nav-drill-trigger::after {
    content: "›";
    margin-left: auto;
    color: var(--accent-bright);
    font-size: 1.2rem;
    font-weight: 700;
  }

  .nav-drill-link-hero {
    font-size: 1.2rem;
    font-weight: 700;
  }

  .nav-drill-kicker {
    display: block;
    margin: 0.55rem 0 0.2rem;
    padding: 0 0.15rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .nav-drill-root-link:hover,
  .nav-drill-trigger:hover,
  .nav-drill-link:hover,
  .nav-drill-root-link.active-tab,
  .nav-drill-link.active-tab {
    color: var(--accent-bright);
    background: rgba(224, 176, 64, 0.08);
  }

  .nav-drill-league-btn .nav-league-logo {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .nav-drill-link-logout {
    margin-top: 0.35rem;
    color: var(--text-secondary);
  }

  .nav-mobile-accordions {
    width: 100%;
    margin: 0.25rem 0 0.5rem;
  }

  .nav-mobile-group,
  .nav-mobile-league-group,
  .nav-mobile-admin-group {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.35rem;
    background: rgba(7, 11, 16, 0.45);
  }

  .nav-mobile-group-summary,
  .nav-mobile-league-summary,
  .nav-mobile-admin-summary {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 0.85rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
    list-style: none;
  }

  .nav-mobile-group-summary::-webkit-details-marker,
  .nav-mobile-league-summary::-webkit-details-marker,
  .nav-mobile-admin-summary::-webkit-details-marker {
    display: none;
  }

  .nav-mobile-group-links,
  .nav-mobile-league-links,
  .nav-mobile-admin-links {
    display: flex;
    flex-direction: column;
    padding: 0.15rem 0.35rem 0.55rem;
    gap: 0.05rem;
  }

  .nav-mobile-sublink {
    display: block;
    padding: 0.55rem 0.75rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
  }

  .nav-mobile-sublink:hover,
  .nav-mobile-sublink.active-tab {
    color: var(--accent-bright);
    background: rgba(224, 176, 64, 0.08);
  }

  .nav-mobile-leagues {
    padding: 0.25rem 0.35rem 0.45rem;
  }

  .nav-mobile-league-group {
    margin-bottom: 0.25rem;
  }

  .nav-mobile-league-summary .nav-league-logo {
    width: 22px;
    height: 22px;
  }

  .nav-home-link {
    font-weight: 700;
  }

  .nav-mobile-admin {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    width: 100%;
    padding: 0;
    margin: 0.5rem 0 0;
    border-top: 1px solid var(--border);
  }

  .nav-mobile-admin-label {
    display: block;
    padding: 0.85rem 0.85rem 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-bright);
    letter-spacing: 0.02em;
  }

  .nav-mobile-admin-meta {
    display: block;
    padding: 0 0.85rem 0.45rem;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
  }

  .nav-mobile-admin a,
  .nav-mobile-login {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    box-sizing: border-box;
  }

  .nav-mobile-admin a.nav-auth-logout {
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
    border-radius: 0;
  }

  .nav-mobile-admin a:hover,
  .nav-mobile-login:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-mobile-login {
    display: block;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
  }

  .nav-main-link {
    order: 0;
  }

  .nav-header-utils.nav-mobile-footer,
  .nav-mobile-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    order: 100;
  }

  .nav-header-utils .nav-data-status,
  .nav-header-utils .nav-status,
  .nav-mobile-footer .nav-data-status,
  .nav-mobile-footer .nav-status {
    width: 100%;
    margin: 0 !important;
  }

  .navbar a:not(.brand):not(.site-brand):not(.site-brand-link),
  .nav-dropdown-label.nav-link-style,
  .nav-dropdown-label.nav-user {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: none;
  }

  .nav-dropdown-menu::before {
    display: none;
  }

  .nav-dropdown-menu {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    display: none !important;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 0.5rem;
    margin: 0.15rem 0 0;
    max-height: none;
    overflow: visible;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: flex !important;
    flex-direction: column;
  }

  .nav-dropdown-stats.is-open .nav-dropdown-menu {
    display: block !important;
    padding: 0;
  }

  .nav-dropdown-stats.is-open .nav-dropdown-stats-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    min-width: 0 !important;
    max-width: none;
    width: 100%;
  }

  .nav-dropdown.is-open .nav-dropdown-menu-wide {
    max-height: min(55vh, 28rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-dropdown-stats-grid {
    min-width: 0 !important;
    max-width: none;
    width: 100% !important;
  }

  .nav-stats-column {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .nav-stats-column:last-child {
    border-bottom: none;
  }

  .page-with-sidebar {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .league-sidebar {
    position: sticky;
    top: 3.5rem;
    z-index: 6;
    margin: 0 -0.25rem;
  }

  .league-sidebar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.35rem;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 0.65rem,
      #000 calc(100% - 0.65rem),
      transparent 100%
    );
  }

  .league-sidebar-link {
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: 0.82rem;
    padding: 0.38rem 0.65rem;
    scroll-snap-align: start;
  }

  .player-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .player-nickname-popout {
    margin-left: 0;
    max-width: none;
    text-align: left;
    transform: none;
  }

  .player-nickname-stack {
    align-items: flex-start;
  }

  .nav-dropdown-label[aria-expanded="true"] {
    background: var(--accent) !important;
    color: #141820 !important;
    font-weight: 700;
  }

  .nav-dropdown {
    display: block;
    width: 100%;
  }

  .nav-dropdown-menu a {
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
  }

  .nav-dropdown-stats {
    display: block;
    width: 100%;
  }

  body.nav-mobile-open {
    overflow: hidden;
    overflow-x: clip;
    position: fixed;
    width: 100%;
    inset: 0 auto auto 0;
    overscroll-behavior: none;
  }

  body.community-chat-expanded {
    overflow: hidden;
    overflow-x: clip;
    position: fixed;
    width: 100%;
    inset: 0 auto auto 0;
    overscroll-behavior: none;
  }

  .mobile-app-shell {
    touch-action: pan-y;
    overscroll-behavior-y: none;
  }

  .mobile-app-shell .site-main,
  .mobile-app-shell .container,
  .mobile-app-shell .page-content {
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  html.has-layout-overflow {
    overflow-x: clip;
  }

  .tracker-period-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding-bottom: 0.15rem;
  }

  .site-footer-admin-group .site-footer-nav-list {
    margin-bottom: 0.5rem;
  }

  .win-prob-chart {
    height: 200px;
    min-height: 160px;
  }

  .game-matchup-side {
    min-width: 0;
    max-width: 100%;
  }

  .game-matchup-name {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .community-chat-drawer,
  .runtime-panel-drawer {
    max-width: calc(100vw - 1.5rem);
  }

  .container.page-content,
  .site-main {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .filters.stats-view-tabs,
  .stats-view-tabs {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .stats-view-tabs .btn-sm {
    flex: 1 1 auto;
    min-width: calc(50% - 0.35rem);
    text-align: center;
    padding: 0.55rem 0.5rem;
  }

  .table-scroll {
    margin-left: -0.85rem;
    margin-right: -0.85rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .matchup-cell {
    min-width: 0;
  }

  h1 {
    font-size: 1.45rem;
  }

  .card {
    padding: 0.85rem 1rem;
  }

  .site-footer-inner {
    padding: 1rem 0.85rem;
  }
}

@media (max-width: 480px) {
  .stats-view-tabs .btn-sm {
    min-width: 100%;
  }

  .top100-tabs .btn-sm {
    min-width: calc(50% - 0.35rem);
  }
}

.legend-term-compact .legend-popup {
  min-width: 180px;
}

.pick-card-dashboard.parlay-card,
.pick-card-dashboard.signal-card {
  overflow: visible;
}

/* Floating action cluster — back to top + optional runtime panel */
.site-fab-cluster {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 12050;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
}

.site-fab-cluster > * {
  pointer-events: auto;
}

.back-to-top-fab {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.05rem;
  min-width: 3rem;
  height: 3rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #0c1118;
  font-family: var(--font);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232, 184, 74, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition:
    opacity var(--transition-fast),
    visibility var(--transition-fast),
    transform var(--transition-fast),
    filter var(--transition-fast);
}

.back-to-top-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-fab:hover {
  filter: brightness(1.06);
}

.back-to-top-fab:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.back-to-top-icon {
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 800;
}

.back-to-top-label {
  font-size: 0.58rem;
}

@media (max-width: 480px) {
  .site-fab-cluster {
    gap: 0.5rem;
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }

  .back-to-top-fab,
  .runtime-panel-fab {
    min-width: 2.75rem;
    height: 2.75rem;
  }
}

/* Runtime floating control panel */
.runtime-panel {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
  flex-shrink: 0;
  pointer-events: auto;
}

.runtime-panel-fab,
.runtime-panel-drawer {
  pointer-events: auto;
}
.runtime-panel-fab {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid var(--border, #333);
  background: var(--surface-elevated, #1a1a1f);
  color: var(--accent, #f5c518);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
.runtime-panel-drawer {
  position: absolute;
  right: 0;
  bottom: 3.5rem;
  width: min(20rem, calc(100vw - 2rem));
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border, #333);
  background: var(--surface, #121218);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.runtime-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.runtime-panel-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
}
.runtime-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.5rem 0;
}
.user-control-panel-actions a.btn-sm {
  text-decoration: none;
  text-align: center;
  flex: 1 1 calc(50% - 0.2rem);
  min-width: 5.5rem;
}
.runtime-panel-log {
  max-height: 8rem;
  overflow: auto;
  margin: 0.5rem 0 0;
  padding: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0.35rem;
  white-space: pre-wrap;
  font-size: 0.7rem;
}
.runtime-action-danger {
  border-color: #c44 !important;
  color: #f88 !important;
}

.deploy-restart-banner {
  position: fixed;
  top: calc(var(--site-header-height, 4rem) + 0.75rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 12040;
  width: min(28rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid rgba(232, 184, 74, 0.55);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(28, 24, 12, 0.98), rgba(18, 18, 24, 0.98));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(232, 184, 74, 0.15);
}

.deploy-restart-banner-inner {
  padding: 1rem 1.1rem;
}

.deploy-restart-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.deploy-restart-detail {
  margin: 0 0 0.85rem;
}

.deploy-restart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.deploy-restart-now {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent));
  color: #0c1118;
  border-color: rgba(255, 255, 255, 0.14);
}

.deploy-restart-later {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
  box-shadow: none;
}

.runtime-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.runtime-log-view {
  max-height: 24rem;
  overflow: auto;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 0.35rem;
  font-size: 0.75rem;
}
.admin-logs-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.65rem;
}
.admin-logs-source-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: inherit;
}
.admin-logs-source-card.is-active {
  border-color: var(--accent, #c9a227);
  background: rgba(201, 162, 39, 0.08);
}
.admin-logs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.admin-logs-view {
  max-height: 28rem;
}
.admin-logs-pipeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.admin-logs-pipeline-list li {
  margin: 0.35rem 0;
}
.runtime-status-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.runtime-status-list li {
  margin: 0.25rem 0;
}
.cms-page-body {
  line-height: 1.6;
}
.cms-edit-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .cms-edit-grid {
    grid-template-columns: 1fr;
  }
}
.cms-edit-meta label {
  display: block;
  margin-bottom: 0.75rem;
}
.cms-edit-meta input,
.cms-edit-meta select {
  width: 100%;
  margin-top: 0.25rem;
}
.cms-editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.cms-editor-hint {
  margin: 0 0 0.75rem;
}

.cms-tinymce-field {
  width: 100%;
  min-height: 28rem;
}

.cms-edit-editor-wrap .tox-tinymce {
  border-radius: var(--radius-sm);
  border-color: var(--border) !important;
}

.cms-edit-editor-wrap .tox .tox-edit-area__iframe {
  background: #0f1218;
}

#cms-html-panel .CodeMirror {
  height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

#cms-html-source {
  width: 100%;
  min-height: 22rem;
  font-family: ui-monospace, Consolas, monospace;
}
.cms-preview-frame {
  width: 100%;
  min-height: 24rem;
  border: 1px solid var(--border, #333);
  border-radius: 0.35rem;
  background: var(--bg, #0d0d10);
}
.cms-backup-list {
  list-style: none;
  padding: 0;
}
.cms-backup-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.inline-form {
  display: inline;
}
.btn-danger-text {
  color: #f88;
}
.site-footer-links {
  margin: 0.35rem 0;
}

/* —— Admin shell (shared across all admin pages) —— */
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem 1rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.admin-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(7, 11, 16, 0.55);
  color: var(--text);
}

.admin-form-actions {
  display: flex;
  align-items: flex-end;
}

.admin-checkbox-label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text);
}

.admin-settings-form label,
.settings-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}

.settings-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
  border-bottom: none;
}

.admin-users-table-card {
  margin-top: 1rem;
}

.admin-users-create {
  margin-bottom: 1rem;
}

.admin-ratings-filters {
  margin-bottom: 0.5rem;
}

.admin-ratings-merge {
  margin-top: 0.75rem;
}

.admin-ratings-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-user-profile,
.admin-user-danger {
  margin-bottom: 1rem;
}

.admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.admin-reset-form {
  margin-top: 0.5rem;
}

.admin-inline-filters {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.runtime-admin-card {
  margin-bottom: 1rem;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.admin-stat-card {
  text-align: center;
  padding: 1rem 0.75rem;
}

.admin-stat-value {
  display: block;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--accent-bright);
  line-height: 1.2;
}

.admin-stat-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 0.25rem;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-rank-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.admin-rank-count {
  display: inline-block;
  min-width: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.admin-ai-log {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 480px;
  overflow-y: auto;
}

.admin-ai-turn {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.admin-ai-answer {
  color: var(--muted);
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.auth-card {
  max-width: 420px;
  margin: 2rem auto;
  padding: 1.75rem;
}

@media (max-width: 900px) {
  .site-main:has(.admin-shell),
  .site-main:has(.admin-subnav) {
    padding-left: 0.45rem;
    padding-right: 0.55rem;
  }

  .admin-shell {
    margin-left: 0;
    padding-left: 0;
  }

  .admin-shell > h1 {
    font-size: 1.35rem;
    padding-left: 0;
    text-align: left;
  }

  .admin-subnav {
    justify-content: flex-start;
    text-align: left;
    margin-left: 0;
    padding-left: 0;
    gap: 0.15rem 0.4rem;
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .admin-stat-card {
    padding: 0.65rem 0.5rem;
  }

  .admin-users-table-wrap {
    margin-left: -0.45rem;
    margin-right: -0.45rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
  }

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

  .card {
    padding: 0.75rem 0.85rem;
  }
}

@media (max-width: 700px) {
  .admin-subnav {
    font-size: 0.76rem;
  }
}

.meta-chip-warn {
  background: rgba(251, 191, 36, 0.15);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.admin-health-ok .admin-stat-value { color: #4ade80; }
.admin-health-warn .admin-stat-value { color: #fbbf24; }
.admin-health-fail .admin-stat-value { color: #f87171; }

.text-warn {
  color: #fbbf24;
  font-weight: 600;
}

.admin-shell .subtitle {
  text-align: left;
  padding-left: 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-shell-sidebar {
  position: sticky;
  top: 1rem;
}

.admin-sidebar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
}

.admin-sidebar-heading {
  font-weight: 700;
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.admin-sidebar-heading a {
  color: var(--text);
  text-decoration: none;
}

.admin-sidebar-home {
  margin: 0 0 0.65rem;
}

.admin-sidebar-home a {
  text-decoration: none;
}

.admin-sidebar-group {
  border-top: 1px solid var(--border);
  padding: 0.45rem 0;
}

.admin-sidebar-group summary {
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  list-style: none;
}

.admin-sidebar-group ul {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}

.admin-sidebar-group li a {
  display: block;
  padding: 0.3rem 0;
  font-size: 0.86rem;
  color: var(--muted);
  text-decoration: none;
}

.admin-sidebar-group li a:hover,
.admin-sidebar-group li a.active-tab {
  color: var(--accent-bright);
}

.admin-dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.admin-home-section {
  margin-top: 1rem;
}

.admin-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}

.admin-section-head h2 {
  margin: 0;
}

.admin-loc-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
}

.admin-loc-pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.72rem;
}

.admin-roadmap-next-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.admin-plan-card {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2, rgba(255, 255, 255, 0.03));
}

.admin-plan-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.admin-plan-card-head h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-plan-phases {
  margin: 0.65rem 0 0.5rem;
  padding-left: 1.1rem;
  font-size: 0.82rem;
}

.admin-plan-phase {
  margin-bottom: 0.35rem;
}

.admin-plan-phase-shipped .admin-plan-phase-name::before {
  content: "✓ ";
  color: #4ade80;
}

.admin-plan-phase-active .admin-plan-phase-name {
  color: var(--accent-bright, #fbbf24);
  font-weight: 600;
}

.admin-plan-phase-active .admin-plan-phase-name::before {
  content: "→ ";
}

.admin-plan-phase-planned .admin-plan-phase-name::before {
  content: "○ ";
  opacity: 0.5;
}

.admin-plan-phase-name {
  display: block;
}

.admin-quick-links {
  margin: 1rem 0 0.5rem;
  padding: 0.85rem 1rem;
}
.admin-quick-links-label {
  margin: 0 0 0.5rem;
}
.admin-quick-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-error-ref-search {
  margin: 0.75rem 0 1rem;
  align-items: center;
  gap: 0.5rem;
}

.site-footer-admin-heading {
  margin: 0.5rem 0 0.25rem;
  padding-left: 0.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-footer-admin-group .site-footer-nav-list {
  margin-bottom: 0.35rem;
}

.admin-dash-card h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.admin-docs-layout {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.admin-docs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-docs-nav li a {
  display: block;
  padding: 0.35rem 0;
  text-decoration: none;
  color: var(--muted);
}

.admin-docs-nav li a.active-tab {
  color: var(--accent-bright);
  font-weight: 600;
}

.status-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pill-ok { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.status-pill-warn { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.status-pill-error { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.status-pill-muted { background: var(--border); color: var(--muted); }

.maintenance-page {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.maintenance-card {
  max-width: 520px;
  width: 100%;
  text-align: center;
}

.maintenance-body {
  text-align: left;
  margin: 1rem 0;
}

.maintenance-newsletter {
  margin-top: 1.5rem;
  text-align: left;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.newsletter-form .field-label {
  display: block;
  margin-bottom: 0.65rem;
}

.status-page {
  max-width: 900px;
  margin: 0 auto;
}

.status-banner {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

.status-banner-ok { color: #4ade80; }
.status-banner-warn { color: #fbbf24; }
.status-banner-error { color: #f87171; }

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-shell-sidebar {
    position: static;
  }

  .admin-docs-layout {
    grid-template-columns: 1fr;
  }
}

/* —— Pricing page —— */
.pricing-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

.pricing-hero h1 {
  margin-bottom: 0.5rem;
}

.pricing-tagline {
  font-size: 1.05rem;
  margin: 0;
}

.pricing-promo-banner {
  display: inline-block;
  margin: 1rem 0 0;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  font-size: 0.9rem;
  font-weight: 600;
}

.pricing-billing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pricing-billing-toggle {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--surface-2, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--border);
}

.pricing-toggle-btn {
  border: none;
  background: transparent;
  color: var(--text-muted, #9ca3af);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pricing-toggle-btn.is-active {
  background: var(--accent, #3b82f6);
  color: #fff;
}

.pricing-save-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.pricing-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: stretch;
}

.pricing-tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.pricing-tier-featured {
  border-color: var(--accent, #3b82f6);
  box-shadow: 0 0 0 1px var(--accent, #3b82f6);
}

.pricing-tier-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--accent, #3b82f6);
  color: #fff;
}

.pricing-tier-header h2 {
  margin: 0 0 0.25rem;
}

.pricing-tier-tagline {
  margin: 0;
  font-weight: 600;
}

.pricing-tier-audience {
  margin: 0.35rem 0 0;
}

.pricing-tier-price {
  margin: 1rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-amount {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
}

.pricing-period {
  display: block;
  margin-top: 0.2rem;
}

.pricing-annual-equiv {
  margin: 0.35rem 0 0;
}

.pricing-feature-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  flex: 1;
}

.pricing-feature-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.35rem;
  font-size: 0.92rem;
  line-height: 1.4;
}

.pricing-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: 700;
}

.tier-free .pricing-feature-list li::before {
  color: var(--text-muted, #9ca3af);
}

.pricing-tier-cta {
  margin-top: auto;
}

.pricing-cta-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.pricing-cta-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.pricing-cta-hint {
  margin: 0.5rem 0 0;
  text-align: center;
}

.pricing-compare-table th[scope="row"] {
  text-align: left;
  font-weight: 500;
}

.pricing-faq-list {
  margin: 0;
}

.pricing-faq-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.pricing-faq-item:last-child {
  border-bottom: none;
}

.pricing-faq-item dt {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.pricing-faq-item dd {
  margin: 0;
}

.pricing-footnote {
  text-align: center;
  margin: 1.5rem 0 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 960px) {
  .pricing-tier-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* —— Responsible gambling footer bar —— */
.rg-footer-bar {
  background: linear-gradient(180deg, rgba(127, 29, 29, 0.35), rgba(15, 23, 42, 0.95));
  border-top: 1px solid rgba(248, 113, 113, 0.25);
  padding: 0.75rem 1rem;
}

.rg-footer-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rg-footer-text {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #e2e8f0;
  text-align: center;
  max-width: 52rem;
}

.rg-footer-icon {
  margin-right: 0.35rem;
}

.rg-footer-link {
  color: #fca5a5;
  font-weight: 600;
}

.rg-footer-link:hover {
  color: #fecaca;
}

.rg-page-hero .subtitle {
  max-width: 640px;
}

.rg-helpline-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.rg-helpline-card {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.rg-helpline-number {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.35rem 0 0;
}

.rg-signs-list {
  margin: 0;
  padding-left: 1.25rem;
}

/* —— Welcome onboarding —— */
.welcome-shell {
  max-width: 640px;
  margin: 0 auto;
}

.welcome-fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1rem 0.75rem;
  margin: 0 0 1.25rem;
}

.welcome-fieldset legend {
  font-weight: 600;
  padding: 0 0.35rem;
}

.welcome-bettor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.welcome-bettor-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
}

/* —— Payment vault —— */
.vault-pci-notice {
  border-left: 3px solid #4ade80;
  padding-left: 0.75rem;
  margin-bottom: 1rem;
}

.vault-status-dl {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 0.35rem 1rem;
  margin: 0 0 1rem;
}

.vault-status-dl dt {
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
}

.vault-status-dl dd {
  margin: 0;
}

.vault-manual-details summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* —— Ad slots —— */
.ad-slot {
  position: relative;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
}

.ad-slot-label {
  position: absolute;
  top: 0.4rem;
  right: 0.55rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.ad-slot-banner {
  min-height: 72px;
}

.ad-slot-infeed {
  margin: 1.25rem 0 0.5rem;
}

.ad-slot-footer {
  margin: 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.ad-house-pro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-right: 4.5rem;
}

.ad-house-headline {
  display: block;
  font-size: 1rem;
  color: #f0cc55;
}

.ad-house-body {
  margin: 0.25rem 0 0;
  max-width: 520px;
}

.ad-house-cta {
  flex-shrink: 0;
}

.ad-slot-programmatic:empty {
  display: none;
}

@media (max-width: 640px) {
  .ad-house-pro {
    padding-right: 0;
    padding-top: 1.25rem;
  }
}

/* —— BetGenie Intelligence: BGS · BOS · BGD · CY (Big Four) —— */
.intel-big-four {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem 0.7rem;
  width: 100%;
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(232, 184, 74, 0.08), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(232, 184, 74, 0.22);
  overflow: visible;
}

.intel-big-four-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.65rem 0.7rem;
}

.intel-metric {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.intel-metric .bgs-badge {
  max-width: 100%;
  flex-wrap: wrap;
}

.intel-big-four-compact .dna-badge-text {
  max-width: 5.5rem;
}

.intel-big-four-compact .cy-status-pill {
  font-size: 0.68rem;
  padding: 0.15rem 0.4rem;
}

.intel-metric-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.intel-metric .legend-term {
  position: relative;
  z-index: 2;
}

.intel-metric .legend-plus {
  flex-shrink: 0;
}

.intel-metric-value {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.1;
}

.intel-metric-sub {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* Welcome + tracking modals */
.welcome-track-backdrop {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
}

.welcome-track-backdrop[hidden] {
  display: none !important;
}

.welcome-track-modal {
  width: min(28rem, 100%);
  max-height: 90vh;
  overflow: auto;
}

.welcome-track-rg {
  margin: 1rem 0;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.08);
}

.welcome-track-helpline a {
  color: var(--accent-bright);
  font-weight: 700;
}

.welcome-track-dismiss-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 1rem;
  font-size: 0.88rem;
}

.feedback-widget {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 12000;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.85rem 0.9rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 184, 74, 0.45);
  background: linear-gradient(180deg, rgba(24, 22, 14, 0.98), rgba(16, 16, 22, 0.98));
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.feedback-widget[hidden] {
  display: none !important;
}

.feedback-widget-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.feedback-widget-title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.feedback-stars {
  display: flex;
  gap: 0.35rem;
}

.feedback-star {
  flex: 1;
  padding: 0.45rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--accent-bright);
  font-size: 1.1rem;
  cursor: pointer;
}

.feedback-star:hover {
  border-color: var(--accent);
  background: rgba(232, 184, 74, 0.12);
}

.feedback-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.feedback-chip {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
}

.feedback-chip:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
}

.bos-tier-pill {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.15);
}

.bos-tier-elite { color: #fde047; }
.bos-tier-premium { color: #fbbf24; }
.bos-tier-strong { color: #86efac; }
.bos-tier-watchlist { color: #93c5fd; }
.bos-tier-standard { color: var(--muted); }

.dna-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: color-mix(in srgb, var(--dna-color, #a78bfa) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--dna-color, #a78bfa) 45%, transparent);
  color: var(--dna-color, #e9d5ff);
  max-width: 100%;
}

.dna-badge-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.cy-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.12);
}

.cy-status-guaranteed { color: #86efac; border: 1px solid rgba(34, 197, 94, 0.35); }
.cy-status-recovery { color: #93c5fd; }
.cy-status-protected { color: #fde047; }
.cy-status-ineligible { color: var(--muted); }
.cy-status-closed { color: #fca5a5; }

.memory-overlay {
  margin: 0.45rem 0 0;
}

.memory-alert {
  margin: 0;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.memory-alert + .memory-alert {
  margin-top: 0.35rem;
}

.memory-alert-struggle {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.memory-alert-strength {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #bbf7d0;
}

.memory-alert-icon {
  flex-shrink: 0;
  font-weight: 700;
}

.memory-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0.75rem;
}

.memory-profile-list {
  margin: 0.25rem 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}

.memory-profile-archetypes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.dna-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 0.75rem;
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 16, 0.45);
  border: 1px solid var(--border);
}

.dna-strip-heading {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
  align-self: center;
}

.dna-strip-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  flex: 1;
  min-width: 0;
}

.dna-bar-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 7rem;
  flex: 1 1 7rem;
}

.dna-bar-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  width: 4.5rem;
  flex-shrink: 0;
}

.dna-bar-track {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.15);
  overflow: hidden;
}

.dna-bar-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #e8b84a, #f5d06a);
}

.why-this-bet {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
}

.why-this-bet summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent-bright);
}

.why-this-bet-list {
  margin: 0.4rem 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.dna-matches-title { font-size: 1rem; margin-bottom: 0.35rem; }

.dna-match-compact {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.dna-match-compact-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  flex: 1 1 140px;
}

.dna-match-pill {
  font-size: 0.78rem;
  line-height: 1.2;
}

.dna-match-chart {
  width: 88px;
  height: 42px;
  flex: 0 0 88px;
}

.dna-matches-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.dna-evolution-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dna-evolution-time {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-right: 0.5rem;
}

@media (max-width: 520px) {
  .intel-big-four:not(.intel-big-four-compact) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.dna-postmortem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 0.75rem 0;
}

.admin-wiki-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
}

.wiki-toolbar {
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
}

.wiki-search-input {
  width: 100%;
  max-width: 420px;
  margin-top: 0.35rem;
}

.admin-wiki-sidebar {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 0.75rem 1rem;
}

.wiki-page-list,
.wiki-toc ul {
  list-style: none;
  padding-left: 0;
  margin: 0.35rem 0 0.75rem;
}

.wiki-toc ul {
  padding-left: 0.85rem;
}

.wiki-toc-level-3 { font-size: 0.92rem; }
.wiki-toc-level-4 { font-size: 0.86rem; }

.admin-wiki-body {
  padding: 1rem 1.25rem;
  min-height: 320px;
}

.admin-wiki-body h1 { margin-top: 0; }
.admin-wiki-body h2 { margin-top: 1.25rem; scroll-margin-top: 1rem; }
.admin-wiki-body h3, .admin-wiki-body h4 { scroll-margin-top: 1rem; }

@media (max-width: 860px) {
  .admin-wiki-layout {
    grid-template-columns: 1fr;
  }
  .admin-wiki-sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .dna-postmortem-grid {
    grid-template-columns: 1fr;
  }
}

/* BetGenie Terminal — market intelligence board */
.terminal-shell {
  --terminal-panel-bg: rgba(15, 23, 42, 0.72);
  --terminal-border: rgba(148, 163, 184, 0.14);
  max-width: 1440px;
  margin: 0 auto;
}
.terminal-topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--terminal-border);
}
.terminal-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.terminal-tagline { margin: 0.2rem 0 0; }
.terminal-topbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.terminal-clock { font-size: 0.85rem; color: var(--gold, #e0b040); }
.terminal-data-chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--terminal-border);
  background: rgba(30, 41, 59, 0.5);
}
.terminal-league-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.terminal-tab {
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--terminal-border);
  background: rgba(30, 41, 59, 0.35);
  color: inherit;
}
.terminal-tab:hover { border-color: rgba(224, 176, 64, 0.45); }
.terminal-tab.active-tab {
  background: rgba(224, 176, 64, 0.15);
  border-color: rgba(224, 176, 64, 0.5);
  color: var(--gold, #e0b040);
}
.terminal-tab-muted { opacity: 0.75; font-weight: 500; }
.terminal-pulse {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.terminal-pulse-card {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: var(--terminal-panel-bg);
  border: 1px solid var(--terminal-border);
  text-align: center;
}
.terminal-pulse-val {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}
.terminal-pulse-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin-top: 0.15rem;
}
.terminal-pulse-hot .terminal-pulse-val { color: #f87171; }
.terminal-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.85rem;
}
.terminal-panel {
  grid-column: span 4;
  background: var(--terminal-panel-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  min-height: 120px;
}
.terminal-panel-wide { grid-column: span 8; }
.terminal-panel-full { grid-column: span 12; }
.terminal-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.terminal-panel-head h2 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
.terminal-panel-desc { margin: 0 0 0.5rem; }
.terminal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.terminal-table th,
.terminal-table td {
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  text-align: left;
  vertical-align: top;
}
.terminal-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.65;
  font-weight: 600;
}
.terminal-table-scroll { max-height: 280px; overflow: auto; }
.terminal-slate-table .terminal-table-scroll { max-height: 420px; }
.terminal-pick-cell { max-width: 220px; }
.terminal-subline { display: block; margin-top: 0.1rem; }
.terminal-metric { font-weight: 700; color: var(--gold, #e0b040); }
.terminal-gap-hot { color: #f87171; font-weight: 700; }
.terminal-row-live { background: rgba(34, 197, 94, 0.06); }
.terminal-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
}
.terminal-live-card {
  padding: 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--terminal-border);
  background: rgba(30, 41, 59, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.terminal-live-matchup { font-weight: 700; }
.terminal-empty { margin: 0.5rem 0; }
.terminal-footer-note { margin: 1.25rem 0 0; text-align: center; }
.live-dot-inline {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 0.25rem;
  animation: live-pulse 1.4s ease-in-out infinite;
}
@media (max-width: 1100px) {
  .terminal-panel,
  .terminal-panel-wide { grid-column: span 6; }
  .terminal-panel-full { grid-column: span 12; }
}
@media (max-width: 720px) {
  .terminal-panel,
  .terminal-panel-wide,
  .terminal-panel-full { grid-column: span 12; }
  .terminal-pulse { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .terminal-topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .terminal-topbar-meta {
    justify-content: space-between;
    width: 100%;
  }
  .terminal-title { font-size: 1.35rem; }
  .terminal-tagline { font-size: 0.72rem; }
  .terminal-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terminal-league-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 0.2rem;
    margin-bottom: 0.85rem;
  }
  .terminal-tab { flex: 0 0 auto; }
}

.bets-hub-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 1.25rem;
}

.bets-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.bets-hub-card:hover {
  border-color: var(--gold, #c9a227);
  transform: translateY(-1px);
}

.bets-hub-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.bets-hub-link {
  color: var(--gold, #c9a227);
  font-size: 0.9rem;
  font-weight: 600;
}

.bets-hub-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bets-hub-sublist a {
  display: block;
  padding: 0.35rem 0;
}

.bets-hub-subtitle {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.bets-hub-card-props {
  border-color: rgba(56, 189, 248, 0.35);
}

.bets-hub-card-props:hover {
  border-color: rgba(56, 189, 248, 0.65);
}

.game-props-strip .section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.game-props-strip .section-header h3 {
  margin: 0;
}

.game-props-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.entity-props-block .section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.entity-props-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

/* Homepage live intelligence pulse */
.home-pulse {
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.1rem;
  position: relative;
  overflow: hidden;
}
.home-pulse-live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.home-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold, #e0b040);
  box-shadow: 0 0 0 0 rgba(224, 176, 64, 0.55);
  animation: home-pulse-dot 2s ease-in-out infinite;
}
@keyframes home-pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 176, 64, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(224, 176, 64, 0); }
}
.home-pulse-live-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold, #e0b040);
  font-weight: 600;
}
.home-pulse-grid {
  margin-bottom: 0;
}
.home-pulse-card.home-pulse-gold .terminal-pulse-val {
  color: var(--gold, #e0b040);
}
.home-pulse-updated .home-pulse-card {
  animation: home-pulse-flash 1.2s ease;
}
@keyframes home-pulse-flash {
  0% { border-color: rgba(224, 176, 64, 0.15); }
  30% { border-color: rgba(224, 176, 64, 0.85); box-shadow: 0 0 12px rgba(224, 176, 64, 0.25); }
  100% { border-color: var(--terminal-border, rgba(255,255,255,0.08)); }
}
.home-ticket-count {
  font-size: 0.85em;
  color: var(--gold, #e0b040);
  margin-left: 0.25rem;
}
.home-wc2026-board {
  margin-bottom: 1.25rem;
}
.pick-unlock-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px dashed rgba(224, 176, 64, 0.35);
  background: rgba(224, 176, 64, 0.06);
}
.pick-unlock-btn {
  white-space: nowrap;
}
.pick-unlock-remaining {
  display: block;
  width: 100%;
}

/* —— Tester hub —— */
.tester-hub-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.tester-checklist {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
}
.tester-checklist li { margin-bottom: 0.45rem; }
.tester-briefing-modal { max-width: 26rem; }
.tester-briefing-subhead {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.95rem;
}
.tester-briefing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.tester-report-form textarea,
.tester-report-form input[type="text"],
.tester-report-form input[type="url"] {
  width: 100%;
}
.tester-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.tester-report-meta {
  display: grid;
  gap: 0.35rem 1rem;
  grid-template-columns: auto 1fr;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.tester-report-meta dt { color: var(--muted); }
.tester-report-pre {
  white-space: pre-wrap;
  font-family: var(--font);
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}
.tester-report-body { margin-bottom: 1rem; }
.tester-admin-response { border-color: rgba(59, 130, 246, 0.35); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: #93c5fd; }
.community-chat-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.2rem;
}
.community-chat-msg-actions .btn-xs {
  font-size: 0.68rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.community-chat-msg-actions .btn-xs:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.community-chat-expand {
  text-decoration: none;
  margin-right: 0.25rem;
}

.community-fullpage-layout {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 1rem;
  min-height: calc(100vh - 12rem);
  align-items: stretch;
  background: linear-gradient(180deg, rgba(16,22,34,0.6), var(--bg, #070b10));
  border-radius: 12px;
  padding: 0.5rem;
}

.community-fullpage-sidebar {
  padding: 1rem;
  max-height: calc(100vh - 10rem);
  overflow: auto;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}

.community-fullpage-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.community-fullpage-sidebar-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.community-fullpage-room-tree {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.community-fullpage-room-group {
  margin-top: 0.5rem;
}

.community-fullpage-room-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.community-fullpage-room {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.community-fullpage-room.is-active,
.community-fullpage-room:hover {
  border-color: var(--border);
  background: rgba(201, 162, 39, 0.08);
}
/* testers room prominent at top */
.community-fullpage-room[data-room-slug="testers"] {
  font-weight: 600;
  border-color: rgba(52, 211, 153, 0.35);
}

.community-fullpage-main {
  min-height: 380px;
}

/* Wider chat area on desktop responsive */
@media (min-width: 1100px) {
  .community-fullpage-layout {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 1.25rem;
  }
}
@media (min-width: 1400px) {
  .community-fullpage-layout {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 1.5rem;
  }
}

.community-members-panel {
  margin-top: 1rem;
  padding: 0.75rem;
}

.community-members-title {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #888);
}

.community-members-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 14rem;
  overflow-y: auto;
}

.community-overlay-members {
  margin: 0.35rem 0.75rem 0.5rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.2));
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
}

.community-overlay-members-summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  list-style: none;
}

.community-overlay-members-summary::-webkit-details-marker {
  display: none;
}

.community-members-list--compact {
  max-height: 8rem;
  margin-top: 0.35rem;
}

.community-members-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

.community-members-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--muted, #666);
  flex-shrink: 0;
}

.community-members-item.status-online .community-members-dot {
  background: #3ddc84;
}

.community-members-item.status-idle .community-members-dot {
  background: #f0ad4e;
}

.community-members-mod {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--accent, #c9a227);
}

.community-room-unread {
  margin-left: auto;
  min-width: 1.25rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: var(--accent, #c9a227);
  color: #111;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.community-chat-unread-total {
  position: absolute;
  top: -0.2rem;
  right: -0.15rem;
  min-width: 1.1rem;
  padding: 0.05rem 0.3rem;
  border-radius: 999px;
  background: #f87171;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
}

#community-chat-minibar {
  position: relative;
}

.community-chat-room-trigger.has-room-unread .community-chat-room-chevron::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.25rem;
  border-radius: 50%;
  background: var(--accent, #c9a227);
  vertical-align: middle;
}

.community-chat-room-option {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.community-chat-room-option .community-room-unread {
  flex-shrink: 0;
}

.parlay-bgna-warnings {
  margin: 0.5rem 0 0;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid #e6a23c;
  background: rgba(230, 162, 60, 0.08);
  border-radius: 0.25rem;
}

.parlay-bgna-warning {
  margin: 0.15rem 0;
  font-size: 0.85rem;
  color: var(--text-muted, #ccc);
}

body[data-community-fullpage="1"] #community-chat-fab,
body[data-community-fullpage="1"] #community-chat-tooltip {
  display: none !important;
}

body[data-community-fullpage="1"] #community-chat-dock {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  height: 100%;
}

body[data-community-fullpage="1"] #community-chat-dock .community-chat-panel {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  display: flex;
  flex-direction: column;
  background: var(--card-solid, #101622);
}

body[data-community-fullpage="1"] #community-chat-minibar {
  display: none !important;
}

body[data-community-fullpage="1"] #community-chat-panel-wrap {
  display: flex !important;
  flex: 1;
  height: 100%;
}

body[data-community-fullpage="1"] #community-chat-messages {
  max-height: none;
  flex: 1;
  min-height: 300px;
  font-size: 1.2rem;
  line-height: 1.55;
}

.bgna-pulse-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bgna-pulse-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.bgna-sentiment-pill {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.bgna-pulse-item.sentiment-positive .bgna-sentiment-pill {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
}

.bgna-pulse-item.sentiment-negative .bgna-sentiment-pill {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.35);
}

.bgna-pulse-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bgna-pulse-pending {
  color: var(--accent, #60a5fa);
}

.bgna-pulse-ollama .bgna-pulse-title::after {
  content: " ✦";
  opacity: 0.55;
  font-size: 0.75em;
}

.bgna-signal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  margin: 0.25rem 0 0.35rem;
  border: 1px solid var(--border);
}

.bgna-signal-badge-positive {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
}

.bgna-signal-badge-warn {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

.bgna-signal-badge-neutral {
  color: var(--muted);
}

.pm-signal-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  margin: 0.25rem 0 0.35rem;
  border: 1px solid var(--border);
  cursor: help;
}
.pm-signal-badge-agreement {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
}
.pm-signal-badge-divergence {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.35);
}

/* PM divergence table — crowd vs Vegas gap coloring */
.pm-gap-pos {
  color: #4ade80;
  font-weight: 600;
}
.pm-gap-neg {
  color: #f87171;
  font-weight: 600;
}
.pm-gap-neutral {
  color: var(--muted);
}

/* PM5A — Market Bridge page */
.pm-bridge-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
}
.pm-bridge-alpha-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.pm-bridge-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.pm-bridge-card {
  border-left: 3px solid var(--border);
}
.pm-bridge-tier-alpha {
  border-left-color: #e0b040;
}
.pm-bridge-tier-thin {
  border-left-color: #fbbf24;
}
.pm-bridge-card-head {
  margin-bottom: 0.75rem;
}
.pm-bridge-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
}
.pm-bridge-source {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold, #e0b040);
}
.pm-bridge-alpha-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(224, 176, 64, 0.15);
  color: #e0b040;
}
.pm-bridge-thin-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
}
.pm-bridge-herd-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.pm-bridge-wisdom-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
}
.pm-bridge-efficient-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
}
.pm-brief-alpha-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.pm-brief-alpha-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.65rem;
}
.pm-brief-alpha-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.25rem;
}
.pm-brief-charts {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .pm-brief-charts {
    grid-template-columns: 1fr 1fr;
  }
}
.pm-brief-chart {
  min-height: 240px;
}
.pm-home-alpha-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.pm-home-alpha-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: rgba(224, 176, 64, 0.08);
  border: 1px solid rgba(224, 176, 64, 0.2);
  text-decoration: none;
  color: inherit;
  font-size: 0.78rem;
  max-width: 9rem;
}
.pm-home-alpha-chip:hover {
  border-color: rgba(224, 176, 64, 0.45);
}
.pm-home-alpha-source {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold, #e0b040);
}
.pm-home-alpha-gap {
  color: #f87171;
}
.pm-home-alpha-more {
  justify-content: center;
  align-items: center;
  font-weight: 600;
  color: var(--gold, #e0b040);
}
.pm-position-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.pm-position-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.35rem;
}
.pm-bridge-title {
  font-size: 1rem;
  margin: 0.25rem 0;
}
.pm-bridge-compare {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0;
}
.pm-bridge-stat-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.pm-bridge-stat-val {
  font-size: 1.05rem;
  font-weight: 600;
}
.pm-bridge-narrative {
  line-height: 1.45;
  margin: 0.5rem 0 0.75rem;
}
.pm-bridge-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pm-crowd-callout {
  margin-top: 1rem;
}
.pm-crowd-example {
  margin-top: 0.5rem;
  font-style: italic;
}
a.pm-signal-badge {
  text-decoration: none;
}
a.pm-signal-badge:hover {
  filter: brightness(1.15);
}

.community-fullpage-main {
  min-height: calc(100vh - 10rem);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 10rem);
}

.community-fullpage-mobile-tabs {
  display: none;
  grid-column: 1 / -1;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}

.community-fullpage-mobile-tab {
  flex: 1;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  background: transparent;
  color: inherit;
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.community-fullpage-mobile-tab.is-active {
  background: rgba(232, 184, 74, 0.18);
  border-color: rgba(232, 184, 74, 0.45);
}

@media (max-width: 900px) {
  .community-fullpage-layout {
    grid-template-columns: 1fr;
  }
  .community-fullpage-sidebar {
    max-height: none;
  }
}

@media (max-width: 768px) {
  .community-fullpage-mobile-tabs {
    display: flex;
  }
  .community-fullpage-layout {
    min-height: auto;
  }
  .community-fullpage-sidebar,
  .community-fullpage-main {
    max-height: none;
  }
  .community-members-panel {
    margin-top: 0;
  }
  .tester-hub-head .btn { width: 100%; }
}

/* Site map */
.sitemap-page {
  padding: 1.25rem 1.5rem;
}
.sitemap-page__head {
  margin-bottom: 1.5rem;
}
.sitemap-page__intro {
  max-width: 42rem;
}
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.25rem 1.5rem;
}
.sitemap-section__title {
  font-size: 1rem;
  margin: 0 0 0.65rem;
}
.sitemap-subsection {
  margin-top: 0.85rem;
}
.sitemap-subsection__title {
  font-size: 0.85rem;
  margin: 0 0 0.35rem;
  color: var(--muted, #94a3b8);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sitemap-section__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sitemap-link {
  text-decoration: none;
}
.sitemap-link:hover {
  text-decoration: underline;
}
