/* ===== CSS Variables ===== */
:root {
  --yellow: #E6FF00;
  --yellow-dark: #ccff00;
  --navy: #0f1a2e;
  --navy-light: #1a2744;
  --navy-mid: #243352;
  --navy-text: #1E272E;
  --dark-bg: #0a0e17;
  --card-bg: #DCDDE1;
  --card-border: #b8bac0;
  --text-white: #ffffff;
  --text-grey: #7F8C8D;
  --text-dark: #1a1a1a;
  --red: #D91E18;
  --red-dark: #c62828;
  --sidebar-width: 200px;
  --right-sidebar-width: 300px;
  --header-height: 40px;
  --font: 'Roboto', Arial, Helvetica, sans-serif;
}

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

html {
  font-size: 13px;
}

body {
  font-family: var(--font);
  background: var(--dark-bg);
  color: var(--text-white);
  line-height: 1.4;
  overflow-x: hidden;
}

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

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Diamond Plate Background ===== */
.page-wrapper {
  min-height: 100vh;
  background-color: #0d1117;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.03) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.03) 75%, transparent 75%),
    linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.02) 75%, transparent 75%);
  background-size: 20px 20px, 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* ===== Top Ticker ===== */
.top-ticker {
  display: flex;
  align-items: stretch;
  background: var(--navy-light);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ticker-left {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255,255,255,0.1);
  background: var(--navy);
}

.ticker-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
}

.ticker-filter-btn {
  color: var(--text-grey);
  display: flex;
  align-items: center;
  padding: 2px;
}

.ticker-scroll {
  display: flex;
  align-items: center;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ticker-scroll::-webkit-scrollbar {
  display: none;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin: 4px 2px;
  height: calc(100% - 8px);
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 11px;
}

.ticker-item.urgent .ticker-time {
  color: var(--red);
  font-weight: 700;
}

.ticker-text {
  color: var(--text-white);
  font-weight: 500;
}

.ticker-time {
  color: var(--red);
  font-weight: 600;
  font-size: 11px;
}

.ticker-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  flex-shrink: 0;
  border-left: 1px solid rgba(255,255,255,0.1);
}

.btn-login {
  background: var(--navy-mid);
  color: var(--text-white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 16px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.btn-join {
  background: var(--yellow);
  color: var(--text-dark);
  padding: 5px 16px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

/* ===== Racing Icons ===== */
.horse-icon,
.greyhound-icon,
.harness-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.horse-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M22 10c0-1.5-.5-3-1.5-4.2C19.5 4.5 18 4 16.5 4c-1 0-2 .3-2.8.8L12 6l-1.7-1.2C9.5 4.3 8.5 4 7.5 4 6 4 4.5 4.5 3.5 5.8 2.5 7 2 8.5 2 10c0 2 1 3.8 2.5 5L12 20l7.5-5C21 13.8 22 12 22 10z'/%3E%3C/svg%3E");
}

.greyhound-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4 14c0-2 1-4 3-5l2-1c1-.5 2-.5 3 0l1 1c1 .5 2 .5 3 0l1-1c1-.5 2-.5 3 0l2 1c2 1 3 3 3 5v4H4v-4z'/%3E%3C/svg%3E");
}

.harness-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 14h18v2H3v-2zm2-4h14l-2-4H7L5 10zm-2 6h20v2H3v-2z'/%3E%3C/svg%3E");
}

.icon-dark.horse-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E272E'%3E%3Cpath d='M22 10c0-1.5-.5-3-1.5-4.2C19.5 4.5 18 4 16.5 4c-1 0-2 .3-2.8.8L12 6l-1.7-1.2C9.5 4.3 8.5 4 7.5 4 6 4 4.5 4.5 3.5 5.8 2.5 7 2 8.5 2 10c0 2 1 3.8 2.5 5L12 20l7.5-5C21 13.8 22 12 22 10z'/%3E%3C/svg%3E");
}

.icon-dark.greyhound-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E272E'%3E%3Cpath d='M4 14c0-2 1-4 3-5l2-1c1-.5 2-.5 3 0l1 1c1 .5 2 .5 3 0l1-1c1-.5 2-.5 3 0l2 1c2 1 3 3 3 5v4H4v-4z'/%3E%3C/svg%3E");
}

.icon-dark.harness-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231E272E'%3E%3Cpath d='M3 14h18v2H3v-2zm2-4h14l-2-4H7L5 10zm-2 6h20v2H3v-2z'/%3E%3C/svg%3E");
}

