/* ==========================================================================
   MOSSYCOOKS - MODERN LUXURY THEME & STYLESHEET
   ========================================================================== */

:root, [data-theme="tokyo"] {
  --bg-main: #0a0614;
  --bg-surface: #130c24;
  --bg-surface-elevated: #21153d;
  --bg-surface-glass: rgba(19, 12, 36, 0.88);
  --bg-surface-hover: #341e5e;
  
  --border-subtle: rgba(139, 92, 246, 0.2);
  --border-glow: rgba(6, 182, 212, 0.45);
  --border-focus: #06b6d4;

  --text-primary: #f5f3ff;
  --text-secondary: #c4b5fd;
  --text-muted: #7c3aed;
  
  --accent-gold: #06b6d4;
  --accent-amber: #8b5cf6;
  --accent-orange: #ec4899;
  --accent-emerald: #10b981;
  --accent-crimson: #ef4444;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-rose: #f43f5e;

  --theme-gradient: linear-gradient(135deg, #06b6d4, #8b5cf6, #ec4899);
  --theme-glow-1: radial-gradient(circle, #8b5cf6, #ec4899);
  --theme-glow-2: radial-gradient(circle, #06b6d4, #3b82f6);

  --cuisine-chinese: #ef4444;
  --cuisine-european: #3b82f6;
  --cuisine-indian: #f59e0b;
  --cuisine-korean: #ec4899;
  --cuisine-middle-eastern: #eab308;
  --cuisine-thai: #10b981;
  --cuisine-vietnamese: #06b6d4;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.35);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Ambient Background Canvas & Glow */
#ambientCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

#confettiCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99999;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
  transition: background var(--transition-smooth);
}
.glow-top-left {
  width: 500px;
  height: 500px;
  background: var(--theme-glow-1);
  top: -150px;
  left: -150px;
}
.glow-bottom-right {
  width: 600px;
  height: 600px;
  background: var(--theme-glow-2);
  bottom: -200px;
  right: -200px;
}
.glow-center {
  width: 450px;
  height: 450px;
  background: var(--theme-glow-1);
  top: 40%;
  left: 40%;
  opacity: 0.08;
}

/* App Container */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--theme-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.brand-title {
  font-size: 1.6rem;
  line-height: 1.1;
  font-weight: 800;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.header-stats {
  display: flex;
  align-items: center;
}

.badge-stat {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  font-weight: 700;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.btn-highlight {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.btn-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-icon {
  padding: 0.65rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.btn-icon:hover {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
}
.btn-icon.active {
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}
.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Controls Panel */
.controls-panel {
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.search-box-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.search-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--text-muted);
  pointer-events: none;
}

#searchInput {
  width: 100%;
  padding: 0.9rem 3rem 0.9rem 3.25rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-normal);
}

#searchInput:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
  background: #192339;
}

.clear-btn {
  position: absolute;
  right: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.clear-btn:hover {
  color: var(--text-primary);
}

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

.styled-select {
  padding: 0.85rem 1.25rem;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.styled-select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

/* Cuisine Tabs */
.cuisine-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.cuisine-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-normal);
}

.cuisine-tab:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
}

.cuisine-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.25));
  color: #fbbf24;
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.tab-count {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.cuisine-tab.active .tab-count {
  background: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

/* Quick Tags */
.quick-tags {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-tags-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 0.25rem;
}

.tag-btn {
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tag-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.tag-btn.active {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  border-color: var(--accent-gold);
}

/* Results Header */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.5rem;
}

.results-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.active-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fde68a;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}
.chip-remove {
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
}
.chip-remove:hover {
  color: #ef4444;
}

.results-view-mode {
  display: flex;
  gap: 0.35rem;
}

.view-btn {
  padding: 0.45rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-btn.active {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
}

/* Recipe Card Grid */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.recipe-grid.list-view {
  grid-template-columns: 1fr;
}

/* Recipe Card with Dynamic Imagery */
.recipe-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.recipe-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: var(--shadow-md), 0 0 25px rgba(245, 158, 11, 0.2);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 175px;
  overflow: hidden;
  background: #1e293b;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.recipe-card:hover .card-img {
  transform: scale(1.06);
}

.card-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.card-badges-floating {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: flex;
  gap: 0.4rem;
  z-index: 2;
  flex-wrap: wrap;
}

.card-fav-floating {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.card-fav-floating:hover, .card-fav-floating.active {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  transform: scale(1.1);
}

.card-prep-tag {
  position: absolute;
  bottom: 0.75rem;
  right: 0.85rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-african { background: rgba(234, 88, 12, 0.2); color: #fdba74; border: 1px solid rgba(234, 88, 12, 0.4); }
.badge-american { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.badge-chinese { background: rgba(220, 38, 38, 0.2); color: #fca5a5; border: 1px solid rgba(220, 38, 38, 0.4); }
.badge-european { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.4); }
.badge-indian { background: rgba(245, 158, 11, 0.2); color: #fde68a; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-korean { background: rgba(236, 72, 153, 0.2); color: #fbcfe8; border: 1px solid rgba(236, 72, 153, 0.4); }
.badge-middle-eastern { background: rgba(234, 179, 8, 0.2); color: #fef08a; border: 1px solid rgba(234, 179, 8, 0.4); }
.badge-south-american { background: rgba(16, 185, 129, 0.2); color: #86efac; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-thai { background: rgba(20, 184, 166, 0.2); color: #99f6e4; border: 1px solid rgba(20, 184, 166, 0.4); }
.badge-vietnamese { background: rgba(6, 182, 212, 0.2); color: #a5f3fc; border: 1px solid rgba(6, 182, 212, 0.4); }

.badge-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  text-transform: none;
  font-weight: 500;
}

.badge-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-title-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.card-title-link:hover {
  color: var(--accent-gold);
}

.card-description-text {
  font-size: 0.86rem;
  font-style: italic;
  color: #cbd5e1;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  border-left: 2px solid var(--accent-gold);
  padding-left: 0.6rem;
  margin: 0.2rem 0;
}

.modal-restaurant-desc-card {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 1rem 2rem 0.5rem 2rem;
  position: relative;
}

.modal-restaurant-desc-card .desc-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  margin-bottom: 0.35rem;
}

.modal-dish-description {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #f1f5f9;
  font-style: italic;
  margin: 0;
}

.card-ingredients-preview {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding: 0.9rem 1.5rem;
  background: rgba(15, 23, 42, 0.5);
}

.card-steps-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-view-btn {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.card-view-btn:hover {
  background: var(--accent-gold);
  color: #0f172a;
  border-color: var(--accent-gold);
}

/* List View Variant */
.recipe-grid.list-view .recipe-card {
  flex-direction: row;
}
.recipe-grid.list-view .card-img-wrapper {
  width: 260px;
  height: auto;
  flex-shrink: 0;
}
.recipe-grid.list-view .card-footer {
  border-top: none;
  border-left: 1px solid var(--border-subtle);
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-surface-glass);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-xl);
  margin: 2rem 0;
}
.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.empty-state h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Pagination Bar */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.pagination-btn {
  padding: 0.6rem 1.25rem;
}
.page-numbers {
  display: flex;
  gap: 0.35rem;
}
.page-num-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.page-num-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}
.page-num-btn.active {
  background: var(--accent-gold);
  color: #0f172a;
  border-color: var(--accent-gold);
  font-weight: 700;
}

/* ==========================================================================
   MODAL - RECIPE DETAIL & PREPARATION INSTRUCTIONS
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-card {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.15);
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transform: scale(0.96) translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all var(--transition-fast);
}
.modal-close-btn:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.modal-header {
  position: relative;
  padding: 2.25rem 2.5rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background-size: cover;
  background-position: center;
}

.modal-header-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82) 0%, rgba(15, 23, 42, 0.96) 100%);
  z-index: 1;
}

.modal-header-content {
  position: relative;
  z-index: 2;
}

.modal-badges {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.modal-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.scaler-control {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.75rem;
  flex-wrap: wrap;
}
.scaler-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}
.scaler-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: #334155;
  border: none;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.scaler-btn:hover {
  background: var(--accent-gold);
  color: #0f172a;
}
.scaler-val {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-gold);
  min-width: 20px;
  text-align: center;
}
.scaler-presets {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.4rem;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.scaler-preset-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.scaler-preset-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--cyan);
  color: #fff;
}
.scaler-preset-pill.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(236, 72, 153, 0.3));
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

/* Metric / Imperial Unit Toggle Switch */
.unit-toggle-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 0.2rem 0.3rem;
  cursor: pointer;
  gap: 0.2rem;
  transition: all 0.2s;
}
.unit-toggle-pill:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}
.unit-opt {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 14px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.unit-opt.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.modal-actions-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Modal Body Layout */
.modal-body {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem 2rem 2.5rem;
  gap: 1.5rem;
  flex: 1;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 2rem;
  align-items: start;
}

.modal-left-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

@media (max-width: 960px) {
  .modal-content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.section-title-row h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
}
.prep-counter {
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-weight: 600;
  font-family: var(--font-mono);
}

.progress-container {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  transition: width 0.3s ease;
}
.progress-bar-steps {
  background: linear-gradient(90deg, #f59e0b, #f97316);
}

/* Ingredients Checklist */
.ingredients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ingredient-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ingredient-item:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}

.ingredient-item.checked {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.ingredient-item.checked .ingredient-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.ingredient-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-emerald);
  cursor: pointer;
}

.ingredient-text {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text-primary);
}

/* Step-by-Step Instructions */
.instructions-steps-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.25rem;
  transition: all var(--transition-normal);
  position: relative;
}

.step-card:hover {
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(30, 41, 59, 0.7);
}

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

.step-number-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--accent-gold);
  font-weight: 800;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.step-card.completed .step-number-badge {
  background: var(--accent-emerald);
  color: #fff;
  border-color: var(--accent-emerald);
}

