/* ==========================================================================
   SOWIN • Unified Set vs Pro World & Most Wanted 5-Step Streak Styling
   (`public/pro_streaks.css`)
   - 100% Unified Design Language with Sorare Set (`#view-set`) & GW Builder
   - Crisp Dark & Light Mode, Cool Bounty Card-Deal Loader & Step Animations
   - Mobile-First Zero-Clutter Layout (360px–430px)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Desktop Two-World Switcher (`🔮 Sorare Set` | `🏀 Sorare Pro`)
   -------------------------------------------------------------------------- */
.header-brand-world-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.sowin-world-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.24rem;
  border-radius: 12px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
}

.world-switch-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.44rem 0.9rem;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.16s ease;
}

.world-switch-btn:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.08);
}

.world-switch-btn:active {
  transform: scale(0.975);
}

.world-switch-btn[data-world-switch="set"].is-active {
  background: linear-gradient(135deg, #6D28D9 0%, #4F46E5 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(109, 40, 217, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.world-switch-btn[data-world-switch="pro"].is-active {
  background: var(--accent-coral);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(217, 78, 31, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

@media (max-width: 960px) {
  .desktop-world-switcher {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   2. Sorare Pro 3-Tab Sub-Navigation Bar (`GW Lineups` · `Most Wanted` · `Missions`)
   -------------------------------------------------------------------------- */
.pro-world-subnav-bar {
  margin-bottom: 0.72rem;
  padding: 0.26rem;
  border-radius: 13px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .pro-world-subnav-bar {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.16);
}

.pro-subnav-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.28rem;
}

.pro-subtab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 9px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.pro-subtab:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.08);
}

.pro-subtab.is-active {
  background: var(--accent-coral);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(217, 78, 31, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.pro-subtab[data-pro-subtab="pro-streaks"].is-active {
  background: linear-gradient(135deg, #D97706 0%, #D94E1F 100%);
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* --------------------------------------------------------------------------
   3. Viewport-Locked Frosted Loading Stage for Most Wanted (`#view-pro-streaks`)
   -------------------------------------------------------------------------- */
.pro-streaks-loading-overlay {
  display: none;
}

#view-pro-streaks.active .pro-streaks-loading-overlay:not(.hidden) {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw;
  height: 100dvh;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(248, 250, 252, 0.44);
  backdrop-filter: blur(8px) saturate(1.08);
  -webkit-backdrop-filter: blur(8px) saturate(1.08);
  animation: setOverlayFadeIn 0.22s ease both;
}

[data-theme="dark"] #view-pro-streaks.active .pro-streaks-loading-overlay:not(.hidden) {
  background: rgba(9, 13, 22, 0.56);
}

#view-pro-streaks.is-streak-loading #pro-streaks-root {
  filter: blur(4px);
  opacity: 0.45;
  pointer-events: none;
}

.mw-cap-hud {
  border-color: rgba(245, 158, 11, 0.48) !important;
  background: rgba(245, 158, 11, 0.14) !important;
}

.mw-hud-dot {
  background: #F59E0B !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8) !important;
}

.mw-solver-beam {
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.55), transparent) !important;
}

.builder-mini-card.mw-mini-gold {
  border-color: rgba(245, 158, 11, 0.78);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.22);
}

