* {
  box-sizing: border-box;
}
:root {
  --bg: #080f20;
  --panel: #101b33;
  --panel2: #14213d;
  --line: #253653;
  --muted: #93a4bf;
  --text: #edf3ff;
  --blue: #4d8dff;
  --green: #28c58b;
  --gold: #ffc857;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.5 Inter,
    system-ui,
    Arial,
    sans-serif;
}
.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: #0b1429;
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  letter-spacing: 1px;
}
.brand small {
  display: block;
  color: #8295b4;
  font-size: 9px;
  letter-spacing: 2px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4e8fff, #2455bc);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 22px;
}
.topbar nav {
  display: flex;
  gap: 5px;
}
.nav,
.side {
  background: none;
  border: 0;
  color: #a9b8d0;
  padding: 11px 14px;
  border-radius: 9px;
  cursor: pointer;
}
.nav.active,
.nav:hover,
.side.active,
.side:hover {
  background: #1a2b4b;
  color: white;
}
.top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
select,
input {
  background: #0a1428;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 8px;
}
.demo-pill,
.admin-tag {
  font-size: 10px;
  letter-spacing: 1px;
  background: #4a3715;
  color: #ffd77b;
  padding: 7px 9px;
  border-radius: 20px;
  font-weight: 800;
}
.notice {
  text-align: center;
  padding: 8px;
  background: #342811;
  color: #ffdf9a;
  font-size: 12px;
}
main {
  display: grid;
  grid-template-columns: 190px minmax(400px, 1fr) 300px;
  gap: 18px;
  padding: 20px;
  max-width: 1600px;
  margin: auto;
}
.left,
.right {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px;
  height: max-content;
  position: sticky;
  top: 100px;
}
.left h3,
.slip-head h3 {
  font-size: 11px;
  color: #8fa2c2;
  letter-spacing: 1.5px;
}
.side {
  display: block;
  width: 100%;
  text-align: left;
  margin: 4px 0;
}
.side-card {
  margin-top: 18px;
  padding: 13px;
  background: var(--panel2);
  border-radius: 10px;
}
.side-card small,
.stat small {
  display: block;
  color: #91a3c1;
  font-size: 10px;
  letter-spacing: 1px;
}
.side-card strong {
  display: block;
  font-size: 23px;
  margin: 5px 0;
}
.side-card span,
.muted {
  color: var(--muted);
  font-size: 12px;
}
.responsible p {
  color: #aab9d0;
  font-size: 12px;
  margin-bottom: 0;
}
.content {
  min-width: 0;
}
.hero {
  background: linear-gradient(110deg, #153b70, #142b50 55%, #172544);
  border: 1px solid #284d7e;
  border-radius: 16px;
  padding: 27px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 170px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #a9c9ff;
  font-weight: 800;
}
.hero h1 {
  font-size: 29px;
  margin: 8px 0;
}
.hero p {
  color: #c1d2ec;
  margin: 0;
}
.hero-ball {
  font-size: 66px;
  filter: drop-shadow(0 8px 14px #071326);
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 13px;
}
.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: 22px;
}
.section-head p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.section-head input {
  width: 220px;
}
.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.chip {
  border: 1px solid var(--line);
  color: #a9bad5;
  background: var(--panel);
  border-radius: 20px;
  padding: 7px 13px;
  cursor: pointer;
}
.chip.selected {
  background: #244b83;
  border-color: #4b8df0;
  color: white;
}
.matches {
  display: grid;
  gap: 10px;
}
.match {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.league {
  font-size: 10px;
  color: #8fa5c7;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.teams {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.team {
  min-width: 95px;
}
.vs {
  color: #7e91b0;
  font-size: 11px;
}
.match-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}
.odds {
  display: flex;
  gap: 7px;
  align-items: center;
}
.odd {
  background: #1b2a47;
  border: 1px solid #2b4167;
  color: white;
  border-radius: 8px;
  padding: 9px 12px;
  min-width: 58px;
  cursor: pointer;
}
.odd:hover,
.odd.chosen {
  border-color: var(--green);
  background: #174738;
}
.odd small {
  display: block;
  color: #8fa4c4;
  font-size: 9px;
}
.right {
  padding: 15px;
}
.slip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.slip-head h3 {
  color: white;
  font-size: 14px;
  letter-spacing: 0;
}
.slip-head span {
  background: #263d62;
  border-radius: 20px;
  padding: 2px 8px;
}
.slip-items {
  min-height: 120px;
}
.slip-empty,
.empty {
  text-align: center;
  color: var(--muted);
  padding: 25px 10px;
  font-size: 12px;
}
.slip-item {
  background: #1a2a47;
  border-radius: 9px;
  padding: 10px;
  margin: 9px 0;
}
.slip-item b {
  display: block;
}
.slip-item small {
  color: #9aacc8;
}
.remove {
  float: right;
  border: 0;
  color: #ff9d9d;
  background: none;
  cursor: pointer;
}
.stake-area {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.stake-area label {
  display: block;
  color: #9eb0cc;
  font-size: 12px;
  margin-bottom: 6px;
}
.stake-area input {
  width: 100%;
}
.estimate {
  display: flex;
  justify-content: space-between;
  margin: 14px 0;
}
.estimate span {
  color: var(--muted);
}
.estimate b {
  font-size: 18px;
}
.primary,
.secondary {
  border: 0;
  border-radius: 9px;
  padding: 11px 14px;
  font-weight: 800;
  cursor: pointer;
}
.primary {
  background: var(--blue);
  color: white;
}
.primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.secondary {
  background: #263653;
  color: #dce8ff;
}
.wide {
  width: 100%;
}
.tiny {
  font-size: 10px;
  color: #8193b0;
  text-align: center;
}
.hidden {
  display: none !important;
}
.live-tag {
  color: #ff7777;
  font-size: 11px;
}
.virtual-hero {
  background: linear-gradient(110deg, #392a70, #1b2d55);
}
.empty {
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 14px;
  margin-top: 15px;
  padding: 45px;
}
.empty-icon {
  font-size: 38px;
}
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
  margin: 14px 0;
}
.panel h3 {
  margin: 0 0 14px;
}
.panel label {
  display: block;
  color: #9fb0cc;
  margin: 12px 0;
}
.panel label input,
.panel label select {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 12px;
}
.stat strong {
  font-size: 25px;
  display: block;
  margin: 6px 0;
}
.stat span {
  font-size: 10px;
  color: var(--muted);
}
.button-row {
  display: flex;
  gap: 10px;
}
.checklist {
  color: #b9c8de;
  padding-left: 20px;
}
.checklist li {
  padding: 5px;
}
.admin-tag {
  background: #183d32;
  color: #7de0b8;
}
.live-match {
  border-left: 3px solid #ed6666;
}
.toast {
  position: fixed;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #20375d;
  padding: 12px 18px;
  border-radius: 9px;
  display: none;
  z-index: 9;
  box-shadow: 0 8px 30px #0008;
}
footer {
  text-align: center;
  color: #7184a3;
  padding: 25px;
  font-size: 11px;
}
@media (max-width: 1100px) {
  main {
    grid-template-columns: 160px minmax(300px, 1fr);
  }
  .right {
    position: static;
    grid-column: 2;
  }
  .topbar nav {
    display: none;
  }
}
@media (max-width: 700px) {
  .topbar {
    padding: 0 12px;
  }
  .top-actions {
    gap: 5px;
  }
  .demo-pill {
    display: none;
  }
  main {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }
  .left {
    position: static;
    display: flex;
    gap: 5px;
    overflow: auto;
    align-items: center;
  }
  .left h3,
  .side-card {
    display: none;
  }
  .side {
    white-space: nowrap;
    width: auto;
  }
  .right {
    order: 3;
  }
  .content {
    order: 2;
  }
  .section-head {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
  .section-head input {
    width: 100%;
  }
  .match {
    grid-template-columns: 1fr;
  }
  .odds {
    justify-content: stretch;
  }
  .odd {
    flex: 1;
  }
  .account-grid,
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding: 20px;
  }
  .hero h1 {
    font-size: 23px;
  }
}
