@font-face {
  font-family: 'DessauPro';
  src: url('assets/fonts/DessauPro.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Font Awesome 6 Free';
  src: url('assets/fontawesome/webfonts/fa-solid-900.woff2') format('woff2'),
    url('assets/fontawesome/webfonts/fa-solid-900.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #d9dbe0;
  color: #101010;
  font-family: 'DessauPro', Arial, sans-serif;
}

button {
  font-family: inherit;
}

.top-header {
  background: #060606;
  border-bottom: 1px solid #1d1d1d;
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 12px;
}

.brand img {
  height: 34px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav-item {
  height: 38px;
  border: 1px solid #3f3f3f;
  border-radius: 9px;
  background: #111;
  color: #fff;
  padding: 0 16px;
  font-size: 16px;
  text-transform: uppercase;
  cursor: pointer;
}

.main-nav-item.active,
.main-nav-item:hover {
  background: #202020;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-btn {
  height: 36px;
  min-width: 84px;
  border-radius: 999px;
  border: 1px solid #2f2f2f;
  background: #1f1f1f;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.auth-btn.join {
  background: #00c853;
  border-color: #00c853;
  color: #000;
}

.event-strip-wrap {
  background: #ececec;
  border-bottom: 1px solid #bfbfbf;
}

.event-strip {
  max-width: 1440px;
  margin: 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 0 10px;
}

.event-filter {
  min-width: 48px;
  height: 34px;
  border: 1px solid #9a9a9a;
  border-radius: 999px;
  background: #fff;
  color: #191919;
  font-size: 13px;
  font-weight: 700;
  padding: 0 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.event-filter img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.event-filter.active,
.event-filter:hover {
  background: #00c853;
  border-color: #00c853;
}

.event-pill {
  min-width: 128px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #b8b8b8;
  background: #fff;
  padding: 4px 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr 1fr;
  column-gap: 8px;
}

.event-pill .name {
  font-size: 12px;
  font-weight: 700;
}

.event-pill .meta {
  font-size: 11px;
  color: #575757;
}

.status {
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  background: #ff3f58;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
}

.layout {
  max-width: 1440px;
  margin: 10px auto;
  padding: 0 10px 16px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 250px;
  gap: 10px;
}

.card-surface {
  background: #f4f4f4;
  border: 1px solid #c7c7c7;
  border-radius: 10px;
}

.left-sidebar,
.right-sidebar {
  align-self: start;
}

.tabs {
  display: flex;
}

.two-tabs .tab {
  width: 50%;
}

.tab {
  height: 40px;
  border: 0;
  background: #6f6f6f;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  text-transform: capitalize;
}

.tab.active {
  background: #00c853;
  color: #111;
}

.left-sidebar .tabs .tab:first-child,
.right-sidebar .tabs .tab:first-child {
  border-top-left-radius: 10px;
}

.left-sidebar .tabs .tab:last-child,
.right-sidebar .tabs .tab:last-child {
  border-top-right-radius: 10px;
}

.left-menu-wrap,
.content-panel,
.slip-panel {
  display: none;
}

.left-menu-wrap.active,
.content-panel.active,
.slip-panel.active {
  display: block;
}

.watch-live {
  height: 42px;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  font-size: 14px;
  border-bottom: 1px solid #3a3a3a;
}

.watch-live img {
  width: 27px;
  height: 27px;
  border-radius: 6px;
}

.left-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.left-menu li {
  height: 37px;
  border-bottom: 1px solid #d8d8d8;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: #f5f5f5;
  font-size: 17px;
}

.left-menu li:hover {
  background: #ececec;
}

.terms-menu-link {
  color: inherit;
  text-decoration: none;
  display: block;
  width: 100%;
}

.center-content {
  min-width: 0;
}

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

.banner {
  min-height: 110px;
  border-radius: 11px;
  border: 1px solid #4d4d4d;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  padding: 8px;
}

.banner-sky {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 50px;
}

.banner-text {
  color: #fff;
  font-size: 30px;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  max-width: 75%;
}

.racing-toggle {
  background: #f1f1f1;
  border: 1px solid #c8c8c8;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.racing-toggle .tab {
  background: transparent;
  color: #212121;
  font-size: 23px;
  text-transform: uppercase;
}

.racing-toggle .tab.active {
  background: #00d44f;
}

.section-block {
  margin-bottom: 10px;
}

.section-block h3 {
  margin: 0 0 5px;
  font-size: 25px;
}

.cards-grid {
  display: grid;
  gap: 8px;
}

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

.race-card,
.mini-card {
  background: #fff;
  border: 1px solid #c6c6c6;
  border-radius: 10px;
  overflow: hidden;
}

.race-card-head,
.mini-head {
  background: #111;
  color: #fff;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-size: 14px;
}

.race-card-head::before,
.mini-head::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  margin-right: 6px;
}

.race-card-head::before {
  content: '\f6f0';
}

.mini-head::before {
  content: '\f201';
}

.chip {
  background: #f6f6f6;
  color: #111;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
}

.chip.now {
  background: #ff2e4f;
  color: #fff;
}

.race-card ul,
.mini-card ul,
.next-list {
  list-style: none;
  margin: 0;
  padding: 6px 8px 8px;
}

.race-card li,
.mini-card li,
.next-list li {
  min-height: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ececec;
  font-size: 16px;
}

.race-card li > span,
.mini-card li > span,
.next-list li > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.race-card li > span::before,
.mini-card li > span::before,
.next-list li > span::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.race-card li > span::before {
  content: '\f6f0';
  background: #202020;
}

.race-card li:nth-child(2) > span::before {
  background: #ffffff;
  color: #101010;
  border: 1px solid #a4a4a4;
}

.race-card li:nth-child(3) > span::before {
  background: #2e7dff;
}

.race-card li:nth-child(4) > span::before {
  background: #ea2a2a;
}

.race-card li:nth-child(5) > span::before {
  background: #000;
}

.mini-card li > span::before {
  content: '\f005';
  background: #1f1f1f;
}

.next-list li > span::before {
  content: '\f111';
  background: #2b2b2b;
  font-size: 8px;
}

.race-card li:last-child,
.mini-card li:last-child,
.next-list li:last-child {
  border-bottom: 0;
}

.race-card strong,
.mini-card strong {
  background: #efefef;
  border-radius: 999px;
  padding: 1px 9px;
}

.next-columns {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.next-columns > div {
  background: #fff;
  border: 1px solid #c6c6c6;
  border-radius: 10px;
  overflow: hidden;
}

.next-columns h3 {
  margin: 0;
  background: #111;
  color: #fff;
  padding: 4px 8px;
  font-size: 18px;
}

.next-list em {
  font-style: normal;
  background: #2a2a2a;
  color: #fff;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
}

.sports-placeholder {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 20px;
}

.sports-placeholder img {
  width: 58px;
}

.contact-page {
  overflow: hidden;
}

.contact-head {
  min-height: 34px;
  background: #0a0a0a;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 4px solid #00c853;
  font-size: 27px;
}

.contact-body {
  min-height: 260px;
  background: #efefef;
  padding: 12px 14px;
  font-size: 26px;
  line-height: 1.4;
}

.contact-body p {
  margin: 0 0 10px;
}

.contact-body ul {
  margin: 0 0 10px 24px;
  padding: 0;
}

.contact-body li {
  margin-bottom: 14px;
}

.contact-hours {
  margin-top: 6px;
}

.about-page {
  overflow: hidden;
}

.about-head {
  min-height: 34px;
  background: #0a0a0a;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 4px solid #00c853;
  font-size: 27px;
}

.about-hero {
  background: #0f1928;
}

.about-hero img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.about-body {
  background: #efefef;
  padding: 12px 14px;
  font-size: 34px;
  line-height: 1.35;
}

.about-body p {
  margin: 0 0 10px;
}

.terms-page {
  overflow: hidden;
}

.terms-head {
  min-height: 34px;
  background: #0a0a0a;
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 4px solid #00c853;
  font-size: 27px;
}

.terms-body {
  background: #efefef;
  padding: 10px;
  font-size: 14px;
  line-height: 1.45;
  max-height: 76vh;
  overflow: auto;
}

.terms-body h3 {
  margin: 0 0 8px;
  padding: 6px 10px;
  background: #e2e2e2;
  border-radius: 999px;
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terms-body h4 {
  margin: 10px 0 6px;
  font-size: 20px;
}

.terms-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #00c853;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.terms-body p {
  margin: 0 0 10px;
  font-size: 30px;
}

.terms-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
  background: #f1f1f1;
}

.terms-table th,
.terms-table td {
  border: 1px solid #d3d3d3;
  padding: 6px 8px;
  vertical-align: top;
  font-size: 30px;
}

.terms-table th {
  font-weight: 700;
  background: #ececec;
}

.terms-table ul {
  margin: 0;
  padding-left: 18px;
}

.terms-contents td:first-child {
  width: 60px;
}

.rules-pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: 'DessauPro', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.right-sidebar {
  min-height: 500px;
  overflow: hidden;
}

.slip-panel {
  padding: 10px;
}

.slip-empty {
  background: #333;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  padding: 20px 12px;
}

.slip-icon {
  width: 54px;
  height: 34px;
  border: 4px solid #fff;
  border-radius: 7px;
  margin: 0 auto 12px;
  opacity: 0.85;
}

.slip-empty h4 {
  margin: 0 0 8px;
  font-size: 25px;
}

.slip-empty p {
  margin: 0;
  font-size: 17px;
}

.rg-box {
  background: #fff;
  border-radius: 10px;
  margin-top: 10px;
  padding: 10px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.betstop-right {
  margin-top: 10px;
  width: 100%;
  border-radius: 8px;
}

.footer {
  margin-top: 12px;
  padding: 10px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  text-align: center;
}

.footer h4 {
  margin: 0 0 8px;
  font-size: 24px;
}

.footer a {
  display: block;
  color: #111;
  text-decoration: none;
  margin-bottom: 5px;
  font-size: 19px;
}

.license {
  text-align: center;
  margin: 8px 0;
  font-size: 14px;
  color: #555;
}

.warning-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.warning-box {
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.betstop-box {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.betstop-box img {
  width: 110px;
  height: auto;
}

button:hover,
.left-menu li:hover,
.race-card:hover,
.mini-card:hover,
.next-columns > div:hover,
.event-pill:hover {
  filter: brightness(0.98);
}

@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 190px minmax(0, 1fr) 230px;
  }

  .banner-text {
    font-size: 23px;
  }
}

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

  .left-sidebar,
  .right-sidebar {
    order: 2;
  }

  .center-content {
    order: 1;
  }

  .right-sidebar {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .main-nav-item {
    font-size: 13px;
    min-width: 110px;
  }

  .cards-grid.three,
  .next-columns,
  .banner-row,
  .footer-cols,
  .warning-row {
    grid-template-columns: 1fr;
  }
}

body.modal-open {
  overflow: hidden;
}

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.auth-modal-overlay.open {
  display: flex;
}

.auth-modal {
  width: 100%;
  max-width: 420px;
  background: #f4f4f4;
  border: 1px solid #bdbdbd;
  border-radius: 14px;
  padding: 16px;
  position: relative;
}

.auth-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #dedede;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.auth-modal-title {
  margin: 0 0 10px;
  font-size: 28px;
}

.auth-modal-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.auth-switch-btn {
  height: 40px;
  border: 1px solid #b8b8b8;
  border-radius: 8px;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}

.auth-switch-btn.active {
  background: #00c853;
  border-color: #00c853;
  color: #101010;
}

.auth-modal-form {
  display: grid;
  gap: 10px;
}

.auth-field {
  display: grid;
  gap: 4px;
}

.auth-field span {
  font-size: 15px;
}

.auth-field input {
  height: 40px;
  border: 1px solid #bdbdbd;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 16px;
}

.auth-register-only {
  display: none;
}

.auth-register-only.visible {
  display: grid;
}

.auth-submit-btn {
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #00c853;
  color: #101010;
  font-size: 18px;
  cursor: pointer;
}