.builder-mini-card.mw-mini-gold .bmc-gem,
.builder-mini-card.mw-mini-gold .bmc-bar {
  background: linear-gradient(90deg, #F59E0B, #FDE68A);
}

.ps-rail-bar {
  background: linear-gradient(90deg, #F59E0B, #FBBF24, #D94E1F) !important;
}

/* Tactile Card-Deal & Meter Reveal Animations inside Most Wanted */
@keyframes mwSlotCardDeal {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mw-slot-deal {
  animation: mwSlotCardDeal 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mwStagePulse {
  0% { opacity: 0.72; }
  100% { opacity: 1; }
}

.mw-stage-pulse-anim {
  animation: mwStagePulse 0.24s ease-out;
}

/* --------------------------------------------------------------------------
   4. Unified Most Wanted Mission Zone & 5-Step Strip (`#mw-steps-track`)
   -------------------------------------------------------------------------- */
.mw-theme-chip {
  border-color: rgba(245, 158, 11, 0.38) !important;
  background: rgba(245, 158, 11, 0.11) !important;
  color: #D97706 !important;
  white-space: nowrap !important;
  flex-shrink: 0;
}

[data-theme="dark"] .mw-theme-chip {
  color: #FBBF24 !important;
}

.mw-theme-chip .live-dot {
  background: #F59E0B !important;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.75) !important;
}

.mw-sorare-view-btn {
  white-space: nowrap !important;
  flex-shrink: 0;
}

.mw-action-row {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

/* 5-Column Step Track (Set uses 6 cols for 6 steps; Most Wanted has 5 steps!) */
.set-steps-track.mw-steps-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.mw-scarcity-pills {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  padding: 0.2rem;
  border-radius: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.mw-count-cap-pill {
  border-color: rgba(245, 158, 11, 0.38) !important;
  background: rgba(245, 158, 11, 0.09) !important;
}

.mw-sorare-view-btn.is-active {
  border-color: #F59E0B !important;
  color: #F59E0B !important;
}

/* --------------------------------------------------------------------------
   5. Most Wanted Golden Foil Card Pill (Desktop Full Label / Mobile Compact `MW`)
   -------------------------------------------------------------------------- */
.mw-lbl-mob {
  display: none;
}

.ps-mw-badge,
.builder-mw-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.09rem 0.4rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(110deg, #F59E0B 0%, #FDE68A 48%, #D97706 100%);
  background-size: 200% 100%;
  color: #1C1917;
  border: 1px solid rgba(253, 224, 71, 0.65);
  box-shadow: 0 1px 5px rgba(245, 158, 11, 0.26);
  animation: mwFoilSweep 4.5s ease-in-out infinite;
}

.ps-mw-badge.is-fullart,
.builder-mw-pill.is-fullart {
  background: linear-gradient(110deg, #FBBF24 0%, #FEF08A 40%, #F97316 78%, #F59E0B 100%);
  background-size: 220% 100%;
}

@keyframes mwFoilSweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.is-mw-slot,
.is-mw-gallery-card {
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.38), 0 6px 18px rgba(245, 158, 11, 0.10) !important;
}

.ps-rar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ps-rar-dot.is-limited { background: #F59E0B; }
.ps-rar-dot.is-rare { background: #EF4444; }

/* Mobile Table Card inside Most Wanted Table Subview */
.ps-mob-pool-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.56rem 0.72rem;
  border-bottom: 1px solid var(--border-subtle);
}
.ps-mob-card-thumb {
  width: 36px;
  height: 46px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}
.ps-mob-card-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.ps-mob-name-row {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  min-width: 0;
}
.ps-mob-name-row strong {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-mob-card-mid small {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-mob-card-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.ps-mob-proj {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-mint);
}
.ps-table-pick-btn {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.58rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.ps-table-pick-btn.is-picked {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.45);
  color: #10B981;
}

/* --------------------------------------------------------------------------
   6. GW Lineups Builder 3-Competition Grid (`Champion` · `Contender` · `Most Wanted`)
   -------------------------------------------------------------------------- */
#view-builder .competition-switcher.is-expanded-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

#view-builder .competition-switcher.is-expanded-pro-grid .comp-name {
  white-space: nowrap;
  font-size: 0.86rem;
}

#view-builder .comp-btn.comp-btn-mw.active {
  border-color: #F59E0B;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 78, 31, 0.11));
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.16);
}

#view-builder .comp-btn.is-disabled-soon,
#view-builder .comp-btn.is-disabled-soon:hover,
#view-builder .comp-btn.is-disabled-soon.active {
  opacity: 0.48 !important;
  filter: grayscale(1) !important;
  cursor: not-allowed !important;
  background: rgba(30, 41, 59, 0.42) !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
  box-shadow: none !important;
  color: var(--text-muted) !important;
  transform: none !important;
}

:root:not([data-theme="dark"]) #view-builder .comp-btn.is-disabled-soon,
:root:not([data-theme="dark"]) #view-builder .comp-btn.is-disabled-soon:hover {
  background: rgba(241, 245, 249, 0.85) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}

.comp-tag-mw.is-soon-tag {
  background: rgba(100, 116, 139, 0.28) !important;
  color: #CBD5E1 !important;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

:root:not([data-theme="dark"]) .comp-tag-mw.is-soon-tag {
  background: rgba(148, 163, 184, 0.24) !important;
  color: #475569 !important;
}

/* Streak Live Solver Banner & Computing Pulse */
.mw-solving-banner {
  margin-bottom: 0.52rem;
  border-color: rgba(245, 158, 11, 0.42) !important;
  background: rgba(245, 158, 11, 0.12) !important;
  color: #FDE68A !important;
}

:root:not([data-theme="dark"]) .mw-solving-banner {
  color: #92400E !important;
  background: rgba(245, 158, 11, 0.12) !important;
}

#mw-lineup-slots-grid.is-computing .set-slot-card {
  opacity: 0.62;
  filter: saturate(0.85);
  transition: opacity 0.18s ease;
}

.comp-tag-mw {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 800;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #111827;
}

/* --------------------------------------------------------------------------
   7. Mobile-First Precision (`<= 768px`) — Zero Clutter, Zero Overflow
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .pro-world-subnav-bar {
    padding: 0.2rem;
    margin-bottom: 0.5rem;
    border-radius: 11px;
  }

  .pro-subnav-inner {
    gap: 0.2rem;
  }

  .pro-subtab {
    padding: 0.42rem 0.28rem;
    font-size: 0.74rem;
    gap: 0.26rem;
    border-radius: 8px;
  }

  /* Compact 2-letter `MW` badge on mobile cards so card headers NEVER wrap! */
  .mw-lbl-desk {
    display: none !important;
  }

  .mw-lbl-mob {
    display: inline !important;
  }

  .ps-mw-badge,
  .builder-mw-pill {
    font-size: 0.5rem;
    padding: 0.06rem 0.26rem;
    border-radius: 5px;
  }

  /* Most Wanted Topbar & Controls Bar on Mobile: Exact 1-row Topbar + 2-row Slim Controls (Matching Sorare Set!) */
  #view-pro-streaks .set-compact-topbar {
    flex-wrap: nowrap !important;
    gap: 0.4rem !important;
  }

  #view-pro-streaks .set-topbar-left {
    flex-wrap: nowrap !important;
    min-width: 0;
  }

  #view-pro-streaks .set-inline-step-title {
    white-space: nowrap !important;
    font-size: 0.88rem !important;
  }

  .mw-sorare-view-btn {
    padding: 0.26rem 0.52rem !important;
    font-size: 0.7rem !important;
  }

  .mw-lineups-bar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.34rem !important;
  }

  #view-pro-streaks .set-lineups-controls {
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.34rem !important;
  }

  #view-pro-streaks .set-opt-pills {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  #view-pro-streaks .set-opt-pills .mode-pill {
    justify-content: center;
    font-size: 0.7rem;
    padding: 0.32rem 0.35rem;
  }

  .mw-action-row {
    width: 100%;
    display: flex !important;
    align-items: center;
    gap: 0.28rem !important;
    flex-wrap: nowrap !important;
  }

  .mw-action-row .set-slate-dd {
    flex: 0 1 102px;
    min-width: 86px;
  }

  .mw-action-row .set-slate-dd .custom-dropdown-trigger {
    width: 100%;
    min-height: 32px;
    padding: 0.24rem 0.42rem;
    font-size: 0.68rem;
  }

  .mw-action-row .set-star-cap-pill {
    font-size: 0.66rem !important;
    padding: 0.26rem 0.44rem !important;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .mw-action-row .set-build3-btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 0.34rem 0.48rem !important;
    font-size: 0.73rem !important;
    white-space: nowrap;
  }

  /* GW Lineups Builder 3-Button Switcher on Mobile: Clean Single-Word Titles, Zero Overflow */
  #view-builder .competition-switcher.is-expanded-pro-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.26rem !important;
  }

  #view-builder .competition-switcher.is-expanded-pro-grid .comp-btn {
    padding: 0.36rem 0.32rem !important;
  }

  #view-builder .competition-switcher.is-expanded-pro-grid .comp-btn-top {
    gap: 0.2rem !important;
    justify-content: center;
  }

  #view-builder .competition-switcher.is-expanded-pro-grid .comp-icon {
    font-size: 0.76rem !important;
  }

  #view-builder .competition-switcher.is-expanded-pro-grid .comp-name {
    font-size: 0.68rem !important;
    white-space: nowrap;
  }

  #view-builder .competition-switcher.is-expanded-pro-grid .comp-tag-primary,
  #view-builder .competition-switcher.is-expanded-pro-grid .comp-tag-secondary,
  #view-builder .competition-switcher.is-expanded-pro-grid .comp-tag-mw {
    display: none !important;
  }

  #view-builder .competition-switcher.is-expanded-pro-grid .comp-btn-sub {
    display: none !important;
  }
}

