/* ===== Variables ===== */
:root {
  --navy: #001a3d;
  --navy-light: #0a2a52;
  --navy-mid: #0d3566;
  --navy-card: #0f3d75;
  --yellow: #fdb913;
  --yellow-dark: #e5a500;
  --white: #ffffff;
  --grey: #8a9bb5;
  --grey-light: #c5d0e0;
  --red: #e53935;
  --text-dark: #1a1a2e;
  --border: rgba(255,255,255,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --sidebar-width: 260px;
  --right-sidebar-width: 300px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

/* ===== Top Bar ===== */
.top-bar {
  display: flex;
  align-items: center;
  background: #000e22;
  height: 36px;
  padding: 0 12px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.race-type-icons {
  display: flex;
  gap: 4px;
}

.race-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  background: transparent;
  color: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: background 0.2s;
}

.race-icon svg { width: 16px; height: 16px; }
.race-icon.active, .race-icon:hover { background: var(--yellow); color: var(--navy); }

.region-toggle {
  display: flex;
  gap: 4px;
}

.region-btn {
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  border: 1.5px solid var(--white);
  color: var(--white);
  background: transparent;
  transition: all 0.2s;
}

.region-btn.active {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(253,185,19,0.1);
}

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.ticker {
  display: flex;
  gap: 32px;
  animation: tickerScroll 40s linear infinite;
  white-space: nowrap;
}

.ticker:hover { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--grey-light);
}

.ticker-item .venue { font-weight: 600; color: var(--white); }
.ticker-item .race-num { color: var(--grey); }
.ticker-item .countdown { color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Header ===== */
.main-header {
  background: var(--navy);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1600px;
  margin: 0 auto;
}

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

.logo-star {
  font-size: 28px;
  color: var(--yellow);
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--white);
}

.logo-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--yellow);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-login {
  background: transparent;
  border: 1.5px solid var(--white);
  color: var(--white);
}

.btn-login:hover { background: rgba(255,255,255,0.1); }

.btn-join {
  background: var(--yellow);
  color: var(--navy);
  border: 1.5px solid var(--yellow);
}

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

.btn-betslip {
  background: transparent;
  border: 1.5px solid var(--yellow);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 16px;
  line-height: 1.2;
  min-width: 70px;
}

.betslip-count { font-size: 16px; font-weight: 800; }
.betslip-label { font-size: 10px; font-weight: 600; }

/* ===== Layout ===== */
.app-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr var(--right-sidebar-width);
  max-width: 1600px;
  margin: 0 auto;
  min-height: calc(100vh - 100px);
}

/* ===== Left Sidebar ===== */
.sidebar-left {
  background: var(--navy);
  border-right: 1px solid var(--border);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: calc(100vh - 100px);
}

.main-tabs {
  display: flex;
  margin: 0;
}

.main-tab {
  flex: 1;
  padding: 12px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius) var(--radius) 0 0;
  transition: all 0.2s;
}

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

.main-tab:not(.active) {
  background: var(--navy-mid);
  color: var(--white);
}

.main-tab:not(.active):hover { background: var(--navy-card); }

.search-box {
  position: relative;
  margin: 12px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--grey);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 13px;
}

.search-box input::placeholder { color: var(--grey); }
.search-box input:focus { outline: none; border-color: var(--yellow); }

.side-nav {
  padding: 0 8px;
  display: flex;
  flex-direction: column;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--grey-light);
  transition: all 0.15s;
}

.nav-item:hover, .nav-item.active {
  background: var(--navy-mid);
  color: var(--white);
}

.nav-icon { font-size: 16px; width: 20px; text-align: center; }

.favs-section {
  padding: 16px 12px;
  flex: 1;
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--grey);
  margin-bottom: 12px;
}

.fav-card {
  background: var(--navy-mid);
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
}

.fav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.fav-venue {
  font-size: 11px;
  color: var(--grey);
}

