/**
 * PepsiMax Index - Stylesheet v22
 * Modern, clean design with PepsiMax blue theme
 * Emergency Mode with 5 randomized variants + Mobile UX optimizations
 */

/* ==================== VARIABLES ==================== */
:root {
  /* PepsiMax Official Colors */
  --pepsi-blue: #0066cc;
  --pepsi-blue-dark: #004c99;
  --pepsi-blue-darker: #003366;
  --pepsi-black: #000000;
  --pepsi-silver: #e0e6ed;
  --pepsi-light: #f0f4f8;

  /* Accent Colors */
  --accent-red: #ff0000;
  --accent-electric: #00d4ff;

  /* UI Colors */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #b0b8c1;
  --border-color: #2a2a2a;

  /* Status Colors */
  --success: #00cc66;
  --warning: #ffb800;
  --error: #ff3333;
  --info: #00d4ff;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 102, 204, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 102, 204, 0.25);
  --shadow-lg: 0 10px 30px rgba(0, 102, 204, 0.35);
  --glow-blue: 0 0 20px rgba(0, 102, 204, 0.5);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Touch targets (min 44x44px per iOS guidelines) */
  --touch-target-min: 44px;

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
}

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    'Montserrat',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0, 102, 204, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ==================== HEADER ==================== */
.header {
  background: linear-gradient(135deg, var(--pepsi-blue) 0%, var(--pepsi-blue-dark) 100%);
  color: white;
  padding: var(--spacing-xl) 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: visible; /* Changed from hidden to allow user dropdown to show */
  z-index: 100; /* Ensure header is above main content for dropdown menus */
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 0, 0, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.header-content {
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* PepsiMax Logo Container */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

.pepsi-logo {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  animation: float 1.4s ease-in-out infinite;
  transform-origin: center;
}

.logo-fallback {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.logo-emoji {
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo-text {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.emoji {
  font-size: 3.5rem;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes float {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  }
  14% {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 16px rgba(0, 102, 204, 0.6));
  }
  28% {
    transform: scale(1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  }
  42% {
    transform: scale(1.12);
    filter: drop-shadow(0 6px 16px rgba(0, 102, 204, 0.6));
  }
  70% {
    transform: scale(1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  }
}

.tagline {
  font-size: 1.25rem;
  opacity: 0.95;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

/* ==================== MAIN CONTENT ==================== */
.main {
  flex: 1;
  padding: var(--spacing-xl) 0;
}

/* ==================== EMERGENCY MODE ==================== */
.emergency-section {
  margin-bottom: var(--spacing-xl);
}

.emergency-container {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 3px solid var(--pepsi-blue);
  box-shadow: 0 0 40px rgba(0, 102, 204, 0.4);
  text-align: center;
}

.emergency-header {
  margin-bottom: var(--spacing-lg);
}

.emergency-title {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--pepsi-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 0 10px rgba(0, 102, 204, 0.5);
}

.emergency-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-style: italic;
}

.emergency-button {
  width: 100%;
  max-width: 400px;
  height: 88px;
  background: linear-gradient(135deg, #ff6b00 0%, #ff3333 100%);
  border: none;
  border-radius: var(--radius-lg);
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 51, 51, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.emergency-button:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(255, 51, 51, 0.6);
}

.emergency-button:active {
  transform: scale(0.98);
}

.emergency-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  animation: none;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(255, 51, 51, 0.4);
  }
  50% {
    box-shadow: 0 8px 32px rgba(255, 51, 51, 0.7);
  }
}

.emergency-status {
  margin-top: var(--spacing-md);
  font-size: 1rem;
  color: var(--text-secondary);
  min-height: 24px;
}

/* Emergency Response Section */
.emergency-response {
  margin-bottom: var(--spacing-xl);
}

.emergency-response-container {
  background: linear-gradient(135deg, #00cc66 0%, #00994d 100%);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px rgba(0, 204, 102, 0.4);
  animation: slideIn 0.5s ease-out;
}

/* Mobile responsive for desperate image */
@media (max-width: 768px) {
  .emergency-content-wrapper {
    flex-direction: column !important;
  }

  .emergency-desperate-image {
    width: 120px !important;
    height: 120px !important;
    margin-top: 1rem;
    order: 2; /* Move image below button on mobile */
  }
}

/* ==================== EMERGENCY MODE VARIANTS ==================== */

/* Variant 1: The Shakes 🫨 - Red/Orange gradient with shaking animation */
.emergency-shakes {
  background: linear-gradient(135deg, #1a0a00 0%, #2a0500 50%, #1a0000 100%);
  border-color: #ff6b00;
  animation: subtle-shake 3s ease-in-out infinite;
}

.emergency-shakes .emergency-title {
  color: #ff6b00;
  text-shadow: 0 0 15px rgba(255, 107, 0, 0.6);
  animation: shake-intense 0.5s ease-in-out infinite;
}

.emergency-shakes .emergency-button {
  background: linear-gradient(135deg, #ff6b00 0%, #ff3333 100%);
  animation: button-pulse 1.5s ease-in-out infinite;
}

.emergency-shakes .emergency-desperate-image {
  animation: shake-intense 0.8s ease-in-out infinite;
}

@keyframes shake-intense {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  10% {
    transform: translate(-2px, -1px) rotate(-1deg);
  }
  20% {
    transform: translate(2px, 1px) rotate(1deg);
  }
  30% {
    transform: translate(-2px, 1px) rotate(-1deg);
  }
  40% {
    transform: translate(2px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-0.5deg);
  }
  60% {
    transform: translate(1px, -2px) rotate(0.5deg);
  }
  70% {
    transform: translate(-2px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(2px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(-1px, 1px) rotate(-0.5deg);
  }
}

@keyframes subtle-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(1px, 0);
  }
  50% {
    transform: translate(0, 1px);
  }
  75% {
    transform: translate(-1px, 0);
  }
}

@keyframes button-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(255, 51, 51, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow:
      0 8px 32px rgba(255, 107, 0, 0.8),
      0 0 40px rgba(255, 51, 51, 0.4);
  }
}

/* Variant 2: Dopamine Speedrun 🎮 - Gaming aesthetic with electric colors */
.emergency-dopamine {
  background: linear-gradient(135deg, #0a000a 0%, #1a001a 50%, #0a0020 100%);
  border-color: #00ff88;
  position: relative;
  overflow: hidden;
}

.emergency-dopamine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
  animation: scan-line 3s linear infinite;
}

.emergency-dopamine .emergency-title {
  color: #00ff88;
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
  font-family: 'Courier New', monospace;
  letter-spacing: 3px;
}

.emergency-dopamine .emergency-subtitle {
  font-family: 'Courier New', monospace;
  color: #00ffff;
}

.emergency-dopamine .emergency-button {
  background: linear-gradient(135deg, #00ff88 0%, #00ffff 100%);
  color: #000;
  animation: pulse-glow 1s ease-in-out infinite;
}

.emergency-dopamine .emergency-desperate-image {
  filter: hue-rotate(90deg) saturate(1.5) contrast(1.2);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

@keyframes scan-line {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
  }
  50% {
    box-shadow:
      0 0 40px rgba(0, 255, 255, 0.8),
      0 0 60px rgba(0, 255, 136, 0.4);
  }
}

/* Variant 3: Emergency Broadcast System 📢 - Red alert with pulsing */
.emergency-broadcast {
  background: linear-gradient(135deg, #1a0000 0%, #330000 50%, #1a0000 100%);
  border-color: #ff0000;
  animation: pulse-alarm 2s ease-in-out infinite;
}

.emergency-broadcast .emergency-title {
  color: #ff0000;
  text-shadow: 0 0 20px rgba(255, 0, 0, 0.8);
  animation: blink-red 1s ease-in-out infinite;
}

.emergency-broadcast .emergency-button {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
  animation: pulse-alarm-button 1s ease-in-out infinite;
  position: relative;
}

.emergency-broadcast .emergency-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: rgba(255, 0, 0, 0.3);
  animation: pulse-ring 2s ease-out infinite;
}

.emergency-broadcast .emergency-desperate-image {
  filter: grayscale(100%) contrast(1.3);
  animation: flash-red 2s ease-in-out infinite;
}

@keyframes pulse-alarm {
  0%,
  100% {
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 60px rgba(255, 0, 0, 0.8);
  }
}

@keyframes blink-red {
  0%,
  49%,
  100% {
    opacity: 1;
  }
  50%,
  99% {
    opacity: 0.7;
  }
}

@keyframes pulse-alarm-button {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.6);
  }
  50% {
    box-shadow:
      0 8px 40px rgba(255, 0, 0, 1),
      0 0 60px rgba(255, 0, 0, 0.5);
  }
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

@keyframes flash-red {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 40px rgba(255, 0, 0, 0.8);
  }
}

/* Variant 4: Honest Intervention 🤝 - Warm supportive colors */
.emergency-intervention {
  background: linear-gradient(135deg, #1a1200 0%, #2a1a00 50%, #1a0f00 100%);
  border-color: #ffaa00;
}

.emergency-intervention .emergency-title {
  color: #ffaa00;
  text-shadow: 0 0 15px rgba(255, 170, 0, 0.5);
}

.emergency-intervention .emergency-subtitle {
  color: #ffcc66;
  font-style: normal;
}

.emergency-intervention .emergency-button {
  background: linear-gradient(135deg, #ffaa00 0%, #ff8800 100%);
  animation: warm-pulse 2s ease-in-out infinite;
}

.emergency-intervention .emergency-desperate-image {
  filter: sepia(30%) saturate(1.2);
}

@keyframes warm-pulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(255, 170, 0, 0.4);
  }
  50% {
    box-shadow: 0 8px 32px rgba(255, 170, 0, 0.7);
  }
}

/* Variant 5: Hyperfocus Activated 🎯 - Tactical blue/cyan HUD */
.emergency-hyperfocus {
  background: linear-gradient(135deg, #000a1a 0%, #001a2a 50%, #000510 100%);
  border-color: #00d4ff;
  position: relative;
}

.emergency-hyperfocus::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.03) 2px,
    rgba(0, 212, 255, 0.03) 4px
  );
  pointer-events: none;
}

.emergency-hyperfocus .emergency-title {
  color: #00d4ff;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.6);
  font-family: 'Courier New', monospace;
  letter-spacing: 4px;
}

.emergency-hyperfocus .emergency-subtitle {
  font-family: 'Courier New', monospace;
  color: #00ffaa;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.emergency-hyperfocus .emergency-button {
  background: linear-gradient(135deg, #0066cc 0%, #00d4ff 100%);
  animation: tactical-pulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.emergency-hyperfocus .emergency-desperate-image {
  filter: hue-rotate(180deg) saturate(1.3) contrast(1.1);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  border: 2px solid rgba(0, 212, 255, 0.3);
}

@keyframes tactical-pulse {
  0%,
  100% {
    box-shadow:
      0 0 20px rgba(0, 212, 255, 0.5),
      0 8px 24px rgba(0, 102, 204, 0.4);
  }
  50% {
    box-shadow:
      0 0 40px rgba(0, 212, 255, 0.8),
      0 8px 32px rgba(0, 212, 255, 0.6);
  }
}

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

.response-header h3 {
  font-family: 'Arial Black', Arial, sans-serif;
  font-size: 1.5rem;
  color: white;
  text-align: center;
  margin-bottom: var(--spacing-md);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.response-content {
  background: rgba(255, 255, 255, 0.95);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
}

.response-store {
  margin-bottom: var(--spacing-md);
}

.response-store-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bg-primary);
  margin-bottom: var(--spacing-xs);
}

.response-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--success);
  margin-bottom: var(--spacing-xs);
}

.response-savings {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--warning);
  margin-bottom: var(--spacing-sm);
}

.response-travel {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.travel-mode {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--bg-primary);
}

.response-action {
  text-align: center;
}

.navigate-button {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--pepsi-blue);
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.navigate-button:hover {
  background: var(--pepsi-blue-dark);
  transform: scale(1.05);
}

/* Skeleton Loaders */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 20px;
  margin-bottom: var(--spacing-xs);
}

.skeleton-title {
  height: 32px;
  width: 60%;
  margin-bottom: var(--spacing-sm);
}

.skeleton-button {
  height: 88px;
  width: 100%;
  max-width: 400px;
}

.skeleton-card {
  background: var(--surface-secondary);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.skeleton-image {
  width: 100%;
  height: 150px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-sm);
}

.skeleton-price {
  height: 36px;
  width: 70%;
  margin-bottom: var(--spacing-xs);
}

.skeleton-label {
  height: 16px;
  width: 50%;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 2px;
}

section {
  margin-bottom: var(--spacing-xl);
}

/* ==================== PACKAGE SELECTOR ==================== */
.package-selector-card {
  background: var(--bg-card);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 2px solid var(--pepsi-blue);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-xl);
}