/* ==========================================================================
   8. BESPOKE "MOST WANTED BOUNTY BOARD" VISUAL IDENTITY (`#view-pro-streaks`)
   Makes Most Wanted feel distinctly high-stakes vs regular GW Builder & Set!
   ========================================================================== */
#view-pro-streaks .mw-bounty-zone {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.34) !important;
  background:
    radial-gradient(ellipse 68% 42% at 50% 0%, rgba(245, 158, 11, 0.14) 0%, transparent 72%),
    radial-gradient(circle at 92% 18%, rgba(234, 88, 12, 0.10) 0%, transparent 45%),
    repeating-linear-gradient(
      -45deg,
      rgba(245, 158, 11, 0.018) 0px,
      rgba(245, 158, 11, 0.018) 1px,
      transparent 1px,
      transparent 14px
    ),
    linear-gradient(180deg, rgba(24, 18, 11, 0.96) 0%, rgba(14, 18, 29, 0.98) 100%) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(251, 191, 36, 0.10) inset,
    0 2px 0 0 rgba(245, 158, 11, 0.65) inset !important;
}

:root:not([data-theme="dark"]) #view-pro-streaks .mw-bounty-zone {
  border-color: rgba(217, 119, 6, 0.36) !important;
  background:
    radial-gradient(ellipse 68% 42% at 50% 0%, rgba(245, 158, 11, 0.13) 0%, transparent 72%),
    repeating-linear-gradient(
      -45deg,
      rgba(217, 119, 6, 0.022) 0px,
      rgba(217, 119, 6, 0.022) 1px,
      transparent 1px,
      transparent 14px
    ),
    linear-gradient(180deg, #FFFBEB 0%, #FFFDF7 46%, #FFFFFF 100%) !important;
  box-shadow:
    0 14px 32px rgba(180, 83, 9, 0.09),
    0 2px 0 0 rgba(245, 158, 11, 0.72) inset !important;
}

