/* ===================================================================
   BetAndHedge — Persistent Bet/Hedge mode switcher (top-most bar)
=================================================================== */
.bh-mode-bar {
  background: #060a16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
[data-theme="light"] .bh-mode-bar {
  background: #f3ede0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.bh-mode-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.4rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bh-mode-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: rgba(238, 241, 248, 0.7);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
[data-theme="light"] .bh-mode-logo { color: rgba(42, 31, 12, 0.7); }
.bh-mode-logo img { height: 18px; width: 18px; object-fit: contain; }
.bh-mode-logo:hover { color: #eef1f8; }
[data-theme="light"] .bh-mode-logo:hover { color: #2a1f0c; }

.bh-mode-switch {
  display: flex;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.2rem;
}
[data-theme="light"] .bh-mode-switch {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.08);
}

.bh-mode-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  color: rgba(238, 241, 248, 0.45);
  transition: color 0.15s ease, background 0.2s ease;
}
[data-theme="light"] .bh-mode-link { color: rgba(42, 31, 12, 0.45); }

.bh-mode-link:hover { color: rgba(238, 241, 248, 0.75); }
[data-theme="light"] .bh-mode-link:hover { color: rgba(42, 31, 12, 0.75); }

.bh-mode-link.bh-mode-bet.active {
  color: #eef1f8;
  background: linear-gradient(180deg, rgba(63, 116, 201, 0.55), rgba(63, 116, 201, 0.35));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}
.bh-mode-link.bh-mode-hedge.active {
  color: #1a1206;
  background: linear-gradient(180deg, #e6c767, #c9a227);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* ===================================================================
   BetAndHedge — Shared Top Navigation Bar
   Self-contained styling (doesn't depend on per-page CSS variables)
   so it renders identically across every page on the site.
=================================================================== */

.bh-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: linear-gradient(180deg, #0d1730 0%, #0a1226 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="light"] .bh-nav {
  background: linear-gradient(180deg, #ffffff 0%, #f7f2e2 100%);
  border-bottom: 1px solid rgba(185, 146, 76, 0.28);
}

.bh-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.4rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.bh-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #eef1f8;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}
[data-theme="light"] .bh-nav-logo { color: #2a1f0c; }

.bh-nav-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.bh-nav-links {
  display: none;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
}

@media (min-width: 900px) {
  .bh-nav-links { display: flex; }
  .bh-nav-burger { display: none !important; }
}

.bh-nav-link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: rgba(238, 241, 248, 0.82);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08), inset 0 -3px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s cubic-bezier(.22,.85,.35,1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.15s ease;
}
.bh-nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 30% -40%, rgba(255, 255, 255, 0.35), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.7;
}
[data-theme="light"] .bh-nav-link {
  color: rgba(42, 31, 12, 0.78);
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(185, 146, 76, 0.16);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -3px 6px rgba(0, 0, 0, 0.04);
}

.bh-nav-link:hover {
  transform: translateY(-1px);
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.3);
  color: #f3e5ab;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16), inset 0 -3px 6px rgba(0, 0, 0, 0.15), 0 4px 14px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .bh-nav-link:hover {
  background: rgba(185, 146, 76, 0.16);
  border-color: rgba(185, 146, 76, 0.4);
  color: #6b4f13;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), inset 0 -3px 6px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(0, 0, 0, 0.06);
}

.bh-nav-link:active {
  transform: translateY(0) scale(0.96);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
}

.bh-nav-link.active {
  color: #d4af37;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.24), rgba(212, 175, 55, 0.1));
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), inset 0 -3px 8px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .bh-nav-link.active {
  color: #8a6a1a;
  background: linear-gradient(180deg, rgba(185, 146, 76, 0.22), rgba(185, 146, 76, 0.1));
  border-color: rgba(185, 146, 76, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), inset 0 -3px 8px rgba(0, 0, 0, 0.06);
}

/* Bet-side blue pill variant — hedge keeps the default gold above */
.bh-nav-blue .bh-nav-link:hover {
  background: rgba(63, 116, 201, 0.16);
  border-color: rgba(63, 116, 201, 0.35);
  color: #b9d4f7;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16), inset 0 -3px 6px rgba(0, 0, 0, 0.15), 0 4px 14px rgba(0, 0, 0, 0.2);
}
[data-theme="light"] .bh-nav-blue .bh-nav-link:hover {
  background: rgba(63, 116, 201, 0.14);
  border-color: rgba(63, 116, 201, 0.4);
  color: #234a86;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), inset 0 -3px 6px rgba(0, 0, 0, 0.05), 0 4px 14px rgba(0, 0, 0, 0.06);
}
.bh-nav-blue .bh-nav-link.active {
  color: #8fb3ea;
  background: linear-gradient(180deg, rgba(63, 116, 201, 0.26), rgba(63, 116, 201, 0.1));
  border-color: rgba(63, 116, 201, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), inset 0 -3px 8px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .bh-nav-blue .bh-nav-link.active {
  color: #2a4d85;
  background: linear-gradient(180deg, rgba(63, 116, 201, 0.22), rgba(63, 116, 201, 0.1));
  border-color: rgba(63, 116, 201, 0.5);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7), inset 0 -3px 8px rgba(0, 0, 0, 0.06);
}

.bh-nav-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.16) 45%, transparent 72%);
  transform: scale(0);
  opacity: 1;
  animation: bh-nav-ripple-anim 0.6s cubic-bezier(.22,.7,.3,1) forwards;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: -1;
}
@keyframes bh-nav-ripple-anim {
  to { transform: scale(2.4); opacity: 0; }
}

.bh-nav-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.bh-nav-icon {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(255, 255, 255, 0.03);
  color: #eef1f8;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}
[data-theme="light"] .bh-nav-icon {
  border-color: rgba(185, 146, 76, 0.3);
  background: #ffffff;
  color: #2a1f0c;
}
.bh-nav-icon:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
}

.bh-nav-mobile {
  display: none;
  flex-direction: column;
  padding: 0.6rem 1.4rem 1.1rem;
  gap: 0.15rem;
  border-top: 1px solid rgba(212, 175, 55, 0.16);
}
.bh-nav-mobile.open { display: flex; }

@media (min-width: 900px) {
  .bh-nav-mobile { display: none !important; }
}

.bh-nav-mobile .bh-nav-link {
  padding: 0.7rem 0.6rem;
}

/* ===================================================================
   Market ticker strip — sits below the nav, illustrative sample data
=================================================================== */

.bh-ticker {
  background: #101b38;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
[data-theme="light"] .bh-ticker {
  background: #fbf7ec;
  border-bottom: 1px solid rgba(185, 146, 76, 0.2);
}

.bh-ticker-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.65rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  white-space: nowrap;
}

.bh-ticker-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(238, 241, 248, 0.4);
  flex: 0 0 auto;
}
[data-theme="light"] .bh-ticker-label { color: rgba(42, 31, 12, 0.4); }