.selector-row {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.package-select {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="white"><path d="M8 11L3 6h10z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.package-select:hover {
  border-color: var(--pepsi-blue);
  background-color: var(--bg-card);
}

.package-select:focus {
  outline: none;
  border-color: var(--pepsi-blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.select-icon {
  font-size: 2rem;
}

.quick-filters {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.quick-filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.quick-filter-btn:hover {
  border-color: var(--pepsi-blue);
  color: var(--pepsi-blue);
  transform: translateY(-2px);
}

.quick-filter-btn.active {
  background: linear-gradient(135deg, var(--pepsi-blue), var(--accent-electric));
  color: white;
  border-color: var(--pepsi-blue);
  box-shadow: var(--glow-blue);
}

/* ==================== TYPE FILTERS ==================== */
.type-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.type-filter-btn {
  background: var(--bg-card);
  border: 3px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  text-align: center;
}

.type-filter-btn:hover {
  transform: translateY(-8px);
  border-color: var(--pepsi-blue);
  box-shadow: var(--shadow-lg);
}

.type-filter-btn.active {
  border-color: var(--pepsi-blue);
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.15), rgba(0, 212, 255, 0.1));
  box-shadow: var(--glow-blue);
}

.filter-icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-sm);
}

.filter-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-price {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.type-filter-btn.active .filter-price {
  color: var(--accent-electric);
}

/* ==================== PRICE HISTORY ==================== */
.history-card {
  background: var(--bg-card);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  min-height: 300px;
  position: relative;
}

.history-card canvas {
  width: 100% !important;
  height: 280px !important;
}

.chart-loading,
.chart-empty,
.chart-error,
.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: var(--text-secondary);
  text-align: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
}