.mw-bounty-chip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 78, 31, 0.18) 100%) !important;
  border: 1px solid rgba(251, 191, 36, 0.52) !important;
  color: #FDE68A !important;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.18);
}

:root:not([data-theme="dark"]) .mw-bounty-chip {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(234, 88, 12, 0.12) 100%) !important;
  border-color: rgba(217, 119, 6, 0.45) !important;
  color: #B45309 !important;
}

.mw-emblem-svg {
  color: #FBBF24;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.55));
}

:root:not([data-theme="dark"]) .mw-emblem-svg {
  color: #D97706;
  filter: none;
}

.mw-step-title-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
}

.mw-bounty-step-title {
  color: #FEF3C7 !important;
  letter-spacing: -0.01em;
}

:root:not([data-theme="dark"]) .mw-bounty-step-title {
  color: #78350F !important;
}

.mw-bounty-tier-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.42);
  white-space: nowrap;
}

:root:not([data-theme="dark"]) .mw-bounty-tier-tag {
  color: #B45309;
  background: rgba(245, 158, 11, 0.11);
  border-color: rgba(217, 119, 6, 0.42);
}

.mw-wanted-quota-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.24rem 0.58rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.mw-wanted-quota-seal.is-met {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.52);
  color: #FDE68A;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

:root:not([data-theme="dark"]) .mw-wanted-quota-seal.is-met {
  color: #92400E;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(217, 119, 6, 0.48);
}