.ticker-icon {
  width: 14px;
  height: 14px;
}

/* ===== Main Layout ===== */
.main-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr var(--right-sidebar-width);
  min-height: calc(100vh - var(--header-height));
}

/* ===== Left Sidebar ===== */
.left-sidebar {
  background: var(--navy);
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.02) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.02) 75%, transparent 75%);
  background-size: 16px 16px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
}

.logo {
  display: flex;
  align-items: stretch;
  margin: 12px 10px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
  width: fit-content;
}

.logo-tradie {
  background: var(--yellow);
  color: var(--text-dark);
  font-weight: 900;
  font-size: 15px;
  padding: 6px 8px;
  letter-spacing: -0.5px;
}

.logo-bet {
  background: #2a3348;
  color: var(--text-white);
  font-weight: 900;
  font-size: 15px;
  padding: 6px 8px;
  letter-spacing: -0.5px;
}

.sports-nav {
  flex: 1;
  overflow-y: auto;
}

.nav-section {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  color: var(--text-white);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.nav-header-icon {
  display: flex;
  align-items: center;
  opacity: 0.8;
}

.nav-chevron {
  margin-left: auto;
  opacity: 0.6;
}

.nav-list {
  list-style: none;
}

.nav-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 20px;
  font-size: 12px;
  color: var(--text-grey);
  transition: color 0.15s, background 0.15s;
}

.nav-list li a:hover {
  color: var(--text-white);
  background: rgba(255,255,255,0.05);
}

.sport-icon {
  width: 16px;
  text-align: center;
  font-size: 11px;
  opacity: 0.7;
}

.sidebar-footer {
  margin-top: auto;
  padding-bottom: 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.help-header {
  border-bottom: none;
}

.app-version {
  font-size: 10px;
  color: var(--text-grey);
  padding: 4px 12px;
  opacity: 0.6;
}

.sidebar-login {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-grey);
}

.sidebar-login:hover {
  color: var(--text-white);
}

/* ===== Center Content ===== */
.center-content {
  padding: 0;
  overflow-y: auto;
  min-width: 0;
  background-color: #0d1117;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.03) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.03) 75%, transparent 75%),
    linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.02) 75%, transparent 75%);
  background-size: 20px 20px, 20px 20px;
  background-position: 0 0, 10px 10px;
}

/* Hero Carousel */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 4.5 / 1;
  min-height: 140px;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  background: rgba(0,0,0,0.3);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  padding: 0;
  cursor: pointer;
}

.dot.active {
  background: var(--yellow);
}

/* Hero 2 */
.hero-banner-2 {
  width: 100%;
  overflow: hidden;
}

.hero-banner-2 img {
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 120px;
}

/* Main Tabs */
.main-tabs {
  display: flex;
  gap: 0;
  padding: 0;
}

.main-tab {
  flex: 1;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--navy-mid);
  color: var(--text-white);
  border: none;
  border-right: 1px solid rgba(0,0,0,0.3);
}

.main-tab.active {
  background: var(--yellow);
  color: var(--text-dark);
}

.main-tab:last-child {
  border-right: none;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  background: var(--navy);
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  background: var(--navy-mid);
  color: var(--text-white);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-btn.active {
  background: var(--navy-light);
  border-color: var(--yellow);
}

.filter-btn svg {
  flex-shrink: 0;
}

.filter-icon {
  width: 14px;
  height: 14px;
}

.filter-scroll-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--yellow);
  color: var(--text-dark);
  border-radius: 3px;
  flex-shrink: 0;
  margin-left: auto;
}

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

.race-column-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-white);
  padding: 0 4px 8px;
}

.race-list {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.race-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--card-bg);
  color: var(--navy-text);
  border-bottom: 1px solid #c8c9cd;
  font-size: 12px;
  transition: background 0.15s;
}

.race-card:last-child {
  border-bottom: none;
}

.race-card:hover {
  background: #e8e9ec;
}

.race-card .race-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.race-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.race-location {
  font-weight: 700;
  font-size: 12px;
  color: var(--navy-text);
  line-height: 1.2;
}

.race-number {
  font-size: 11px;
  color: var(--text-grey);
  line-height: 1.2;
}

.race-time {
  color: var(--navy-text);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
}

.race-time.urgent {
  color: var(--red);
  font-weight: 700;
}