.fav-countdown {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

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

.silk {
  width: 24px;
  height: 28px;
  border-radius: 3px;
  flex-shrink: 0;
}

.silk-stripes { background: repeating-linear-gradient(0deg, #000 0 3px, #fff 3px 6px); }
.silk-diamond { background: #111; position: relative; }
.silk-diamond::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--yellow);
}

.fav-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.fav-trainer {
  font-size: 10px;
  color: var(--grey);
}

.odds-btn {
  width: 100%;
  padding: 10px;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 800;
  transition: all 0.15s;
  border: 2px solid transparent;
}

.odds-btn:hover {
  background: var(--yellow);
  transform: scale(1.02);
}

.odds-btn.selected {
  border-color: var(--yellow);
  background: #fff8e1;
}

.help-section {
  border-top: 1px solid var(--border);
  padding: 0;
}

.help-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

.help-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.help-toggle .chevron {
  margin-left: auto;
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.help-toggle.open .chevron { transform: rotate(180deg); }

.help-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.help-menu.open { max-height: 400px; }

.help-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 48px;
  font-size: 13px;
  color: var(--grey-light);
  transition: color 0.15s;
}

.help-menu a:hover { color: var(--white); }

.app-version {
  padding: 12px 16px;
  font-size: 11px;
  color: var(--grey);
}

.mobile-login {
  display: none;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  border-top: 1px solid var(--border);
}

.logo-mobile,
.top-bar-mobile { display: none; }

/* ===== Main Content ===== */
.main-content {
  padding: 16px;
  overflow-y: auto;
  background: var(--navy);
}

/* Hero */
.hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 12px;
}

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

/* Category bar */
.category-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

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

.cat-btn {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: transparent;
  color: var(--white);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1.5px solid #4a8fd4;
  transition: all 0.2s;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.cat-btn:hover:not(.active):not(.cat-arrow) {
  background: rgba(74, 143, 212, 0.15);
}

.cat-btn.active {
  background: #3d7ab8;
  border-color: #3d7ab8;
  color: var(--white);
}

.cat-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.cat-icon-emoji {
  font-size: 12px;
  line-height: 1;
}

.cat-arrow {
  padding: 7px 9px;
  background: var(--yellow);
  border: none;
  border-radius: 6px;
  color: var(--navy);
  margin-left: 2px;
}

.cat-arrow:hover {
  background: var(--yellow-dark);
}

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

.race-column {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}

.race-column-header {
  background: var(--navy-mid);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
}

.race-list {
  background: var(--white);
  border-radius: 0 0 10px 10px;
}

.race-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #e8ecf0;
}

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

.race-row:hover {
  background: #f5f7fa;
}

.race-info .venue {
  font-size: 13px;
  font-weight: 400;
  color: #4a5568;
  line-height: 1.3;
}

.race-info .race-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-top: 1px;
  line-height: 1.3;
}

