:root {
  color-scheme: dark;
  --bg: #07080d;
  --bg-2: #0c0f17;
  --panel: rgba(17, 20, 30, 0.84);
  --panel-2: rgba(24, 28, 41, 0.94);
  --panel-3: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f6f7fb;
  --muted: #99a1b3;
  --muted-2: #697083;
  --orange: #ff6a22;
  --orange-2: #ff9f40;
  --green: #35d895;
  --red: #ff4e64;
  --yellow: #f7c948;
  --blue: #62a7ff;
  --purple: #9f7cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --sidebar: 292px;
  --topbar: 82px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 106, 34, 0.23), transparent 31rem),
    radial-gradient(circle at 93% 2%, rgba(98, 167, 255, 0.16), transparent 26rem),
    radial-gradient(circle at 70% 105%, rgba(159, 124, 255, 0.12), transparent 22rem),
    linear-gradient(145deg, #05060a 0%, #0a0d15 45%, #080a10 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at top, rgba(0,0,0,0.9), transparent 75%);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: inherit; text-decoration: none; }

.app-shell { min-height: 100vh; }
.boot-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--muted);
  gap: 16px;
}
.boot-logo {
  width: 82px;
  height: 82px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), #9d310f);
  color: #fff;
  font-weight: 1000;
  font-size: 34px;
  box-shadow: 0 24px 80px rgba(255, 106, 34, .28);
}

.shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(7, 8, 13, 0.78);
  backdrop-filter: blur(26px);
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 8px 20px;
}
.logo-mark {
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.26), transparent 24px),
    linear-gradient(145deg, var(--orange), #a63512);
  color: white;
  font-weight: 950;
  letter-spacing: -.06em;
  box-shadow: 0 18px 52px rgba(255, 106, 34, .23);
}
.brand h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -.04em;
  line-height: 1;
}
.brand p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.launch-strip {
  margin: 0 8px 18px;
  padding: 14px;
  border: 1px solid rgba(255, 106, 34, .26);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 106, 34, .14), rgba(255, 255, 255, .045));
}
.launch-strip strong { display: block; font-size: 13px; }
.launch-strip span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.nav-group { display: grid; gap: 6px; }
.nav-button {
  width: 100%;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
}
.nav-button:hover { color: var(--text); background: rgba(255,255,255,.055); }
.nav-button.active {
  color: white;
  border-color: rgba(255, 106, 34, .38);
  background: linear-gradient(135deg, rgba(255, 106, 34, .18), rgba(255, 255, 255, .055));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}
.nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,.065);
  color: white;
  font-size: 14px;
}
.nav-label { font-weight: 700; font-size: 14px; }
.nav-count {
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #0a0d10;
  background: var(--orange-2);
  font-size: 11px;
  font-weight: 900;
}

.sidebar-footer {
  margin: 18px 8px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.sidebar-footer strong { color: var(--text); }

.main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 13, .64);
  backdrop-filter: blur(22px);
}
.mobile-menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: white;
  background: rgba(255,255,255,.06);
}
.page-title h2 {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1;
  letter-spacing: -.05em;
}
.page-title p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(53, 216, 149, .12);
}

.content {
  padding: 26px;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 24px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 106, 34, .36), transparent 22rem),
    radial-gradient(circle at 15% 90%, rgba(98, 167, 255, .12), transparent 20rem),
    linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -8rem -14rem auto;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  border: 48px solid rgba(255,255,255,.045);
}
.hero-copy { position: relative; z-index: 1; align-self: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 106, 34, .35);
  border-radius: 999px;
  background: rgba(255, 106, 34, .12);
  color: #ffd3bd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.hero h3 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(40px, 7vw, 84px);
  line-height: .91;
  letter-spacing: -.08em;
}
.hero h3 span { color: var(--orange-2); }
.hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #c9ceda;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}
.live-card {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background: rgba(8, 10, 16, .58);
  backdrop-filter: blur(18px);
}
.live-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.live-card h4 { margin: 0; font-size: 16px; letter-spacing: -.03em; }
.live-card p { margin: 6px 0 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #adffd9;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pulse::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(53,216,149,.5);
  animation: ping 1.7s infinite;
}
@keyframes ping { to { box-shadow: 0 0 0 13px rgba(53,216,149,0); } }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.stat-mini {
  padding: 12px;
  border-radius: 17px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}
.stat-mini b { display: block; font-size: 22px; letter-spacing: -.05em; }
.stat-mini span { color: var(--muted); font-size: 11px; font-weight: 700; }

.section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.span-12 { grid-column: span 12; }
.span-8 { grid-column: span 8; }
.span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-3 { grid-column: span 3; }

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(0,0,0,.22);
}
.card.pad { padding: 20px; }
.card.tight { border-radius: 22px; }
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 0;
}
.card-title { margin: 0; font-size: 19px; letter-spacing: -.045em; }
.card-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.card-body { padding: 18px 20px 20px; }

