:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f9fafc;
  --border: #e5e8ee;
  --text: #1c2533;
  --muted: #677385;
  --accent: #c9182b;
  --accent-soft: #ffe8eb;
  --success: #14804a;
  --shadow: 0 14px 35px rgba(22, 31, 48, 0.08);
  --radius: 16px;
  --transition: all 0.2s ease;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

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

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #f7f8fb 0%, #f1f3f7 100%);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1380px, 95%);
  margin: 16px auto 24px;
  display: grid;
  gap: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  border-color: #d7dce6;
  box-shadow: 0 16px 34px rgba(20, 31, 49, 0.11);
}

.btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 17px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline {
  border-color: #cbd3df;
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.top-header {
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.burger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #d5dbe5;
  background: #fff;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 3px auto;
  background: #1f2b3d;
}

.brand-logo {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo-img {
  display: block;
  width: clamp(128px, 13vw, 185px);
  height: auto;
  object-fit: contain;
  background-color: red;
}

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

.main-nav a {
  padding: 8px 13px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  color: #4b586b;
  font-size: 0.88rem;
  transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
  border-color: #f1c8cf;
  background: #fff6f7;
}

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

.auth-tools input {
  width: 112px;
  background: #fff;
  border: 1px solid #d7dce6;
  border-radius: 999px;
  padding: 10px 13px;
  color: var(--text);
  outline: none;
}

.auth-tools input:focus {
  border-color: var(--accent);
}

.race-carousel-wrap {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  background: #11161f;
  border-color: #202938;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.race-tools {
  display: flex;
  gap: 6px;
}

.tool-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid #354055;
  background: #1a2230;
  color: #f7fafc;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.tool-btn.active,
.tool-btn:hover {
  border-color: #ec3347;
  background: #c9182b;
  color: #fff;
}

.race-carousel {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.race-carousel::-webkit-scrollbar {
  display: none;
}

.mini-race-card {
  min-width: 155px;
  border: 1px solid #2f394b;
  background: #fff;
  border-radius: 9px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.mini-race-card:hover {
  transform: translateY(-1px);
  border-color: #ec3347;
}

.mini-race-card p {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 76px;
}

.mini-race-card span {
  color: #4e5d73;
  font-size: 0.7rem;
}

.mini-race-card strong {
  margin-left: auto;
  min-width: 36px;
  text-align: center;
  font-size: 0.69rem;
  color: #fff;
  background: var(--accent);
  border-radius: 7px;
  padding: 4px 6px;
}

.mini-race-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(201, 24, 43, 0.2);
}

.carousel-arrow {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid #435168;
  background: #1a2230;
  color: #f6f8fb;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 290px;
  gap: 12px;
}

.left-sidebar,
.right-sidebar,
.center-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.panel {
  padding: 15px;
}

.panel h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.left-sidebar {
  position: sticky;
  top: 12px;
  align-self: start;
}

.highlights-panel,
.left-panel-card {
  background: #fbfcff;
  border: 1px solid #e7ebf3;
  box-shadow: 0 10px 24px rgba(26, 36, 56, 0.06);
}

.highlights-panel {
  padding-top: 12px;
}

.highlights-panel .panel-title {
  margin: 0 0 10px;
  color: #6c788a;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.left-panel-title {
  margin: -1px 0 12px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(201, 24, 43, 0.85), rgba(89, 12, 24, 0.85)),
    url("../hero-banner-3.png") center/cover no-repeat;
  text-align: center;
  color: #fff;
  font-size: 1.85rem;
  font-weight: 800;
  padding: 12px 10px;
}

.highlights-list {
  display: grid;
  gap: 8px;
}

.highlight-item {
  border: 1px solid #e6ebf2;
  border-radius: 10px;
  background: #fff;
  color: #1f2a3b;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 9px;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.highlight-item:hover,
.highlight-item.active {
  border-color: #d3dbe8;
  box-shadow: 0 5px 14px rgba(35, 48, 70, 0.08);
}

.highlights-list .highlight-item:first-child {
  border-color: #f0bcc6;
  background: #fff5f7;
}

.highlight-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #fff1f3;
  border: 1px solid #ffd6de;
  color: #b71129;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.highlight-item strong {
  color: #c9182b;
  font-size: 1.2rem;
}

.left-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 9px;
  position: relative;
}

.left-toggle-row::before {
  content: "Racing";
  grid-column: 1 / -1;
  color: #7b8698;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1px;
}

.left-toggle {
  border: 1px solid #e3e8f1;
  border-radius: 999px;
  background: #fff;
  color: #687486;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
}

.left-toggle.active {
  border-color: #c9182b;
  background: #fff1f4;
  color: #b51028;
}

.left-filter-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.left-filter-row::before {
  content: "Filters";
  grid-column: 1 / -1;
  color: #7b8698;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1px;
}

.left-filter-btn {
  border: 1px solid #e3e8f1;
  border-radius: 10px;
  background: #fff;
  color: #6a7586;
  font-size: 0.82rem;
  font-weight: 700;
  height: 34px;
  cursor: pointer;
}

.left-filter-btn.active {
  border-color: #c9182b;
  background: #c9182b;
  color: #fff;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  background: #fff;
  border: 1px solid #d9e0ea;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.76rem;
  cursor: pointer;
  transition: var(--transition);
}

.chip:hover,
.chip.active {
  color: var(--accent);
  border-color: #f3c4cc;
  background: #fff7f8;
}

.jump-list {
  list-style: none;
  display: grid;
  gap: 7px;
}

.jump-list li {
  border: 1px solid #dde3ed;
  border-radius: 10px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px;
  align-items: center;
}

.jump-list span {
  font-size: 0.8rem;
  font-weight: 700;
}

.jump-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.74rem;
}