.race-arrow {
  color: #999;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Featured Racing */
.featured-racing {
  padding: 12px 10px;
}

.section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .race-icon {
  width: 18px;
  height: 18px;
  filter: brightness(10);
}

.featured-list {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  overflow: hidden;
}

.featured-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--card-bg);
  color: var(--navy-text);
  border-bottom: 1px solid #c8c9cd;
  font-size: 12px;
}

.featured-card.featured-highlight {
  background: #dce8f0;
}

.featured-card:last-child {
  border-bottom: none;
}

.featured-card:hover {
  background: #e8e9ec;
}

.featured-card.featured-highlight:hover {
  background: #d0e0ec;
}

.featured-card .race-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.featured-info {
  flex: 1;
  min-width: 0;
}

.featured-location {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: var(--navy-text);
  line-height: 1.2;
}

.featured-race-num {
  display: block;
  font-size: 11px;
  color: var(--text-grey);
  line-height: 1.2;
}

.featured-name {
  display: block;
  font-size: 11px;
  color: var(--navy-text);
  text-transform: uppercase;
  letter-spacing: 0.2px;
  margin-top: 3px;
  font-weight: 600;
  line-height: 1.3;
}

.featured-time {
  color: var(--navy-text);
  font-weight: 600;
  white-space: nowrap;
  font-size: 12px;
  align-self: center;
}

.featured-time.urgent {
  color: var(--red);
  font-weight: 700;
}

/* Popular SRM */
.popular-srm {
  padding: 12px 10px;
}

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

.srm-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  overflow: hidden;
  color: var(--navy-text);
}

.srm-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  font-size: 11px;
  font-weight: 700;
}

.srm-header-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.srm-location {
  flex: 1;
  color: var(--text-grey);
  font-size: 11px;
  letter-spacing: 0.3px;
}

.srm-tag {
  background: #FFFF00;
  color: var(--text-dark);
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 2px;
}

.srm-timer {
  color: var(--red);
  font-weight: 700;
  font-size: 11px;
}

.srm-selections {
  background: #ffffff;
  margin: 0;
  border-bottom: 1px solid var(--card-border);
}

.srm-selection {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 11px;
  border-bottom: 1px solid #eee;
}

.srm-selection:last-child {
  border-bottom: none;
}

.silk {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.2);
}

