@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-Variable.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #f7ce0b;
  --blue: #08bbff;
  --black: #060606;
  --light: #f5f5f5;
  --gray: #dcdcdc;
  --font-main: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--yellow);
  color: #111;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

button,
input {
  font-family: inherit;
}

.top-races {
  display: flex;
  gap: 6px;
  padding: 6px;
  background: linear-gradient(180deg, #0d0d0d, #171717);
  overflow-x: hidden;
  flex-wrap: wrap;
  border-bottom: 2px solid #262626;
}

.race-chip,
.race-tab {
  border: 1px solid #404040;
  background: #000;
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  white-space: nowrap;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.race-chip.active {
  background: #242424;
  border-color: #ffd400;
  box-shadow: 0 0 0 2px rgba(255, 212, 0, 0.25);
}

.race-tab {
  background: #f6f6f6;
  color: #111;
}

.race-chip:hover,
.race-tab:hover {
  transform: translateY(-1px);
}

.race-tab span {
  color: #ae1a1a;
  margin-left: 10px;
  font-size: 12px;
}

.main-grid {
  display: grid;
  grid-template-columns: 200px 1fr 270px;
  min-height: calc(100vh - 48px);
  width: 100%;
}

.sidebar {
  background: #f7d312;
  border-right: 2px solid #111;
  padding: 10px 10px 8px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background-image: radial-gradient(circle at 10px 10px, rgba(255, 255, 255, 0.16) 1.1px, transparent 1.1px);
  background-size: 17px 17px;
  min-width: 0;
}

.brand img {
  width: 100%;
  border-radius: 8px;
}

.sidebar-scroll {
  overflow-y: auto;
  padding-right: 6px;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 10px;
}

.sidebar-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.16);
  border-radius: 12px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  background: #111;
  border-radius: 12px;
  border: 2px solid rgba(247, 211, 18, 0.8);
}

.menu-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 2px 12px;
  background: rgba(255, 255, 255, 0.42);
  border: 2px solid #222;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.search-icon {
  font-size: 18px;
  font-weight: 700;
}

.menu-search input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 600;
  outline: none;
  color: #2c2c2c;
}

.sport-menu {
  margin-top: 4px;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #101010;
  text-decoration: none;
  font-weight: 600;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1.1;
}

.menu-link:hover,
.menu-link.active {
  background: rgba(255, 255, 255, 0.45);
}

.dot {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #111;
  border: 2px solid #f2bb06;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.menu-section-toggle {
  margin-top: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 10px;
}

.menu-section-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.menu-section-toggle .chevron {
  float: right;
  font-size: 15px;
  padding-top: 3px;
}

.menu-section-links {
  max-height: 1400px;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.menu-section-links.collapsed {
  max-height: 0;
}

.sidebar-bottom {
  margin-top: 16px;
  padding: 0 8px 16px;
  font-size: 13px;
  color: #1e1e1e;
}

.login-link {
  border: 0;
  background: transparent;
  font-size: 32px;
  cursor: pointer;
  font-weight: 600;
}

.content {
  padding: 10px;
  min-width: 0;
}

.hero {
  position: relative;
  background: #f2cc09;
}

.hero img {
  width: 100%;
  display: block;
  border-radius: 10px;
  max-height: 140px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.hero-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
}

.hero-actions button {
  border: 2px solid #0198d1;
  background: var(--blue);
  border-radius: 9px;
  padding: 10px 18px;
  font-weight: 700;
  box-shadow: 0 5px 12px rgba(0, 138, 193, 0.3);
}

.hero-actions .betslip-count {
  padding: 5px 14px;
}

.hero-actions .betslip-count span {
  font-size: 11px;
}

.markets,
.block h2 {
  background: #050505;
  color: #fff;
  border-radius: 10px;
}

.markets {
  padding: 8px;
  margin-top: 8px;
  background: transparent;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
}

.market-tabs {
  margin-top: 6px;
  display: flex;
  gap: 6px;
}

.tab {
  border: 0;
  padding: 10px 22px;
  border-radius: 6px;
  background: var(--blue);
  font-weight: 700;
}

.tab.active {
  background: #101010;
  color: #ffd400;
}

.filters {
  margin-top: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  overflow-x: hidden;
  padding: 4px 2px;
}

.pill,
#searchInput {
  background: var(--blue);
  border: 0;
  border-radius: 9px;
  padding: 8px 14px;
  font-weight: 700;
  white-space: nowrap;
  min-height: 44px;
}