.step-content {
  flex: 1;
}

.step-phase-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.step-text {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.55;
}

.step-checkbox-btn {
  align-self: center;
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.step-checkbox-btn:hover {
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}
.step-card.completed .step-checkbox-btn {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

/* Kitchen Timer Panel */
.kitchen-timer-panel {
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.timer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text-primary);
}
.timer-countdown {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
}

.timer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.timer-presets {
  display: flex;
  gap: 0.4rem;
}
.timer-preset-btn {
  padding: 0.35rem 0.65rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.timer-preset-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}
.timer-preset-btn.active {
  background: var(--accent-gold);
  color: #0f172a;
  border-color: var(--accent-gold);
}

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

/* ==========================================================================
   COOKING MODE (FULLSCREEN INTERFACE)
   ========================================================================== */

.cooking-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #090d16;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.cooking-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cooking-container {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.cooking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.cook-dish-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  text-align: center;
}

.cook-step-indicator {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.cook-content-card {
  background: var(--bg-surface);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-xl);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cook-phase-badge {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-orange));
  color: #0f172a;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.08em;
}

.cook-step-text {
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 500;
}

.cook-ingredients-box {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
}
.cook-ingredients-box h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.cook-ingredients-box ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: square;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   DELUXE JAZZ-UP EXTENSIONS: HERO, PANTRY, ROULETTE, VOICE, SOUND & FILTERS
   ========================================================================== */

/* Theme & Header Controls */
.theme-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.theme-dropdown-select {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-normal);
}
.theme-dropdown-select:hover, .theme-dropdown-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px var(--border-glow);
}

.btn-pantry {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  position: relative;
}
.btn-pantry:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35), rgba(6, 182, 212, 0.35));
  border-color: #10b981;
  color: #fff;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.35);
}
.pantry-badge-count {
  background: #10b981;
  color: #061a14;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  margin-left: 0.25rem;
}

.sound-toggle-btn {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sound-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-gold);
}
.sound-toggle-btn.muted {
  opacity: 0.45;
}

/* Hero Spotlight Section */
.hero-spotlight-section {
  position: relative;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.4);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  transition: border-color var(--transition-normal);
}
.hero-spotlight-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--theme-gradient);
}
.hero-spotlight-section:hover {
  border-color: var(--border-glow);
}

.hero-spotlight-content {
  padding: 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  z-index: 2;
}

.hero-spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}
.hero-spotlight-tag .sparkle-icon {
  animation: rotateSparkle 4s linear infinite;
}
@keyframes rotateSparkle {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

.hero-spotlight-title {
  font-size: 2.2rem;
  line-height: 1.15;
  color: #fff;
  font-weight: 800;
}

.hero-spotlight-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.hero-spotlight-media {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background: #111827;
}
.hero-spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-spotlight-section:hover .hero-spotlight-img {
  transform: scale(1.05);
}
.hero-media-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--bg-surface) 0%, transparent 40%, rgba(0,0,0,0.4) 100%);
}

/* ==========================================================================
   WHAT'S NEW SHOWCASE SECTION (DAILY 10 UPLOADED RECIPES)
   ========================================================================== */
.badge-mini-glow {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  margin-left: 0.2rem;
}

.whats-new-section {
  position: relative;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: border-color var(--transition-normal);
}
.whats-new-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b 0%, #ec4899 50%, #3b82f6 100%);
}
.whats-new-section:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.whats-new-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.whats-new-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.whats-new-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  width: fit-content;
}

.whats-new-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.whats-new-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
}

.whats-new-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-ghost-sm {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
}
.btn-ghost-sm:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-gold);
  color: #fbbf24;
}

.whats-new-scroll-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.whats-new-scroll-btn:hover {
  background: var(--accent-gold);
  color: #0f172a;
  border-color: var(--accent-gold);
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.whats-new-rail-container {
  position: relative;
  width: 100%;
}

.whats-new-rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.5rem 0.25rem 1rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.whats-new-card {
  flex: 0 0 310px;
  max-width: 310px;
  scroll-snap-align: start;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.35s ease;
  cursor: pointer;
}
.whats-new-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-gold);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.2);
}

.whats-new-card-media {
  position: relative;
  height: 175px;
  overflow: hidden;
  background: #1e293b;
}

.whats-new-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.whats-new-card:hover .whats-new-card-img {
  transform: scale(1.08);
}

.whats-new-media-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.95) 100%);
}

.whats-new-arrival-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.whats-new-fav-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 5;
}
.whats-new-fav-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}
.whats-new-fav-btn.active {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #ef4444;
}