.silk-blue { background: #1565c0; }
.silk-red { background: #c62828; }
.silk-green { background: #2e7d32; }
.silk-yellow { background: #f9a825; }
.silk-white { background: #fafafa; }
.silk-black { background: #212121; }
.silk-pink { background: #e91e63; }
.silk-stripes {
  background: repeating-linear-gradient(
    0deg,
    #212121,
    #212121 2px,
    #fafafa 2px,
    #fafafa 4px
  );
}

.srm-runner {
  flex: 1;
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--navy-text);
}

.srm-market {
  color: var(--navy-text);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.srm-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  background: var(--card-bg);
}

.srm-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-text);
}

.srm-bet-btn {
  background: #ffffff;
  color: var(--navy-text);
  border: 1px solid #bbb;
  padding: 6px 16px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

.srm-bet-btn:hover {
  background: #f8f8f8;
}

/* ===== Site Footer ===== */
.site-footer {
  margin-top: 20px;
  background: var(--yellow);
}

.footer-inner {
  padding: 20px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-box {
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 16px 20px;
  width: 100%;
  max-width: 100%;
}

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

.provider-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
}

.provider-logos img {
  height: 32px;
  width: auto;
  object-fit: contain;
  max-width: 72px;
}

.provider-row-2 {
  margin-top: 10px;
}

.footer-mid-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  flex-wrap: wrap;
}

.footer-payments {
  flex: 0 0 auto;
}

.payment-logos {
  display: flex;
  align-items: center;
  gap: 14px;
}

.payment-logos img {
  height: 26px;
  width: auto;
  object-fit: contain;
}

.footer-apps {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-apps img {
  height: 40px;
  width: auto;
}

.footer-warning-box {
  text-align: center;
}

.warning-title {
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
  color: var(--text-dark);
}

.warning-text {
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
  color: var(--text-dark);
}

.warning-text a {
  color: #0000ee;
  text-decoration: underline;
}

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

.footer-links a {
  font-size: 12px;
  color: var(--text-dark);
  text-decoration: underline;
  font-weight: 500;
}

.footer-betstop-section {
  background: #ffffff;
  width: 100%;
  padding: 20px;
  text-align: center;
  color: var(--text-dark);
}

.betstop-intro {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.betstop-intro a {
  color: #0000ee;
  text-decoration: underline;
}

.betstop-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.betstop-logos img {
  height: 56px;
  width: auto;
}

.age-badge {
  background: var(--red);
  color: white;
  font-weight: 900;
  font-size: 13px;
  text-align: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  flex-shrink: 0;
}

.footer-legal {
  text-align: center;
  color: var(--text-dark);
  font-size: 11px;
  line-height: 1.7;
  max-width: 700px;
}

.footer-legal a {
  color: #0000ee;
  text-decoration: underline;
}

.footer-legal p {
  margin-bottom: 6px;
}

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

/* ===== Right Sidebar ===== */
.right-sidebar {
  background: #12193E;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.02) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.02) 75%, transparent 75%);
  background-size: 16px 16px;
  border-left: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.bet-slip {
  flex-shrink: 0;
}

.bet-slip-header {
  background: var(--yellow);
  color: var(--text-dark);
  font-weight: 900;
  font-size: 15px;
  padding: 10px 14px;
  text-align: left;
  letter-spacing: 0.3px;
}

.bet-slip-empty {
  background: #12193E;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,0.02) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.02) 75%, transparent 75%);
  background-size: 16px 16px;
  padding: 20px 14px 16px;
  text-align: center;
}

.empty-betslip-img {
  width: 120px;
  height: auto;
  margin: 0 auto 14px;
  border-radius: 4px;
}

.empty-betslip-text {
  color: var(--text-white);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
}

.empty-betslip-btns {
  display: flex;
  gap: 8px;
}

.btn-next-racing,
.btn-next-sports {
  flex: 1;
  background: var(--yellow);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 12px;
  padding: 10px 8px;
  border-radius: 4px;
  border: none;
}

.btn-next-racing:hover,
.btn-next-sports:hover {
  background: var(--yellow-dark);
}

/* Feature Race / Sport boxes */
.feature-box {
  position: relative;
  margin: 16px 10px 0;
  border: 1px solid var(--yellow);
  border-radius: 2px;
  background: #12193E;
}

.feature-tab {
  position: absolute;
  top: -11px;
  left: 10px;
  background: var(--yellow);
  color: var(--text-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: 2px;
  z-index: 1;
}

.feature-tab-icon {
  font-size: 12px;
  width: 14px;
  height: 14px;
}

.feature-tab-icon.horse-icon {
  width: 14px;
  height: 14px;
}

.feature-content {
  display: flex;
  align-items: center;
  padding: 16px 12px 12px;
  color: var(--text-white);
  text-decoration: none;
}

.feature-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.feature-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.3;
}

.feature-meta {
  font-size: 11px;
  color: var(--yellow);
  font-weight: 600;
}

.feature-meta.highlight {
  color: var(--yellow);
}

.feature-meta .feature-timer,
.feature-timer.urgent {
  color: var(--red);
}

.feature-subtitle {
  font-size: 11px;
  color: var(--text-white);
  line-height: 1.3;
}

.feature-chevron {
  color: var(--yellow);
  font-size: 22px;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 6px;
}

/* Sidebar sections */
.sidebar-section {
  margin-top: 14px;
  flex-shrink: 0;
}

.sidebar-section-header {
  background: #141b4d;
  color: var(--text-white);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border-top: 2px solid var(--yellow);
}

.sidebar-section:first-of-type .sidebar-section-header {
  border-top: none;
}

.sidebar-section-body {
  background: #D1D5DB;
}

/* Next To Jump Favs */
.jump-fav-item {
  padding: 10px 12px;
  border-bottom: 1px solid #b0b4ba;
}

.jump-fav-item:last-child {
  border-bottom: none;
}

.jump-fav-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.jump-fav-top .race-icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.jump-fav-info {
  flex: 1;
  min-width: 0;
}

.jump-fav-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-text);
  line-height: 1.2;
}

.jump-fav-sub {
  display: block;
  font-size: 11px;
  color: #757575;
  line-height: 1.2;
}

.jump-fav-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-text);
  white-space: nowrap;
}

.jump-fav-time.urgent {
  color: var(--red);
}

.jump-fav-runner {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jump-fav-runner .silk {
  width: 16px;
  height: 16px;
}

.jump-runner-info {
  flex: 1;
  min-width: 0;
}

.jump-runner-name {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-text);
  line-height: 1.2;
}

.jump-runner-trainer {
  display: block;
  font-size: 10px;
  color: #757575;
}

.odds-btn {
  background: #ffffff;
  border: 1px solid #bbb;
  color: var(--navy-text);
  font-weight: 900;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 2px;
  min-width: 52px;
  flex-shrink: 0;
}

/* Next To Go Favs */
.go-fav-item {
  padding: 10px 12px;
  border-bottom: 1px solid #b0b4ba;
  color: var(--navy-text);
}

.go-fav-item:last-child {
  border-bottom: none;
}

.go-fav-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.go-fav-icon {
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.go-fav-info {
  flex: 1;
  min-width: 0;
}

.go-fav-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-text);
  line-height: 1.2;
}

.go-fav-sub {
  display: block;
  font-size: 11px;
  color: #757575;
  line-height: 1.2;
}

.go-fav-markets {
  font-size: 11px;
  color: var(--navy-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.go-fav-teams {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.go-fav-flags {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}

.go-fav-flags .flag {
  font-size: 12px;
  line-height: 1;
}

.go-fav-team-names {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-text);
}

.go-fav-players .go-fav-team-names {
  width: 100%;
}

.go-fav-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-text);
  white-space: nowrap;
  flex-shrink: 0;
}

.go-fav-bet {
  display: flex;
  align-items: stretch;
  background: #c5c9cf;
  border-radius: 2px;
  overflow: hidden;
}

.go-fav-market {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 10px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-text);
}

.go-fav-odds-btn {
  flex: 1;
  background: #ffffff;
  border: 1px solid #bbb;
  border-radius: 0;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--navy-text);
  font-size: 11px;
  font-weight: 600;
  min-height: 52px;
}