.chart-placeholder-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
  opacity: 0.6;
}

.chart-placeholder-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.chart-placeholder-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  max-width: 300px;
}

.chart-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 212, 255, 0.2);
  border-top-color: var(--accent-electric);
  border-radius: 50%;
  animation: chart-spin 1s linear infinite;
}

@keyframes chart-spin {
  to {
    transform: rotate(360deg);
  }
}

.chart-empty-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.chart-error {
  color: var(--error);
}

.btn-retry-small {
  margin-top: var(--spacing-sm);
  padding: 0.5rem 1rem;
  background: var(--accent-electric);
  color: var(--bg-primary);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.btn-retry-small:hover {
  background: var(--pepsi-blue);
  color: white;
}

/* ==================== COMPARISON GRID ==================== */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
}

.comparison-card {
  background: var(--bg-card);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.comparison-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--pepsi-blue);
}

.comparison-card:first-child {
  border-color: var(--pepsi-blue);
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 212, 255, 0.05));
}

.comparison-rank {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
}

.comparison-store {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.comparison-price {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pepsi-blue), var(--accent-electric));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-xs);
}

.comparison-per-liter {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.comparison-savings {
  font-size: 0.875rem;
  color: var(--success);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.comparison-location {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==================== BEST DEAL ==================== */
.best-deal-section {
  margin-bottom: 2rem;
}

.best-deal-card {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.15) 0%, rgba(0, 82, 204, 0.05) 100%);
  border: 2px solid var(--accent-electric);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.best-deal-card.clickable {
  cursor: pointer;
}

.best-deal-card.clickable:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0, 212, 255, 0.35);
  border-color: var(--pepsi-blue);
}

.best-deal-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.deal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(0, 212, 255, 0.2);
  padding-bottom: 0.75rem;
  gap: 1rem;
}

.deal-badges {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.deal-badges .distance-badge {
  margin: 0;
}

.opening-status-badge {
  white-space: nowrap;
}

.deal-header .distance-badge {
  margin: 0;
  flex-shrink: 0;
}

.deal-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-electric);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

.deal-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
}

.promotion-badge {
  display: inline-block;
  background: var(--accent-red);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-sm);
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.promotion-badge-small {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  background: var(--accent-red);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 0, 0, 0.5);
}

.deal-package {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
}

.package-icon {
  font-size: 2.5rem;
}

.package-details {
  flex: 1;
}

.package-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.package-type {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.deal-prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.deal-price-main,
.deal-price-per-liter {
  background: rgba(0, 212, 255, 0.1);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 212, 255, 0.3);
  text-align: center;
}

.price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.price-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.price-value-large {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent-electric);
  line-height: 1;
}

.price-label-small {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.price-value.highlight {
  color: var(--accent-electric);
  font-size: 2.5rem;
}

.chain-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
}

.chain-badge img {
  height: 48px;
  max-width: 150px;
  object-fit: contain;
}

.distance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 204, 102, 0.15);
  color: var(--success);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  border: 1px solid rgba(0, 204, 102, 0.3);
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

/* Travel Times */
.travel-times {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.travel-time {
  white-space: nowrap;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Opening Status Badge (in store modal) */
.store-opening-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 8px;
  font-weight: 500;
  flex-wrap: wrap;
}

.store-opening-status .status-text {
  font-size: 1.1rem;
}

.store-opening-status .time-left {
  opacity: 0.8;
  font-size: 0.9rem;
}

.deal-avg-comparison {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-electric);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.deal-store {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
}

.store-icon {
  font-size: 2rem;
}

.store-details {
  flex: 1;
}

/* ==================== FORM ==================== */
.form-card {
  background: var(--bg-card);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--pepsi-blue);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--pepsi-blue), var(--accent-electric));
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  box-shadow: var(--shadow-md), var(--glow-blue);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--pepsi-blue-dark), var(--pepsi-blue));
  box-shadow:
    var(--shadow-lg),
    0 0 30px rgba(0, 102, 204, 0.6);
}

.form-message {
  margin-top: var(--spacing-md);
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  font-weight: 500;
  display: none;
}

.form-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 2px solid var(--success);
  display: block;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 2px solid var(--error);
  display: block;
}

/* ==================== FILTERS ==================== */
.filters {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.filter-btn,
.price-filter-btn {
  padding: 0.625rem 1.25rem;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.price-filter-btn:hover {
  border-color: var(--pepsi-blue);
  color: var(--pepsi-blue);
  background: var(--bg-secondary);
}

.filter-btn.active,
.price-filter-btn.active {
  background: linear-gradient(135deg, var(--pepsi-blue), var(--accent-electric));
  color: white;
  border-color: var(--pepsi-blue);
  box-shadow: var(--glow-blue);
}

/* ==================== PRICES LIST ==================== */
.prices-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* New clean price row styling */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.price-row:hover {
  background: var(--bg-secondary);
  border-color: var(--pepsi-blue);
}

.price-row-best {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 212, 255, 0.1));
  border-color: var(--pepsi-blue);
  border-width: 2px;
}