.whats-new-time-badge {
  position: absolute;
  bottom: 0.6rem;
  left: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f1f5f9;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.whats-new-card-body {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.whats-new-card-cuisine {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-gold);
}

.whats-new-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.whats-new-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.whats-new-card-footer {
  padding: 0.75rem 1.25rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.whats-new-card-footer .btn-cook {
  flex: 1;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #0f172a;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.whats-new-card-footer .btn-cook:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.whats-new-card-footer .btn-view {
  flex: 1;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.whats-new-card-footer .btn-view:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.vibe-chip-new {
  background: rgba(245, 158, 11, 0.15) !important;
  border-color: rgba(245, 158, 11, 0.4) !important;
  color: #fbbf24 !important;
  font-weight: 700 !important;
}
.vibe-chip-new:hover, .vibe-chip-new.active {
  background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.5) !important;
}

@media (max-width: 768px) {
  .whats-new-card {
    flex: 0 0 270px;
    max-width: 270px;
  }
  .whats-new-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Dietary & Vibe Filter Buttons */
.vibe-filters-wrapper {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}
.vibe-filter-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.vibe-chip {
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.vibe-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}
.vibe-chip.active {
  background: var(--theme-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

/* 3D Card Hover & Pantry Match Badges */
.recipe-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.3s ease;
  position: relative;
}
.recipe-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0,0,0,0.5);
  border-color: var(--border-glow);
}

.card-pantry-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.card-pantry-badge.match-full {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  border: 1px solid #34d399;
}
.card-pantry-badge.match-partial {
  background: rgba(245, 158, 11, 0.9);
  color: #1e1b2e;
  border: 1px solid #fde68a;
}

/* PANTRY CHEF MODAL / DRAWER */
.pantry-modal-card {
  max-width: 780px;
  width: 92%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.pantry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}
.pantry-title-group h2 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pantry-title-group p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.pantry-input-row {
  display: flex;
  gap: 0.75rem;
}
.pantry-input-row input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.pantry-input-row input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.pantry-selected-container {
  background: var(--bg-surface-elevated);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  min-height: 60px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.pantry-empty-tip {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-style: italic;
}
.pantry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(6, 182, 212, 0.25));
  border: 1px solid #10b981;
  color: #ecfdf5;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
}
.pantry-pill .remove-ing-btn {
  cursor: pointer;
  opacity: 0.7;
  font-size: 1rem;
  line-height: 1;
}
.pantry-pill .remove-ing-btn:hover {
  opacity: 1;
  color: #ef4444;
}

.pantry-categories-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pantry-category-section h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.pantry-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.pantry-preset-chip {
  padding: 0.35rem 0.75rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pantry-preset-chip:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
}
.pantry-preset-chip.selected {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

.pantry-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

/* CULINARY ROULETTE MODAL */
.roulette-modal-card {
  max-width: 540px;
  width: 90%;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 60px rgba(245, 158, 11, 0.3), var(--shadow-lg);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}
.roulette-slot-box {
  width: 100%;
  height: 120px;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.roulette-slot-box:hover:not(.spinning) {
  border-color: #fbbf24;
  transform: scale(1.02);
}
.roulette-slot-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  padding: 0 1rem;
  transition: transform 0.1s linear;
}
.roulette-slot-box.spinning .roulette-slot-text {
  animation: rouletteSpin 0.15s infinite;
}
@keyframes rouletteSpin {
  0% { transform: translateY(-30px); opacity: 0.3; }
  50% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(30px); opacity: 0.3; }
}

/* VOICE ASSISTANT IN COOKING MODE */
.cook-voice-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.cook-voice-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.voice-wave-anim {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.voice-wave-bar {
  width: 3px;
  height: 4px;
  background: var(--accent-gold);
  border-radius: 2px;
  transition: height 0.1s ease;
}
.voice-wave-anim.active .voice-wave-bar:nth-child(1) { animation: wave 0.6s infinite 0.1s; }
.voice-wave-anim.active .voice-wave-bar:nth-child(2) { animation: wave 0.6s infinite 0.2s; }
.voice-wave-anim.active .voice-wave-bar:nth-child(3) { animation: wave 0.6s infinite 0.3s; }
.voice-wave-anim.active .voice-wave-bar:nth-child(4) { animation: wave 0.6s infinite 0.15s; }
.voice-wave-anim.active .voice-wave-bar:nth-child(5) { animation: wave 0.6s infinite 0.25s; }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}

.cook-keyboard-hints {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}
.kbd-key {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Print Stylesheet */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .app-header, .controls-panel, .results-header, .recipe-grid, .pagination-bar, .modal-close-btn, .modal-toolbar, .kitchen-timer-panel, .glow-orb {
    display: none !important;
  }
  .modal-overlay {
    position: static !important;
    background: none !important;
    padding: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .modal-card {
    box-shadow: none !important;
    border: none !important;
    max-height: none !important;
    width: 100% !important;
  }
  .modal-body {
    display: block !important;
    padding: 0 !important;
  }
  .ingredient-item, .step-card {
    background: none !important;
    border: 1px solid #ddd !important;
    color: #000 !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .modal-body {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .search-box-wrapper {
    grid-template-columns: 1fr;
  }
  .sort-filter-dropdowns {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .app-container {
    padding: 1rem 1rem 3rem;
  }
  .app-header {
    flex-direction: column;
    align-items: stretch;
  }
  .header-actions {
    justify-content: space-between;
  }
  .recipe-grid {
    grid-template-columns: 1fr;
  }
  .modal-card {
    max-height: 95vh;
  }
  .modal-header, .modal-body {
    padding: 1.25rem;
  }
  .cook-content-card {
    padding: 1.5rem;
  }
  .cook-step-text {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   AI SOUS-CHEF CHATBOT ("CHEF AUGUSTE")
   ========================================================================== */

.chef-chat-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(24, 28, 42, 0.92) 0%, rgba(30, 36, 56, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 0.65rem 1.15rem 0.65rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: all var(--transition-normal);
  user-select: none;
}

.chef-chat-toggle:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #fbbf24;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.7), 0 0 35px rgba(245, 158, 11, 0.45);
}

.chef-toggle-icon {
  font-size: 1.6rem;
  background: rgba(245, 158, 11, 0.15);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.chef-toggle-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.chef-toggle-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.chef-toggle-subtitle {
  font-size: 0.75rem;
  color: var(--accent-gold);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chef-status-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
}

.chef-status-dot.online {
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.chef-badge-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: var(--accent-gold);
  border: 2px solid var(--bg-surface);
  border-radius: 50%;
  animation: pulseGold 2.5s infinite;
}

@keyframes pulseGold {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* CHAT WINDOW */
.chef-chat-window {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 450px;
  max-width: calc(100vw - 2rem);
  height: 650px;
  max-height: calc(100vh - 4rem);
  z-index: 9995;
  background: rgba(15, 20, 32, 0.96);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(245, 158, 11, 0.2);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpChat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.chef-chat-header {
  padding: 1rem 1.25rem;
  background: rgba(22, 28, 45, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chef-chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chef-avatar {
  font-size: 1.6rem;
  width: 40px;
  height: 40px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chef-header-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.chef-header-status {
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.chef-header-actions {
  display: flex;
  gap: 0.4rem;
}

.chef-header-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.chef-header-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.chef-header-btn.active {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-gold);
  border-color: rgba(245, 158, 11, 0.4);
}

/* ACTIVE CONTEXT BANNER */
.chef-active-context {
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #fef3c7;
}

.chef-active-context strong {
  color: var(--accent-gold);
}

.context-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.3rem;
}

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

/* MESSAGES CONTAINER */
.chef-chat-messages {
  flex: 1;
  padding: 1.25rem 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  scroll-behavior: smooth;
}

.chef-msg-wrapper {
  display: flex;
  gap: 0.65rem;
  max-width: 90%;
  animation: fadeInMsg 0.25s ease-out;
}

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

.chef-msg-wrapper.chef {
  align-self: flex-start;
}

.chef-msg-wrapper.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chef-msg-avatar {
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.chef-msg-bubble {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-primary);
  word-break: break-word;
}

.chef-msg-wrapper.chef .chef-msg-bubble {
  background: rgba(26, 32, 50, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top-left-radius: 4px;
}

.chef-msg-wrapper.user .chef-msg-bubble {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  color: #0b0f19;
  font-weight: 500;
  border-top-right-radius: 4px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25);
}

.chef-msg-bubble p {
  margin: 0 0 0.5rem 0;
}

.chef-msg-bubble p:last-child {
  margin-bottom: 0;
}

/* EMBEDDED RECIPE CARD INSIDE CHAT */
.chef-recipe-embed {
  margin-top: 0.75rem;
  background: rgba(15, 20, 32, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.chef-recipe-embed:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.chef-embed-img-wrap {
  position: relative;
  height: 110px;
  width: 100%;
  overflow: hidden;
}

.chef-embed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chef-embed-body {
  padding: 0.75rem 0.85rem;
}

.chef-embed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.chef-embed-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.4rem 0;
  line-height: 1.3;
}

.chef-embed-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.chef-embed-btn {
  flex: 1;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.chef-embed-btn.primary {
  background: var(--accent-gold);
  color: #000;
}

.chef-embed-btn.primary:hover {
  background: #fbbf24;
}

.chef-embed-btn.highlight {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.chef-embed-btn.highlight:hover {
  background: rgba(16, 185, 129, 0.3);
}

/* TYPING INDICATOR */
.chef-typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.5rem 0.75rem;
}

.chef-typing-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.chef-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.chef-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* SUGGESTIONS CONTAINER */
.chef-suggestions-container {
  padding: 0.4rem 0.75rem 0.6rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.chef-suggestions-container::-webkit-scrollbar {
  display: none;
}

.chef-suggestion-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chef-suggestion-pill:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.5);
  color: #fff;
  transform: translateY(-1px);
}

/* INTERACTIVE FOLLOW-UP CHIPS IN CHAT BUBBLES */
.chef-followup-container {
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.chef-followup-title {
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  margin-bottom: 0.2rem;
}

.chef-followup-btn {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #cffafe;
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.chef-followup-btn:hover {
  background: rgba(6, 182, 212, 0.22);
  border-color: var(--accent-gold);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

/* CHAT INPUT FORM */
.chef-chat-form {
  padding: 0.75rem 1rem;
  background: rgba(18, 23, 37, 0.95);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chef-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 0.65rem 0.9rem;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.chef-chat-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.chef-send-btn {
  background: var(--accent-gold);
  color: #000;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.chef-send-btn:hover {
  background: #fbbf24;
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .chef-chat-toggle {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.5rem 0.85rem 0.5rem 0.65rem;
  }
  .chef-chat-window {
    bottom: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }
}

/* ==========================================================================
   APP FOOTER & COPYRIGHT
   ========================================================================== */
.app-footer {
  margin-top: 4rem;
  padding: 2.5rem 1.5rem 2rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.app-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-meta {
  display: flex;
  align-items: center;
}

.footer-copyright {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ==========================================================================
   SHOPPING LIST SYSTEM & MODAL (TOKYO CYBER LUXURY)
   ========================================================================== */

/* Quick Add Button on Ingredient List Rows */
.ingredient-add-cart-btn {
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
  user-select: none;
}

.ingredient-add-cart-btn:hover {
  background: rgba(6, 182, 212, 0.28);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.ingredient-add-cart-btn:active {
  transform: translateY(0) scale(0.96);
}

.ingredient-add-cart-btn.in-list {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.25);
}

.ingredient-add-cart-btn.in-list:hover {
  background: rgba(16, 185, 129, 0.3);
  color: #fff;
}

/* Recipe Shopping Assistant Card (Inside Recipe Modal & Dish Page) */
.recipe-shopping-card {
  margin-top: 1.25rem;
  background: linear-gradient(135deg, rgba(20, 14, 38, 0.85) 0%, rgba(30, 20, 56, 0.85) 100%);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(6, 182, 212, 0.12);
}

.recipe-shopping-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.recipe-shopping-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.recipe-shopping-actions {
  display: flex;
  gap: 0.6rem;
}

.recipe-custom-item-form {
  display: flex;
  gap: 0.4rem;
}

.recipe-custom-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.82rem;
  padding: 0.4rem 0.65rem;
  outline: none;
  transition: all var(--transition-fast);
}

.recipe-custom-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.recipe-custom-input::placeholder {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Chat Embed Shopping Button */
.chef-embed-btn.secondary {
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--accent-cyan);
}

.chef-embed-btn.secondary:hover {
  background: rgba(6, 182, 212, 0.28);
  color: #fff;
  border-color: var(--accent-cyan);
}

.chef-embed-btn.secondary.active {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #34d399;
}

/* Shopping Modal Card */
.shopping-modal-card {
  max-width: 680px;
  width: 92%;
  max-height: 88vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 45px rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.94) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Shopping Modal Header */
.shopping-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.shopping-header-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.shopping-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.shopping-modal-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.shopping-modal-subheading {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0.15rem 0 0;
}

.shopping-summary-stats {
  display: flex;
  gap: 0.5rem;
}

.shopping-stat-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.shopping-stat-pill.highlight {
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* Quick Add Bar */
.shopping-quick-add-bar {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-surface-elevated);
  padding: 0.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.shopping-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem;
  outline: none;
}

.shopping-input::placeholder {
  color: var(--text-muted);
}

.shopping-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.82rem;
  padding: 0.4rem 0.6rem;
  outline: none;
  cursor: pointer;
}

.shopping-select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.shopping-add-btn {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
}

/* Category Filter Tabs */
.shopping-category-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.shopping-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.shopping-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.shopping-tab.active {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

/* Scroll Area & Groups */
.shopping-list-scroll-area {
  flex: 1;
  overflow-y: auto;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-right: 0.35rem;
}

.shopping-category-group {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.shopping-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.shopping-category-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.01em;
}

.shopping-category-count {
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
}

.shopping-items-list {
  display: flex;
  flex-direction: column;
}

/* Shopping Item Row */
.shopping-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all var(--transition-fast);
  gap: 0.75rem;
}

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

.shopping-item-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.shopping-item-row.completed {
  opacity: 0.55;
  background: rgba(0, 0, 0, 0.15);
}

.shopping-item-row.completed .shopping-item-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.shopping-item-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  cursor: pointer;
  user-select: none;
}

.shopping-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.shopping-custom-checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-glow);
  border-radius: 6px;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.shopping-checkbox:checked ~ .shopping-custom-checkmark {
  background: #10b981;
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.shopping-checkbox:checked ~ .shopping-custom-checkmark::after {
  content: '✓';
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.shopping-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.shopping-item-name {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  line-height: 1.35;
  transition: all var(--transition-fast);
}

.shopping-item-origin {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-style: italic;
}

.shopping-item-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.shopping-qty-stepper {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.shopping-qty-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shopping-qty-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.shopping-qty-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0 0.35rem;
  min-width: 18px;
  text-align: center;
}

.shopping-item-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.shopping-item-delete-btn:hover {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
}

/* Empty State */
.shopping-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
  gap: 0.75rem;
}

.shopping-empty-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.3));
}

.shopping-empty-state h3 {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin: 0;
}

.shopping-empty-state p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  max-width: 360px;
  line-height: 1.5;
  margin: 0;
}

/* Shopping Modal Footer */
.shopping-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.shopping-footer-left,
.shopping-footer-right {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn-danger-sm {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-danger-sm:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fff;
}

/* Shopping Toast Feedback */
.shopping-toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(19, 12, 36, 0.95);
  border: 1px solid var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(6, 182, 212, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* UK Supermarket Integration Hub Styling */
.supermarket-hub-card {
  background: linear-gradient(135deg, rgba(20, 15, 38, 0.85) 0%, rgba(30, 20, 50, 0.75) 100%);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), inset 0 0 15px rgba(6, 182, 212, 0.05);
  backdrop-filter: blur(12px);
}

.supermarket-hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.supermarket-hub-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.supermarket-flag {
  font-size: 1.1rem;
}

.supermarket-dispatch-btn {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  padding: 0.35rem 0.85rem !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35);
  border: none !important;
  cursor: pointer;
  transition: all var(--transition-fast) !important;
}

.supermarket-dispatch-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
}

.supermarket-selector-pills {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(6, 182, 212, 0.3) transparent;
}

.supermarket-selector-pills::-webkit-scrollbar {
  height: 4px;
}

.supermarket-selector-pills::-webkit-scrollbar-thumb {
  background: rgba(6, 182, 212, 0.3);
  border-radius: 4px;
}

.supermarket-pill {
  background: rgba(15, 10, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.supermarket-pill:hover {
  background: rgba(30, 20, 55, 0.9);
  color: #fff;
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-1px);
}

.supermarket-pill.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(217, 70, 239, 0.2) 100%);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.35);
}

.store-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.tesco-dot { background: #00539f; box-shadow: 0 0 6px #00539f; }
.sainsburys-dot { background: #e05a00; box-shadow: 0 0 6px #e05a00; }
.asda-dot { background: #78be20; box-shadow: 0 0 6px #78be20; }
.morrisons-dot { background: #ffbb00; box-shadow: 0 0 6px #ffbb00; }
.waitrose-dot { background: #10b981; box-shadow: 0 0 6px #10b981; }
.ocado-dot { background: #d946ef; box-shadow: 0 0 6px #d946ef; }
.aldi-dot { background: #06b6d4; box-shadow: 0 0 6px #06b6d4; }
.ms-dot { background: #eab308; box-shadow: 0 0 6px #eab308; }

/* Per-Item Supermarket Search Action Button */
.supermarket-item-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1;
}

.supermarket-item-store-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
  transform: translateY(-1px);
}

.supermarket-item-store-btn svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  opacity: 0.8;
}

.supermarket-quick-buy-btn {
  background: rgba(6, 182, 212, 0.12) !important;
  border: 1px solid rgba(6, 182, 212, 0.35) !important;
  color: var(--accent-cyan) !important;
  font-weight: 600 !important;
}

.supermarket-quick-buy-btn:hover {
  background: rgba(6, 182, 212, 0.25) !important;
  border-color: var(--accent-cyan) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35);
}

/* Mobile Responsiveness for Shopping Modal */
@media (max-width: 640px) {
  .shopping-modal-card {
    padding: 1.25rem;
    max-height: 94vh;
    gap: 1rem;
  }
  .shopping-quick-add-bar {
    flex-direction: column;
  }
  .shopping-select {
    width: 100%;
  }
  .shopping-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .shopping-footer-left,
  .shopping-footer-right {
    justify-content: space-between;
    width: 100%;
  }
  .supermarket-hub-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   7-DAY WEEKLY MEAL PLANNER & QUICK ADD POPOVER (TOKYO CYBER)
   ========================================================================== */

.meal-planner-modal-card {
  max-width: 1280px;
  width: 95%;
  max-height: 92vh;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(6, 182, 212, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
}

.planner-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 1.5rem;
  flex-wrap: wrap;
}

.planner-title-group h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.planner-title-group p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.planner-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Generator Toolbar */
.planner-generator-toolbar {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
}

.generator-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.generator-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.planner-gen-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.planner-gen-btn:hover {
  background: rgba(6, 182, 212, 0.18);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

/* Mobile Day Tabs (hidden on large screens) */
.planner-day-tabs {
  display: none;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.planner-day-tab {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.planner-day-tab.active {
  background: var(--theme-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}

/* 7-Day Calendar Grid */
.planner-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: auto;
  padding: 0.25rem 0.15rem 0.5rem;
  flex: 1;
  min-height: 420px;
}

.planner-day-column {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.planner-day-column:hover {
  border-color: rgba(6, 182, 212, 0.3);
}

.planner-day-column.is-today {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.2);
}

.planner-day-head {
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.planner-day-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.planner-day-column.is-today .planner-day-title {
  color: var(--accent-cyan);
}

.planner-day-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.planner-day-slots {
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

/* Individual Meal Slot Card */
.planner-slot-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.planner-slot-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.planner-slot-card {
  position: relative;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.planner-slot-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), 0 0 10px rgba(245, 158, 11, 0.15);
}

.planner-slot-thumb {
  position: relative;
  height: 64px;
  width: 100%;
  overflow: hidden;
  background: #1e293b;
}

.planner-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.planner-slot-card:hover .planner-slot-img {
  transform: scale(1.08);
}

.planner-slot-remove-btn {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 5;
}

.planner-slot-card:hover .planner-slot-remove-btn {
  opacity: 1;
}

.planner-slot-remove-btn:hover {
  background: #ef4444;
  color: #fff;
}

.planner-slot-info {
  padding: 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.planner-slot-title {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.planner-slot-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.planner-slot-cuisine {
  color: var(--accent-gold);
  font-weight: 600;
}

/* Empty Slot */
.planner-empty-slot {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.015);
}

.planner-empty-slot:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.planner-empty-slot svg {
  width: 13px;
  height: 13px;
}

/* Modal Footer for Meal Planner */
.planner-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  gap: 1rem;
  flex-wrap: wrap;
}

.planner-footer-left,
.planner-footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-sync-groceries {
  background: linear-gradient(135deg, #10b981, #06b6d4) !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4) !important;
}

.btn-sync-groceries:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.6) !important;
}

/* Quick Add to Plan Popover / Dialog */
.add-to-plan-dialog {
  max-width: 440px;
  width: 90%;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 0 50px rgba(6, 182, 212, 0.3), var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.plan-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.plan-popover-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.plan-popover-dish-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
}

.plan-popover-img {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.plan-popover-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}

.plan-popover-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-popover-cuisine {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.plan-picker-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-picker-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-pills-row,
.plan-day-select-pills,
.plan-slot-select-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.plan-picker-pill,
.plan-day-pill,
.plan-slot-pill {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.plan-picker-pill:hover,
.plan-day-pill:hover,
.plan-slot-pill:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.plan-picker-pill.active,
.plan-day-pill.active,
.plan-slot-pill.active {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

.plan-form-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.plan-popover-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
}

/* Card Button: Add to Plan */
.btn-card-plan {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-card-plan:hover {
  background: rgba(6, 182, 212, 0.22);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.35);
}

/* Print Styles for 7-Day Meal Plan */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .app-header, .controls-panel, .results-header, .recipe-grid, .pagination-bar, .modal-close-btn, .modal-toolbar, .kitchen-timer-panel, .glow-orb, .shopping-modal-card, .add-to-plan-dialog, .planner-generator-toolbar, .planner-header-actions, .planner-modal-footer, .planner-slot-remove-btn, .planner-empty-slot {
    display: none !important;
  }
  #mealPlannerModal {
    position: static !important;
    background: none !important;
    padding: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: block !important;
  }
  .meal-planner-modal-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    max-height: none !important;
    width: 100% !important;
    padding: 10px !important;
    background: #fff !important;
    color: #000 !important;
  }
  .planner-calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 8px !important;
    min-height: auto !important;
    overflow: visible !important;
  }
  .planner-day-column {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #000 !important;
  }
  .planner-day-head {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    border-bottom: 1px solid #cbd5e1 !important;
  }
  .planner-day-title {
    color: #0f172a !important;
  }
  .planner-slot-card {
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  .planner-slot-title {
    color: #0f172a !important;
  }
}

/* Responsiveness for Planner Modal */
@media (max-width: 1024px) {
  .planner-calendar-grid {
    grid-template-columns: repeat(7, minmax(130px, 1fr));
  }
}

}

/* ==========================================================================
   UK SUPERMARKET TROLLEY ASSISTANT & MULTI-MODE SHOPPING (TOKYO CYBER)
   ========================================================================== */

.supermarket-active-store-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--accent-cyan);
  margin-left: 0.5rem;
  vertical-align: middle;
}

.supermarket-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(245, 158, 11, 0.05) 100%);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 0.9rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #cbd5e1;
}

.supermarket-info-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
}

.supermarket-info-text strong {
  color: #fff;
}

.supermarket-actions-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.btn-trolley-assistant {
  flex: 1 1 240px;
  background: linear-gradient(135deg, #00f0ff 0%, #3b82f6 100%) !important;
  color: #050b14 !important;
  font-weight: 700 !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.35) !important;
  transition: all var(--transition-fast);
}

.btn-trolley-assistant:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 240, 255, 0.55) !important;
}

.btn-batch-tabs {
  background: rgba(168, 85, 247, 0.15) !important;
  border: 1px solid rgba(168, 85, 247, 0.4) !important;
  color: #e9d5ff !important;
  font-weight: 600 !important;
}

.btn-batch-tabs:hover {
  background: rgba(168, 85, 247, 0.28) !important;
  border-color: #c084fc !important;
  color: #fff !important;
}

.btn-multi-copy {
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  color: var(--accent-gold) !important;
  font-weight: 600 !important;
}

.btn-multi-copy:hover {
  background: rgba(245, 158, 11, 0.22) !important;
  border-color: #fbbf24 !important;
  color: #fff !important;
}

/* TROLLEY ASSISTANT MODAL (HUD) */
.trolley-assistant-modal-card {
  position: relative;
  width: 95%;
  max-width: 640px;
  background: linear-gradient(145deg, rgba(13, 17, 28, 0.98) 0%, rgba(20, 27, 45, 0.96) 100%);
  border: 1px solid rgba(0, 240, 255, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 240, 255, 0.18);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  color: #fff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.trolley-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trolley-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.trolley-store-icon {
  font-size: 2rem;
  line-height: 1;
}

.trolley-heading {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.trolley-subheading {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.trolley-step-counter-pill {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: var(--accent-cyan);
  white-space: nowrap;
}

.trolley-progress-wrapper {
  margin-bottom: 1.5rem;
}

.trolley-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.trolley-percent-text {
  color: var(--accent-cyan);
  font-weight: 700;
}

.trolley-progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trolley-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f0ff 0%, #3b82f6 50%, #10b981 100%);
  border-radius: 9999px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

/* Active Item Card inside Trolley HUD */
.trolley-active-item-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  margin-bottom: 1.25rem;
}

.trolley-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.trolley-item-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.trolley-item-category-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  white-space: nowrap;
}

.trolley-search-term-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(0, 240, 255, 0.35);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.trolley-search-term-box code {
  color: var(--accent-cyan);
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
}

.trolley-step-main-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-trolley-search-large {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00f0ff 0%, #0088ff 100%);
  color: #030712;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.4);
  transition: all var(--transition-fast);
}

.btn-trolley-search-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 240, 255, 0.6);
  filter: brightness(1.1);
}

.trolley-nav-button-row {
  display: flex;
  gap: 0.6rem;
}

.btn-trolley-added-next {
  flex: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  transition: all var(--transition-fast);
}

.btn-trolley-added-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  filter: brightness(1.1);
}

.btn-trolley-skip {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
  font-weight: 600;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-trolley-skip:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.btn-trolley-prev {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-weight: 600;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-trolley-prev:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Celebration Finish State */
.trolley-celebration-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  margin-bottom: 1.25rem;
}

.trolley-celebration-icon {
  font-size: 3.25rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  animation: bounce 1s infinite alternate;
}

.trolley-celebration-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5rem;
}

.trolley-celebration-text {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0 0 1.25rem;
}

.trolley-celebration-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.trolley-hud-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trolley-auto-open-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.trolley-auto-open-toggle input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.trolley-auto-open-toggle:hover {
  color: #e2e8f0;
}

/* ==============================================================================
   PWA INSTALL BUTTON & APP SHORTCUT STYLES
   ============================================================================== */
.pwa-install-btn {
  background: linear-gradient(135deg, #ff0055 0%, #ff5500 50%, #ffaa00 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 0 15px rgba(255, 85, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  animation: pulsePwaBtn 3s infinite ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.pwa-install-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 25px rgba(255, 85, 0, 0.75) !important;
}

@keyframes pulsePwaBtn {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255, 85, 0, 0.35);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 85, 0, 0.75), 0 0 8px rgba(0, 242, 254, 0.4);
  }
}