.jump-list strong {
  grid-row: 1 / span 2;
  color: var(--accent);
  font-size: 0.82rem;
}

.jump-list-light {
  gap: 8px;
}

.jump-list-light li {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 9px;
  align-items: center;
  background: #fff;
  border-color: #e5eaf2;
  border-radius: 10px;
  padding: 8px 8px 8px 7px;
  transition: var(--transition);
}

.jump-list-light li:hover {
  border-color: #d0d9e8;
  box-shadow: 0 4px 10px rgba(31, 45, 67, 0.06);
}

.jump-list-light li:first-child {
  border-left: 3px solid #c9182b;
  background: #fff7f9;
}

.jump-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #fdf0f2;
  color: #fff;
  border: 1px solid #ffd3dc;
  color: #b51028;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
}

.jump-meta {
  display: grid;
  gap: 1px;
}

.jump-list-light .jump-meta span {
  color: #1f2937;
  font-size: 0.78rem;
  font-weight: 800;
}

.jump-list-light .jump-meta em {
  color: #4c5a70;
  font-size: 0.7rem;
}

.time-pill {
  padding: 7px 11px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.73rem;
  font-weight: 800;
  min-width: 52px;
  text-align: center;
}

.time-pill.red {
  background: #d20f2f;
}

.time-pill.orange {
  background: #f26922;
}