.race-time {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.race-countdown {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 48px;
  text-align: right;
}

.race-countdown.timer-urgent { color: #e53935; }
.race-countdown.timer-soon { color: #e5a500; }
.race-countdown.timer-normal { color: var(--navy); }

.race-chevron {
  color: #b8c0cc;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

/* Mobile races */
.mobile-races { display: none; }

.mobile-race-card {
  background: var(--navy-mid);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

.mobile-race-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mobile-race-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--grey);
}

.mobile-race-meta .source { color: var(--grey-light); }
.mobile-race-meta .location { font-weight: 600; }

/* Footer sections */
.footer-section {
  background: var(--white);
  color: var(--text-dark);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.footer-section h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.provider-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.provider-logo {
  height: 40px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.payment-logos {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.payment-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.payments-section {
  background: transparent;
  padding: 16px 0;
}

.app-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-btn {
  display: block;
  line-height: 0;
}

.app-btn img {
  height: 44px;
  width: auto;
  border-radius: var(--radius);
  display: block;
}

.rg-banner h2 {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.3;
}

.rg-banner p {
  text-align: center;
  font-size: 13px;
  color: #444;
}

.rg-banner a { color: #1565c0; text-decoration: underline; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
  font-size: 12px;
  color: var(--grey-light);
}

.footer-links a:hover { color: var(--white); }

.social-icons { display: flex; gap: 8px; }

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.betstop-section { text-align: center; }

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

.betstop-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.age-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--red);
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
}

.legal-text {
  padding: 16px 0 32px;
  font-size: 10px;
  color: var(--grey);
  line-height: 1.6;
  text-align: center;
}

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

/* ===== Right Sidebar ===== */
.sidebar-right {
  background: var(--navy);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: calc(100vh - 100px);
}

.betslip-header {
  background: var(--yellow);
  color: var(--navy);
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 800;
}

.betslip-content {
  padding: 16px;
  min-height: 60px;
  border-bottom: 1px solid var(--border);
}

.betslip-empty {
  font-size: 13px;
  color: var(--grey);
  text-align: center;
}

.betslip-item {
  background: var(--navy-mid);
  border-radius: var(--radius);
  padding: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.betslip-item .remove {
  color: var(--red);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
}

.promo-banners {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.promo-link {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, opacity 0.2s;
}

.promo-link:hover {
  transform: scale(1.02);
  opacity: 0.95;
}

.promo-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.rg-banner-sidebar {
  background: var(--white);
  color: var(--text-dark);
  margin: 12px;
  border-radius: var(--radius-lg);
  padding: 16px;
}

.rg-banner-sidebar h2 {
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}

.rg-banner-sidebar p {
  font-size: 11px;
  text-align: center;
  color: #444;
}

.rg-banner-sidebar a { color: #1565c0; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: var(--sidebar-width) 1fr;
  }
  .sidebar-right { display: none; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }

  .main-header { padding: 8px 12px; }
  .main-header .logo { display: none; }

  .logo-mobile {
    display: flex;
    justify-content: center;
    padding: 16px 12px 8px;
  }

  .top-bar-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px 8px;
  }

  .logo-main { font-size: 20px; }
  .logo-sub { font-size: 10px; letter-spacing: 4px; }

  .btn { padding: 6px 14px; font-size: 12px; }
  .btn-betslip { min-width: 60px; padding: 4px 10px; }

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

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

  .side-nav { display: none; }
  .favs-section { display: none; }

  .search-box { display: none; }

  .mobile-login { display: block; }

  .main-content { padding: 0; }

  .hero {
    border-radius: 0;
    margin-bottom: 0;
  }

  .slide-apple-pay { padding: 0 16px; }
  .slide-line2 { font-size: 16px; }
  .apple-pay-card { padding: 10px 16px; }

  .category-bar { display: none; }

  .race-grid { display: none; }

  .sidebar-left .mobile-races {
    display: block;
    padding: 0 12px 12px;
  }

  .footer-section {
    margin: 0 12px 12px;
    border-radius: var(--radius);
  }

  .sidebar-right {
    display: block;
    position: static;
    height: auto;
    border-left: none;
  }

  .betslip-content { display: none; }

  .promo-banners { padding: 12px; }

  .rg-banner-sidebar { display: none; }

  .main-content .rg-banner { display: block; }
}

@media (min-width: 769px) {
  .mobile-races { display: none !important; }

  .help-section .app-version,
  .help-section .mobile-login { display: none; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy-card); border-radius: 3px; }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--navy);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  max-width: 1600px;
  margin: 0 auto;
}

.breadcrumb-home {
  display: flex;
  align-items: center;
  color: var(--navy);
  opacity: 0.85;
}

.breadcrumb-home:hover { opacity: 1; }

.breadcrumb-sep {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.7;
}

/* ===== Policy Page ===== */
.main-content-policy {
  padding: 0;
}

.page-title-bar {
  background: var(--navy-mid);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 12px 20px;
  text-transform: uppercase;
}

.policy-content {
  background: var(--white);
  color: var(--text-dark);
  padding: 24px 28px 32px;
  font-size: 13px;
  line-height: 1.65;
}

.policy-content h2 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.policy-content h3 {
  font-size: 13px;
  font-weight: 800;
  margin: 24px 0 12px;
  color: var(--text-dark);
}

.policy-content p {
  margin-bottom: 14px;
}

.policy-content ul {
  margin: 0 0 14px 20px;
}

.policy-content li {
  margin-bottom: 6px;
}

.policy-content a {
  color: #1565c0;
  text-decoration: underline;
}

.policy-content a:hover {
  color: #0d47a1;
}

.policy-updated {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #e0e4ea;
  font-size: 12px;
  color: #666;
}

.policy-section-title {
  font-size: 13px;
  font-weight: 800;
  margin: 28px 0 14px;
  color: var(--text-dark);
  text-transform: uppercase;
}

.policy-clause {
  margin-bottom: 14px;
}

.policy-clause-num {
  font-weight: 700;
}

.policy-sublist {
  list-style: none;
  margin: 8px 0 14px 0;
  padding: 0;
}

.policy-sublist li {
  margin-bottom: 8px;
  padding-left: 8px;
}

.policy-definitions dt {
  font-weight: 700;
  margin-top: 12px;
}

.policy-definitions dd {
  margin: 4px 0 0 0;
}

.policy-table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.policy-table th,
.policy-table td {
  border: 1px solid #d0d5dc;
  padding: 8px 10px;
  text-align: left;
}

.policy-table th {
  background: #f0f3f7;
  font-weight: 700;
}

.policy-table-caption {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 12px;
}

.help-menu a.active {
  color: var(--white);
  font-weight: 600;
  background: var(--navy-card);
}

.page-policy .help-section-page {
  margin-top: auto;
}

@media (max-width: 768px) {
  .breadcrumbs {
    padding: 8px 12px;
    font-size: 12px;
  }

  .policy-content {
    padding: 16px;
    font-size: 12px;
  }

  .page-policy .favs-section { display: none; }
  .page-policy .search-box { display: none; }
}

/* ===== Login Modal ===== */
body.modal-open {
  overflow: hidden;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--navy);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.login-modal.active {
  opacity: 1;
  visibility: visible;
}

.login-modal-inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-modal-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  text-decoration: none;
}

.login-modal-logo .logo-main {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-modal-logo .logo-star {
  font-size: 22px;
  color: var(--yellow);
}

.login-modal-logo .logo-sub {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--yellow);
  margin-top: 4px;
}

.login-modal-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 24px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.login-form-box {
  width: 100%;
  background: var(--navy-mid);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
}

.login-field {
  position: relative;
  margin-bottom: 22px;
}

.login-field label {
  position: absolute;
  top: -9px;
  left: 12px;
  background: var(--navy-mid);
  padding: 0 6px;
  font-size: 11px;
  color: var(--white);
  z-index: 1;
}

.login-field input {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 1.5px solid var(--yellow);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 14px;
}

.login-field input:focus {
  outline: none;
  border-color: var(--yellow-dark);
  box-shadow: 0 0 0 2px rgba(253, 185, 19, 0.2);
}

.login-field-password input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--white);
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  opacity: 0.8;
}

.password-toggle:hover { opacity: 1; }

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.login-submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: #0a2240;
  border: none;
  border-radius: var(--radius);
  color: #6b8aab;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.login-submit:hover {
  background: #0d2d54;
  color: var(--white);
}

.login-forgot {
  display: block;
  margin-top: 20px;
  color: var(--white);
  font-size: 13px;
  text-decoration: underline;
  text-align: center;
  cursor: pointer;
}

.login-forgot:hover { color: var(--yellow); }

.login-signup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.login-signup-text {
  font-size: 13px;
  color: var(--white);
}

.login-join-btn {
  padding: 10px 18px;
  background: var(--yellow);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
}

.login-join-btn:hover { background: var(--yellow-dark); }

.login-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.login-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}
