/* ═══════════════════════════════════════════════════════════════════════════════
   FLOATING PILL NAVIGATION BAR UI — ROYAL BULLION GOLD EDITION
   3-Column CSS Grid Layout (Left Brand | Center Segmented Capsule | Right Actions)
   ═══════════════════════════════════════════════════════════════════════════════ */

html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* Eliminate stray ambient blob / muddy brown strips from legacy themes */
body.ultra:not(.white)::before,
body.ultra:not(.white)::after,
body.royal-gold::before,
body.royal-gold::after {
  display: none !important;
}

body.ultra {
  background: #060504 !important;
  background-image: radial-gradient(1200px 500px at 50% -50px, rgba(245, 203, 66, 0.08), transparent 70%) !important;
}

/* Broadcast announcement banner containment */
.broadcast-bar {
  overflow: hidden !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  background: rgba(9, 7, 5, 0.95) !important;
  border-bottom: 1px solid rgba(245, 203, 66, 0.18) !important;
}

.broadcast-inner {
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 36px 0 12px !important;
}

.broadcast-text {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #F5CB42 !important;
}

/* Header Sticky Viewport Container */
html body #hdr,
body #hdr {
  position: sticky !important;
  top: 14px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  z-index: 99999 !important;
  padding: 0 20px !important;
  box-sizing: border-box !important;
  pointer-events: none !important;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  margin: 0 !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* The Outer Floating Pill Bar */
html body #hdr .uh,
body .uh.pill-navbar,
body header.uh {
  pointer-events: auto !important;
  position: relative !important;
  max-width: 1280px !important;
  width: 100% !important;
  margin: 0 auto !important;
  background: rgba(12, 10, 8, 0.88) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  backdrop-filter: blur(28px) saturate(180%) !important;
  border: 1px solid rgba(245, 203, 66, 0.30) !important;
  border-radius: 9999px !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.95), 
              0 0 24px -4px rgba(245, 203, 66, 0.16) !important;
  padding: 0 18px !important;
  height: 64px !important;
  min-height: 64px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
}

/* 3-Column Balanced Grid Architecture (Brand | Center Capsule | Actions)
   minmax(0, 1fr) guarantees true mathematical centering for Column 2 */
html body #hdr .uh .wrap,
body .uh.pill-navbar .wrap,
body header.uh .wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  grid-template-rows: 1fr !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 16px !important;
  background: transparent !important;
  border: none !important;
  box-sizing: border-box !important;
}