.left-panel-footer {
  margin-top: 10px;
  width: 100%;
  border: 1px solid #e3e8f2;
  border-radius: 10px;
  background: #fff;
  color: #2a3446;
  padding: 9px 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.left-panel-footer:hover {
  border-color: #d2dceb;
  box-shadow: 0 6px 14px rgba(37, 51, 72, 0.08);
}

.left-panel-footer strong {
  color: #c9182b;
  font-size: 1.05rem;
}

.hero {
  min-height: 226px;
  background: url("../hero.jpg") center/cover no-repeat;
  position: relative;
  overflow: hidden;
  transition: background-image 0.6s ease-in-out;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 24px;
  width: min(530px, 100%);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 1.8px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin-bottom: 10px;
}

.hero p {
  color: #425167;
  margin-bottom: 14px;
  font-size: 0.94rem;
}

.hero-actions {
  display: flex;
  gap: 8px;
}

.category-row,
.date-tabs {
  padding: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.category-btn,
.tab-btn {
  border: 1px solid #d8dee8;
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.category-btn.active,
.tab-btn.active,
.category-btn:hover,
.tab-btn:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

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

.odds-card {
  padding: 10px;
  display: grid;
  gap: 10px;
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
}

.odds-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.odds-card h4 {
  font-size: 0.78rem;
  line-height: 1.08;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.odds-card h4 small {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: #4e5f75;
}

.odds-card header span {
  font-size: 0.74rem;
  background: #f26d21;
  color: #fff;
  border-radius: 9px;
  padding: 8px 11px;
  min-width: 46px;
  text-align: center;
  font-weight: 800;
}

.race-type-icon {
  width: 35px;
  height: 35px;
  border-radius: 8px;
  background: #ac1022;
  border: 1px solid #cf3348;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  grid-row: 1 / span 2;
}

.odds-card ul {
  list-style: none;
  display: grid;
  gap: 7px;
}

.odds-card li {
  border-bottom: 1px solid #eceff4;
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.79rem;
  transition: var(--transition);
}

.odds-card li:hover {
  background: #fafbfd;
}

.odds-card li strong {
  color: #1f2a3a;
  border: 1px solid #cb2438;
  border-radius: 8px;
  min-width: 64px;
  text-align: center;
  padding: 8px 6px;
  font-weight: 800;
}

.odds-card button {
  border: 1px solid #b20f25;
  border-radius: 9px;
  background: #cc142b;
  color: #fff;
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

.odds-card button:hover {
  background: #b81024;
}

.sport-card {
  border: 1px solid #dde2eb;
  border-radius: 11px;
  padding: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  transition: var(--transition);
}

.sport-card:hover {
  border-color: #ccd5e2;
  background: #fafbfe;
}

.sport-card p {
  font-size: 0.75rem;
  font-weight: 700;
}

.sport-card span {
  color: var(--muted);
  font-size: 0.68rem;
}

.prices {
  display: flex;
  gap: 6px;
}

.prices strong {
  min-width: 44px;
  text-align: center;
  font-size: 0.72rem;
  padding: 5px 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dbe2ec;
}

.right-sidebar .panel {
  max-height: 1000px;
  overflow: auto;
}

.upcoming-panel {
  background: linear-gradient(180deg, #f6f7fa 0%, #f0f2f6 100%);
  border: 1px solid #dfe4ed;
}

.upcoming-title {
  margin: -1px 0 12px;
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(201, 24, 43, 0.85), rgba(89, 12, 24, 0.85)),
    url("../hero-banner-3.png") center/cover no-repeat;
  color: #fff;
  text-align: center;
  font-size: 1.95rem;
  font-weight: 800;
  padding: 11px 8px;
}

.match-card {
  background: #fff;
  border: 1px solid #e2e7f0;
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 11px;
  display: grid;
  gap: 9px;
}

.match-card header {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
}

.match-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #a80f22;
  color: #fff;
  border: 1px solid #cd2d44;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.match-card h4 {
  font-size: 0.81rem;
  font-weight: 800;
  line-height: 1.1;
}

.match-time {
  min-width: 48px;
  text-align: center;
  border-radius: 10px;
  background: #f26c22;
  color: #fff;
  padding: 8px 8px;
  font-size: 0.74rem;
  font-weight: 800;
}

.match-time.pale {
  background: #fff4f5;
  color: #2a364a;
  border: 1px solid #f2c4cb;
}

.match-teams,
.match-odds {
  display: grid;
  gap: 8px;
}

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

.match-teams.two,
.match-odds.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.match-teams span {
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.05;
  color: #1f2a39;
}

.match-odds button {
  border: 1px solid #cd2238;
  border-radius: 9px;
  background: #fff;
  color: #1f2a3a;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 9px 6px;
  cursor: pointer;
}

.match-odds button:hover {
  background: #fff6f8;
}

.right-sidebar .panel::-webkit-scrollbar {
  width: 6px;
}

.right-sidebar .panel::-webkit-scrollbar-thumb {
  background: #d0d7e2;
  border-radius: 999px;
}

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

.schedule-block {
  padding: 12px;
}

.schedule-block h3 {
  margin-bottom: 10px;
  font-size: 0.93rem;
}

.schedule-block ul {
  list-style: none;
  display: grid;
  gap: 7px;
}

.schedule-block li {
  border: 1px solid #dce3ec;
  border-radius: 10px;
  padding: 9px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.schedule-block span {
  font-size: 0.82rem;
}

.schedule-block em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

.site-footer {
  padding: 20px;
  display: grid;
  gap: 16px;
  background: #fcfdff;
  border: 1px solid #e6ebf3;
  box-shadow: 0 10px 24px rgba(25, 36, 54, 0.06);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8edf5;
}

.footer-top h4,
.footer-links-grid h5 {
  text-transform: none;
  font-size: 0.9rem;
  letter-spacing: 0;
  margin-bottom: 10px;
  font-weight: 800;
  color: #1f2a39;
}

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

.provider-logos img,
.payment-logos img {
  width: 100%;
  height: 52px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #e6ebf3;
  border-radius: 10px;
  padding: 7px;
}

.payments-app {
  display: grid;
  align-content: start;
}

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

.payment-logos .pay-badge {
  width: 100%;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #e6ebf3;
  background: #fff;
  color: #1a2230;
  font-size: 1.02rem;
  font-weight: 800;
}

.download-title {
  margin-top: 14px;
}

.app-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.app-logos img {
  width: 100%;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e6ebf3;
  padding: 6px 10px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  padding: 6px 0 2px;
}

.footer-links-grid h5 {
  font-size: 0.82rem;
  margin-bottom: 8px;
  color: #273346;
}

.footer-links-grid ul {
  list-style: none;
  display: grid;
  gap: 3px;
}

.footer-links-grid a {
  color: #5e6a7d;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.42;
  transition: var(--transition);
}

.footer-links-grid a:hover {
  color: #c9182b;
}

.footer-legal {
  color: #657286;
  font-size: 0.74rem;
  line-height: 1.45;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  background: #f7f9fc;
}

.footer-legal a {
  text-decoration: underline;
  font-weight: 700;
  color: #2d3a4d;
}

.footer-bottom {
  display: grid;
  gap: 10px;
}

.copyright-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2e3a4c;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  border: 3px solid #d71f35;
  border-radius: 50%;
  font-size: 0.84rem;
}

.warning-cards {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 10px;
}

.warning-card {
  background: #ffffff;
  color: #111;
  border-radius: 10px;
  min-height: 66px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  border: 1px solid #e8edf5;
}

.warning-card p {
  font-size: 0.72rem;
  line-height: 1.34;
}

.warning-card img {
  width: 128px;
  height: auto;
  object-fit: contain;
}

.warning-card h6 {
  font-size: 0.93rem;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.system-by {
  text-align: right;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5f6d83;
}

.exact-footer {
  background: #fcfdff;
  border-color: #e6ebf3;
  box-shadow: 0 10px 24px rgba(25, 36, 54, 0.06);
}

.about-content-card {
  background: #fff;
  border: 1px solid #dce3ed;
}

.about-head-strip {
  margin: -1px 0 12px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(201, 24, 43, 0.85), rgba(89, 12, 24, 0.85)),
    url("../hero-banner-3.png") center/cover no-repeat;
  color: #fff;
  font-size: 0.96rem;
  font-weight: 800;
  padding: 9px 12px;
}

.about-subtitle {
  color: #b51028;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.about-content-card p {
  color: #1f2837;
  font-size: 0.77rem;
  line-height: 1.34;
  margin-bottom: 8px;
}

.about-notice {
  border: 1px solid #efc9ce;
  background: #fff6f7;
  border-radius: 7px;
  padding: 8px 10px;
}

.left-race-links {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.left-race-links button {
  border: 1px solid #3b4454;
  background: linear-gradient(180deg, #232b37, #1b212c);
  color: #fff;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.left-race-links button strong {
  color: #e54156;
  font-size: 1rem;
}

.faq-card {
  background: #fff;
  border: 1px solid #dfe4ed;
}

.faq-main-title {
  margin: -1px 0 10px;
  border-radius: 9px;
  background: linear-gradient(135deg, #bc1226, #8d0c1c);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 10px 12px;
}

.faq-group {
  margin-bottom: 10px;
}

.faq-group h4 {
  margin: 0 0 6px;
  border-radius: 8px;
  background: #b40f22;
  color: #fff;
  font-size: 0.73rem;
  padding: 7px 10px;
}

.faq-row {
  width: 100%;
  border: 1px solid #e9edf4;
  border-radius: 7px;
  background: #fff;
  color: #1f2b3a;
  text-align: left;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 5px;
  cursor: pointer;
}

.faq-row span {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #f0d2d6;
  background: #fff7f8;
  color: #be1d31;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.63rem;
  font-weight: 800;
}

.faq-row strong {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #fff1f3;
  color: #be1d31;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}

.contact-layout-card {
  background: #fff;
  border: 1px solid #dce3ed;
}

.contact-head-strip {
  margin: -1px 0 10px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(201, 24, 43, 0.85), rgba(89, 12, 24, 0.85)),
    url("../hero-banner-3.png") center/cover no-repeat;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 10px 12px;
}

.contact-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-box h4 {
  margin: 0 0 6px;
  background: #c21126;
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
}

.contact-box h4 span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.65);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.contact-box-body {
  border: 1px solid #e8bdc4;
  background: #fff8f8;
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 138px;
}

.contact-box-body p {
  margin: 0 0 10px;
  color: #1f2a39;
  font-size: 0.75rem;
  line-height: 1.35;
}

.contact-box-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .contact-grid-2 {
    grid-template-columns: 1fr;
  }
}

.about-panel {
  min-height: 100%;
}

.about-panel h3 {
  font-size: 1.75rem;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.about-panel p {
  color: #4d5b70;
  font-size: 0.97rem;
  line-height: 1.55;
  margin-bottom: 10px;
}

.contact-panel h3 {
  font-size: 1.75rem;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.contact-panel h4 {
  margin: 10px 0 8px;
  text-transform: uppercase;
  font-size: 1rem;
}

.contact-panel p {
  color: #4d5b70;
  font-size: 0.97rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.contact-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-apps img {
  width: min(240px, 100%);
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #d8e0eb;
  background: #fff;
  padding: 6px 10px;
}

.policy-panel h3 {
  font-size: 1.75rem;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.policy-panel h4 {
  margin: 14px 0 8px;
  text-transform: uppercase;
  font-size: 1rem;
  color: #25344b;
}

.policy-panel p {
  color: #4d5b70;
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.policy-panel ul {
  margin: 6px 0 10px 18px;
  display: grid;
  gap: 4px;
}

.terms-pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #1f2a39;
}

.policy-panel li {
  color: #4d5b70;
  font-size: 0.95rem;
}

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

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

.auth-modal {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #dae1ec;
  border-radius: 14px;
  padding: 16px;
  position: relative;
}

.auth-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: #617085;
  font-size: 1.5rem;
  cursor: pointer;
}

.auth-modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-tab {
  flex: 1;
  border: 1px solid #d4dce8;
  background: #fff;
  color: #5f6f85;
  border-radius: 999px;
  padding: 9px 10px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: grid;
  gap: 10px;
}

.auth-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.auth-panel input {
  width: 100%;
  border: 1px solid #d3dce8;
  background: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  color: #1f2c40;
  outline: none;
}

.auth-panel input:focus {
  border-color: var(--accent);
}

@media (max-width: 1120px) {
  .top-header {
    flex-wrap: wrap;
  }

  .auth-tools {
    width: 100%;
    justify-content: flex-end;
  }

  .auth-tools input {
    width: 160px;
  }

  .dashboard-layout {
    grid-template-columns: 250px 1fr;
  }

  .right-sidebar {
    grid-column: 1 / -1;
  }

  .race-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bottom-races {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .top-header {
    flex-wrap: wrap;
  }

  .burger {
    display: inline-block;
  }

  .main-nav {
    display: none;
    width: 100%;
    order: 5;
    padding-top: 6px;
  }

  .main-nav.open {
    display: flex;
    flex-wrap: wrap;
  }

  .auth-tools {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .auth-tools input {
    width: calc(50% - 6px);
    min-width: 150px;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .left-sidebar,
  .right-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .left-sidebar {
    position: static;
  }

  .race-grid {
    grid-template-columns: 1fr;
  }

  .about-panel h3 {
    font-size: 1.35rem;
  }

  .contact-panel h3 {
    font-size: 1.35rem;
  }

  .policy-panel h3 {
    font-size: 1.35rem;
  }

  .provider-logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .warning-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: 95%;
    margin-top: 10px;
  }

  .auth-tools input {
    width: 100%;
  }

  .race-carousel-wrap {
    gap: 6px;
    padding: 8px;
  }

  .race-tools {
    display: none;
  }

  .carousel-arrow {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }

  .mini-race-card {
    min-width: 140px;
    padding: 8px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .left-sidebar,
  .right-sidebar,
  .bottom-races {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 18px;
  }

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

  .site-footer,
  .exact-footer {
    padding: 14px;
    gap: 12px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 10px;
  }

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

  .app-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding-top: 2px;
  }

  .footer-links-grid ul {
    gap: 4px;
  }

  .footer-links-grid h5 {
    margin: 0 0 6px;
    font-size: 0.76rem;
  }

  .footer-top h4,
  .footer-links-grid h5 {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  .footer-links-grid div:nth-child(2) h5,
  .footer-links-grid div:nth-child(4) h5,
  .footer-links-grid div:nth-child(5) h5 {
    display: none;
  }

  .footer-links-grid a {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .footer-legal {
    font-size: 0.69rem;
    padding: 10px;
    gap: 6px;
  }

  .about-panel p {
    font-size: 0.88rem;
  }

  .contact-panel p {
    font-size: 0.88rem;
  }

  .policy-panel p,
  .policy-panel li {
    font-size: 0.88rem;
  }

  .copyright-row {
    font-size: 0.72rem;
    flex-wrap: wrap;
  }

  .warning-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .warning-card img {
    width: 120px;
  }

  .system-by {
    text-align: left;
    font-size: 0.67rem;
  }
}