/* ==============================================================================
   PWA INSTALL GUIDE MODAL STYLES
   ============================================================================== */
.pwa-modal-card {
  position: relative;
  width: 92%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface-elevated, #141926);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-xl, 20px);
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-modal-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.pwa-modal-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.25rem;
}

.pwa-modal-subtitle {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}

.pwa-platform-badge-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.pwa-direct-install-box {
  background: rgba(255, 85, 0, 0.08);
  border: 1px solid rgba(255, 85, 0, 0.3);
  border-radius: var(--radius-lg, 14px);
  padding: 1rem;
}

.pwa-guide-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pwa-guide-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 14px);
  padding: 1.1rem;
}

.pwa-guide-heading {
  font-size: 0.96rem;
  font-weight: 700;
  color: #38bdf8;
  margin: 0 0 0.6rem;
}

.pwa-step-list {
  padding-left: 1.25rem;
  margin: 0;
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.pwa-step-list li {
  margin-bottom: 0.4rem;
}

.pwa-step-list li:last-child {
  margin-bottom: 0;
}

.pwa-https-notice-box {
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg, 14px);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.pwa-notice-icon {
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.pwa-notice-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #cbd5e1;
}

.pwa-modal-footer {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   DYNAMIC SERVING SCALER & METRIC / IMPERIAL TOGGLE
   ========================================================================== */
.scaler-control {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md, 8px);
}

.scaler-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
  margin-right: 0.15rem;
}

