/* Colossalbet — refined pixel-perfect styles */

:root {
  --gold: #d4b87a;
  --gold-bright: #e2c992;
  --gold-light: #ede0c4;
  --gold-dark: #bfa062;
  --gold-ticker: #e8d9b8;
  --black: #000000;
  --dark-grey: #333333;
  --btn-grey: #444444;
  --text-dark: #1a1a1a;
  --text-grey: #6b6b6b;
  --text-light: #999999;
  --bg-page: #ececec;
  --bg-white: #ffffff;
  --bg-footer: #f2f2f2;
  --red-urgent: #e05555;
  --border-light: #e8e8e8;
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.07);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --hero-gradient:
    radial-gradient(ellipse 520px 180px at 18% 55%, rgba(0, 110, 100, 0.42) 0%, transparent 72%),
    radial-gradient(ellipse 300px 120px at 55% 20%, rgba(0, 70, 65, 0.18) 0%, transparent 65%),
    linear-gradient(155deg, #080808 0%, #0e0e0e 45%, #0a1110 100%);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-pill: 100px;
  --sidebar-width: 210px;
  --content-max: 1280px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-dark);
  min-height: 100vh;
  line-height: 1.4;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; cursor: pointer; background: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
}

/* ─── Top Ticker Bar ─── */
.ticker-bar {
  background: var(--gold-ticker);
  height: 38px;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ticker-bar__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 12px;
}

.ticker-bar__nav { flex-shrink: 0; }

.ticker-bar__arrow {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  opacity: 0.45;
  border-radius: 50%;
  transition: opacity 0.15s;
}

.ticker-bar__arrow:hover { opacity: 0.85; }
.ticker-bar__arrow svg { width: 8px; height: 8px; stroke: currentColor; fill: none; stroke-width: 2; }

.ticker-bar__label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 0 14px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
}

.ticker-bar__separator {
  width: 1px;
  height: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.ticker-bar__filter {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
}

.ticker-bar__filter svg { width: 13px; height: 13px; opacity: 0.7; }

.ticker-bar__scroll {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
}

.ticker-bar__items {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  font-size: 12px;
  color: var(--text-dark);
  border-right: 1px solid rgba(0, 0, 0, 0.07);
  height: 38px;
}

.ticker-item__icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.75;
}

.ticker-item__name {
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ─── Timer Pills ─── */
.timer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 21px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--black);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.timer-pill--urgent {
  background: var(--red-urgent);
}

