/* NoBall navigation and account workspace — shared across every storefront page. */
:root {
  --nb-header: #062846;
  --nb-header-deep: #031a30;
  --nb-surface: #102037;
  --nb-surface-2: #172a44;
  --nb-line: rgba(148, 163, 184, .22);
  --nb-focus: #fbbf24;
}

/* Real-money account clarity: dense, auditable records without hiding data in cards. */
.core-activity-list { display: grid; gap: 10px; margin-top: 12px; }
.core-activity-row { padding: 14px 0; border-top: 1px solid var(--nb-line); }
.core-activity-row:first-child { border-top: 0; }
.core-activity-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.core-activity-head strong,
.core-activity-head small { display: block; overflow-wrap: anywhere; }
.core-activity-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 18px; margin: 12px 0 0; }
.core-activity-facts dt { color: var(--color-text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.core-activity-facts dd { margin: 2px 0 0; color: var(--color-text-primary); font-weight: 650; overflow-wrap: anywhere; }
.core-record-actions,
.core-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.core-pagination span { color: var(--color-text-muted); font-size: 13px; text-align: center; }
.core-confirmation { padding: 16px; border-left: 3px solid var(--color-accent-secondary); background: rgba(245, 158, 11, .08); }
.core-confirmation p { margin: 6px 0 0; }
.core-danger-zone { border-color: rgba(239, 68, 68, .48); }
.core-metric.is-positive strong { color: #6ee7b7; }
.core-metric.is-negative strong { color: #fca5a5; }
.core-wallet-breakdown { margin-top: 18px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.core-statement .core-filter-bar { align-items: end; }
.core-statement .core-record-actions small { max-width: 38ch; }
.core-mobile-betslip { display: none; }
.core-betslip { display: grid; gap: 12px; }
.core-betslip h2,
.core-betslip h3,
.core-betslip p { margin: 0; }
.core-sports-event { display: grid; gap: 10px; }
.core-sports-markets { display: grid; gap: 10px; }
.core-sports-market { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--nb-line); }
.core-price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.core-price-button,
.core-price-static { min-height: 44px; padding: 9px 11px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(96, 165, 250, .52); border-radius: 9px; background: rgba(37, 99, 235, .18); color: #dbeafe; font-weight: 750; text-align: center; }
.core-price-button:hover { border-color: #5eead4; background: rgba(45, 212, 191, .18); }
.core-price-static { opacity: .7; }

@media (max-width: 900px) {
  .core-activity-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .core-wallet-breakdown { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .core-activity-head,
  .core-record-actions { align-items: stretch; flex-direction: column; }
  .core-activity-facts { grid-template-columns: 1fr 1fr; }
  .core-pagination { display: grid; grid-template-columns: 1fr 1fr; }
  .core-pagination span { grid-column: 1 / -1; grid-row: 1; }
  .core-pagination .btn { width: 100%; }
}

@media print {
  .top-header,
  .left-sidebar,
  .right-sidebar,
  .bottom-nav,
  .core-workspace-tabs,
  .core-filter-bar,
  .core-record-actions,
  .core-pagination { display: none !important; }
  body,
  .core-panel,
  .core-activity-row { color: #111 !important; background: #fff !important; box-shadow: none !important; }
}

html {
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 234, 212, .58) #06182b;
  scroll-padding-top: 88px;
}
* { scrollbar-width: thin; scrollbar-color: rgba(94, 234, 212, .58) rgba(4, 20, 36, .74); }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: rgba(4, 20, 36, .74); }
*::-webkit-scrollbar-thumb { border: 2px solid rgba(4, 20, 36, .74); border-radius: 999px; background: rgba(94, 234, 212, .58); }
*::-webkit-scrollbar-thumb:hover { background: rgba(94, 234, 212, .82); }
body { min-width: 320px; overflow-x: hidden; }
button, a, select, input, textarea { font: inherit; }
button, a[href], summary, select { cursor: pointer; }
button:disabled, select:disabled, input:disabled { cursor: not-allowed; opacity: .58; }
textarea { resize: none; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--nb-focus);
  outline-offset: 2px;
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 72px;
  padding: 10px clamp(14px, 2.2vw, 34px);
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  background: linear-gradient(100deg, var(--nb-header-deep), var(--nb-header) 58%, #073e55);
  border-bottom: 1px solid rgba(45, 212, 191, .34);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
}

.top-header .logo {
  min-width: 132px;
  min-height: 44px;
  display: flex;
  align-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}
.top-header .runtime-brand-logo { width: auto; height: 46px; max-width: min(210px, 34vw); object-fit: contain; }
.runtime-brand-name { color: #fff; font-size: 22px; font-weight: 850; letter-spacing: -.02em; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 9px; min-width: 0; }
.header-actions .btn { min-height: 42px; white-space: nowrap; }
.core-language-select { width: auto; min-width: 86px; min-height: 42px; }

.nb-menu-toggle {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--nb-line);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.nb-drawer-close { display: none; }
.nb-header-nav { min-width: 0; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-gutter: stable; }
.nb-header-nav a {
  min-height: 42px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
}
.nb-header-nav a:hover, .nb-header-nav a[aria-current="page"] { color: #fff; background: rgba(45, 212, 191, .14); }

.core-auth-summary { position: relative; flex-wrap: nowrap; }
.core-auth-summary > .btn-primary { background: rgba(16, 185, 129, .18); color: #d1fae5; border: 1px solid rgba(45, 212, 191, .38); }
.nb-account-trigger { min-height: 42px; padding: 0 13px; }
.nb-account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 120;
  width: min(330px, calc(100vw - 24px));
  max-height: min(690px, calc(100vh - 92px));
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--nb-line);
  border-radius: 16px;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
}
.nb-account-menu[hidden] { display: none; }
.nb-account-head { padding: 12px 12px 14px; border-bottom: 1px solid #dbe3ed; }
.nb-account-head strong, .nb-account-head small { display: block; overflow-wrap: anywhere; }
.nb-account-head small { margin-top: 4px; color: #64748b; }
.nb-account-group { padding: 10px 0; border-bottom: 1px solid #e2e8f0; }
.nb-account-group:last-child { border-bottom: 0; }
.nb-account-group > span { display: block; padding: 0 10px 6px; color: #64748b; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.nb-account-menu a, .nb-account-menu button {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #172033;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font-weight: 650;
}
.nb-account-menu a:hover, .nb-account-menu button:hover { background: #eaf2f8; color: #036a68; }

.nb-side-navigation { display: grid; gap: 5px; }
.nb-side-navigation > a, .nb-side-navigation summary {
  min-height: 46px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 680;
  cursor: pointer;
  list-style: none;
}
.nb-side-navigation summary::-webkit-details-marker { display: none; }
.nb-side-navigation summary::after { content: '+'; color: #94a3b8; font-size: 18px; font-weight: 400; }
.nb-side-navigation details[open] summary::after { content: '\2212'; }
.nb-side-navigation > a:hover, .nb-side-navigation summary:hover, .nb-side-navigation [aria-current="page"] { color: #fff; background: rgba(45, 212, 191, .12); }
.nb-side-navigation details > div { margin: 2px 0 8px 10px; padding-left: 9px; display: grid; border-left: 1px solid rgba(45, 212, 191, .28); }
.nb-side-navigation details a {
  min-height: 40px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
}
.nb-side-navigation details a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nb-side-label { margin: 15px 12px 6px; color: #5eead4; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.left-sidebar { padding: 10px; background: rgba(6, 25, 45, .78); border: 1px solid var(--nb-line); border-radius: 14px; }
.nb-drawer-backdrop { display: none; }
.nb-drawer-backdrop[hidden] { display: none !important; }

.bottom-nav {
  min-height: 68px;
  padding: 8px max(6px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  background: rgba(4, 20, 36, .96);
  border-top: 1px solid rgba(45, 212, 191, .3);
  box-shadow: 0 -16px 36px rgba(0,0,0,.36);
}
.bottom-nav .nav-item {
  appearance: none;
  min-width: 58px;
  min-height: 50px;
  padding: 7px 6px;
  justify-content: center;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: #dbeafe;
  font-size: 11px;
  font-weight: 750;
}
.bottom-nav .nav-item.active, .bottom-nav .nav-item[aria-current="page"] { color: #05251f; background: #2dd4bf; }
.bottom-nav .nb-home-item { transform: translateY(-13px); border: 6px solid #07192c; border-radius: 18px; background: #10b981; color: #042c27; }

.core-workspace { margin-top: 30px; padding: 22px; border: 1px solid var(--nb-line); border-radius: 18px; background: rgba(7, 23, 40, .48); }
.core-workspace > h2 { font-size: 22px; }
.core-workspace-tabs { margin: 0 -4px 18px; padding: 4px 4px 12px; gap: 7px; }
.core-workspace-tabs { scrollbar-width: thin; scrollbar-color: rgba(94, 234, 212, .65) rgba(4, 20, 36, .7); }
.core-workspace-tabs::-webkit-scrollbar { height: 6px; }
.core-workspace-tabs::-webkit-scrollbar-track { background: rgba(4, 20, 36, .7); border-radius: 999px; }
.core-workspace-tabs::-webkit-scrollbar-thumb { background: rgba(94, 234, 212, .65); border-radius: 999px; }
.core-workspace-tabs .btn { border-color: var(--nb-line); background: #0f223b; color: #cbd5e1; }
.core-workspace-tabs [aria-current="page"] { background: #10b981; color: #03251f; border-color: #34d399; }
.core-workspace-content { grid-template-columns: minmax(0, 1fr); }
.core-panel { padding: clamp(16px, 2.4vw, 26px); border-color: var(--nb-line); background: linear-gradient(145deg, rgba(23, 42, 68, .95), rgba(12, 29, 50, .96)); box-shadow: 0 16px 30px rgba(0,0,0,.16); }
.core-definition-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.core-definition-grid div, .core-metric { border-color: var(--nb-line); background: rgba(4, 20, 36, .68); }
.core-list-row { border-color: var(--nb-line); background: rgba(4, 20, 36, .7); }
.core-filter-bar { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.core-filter-bar .core-field { min-width: 150px; flex: 1 1 170px; }
.core-search-control, .core-password-control { position: relative; display: block; width: 100%; }
.core-search-control .input-field, .core-password-control .input-field { width: 100%; padding-right: 74px; }
.core-search-clear, .core-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 54px;
  min-height: 34px;
  padding: 4px 8px;
  transform: translateY(-50%);
  border: 1px solid var(--nb-line);
  border-radius: 8px;
  background: #17304e;
  color: #d9f9f3;
  font-size: 12px;
  font-weight: 750;
}
.core-search-clear[hidden] { display: none; }
.auth-form-utility { display: flex; justify-content: flex-end; margin-top: -2px; }
.auth-text-action { min-height: 40px; padding: 6px 0; border: 0; background: transparent; color: #5eead4; font-weight: 700; }
.auth-form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-submit { width: 100%; min-height: 48px; }
.core-external-auth { display: grid; gap: 8px; margin-top: 18px; }
.core-external-auth .btn { width: 100%; }
.core-empty-state { padding: 34px 18px; text-align: center; border: 1px dashed var(--nb-line); border-radius: 12px; color: #94a3b8; }
.core-state-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; background: rgba(45,212,191,.11); color: #5eead4; font-size: 11px; font-weight: 800; }
.nb-category-strip { margin: 0 16px 24px; padding: 10px; display: flex; gap: 8px; overflow-x: auto; border: 1px solid var(--nb-line); border-radius: 14px; background: rgba(6, 31, 54, .72); scrollbar-width: thin; }
.nb-category-strip a { min-height: 42px; padding: 9px 15px; display: inline-flex; align-items: center; border-radius: 9px; color: #cbd5e1; text-decoration: none; white-space: nowrap; font-weight: 720; }
.nb-category-strip a:hover { color: #05251f; background: #2dd4bf; }
.core-game-visual { min-height: 118px; display: grid; place-items: center; padding: 18px; background: linear-gradient(145deg, #173556, #0c2038); color: #5eead4; font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.nb-site-footer { margin-top: 36px; padding: 30px clamp(18px, 4vw, 52px) 98px; border-top: 1px solid var(--nb-line); background: #06182b; color: #94a3b8; }
.nb-site-footer__inner { width: min(100%, 1080px); margin: 0 auto; display: grid; gap: 18px; text-align: center; }
.nb-site-footer strong { color: #f8fafc; font-size: 17px; }
.nb-site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; }
.nb-site-footer a { color: #cbd5e1; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.nb-site-footer a:hover { color: #5eead4; }
.nb-site-footer p { max-width: 760px; margin: 0 auto; font-size: 12px; line-height: 1.65; }
.left-sidebar { scrollbar-width: thin; scrollbar-color: rgba(94, 234, 212, .55) transparent; }
.left-sidebar::-webkit-scrollbar { width: 6px; }
.left-sidebar::-webkit-scrollbar-track { background: transparent; }
.left-sidebar::-webkit-scrollbar-thumb { background: rgba(94, 234, 212, .48); border-radius: 999px; }

@media (min-width: 1024px) {
  .nb-menu-toggle { width: 76px; }
  .desktop-layout, .sidebar-layout { display: grid; grid-template-columns: 242px minmax(0, 1fr) 286px; align-items: start; max-width: 1580px; margin: 0 auto; padding: 28px 24px 54px; gap: 24px; }
  .main-feed, .main-content { width: auto; min-width: 0; }
  .left-sidebar { position: sticky; top: 96px; width: auto; max-height: calc(100vh - 118px); overflow-y: auto; }
  .sidebar-right, .right-sidebar { position: sticky; top: 96px; width: auto; }
  .bottom-nav { display: none; }
  body.nb-sidebar-collapsed .desktop-layout, body.nb-sidebar-collapsed .sidebar-layout { grid-template-columns: minmax(0, 1fr) 286px; }
  body.nb-sidebar-collapsed .left-sidebar { display: none; }
}

@media (max-width: 1180px) and (min-width: 1024px) {
  .desktop-layout, .sidebar-layout { grid-template-columns: 214px minmax(0,1fr); }
  .sidebar-right, .right-sidebar { display: none; }
  .nb-header-nav a:nth-last-child(-n+2) { display: none; }
}

@media (max-width: 1023px) {
  .app-container, .layout-container { padding-bottom: 78px; }
  .top-header { min-height: 62px; grid-template-columns: auto minmax(0,1fr) auto; gap: 9px; padding: 8px 10px; }
  .top-header .logo { min-width: 0; }
  .top-header .runtime-brand-logo { height: 38px; max-width: 150px; }
  .runtime-brand-name { font-size: 18px; }
  .nb-header-nav { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .caption, .core-auth-summary > .btn-primary, .core-language-select { display: none; }
  .header-actions .btn { min-height: 40px; padding: 8px 11px; font-size: 12px; }
  .desktop-layout, .sidebar-layout { display: block; padding: 16px 12px 34px; }
  .left-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 110;
    display: block !important;
    width: min(320px, 87vw);
    max-height: none;
    overflow-y: auto;
    padding: 78px 14px 30px;
    border: 0;
    border-right: 1px solid var(--nb-line);
    border-radius: 0;
    background: #06182b;
    transform: translateX(-102%);
    transition: transform .22s ease;
  }
  .nb-drawer-close {
    display: flex;
    width: 100%;
    min-height: 44px;
    margin-bottom: 8px;
    padding: 10px 13px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--nb-line);
    border-radius: 10px;
    background: rgba(255,255,255,.06);
    color: #fff;
    font-weight: 750;
  }
  body.nb-menu-open .left-sidebar { transform: translateX(0); }
  .nb-drawer-backdrop { position: fixed; inset: 0; z-index: 105; display: block; border: 0; background: rgba(0,0,0,.66); opacity: 0; pointer-events: none; transition: opacity .22s ease; }
  body.nb-menu-open .nb-drawer-backdrop { opacity: 1; pointer-events: auto; }
  .main-feed, .main-content { width: 100%; min-width: 0; }
  .core-mobile-betslip { display: block; margin: 14px 0; }
  .hero-banner { margin-left: 0; margin-right: 0; }
  .core-workspace { padding: 14px; margin-top: 20px; }
  .core-definition-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 520px) {
  .top-header .runtime-brand-logo { height: 38px; max-width: 52px; }
  .runtime-brand-name { display: inline; font-size: 15px; }
  .top-header .logo { gap: 3px; }
  .top-header .logo { font-size: 20px; }
  .nb-menu-toggle { padding: 0 10px; font-size: 12px; }
  .header-actions > .btn-secondary { display: none; }
  .bottom-nav .nav-item { min-width: 48px; font-size: 10px; }
  .core-definition-grid { grid-template-columns: 1fr; }
  .core-workspace > h2 { font-size: 19px; }
  .core-panel { padding: 15px; }
  .core-list-row { align-items: flex-start; flex-direction: column; }
  .nb-category-strip { margin: 0 0 20px; }
}

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

@media (forced-colors: active) {
  * { scrollbar-color: auto; }
  button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid CanvasText; }
}
