@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Heebo:wght@300;400;500;600;700&display=swap');

:root {
  /* Modern Luxury Sky Blue, Ocean Navy & Warm Sand Beige Palette */
  --bg-primary: #F8F6F0;       /* Soft Sand Beige Background */
  --bg-shell: #FFFFFF;         /* Pure White App Shell */
  
  --primary-navy: #0F172A;      /* Deep Modern Slate Navy */
  --primary-blue: #0284C7;      /* Rich Sky Blue */
  --primary-sky: #38BDF8;       /* Vibrant Light Sky Blue */
  --primary-hover: #0369A1;

  --accent-gold: #F59E0B;        /* Soft Warm Gold */
  --whatsapp-green: #25D366;     /* WhatsApp Green */

  --pastel-blue-bg: #F0F9FF;    /* Lightest Sky Tint */
  --pastel-blue-border: #E0F2FE;
  --warm-beige-bg: #F5F0E6;      /* Cream Sand */
  --warm-beige-border: #E6DFC5;

  --card-bg: #FFFFFF;
  --text-main: #1E293B;         /* Slate Dark */
  --text-muted: #64748B;        /* Muted Slate */
  --border-light: #F1F5F9;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-soft: 0 4px 18px rgba(2, 132, 199, 0.06);
  --shadow-card: 0 6px 18px rgba(15, 23, 42, 0.05);
  --shadow-hover: 0 10px 25px rgba(2, 132, 199, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

/* Mobile App Frame Shell */
.mobile-app-shell {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background-color: #FAFAFC;
  position: relative;
  box-shadow: 0 0 40px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 90px;
}

@media (max-width: 480px) {
  body {
    background-color: #FAFAFC;
  }
  .mobile-app-shell {
    max-width: 100%;
    box-shadow: none;
  }
}

/* Lock Screen / User Authentication Overlay */
.lock-screen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0F172A 0%, #0284C7 100%);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s ease;
}

.lock-screen-card {
  background: white;
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.lock-brand-icon {
  font-size: 2.2rem;
  background: var(--pastel-blue-bg);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  border: 1px solid var(--pastel-blue-border);
}

.lock-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.lock-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.auth-tabs {
  display: flex;
  background: var(--warm-beige-bg);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  border: 1px solid var(--warm-beige-border);
}

.auth-tab-btn {
  flex: 1;
  padding: 9px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: #786C5A;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: white;
  color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-weight: 700;
}

.lock-passcode-input {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: #FAFAFC;
  outline: none;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}

.lock-passcode-input:focus {
  border-color: var(--primary-blue);
  background: white;
}

.lock-error-msg {
  color: #EF4444;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: none;
}

/* Header & Banner - Ultra Clean Non-Overlapping Layout */
.app-header {
  background: linear-gradient(135deg, #0F172A 0%, #0284C7 100%);
  padding: 18px 16px 18px 16px;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.18);
  color: white;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
}

.header-cart-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cart-badge {
  background: var(--accent-gold);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 50%;
}

.brand {
  text-align: center;
  flex: 1;
}

.brand h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.brand-tagline {
  font-size: 0.7rem;
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: block;
}

.user-profile-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Search Box */
.search-container {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 12px 42px 12px 16px;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.92rem;
  color: var(--text-main);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  background: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

/* Category Bar & Selector Button */
.categories-bar-wrapper {
  display: flex;
  align-items: center;
  padding: 14px 16px 6px 16px;
  gap: 8px;
}

.categories-scroll {
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.categories-scroll::-webkit-scrollbar {
  display: none;
}

.category-pill {
  display: inline-block;
  padding: 7px 16px;
  margin-left: 6px;
  border-radius: var(--radius-pill);
  background: var(--warm-beige-bg);
  color: #574B39;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--warm-beige-border);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.category-pill.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.3);
}

.category-pill.favorites-pill {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FCD34D;
}

.category-pill.favorites-pill.active {
  background: var(--accent-gold);
  color: white;
  border-color: var(--accent-gold);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.35);
}

.manage-categories-pill {
  background: var(--pastel-blue-bg);
  color: var(--primary-blue);
  border: 1px solid var(--pastel-blue-border);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

/* Main Recipe Container */
.container {
  padding: 12px 14px;
  flex: 1;
}

.results-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}

/* 2-Column Responsive Grid Layout */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Recipe Card Design - Compact & User Friendly */
.recipe-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  border: 1px solid #F1F5F9;
  position: relative;
}

.recipe-card:active {
  transform: scale(0.97);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 125px;
  overflow: hidden;
  background: #F1F5F9;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Favorite Star Button Overlay on Recipe Card */
.favorite-star-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, color 0.2s, background 0.2s;
}

.favorite-star-btn.active {
  color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.98);
}

/* Quick Add to Cart Button on Card */
.card-cart-btn {
  position: absolute;
  top: 42px;
  left: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.85rem;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s, background 0.2s;
}

/* Author Badge on Recipe Card */
.recipe-author-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary-blue);
  background: var(--pastel-blue-bg);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  margin-top: 4px;
  width: fit-content;
  border: 1px solid var(--pastel-blue-border);
}

/* Badges CSS Scoped */
.card-image-wrapper .badge-category {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  color: var(--primary-navy);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  z-index: 5;
}