.mw-wanted-quota-seal.is-missing {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.52);
  color: #FCA5A5;
}

:root:not([data-theme="dark"]) .mw-wanted-quota-seal.is-missing {
  color: #B91C1C;
}

.mw-sorare-view-btn.has-live-squad {
  border-color: rgba(245, 158, 11, 0.55) !important;
  background: rgba(245, 158, 11, 0.13) !important;
  color: #FDE68A !important;
}

:root:not([data-theme="dark"]) .mw-sorare-view-btn.has-live-squad {
  color: #B45309 !important;
}

/* 5-Step Progression Strip (Clean Set-Style Cards, Zero Background Line) */
.mw-bounty-trail-wrap {
  position: relative;
}

.mw-bounty-trail {
  position: relative;
  z-index: 1;
}

#view-pro-streaks .mw-step-card {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.88);
  transition: transform 0.16s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

:root:not([data-theme="dark"]) #view-pro-streaks .mw-step-card {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(217, 119, 6, 0.22);
}

#view-pro-streaks .mw-step-card:hover {
  transform: translateY(-1px);
  border-color: rgba(251, 191, 36, 0.52);
}

#view-pro-streaks .mw-step-card.is-current,
#view-pro-streaks .mw-step-card.is-selected-sim {
  border-color: #F59E0B !important;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.20) 0%, rgba(234, 88, 12, 0.12) 100%) !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.20), 0 0 0 1px rgba(253, 224, 71, 0.25) inset !important;
}

#view-pro-streaks .mw-step-card.is-boss-step:not(.is-completed) {
  border-color: rgba(251, 191, 36, 0.42);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.34) 0%, rgba(15, 23, 42, 0.92) 100%);
}

:root:not([data-theme="dark"]) #view-pro-streaks .mw-step-card.is-boss-step:not(.is-completed) {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.85) 0%, #FFFFFF 100%);
}

#view-pro-streaks .mw-bounty-beacon {
  background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%) !important;
  color: #111827 !important;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.52) !important;
}

/* Wanted Radar Target Meter & Molten Gold Gauge */
#view-pro-streaks .mw-bounty-meter {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82) 0%, rgba(9, 13, 24, 0.90) 100%) !important;
  border: 1px solid rgba(245, 158, 11, 0.26) !important;
  box-shadow: inset 0 1px 0 rgba(254, 243, 199, 0.06);
}

:root:not([data-theme="dark"]) #view-pro-streaks .mw-bounty-meter {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFBEB 100%) !important;
  border-color: rgba(217, 119, 6, 0.26) !important;
}

#view-pro-streaks .mw-bounty-ring-fg {
  stroke: url(#mwBountyRingGrad) !important;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.42));
}

#view-pro-streaks .mw-val-target {
  color: #FBBF24 !important;
}

:root:not([data-theme="dark"]) #view-pro-streaks .mw-val-target {
  color: #B45309 !important;
}

#view-pro-streaks .mw-bounty-proj-fill {
  background: #F59E0B !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

#view-pro-streaks .mw-bounty-ceil-fill {
  background: rgba(245, 158, 11, 0.22) !important;
  border-color: rgba(251, 191, 36, 0.50) !important;
}

#view-pro-streaks .mw-swatch-gold {
  background: #F59E0B !important;
}

#view-pro-streaks .mw-bounty-pin-label {
  border-color: rgba(251, 191, 36, 0.55) !important;
  color: #FDE68A !important;
}

:root:not([data-theme="dark"]) #view-pro-streaks .mw-bounty-pin-label {
  color: #92400E !important;
  background: #FEF3C7 !important;
}

/* Gold-to-Flame Bounty Action Button & Active Optimization Pill */
#view-pro-streaks .mw-opt-pills .mode-pill.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(234, 88, 12, 0.20)) !important;
  border-color: rgba(251, 191, 36, 0.55) !important;
  color: #FEF3C7 !important;
}

:root:not([data-theme="dark"]) #view-pro-streaks .mw-opt-pills .mode-pill.active {
  color: #92400E !important;
}