.scaler-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary, #f1f5f9);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast, 0.15s ease);
}

.scaler-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.06);
}

.scaler-val {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 700;
  font-size: 0.92rem;
  min-width: 18px;
  text-align: center;
  color: var(--accent-amber, #f59e0b);
}

.scaler-presets {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.35rem;
  padding-left: 0.4rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.scaler-preset-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #64748b);
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast, 0.15s ease);
}

.scaler-preset-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary, #f1f5f9);
}

.scaler-preset-pill.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
  border-color: rgba(245, 158, 11, 0.6);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

/* Unit System Toggle Pill (Metric vs Imperial) */
.unit-toggle-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.18rem;
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast, 0.15s ease);
  backdrop-filter: blur(8px);
}

.unit-toggle-pill:hover {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.unit-opt {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  transition: all var(--transition-fast, 0.15s ease);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.unit-opt.active {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #0b0e14;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 242, 254, 0.4);
}

/* ==========================================================================
   SMART NUTRITIONAL BREAKDOWN & MACRO CALCULATOR
   ========================================================================== */
.modal-nutrition-card,
.dish-nutrition-card {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg, 14px);
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.25rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.modal-nutrition-card::before,
.dish-nutrition-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff5500, #f59e0b, #10b981, #38bdf8, #818cf8);
}

.nutrition-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.nutrition-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nutrition-badge {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nutrition-serving-note {
  font-size: 0.78rem;
  color: var(--text-secondary, #94a3b8);
  font-weight: 500;
}

.nutrition-view-toggle {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  padding: 0.15rem;
}

.nutrition-view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted, #64748b);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-fast, 0.15s ease);
}

.nutrition-view-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.65rem;
}

@media (max-width: 768px) {
  .nutrition-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .nutrition-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.nutrition-stat-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md, 8px);
  padding: 0.6rem 0.45rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all var(--transition-fast, 0.15s ease);
  position: relative;
}