.glow-orange::before, .glow-blue::before, .glow-green::before {
  content: "";
  position: absolute;
  inset: -11rem auto auto -10rem;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(16px);
}
.glow-orange::before { background: rgba(255, 106, 34, .14); }
.glow-blue::before { background: rgba(98, 167, 255, .13); }
.glow-green::before { background: rgba(53, 216, 149, .12); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: white;
  background: rgba(255,255,255,.07);
  font-weight: 850;
  font-size: 13px;
  letter-spacing: -.01em;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.28); }
.btn.primary {
  border-color: rgba(255, 106, 34, .55);
  background: linear-gradient(135deg, var(--orange), #d44716);
  box-shadow: 0 15px 35px rgba(255, 106, 34, .2);
}
.btn.primary:hover { box-shadow: 0 19px 44px rgba(255, 106, 34, .28); }
.btn.green { border-color: rgba(53, 216, 149, .35); background: rgba(53,216,149,.12); color: #b8ffe0; }
.btn.blue { border-color: rgba(98, 167, 255, .35); background: rgba(98,167,255,.12); color: #cfe4ff; }
.btn.red { border-color: rgba(255, 78, 100, .38); background: rgba(255,78,100,.11); color: #ffd3d9; }
.btn.ghost { background: transparent; }
.btn.full { width: 100%; }
.btn.small { min-height: 34px; padding: 7px 10px; border-radius: 11px; font-size: 12px; }

.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.045);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}
.badge.orange { border-color: rgba(255,106,34,.32); color: #ffd2bd; background: rgba(255,106,34,.1); }
.badge.green { border-color: rgba(53,216,149,.32); color: #c0ffe3; background: rgba(53,216,149,.09); }
.badge.blue { border-color: rgba(98,167,255,.32); color: #d3e7ff; background: rgba(98,167,255,.09); }
.badge.red { border-color: rgba(255,78,100,.32); color: #ffd3d9; background: rgba(255,78,100,.09); }
.badge.yellow { border-color: rgba(247,201,72,.34); color: #fff1b0; background: rgba(247,201,72,.09); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-grid.single { grid-template-columns: 1fr; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; gap: 8px; }
.field.span-2 { grid-column: span 2; }
.field label {
  color: #c7cedd;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  outline: none;
  color: white;
  background: rgba(255,255,255,.055);
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input[type="color"] { padding: 4px; height: 44px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(255, 106, 34, .55);
  box-shadow: 0 0 0 4px rgba(255,106,34,.12);
  background: rgba(255,255,255,.075);
}
.field small { color: var(--muted-2); font-size: 12px; line-height: 1.35; }
.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: #d6dbea;
  line-height: 1.45;
  font-size: 13px;
}
.check-line input { margin-top: 2px; accent-color: var(--orange); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.data-table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}
.data-table td { color: #e9ecf5; font-size: 13px; }
.data-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow: auto; }

.court-grid, .team-grid, .feed-grid, .stat-card-grid, .guardrail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.court-card, .team-card, .feed-card, .guard-card, .stat-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.045);
  overflow: hidden;
}
.court-card { padding: 16px; }
.court-top, .team-top, .feed-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.court-card h4, .team-card h4, .feed-card h4, .stat-card h4 { margin: 0; font-size: 16px; letter-spacing: -.035em; }
.meta { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.heat-bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.08);
  margin: 14px 0;
}
.heat-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--orange));
}
.court-actions, .feed-actions, .team-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.team-card { padding: 16px; }
.team-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: white;
  font-weight: 1000;
  letter-spacing: -.04em;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.roster-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}
.roster-chip {
  padding: 7px 9px;
  border-radius: 12px;
  color: #e8ecf5;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 750;
}