#searchInput {
  min-width: 140px;
}

.arrow-pill {
  background: #0a0a0a;
  color: #fff;
  min-width: 44px;
}

.block h2 {
  margin: 10px 0 6px;
  padding: 12px;
}

.race-cards,
.combo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.race-card,
.combo-card {
  background: #efefef;
  border: 1px solid #bdbdbd;
  border-radius: 10px;
  min-height: 110px;
  padding: 10px;
  font-weight: 700;
  position: relative;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.race-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.race-card p {
  margin: 0;
  line-height: 1.25;
  padding-right: 88px;
}

.race-odds {
  position: absolute;
  right: 10px;
  top: 48px;
  min-width: 76px;
  text-align: center;
  padding: 12px 8px;
  border-radius: 6px;
  border: 1px solid #d2d2d2;
  background: #e8e8e8;
  font-size: 32px;
}

.lists {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.list-card {
  border: 1px solid #b5b5b5;
  border-radius: 10px;
  background: #efefef;
  overflow: hidden;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.09);
}

.list-card h3 {
  margin: 0;
  padding: 12px;
  background: #101010;
  color: #fff;
}

.list-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-card li {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid #bdbdbd;
  gap: 8px;
}

.list-card li span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.list-card li em {
  font-style: normal;
  color: #12b7da;
  font-weight: 700;
}

.bottom-info {
  margin-top: 10px;
  background: linear-gradient(180deg, #090909, #111111);
  color: #fff;
  padding: 6px 0 10px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
}

.pay-strip {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0 12px;
}

.pay-row {
  background: #f0f0f0;
  color: #111;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 52px;
  flex: 1;
}

.pay-row img {
  height: 20px;
  width: auto;
  max-width: 90px;
}

.payid {
  font-size: 15px;
  font-weight: 800;
}

.store-row {
  display: flex;
  gap: 10px;
}

.store-row a {
  display: inline-flex;
}

.store-row img {
  height: 40px;
  width: auto;
}

.responsible {
  margin-top: 10px;
  background: #efefef;
  color: #111;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
}

.footer-links {
  margin: 12px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #fff;
}

.legal {
  text-align: center;
  font-size: 14px;
  margin: 10px 0;
  padding: 0 16px;
}

.betstop-panel {
  margin-top: 10px;
  background: #efefef;
  color: #111;
  padding: 16px 10px 10px;
}

.legal-dark {
  color: #111;
}

.betstop-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 8px 0;
}

.betstop-brand img {
  max-width: 280px;
  height: auto;
}

.badge-18 {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 6px solid #e10a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-weight: 800;
  font-size: 42px;
}

.badge-18 span {
  font-size: 18px;
}

.bet-slip {
  background: linear-gradient(180deg, #050505, #0d0d0d);
  color: #fff;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #282828;
  min-width: 0;
}

.slip-header {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 4px;
}

.slip-subtitle {
  background: #f7d312;
  color: #111;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 700;
  margin: 10px 0 0;
}

.slip-empty {
  border-top: 2px solid #f7d312;
  margin-top: 4px;
  padding: 12px 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.slip-switches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 12px;
}

.slip-switches button {
  border: 0;
  border-radius: 6px;
  background: #08bbff;
  color: #111;
  font-weight: 700;
  padding: 12px 8px;
}

.slip-item {
  background: #ececec;
  color: #111;
  border-radius: 10px;
  margin-bottom: 8px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.slip-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.race-name {
  color: #08a2cc;
}

.race-time {
  border: 1px solid #cf4b59;
  border-radius: 999px;
  color: #bf2b38;
  padding: 2px 10px;
  white-space: nowrap;
}

.slip-runner {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.odds {
  background: #e7e7e7;
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  min-width: 74px;
  text-align: center;
  padding: 12px 8px;
  font-size: 28px;
}

.market {
  margin-top: 8px;
  background: #dedede;
  border: 1px solid #cacaca;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
}

.feature-card {
  margin-top: 10px;
  background: #efefef;
  color: #101010;
  border: 3px solid #00b5ff;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}

.safe-bet {
  margin-top: 12px;
  background: #efefef;
  color: #111;
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
}

.combo-card p {
  margin: 4px 0;
}

.combo-price {
  margin-top: 10px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  background: #e8e8e8;
  padding: 12px;
  text-align: center;
  font-size: 34px;
}

.hidden {
  display: none !important;
}

.rg-page {
  padding-top: 8px;
}

.rg-panel {
  background: #efefef;
  border: 2px solid #151515;
  border-radius: 10px;
  padding: 16px;
  color: #111;
  line-height: 1.5;
}

.rg-panel h1 {
  margin: 0 0 12px;
  background: #050505;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 24px;
}

.rg-panel h2 {
  margin: 18px 0 8px;
  font-size: 20px;
}

.rg-panel p {
  margin: 8px 0;
}

.rg-panel ul {
  margin: 8px 0 8px 20px;
  padding: 0;
}

.rg-table-wrap {
  overflow-x: auto;
}

.rg-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.rg-table th,
.rg-table td {
  border: 1px solid #c9c9c9;
  padding: 8px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.rg-table th {
  background: #101010;
  color: #fff;
}

.faq-item {
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #fbfbfb;
  padding: 10px 12px;
  margin: 10px 0;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.faq-item p {
  margin: 0;
}

body.modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.auth-modal-card {
  position: relative;
  z-index: 2;
  width: min(460px, calc(100vw - 32px));
  margin: 10vh auto 0;
  background: #121212;
  border: 2px solid #2e2e2e;
  border-radius: 14px;
  padding: 16px;
  color: #fff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.auth-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding-right: 34px;
}

.auth-tab {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: #2a2a2a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: #08bbff;
  color: #111;
}

.auth-pane {
  display: none;
}

.auth-pane.active {
  display: block;
}

.auth-pane label {
  display: block;
  margin: 8px 0 4px;
  font-weight: 600;
}

.auth-pane input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid #3b3b3b;
  background: #1f1f1f;
  color: #fff;
}

.auth-submit {
  margin-top: 12px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  font-weight: 800;
  background: #08bbff;
  color: #101010;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .main-grid {
    grid-template-columns: 180px 1fr;
  }

  .menu-link {
    font-size: 17px;
  }

  .menu-search input {
    font-size: 16px;
  }

  .menu-section-toggle {
    font-size: 18px;
  }

  .sidebar-bottom {
    font-size: 12px;
  }

  .bet-slip {
    grid-column: 1 / -1;
  }

  .slip-header {
    font-size: 26px;
  }

  .odds {
    font-size: 20px;
  }

  .race-odds,
  .combo-price {
    font-size: 20px;
  }

  .pay-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .store-row {
    justify-content: center;
  }
}

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

  .sidebar {
    order: 1;
    max-height: 65vh;
  }

  .menu-link {
    font-size: 16px;
    padding: 8px;
  }

  .dot {
    width: 16px;
    height: 16px;
  }

  .content {
    order: 2;
  }

  .bet-slip {
    order: 3;
    padding: 6px;
  }

  .section-title {
    font-size: 28px;
  }

  .race-cards,
  .combo-grid,
  .lists {
    grid-template-columns: 1fr;
  }

  .filters {
    flex-wrap: wrap;
  }

  .pill,
  #searchInput {
    min-height: 38px;
    padding: 6px 10px;
    font-size: 13px;
  }

  #searchInput {
    min-width: 100px;
    flex: 1;
  }

  .slip-switches button {
    padding: 9px 6px;
    font-size: 14px;
  }

  .slip-line {
    flex-wrap: wrap;
  }

  .slip-runner {
    align-items: flex-start;
  }

  .slip-runner span {
    font-size: 14px;
    line-height: 1.25;
  }

  .race-time {
    font-size: 13px;
    padding: 2px 8px;
  }

  .odds {
    min-width: 62px;
    padding: 9px 6px;
    font-size: 18px;
  }

  .market {
    padding: 8px;
    font-size: 14px;
    flex-wrap: wrap;
  }

  .feature-card,
  .safe-bet {
    padding: 10px 8px;
    font-size: 14px;
  }

  .auth-modal-card {
    width: calc(100vw - 20px);
    margin-top: 6vh;
    padding: 12px;
  }

  .pay-row {
    gap: 10px;
    min-height: 46px;
  }

  .pay-row img {
    height: 16px;
    max-width: 64px;
  }

  .store-row img {
    height: 34px;
  }

  .betstop-brand {
    flex-direction: column;
    gap: 10px;
  }
}