.nutrition-stat-pill:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.nutrition-stat-pill .macro-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.nutrition-stat-pill .macro-val {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.15rem;
}

.nutrition-stat-pill .macro-val small {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary, #94a3b8);
  margin-left: 0.15rem;
}

.nutrition-stat-pill .macro-ri {
  font-size: 0.66rem;
  color: var(--text-muted, #64748b);
  font-weight: 500;
}

/* Macro Category Colors */
.nutrition-stat-pill.cal {
  border-bottom: 2px solid #ff5500;
}
.nutrition-stat-pill.cal .macro-label,
.nutrition-stat-pill.cal .macro-val {
  color: #ff7733;
}

.nutrition-stat-pill.protein {
  border-bottom: 2px solid #10b981;
}
.nutrition-stat-pill.protein .macro-label,
.nutrition-stat-pill.protein .macro-val {
  color: #34d399;
}

.nutrition-stat-pill.carbs {
  border-bottom: 2px solid #38bdf8;
}
.nutrition-stat-pill.carbs .macro-label,
.nutrition-stat-pill.carbs .macro-val {
  color: #38bdf8;
}

.nutrition-stat-pill.fat {
  border-bottom: 2px solid #f59e0b;
}
.nutrition-stat-pill.fat .macro-label,
.nutrition-stat-pill.fat .macro-val {
  color: #fbbf24;
}

.nutrition-stat-pill.fiber {
  border-bottom: 2px solid #a855f7;
}
.nutrition-stat-pill.fiber .macro-label,
.nutrition-stat-pill.fiber .macro-val {
  color: #c084fc;
}

.nutrition-stat-pill.sodium {
  border-bottom: 2px solid #64748b;
}
.nutrition-stat-pill.sodium .macro-label,
.nutrition-stat-pill.sodium .macro-val {
  color: #94a3b8;
}

/* ==========================================================================
   PHASE 1: HANDS-FREE VOICE SOUS CHEF & MULTI-TIMER FLOATING DOCK
   ========================================================================== */
.voice-cook-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-md, 14px);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.voice-status-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.voice-mic-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid var(--accent-cyan, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s;
}