/* ─── Main Header ─── */
.main-header {
  background: var(--black);
  height: 56px;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.main-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.main-header__logo img {
  height: 32px;
  width: auto;
}

.main-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-login {
  background: var(--btn-grey);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  height: 38px;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}

.btn-login:hover { background: #555; }

.btn-join {
  background: #fff;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  height: 38px;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}

.btn-join:hover { background: #f0f0f0; }

.bet-box {
  display: flex;
  align-items: stretch;
  height: 38px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-left: 4px;
}

.bet-box__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3px 16px;
  min-width: 76px;
}

.bet-box__item--bets {
  background: var(--btn-grey);
  color: #fff;
}

.bet-box__item--slip {
  background: var(--gold);
  color: var(--text-dark);
}

.bet-box__label {
  font-size: 9px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.bet-box__count {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

/* ─── Page Layout ─── */
.page-wrapper {
  display: flex;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px 12px 20px;
  gap: 14px;
}

/* ─── Sidebar ─── */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-block {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.sidebar-block__header {
  background: var(--gold);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 11px 16px;
  letter-spacing: 0.01em;
}

.sidebar-block__list { list-style: none; }

.sidebar-block__item {
  border-bottom: 1px solid var(--border-light);
}

.sidebar-block__item:last-child { border-bottom: none; }

.sidebar-block__link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dark);
  transition: background 0.12s;
}

.sidebar-block__link:hover { background: #f8f8f8; }

.sidebar-block__link svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: #888;
  stroke-width: 1.6;
}

/* ─── Main Content ─── */
.main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── Hero Banner ─── */
.hero-section { margin-bottom: 2px; }

.hero-banner {
  background: var(--hero-gradient);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 152px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 200px 200px at 8% 50%, rgba(212, 184, 122, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-banner__logo {
  width: 88px;
  height: 88px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 24px rgba(212, 184, 122, 0.15);
  position: relative;
  z-index: 1;
}

.hero-banner__logo svg { width: 48px; height: 48px; }

.hero-banner__content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-banner__tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-bright);
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.hero-banner__title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

.hero-banner__date {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}

.hero-banner__cta {
  background: var(--gold);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 16px 40px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hero-banner__cta:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
}

.hero-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 0 4px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid #bbb;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s;
}

.hero-dot--active {
  border: 2px solid var(--gold);
  background: var(--gold);
}

/* ─── Category Tabs ─── */
.category-tabs {
  display: flex;
  gap: 6px;
}

.category-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}

.category-tab--active {
  background: var(--gold);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.category-tab--inactive {
  background: var(--bg-white);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.category-tab--inactive:hover { background: #fafafa; }

.category-tab svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.6;
}

/* ─── Date Filters ─── */
.date-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.date-filter {
  background: var(--bg-white);
  border: 1px solid #ddd;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dark);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.12s, background 0.12s;
}

.date-filter:hover {
  border-color: #bbb;
  background: #fafafa;
}

.date-filter--active {
  border-color: #aaa;
  background: var(--bg-white);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ─── Race Columns ─── */
.race-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.race-column {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.race-column__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px 12px;
  border-bottom: 1px solid var(--border-light);
  background: #fafafa;
}

.race-column__title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

.race-column__title svg {
  width: 16px;
  height: 16px;
  color: #888;
  flex-shrink: 0;
  stroke-width: 1.6;
}

.race-column__view-all {
  font-size: 11px;
  color: var(--text-grey);
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 6px;
}

.race-column__view-all:hover { color: var(--text-dark); }

.race-column__list { list-style: none; }

.race-row {
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border-bottom: 1px solid #f3f3f3;
  gap: 9px;
  cursor: pointer;
  transition: background 0.1s;
  min-height: 38px;
}

.race-row:last-child { border-bottom: none; }
.race-row:hover { background: #f9f9f9; }
.race-row:nth-child(even) { background: #fcfcfc; }
.race-row:nth-child(even):hover { background: #f5f5f5; }

.race-row__flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.race-row__flag--hk {
  background: #de2910;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.race-row__name {
  flex: 1;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.race-row__timer { flex-shrink: 0; }

.race-row__timer.timer-pill {
  min-width: 34px;
  height: 21px;
  padding: 0 8px;
  font-size: 10px;
}

/* ─── Future Events ─── */
.future-events {
  padding: 10px 4px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.future-events__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.future-events__link {
  font-size: 12px;
  color: var(--text-grey);
  text-decoration: underline;
  cursor: pointer;
}

.future-events__link:hover { color: var(--text-dark); }

/* ─── Footer ─── */
.site-footer {
  background: var(--bg-footer);
  padding: 36px 12px 28px;
  margin-top: 8px;
  border-top: 1px solid #e0e0e0;
}

.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 150px 190px 1fr 1.1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.footer-col__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.footer-col__list { list-style: none; }

.footer-col__list li { margin-bottom: 7px; }

.footer-col__list a {
  font-size: 12px;
  color: var(--text-grey);
  line-height: 1.55;
  transition: color 0.12s;
}

.footer-col__list a:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

.footer-partners {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 14px;
  align-items: center;
}

.footer-partners img {
  height: 34px;
  width: 100%;
  object-fit: contain;
  object-position: left center;
}

.footer-legal {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.footer-legal__icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.footer-legal__text {
  font-size: 9.5px;
  color: var(--text-grey);
  line-height: 1.65;
}

.footer-legal__text p { margin-bottom: 7px; }

.footer-legal__text a {
  color: var(--text-grey);
  text-decoration: underline;
}

.footer-banners {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 14px;
  margin-bottom: 22px;
}

.footer-banner {
  background: var(--bg-white);
  border: 1px solid #d8d8d8;
  border-radius: var(--radius-md);
  padding: 22px 26px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-banner__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.footer-banner__text {
  font-size: 11px;
  color: var(--text-grey);
  line-height: 1.55;
}

.footer-banner__text a {
  color: var(--text-grey);
  text-decoration: underline;
}

.footer-banner__betstop {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-banner__betstop img {
  height: 50px;
  width: auto;
  flex-shrink: 0;
}

.footer-banner__betstop-text p { margin-bottom: 8px; }
.footer-banner__betstop-text p:last-child { margin-bottom: 0; }

.site-footer__bottom {
  font-size: 11px;
  color: var(--text-light);
  padding-top: 18px;
  border-top: 1px solid #ddd;
}

/* ─── Legal / Content Pages ─── */
.legal-content {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 28px 32px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.legal-content__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  letter-spacing: -0.2px;
}

.legal-content__body {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.65;
}

.legal-content__body p {
  margin-bottom: 14px;
}

.legal-content__body p:last-child {
  margin-bottom: 0;
}

.legal-content__heading {
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 14px;
}

.legal-content__list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.legal-content__list li {
  margin-bottom: 6px;
  padding-left: 0;
}

.legal-content__body a {
  color: #2563eb;
  text-decoration: underline;
}

.legal-content__body a:hover {
  color: #1d4ed8;
}

.legal-content__spacer {
  height: 8px;
}

.legal-content--terms {
  padding-bottom: 40px;
}

.legal-content__published {
  font-size: 12px;
  color: var(--text-grey);
  margin: -16px 0 24px;
}

.legal-content__subheading {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 20px 0 10px;
}

.terms-body ol,
.terms-body ul {
  margin: 0 0 14px 20px;
  padding: 0;
}

.terms-body li {
  margin-bottom: 6px;
  line-height: 1.65;
}

.terms-body li > ol,
.terms-body li > ul {
  margin-top: 6px;
  margin-bottom: 6px;
}

.terms-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 12px;
}

.terms-body th,
.terms-body td {
  border: 1px solid #ddd;
  padding: 6px 10px;
  text-align: left;
}

.terms-body th {
  background: #f5f5f5;
  font-weight: 600;
}

.terms-body hr {
  display: none;
}

.legal-content--pdf {
  padding-bottom: 24px;
}

.legal-content__pdf-actions {
  font-size: 12px;
  margin: -12px 0 16px;
}

.legal-content__pdf-actions a {
  color: #2563eb;
  text-decoration: underline;
}

.legal-content__pdf-actions a:hover {
  color: #1d4ed8;
}

.legal-content__pdf-viewer {
  width: 100%;
  min-height: 720px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f5f5f5;
}

.legal-content__pdf-frame {
  width: 100%;
  height: 80vh;
  min-height: 720px;
  border: none;
  display: block;
}

/* ─── Auth Modals ─── */
body.modal-open {
  overflow: hidden;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}

.auth-overlay[hidden] {
  display: none;
}

.auth-modal {
  background: #f2f2f2;
  border-radius: 6px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  position: relative;
}

.auth-modal--register {
  max-width: 520px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal--register:not([hidden]) {
  display: flex;
}

.auth-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}

.auth-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
}

.auth-modal--register .auth-modal__title {
  font-size: 20px;
  font-weight: 700;
}

.auth-modal__close {
  font-size: 22px;
  line-height: 1;
  color: #666;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.12s, background 0.12s;
}

.auth-modal__close:hover {
  color: var(--text-dark);
  background: rgba(0, 0, 0, 0.06);
}

.auth-modal__form {
  padding: 20px 24px 24px;
}

.auth-modal__form--register {
  overflow-y: auto;
  padding-top: 8px;
}

.auth-field {
  display: block;
  margin-bottom: 16px;
}

.auth-field__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.auth-field__input-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0 12px;
  height: 44px;
  gap: 10px;
}

.auth-field__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #aaa;
}

.auth-field__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  min-width: 0;
}

.auth-field__input::placeholder {
  color: #aaa;
}

.auth-field__toggle {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-dark);
  padding: 4px;
  flex-shrink: 0;
}

.auth-btn {
  width: 100%;
  height: 44px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}

.auth-btn--primary {
  background: #e5d38e;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.auth-btn--primary:hover {
  background: #dcc477;
}

.auth-btn--secondary {
  background: #fff;
  color: var(--text-dark);
  border: 1px solid #ccc;
  margin-bottom: 16px;
}

.auth-btn--secondary:hover {
  background: #fafafa;
}

.auth-btn--create {
  margin-top: 8px;
  margin-bottom: 16px;
}

.auth-modal__footer-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-dark);
}

.auth-modal__link {
  color: #2563eb;
  font-size: inherit;
  font-weight: 500;
  text-decoration: none;
  background: none;
  padding: 0;
}

.auth-modal__link:hover {
  text-decoration: underline;
}

.register-form__subtitle {
  font-size: 12px;
  color: var(--text-grey);
  margin-bottom: 16px;
}

.register-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding: 10px 0;
  gap: 12px;
}

.register-row--title {
  border-bottom: none;
  padding-bottom: 4px;
}

.register-row--dob {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.register-row--address {
  border-bottom: none;
  padding-bottom: 0;
}

.register-row-label {
  font-size: 13px;
  color: var(--text-grey);
  flex: 1;
}

.register-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  min-width: 0;
}

.register-input::placeholder {
  color: #aaa;
}

.register-input--muted::placeholder {
  color: #bbb;
}

.register-hint {
  font-size: 11px;
  color: var(--text-grey);
  white-space: nowrap;
  flex-shrink: 0;
}

.register-select {
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  cursor: pointer;
  appearance: auto;
}

.register-select--title {
  font-size: 15px;
  padding: 4px 0;
}

.register-dob-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-grey);
}

.register-dob-label .register-hint {
  margin-left: auto;
}

.register-dob-icon {
  width: 22px;
  height: 22px;
}

.register-dob-fields {
  display: flex;
  gap: 16px;
}

.register-dob-fields .register-select {
  flex: 1;
  border-bottom: 1px solid #ccc;
  padding-bottom: 6px;
}

.register-manual-link {
  font-size: 13px;
  color: #2563eb;
  background: none;
  padding: 0;
}

.register-manual-link:hover {
  text-decoration: underline;
}

.register-section-text {
  font-size: 11px;
  color: var(--text-grey);
  margin: 16px 0 10px;
  line-height: 1.5;
}

.register-section-heading {
  font-size: 12px;
  color: var(--text-grey);
  margin: 16px 0 4px;
}

.register-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.register-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
}

.register-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 12px;
  cursor: pointer;
}

.register-checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
}