/* ── COLUMN 1 (LEFT): Brand Logo & Name ─────────────────────────────────────── */
html body #hdr .uh .brand,
body .uh .brand.pill-brand {
  grid-column: 1 !important;
  grid-row: 1 !important;
  order: 1 !important;
  justify-self: start !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 38px !important;
  gap: 10px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

html body #hdr .uh .brand .nav-logo-img,
body .uh .brand .nav-logo-img {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: drop-shadow(0 0 10px rgba(245, 203, 66, 0.45)) !important;
  display: block !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.pill-brand-text {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #FFF8DB 0%, #F5CB42 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #F5CB42 !important;
  letter-spacing: -0.01em !important;
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── COLUMN 2 (CENTER): Segmented Navigation Capsule in Exact Center ────────── */
html body #hdr .uh .nav-desktop,
html body #hdr .uh nav,
body .uh .nav-desktop.pill-nav-center,
body .uh nav.pill-nav-center {
  grid-column: 2 !important;
  grid-row: 1 !important;
  order: 2 !important;
  justify-self: center !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  height: 38px !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
  background: rgba(245, 203, 66, 0.05) !important;
  border: 1px solid rgba(245, 203, 66, 0.20) !important;
  border-radius: 9999px !important;
  padding: 2px 3px !important;
  gap: 3px !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  position: static !important;
  transform: none !important;
  margin: 0 !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
}

/* Balanced, Beautiful Nav Links inside Center Capsule */
html body #hdr .uh .nav-desktop a.l,
html body #hdr .uh .nav-desktop button.l,
body .uh .nav-desktop a.l,
body .uh .nav-desktop button.l {
  position: relative !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: rgba(245, 242, 236, 0.78) !important;
  text-decoration: none !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 14px !important;
  border-radius: 9999px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

html body #hdr .uh .nav-desktop a.l:hover,
html body #hdr .uh .nav-desktop button.l:hover,
body .uh .nav-desktop a.l:hover,
body .uh .nav-desktop button.l:hover {
  color: #F5CB42 !important;
  background: rgba(245, 203, 66, 0.12) !important;
}

/* Active Segmented Pill Tab: Solid Royal Bullion Gold with Dark Text */
html body #hdr .uh .nav-desktop a.l.on,
html body #hdr .uh .nav-desktop a.l.active,
body .uh .nav-desktop a.l.on,
body .uh .nav-desktop a.l.active {
  background: linear-gradient(135deg, #FFF6D1 0%, #F5CB42 55%, #D4AF37 100%) !important;
  color: #0C0806 !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 2px 14px rgba(245, 203, 66, 0.40) !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 18px !important;
  box-sizing: border-box !important;
}

html body #hdr .uh .nav-desktop a.l.on:hover,
body .uh .nav-desktop a.l.on:hover {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF4D0 45%, #E5BE4A 100%) !important;
  color: #0C0806 !important;
}

html body #hdr .uh .nav-desktop a.l.on::after,
body .uh .nav-desktop a.l.on::after {
  display: none !important;
}

/* ── COLUMN 3 (RIGHT): Sculpted Luxury Hardware-Inspired Action Dock ────────── */
html body #hdr .uh .nav-actions,
body .uh .nav-actions.pill-nav-right {
  grid-column: 3 !important;
  grid-row: 1 !important;
  order: 3 !important;
  justify-self: end !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 38px !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Hide duplicate DROP trigger in navbar to preserve clean grid balance */
.vip-reward-trigger {
  display: none !important;
}

/* Currency Switcher: Precision Recessed Obsidian-Gold Capsule */
.curr-switcher {
  display: none !important;
  align-items: center !important;
  height: 36px !important;
  min-height: 36px !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(10, 9, 14, 0.55) 100%) !important;
  border: 1px solid rgba(245, 203, 66, 0.22) !important;
  border-radius: 12px !important;
  padding: 3px 4px !important;
  gap: 2px !important;
  order: 1 !important;
  margin: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 2px 6px rgba(0, 0, 0, 0.45) !important;
}

@media (min-width: 1200px) {
  .curr-switcher {
    display: inline-flex !important;
  }
}

.curr-switcher .curr-btn {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: none !important;
  color: rgba(235, 224, 194, 0.58) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 0 !important;
  line-height: 1 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.curr-switcher .curr-btn:hover {
  color: #FFF3BE !important;
  background: rgba(245, 203, 66, 0.12) !important;
}

.curr-switcher .curr-btn.active {
  background: linear-gradient(135deg, #FFF6D1 0%, #F5CB42 58%, #C78D14 100%) !important;
  color: #09080D !important;
  font-weight: 900 !important;
  box-shadow: 0 2px 10px rgba(245, 203, 66, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

/* Sculpted Beveled Obsidian-Gold Squircle Keycaps (Theme & Vault Bag) */
html body #hdr .uh .theme-toggle-btn,
.theme-toggle-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.065) 0%, rgba(14, 12, 20, 0.72) 100%) !important;
  border: 1px solid rgba(245, 203, 66, 0.24) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #F5CB42 !important;
  cursor: pointer !important;
  position: relative !important;
  padding: 0 !important;
  margin: 0 !important;
  order: 2 !important;
  line-height: 1 !important;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.theme-toggle-btn .nv-ico {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease !important;
}

.theme-toggle-btn:hover .nv-ico {
  transform: rotate(22deg) scale(1.08) !important;
  filter: drop-shadow(0 0 6px rgba(245, 203, 66, 0.75)) !important;
}

/* Vault Bag Squircle Pill with Clean Inline Counter (Zero Clipping!) */
html body #hdr .uh .cartbtn,
.cartbtn {
  width: auto !important;
  min-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  box-sizing: border-box !important;
  border-radius: 12px !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.065) 0%, rgba(14, 12, 20, 0.72) 100%) !important;
  border: 1px solid rgba(245, 203, 66, 0.24) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  color: #F5CB42 !important;
  cursor: pointer !important;
  position: relative !important;
  padding: 0 10px !important;
  margin: 0 !important;
  order: 3 !important;
  line-height: 1 !important;
  overflow: visible !important;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

.cartbtn .nv-ico-bag {
  flex-shrink: 0 !important;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), filter 0.24s ease !important;
}

.cartbtn:hover .nv-ico-bag {
  transform: translateY(-1px) scale(1.06) !important;
  filter: drop-shadow(0 0 6px rgba(245, 203, 66, 0.75)) !important;
}

.cartbtn:hover,
.theme-toggle-btn:hover {
  background: linear-gradient(160deg, rgba(245, 203, 66, 0.18) 0%, rgba(24, 19, 10, 0.85) 100%) !important;
  border-color: rgba(245, 203, 66, 0.62) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(245, 203, 66, 0.24), inset 0 1px 0 rgba(255, 243, 190, 0.32) !important;
}

/* Integrated Crisp Inline Metallic Gold Count Pill — Never Clips Outside! */
.cartbtn .cbadge {
  position: static !important;
  top: auto !important;
  right: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 5px !important;
  border-radius: 6px !important;
  background: linear-gradient(135deg, #FFF6D1 0%, #F5CB42 60%, #C78D14 100%) !important;
  color: #09080D !important;
  font-family: ui-monospace, monospace !important;
  font-size: 10.5px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: 0 0 10px rgba(245, 203, 66, 0.45) !important;
  box-sizing: border-box !important;
}

.cartbtn .cbadge.hidden {
  display: none !important;
}

/* The Signature Bullion Gold Pill Contact Button with Custom Icon & Gliding Arrow */
.pill-contact-btn {
  position: relative !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #FFF6D1 0%, #F5CB42 52%, #C78D14 100%) !important;
  color: #09080D !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-weight: 800 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.2px !important;
  height: 36px !important;
  min-height: 36px !important;
  box-sizing: border-box !important;
  border-radius: 9999px !important;
  padding: 0 14px !important;
  gap: 6px !important;
  border: 1px solid rgba(255, 248, 220, 0.72) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 18px rgba(245, 203, 66, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
  transition: all 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  line-height: 1 !important;
  order: 4 !important;
  margin: 0 !important;
}

.pill-contact-btn .nv-contact-ico,
.pill-contact-btn .nv-contact-arr {
  flex-shrink: 0 !important;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pill-contact-btn:hover {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFF4D0 42%, #F5CB42 78%, #C78D14 100%) !important;
  color: #09080D !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 24px rgba(245, 203, 66, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

.pill-contact-btn:hover .nv-contact-arr {
  transform: translate(2px, -2px) !important;
}

.btn-nav-discord {
  display: none !important;
}

/* ── Mobile Responsive (Under 900px) ────────────────────────────────────────── */
@media (max-width: 900px) {
  html body #hdr,
  body #hdr {
    padding: 0 12px !important;
    top: 10px !important;
  }

  html body #hdr .uh,
  body .uh.pill-navbar,
  body header.uh {
    padding: 0 14px 0 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 56px !important;
    min-height: 56px !important;
  }

  html body #hdr .uh .wrap,
  body .uh.pill-navbar .wrap,
  body header.uh .wrap {
    grid-template-columns: 1fr auto !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  html body #hdr .uh .nav-desktop,
  html body #hdr .uh nav,
  body .uh .nav-desktop.pill-nav-center,
  body .uh nav.pill-nav-center {
    display: none !important;
  }

  html body #hdr .uh .nav-actions,
  body .uh .nav-actions.pill-nav-right {
    grid-column: 2 !important;
    justify-self: end !important;
    gap: 8px !important;
  }

  .burger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    background: rgba(245, 203, 66, 0.08) !important;
    border: 1px solid rgba(245, 203, 66, 0.28) !important;
    color: #F5CB42 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    order: 5 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 520px) {
  html body #hdr,
  body #hdr {
    padding: 0 8px !important;
    top: 8px !important;
  }

  html body #hdr .uh,
  body .uh.pill-navbar,
  body header.uh {
    padding: 0 10px 0 12px !important;
    border-radius: 9999px !important;
  }

  .pill-brand-text {
    font-size: 15px !important;
  }

  .pill-contact-btn {
    display: none !important;
  }

  html body #hdr .uh .theme-toggle-btn,
  .theme-toggle-btn {
    display: none !important;
  }
}