.price-row-chain {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.price-row-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.price-row-logo-fallback {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.price-row-chain-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.price-row-badge {
  background: var(--success);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-row-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.price-row-info {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.price-row-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}

.price-row-badges .distance-badge {
  margin-top: 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
}

.opening-status-badge-small {
  padding: 0.15rem 0;
  line-height: 1.2;
}

.price-row-info .distance-badge {
  margin-top: 0;
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
}

.price-row-info .travel-times {
  gap: 0.35rem;
  margin-left: 0.35rem;
  padding-left: 0.35rem;
}

.price-row-info .travel-time {
  font-size: 0.65rem;
}

/* Clickable price rows */
.price-row.clickable {
  cursor: pointer;
}

.price-row.clickable:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.price-row-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-row-per-liter {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.no-prices-message {
  text-align: center;
  padding: var(--spacing-xl);
  color: var(--text-secondary);
}

.no-prices-message p:first-child {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

/* Legacy price-item styles (kept for backward compatibility) */
.price-item {
  background: var(--bg-card);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--pepsi-blue);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--spacing-md);
  align-items: center;
  transition: all 0.3s ease;
}

.price-item.clickable {
  cursor: pointer;
}

.price-item.clickable:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--accent-electric);
  border-color: var(--pepsi-blue);
}

.price-icon {
  font-size: 2rem;
}

.price-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.store-logo-container {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  padding: 8px;
}

.store-logo-small {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.price-package {
  font-size: 0.875rem;
  color: var(--accent-electric);
  font-weight: 600;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.price-store {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-location {
  font-size: 0.875rem;
}

.price-details {
  text-align: right;
}

.price-amount {
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pepsi-blue), var(--accent-electric));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Campaign price display (e.g., "2 for 129") */
.campaign-price {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ff6b35;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.per-item-price {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
}

.price-per-liter {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.price-volume {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.price-savings {
  font-size: 0.875rem;
  color: var(--success);
  font-weight: 700;
  margin-top: 0.25rem;
}

/* ==================== LOADING ==================== */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 75, 147, 0.1);
  border-top-color: var(--pepsi-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner p {
  margin-top: var(--spacing-md);
  color: var(--text-secondary);
}

/* ==================== FLOATING EMERGENCY BUTTON ==================== */
.emergency-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #ff6b00, #ff3333);
  border: none;
  border-radius: 50%;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 51, 51, 0.5);
  z-index: 9999;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s ease-in-out infinite;
}

.emergency-fab:hover {
  transform: scale(1.15) rotate(12deg);
  box-shadow: 0 8px 28px rgba(255, 51, 51, 0.7);
}

.emergency-fab:active {
  transform: scale(0.95);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.5);
  }
  50% {
    box-shadow:
      0 6px 30px rgba(255, 51, 51, 0.8),
      0 0 40px rgba(255, 107, 0, 0.4);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .emergency-fab {
    width: 56px;
    height: 56px;
    font-size: 28px;
    bottom: 20px;
    right: 20px;
  }
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 2px solid var(--border-color);
  padding: var(--spacing-xl) 0;
  margin-top: var(--spacing-xl);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  align-items: center;
}

.footer-links a,
.link-reset-location,
.link-project-story {
  color: var(--pepsi-blue);
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-links a:hover,
.link-reset-location:hover,
.link-project-story:hover {
  color: var(--accent-electric);
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.link-reset-location:focus,
.link-project-story:focus {
  outline: 2px solid var(--accent-electric);
  outline-offset: 2px;
}

.footer-disclaimer {
  margin: 0;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.4;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .pepsi-logo {
    height: 60px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .logo-emoji {
    font-size: 2rem;
  }

  .main-title {
    font-size: 1.8rem;
    letter-spacing: 4px;
  }

  .header-content {
    gap: var(--spacing-sm);
  }

  .logo {
    font-size: 2rem;
  }

  .emoji {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .price-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .price-details {
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    flex-direction: column;
  }

  .filter-btn {
    width: 100%;
    min-height: 48px; /* Better touch target */
  }

  .package-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: var(--spacing-sm);
  }

  .package-radio-label {
    padding: var(--spacing-md); /* More comfortable on mobile */
  }

  .price-item {
    padding: var(--spacing-md);
    font-size: 0.95rem;
  }

  .store-modal-content {
    width: 95vw; /* Nearly full width on mobile */
    max-width: 100%;
    margin: var(--spacing-sm);
  }

  .deal-content {
    flex-direction: column !important; /* Stack on mobile */
  }

  .deal-prices {
    width: 100% !important;
  }
}

/* ==================== TOUCH-FRIENDLY IMPROVEMENTS ==================== */
/* Remove hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .package-radio-label:hover {
    transform: none;
  }

  .filter-btn:hover {
    transform: none;
  }

  /* Add active state feedback instead */
  .package-radio-label:active {
    transform: scale(0.98);
  }

  .filter-btn:active {
    transform: scale(0.98);
  }

  .price-item.clickable:active {
    transform: scale(0.99);
  }
}

/* Improve tap targets */
button,
a,
.clickable {
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
}

/* Prevent text selection on double-tap */
.package-radio-label,
.filter-btn,
.price-item.clickable {
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Smooth scrolling for better mobile UX */
html {
  scroll-behavior: smooth;
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

/* ==================== UTILITIES ==================== */
.hidden {
  display: none !important;
}

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

.text-muted {
  color: var(--text-secondary);
}

/* Updated Header - Compact */
.main-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: white;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 12px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.last-updated {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0.5rem 0 0 0;
  text-align: center;
  font-weight: 400;
  letter-spacing: 1px;
}

.last-updated.loading {
  opacity: 0.5;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.8;
  }
}

.header {
  padding: 1.5rem 0 !important;
}

/* Compact Filter Section */
.filter-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-label-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.filter-buttons {
  display: flex;
  gap: 0.75rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--accent-electric);
  background: transparent;
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--accent-electric);
  color: var(--bg-dark);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* Sorting Toggle */
.sorting-section {
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 255, 255, 0.2);
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sorting-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sorting-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.sorting-buttons {
  display: flex;
  gap: 0.5rem;
}

.sorting-btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family:
    'Montserrat',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  white-space: nowrap;
}

.sorting-btn:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--accent-electric);
  transform: translateY(-1px);
}

.sorting-btn.active {
  background: linear-gradient(135deg, var(--pepsi-blue), var(--accent-electric));
  color: white;
  border-color: var(--accent-electric);
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.sorting-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.4);
}

/* Package Grid - Radio Button Style */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.package-radio {
  position: relative;
}

.package-radio input[type='radio'] {
  position: absolute;
  opacity: 0;
}

.package-radio-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.package-image {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.package-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.emoji-fallback {
  font-size: 3rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  align-items: center;
  justify-content: center;
  animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

.image-error {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  font-size: 2rem;
  color: var(--text-secondary);
}

.image-error-retry {
  font-size: 0.875rem;
  color: var(--accent-electric);
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.image-error-retry:hover {
  color: var(--accent-neon);
}

.package-radio input[type='radio']:checked + .package-radio-label {
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.2), rgba(0, 255, 255, 0.1));
  border-color: var(--accent-electric);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.package-radio-label:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.package-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.package-price {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent-electric);
}

.package-price-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Promotion badge on product cards */
.package-promo-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
  z-index: 10;
  animation: pulse-promo 2s ease-in-out infinite;
}

.package-radio.has-promotion .package-radio-label {
  border-color: #ff6b35;
  box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.package-radio.has-promotion input[type='radio']:checked + .package-radio-label {
  border-color: #ff6b35;
  box-shadow: 0 0 25px rgba(255, 107, 53, 0.4);
}

@keyframes pulse-promo {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ==================== PACKAGE ACTION BUTTONS (Redesigned) ==================== */

.package-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
  width: 100%;
}

.package-fav-btn,
.package-alert-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-secondary, #888);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px; /* Touch target for accessibility */
}

.package-fav-btn:hover,
.package-alert-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text-primary, #fff);
  transform: translateY(-1px);
}