.register-checkbox a {
  color: #c47a2a;
  text-decoration: underline;
}

.register-legal {
  font-size: 10px;
  color: var(--text-grey);
  line-height: 1.6;
}

.register-legal p {
  margin-bottom: 8px;
}

.register-legal a {
  color: var(--text-grey);
  text-decoration: underline;
}

.bet-box__item {
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE — Tablet, Mobile, Small Mobile
   ═══════════════════════════════════════════════════ */

/* ─── Tablet (≤1024px) ─── */
@media (max-width: 1024px) {
  .race-columns {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__top {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-banners {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    padding: 28px 28px;
  }

  .hero-banner__title {
    font-size: 24px;
  }
}

/* ─── Mobile (≤768px) ─── */
@media (max-width: 768px) {
  html {
    font-size: 13px;
  }

  body {
    overflow-x: clip;
  }

  /* Ticker */
  .ticker-bar__inner {
    padding: 0 6px;
  }

  .ticker-bar__label {
    font-size: 11px;
    padding: 0 8px 0 2px;
    gap: 6px;
  }

  .ticker-item {
    padding: 0 12px;
    font-size: 11px;
  }

  .timer-pill {
    min-width: 36px;
    height: 19px;
    padding: 0 7px;
    font-size: 10px;
  }

  /* Header */
  .main-header {
    height: 50px;
  }

  .main-header__inner {
    padding: 0 8px;
    gap: 4px;
  }

  .main-header__logo img {
    height: 26px;
  }

  .main-header__actions {
    gap: 4px;
  }

  .btn-login,
  .btn-join {
    padding: 0 12px;
    height: 34px;
    font-size: 12px;
  }

  .bet-box {
    height: 34px;
    margin-left: 2px;
  }

  .bet-box__item {
    min-width: 56px;
    padding: 2px 8px;
  }

  .bet-box__label {
    font-size: 8px;
  }

  .bet-box__count {
    font-size: 13px;
  }

  /* Layout */
  .page-wrapper {
    flex-direction: column;
    padding: 8px 8px 16px;
    gap: 8px;
  }

  .sidebar {
    width: 100%;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .sidebar::-webkit-scrollbar {
    display: none;
  }

  .sidebar-block {
    flex: 1 0 48%;
    min-width: 0;
  }

  .sidebar-block__header {
    padding: 9px 12px;
    font-size: 12px;
  }

  .sidebar-block__link {
    padding: 10px 12px;
    font-size: 12px;
    gap: 8px;
  }

  .sidebar-block__link svg {
    width: 15px;
    height: 15px;
  }

  /* Hero */
  .hero-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 22px 18px;
    gap: 14px;
    min-height: auto;
  }

  .hero-banner__logo {
    width: 72px;
    height: 72px;
  }

  .hero-banner__logo svg {
    width: 40px;
    height: 40px;
  }

  .hero-banner__tag {
    font-size: 10px;
    margin-bottom: 6px;
  }

  .hero-banner__title {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .hero-banner__date {
    font-size: 12px;
  }

  .hero-banner__cta {
    width: 100%;
    max-width: 280px;
    padding: 13px 24px;
    font-size: 12px;
  }

  .hero-dots {
    gap: 6px;
    padding: 8px 0 2px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }

  /* Tabs & filters */
  .category-tab {
    padding: 12px 14px;
    font-size: 13px;
  }

  .category-tab svg {
    width: 17px;
    height: 17px;
  }

  .date-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 2px;
    margin: 0 -2px;
  }

  .date-filters::-webkit-scrollbar {
    display: none;
  }

  .date-filter {
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 11px;
  }

  /* Race columns */
  .race-columns {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .race-column__header {
    padding: 11px 12px 10px;
  }

  .race-column__title {
    font-size: 11px;
  }

  .race-row {
    padding: 10px 12px;
    min-height: 42px;
  }

  .race-row__name {
    font-size: 11px;
  }

  .future-events {
    padding: 8px 2px 2px;
  }

  .future-events__title {
    font-size: 14px;
  }

  /* Footer */
  .site-footer {
    padding: 28px 10px 20px;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }

  .footer-partners {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 10px;
  }

  .footer-partners img {
    height: 28px;
  }

  .footer-legal {
    flex-direction: column;
    gap: 10px;
  }

  .footer-banner {
    padding: 18px 16px;
    min-height: auto;
  }

  .footer-banner__betstop {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-banner__betstop img {
    height: 42px;
  }

  /* Legal pages */
  .legal-content {
    padding: 20px 16px 28px;
  }

  .legal-content__title {
    font-size: 19px;
    margin-bottom: 18px;
  }

  .legal-content__body {
    font-size: 12px;
  }

  .legal-content__pdf-viewer,
  .legal-content__pdf-frame {
    min-height: 50vh;
  }

  .legal-content__pdf-frame {
    height: 55vh;
  }

  .terms-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  /* Auth modals — bottom sheet style */
  .auth-overlay {
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    align-items: flex-end;
  }

  .auth-modal {
    max-width: none;
    width: 100%;
    border-radius: 14px 14px 0 0;
    max-height: 92vh;
  }

  .auth-modal--register {
    max-height: 94vh;
  }

  .auth-modal__header {
    padding: 16px 16px 0;
  }

  .auth-modal__form {
    padding: 16px 16px 20px;
  }

  .auth-modal__title {
    font-size: 17px;
  }

  .auth-modal--register .auth-modal__title {
    font-size: 18px;
  }

  .register-dob-fields {
    gap: 10px;
  }
}

/* ─── Small mobile (≤480px) ─── */
@media (max-width: 480px) {
  .ticker-bar__nav:first-child {
    display: none;
  }

  .ticker-bar__label {
    padding-left: 4px;
  }

  .ticker-bar__separator {
    display: none;
  }

  .ticker-item__name {
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-header__inner {
    padding: 0 6px;
  }

  .btn-login {
    padding: 0 10px;
  }

  .btn-join {
    padding: 0 10px;
  }

  .bet-box__item {
    min-width: 50px;
    padding: 2px 6px;
  }

  .sidebar-block {
    flex: 1 0 100%;
  }

  .hero-banner__title {
    font-size: 17px;
  }

  .hero-banner__tag {
    font-size: 9px;
    letter-spacing: 0.3px;
  }

  .category-tab {
    padding: 11px 10px;
    font-size: 12px;
    gap: 6px;
  }

  .footer-partners {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer__bottom {
    font-size: 10px;
    text-align: center;
  }

  .auth-modal__footer-text {
    font-size: 12px;
  }

  .register-row {
    flex-wrap: wrap;
  }

  .register-hint {
    width: 100%;
    text-align: right;
  }
}

/* ─── Large desktop fine-tuning (optional cap) ─── */
@media (min-width: 1281px) {
  .ticker-bar__inner,
  .main-header__inner,
  .page-wrapper,
  .site-footer__inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}