.bh-ticker-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  font-size: 0.82rem;
}

.bh-ticker-name {
  font-weight: 700;
  color: #eef1f8;
}
[data-theme="light"] .bh-ticker-name { color: #2a1f0c; }

.bh-ticker-arrow { font-size: 0.7rem; }

.bh-ticker-item.up .bh-ticker-arrow,
.bh-ticker-item.up .bh-ticker-change { color: #3ecf7e; }

.bh-ticker-item.down .bh-ticker-arrow,
.bh-ticker-item.down .bh-ticker-change { color: #e06767; }

.bh-ticker-change { font-weight: 600; }

.bh-ticker-tag {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7fa8e8;
  border: 1px solid rgba(63, 116, 201, 0.4);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
[data-theme="light"] .bh-ticker-tag { color: #2e5aa0; border-color: rgba(63,116,201,0.35); }

.bh-ticker-time {
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(238, 241, 248, 0.55);
}
[data-theme="light"] .bh-ticker-time { color: rgba(42, 31, 12, 0.55); }

.bh-ticker-odds {
  font-size: 0.78rem;
  font-weight: 800;
  color: #1a1206;
  background: linear-gradient(180deg, #e6c767, #c9a227);
  border-radius: 6px;
  padding: 0.12rem 0.5rem;
}

.bh-ticker-note {
  margin-left: auto;
  font-size: 0.68rem;
  color: rgba(238, 241, 248, 0.35);
  font-style: italic;
  flex: 0 0 auto;
}
[data-theme="light"] .bh-ticker-note { color: rgba(42, 31, 12, 0.35); }

/* Prevent the sticky nav from covering in-page anchor jumps */
:target { scroll-margin-top: 76px; }

/* ===================================================================
   Responsible Use panel (shared across bet & hedge footers)
=================================================================== */
.responsible-panel{
  max-width:680px;
  margin:0 auto 1.4rem;
  text-align:left;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(212,175,55,0.25);
  border-radius:16px;
  padding:1.3rem 1.5rem;
}
[data-theme="light"] .responsible-panel{ background:rgba(0,0,0,0.02); }

.responsible-header{
  display:flex;
  align-items:center;
  gap:0.6rem;
  margin-bottom:0.8rem;
}

.responsible-title{
  font-family:'Playfair Display',serif;
  font-size:1rem;
  font-weight:700;
  color:#d4af37;
  margin:0;
}

.badge-18{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:50%;
  background:linear-gradient(135deg, #e6473f, #b9302a);
  border:1px solid rgba(243,229,171,0.5);
  font-size:0.62rem;
  font-weight:800;
  letter-spacing:-0.02em;
  color:#fff;
}

.responsible-text{
  font-size:0.76rem;
  font-weight:400;
  color:rgba(238,241,248,0.65);
  text-align:left;
  line-height:1.65;
}
[data-theme="light"] .responsible-text{ color:rgba(42,31,12,0.65); }
.responsible-text p{ margin:0 0 0.8rem; }
.responsible-text p:last-child{ margin-bottom:0; }

@media (max-width:520px){
  .responsible-panel{ padding:1.1rem; }
}

/* ===================================================================
   Site search overlay
=================================================================== */

.bh-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1.2rem 2rem;
  background: rgba(5, 9, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.bh-search-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.bh-search-panel {
  width: 100%;
  max-width: 560px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 30, 55, 0.82), rgba(12, 20, 40, 0.88));
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16), inset 0 -20px 40px rgba(0, 0, 0, 0.25), 0 24px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(-8px) scale(0.98);
  transition: transform 0.18s cubic-bezier(.22,.85,.35,1);
}
.bh-search-overlay.open .bh-search-panel { transform: translateY(0) scale(1); }

[data-theme="light"] .bh-search-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 246, 235, 0.92));
  border-color: rgba(185, 146, 76, 0.25);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), inset 0 -20px 40px rgba(0, 0, 0, 0.04), 0 24px 60px rgba(0, 0, 0, 0.18);
}

.bh-search-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex: 0 0 auto;
}
[data-theme="light"] .bh-search-input-row { border-bottom-color: rgba(185, 146, 76, 0.18); }