.card-image-wrapper .badge-difficulty {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 600;
  z-index: 5;
}

/* Detail Modal Tags Layout */
.detail-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  position: relative;
}

.detail-tags .badge-category,
.detail-tags .badge-difficulty {
  position: static !important;
  display: inline-block !important;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: none;
}

.detail-tags .badge-category {
  background: var(--warm-beige-bg);
  color: var(--primary-navy);
  border: 1px solid var(--warm-beige-border);
}

.diff-קל { background: #E0F2FE; color: #0284C7; }
.diff-בינוני { background: #FEF3C7; color: #D97706; }
.diff-למתקדמים { background: #FCE7F3; color: #DB2777; }

.card-content {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Modals Mobile Optimized */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  padding: 0 20px 24px 20px;
  position: relative;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: pan-y;
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-header {
  position: sticky;
  top: 0;
  background: white;
  z-index: 50;
  padding: 16px 0 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 16px;
}

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

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.detail-star-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #CBD5E1;
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
}

.detail-star-btn.active {
  color: var(--accent-gold);
}

.close-btn {
  background: #FEE2E2;
  color: #EF4444;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Form Mode Switcher Tabs */
.form-tabs {
  display: flex;
  background: var(--warm-beige-bg);
  padding: 4px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
  border: 1px solid var(--warm-beige-border);
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: #786C5A;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: white;
  color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  font-weight: 700;
}

/* Dynamic Rows Component */
.dynamic-rows-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.dynamic-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dynamic-row input {
  flex: 1;
}

.remove-row-btn {
  background: #FEE2E2;
  color: #EF4444;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.add-row-btn {
  background: var(--pastel-blue-bg);
  color: var(--primary-blue);
  border: 1px dashed var(--pastel-blue-border);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Add to Shopping List Button in Recipe Detail */
.add-to-cart-detail-btn {
  width: 100%;
  background: var(--pastel-blue-bg);
  color: var(--primary-blue);
  border: 1px solid var(--pastel-blue-border);
  padding: 12px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0;
  transition: all 0.2s;
}

.add-to-cart-detail-btn:active {
  transform: scale(0.98);
}

/* Source Link Button */
.source-link-box {
  margin: 16px 0;
  text-align: center;
}

.source-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: transform 0.2s;
  width: 100%;
}

/* Swipe Controls */
.swipe-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-top: 10px;
  border-top: 1px solid var(--border-light);
}

.swipe-nav-btn {
  background: var(--pastel-blue-bg);
  color: var(--primary-blue);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.swipe-nav-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Detail View inside Modal */
.detail-hero-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 18px 0 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Checklist WITHOUT bullet dots! */
ul.checklist {
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item {
  list-style: none !important;
  list-style-type: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--warm-beige-bg);
  border: 1px solid var(--warm-beige-border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-blue);
  cursor: pointer;
}

.checklist-item.checked {
  text-decoration: line-through;
  opacity: 0.6;
}

/* Instructions Step Cards */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: white;
  border: 1px solid var(--border-light);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.step-num-badge {
  background: var(--pastel-blue-bg);
  color: var(--primary-blue);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--pastel-blue-border);
  margin-top: 2px;
}

.step-text {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-main);
  flex: 1;
}

/* Custom Mobile Image Upload Box */
.image-upload-box {
  position: relative;
  width: 100%;
  height: 110px;
  border: 2px dashed var(--pastel-blue-border);
  border-radius: var(--radius-md);
  background: var(--pastel-blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}

.image-upload-box input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--primary-blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 10px;
}

.upload-icon {
  font-size: 1.8rem;
}

.image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Forms */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text-main);
}

.form-label span.req {
  color: #EF4444;
}

.form-control {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #FAFAFC;
  font-size: 0.92rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-blue);
  background: white;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.submit-btn {
  width: 100%;
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 14px;
  border-radius: var(--radius-pill);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

/* WhatsApp Share Button */
.whatsapp-share-btn {
  width: 100%;
  background: var(--whatsapp-green);
  color: white;
  border: none;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  margin-bottom: 12px;
}

/* Modal Action Buttons */
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.edit-btn {
  background: var(--pastel-blue-bg);
  color: var(--primary-blue);
  border: 1px solid var(--pastel-blue-border);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.delete-btn {
  background: #FEE2E2;
  color: #EF4444;
  border: 1px solid #FCA5A5;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Shopping List Card Item */
.shopping-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--warm-beige-bg);
  border: 1px solid var(--warm-beige-border);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}

.shopping-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.shopping-item-text {
  font-size: 0.92rem;
  color: var(--text-main);
}

.shopping-item-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}

/* Category Manager List in Modal */
.category-manage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.category-manage-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--warm-beige-bg);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Persistent Mobile-Anchored Floating Action Button (FAB) */
.fab {
  position: fixed;
  bottom: 24px;
  left: calc(50% - 200px); /* Strictly anchored inside the 440px Mobile Frame on Desktop! */
  background: var(--primary-blue);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: none;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (max-width: 480px) {
  .fab {
    left: 18px;
    bottom: 20px;
  }
}

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

.empty-state {
  text-align: center;
  padding: 40px 20px;
  grid-column: 1 / -1;
  color: var(--text-muted);
}
.empty-icon {
  font-size: 2.8rem;
  margin-bottom: 8px;
}