.go-fav-odds-btn strong {
  font-size: 14px;
  font-weight: 900;
}

.promo-banner {
  flex-shrink: 0;
  margin-top: 0;
  border-top: 2px solid var(--yellow);
}

.promo-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.account-info {
  padding: 16px 14px;
  font-size: 11px;
  line-height: 1.8;
  color: var(--text-white);
  flex-shrink: 0;
  text-align: center;
  background: #12193E;
  border-top: 2px solid var(--yellow);
}

.account-info a {
  color: var(--text-white);
  text-decoration: underline;
}

.sidebar-warning {
  background: #ffffff;
  padding: 16px 14px;
  color: var(--text-dark);
  flex-shrink: 0;
}

.sidebar-warning .warning-title {
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.35;
  color: var(--text-dark);
}

.sidebar-warning .warning-text {
  font-size: 10px;
  text-align: center;
  line-height: 1.6;
  color: var(--text-dark);
}

.sidebar-warning a {
  color: #0000ee;
  text-decoration: underline;
}

/* ===== Registration Modal ===== */
.reg-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.reg-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.reg-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.reg-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: #12193E;
  border: 2px solid var(--yellow);
  border-radius: 6px;
  padding: 28px 24px 24px;
  color: var(--text-white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.reg-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.reg-modal-close:hover {
  opacity: 1;
}

.reg-modal-logo {
  display: flex;
  width: fit-content;
  margin: 0 auto 16px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.reg-modal-title {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}

.reg-modal-subtitle {
  text-align: center;
  font-size: 12px;
  color: var(--text-grey);
  margin-bottom: 20px;
}

.reg-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.reg-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reg-form label > span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-grey);
}

.reg-form input[type="text"],
.reg-form input[type="email"],
.reg-form input[type="tel"],
.reg-form input[type="password"],
.reg-form input[type="date"] {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--text-white);
  font-size: 13px;
  font-family: var(--font);
}

.reg-form input:focus {
  outline: none;
  border-color: var(--yellow);
}

.reg-checkbox {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px !important;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-grey);
}

.reg-checkbox input {
  margin-top: 2px;
  flex-shrink: 0;
}

.reg-checkbox a {
  color: var(--yellow);
  text-decoration: underline;
}

.reg-submit-btn {
  background: var(--yellow);
  color: var(--text-dark);
  font-weight: 900;
  font-size: 14px;
  padding: 12px;
  border-radius: 4px;
  border: none;
  margin-top: 4px;
}

.reg-submit-btn:hover {
  background: var(--yellow-dark);
}

.reg-login-link {
  text-align: center;
  font-size: 12px;
  margin-top: 16px;
  color: var(--text-grey);
}

.reg-login-btn {
  background: none;
  border: none;
  color: var(--yellow);
  font-weight: 700;
  font-size: 12px;
  text-decoration: underline;
  padding: 0;
}

body.modal-open {
  overflow: hidden;
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .main-layout {
    grid-template-columns: 180px 1fr 240px;
  }

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

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

  .left-sidebar,
  .right-sidebar {
    position: static;
    height: auto;
  }

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