.feed-card { display: grid; }
.feed-media {
  position: relative;
  height: 230px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,106,34,.35), transparent 14rem),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.feed-media img, .feed-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-badge {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(16px);
  color: white;
  font-size: 28px;
}
.feed-info { padding: 15px; }
.feed-caption { margin: 10px 0 0; color: #d6dbea; font-size: 13px; line-height: 1.5; }
.timestamp { color: var(--muted-2); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }

.jersey-stage {
  min-height: 480px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 24%, rgba(255,255,255,.11), transparent 13rem),
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  overflow: hidden;
  padding: 24px;
}
.jersey {
  position: relative;
  width: min(360px, 84vw);
  height: 440px;
  clip-path: polygon(25% 0, 39% 0, 44% 10%, 56% 10%, 61% 0, 75% 0, 96% 22%, 85% 37%, 80% 100%, 20% 100%, 15% 37%, 4% 22%);
  border-radius: 28px;
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 76px 34px 34px;
  box-shadow: 0 36px 90px rgba(0,0,0,.38);
  border: 2px solid rgba(255,255,255,.18);
}
.jersey::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 5px solid rgba(255,255,255,.16);
  clip-path: inherit;
  pointer-events: none;
}
.jersey-team {
  position: relative;
  z-index: 1;
  font-size: 27px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -.055em;
  text-transform: uppercase;
  text-align: center;
  max-width: 260px;
}
.jersey-number {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  font-size: 128px;
  line-height: .86;
  font-weight: 1000;
  letter-spacing: -.09em;
  text-shadow: 0 10px 0 rgba(0,0,0,.16);
}
.jersey-name {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  font-size: 17px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.logo-board {
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
}
.generated-logo {
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, rgba(255,255,255,.24), transparent 4rem), linear-gradient(135deg, var(--orange), #161821 62%);
  border: 8px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
  text-align: center;
  padding: 22px;
}
.generated-logo b { font-size: 66px; letter-spacing: -.08em; }
.generated-logo span { display: block; margin-top: 7px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.timeline {
  display: grid;
  gap: 12px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 11px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.timeline-dot {
  width: 11px;
  height: 11px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(255,106,34,.12);
}
.timeline-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}
.timeline-card b { display: block; font-size: 13px; }
.timeline-card span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.guard-card { padding: 15px; }
.guard-card strong { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.guard-card p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.guard-status {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(53,216,149,.1);
}
.guard-status.warn { background: var(--yellow); box-shadow: 0 0 0 5px rgba(247,201,72,.1); }
.guard-status.stop { background: var(--red); box-shadow: 0 0 0 5px rgba(255,78,100,.1); }

.map-panel {
  position: relative;
  min-height: 410px;
  border: 1px solid var(--line);
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    radial-gradient(circle at 35% 45%, rgba(255,106,34,.24), transparent 10rem),
    radial-gradient(circle at 70% 22%, rgba(98,167,255,.18), transparent 10rem),
    #0d1018;
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}
.map-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 3px solid #0d1018;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 9px rgba(255,106,34,.14), 0 12px 26px rgba(0,0,0,.35);
}
.map-pin.user { background: var(--green); box-shadow: 0 0 0 9px rgba(53,216,149,.14), 0 12px 26px rgba(0,0,0,.35); }
.map-label {
  position: absolute;
  transform: translate(-50%, 14px);
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(7,8,13,.78);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.location-readout {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.045);
}
.location-readout b { font-size: 14px; }
.location-readout code {
  display: block;
  color: var(--muted);
  font-size: 12px;
  white-space: normal;
}

.stat-card { padding: 15px; }
.stat-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.player-face {
  width: 46px;
  height: 46px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: rgba(255,106,34,.18);
  color: #ffd3bd;
  font-weight: 950;
  border: 1px solid rgba(255,106,34,.25);
}
.metric-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 12px;
  color: #e8ecf5;
  font-size: 13px;
}
.metric-line span:first-child { color: var(--muted); }

.empty-state {
  padding: 26px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,.025);
}
.empty-state b { display: block; margin-bottom: 6px; color: var(--text); }

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0,0,0,.55);
  display: none;
}
.drawer-overlay.open { display: block; }

#toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 36px));
}
.toast {
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  background: rgba(14,17,25,.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,.36);
  color: white;
  font-size: 13px;
  line-height: 1.45;
}
.toast strong { display: block; margin-bottom: 3px; }
.toast.success { border-color: rgba(53,216,149,.35); }
.toast.warn { border-color: rgba(247,201,72,.35); }
.toast.error { border-color: rgba(255,78,100,.35); }

.hr { height: 1px; background: var(--line); margin: 16px 0; }
.kicker { color: var(--orange-2); font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .11em; }
.muted { color: var(--muted); }
.danger-text { color: #ffc5ce; }
.success-text { color: #b8ffe0; }
.nowrap { white-space: nowrap; }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .span-8, .span-7, .span-6, .span-5, .span-4, .span-3 { grid-column: span 12; }
  .court-grid, .team-grid, .feed-grid, .stat-card-grid, .guardrail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 330px);
    transform: translateX(-105%);
    transition: transform .22s var(--ease);
    box-shadow: 30px 0 80px rgba(0,0,0,.45);
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: grid; place-items: center; }
  .topbar { align-items: flex-start; padding: 15px; }
  .top-actions { display: none; }
  .content { padding: 16px; }
  .hero { padding: 24px; border-radius: 26px; min-height: auto; }
  .hero h3 { font-size: clamp(38px, 13vw, 62px); }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .stat-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .court-grid, .team-grid, .feed-grid, .stat-card-grid, .guardrail-grid { grid-template-columns: 1fr; }
  .card-header { flex-direction: column; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .data-table th, .data-table td { padding: 11px 9px; }
  .jersey { height: 390px; }
  .jersey-number { font-size: 108px; }
}
.form-grid > .span-2 { grid-column: span 2; }
@media (max-width: 900px) { .form-grid > .span-2 { grid-column: span 1; } }