.voice-mic-icon.listening {
  background: rgba(236, 72, 153, 0.25);
  border-color: #ec4899;
  box-shadow: 0 0 15px rgba(236, 72, 153, 0.6);
  animation: pulse 1.2s infinite;
}

.voice-status-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f1f5f9;
}

.voice-hint-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.voice-hint-chip {
  font-size: 0.72rem;
  font-family: var(--font-mono, monospace);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  color: #cbd5e1;
}

/* Inline Clickable Step Timer Badges */
.step-timer-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(239, 68, 68, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde047;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  cursor: pointer;
  margin: 0.3rem 0.2rem;
  vertical-align: middle;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-timer-trigger:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(239, 68, 68, 0.3));
  border-color: #f59e0b;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

/* Multi-Timer Floating Dock */
.multi-timer-dock {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.6rem;
  max-width: 320px;
  width: calc(100vw - 40px);
  pointer-events: none;
}

.floating-timer-card {
  pointer-events: auto;
  background: rgba(13, 17, 26, 0.95);
  border: 1px solid rgba(6, 182, 212, 0.4);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(6, 182, 212, 0.2);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s;
}

.floating-timer-card.alarm {
  border-color: #ef4444;
  background: rgba(35, 10, 15, 0.95);
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.7);
  animation: pulseAlarm 1s infinite alternate;
}

@keyframes pulseAlarm {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.timer-dock-info {
  flex: 1;
  min-width: 0;
}

.timer-dock-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.timer-dock-time {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  color: #38bdf8;
  letter-spacing: -0.02em;
}

.timer-dock-controls {
  display: flex;
  gap: 0.35rem;
}

.timer-dock-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.15s;
}

.timer-dock-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.timer-dock-btn.close:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* ==========================================================================
   PHASE 2: "WHAT'S IN MY FRIDGE?" SMART PANTRY MATCHER
   ========================================================================== */
.fridge-solver-card {
  background: var(--bg-surface, #130c24);
  border: 1px solid var(--border-subtle, rgba(139, 92, 246, 0.2));
  border-radius: var(--radius-lg, 20px);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md, 0 8px 24px rgba(0, 0, 0, 0.5));
  backdrop-filter: blur(16px);
}

.fridge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.fridge-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.fridge-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

.fridge-tag-input-wrap {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.fridge-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle, rgba(139, 92, 246, 0.2));
  border-radius: var(--radius-md, 14px);
  padding: 0.75rem 1.1rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}

.fridge-input:focus {
  border-color: var(--accent-cyan, #06b6d4);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
}

.fridge-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s;
}

.preset-chip:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan, #06b6d4);
  color: #fff;
}

.preset-chip.selected {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
  border-color: var(--accent-cyan, #06b6d4);
  color: #38bdf8;
  font-weight: 700;
}

.pantry-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
}

.pantry-match-badge.high {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34d399;
}

.pantry-match-badge.medium {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid #f59e0b;
  color: #fbbf24;
}

.pantry-missing-tag {
  font-size: 0.72rem;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

/* ==========================================================================
   PHASE 3: SOMMELIER DRINK PAIRINGS & ALLERGEN BADGES
   ========================================================================== */
.sommelier-card {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.25), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-lg, 20px);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.sommelier-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.sommelier-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #f3e8ff;
}

.sommelier-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
}

.sommelier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.sommelier-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.2s;
}

.sommelier-item:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

.sommelier-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c084fc;
}