.package-fav-btn:active,
.package-alert-btn:active {
  transform: scale(0.97);
}

.package-fav-btn:disabled,
.package-alert-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Icons */
.action-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* Backwards compatibility for old selectors */
.fav-icon,
.alert-icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* Labels */
.action-label {
  white-space: nowrap;
}

/* ---- Favorited State ---- */
.package-fav-btn.is-favorited {
  background: rgba(255, 68, 68, 0.15);
  border-color: #ff4444;
  color: #ff4444;
}

.package-fav-btn.is-favorited:hover {
  background: rgba(255, 68, 68, 0.25);
  border-color: #ff6666;
}

.package-fav-btn.is-favorited .fav-icon {
  animation: heart-pop 0.3s ease;
}

@keyframes heart-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

/* ---- Has Alert State ---- */
.package-alert-btn.has-alert {
  background: rgba(0, 102, 204, 0.2);
  border-color: var(--pepsi-blue, #0066cc);
  color: var(--pepsi-blue, #0066cc);
}

.package-alert-btn.has-alert:hover {
  background: rgba(0, 102, 204, 0.3);
  border-color: #0077ee;
}

.package-alert-btn.has-alert .alert-icon {
  animation: checkmark-pop 0.3s ease;
}

@keyframes checkmark-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* ==================== MOBILE PACKAGE ACTIONS ==================== */

@media (max-width: 768px) {
  .package-actions {
    gap: 6px;
    margin-top: 10px;
  }

  .package-fav-btn,
  .package-alert-btn {
    padding: 10px 12px;
    min-width: 44px;
    min-height: 44px;
  }

  /* Hide labels on mobile, show only icons */
  .action-label,
  .fav-label,
  .alert-label {
    display: none;
  }

  .action-icon,
  .fav-icon,
  .alert-icon {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .package-fav-btn,
  .package-alert-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ==================== PRICE ALERT MODAL ==================== */

.price-alert-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.price-alert-modal {
  background: var(--bg-card, #1a1a1a);
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: 400px;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 102, 204, 0.3);
}

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

.price-alert-modal .modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary, #888);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}

.price-alert-modal .modal-close:hover {
  color: var(--text-primary, #fff);
}

.price-alert-modal .modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary, #fff);
}

.price-alert-modal .modal-product {
  color: var(--text-secondary, #888);
  margin-bottom: 0.5rem;
}

.price-alert-modal .modal-current-price {
  color: var(--text-primary, #fff);
  margin-bottom: 1.5rem;
}

.price-alert-modal .modal-current-price strong {
  color: var(--pepsi-blue, #0066cc);
}

.price-alert-modal .modal-form {
  margin-bottom: 1.5rem;
}

.price-alert-modal .modal-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary, #fff);
}

.price-alert-modal .modal-input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-alert-modal .modal-input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--bg-primary, #000);
  border: 2px solid var(--border-color, #333);
  border-radius: 0.5rem;
  color: var(--text-primary, #fff);
  font-size: 1.25rem;
  font-family: inherit;
  font-weight: 600;
  text-align: center;
  max-width: 120px;
}

.price-alert-modal .modal-input:focus {
  outline: none;
  border-color: var(--pepsi-blue, #0066cc);
}

.price-alert-modal .modal-input-suffix {
  color: var(--text-secondary, #888);
  font-size: 1rem;
}

.price-alert-modal .modal-hint {
  color: var(--text-secondary, #888);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.price-alert-modal .modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.price-alert-modal .modal-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.price-alert-modal .modal-btn-secondary {
  background: transparent;
  border: 1px solid var(--border-color, #333);
  color: var(--text-secondary, #888);
}

.price-alert-modal .modal-btn-secondary:hover {
  border-color: var(--text-secondary, #888);
  color: var(--text-primary, #fff);
}

.price-alert-modal .modal-btn-primary {
  background: linear-gradient(
    135deg,
    var(--pepsi-blue, #0066cc) 0%,
    var(--pepsi-blue-dark, #004c99) 100%
  );
  border: none;
  color: white;
}

.price-alert-modal .modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.price-alert-modal .modal-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ==================== FAVORITES TOGGLE ==================== */

.favorites-toggle-container {
  margin-left: auto;
  padding-left: 1rem;
  border-left: 1px solid var(--border-color);
}

.favorites-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.favorites-toggle input {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border-color);
  border-radius: 12px;
  transition: background 0.2s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.favorites-toggle input:checked + .toggle-slider {
  background: var(--pepsi-blue);
}

.favorites-toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.favorites-toggle input:checked ~ .toggle-label {
  color: var(--text-primary);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .favorites-toggle-container {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
  }

  .filter-row {
    flex-wrap: wrap;
  }
}

/* Store Links */
.store-name-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.store-name-link:hover {
  color: var(--accent-electric);
}

.store-location-link {
  font-size: 0.875rem;
  color: var(--accent-electric);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.2s ease;
}

.store-location-link:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* ==================== LOCATION PROMPT & TOAST ==================== */

.location-prompt {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
}

.location-prompt.visible {
  opacity: 1;
}

.location-prompt-content {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0, 51, 102, 0.95) 100%);
  border: 2px solid var(--pepsi-blue);
  border-radius: 16px;
  padding: 2rem;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 102, 204, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  position: relative;
}

.location-prompt.visible .location-prompt-content {
  transform: scale(1);
}

.location-prompt-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.location-icon {
  font-size: 2.5rem;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.location-prompt-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-electric), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.location-prompt-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.privacy-points {
  list-style: disc;
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.privacy-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.privacy-note a {
  color: var(--accent-electric);
  text-decoration: underline;
}

.location-prompt-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
}

.location-prompt-close:hover {
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.3);
}

.location-prompt-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family:
    'Montserrat',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  min-width: 120px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pepsi-blue), var(--accent-electric));
  color: white;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* Location Toast */
.location-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(0, 51, 102, 0.98) 100%);
  border: 1px solid var(--pepsi-blue);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  max-width: 350px;
  font-weight: 600;
  color: var(--text-primary);
}

.location-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Distance Badge */
.distance-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.distance-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.distance-icon {
  font-size: 1rem;
}

.distance-value {
  font-weight: 600;
  color: var(--accent-electric);
}

.distance-separator {
  color: var(--text-muted);
  opacity: 0.5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .location-prompt-content {
    padding: 1.5rem;
    max-width: 90vw;
  }

  .location-prompt-header h3 {
    font-size: 1.25rem;
  }

  .location-icon {
    font-size: 2rem;
  }

  .location-prompt-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .location-toast {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: calc(100vw - 2rem);
  }

  .site-footer .container {
    align-items: flex-start;
    gap: var(--spacing-xs);
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }

  .distance-badge {
    font-size: 0.75rem;
    gap: 0.375rem;
  }

  .distance-icon {
    font-size: 0.875rem;
  }
}

/* ==================== STORE MODAL ==================== */
.store-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ==================== DOCUMENT MODAL ==================== */
.document-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 11000;
}

.document-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.document-modal-content {
  background: #ffffff;
  width: min(900px, 92vw);
  max-height: min(80vh, 820px);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.document-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #edf2f7;
  background: linear-gradient(135deg, rgba(0, 75, 147, 0.05), rgba(0, 212, 255, 0.1));
}

.document-modal-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.document-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.document-modal-close:hover {
  color: var(--text-primary);
}

.document-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  color: #1f2933;
  line-height: 1.6;
}

.document-modal-body h1,
.document-modal-body h2,
.document-modal-body h3 {
  margin-top: 1.5rem;
  color: #0f172a;
}

.document-modal-body h1:first-child,
.document-modal-body h2:first-child {
  margin-top: 0;
}

.document-modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.document-modal-body table th,
.document-modal-body table td {
  border: 1px solid #e2e8f0;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.document-modal-body a {
  color: var(--pepsi-blue);
  text-decoration: underline;
}

.document-modal-body ul,
.document-modal-body ol {
  padding-left: 1.4rem;
}

.document-modal-body code {
  background: rgba(15, 23, 42, 0.05);
  padding: 0 0.35rem;
  border-radius: 4px;
}

.document-modal-loading {
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-weight: 600;
}

.document-modal-error {
  padding: 2rem;
  text-align: center;
  color: var(--error);
  font-weight: 600;
}

/* Wide modal for architecture diagrams */
.document-modal-wide {
  width: min(1100px, 96vw);
  max-height: min(90vh, 900px);
}

.document-modal-wide .mermaid {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
}

.document-modal-wide .mermaid svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.document-modal-wide table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.document-modal-wide th {
  background: linear-gradient(135deg, #004b93, #0066cc);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

.document-modal-wide td {
  padding: 0.6rem 1rem;
  border: 1px solid #e2e8f0;
}

.document-modal-wide tr:nth-child(even) {
  background: #f8fafc;
}

.document-modal-wide pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.5;
}

.document-modal-wide code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.document-modal-wide hr {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 2rem 0;
}

@media (max-width: 640px) {
  .document-modal-content {
    border-radius: 12px;
    width: 94vw;
  }

  .document-modal-header {
    padding: 1rem;
  }

  .document-modal-body {
    padding: 1rem;
  }
}

.store-modal.visible {
  opacity: 1;
}

.store-modal-content {
  background: var(--bg-secondary);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 102, 204, 0.3);
  border: 1px solid var(--pepsi-blue);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.store-modal.visible .store-modal-content {
  transform: scale(1);
}

.store-modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.store-modal-logo {
  flex-shrink: 0;
}

.store-modal-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: white;
  border-radius: 12px;
  padding: 8px;
}

.store-modal-title {
  flex: 1;
}

.store-modal-title h2 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.store-address {
  margin: 0.25rem 0 0 0;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.store-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.store-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.store-modal-body {
  padding: 1.5rem;
}

.store-distance-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.distance-card {
  background: rgba(0, 102, 204, 0.1);
  border: 1px solid rgba(0, 102, 204, 0.3);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.distance-card .distance-icon {
  font-size: 2rem;
}

.distance-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.distance-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.distance-value-large {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pepsi-blue);
}

.store-map-container {
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.store-modal-actions {
  display: flex;
  gap: 1rem;
}

.store-modal-actions .btn {
  flex: 1;
  text-align: center;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
}

.store-modal-actions .btn-primary {
  background: var(--pepsi-blue);
  color: white;
  border: none;
}

.store-modal-actions .btn-primary:hover {
  background: var(--pepsi-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.4);
}

.store-modal-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.store-modal-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==================== WOLT DELIVERY BUTTON ==================== */
.wolt-delivery-section {
  margin-top: var(--spacing-md);
  padding: var(--spacing-md);
  background: linear-gradient(135deg, #009de0 0%, #0080b3 100%);
  border-radius: var(--radius-md);
  animation: woltGlow 2s ease-in-out infinite;
}

@keyframes woltGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 157, 224, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 157, 224, 0.5);
  }
}

.wolt-delivery-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
}

.wolt-delivery-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.wolt-delivery-message {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}

.wolt-delivery-details {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  flex-wrap: wrap;
}

.wolt-delivery-time,
.wolt-delivery-distance {
  flex: 1;
  min-width: 150px;
  padding: var(--spacing-sm);
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(10px);
}

.wolt-delivery-time strong,
.wolt-delivery-distance strong {
  display: block;
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.wolt-delivery-time span,
.wolt-delivery-distance span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn-wolt {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.875rem 1.5rem;
  background: #ffffff;
  color: #009de0;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-wolt:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  background: #f0f0f0;
}

.btn-wolt:active {
  transform: translateY(0);
}

.wolt-delivery-disclaimer {
  margin-top: var(--spacing-sm);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* Wolt badge on price tiles */
.wolt-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: linear-gradient(135deg, #009de0 0%, #0080b3 100%);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 157, 224, 0.4);
  z-index: 10;
}

.wolt-badge-text {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Disclaimer text */
.wolt-delivery-disclaimer {
  margin-top: 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  line-height: 1.3;
}

/* Responsive */
@media (max-width: 768px) {
  .store-distance-info {
    grid-template-columns: 1fr;
  }

  .store-modal-actions {
    flex-direction: column;
  }

  .store-modal-header {
    flex-direction: column;
    text-align: center;
  }

  .wolt-delivery-details {
    flex-direction: column;
  }

  .wolt-delivery-time,
  .wolt-delivery-distance {
    min-width: auto;
  }
}

/* Chain-level pricing styles */
.price-type-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.deal-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==================== ROADMAP MODAL ==================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
  margin: 5% auto;
  padding: 40px;
  border: 2px solid var(--pepsi-blue);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 900px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 50px rgba(0, 102, 204, 0.5);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  color: var(--text-secondary);
  float: right;
  font-size: 36px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--pepsi-blue);
  text-shadow: 0 0 10px rgba(0, 102, 204, 0.8);
}

.link-roadmap {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.link-roadmap:hover {
  color: var(--pepsi-blue);
}

.roadmap-intro {
  background: rgba(0, 102, 204, 0.1);
  border-left: 4px solid var(--pepsi-blue);
  padding: 15px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 30px;
}

.roadmap-features {
  display: grid;
  gap: 20px;
}

.roadmap-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all 0.3s ease;
}

.roadmap-item:hover {
  border-color: var(--pepsi-blue);
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
  transform: translateX(5px);
}

.roadmap-item h3 {
  color: var(--pepsi-blue);
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.roadmap-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.roadmap-footer a {
  text-decoration: none;
  font-weight: 600;
}

.roadmap-footer a:hover {
  text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    padding: 20px;
    width: 95%;
    max-height: 85vh;
  }

  .roadmap-item {
    padding: 15px;
  }

  .roadmap-item h3 {
    font-size: 1.1rem;
  }
}

/* ==================== MOBILE UX OPTIMIZATIONS ==================== */
@media (max-width: 768px) {
  /* Countdown timer - Auto-hide on scroll */
  .countdown-timer {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 10000 !important;
    transition: transform 0.3s ease-in-out;
  }

  .countdown-timer.hidden {
    transform: translateY(-100%);
  }

  /* Add padding to prevent content from hiding under fixed countdown */
  .emergency-response-container .countdown-timer + * {
    margin-top: 80px;
  }

  /* Responsive typography - Scale down for mobile */
  .countdown-timer > div > div:first-child {
    font-size: 1.125rem !important; /* countdown text */
  }

  .emergency-response-container h2 {
    font-size: 1.375rem !important; /* store name */
  }

  .emergency-response-container [style*='font-size: 2.5rem'] {
    font-size: 2.25rem !important; /* price */
  }

  /* Map height - Reduce to 250px on mobile */
  #emergencyMap {
    height: 250px !important;
  }

  /* Grid spacing - Reduce gap to 1.25rem */
  .emergency-response-grid {
    gap: 1.25rem !important;
  }

  /* Card padding - Increase to 1.5rem for better touch targets */
  .emergency-response-container > div > div[style*='padding'] {
    padding: 1.5rem !important;
  }

  /* Navigate button - 56px min-height, 100% width, larger font */
  .emergency-response-container a[href*='google.com/maps'],
  .emergency-response-container a[href*='maps.app.goo.gl'] {
    min-height: 56px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    padding: 1rem 2rem !important;
    box-sizing: border-box;
  }

  /* Details/summary element - 48px min-height for better touch targets */
  details summary {
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(255, 184, 0, 0.2);
  }

  details[open] summary {
    background: rgba(255, 184, 0, 0.1);
    border-radius: 0.5rem;
  }

  /* Touch feedback for interactive elements */
  .emergency-response-container a:active,
  .emergency-response-container button:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
}

/* ========================================
   LOCATION MANAGEMENT COMPONENTS
   ======================================== */

/* Header location badge */
.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.location-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.location-badge:active {
  transform: translateY(0);
}

.location-badge-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.location-badge-text {
  line-height: 1;
}

.location-badge.loading .location-badge-icon {
  animation: gentlePulse 1.5s ease-in-out infinite;
}

.location-badge.granted {
  background: rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.4);
}

.location-badge.denied {
  background: rgba(244, 67, 54, 0.2);
  border-color: rgba(244, 67, 54, 0.4);
}

/* Location consent modal */
.location-consent-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.location-consent-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.location-consent-content {
  position: relative;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUpFade 0.3s ease;
}

.location-consent-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.location-consent-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

.location-consent-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #9ca3af;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.location-consent-close:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.location-consent-body {
  padding: 1.5rem;
}

.location-consent-body > p {
  margin: 0 0 1.5rem 0;
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
}

.location-consent-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 8px;
}

.benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.benefit-item span:last-child {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.4;
}

.location-consent-privacy {
  padding: 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 8px;
}

.location-consent-privacy small {
  font-size: 0.8125rem;
  color: #047857;
  line-height: 1.5;
  display: block;
}

.location-consent-footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.btn-consent {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-deny {
  background: #f3f4f6;
  color: #6b7280;
}

.btn-deny:hover {
  background: #e5e7eb;
  color: #374151;
}

.btn-allow {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-allow:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-allow:active {
  transform: translateY(0);
}

/* Location toast notifications */
.location-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: white;
  color: #1f2937;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  font-size: 0.9375rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 90%;
  text-align: center;
}

.location-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.location-toast-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.location-toast-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.location-toast-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* Location Options Modal Buttons */
.location-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.btn-location-option {
  padding: 14px 24px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-location-option:hover {
  background: #f9fafb;
  border-color: #9333ea;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(147, 51, 234, 0.1);
}

.btn-location-option:active {
  transform: translateY(0);
}

.btn-location-option.btn-delete {
  border-color: #fecaca;
  color: #dc2626;
}

.btn-location-option.btn-delete:hover {
  background: #fef2f2;
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
}

/* Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .header-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .location-badge {
    font-size: 0.8125rem;
    padding: 0.4rem 0.85rem;
  }

  .location-consent-content {
    max-width: 95%;
    border-radius: 12px;
  }

  .location-consent-footer {
    flex-direction: column;
  }

  .btn-consent {
    width: 100%;
  }
}

/* ==================== MAP SECTION ==================== */

/* Map Section Container */
.map-section {
  margin-bottom: var(--spacing-xl);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 2px solid var(--pepsi-blue);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Map Header */
.map-header {
  padding: var(--spacing-md);
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 212, 255, 0.05));
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.map-header .section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

/* Map Toggle Button */
.map-toggle-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.5rem 1rem;
  background: rgba(0, 102, 204, 0.1);
  border: 2px solid var(--pepsi-blue);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-toggle-btn:hover {
  background: rgba(0, 102, 204, 0.2);
  transform: translateY(-2px);
}

.map-toggle-icon {
  transition: transform 0.3s ease;
}

.map-toggle-btn[aria-expanded='false'] .map-toggle-icon {
  transform: rotate(-90deg);
}

/* Map Container Wrapper */
.map-container-wrapper {
  position: relative;
  height: 400px;
  transition: height 0.3s ease;
}

.map-container-wrapper.collapsed {
  height: 0;
  overflow: hidden;
}

/* Leaflet Map Container */
.map-container {
  width: 100%;
  height: 100%;
  background: #e0e6ed;
}

/* Map Loading State */
.map-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  z-index: 10;
}

.map-loading .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(0, 102, 204, 0.1);
  border-top-color: var(--pepsi-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.map-loading p {
  margin-top: var(--spacing-md);
  color: var(--text-secondary);
}

/* Map Error State */
.map-error {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  z-index: 10;
}

.map-error .error-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.map-error .error-message {
  color: var(--error);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.map-error .btn-retry {
  padding: 0.75rem 1.5rem;
  background: var(--pepsi-blue);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-error .btn-retry:hover {
  background: var(--pepsi-blue-dark);
  transform: translateY(-2px);
}

/* Map Empty State */
.map-empty {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  z-index: 10;
}

.map-empty .empty-icon {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
}

.map-empty .empty-message {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  text-align: center;
}

.map-empty .btn-primary {
  padding: 0.75rem 1.5rem;
  background: var(--pepsi-blue);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-empty .btn-primary:hover {
  background: var(--pepsi-blue-dark);
  transform: translateY(-2px);
}

/* Map Legend */
.map-legend {
  display: flex;
  gap: var(--spacing-lg);
  padding: var(--spacing-md);
  background: rgba(0, 0, 0, 0.05);
  border-top: 1px solid rgba(0, 212, 255, 0.2);
  font-size: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.legend-marker {
  font-size: 1.25rem;
}

/* Mobile Responsive - Map collapsed by default */
@media (max-width: 768px) {
  .map-container-wrapper {
    height: 300px; /* Shorter on mobile */
  }

  .map-container-wrapper.collapsed {
    height: 0;
  }

  .map-section {
    margin-bottom: var(--spacing-md);
  }
}

/* ==================== DISTANCE BADGES ==================== */

/* Distance Badge Container */
.distance-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 212, 255, 0.05));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--accent-electric);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.distance-badge:hover {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(0, 212, 255, 0.1));
  border-color: var(--accent-electric);
  transform: translateX(4px);
}

.distance-badge:active {
  transform: scale(0.98);
}

/* Distance Badge Icon */
.distance-icon {
  font-size: 1rem;
}

/* Distance Badge Text */
.distance-text {
  font-weight: 700;
  color: var(--accent-electric);
}

/* Store Name Short */
.store-name-short {
  color: var(--text-secondary);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

/* Travel Times Container */
.travel-times {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.5rem;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(0, 212, 255, 0.3);
}

.travel-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.travel-time:hover {
  color: var(--accent-electric);
}

/* Distance Badge in Price Item */
.price-info .distance-badge {
  margin-left: auto; /* Push to right side */
}

/* Mobile - Stack distance badge below store name */
@media (max-width: 768px) {
  .price-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .distance-badge {
    margin-left: 0;
    margin-top: var(--spacing-xs);
    width: 100%;
    justify-content: flex-start;
  }

  .store-name-short {
    max-width: 200px;
  }

  .travel-times {
    gap: 0.35rem;
    margin-left: 0.35rem;
    padding-left: 0.35rem;
  }

  .travel-time {
    font-size: 0.65rem;
  }

  /* Stack price-row-info on mobile */
  .price-row-info {
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-sm);
  }

  .price-row-info .distance-badge {
    width: auto;
  }

  /* Hide price history chart on mobile */
  .history-section {
    display: none;
  }

  /* Price row - full mobile layout */
  .price-row {
    flex-direction: column;
    align-items: stretch;
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-sm);
  }

  .price-row-chain {
    justify-content: flex-start;
    gap: var(--spacing-sm);
  }

  .price-row-logo {
    width: 32px;
    height: 32px;
  }

  .price-row-logo-fallback {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .price-row-chain-name {
    font-size: 0.9rem;
  }

  .price-row-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.35rem;
  }

  .price-row-info {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
  }

  .price-row-prices {
    align-items: flex-start;
  }

  .price-row-badges {
    align-items: flex-end;
    max-width: 50%;
  }

  .price-row-badges .distance-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.35rem;
  }

  .price-row-amount {
    font-size: 1rem;
  }

  .price-row-per-liter {
    font-size: 0.75rem;
  }
}

/* Very small screens (400px and below) */
@media (max-width: 400px) {
  /* Hide secondary travel modes */
  .travel-time.travel-cycle,
  .travel-time.travel-car {
    display: none;
  }

  .travel-time.travel-walk {
    display: inline-flex;
  }

  .price-row {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .price-row-chain-name {
    font-size: 0.85rem;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .price-row-badges {
    max-width: 45%;
  }

  .price-row-badges .distance-badge {
    font-size: 0.6rem;
  }

  .opening-status-badge-small {
    font-size: 0.55rem !important;
  }
}

/* Smallest screens (iPhone SE, etc.) */
@media (max-width: 320px) {
  .travel-times {
    display: none;
  }

  .price-row-chain-name {
    font-size: 0.8rem;
    max-width: 80px;
  }

  .price-row-badge {
    display: none;
  }

  .price-row-badges .distance-badge {
    display: none;
  }

  .opening-status-badge-small {
    display: none;
  }
}

/* Highlighted Store (when badge clicked) */
.distance-badge.highlighted {
  background: linear-gradient(135deg, var(--pepsi-blue), var(--accent-electric));
  border-color: var(--accent-electric);
  color: white;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.distance-badge.highlighted .distance-text,
.distance-badge.highlighted .store-name-short {
  color: white;
}

/* Animation for map highlight */
@keyframes highlight-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.8);
  }
}

.distance-badge.highlighted {
  animation: highlight-pulse 2s ease-in-out infinite;
}

/* Highlighted Price Item (when store clicked on map) */
.price-item.highlighted {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.2), rgba(0, 212, 255, 0.1));
  border-color: var(--accent-electric);
  transform: scale(1.02);
}