.bh-search-input-row svg { flex-shrink: 0; opacity: 0.6; }

.bh-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  color: #eef1f8;
}
[data-theme="light"] .bh-search-input { color: #2a1f0c; }
.bh-search-input::placeholder { color: rgba(238, 241, 248, 0.4); }
[data-theme="light"] .bh-search-input::placeholder { color: rgba(42, 31, 12, 0.4); }

.bh-search-esc {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(238, 241, 248, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  padding: 0.2rem 0.4rem;
  flex-shrink: 0;
}
[data-theme="light"] .bh-search-esc { color: rgba(42, 31, 12, 0.45); border-color: rgba(185, 146, 76, 0.25); }

.bh-search-results {
  overflow-y: auto;
  padding: 0.5rem;
}

.bh-search-section-label {
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(238, 241, 248, 0.35);
  padding: 0.6rem 0.7rem 0.3rem;
}
[data-theme="light"] .bh-search-section-label { color: rgba(42, 31, 12, 0.4); }

.bh-search-result {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  text-decoration: none;
  color: #eef1f8;
  transition: background 0.12s ease;
}
[data-theme="light"] .bh-search-result { color: #2a1f0c; }

.bh-search-result:hover, .bh-search-result.active {
  background: rgba(212, 175, 55, 0.14);
}
[data-theme="light"] .bh-search-result:hover, [data-theme="light"] .bh-search-result.active {
  background: rgba(185, 146, 76, 0.14);
}

.bh-search-result-title { font-weight: 700; font-size: 0.9rem; }
.bh-search-result-desc {
  font-size: 0.78rem;
  color: rgba(238, 241, 248, 0.55);
  margin-top: 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="light"] .bh-search-result-desc { color: rgba(42, 31, 12, 0.55); }

.bh-search-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: rgba(238, 241, 248, 0.4);
  font-size: 0.85rem;
}
[data-theme="light"] .bh-search-empty { color: rgba(42, 31, 12, 0.4); }

/* ===================================================================
   Accessibility — visible keyboard focus states, site-wide
=================================================================== */
.bh-nav-link:focus-visible,
.bh-nav-icon:focus-visible,
.bh-mode-link:focus-visible,
.bh-nav-logo:focus-visible,
.bh-mode-logo:focus-visible,
.bh-search-input:focus-visible,
.bh-search-result:focus-visible {
  outline: 3px solid #d4af37;
  outline-offset: 2px;
  border-radius: 4px;
}