.sommelier-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.sommelier-desc {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* Allergen & Dietary Safety Badges */
.allergen-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.allergen-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.allergen-badge.contains {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.allergen-badge.free {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

/* ==========================================================================
   PHASE 6: WHATSAPP / PREP SHEET SMART SHARING
   ========================================================================== */
.share-actions-group {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2bf074, #15a392);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-prep-sheet:hover {
  background: rgba(99, 102, 241, 0.28);
  border-color: #818cf8;
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================================================
   FEATURE 1: SNAP & COOK AI VISION SCANNER
   ========================================================================== */
.snap-cook-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full, 9999px);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.snap-cook-trigger-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(236, 72, 153, 0.55);
}

.snap-cook-modal-card {
  max-width: 580px;
  width: 92%;
  background: var(--bg-surface, #0f172a);
  border: 1px solid var(--border-glow, rgba(6, 182, 212, 0.3));
  border-radius: var(--radius-xl, 24px);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 50px rgba(236, 72, 153, 0.25);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.snap-dropzone-box {
  border: 2px dashed rgba(236, 72, 153, 0.4);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(236, 72, 153, 0.04);
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.snap-dropzone-box:hover, .snap-dropzone-box.dragover {
  border-color: #ec4899;
  background: rgba(236, 72, 153, 0.1);
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.3);
}

.snap-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ec4899, #06b6d4, transparent);
  box-shadow: 0 0 15px #ec4899;
  display: none;
  animation: scanLaser 1.5s infinite linear;
}

@keyframes scanLaser {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

/* ==========================================================================
   FEATURE 2: CONVERSATIONAL "HEY HAMISH" 2-WAY VOICE CHEF
   ========================================================================== */
.conversational-voice-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
}

.voice-wave-active-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.voice-wave-active-indicator span {
  width: 3px;
  background: #f59e0b;
  border-radius: 2px;
  animation: voiceBarPulse 0.8s infinite ease-in-out alternate;
}

.voice-wave-active-indicator span:nth-child(2) { animation-delay: 0.2s; height: 12px; }
.voice-wave-active-indicator span:nth-child(3) { animation-delay: 0.4s; height: 16px; }
.voice-wave-active-indicator span:nth-child(4) { animation-delay: 0.1s; height: 10px; }

@keyframes voiceBarPulse {
  0% { height: 4px; opacity: 0.4; }
  100% { height: 16px; opacity: 1; }
}

/* ==========================================================================
   FEATURE 3: 1-CLICK RECIPE REMIX & DIETARY ADAPTOR
   ========================================================================== */
.recipe-remix-section {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: var(--radius-lg, 18px);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.recipe-remix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.recipe-remix-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-cyan, #06b6d4);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.recipe-remix-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.remix-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary, #cbd5e1);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.remix-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.remix-pill.active.vegan {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #6ee7b7;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.35);
}

.remix-pill.active.keto {
  background: rgba(168, 85, 247, 0.25);
  border-color: #a855f7;
  color: #d8b4fe;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
}

.remix-pill.active.airfryer {
  background: rgba(245, 158, 11, 0.25);
  border-color: #f59e0b;
  color: #fde68a;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.35);
}

.remix-pill.active.mild {
  background: rgba(59, 130, 246, 0.25);
  border-color: #3b82f6;
  color: #93c5fd;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.35);
}

.remix-reset-btn {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: var(--text-muted, #94a3b8);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  cursor: pointer;
}

.remix-reset-btn:hover {
  border-color: #ef4444;
  color: #f87171;
}

/* ==========================================================================
   FEATURE 4: MOBILE QR KITCHEN HANDOFF
   ========================================================================== */
.qr-handoff-modal-card {
  max-width: 440px;
  width: 90%;
  background: var(--bg-surface, #0f172a);
  border: 1px solid var(--border-glow, rgba(6, 182, 212, 0.3));
  border-radius: var(--radius-xl, 24px);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(6, 182, 212, 0.3);
}

.qr-code-box {
  background: #ffffff;
  padding: 1rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   FEATURE 5: UK SUPERMARKET COST ESTIMATOR & BUDGET CRUNCH
   ========================================================================== */
.card-cost-badge {
  position: absolute;
  bottom: 0.65rem;
  right: 0.65rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.modal-cost-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.55rem 0.95rem;
  border-radius: 12px;
  font-size: 0.84rem;
  color: #a7f3d0;
  margin-top: 0.6rem;
}

.budget-crunch-pill {
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #34d399 !important;
}

.budget-crunch-pill.active {
  background: #10b981 !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5) !important;
}

/* ==========================================================================
   FEATURE 6: FULL-SCREEN TABLET KITCHEN HUD & TOUCHLESS SENSOR
   ========================================================================== */
.tablet-kitchen-hud {
  position: fixed;
  inset: 0;
  background: #090d16;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  padding: 2rem 3rem;
  overflow-y: auto;
}

.tablet-hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.tablet-step-hero-card {
  background: #131b2e;
  border: 2px solid var(--accent-cyan, #06b6d4);
  border-radius: 28px;
  padding: 3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(6, 182, 212, 0.2);
}

.tablet-step-text {
  font-size: 2.2rem;
  line-height: 1.4;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 2rem;
}

.tablet-controls-bar {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
}

.btn-tablet-large {
  min-height: 72px;
  font-size: 1.35rem;
  font-weight: 800;
  border-radius: 20px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.touchless-motion-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #38bdf8;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ==========================================================================
   SMART FRIDGE EXPIRY & RESCUE RADAR (ZERO FOOD WASTE)
   ========================================================================== */

/* Header Smart Fridge Button & Warning Badge */
.btn-smart-fridge {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 182, 212, 0.22) 100%) !important;
  border: 1px solid rgba(16, 185, 129, 0.5) !important;
  color: #6ee7b7 !important;
  font-weight: 700 !important;
  transition: all var(--transition-fast) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-smart-fridge:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.35) 0%, rgba(6, 182, 212, 0.4) 100%) !important;
  border-color: #34d399 !important;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.fridge-urgency-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 12px;
  animation: pulse-urgency 2s infinite;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

@keyframes pulse-urgency {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Rescue Radar Main Section */
.rescue-radar-section {
  background: linear-gradient(135deg, rgba(25, 18, 42, 0.85) 0%, rgba(18, 30, 48, 0.9) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 0 30px rgba(245, 158, 11, 0.06);
}

.rescue-radar-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.rescue-radar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.rescue-radar-title-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.rescue-radar-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(239, 68, 68, 0.25) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.rescue-radar-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rescue-urgency-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.12);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 600;
}

.rescue-radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  position: relative;
  z-index: 2;
}

.rescue-dish-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-medium);
  cursor: pointer;
  position: relative;
}

.rescue-dish-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: #f59e0b;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.3);
}

.rescue-dish-img-wrap {
  width: 100%;
  height: 140px;
  position: relative;
  overflow: hidden;
}

.rescue-dish-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rescue-dish-card:hover .rescue-dish-img {
  transform: scale(1.06);
}

.rescue-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.02em;
}

.rescue-dish-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.rescue-dish-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  margin: 0;
}

.rescue-matched-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.rescue-matched-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 8px;
}

/* SMART FRIDGE MODAL */
.smart-fridge-modal-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  width: 92%;
  max-width: 720px;
  max-height: 88vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(16, 185, 129, 0.15);
  position: relative;
}

.smart-fridge-add-bar {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}

.smart-fridge-input {
  flex: 2;
  min-width: 180px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.95rem;
  padding: 0.5rem 0.8rem;
  outline: none;
}

.smart-fridge-shelf-select {
  flex: 1;
  min-width: 140px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.5rem;
  outline: none;
}

.smart-fridge-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 0.3rem;
}

.smart-fridge-row {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  transition: all var(--transition-fast);
}

.smart-fridge-row:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

.smart-fridge-row.urgency-red {
  border-left: 4px solid #ef4444;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.12) 0%, rgba(30, 41, 59, 0.6) 100%);
}

.smart-fridge-row.urgency-yellow {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, rgba(30, 41, 59, 0.6) 100%);
}

.smart-fridge-row.urgency-green {
  border-left: 4px solid #10b981;
}

.fridge-item-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.fridge-item-icon {
  font-size: 1.4rem;
}

.fridge-item-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  margin: 0;
}

.fridge-item-meta {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  gap: 0.6rem;
  margin-top: 0.15rem;
}

.fridge-item-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-fridge-bump {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fridge-bump:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
}

.btn-fridge-del {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-fridge-del:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #fff;
}

/* ==========================================================================
   FEATURE 1: SNAP & COOK AI VISION SCANNER STYLES
   ========================================================================== */

.snap-cook-trigger-btn {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
  transition: all var(--transition-normal);
}

.snap-cook-trigger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(6, 182, 212, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
}

.snap-cook-modal-card {
  background: #0f172a;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(6, 182, 212, 0.25);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  padding: 1.8rem;
  gap: 1.2rem;
  transform: scale(0.96) translateY(20px);
  transition: transform var(--transition-smooth);
}

.modal-overlay.active .snap-cook-modal-card {
  transform: scale(1) translateY(0);
}

.snap-mode-tabs {
  display: flex;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.3rem;
  gap: 0.3rem;
}

.snap-mode-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.snap-mode-tab-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.3));
  color: #fff;
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.snap-dropzone-box {
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 2px dashed rgba(6, 182, 212, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.snap-dropzone-box:hover, .snap-dropzone-box.dragover {
  border-color: #06b6d4;
  background: rgba(6, 182, 212, 0.08);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.3);
}

.snap-laser-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #06b6d4, #a855f7, #ec4899, transparent);
  box-shadow: 0 0 15px #06b6d4, 0 0 30px #a855f7;
  z-index: 10;
  animation: snapScanLaser 1.8s ease-in-out infinite alternate;
}

@keyframes snapScanLaser {
  0% { top: 5%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 92%; opacity: 0.3; }
}

.snap-camera-view-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.snap-camera-video {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.snap-preview-img-container {
  width: 100%;
  max-height: 260px;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.snap-preview-img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.snap-results-card {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.snap-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: 160px;
  overflow-y: auto;
  padding: 0.2rem;
}

.snap-pill-chip {
  background: rgba(6, 182, 212, 0.18);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #e0f2fe;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.snap-pill-chip:hover {
  background: rgba(6, 182, 212, 0.3);
  border-color: #38bdf8;
}

.snap-pill-del {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.1rem;
}

.snap-pill-del:hover {
  color: #f87171;
}

.snap-add-row {
  display: flex;
  gap: 0.5rem;
}

.snap-add-input {
  flex: 1;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.85rem;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.snap-add-input:focus {
  border-color: #06b6d4;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}
