/* ==========================================================================
   🌴 LOS SANTOS WEEKLY | GTA ONLINE UPDATE HUB
   High-Energy, Sleek Modern Dark Design System
   ========================================================================== */

:root {
  /* Core Color Palette */
  --bg-main: #0b0f19;
  --bg-secondary: #0f172a;
  --card-bg: rgba(19, 27, 46, 0.75);
  --card-hover-bg: rgba(24, 34, 58, 0.9);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(6, 182, 212, 0.4);
  
  /* Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  /* Vibrant Accents */
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --accent-glow: rgba(6, 182, 212, 0.25);
  
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.2);
  
  --emerald: #10b981;
  --emerald-light: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.2);
  
  --rose: #f43f5e;
  --indigo: #6366f1;
  --purple: #a855f7;
  
  /* Layout & Sizing */
  --container-max: 1320px;
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.25);
}

/* ── Reset & Base Styles ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #151e33 0%, #0b0f19 75%);
  background-attachment: fixed;
  overflow-x: hidden;
  max-width: 100vw;
  line-height: 1.5;
}

/* ── Top Navigation Bar ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Top Row: Skull Brand Logo on Left, Operations & Avatar on Right */
.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Left: Brand Logo & Skull */
.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.header-neon-skull {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(217, 70, 239, 0.95)) drop-shadow(0 0 28px rgba(168, 85, 247, 0.6));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.header-brand-wrap:hover .header-neon-skull {
  transform: scale(1.06);
  filter: drop-shadow(0 0 20px rgba(217, 70, 239, 1)) drop-shadow(0 0 35px rgba(168, 85, 247, 0.85));
}

.header-neon-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 0.90;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  user-select: none;
}

.neon-line-top, .neon-line-bot {
  font-size: 20px;
  letter-spacing: 1.5px;
  color: #fff;
  -webkit-text-stroke: 1.2px #f0abfc;
  text-shadow: 
    0 0 6px #d946ef,
    0 0 14px #a855f7,
    0 0 28px #9333ea;
}

/* Navigation Row: Dedicated Menu Bar Below Logo */
.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.header-nav-pills-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 20, 36, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-full);
  padding: 4px 6px;
  gap: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-nav-pills-wrap::-webkit-scrollbar {
  display: none;
}


.portal-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.portal-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.portal-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #c084fc, #9333ea);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.6);
}

/* Right: Operations Drawer Toggle & Avatar */
.header-right-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
  flex-shrink: 0;
  gap: 8px;
}

.header-drawer-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #f3e8ff;
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.2);
}

.header-drawer-toggle-btn:hover {
  background: rgba(168, 85, 247, 0.3);
  border-color: rgba(217, 70, 239, 0.8);
  color: #fff;
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.5);
  transform: translateY(-1px);
}

.drawer-btn-icon {
  font-size: 14px;
}

.drawer-btn-burger {
  font-size: 13px;
  color: #c084fc;
}

.header-user-avatar-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.2s ease;
  text-decoration: none;
}

.header-user-avatar-btn:hover {
  transform: scale(1.08);
}

.header-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #c084fc;
  box-shadow: 0 0 14px rgba(192, 132, 252, 0.9), 0 0 24px rgba(217, 70, 239, 0.6);
  display: block;
}


.reset-strip-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.reset-icon {
  font-size: 15px;
}

.reset-label {
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.3px;
}

.reset-timer {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

.reset-hint {
  font-size: 11px;
  color: #64748b;
}

.hero-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.25));
  border: 1px solid rgba(168, 85, 247, 0.5);
  color: #f3e8ff;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.hero-date-badge strong {
  color: #38bdf8;
}