.mw-gold-cta-btn {
  background: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%) !important;
  border: 1px solid rgba(254, 240, 138, 0.45) !important;
  color: #111827 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.mw-gold-cta-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.42) !important;
}

/* Spotlight Bounty Arena Tray & Corner Gold Reticles on Wanted Cards */
#view-pro-streaks .mw-bounty-tray {
  position: relative;
  background:
    radial-gradient(ellipse 75% 65% at 50% 50%, rgba(245, 158, 11, 0.08) 0%, rgba(9, 13, 24, 0.72) 78%),
    rgba(9, 13, 24, 0.65) !important;
  border: 1px solid rgba(245, 158, 11, 0.24) !important;
}

:root:not([data-theme="dark"]) #view-pro-streaks .mw-bounty-tray {
  background:
    radial-gradient(ellipse 75% 65% at 50% 50%, rgba(245, 158, 11, 0.09) 0%, rgba(254, 252, 232, 0.75) 80%),
    #FFFBEB !important;
  border-color: rgba(217, 119, 6, 0.25) !important;
}

#view-pro-streaks .set-slot-card.is-mw-slot {
  position: relative;
  border-color: rgba(251, 191, 36, 0.72) !important;
  background: linear-gradient(180deg, rgba(41, 29, 12, 0.86) 0%, rgba(15, 23, 42, 0.95) 55%) !important;
  box-shadow:
    0 8px 22px rgba(245, 158, 11, 0.16),
    0 0 0 1px rgba(253, 224, 71, 0.28) inset !important;
}

:root:not([data-theme="dark"]) #view-pro-streaks .set-slot-card.is-mw-slot {
  background: linear-gradient(180deg, #FEF3C7 0%, #FFFFFF 55%) !important;
}

.mw-empty-bounty-slot {
  border: 1.5px dashed rgba(245, 158, 11, 0.36) !important;
  background: rgba(245, 158, 11, 0.04) !important;
}

.mw-empty-bounty-slot:hover,
.mw-empty-bounty-slot.selected-slot {
  border-color: #F59E0B !important;
  background: rgba(245, 158, 11, 0.10) !important;
}

.mw-crosshair-ring {
  border-color: rgba(245, 158, 11, 0.45) !important;
  background: rgba(245, 158, 11, 0.12) !important;
  font-size: 0.95rem !important;
}

.mw-divider-tag {
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: rgba(245, 158, 11, 0.42) !important;
  color: #FBBF24 !important;
}

:root:not([data-theme="dark"]) .mw-divider-tag {
  color: #B45309 !important;
}

.mw-gold-stat-pill {
  border-color: rgba(245, 158, 11, 0.38) !important;
  background: rgba(245, 158, 11, 0.10) !important;
}

/* ==========================================================================
   9. BESPOKE MOST WANTED LOADING STAGE: BOUNTY RADAR & WANTED POSTER LOCK-ON
   ========================================================================== */
.mw-bounty-loader-card {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(251, 191, 36, 0.44) !important;
  background:
    radial-gradient(circle at 50% 24%, rgba(245, 158, 11, 0.18) 0%, transparent 62%),
    linear-gradient(180deg, rgba(22, 17, 11, 0.97) 0%, rgba(12, 16, 28, 0.98) 100%) !important;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(253, 224, 71, 0.14) inset,
    0 2px 0 0 rgba(245, 158, 11, 0.75) inset !important;
}

:root:not([data-theme="dark"]) .mw-bounty-loader-card {
  background:
    radial-gradient(circle at 50% 24%, rgba(245, 158, 11, 0.16) 0%, transparent 62%),
    linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 100%) !important;
  box-shadow:
    0 24px 56px rgba(180, 83, 9, 0.16),
    0 2px 0 0 rgba(245, 158, 11, 0.78) inset !important;
}

.mw-radar-loader-scene {
  position: relative;
  width: 308px;
  height: 204px;
  margin: 0 auto 0.95rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.mw-loader-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.5);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.18);
  z-index: 6;
}

.mw-loader-hud-txt {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FDE68A;
}

:root:not([data-theme="dark"]) .mw-loader-hud-txt {
  color: #92400E;
}