.mono-timer {

  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-size: 20px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ── Progress Bar ── */
.progress-bar-wrapper {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 6px 24px 8px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #10b981);
  border-radius: var(--radius-full);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

/* ── Streamlined Main Tab Switcher ── */
.main-tabs-bar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 72px;
  z-index: 900;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.main-tabs-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-tabs-container::-webkit-scrollbar {
  display: none;
}

.main-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.main-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 15px var(--accent-glow);
}

/* ── Tab Panes ── */
.tab-pane {
  display: none;
  animation: fadeInPane 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.streak-reward-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.streak-reward-box strong {
  color: var(--gold-light);
}

.streak-reward-box span {
  color: var(--emerald-light);
  font-weight: 700;
}

/* ── Main Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 30px 24px 60px;
  width: 100%;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-accent {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--card-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-sm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.btn-outline-sm:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent);
}

.btn-accent-sm {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  cursor: pointer;
}

.full-width {
  width: 100%;
}

/* ── Hero Banner ── */
.hero-banner {
  background: linear-gradient(135deg, rgba(19, 27, 46, 0.95), rgba(15, 23, 42, 0.85));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fb7185;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-description {
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  max-width: 700px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.hero-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stat-card {
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  text-align: center;
  min-width: 260px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-countdown {
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.stat-subtext {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-meta {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 600;
}

/* ── Section Blocks ── */
.section-block {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 14px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  font-size: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 8px;
  border-radius: var(--radius-md);
  display: inline-flex;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 2px;
}

/* ── Badges & Tags ── */
.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-accent { background: rgba(6, 182, 212, 0.15); color: var(--accent-light); border: 1px solid rgba(6, 182, 212, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--gold-light); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-info { background: rgba(99, 102, 241, 0.15); color: #818cf8; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-gold { background: rgba(251, 191, 36, 0.18); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.4); }

/* ── Grids ── */
.grid-cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.grid-cards-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 20px; }

/* ── Cards ── */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
}

.highlight-card {
  border-top-width: 4px;
}

.gold-border { border-top-color: var(--gold); }
.cyan-border { border-top-color: var(--accent); }
.emerald-border { border-top-color: var(--emerald); }

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

.card-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
}

.gold-tag { background: rgba(245, 158, 11, 0.15); color: var(--gold-light); }
.cyan-tag { background: rgba(6, 182, 212, 0.15); color: var(--accent-light); }
.emerald-tag { background: rgba(16, 185, 129, 0.15); color: var(--emerald-light); }

.vehicle-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.vehicle-type {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.challenge-condition {
  font-size: 13px;
  color: var(--text-main);
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  margin-bottom: 16px;
}

.card-footer-info {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.value-highlight {
  color: var(--accent-light);
  font-weight: 700;
}

.reward-pill {
  background: rgba(16, 185, 129, 0.18);
  color: var(--emerald-light);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.card-inner-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.card-note {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

/* ── Checkboxes & Tasks ── */
.task-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.task-check {
  display: none;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.2);
}

.task-check:checked + .custom-checkbox {
  background: var(--emerald);
  border-color: var(--emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.task-check:checked + .custom-checkbox::after {
  content: '✓';
  font-size: 12px;
  font-weight: 900;
  color: #fff;
}

.check-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.task-check:checked ~ .check-text {
  color: var(--emerald-light);
}

.task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.task-details {
  font-size: 13px;
  color: var(--text-main);
}

.reward-tag {
  font-size: 11px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-light);
  padding: 3px 8px;
  border-radius: 6px;
}

/* ── Test Rides Grid ── */
.test-rides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.test-ride-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.hsw-pill {
  grid-column: 1 / -1;
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

/* ── Salvage Yard Robberies ── */
.robbery-card {
  border-left: 4px solid var(--gold);
}

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

.robbery-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.robbery-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.robbery-target-vehicle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.robbery-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.tag-status {
  color: var(--emerald-light);
  font-weight: 700;
}

.pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.target-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.target-highlight-box {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Showroom Lists ── */
.showroom-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 10px;
}

.showroom-header h4 {
  font-size: 15px;
  color: #fff;
}

.tag-gold { font-size: 11px; font-weight: 700; color: var(--gold-light); }
.tag-cyan { font-size: 11px; font-weight: 700; color: var(--accent-light); }

.vehicle-showroom-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vehicle-showroom-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.car-bullet { font-size: 18px; margin-right: 10px; }
.car-info { flex: 1; font-size: 13px; color: var(--text-main); }
.car-sub { display: block; font-size: 11px; color: var(--text-muted); }

.inspect-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(6, 182, 212, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.discount-badge-sm {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(245, 158, 11, 0.15);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ── Daily Objectives ── */
.daily-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.daily-card {
  background: rgba(19, 27, 46, 0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
}

.daily-card:hover {
  background: var(--card-hover-bg);
  border-color: rgba(6, 182, 212, 0.3);
}

.daily-card.completed {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}

.daily-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.day-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
}

.daily-card.today-card .day-badge {
  background: var(--accent);
  color: #fff;
}

.daily-task-desc {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 12px;
}

.daily-card.completed .daily-task-desc {
  text-decoration: line-through;
  color: var(--text-muted);
}

.daily-card-footer {
  margin-top: auto;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ── Bonuses & Multipliers ── */
.filter-pills, .discount-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.filter-pill.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.filter-pill.free-pill.active {
  background: var(--emerald);
  border-color: var(--emerald);
  box-shadow: 0 0 10px var(--emerald-glow);
}

.bonuses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.bonus-card {
  position: relative;
  overflow: hidden;
}

.bonus-5x { border-top: 4px solid #f43f5e; box-shadow: 0 0 15px rgba(244, 63, 94, 0.25); }
.bonus-4x { border-top: 4px solid #fb7185; }
.bonus-3x { border-top: 4px solid var(--gold); }
.bonus-2_5x { border-top: 4px solid #38bdf8; }
.bonus-2x { border-top: 4px solid var(--accent); }
.bonus-1_5x { border-top: 4px solid var(--emerald); }
.bonus-bonus, .bonus-other { border-top: 4px solid var(--indigo); }

.bonus-multiplier-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.bonus-5x .bonus-multiplier-badge { color: #f43f5e; }
.bonus-4x .bonus-multiplier-badge { color: #fb7185; }
.bonus-3x .bonus-multiplier-badge { color: var(--gold-light); }
.bonus-2_5x .bonus-multiplier-badge { color: #38bdf8; }
.bonus-2x .bonus-multiplier-badge { color: var(--accent-light); }
.bonus-1_5x .bonus-multiplier-badge { color: var(--emerald-light); }
.bonus-bonus .bonus-multiplier-badge, .bonus-other .bonus-multiplier-badge { color: #a5b4fc; }

.bonus-item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bonus-item-list li {
  font-size: 14px;
  color: #fff;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(255, 255, 255, 0.1);
}

/* ── Discounts & Search ── */
.search-filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-dim);
}

.search-input-wrapper input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: 0.2s;
}

.search-input-wrapper input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px var(--accent-glow);
}

.discounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.discount-item-card {
  background: rgba(19, 27, 46, 0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: 0.2s;
}

.discount-item-card:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-border-hover);
}

.discount-item-card.is-free {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

.discount-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.discount-category {
  font-size: 11px;
  color: var(--text-muted);
}

.discount-rate-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.rate-free { background: var(--emerald); color: #fff; box-shadow: 0 0 8px var(--emerald-glow); }
.rate-50 { background: rgba(244, 63, 94, 0.25); color: #f43f5e; border: 1px solid rgba(244, 63, 94, 0.6); box-shadow: 0 0 10px rgba(244, 63, 94, 0.3); }
.rate-40 { background: rgba(251, 113, 133, 0.2); color: #fb7185; border: 1px solid rgba(251, 113, 133, 0.4); }
.rate-30 { background: rgba(245, 158, 11, 0.2); color: var(--gold-light); border: 1px solid rgba(245, 158, 11, 0.4); }

/* ── Gun Van ── */
.gun-van-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gun-van-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.free-weapon-item {
  border: 1px solid rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.08) !important;
}

.tag-free {
  font-size: 11px;
  font-weight: 800;
  background: var(--emerald);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
}

.tag-discount {
  font-size: 11px;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.tag-gta-plus {
  font-size: 11px;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 2px 8px;
  border-radius: 4px;
}

.tag-instock {
  font-size: 11px;
  color: var(--text-muted);
}

/* ── GTA+ & Drops ── */
.drops-box {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.drop-icon { font-size: 16px; }

.perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perks-list li {
  font-size: 13px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
}

/* ── Footer ── */
.app-footer {
  background: #080c14;
  border-top: 1px solid var(--card-border);
  padding: 30px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-brand span {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.footer-actions {
  display: flex;
  gap: 10px;
}

.footer-copyright {
  max-width: var(--container-max);
  margin: 0 auto;
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 12px;
}

/* ── Modals ── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
}

.modal-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 650px;
  max-height: 85vh;
  background: var(--bg-secondary);
  border: 1px solid var(--accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  border-radius: var(--radius-lg);
  z-index: 2001;
  overflow-y: auto;
  flex-direction: column;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-icon { font-size: 24px; }
.modal-title-wrap h3 { font-size: 1.1rem; color: #fff; }

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

.close-btn:hover { color: #fff; }

.modal-body {
  padding: 24px;
}

.modal-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 16px;
}

.modal-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}

.modal-tab-btn.active {
  color: var(--accent-light);
  border-bottom-color: var(--accent);
}

.modal-tab-pane {
  display: none;
}

.modal-tab-pane.active {
  display: block;
}

.tsv-preview-box textarea {
  width: 100%;
  height: 200px;
  background: #090d16;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 12px;
  margin-top: 12px;
  resize: vertical;
}

.code-preview-box pre {
  background: #090d16;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  max-height: 240px;
  overflow: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #38bdf8;
  margin-top: 12px;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.success { border-color: var(--emerald); }
.toast.error { border-color: var(--rose); }

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* =========================================================================
   SLIDEOUT OPERATIONS DRAWER (wosBDC Style)
   ========================================================================= */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sideout-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 360px;
  max-width: 90vw;
  background: rgba(11, 14, 23, 0.95);
  border-left: 1px solid rgba(168, 85, 247, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2600;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.15);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.sideout-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-icon {
  font-size: 22px;
}

.drawer-title {
  font-family: var(--font-header);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
}

.drawer-subtitle {
  font-size: 9.5px;
  color: var(--text-muted);
  font-family: var(--font-tech);
  letter-spacing: 0.5px;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.drawer-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: scale(1.05);
}

.drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
}

.drawer-timer-card {
  border-color: rgba(168, 85, 247, 0.35);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.08));
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.drawer-card-label {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-muted);
  font-family: var(--font-tech);
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.drawer-date-badge {
  font-size: 14px;
  font-weight: 800;
  color: #38bdf8;
  font-family: var(--font-header);
}

.drawer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 12px 0;
}

.drawer-countdown {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f472b6;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(244, 114, 182, 0.4);
}

.drawer-reset-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.drawer-progress-text {
  font-size: 13px;
  color: #e2e8f0;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-badge {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #34d399;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.drawer-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.drawer-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #06b6d4, #22c55e);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

.drawer-section-title {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--text-muted);
  font-family: var(--font-tech);
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.drawer-nav-item:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  color: #fff;
  transform: translateX(4px);
}

.drawer-nav-arrow {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 11px;
}

.drawer-actions-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
  text-align: center;
}

.drawer-footer-text {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-tech);
}

/* ── Responsive Queries ── */
@media (max-width: 900px) {

  .hero-banner {
    grid-template-columns: 1fr;
  }
  .hero-stat-card {
    min-width: unset;
  }
}

@media (max-width: 768px) {
  /* iOS Notch & Safe Areas */
  body {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .nav-container {
    padding: 8px 12px;
    gap: 8px;
  }

  .header-neon-skull {
    height: 42px;
  }

  .neon-line-top, .neon-line-bot {
    font-size: 16px;
  }

  .portal-tab-btn {
    padding: 6px 12px;
    font-size: 11px;
    gap: 4px;
  }

  .header-drawer-toggle-btn {
    padding: 6px 10px;
    font-size: 10.5px;
  }

  .header-avatar-img {
    width: 36px;
    height: 36px;
  }

    justify-content: center;
  }

  .reset-timer {
    font-size: 11.5px;
    padding: 2px 7px;
  }

  .reset-hint {
    display: none;
  }

  .btn .btn-label {
    display: none;
  }

  .btn {
    padding: 7px 10px;
  }

  /* Swipeable Main Navigation Tabs */
  .main-tabs {
    padding: 6px 10px;
    gap: 5px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-tabs::-webkit-scrollbar {
    display: none;
  }

  .main-tab-btn {
    padding: 6px 11px;
    font-size: 11px;
    gap: 5px;
    flex-shrink: 0;
  }

  .container {
    padding: 10px 8px 60px;
  }

  /* Hero Banner */
  .hero-banner {
    grid-template-columns: 1fr;
    padding: 16px 14px;
    gap: 14px;
    border-radius: 14px;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 12px;
    line-height: 1.45;
  }

  .hero-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .hero-quick-actions button:last-child {
    grid-column: 1 / -1;
  }

  .hero-stat-card {
    padding: 12px;
    border-radius: 10px;
    min-width: unset;
  }

  .stat-countdown {
    font-size: 1.15rem;
  }

  /* Single Column Stacking for Smartphone Grids */
  .grid-cards-3,
  .grid-cards-2,
  .test-rides-grid,
  .bonus-grid,
  .discounts-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .card-feature,
  .challenge-card,
  .salvage-card,
  .bonus-tier-card,
  .discount-card {
    padding: 14px 12px;
    border-radius: 12px;
  }

  /* Checklist Tap Targets */
  .task-item-row {
    padding: 10px;
    gap: 10px;
  }

  .task-check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .task-label-text {
    font-size: 13px;
  }

  /* Discounts Toolbar & Filters */
  .discounts-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .search-input-wrapper input {
    font-size: 16px !important; /* Prevents iOS auto-zoom */
    padding: 10px 14px 10px 36px;
  }

  .filter-pills-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

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

  .filter-pill-btn {
    font-size: 10.5px;
    padding: 5px 10px;
    flex-shrink: 0;
  }

  /* TSV Export & Script Box */
  .tsv-export-section {
    padding: 14px;
    border-radius: 12px;
  }

  .tsv-preview-box {
    max-height: 200px;
    font-size: 10px;
  }

  .tsv-actions-row {
    flex-direction: column;
    gap: 8px;
  }

  .tsv-actions-row button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  #headerAdminBtn {
    display: none !important;
  }
  .nav-container {
    padding: 8px 12px;
  }
  .main-tabs-bar {
    max-width: 100vw;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.15rem;
  }
  .header-drawer-toggle-btn .drawer-btn-label {
    display: none;
  }
  .header-drawer-toggle-btn {
    padding: 6px 8px;
    font-size: 12px;
  }
  .portal-tab-btn {
    padding: 5px 8px;
    font-size: 10px;
  }
  .hero-quick-actions {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   MODAL DIALOGS & ADMIN MANAGER
   ========================================================================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
}

.modal-container {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 720px;
  max-height: 88vh;
  background: #0f1423;
  border: 1px solid var(--border-purple, rgba(168, 85, 247, 0.4));
  border-radius: var(--radius-lg, 16px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(168, 85, 247, 0.25);
  z-index: 9999;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: rgba(7, 10, 18, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon {
  font-size: 22px;
}

.modal-title-wrap h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted, #94a3b8);
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.close-btn:hover {
  color: #fff;
}

.modal-body {
  overflow-y: auto;
  max-height: calc(88vh - 65px);
}