.mw-loader-hud-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #F59E0B;
  box-shadow: 0 0 9px #FBBF24;
  animation: mwHudDotBlink 1s ease-in-out infinite alternate;
}

@keyframes mwHudDotBlink {
  0% { opacity: 0.45; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.18); }
}

/* Radar Stage with Rotating Sweep Cone */
.mw-radar-stage {
  position: relative;
  width: 148px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mw-radar-rings-svg {
  position: absolute;
  width: 152px;
  height: 152px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: mwReticleBreath 2.4s ease-in-out infinite alternate;
}

@keyframes mwReticleBreath {
  from { opacity: 0.7; transform: translate(-50%, -50%) scale(0.97); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
}

.mw-radar-sweep-cone {
  position: absolute;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(251, 191, 36, 0.34) 0deg,
    rgba(245, 158, 11, 0.10) 45deg,
    transparent 85deg,
    transparent 360deg
  );
  pointer-events: none;
  animation: mwRadarSpin 2.2s linear infinite;
}

@keyframes mwRadarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Center WANTED Poster Card + 2 Flanking Escort Pro Cards */
.mw-poster-trio {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mw-hero-wanted-poster {
  position: relative;
  z-index: 3;
  width: 66px;
  height: 92px;
  border-radius: 10px;
  padding: 5px 5px 6px;
  background: linear-gradient(155deg, #F59E0B 0%, #78350F 48%, #1C1917 100%);
  border: 1.5px solid #FDE047;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.55),
    0 0 22px rgba(245, 158, 11, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  animation: mwHeroPosterLock 2.2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes mwHeroPosterLock {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-6px) scale(1.06); box-shadow: 0 16px 30px rgba(0,0,0,0.6), 0 0 30px rgba(251, 191, 36, 0.65); }
  65% { transform: translateY(-2px) scale(1.02); }
}

.mw-poster-foil-sheen {
  position: absolute;
  inset: -40% -80%;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.48) 50%, transparent 60%);
  transform: translateX(-70%) rotate(12deg);
  animation: mwPosterSheenPass 2.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mwPosterSheenPass {
  0%, 20% { transform: translateX(-75%) rotate(12deg); }
  65%, 100% { transform: translateX(75%) rotate(12deg); }
}

.mw-poster-banner {
  width: 100%;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #111827;
  background: linear-gradient(90deg, #FDE047, #F59E0B);
  border-radius: 4px;
  padding: 1.5px 0;
}

.mw-poster-emblem {
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.6));
}

.mw-poster-stars {
  font-size: 0.46rem;
  letter-spacing: 1px;
  color: #FDE047;
}

.mw-poster-stamp {
  font-family: var(--font-mono);
  font-size: 0.44rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border-radius: 3px;
  color: #FEF08A;
  border: 1px solid rgba(254, 240, 138, 0.78);
  background: rgba(220, 38, 38, 0.85);
  animation: mwStampPulse 2.2s ease-in-out infinite;
}

@keyframes mwStampPulse {
  0%, 32%, 100% { transform: scale(0.94); opacity: 0.78; }
  48%, 72% { transform: scale(1.06) rotate(-3deg); opacity: 1; }
}

/* Flanking Wing Cards */
.mw-wing-card {
  width: 48px;
  height: 70px;
  border-radius: 8px;
  padding: 5px;
  background: linear-gradient(165deg, #334155 0%, #0F172A 100%);
  border: 1px solid rgba(239, 68, 68, 0.6);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.mw-wing-card.is-left-wing {
  margin-right: -12px;
  transform: translateY(6px) rotate(-14deg);
  animation: mwWingLeftFan 2.2s ease-in-out infinite;
}

.mw-wing-card.is-right-wing {
  margin-left: -12px;
  border-color: rgba(245, 158, 11, 0.68);
  background: linear-gradient(165deg, #451A03 0%, #0F172A 100%);
  transform: translateY(6px) rotate(14deg);
  animation: mwWingRightFan 2.2s ease-in-out infinite;
}

@keyframes mwWingLeftFan {
  0%, 100% { transform: translate(4px, 6px) rotate(-9deg); }
  50% { transform: translate(-6px, 2px) rotate(-17deg); }
}

@keyframes mwWingRightFan {
  0%, 100% { transform: translate(-4px, 6px) rotate(9deg); }
  50% { transform: translate(6px, 2px) rotate(17deg); }
}

.mw-wc-tag {
  font-family: var(--font-mono);
  font-size: 0.44rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(239, 68, 68, 0.25);
  color: #FCA5A5;
}

.mw-wc-tag.is-gold {
  background: rgba(245, 158, 11, 0.28);
  color: #FDE68A;
}

.mw-wc-stars {
  font-size: 0.44rem;
  color: #FBBF24;
}

.mw-wc-bar {
  width: 80%;
  height: 3px;
  border-radius: 99px;
  background: #EF4444;
}

.mw-wc-bar.is-gold {
  background: #F59E0B;
}

/* Sequential 5-Step Bounty Ladder Pips at Bottom of Scene */
.mw-loader-step-pips {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
}

.mw-lpip {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #94A3B8;
  animation: mwStepPipClimb 2.5s ease-in-out infinite;
}

:root:not([data-theme="dark"]) .mw-lpip {
  background: #F1F5F9;
  color: #64748B;
}

.mw-lpip.p1 { animation-delay: 0s; }
.mw-lpip.p2 { animation-delay: 0.35s; }
.mw-lpip.p3 { animation-delay: 0.7s; }
.mw-lpip.p4 { animation-delay: 1.05s; }
.mw-lpip.p5 { animation-delay: 1.4s; }

@keyframes mwStepPipClimb {
  0%, 70%, 100% {
    border-color: rgba(148, 163, 184, 0.28);
    color: #94A3B8;
    transform: translateY(0);
  }
  25%, 50% {
    background: linear-gradient(135deg, #F59E0B, #EA580C);
    border-color: #FDE047;
    color: #111827;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.55);
    transform: translateY(-2px);
  }
}

.mw-lpip-conn {
  width: 8px;
  height: 1.5px;
  background: rgba(245, 158, 11, 0.35);
  border-radius: 99px;
}

.mw-loader-main-title {
  color: #FEF3C7 !important;
}

:root:not([data-theme="dark"]) .mw-loader-main-title {
  color: #78350F !important;
}

.mw-loader-step-badge {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #FBBF24 !important;
  border-color: rgba(245, 158, 11, 0.42) !important;
}

:root:not([data-theme="dark"]) .mw-loader-step-badge {
  color: #B45309 !important;
}

@media (max-width: 768px) {
  .mw-radar-loader-scene {
    width: 264px;
    height: 188px;
  }
}

/* ==========================================================================
   Daily Missions OAuth Connect Card (Actionable Re-Auth & Local Dev Helper)
   ========================================================================== */
.missions-oauth-connect-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.75rem 1.4rem;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(19, 25, 41, 0.92), rgba(13, 18, 31, 0.96));
  border: 1px solid rgba(59, 130, 246, 0.34);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

:root:not([data-theme="dark"]) .missions-oauth-connect-card {
  background: linear-gradient(165deg, #FFFFFF, #F8FAFC);
  border-color: rgba(43, 89, 255, 0.24);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.missions-oauth-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: linear-gradient(135deg, rgba(43, 89, 255, 0.22), rgba(16, 185, 129, 0.16));
  border: 1px solid rgba(96, 165, 250, 0.4);
}

.missions-oauth-copy {
  max-width: 540px;
}

.missions-oauth-copy strong {
  display: block;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.missions-oauth-copy p {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.missions-oauth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.missions-oauth-cta {
  text-decoration: none;
  font-weight: 800;
  padding: 0.52rem 1.05rem;
}

.missions-dev-token-details {
  width: 100%;
  max-width: 520px;
  margin-top: 0.35rem;
  padding: 0.55rem 0.8rem;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px dashed rgba(148, 163, 184, 0.3);
  text-align: left;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

:root:not([data-theme="dark"]) .missions-dev-token-details {
  background: rgba(241, 245, 249, 0.9);
}

.missions-dev-token-details summary {
  cursor: pointer;
  font-weight: 700;
  user-select: none;
}

.missions-dev-token-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.missions-dev-token-form input {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  padding: 0.42rem 0.65rem;
}
