body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f9f9f9;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: #f7fafc;
  min-height: 100vh;
  color: #2d3748;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

.App {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: hidden;
}

/* Modern header */
.App-header {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.App-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  transition: all 0.2s ease;
}

.App-header h1:hover {
  transform: scale(1.02);
}

/* Modern navigation */
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-links button {
  background: transparent;
  border: 1.5px solid #e2e8f0;
  color: #4a5568;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.nav-links button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.nav-links button:hover::before {
  left: 100%;
}

.nav-links button:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.nav-links button.active {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.restaurant-logout-btn,
.admin-logout-btn {
  background: linear-gradient(135deg, #fc8181 0%, #f56565 100%) !important;
  border-color: transparent !important;
  color: white !important;
}

.restaurant-logout-btn:hover,
.admin-logout-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3) !important;
}

/* Modern container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1;
  width: 100%;
}

/* Modern cards - App specific */
.app-restaurant-info {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.restaurant-logo-section {
  flex-shrink: 0;
}

.restaurant-logo-large {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  object-position: center;
  border: 2px solid #f7fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.app-restaurant-details-section {
  flex: 1 1;
  min-width: 0;
}

.app-restaurant-info h2 {
  margin: 0 0 8px 0;
  font-size: 1.875rem;
  font-weight: 700;
  color: #2d3748;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.restaurant-cuisine-tag {
  display: inline-block;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: capitalize;
}

.restaurant-description {
  color: #4a5568;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.restaurant-address {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #718096;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

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

.restaurant-website {
  margin-top: 16px;
}

.restaurant-website a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.restaurant-website a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* Loading and error states */
.loading-container,
.error-container {
  text-align: center;
  padding: 48px 24px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 24px;
}

.loading-container p {
  color: #718096;
  font-size: 1.125rem;
}

.error-container p {
  color: #e53e3e;
  font-size: 1.125rem;
  font-weight: 500;
}

/* Modern footer */
.App-footer {
  background: #2d3748;
  color: white;
  margin-top: auto;
  padding: 40px 24px 20px;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  grid-gap: 40px;
  gap: 40px;
  margin-bottom: 30px;
  align-items: start;
}

.footer-section h3 {
  margin: 0 0 12px 0;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #fafafa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
}

.footer-section h4 {
  margin: 0 0 16px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #e2e8f0;
  text-align: left;
}

.footer-section p {
  color: #a0aec0;
  line-height: 1.6;
  margin: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  background: none;
  border: none;
  color: #a0aec0;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #667eea;
}

.footer-bottom {
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-link {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: none;
  padding: 0;
  transition: color 0.2s ease;
}

.legal-link:hover {
  color: #667eea;
  text-decoration: underline;
}

.legal-separator {
  color: #94a3b8;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .App-header {
    padding: 16px;
    flex-direction: column;
    gap: 12px;
  }
  
  .App-header h1 {
    font-size: 1.5rem;
  }
  
  .nav-links {
    justify-content: center;
    gap: 6px;
  }
  
  .nav-links button {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .container {
    padding: 16px;
    gap: 16px;
  }
  
  .app-restaurant-info {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }
  
  .restaurant-logo-large {
    width: 100px;
    height: 100px;
    align-self: center;
    margin-left: 90px;

  }
  
  .app-restaurant-info h2 {
    font-size: 1.5rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .legal-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
    align-items: start;
  }
  
  .footer-links {
    align-items: flex-start;
  }
}


@media (max-width: 768px) {
  .restaurant-image-large {
    display: block;
    margin: 0 auto;

  }
}

.feedback-modal {
  background: white;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: fadeIn 0.2s ease-in-out;
}

.feedback-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.feedback-modal .modal-actions button {
  flex: 0 0 auto;
  width: auto;
  min-width: 100px;
  white-space: nowrap;
}
.allergy-selector {
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
}

.allergy-selector h2 {
  margin-top: 0;
  color: #333;
}

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

.allergy-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}

.clear-allergies-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #ef4444;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.clear-allergies-btn:hover {
  background: #fee2e2;
  border-color: #fecaca;
}

.allergy-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 8px;
  gap: 8px;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.allergy-buttons-row-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.allergy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  min-height: 36px;
}

.allergy-btn:hover {
  background: #f1f5f9;
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.allergy-btn.selected {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #dc2626;
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.allergy-btn.selected:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.allergy-icon {
  font-size: 18px;
  line-height: 1;
}

.allergy-name {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

.selected-allergies {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

@media (max-width: 480px) {
  .allergy-buttons {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .allergy-buttons-row-group {
    gap: 0.4rem;
  }
}

.menu-item {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 500px;
  cursor: default;
  display: flex;
  align-items: center;
  padding: 15px;
  gap: 15px;
  min-width: 0;
}

.menu-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.menu-item.modern-compact {
  display: flex;
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #f1f5f9;
  height: 100px;
  min-height: 100px;
}

.menu-item.modern-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

.menu-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  height: 100%;
}

.menu-item-image-container {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.menu-item-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-item-image-container.compact {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.menu-item-image-container.compact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.menu-item.modern-compact:hover .menu-item-image-container.compact img {
  transform: scale(1.05);
}

.menu-item-content {
  flex: 1 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.menu-item-content.compact {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 4px 0;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  width: 100%;
}

.menu-item-info {
  flex: 1 1;
}

.menu-item-info h3 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 1.1em;
}

.menu-item-category {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 3px 6px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.menu-item-category.appetizer {
  background-color: #ff6b6b;
}

.menu-item-category.entree {
  background-color: #4ecdc4;
}

.menu-item-category.dessert {
  background-color: #ff9f43;
}

.menu-item-category.beverage {
  background-color: #74b9ff;
}

.menu-item-category.side {
  background-color: #6c5ce7;
}

.menu-item-category.compact {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.item-title-section {
  flex: 1 1;
  min-width: 0;
}

.item-name {
  margin: 2px 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: #1e293b;
}

.item-description {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-item-price {
  font-weight: bold;
  color: #4CAF50;
  font-size: 1.2em;
  margin-left: 15px;
  padding-right: 15px;
  flex-shrink: 0;
}

.menu-item-price.compact {
  font-size: 1.1rem;
  font-weight: 700;
  color: #059669;
  margin-left: 12px;
  white-space: nowrap;
  align-self: flex-start;
}

.click-hint {
  color: #999;
  font-size: 0.7rem;
  margin-top: 5px;
  font-style: italic;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #e2e8f0;
}

.placeholder-icon {
  font-size: 1.2rem;
  opacity: 0.6;
  color: #64748b;
}

.modal-image .image-placeholder {
  border-radius: 8px;
}

.modal-image .placeholder-icon {
  font-size: 2rem;
}

.modal-content {
  padding: 20px;
}

.modal-header {
  margin-bottom: 15px;
}

.modal-header h2 {
  margin: 10px 0;
  color: #333;
  font-size: 1.5em;
}

.modal-price {
  color: #28a745;
  font-weight: bold;
  font-size: 1.3em;
}

.modal-description {
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
  font-size: 1rem;
}

.modal-allergens h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1rem;
}

.modal-allergens .allergen-free {
  color: #28a745;
  font-weight: bold;
  font-size: 1.1rem;
}

.menu-item-allergens-preview {
  margin: 6px 0;
  font-size: 0.75rem;
}

.allergen-label {
  color: #666;
  font-size: 0.7rem;
  display: block;
  margin-bottom: 3px;
}

.allergen-pills-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.allergen-pill-small {
  background-color: #f0f0f0;
  color: #666;
  padding: 2px 5px;
  border-radius: 8px;
  font-size: 0.65rem;
  line-height: 1;
}

.allergen-pill-small.highlighted {
  background-color: #ffcccc;
  color: #d32f2f;
  font-weight: 500;
}

.allergen-free-preview {
  color: #4CAF50;
  font-size: 0.75rem;
  font-weight: 500;
  margin: 6px 0;
}

.allergen-pills-compact {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.allergen-pill-micro {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 500;
}

.allergen-pill-micro.highlighted {
  background: #ef4444;
  color: white;
}

.allergen-more {
  font-size: 0.65rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
}

.allergen-free-compact {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 500;
  margin-top: 6px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.menu-item-detail-modal {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  flex: 1 1;
  padding-right: 16px;
}

.modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: #64748b;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: #e2e8f0;
}

.modal-content {
  padding: 24px;
}

.modal-image-container {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.price-category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-category-badge {
  background: #e0e7ff;
  color: #3730a3;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.modal-description {
  margin: 0 0 20px 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
}

.modal-allergens {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.modal-allergens h4 {
  margin: 0 0 12px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #991b1b;
}

.modal-allergen-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.modal-allergen-tag {
  background: #fee2e2;
  color: #991b1b;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #fecaca;
}

.modal-allergen-tag.highlighted {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.modal-allergen-free {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.modal-allergen-free h4 {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #166534;
}

.modal-allergen-free p {
  margin: 0;
  color: #166534;
  font-size: 0.875rem;
}

.allergy-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #92400e;
}

.warning-icon {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .menu-item {
    padding: 12px;
    gap: 12px;
  }
  
  .menu-item.modern-compact {
    padding: 12px;
    height: 90px;
    min-height: 90px;
  }
  
  .menu-item-image-container.compact {
    width: 60px;
    height: 60px;
  }
  
  .item-name {
    font-size: 0.95rem;
  }
  
  .item-description {
    font-size: 0.75rem;
  }
  
  .menu-item-price.compact {
    font-size: 1rem;
  }
  
  .menu-item-detail-modal {
    margin: 10px;
    max-height: 85vh;
  }
  
  .modal-header {
    padding: 16px 20px;
  }
  
  .modal-content {
    padding: 20px;
  }
  
  .modal-image-container {
    height: 150px;
  }
}

.modal-calories {
  margin-left: 8px;
  color: #6b7280; /* Tailwind gray-500-ish */
  font-weight: 500;
}


.modal-image-container {
  width: 100%;
  max-width: 400px;      /* limit max width */
  height: 300px;         /* fixed height */
  margin: 0 auto 16px;   /* center with bottom spacing */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;   /* light background behind image */
  border-radius: 8px;
  overflow: hidden;
}

.modal-image-container img.modal-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;   /* ensures whole image is visible */
}

/* Make compact content a column so allergens go under description */
.menu-item-content.compact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start; /* was space-between */
  height: auto; /* let height adjust */
}

/* Ensure allergens fit inside card */
.allergen-pills-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.allergen-pill-micro {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 6px;
  background: #fee2e2;
  color: #991b1b;
  font-weight: 500;
}

/* --- Fix compact card clipping / alignment --- */
.menu-item.modern-compact {
  height: auto;           /* was 100px */
  min-height: 100px;      /* keep a minimum */
  overflow: visible;      /* allow content to show */
  align-items: stretch;   /* let inner row control vertical layout */
}

.menu-item-row {
  align-items: flex-start; /* stack content from the top, not center */
  height: auto;            /* don’t force 100% of old fixed height */
}

.menu-item-content.compact {
  justify-content: flex-start; /* remove space-between vertical distribution */
  height: auto;                /* allow to grow with description + pills */
}

/* Optional: give a smidge more space after description */
.item-description {
  margin-bottom: 6px;
}


.menu-list {
  padding-bottom: 2rem;
}

.menu-list.modern {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.menu-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(135deg, #fafafa 0%, #f8fafc 100%);
}

.menu-title-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.menu-title-section h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.item-count {
  font-size: 0.875rem;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
}

.category-filter {
  margin-bottom: 24px;
  padding: 24px;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.category-filter-compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-select {
  display: none;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  font-size: 0.875rem;
  color: #374151;
}

.dietary-select {
  display: none;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  font-size: 0.875rem;
  color: #374151;
  margin-top: 8px;
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.category-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.category-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.category-pill.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.more-categories {
  font-size: 0.75rem;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 12px;
}

.menu-content {
  padding: 0 24px 24px;
}

.category-group {
  margin-bottom: 32px;
}

.category-group:last-child {
  margin-bottom: 0;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #f8fafc;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.category-header:hover {
  background: #e2e8f0;
}

.category-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
}

.category-header .category-count {
  font-size: 0.875rem;
  color: #6b7280;
}

.menu-items-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  width: 100%;
}

.single-category .menu-items-list {
  margin-top: 16px;
}

.empty-menu {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-menu p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
}

.allergy-notice {
  margin: 16px 24px 0;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #92400e;
  font-weight: 500;
}

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

/* Mobile-first responsive design */
@media (max-width: 1200px) {
  .menu-items-list {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-list.modern {
    border-radius: 12px;
    margin: 0;
  }
  
  .menu-header {
    padding: 16px 12px 12px;
    background: linear-gradient(135deg, #fafafa 0%, #f8fafc 100%);
  }
  
  .menu-content {
    padding: 0 12px 16px;
  }
  
  .menu-items-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .category-pills {
    display: none;
  }
  
  .category-select {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #374151;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27M6 8l4 4 4-4%27/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    transition: all 0.2s ease;
    /* Touch improvements */
    min-height: 48px;
    touch-action: manipulation;
  }
  
  .category-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  }

  .dietary-select {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: white;
    color: #374151;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns=%27http://www.w3.org/2000/svg%27 fill=%27none%27 viewBox=%270 0 20 20%27%3e%3cpath stroke=%27%236b7280%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27 stroke-width=%271.5%27 d=%27M6 8l4 4 4-4%27/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    transition: all 0.2s ease;
    min-height: 48px;
    touch-action: manipulation;
    margin-top: 12px;
  }

  .dietary-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  }
  
  .menu-title-section {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .menu-title-section h2 {
    font-size: 1.375rem;
    font-weight: 700;
  }
  
  .item-count {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
  }
  
  .category-header {
    margin: 20px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    border-image: none;
  }
  
  .category-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
  }
  
  .category-count {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
  }
  
  .allergy-notice {
    margin: 12px 12px 0;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
  }

  .category-select,
  .dietary-select {
    width: 100%; /* Ensure full width on mobile */
    max-width: 400px; /* Optional: Limit the maximum width */
  }
}

@media (max-width: 480px) {
  .menu-list.modern {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  }
  
  .menu-header {
    padding: 12px 8px 10px;
  }
  
  .menu-content {
    padding: 0 8px 12px;
  }
  
  .menu-title-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
  }
  
  .menu-title-section h2 {
    font-size: 1.25rem;
    margin: 0;
  }
  
  .item-count {
    align-self: flex-start;
  }
  
  .category-filter-compact {
    gap: 0;
  }
  
  .category-select {
    font-size: 0.875rem;
    padding: 10px 14px;
    padding-right: 36px;
    min-height: 44px;
    border-radius: 10px;
  }
  
  .category-group {
    margin-bottom: 20px;
  }
  
  .category-header {
    margin: 16px 0 12px;
  }
  
  .category-header h3 {
    font-size: 1.125rem;
  }
  
  .menu-items-list {
    gap: 8px;
  }
  
  .empty-menu {
    padding: 40px 16px;
  }
  
  .empty-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }
  
  .empty-menu p {
    font-size: 1rem;
  }
}

/* Ultra-small screens (iPhone SE, etc.) */
@media (max-width: 320px) {
  .menu-header {
    padding: 10px 6px 8px;
  }
  
  .menu-content {
    padding: 0 6px 10px;
  }
  
  .menu-title-section h2 {
    font-size: 1.125rem;
  }
  
  .category-select {
    font-size: 0.8rem;
    padding: 8px 12px;
    padding-right: 32px;
    min-height: 40px;
  }
  
  .item-count {
    font-size: 0.7rem;
    padding: 4px 8px;
  }
  
  .category-header h3 {
    font-size: 1rem;
  }
  
  .category-count {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}

/* Touch improvements for all mobile devices */
@media (max-width: 768px) {
  /* Disable text selection on interactive elements */
  .category-select,
  .dietary-select,
  .category-pill {
    -webkit-user-select: none;
    user-select: none;
  }
  
  /* Remove tap highlight on iOS */
  .category-select,
  .dietary-select,
  .category-pill {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Improve scrolling on iOS */
  .menu-content {
    -webkit-overflow-scrolling: touch;
  }
}

/* Landscape mobile optimization */
@media (max-width: 768px) and (orientation: landscape) {
  .menu-header {
    padding: 12px 16px 8px;
  }
  
  .menu-title-section {
    flex-direction: row;
    align-items: center;
    margin-bottom: 12px;
  }
  
  .category-group {
    margin-bottom: 16px;
  }
  
  .category-header {
    margin: 12px 0 10px;
  }
}

/* High DPI / Retina display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .menu-list.modern {
    border-width: 0.5px;
  }
  
  .category-header {
    border-bottom-width: 1px;
  }
}

/* Loading states for better mobile UX */
.menu-content[aria-live="polite"] {
  min-height: 200px;
}

/* Accessibility improvements */
.category-select:focus,
.category-pill:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
  .menu-list.modern {
    /* Removed contain property as it interferes with modal positioning */
    will-change: scroll-position;
  }
  
  .menu-items-list {
    /* Removed contain property as it interferes with modal positioning */
  }
  
  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    .menu-content {
      scroll-behavior: auto;
    }
    
    .category-select,
    .dietary-select,
    .category-pill {
      transition: none;
    }
  }
  
  /* Better contrast for accessibility */
  .category-count {
    background: #64748b;
    color: white;
  }
  
  .item-count {
    background: #475569;
    color: white;
  }
}

/* Dark mode considerations (disabled for now) */
/*
@media (prefers-color-scheme: dark) {
  .menu-list.modern {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
  }
  
  .menu-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-color: #475569;
  }
  
  .category-select {
    background: #334155;
    border-color: #475569;
    color: #f8fafc;
  }
  
  .category-header {
    border-color: #475569;
  }
  
  .category-header h3 {
    color: #f8fafc;
  }
}
*/

/* Remove old styles */
.category-filter,
.results-info,
.results-info.bottom {
  display: none;
}
/* Report issue CTA */
.menu-report-cta {
  padding: 0 24px 24px;
  display: flex;
  justify-content: center;
}

.menu-report-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.menu-report-btn:hover { transform: translateY(-1px); }
.menu-report-btn:active { transform: translateY(0); opacity: 0.9; }

/* Modal shell specific to MenuList to avoid collisions */
.menu-report-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 640px;
  width: 92%;
  padding: 1.25rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Make the action buttons behave nicely in this modal */
.menu-report-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.menu-report-modal .modal-actions .action-btn {
  flex: 0 0 auto;
  width: auto;
  min-width: 110px;
  white-space: nowrap;
}

.allergen-pill-micro {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1;
  margin: 2px;
  display: inline-flex;
  align-items: center;
}

* Position the flag button between the menu and footer, right-aligned */
.menu-report-cta.outside {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 0.5rem 1rem;
}

/* Minimal, touch-friendly icon button */
.menu-report-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.menu-report-btn:hover {
  transform: scale(1.08);
  background-color: rgba(0,0,0,0.04);
}

@media (max-width: 768px) {
  .menu-report-cta.outside {
    padding: 0.5rem 0.25rem 0.75rem;
  }
  .menu-report-btn {
    font-size: 1.4rem;
  }
}

/* Modal bits assumed already exist; ensure overlay is fixed so it’s not constrained */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.menu-report-cta.outside {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding: 0;      /* remove all internal padding */
  margin: 0;       /* remove any default margins */
  box-sizing: border-box;
}

.menu-report-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px; /* minimal clickable area */
  border-radius: 8px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.menu-report-btn:hover {
  transform: scale(1.08);
  background-color: rgba(0,0,0,0.04);
}

/* Remove bottom spacing from the menu list container on desktop */
.menu-list {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Make sure the flag container has no gap */
.menu-report-cta.outside {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding: 0;      /* remove padding */
  margin: 0;       /* remove margin */
  box-sizing: border-box;
}

/* Remove top spacing from the footer so it sits right under the flag */
footer {
  margin-top: 0 !important;
  padding-top: 0.5rem; /* keep a small pad if you want breathing room */
}

/* Optional: adjust the flag button hit area */
.menu-report-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.menu-report-btn:hover {
  transform: scale(1.08);
  background-color: rgba(0,0,0,0.04);
}

/* --- Mobile phones only: make selects truly full width --- */
@media (max-width: 480px) {
  .category-filter-compact { width: 100% !important; }

  .category-select,
  .dietary-select {
    display: block !important;
    width: 100% !important;
    max-width: none !important;   /* remove the 400px cap */
    box-sizing: border-box !important;
  }
}
.public-menu {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex;
  flex-direction: column;
  /* Improve mobile performance */
  -webkit-overflow-scrolling: touch;
  transform: translate3d(0, 0, 0);
  /* Prevent horizontal overflow */
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* Modern Header */
.menu-header-modern {
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
}

.restaurant-branding {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.restaurant-logo-modern {
  width: 124px;
  height: 124px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #f1f5f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.restaurant-info-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.restaurant-info h1 {
  margin: 0 0 8px 0;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.restaurant-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 16px;
}

.restaurant-info .description-compact {
  margin: 0;
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  max-width: 600px;
}

/* Compact Filters */
.filters-compact {
  background: white;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-row {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.category-filter-modern {
  flex: 1 1;
}

.dietary-filter-modern {
  flex: 1 1;
  margin-left: 16px;
}

.category-select {
  display: none;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  font-size: 0.875rem;
}

.dietary-select {
  display: none;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
  font-size: 0.875rem;
  color: #1f2937;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.dietary-select:focus {
  outline: none;
  border-color: #a5b4fc;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15);
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.category-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  /* Better touch targets */
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Prevent tap highlights on mobile */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.category-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.category-pill.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.more-categories {
  font-size: 0.75rem;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 12px;
}

.allergy-filter-direct {
  flex-shrink: 0;
  min-width: 300px;
}

.allergy-filter-direct h4 {
  margin: 0 0 8px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 4px;
}

.specific-allergen-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 8px;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
}

.specific-allergen-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.specific-allergen-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.specific-allergen-pill.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.specific-allergen-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

/* Results Compact */
.results-compact {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.875rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-note {
  color: #059669;
  font-weight: 500;
}

/* Modern Menu Grid */
.menu-grid-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  flex: 1 1;
  align-content: start;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.menu-item-card-modern {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.menu-item-card-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Compact Menu Items */
.menu-item-card-compact {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  /* Better mobile touch handling */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* Improve mobile performance */
  will-change: transform;
}

.menu-item-card-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.item-image-compact {
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

.item-image-compact .item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.item-info-compact {
  padding: 12px;
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
}

.item-name-compact {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  word-wrap: break-word;
}

.item-price-compact {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.allergens-preview {
  display: flex;
  gap: 4px;
  align-items: center;
}

.allergen-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fecaca;
}

.allergen-dot.highlighted {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
}

.allergen-more-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
}

.dietary-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 2px;
  background-color: #16a34a; /* Green for dietary options */
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 10px;
  color: white;
  font-weight: bold;
  cursor: default;
}

.dietary-more-dot {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  color: #16a34a;
  font-weight: bold;
}

.category-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Modal Styles */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  background: rgba(0, 0, 0, 0.75) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  padding: 20px !important;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  margin: 0 !important;
  border: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  overflow-y: auto;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  /* Force full coverage on all screens */
  transform: none !important;
  /* Ensure no container restrictions */
  inset: 0 !important;
}

.item-modal {
  background: white !important;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  max-height: calc(100vh - 40px) !important;
  overflow-y: auto;
  position: relative !important;
  z-index: 10000 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  /* Ensure modal is visible */
  display: block !important;
  flex-shrink: 0;
  /* Desktop centering */
  align-self: center;
  justify-self: center;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  flex: 1 1;
  padding-right: 16px;
}

.modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  color: #64748b;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: #e2e8f0;
}

.modal-content {
  padding: 24px;
}

.modal-image-container {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.price-category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-price {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-category-badge {
  background: #e0e7ff;
  color: #3730a3;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.modal-description {
  margin: 0 0 20px 0;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.6;
}

.modal-allergens {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.modal-allergens h4 {
  margin: 0 0 12px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #991b1b;
}

.modal-allergen-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.modal-allergen-tag {
  background: #fee2e2;
  color: #991b1b;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #fecaca;
}

.modal-allergen-tag.highlighted {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

/* Modal Dietary Information Styles */
.modal-dietary {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.modal-dietary h4 {
  margin: 0 0 12px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #166534;
}

.modal-dietary-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.modal-dietary-tag {
  background: #dcfce7;
  color: #166534;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 6px;
  font-weight: 500;
  border: 1px solid #bbf7d0;
  transition: all 0.2s ease;
}

.modal-dietary-tag:hover {
  background: #bbf7d0;
  transform: translateY(-1px);
}

/* Modern Footer */
.menu-footer-modern {
  background: white;
  padding: 24px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 10;
}

.menu-footer-modern .footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.menu-footer-modern .footer-content span {
  color: #4a5568;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(226, 232, 240, 0.3);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.menu-footer-modern .footer-content:hover span {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.allergy-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #92400e;
}

.warning-icon {
  font-size: 1.2rem;
}

/* Update existing menu grid for single category view */
.menu-grid-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  flex: 1 1;
  align-content: start;
}

/* Remove old large card styles */
.menu-item-card-modern {
  display: none;
}

/* Category Sections */
.category-section {
  grid-column: 1 / -1;
  margin-bottom: 40px;
}

.category-section:last-child {
  margin-bottom: 0;
}

.category-header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid;
  border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}

.category-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-count {
  font-size: 0.875rem;
  color: #64748b;
  background: #f8fafc;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 500;
}

.category-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  padding-bottom: 8px;
  justify-items: center;
  /* Items now wrap to new lines, no horizontal scroll */
}

.category-items-grid::-webkit-scrollbar {
  display: none;
}

.category-items-grid::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.category-items-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 3px;
}

.category-items-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.category-items-grid .menu-item-card-compact {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Body scroll lock when modal is open */
body.modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Modal container reset - force break out of any container */
.modal-overlay {
  /* Use viewport units with fallback */
  width: 100vw !important;
  height: 100vh !important;
  /* Force positioning relative to viewport, not container */
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  /* Override any potential container constraints */
  margin: 0 !important;
  padding: 20px !important;
  /* Ensure element appears above everything */
  z-index: 999999 !important;
  /* Break out of stacking contexts */
  isolation: isolate !important;
  /* Force full coverage */
  inset: 0 !important;
}

/* Desktop Modal Overrides */
@media (min-width: 769px) {
  .modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    background: rgba(0, 0, 0, 0.75) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    padding: 40px !important;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    /* Force absolute positioning to break out of any container */
    inset: 0 !important;
  }
  
  .item-modal {
    background: white !important;
    max-width: 500px !important;
    width: 90% !important;
    max-height: calc(100vh - 80px) !important;
    margin: auto !important;
    position: relative !important;
    transform: none !important;
    display: block !important;
    flex-shrink: 0 !important;
  }
}

/* Ultra-wide Screen Support */
@media (min-width: 1400px) {
  .modal-overlay {
    padding: 60px !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100vw !important;
    min-height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    inset: 0 !important;
    position: fixed !important;
    background: rgba(0, 0, 0, 0.75) !important;
  }
  
  .item-modal {
    max-width: 500px !important;
    width: 80% !important;
  }
}

/* Enhanced Mobile Responsiveness */

/* Very Small Mobile Devices (up to 320px) */
@media (max-width: 320px) {
  .public-menu {
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .menu-grid-modern {
    grid-template-columns: 1fr;
    padding: 0 6px 12px;
    gap: 6px;
  }
  
  .category-items-grid {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 0 6px;
  }
  
  .allergen-pills {
    gap: 1px;
  }
  
  .allergen-pill {
    font-size: 0.6rem;
    padding: 2px 4px;
    min-height: 24px;
  }
  
  .restaurant-info h1 {
    font-size: 1rem;
  }
  
  .filters-compact {
    padding: 6px 8px;
  }
  
  .item-name-compact {
    font-size: 0.7rem;
    -webkit-line-clamp: 1;
    line-clamp: 1;
  }
  
  .modal-overlay {
    padding: 4px !important;
    align-items: flex-start !important;
    padding-top: 10px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
  }
  
  .item-modal {
    margin: 0 !important;
    max-height: calc(100vh - 20px) !important;
    border-radius: 8px;
    width: calc(100vw - 8px) !important;
    max-width: calc(100vw - 8px) !important;
    display: block !important;
  }
}

/* Mobile First - Small Mobile Devices (up to 480px) */
@media (max-width: 480px) {
  .public-menu {
    max-width: 100vw;
    margin: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    overflow-x: hidden;
    width: 100%;
  }

  .menu-header-modern {
    padding: 8px 12px;
    position: static;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .header-content {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  
  .restaurant-branding {
    margin-bottom: 8px;
    gap: 8px;
  }
  
  .restaurant-info h1 {
    font-size: 1.1rem;
    line-height: 1.2;
    margin-bottom: 4px;
    text-align: center;
    padding: 0 8px;
  }
  
  .website-under-name {
    font-size: 0.7rem;
    text-align: center;
  }
  
  .restaurant-title-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px;
    width: 100%;
  }
  
  .restaurant-logo-modern {
    width: 40px !important;
    height: 40px !important;
    margin-left: 0 !important;
  }
  
  .restaurant-meta {
    flex-direction: column;
    gap: 4px;
    align-items: center;
    width: 100%;
  }
  
  .restaurant-header-right {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  
  .cuisine-tag {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.1);
    color: #4338ca;
    font-weight: 500;
  }
  
  .address {
    font-size: 0.75rem !important;
    margin-top: 2px;
    text-align: center;
    padding: 0 12px;
    word-wrap: break-word;
  }
  
  .description-compact {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
    margin-top: 6px !important;
    padding: 0 12px;
    text-align: center;
  }
  
  .filters-compact {
    padding: 8px 12px;
    margin-bottom: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .filter-row {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    width: 100%;
  }
  
  .category-pills {
    display: none !important;
  }
  
  .category-select {
    display: block !important;
    font-size: 0.85rem;
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .dietary-select {
    display: block !important;
    font-size: 0.85rem;
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
  }
  
  .allergy-filter-direct {
    min-width: auto;
    width: 100%;
  }
  
  .allergy-filter-direct h4 {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }
  
  .allergen-pills {
    gap: 2px;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
  }
  
  .allergen-pill {
    font-size: 0.65rem;
    padding: 3px 6px;
    border-radius: 8px;
    white-space: nowrap;
    min-height: 28px;
    flex-shrink: 0;
  }
  
  .clear-allergies {
    font-size: 0.65rem;
    padding: 3px 6px;
    margin-top: 4px;
  }
  
  .results-compact {
    font-size: 0.75rem;
    justify-content: center;
    padding: 0 12px;
    margin: 0 auto;
  }
  
  .menu-grid-modern {
    grid-template-columns: 1fr 1fr;
    padding: 0 8px 12px;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
    max-width: 100vw;
  }
  
  .menu-item-card-compact {
    border-radius: 8px;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }
  
  .item-image-compact {
    height: 70px;
  }
  
  .item-info-compact {
    padding: 6px;
    gap: 3px;
    min-height: 55px;
  }
  
  .item-name-compact {
    font-size: 0.75rem;
    line-height: 1.1;
    -webkit-line-clamp: 2;
  line-clamp: 2;
    margin-bottom: 2px;
  }
  
  .item-price-compact {
    font-size: 0.85rem;
    margin-top: 1px;
  }
  
  .allergens-preview {
    gap: 1px;
    margin-top: 3px;
  }
  
  .allergen-dot,
  .allergen-more-dot {
    width: 14px;
    height: 14px;
    font-size: 0.55rem;
  }
  
  .category-section {
    margin-bottom: 16px;
    width: 100%;
  }
  
  .category-header-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
    padding: 0 8px 6px;
  }
  
  .category-title {
    font-size: 1rem;
  }
  
  .category-count {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
  
  .category-items-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 0 8px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .category-items-grid .menu-item-card-compact {
    width: 100%;
    max-width: none;
  }
  
  .modal-overlay {
    padding: 8px !important;
    align-items: flex-start !important;
    padding-top: 20px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
  }
  
  .item-modal {
    margin: 0 !important;
    max-height: calc(100vh - 40px) !important;
    border-radius: 12px;
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    position: relative;
    transform: none;
    display: block !important;
  }
  
  .modal-header {
    padding: 10px 12px;
  }
  
  .modal-header h2 {
    font-size: 1.1rem;
    line-height: 1.2;
  }
  
  .modal-close {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }
  
  .modal-content {
    padding: 12px;
  }
  
  .modal-image-container {
    height: 140px;
    margin-bottom: 10px;
    border-radius: 8px;
  }
  
  .modal-price {
    font-size: 1.2rem;
  }
  
  .modal-category-badge {
    font-size: 0.65rem;
    padding: 3px 6px;
  }
  
  .modal-description {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 10px;
  }
  
  .modal-allergens {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
  }
  
  .modal-allergens h4 {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }
  
  .modal-allergen-tag {
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 5px;
  }
  
  .modal-dietary {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
  }
  
  .modal-dietary h4 {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }
  
  .modal-dietary-tag {
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 5px;
  }
  
  .allergy-warning {
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
  }
  
  .menu-footer-modern {
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .footer-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }
  
  .footer-content span {
    font-size: 0.75rem !important;
    padding: 4px 8px;
  }
}

/* Tablet and Medium Mobile (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .menu-header-modern {
    padding: 16px;
  }
  
  .restaurant-branding {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  
  .restaurant-info-header {
    flex-direction: column;
    text-align: center;
  }
  
  .restaurant-info h1 {
    font-size: 1.5rem;
  }
  
  .restaurant-info .description-compact {
    font-size: 0.85rem;
  }
  
  .filters-compact {
    padding: 16px;
  }
  
  .filter-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .category-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .category-select {
    display: none;
  }
  
  .allergy-filter-direct {
    min-width: auto;
  }
  
  .allergy-filter-direct h4 {
    font-size: 0.85rem;
  }
  
  .allergen-pills {
    gap: 4px;
    justify-content: center;
  }
  
  .allergen-pill {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  
  .menu-grid-modern {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    padding: 0 16px 16px;
    gap: 12px;
  }
  
  .category-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }
  
  .item-modal {
    margin: 16px;
    max-height: 85vh;
  }
  
  .modal-image-container {
    height: 200px;
  }
  
  .item-image-compact {
    height: 110px;
  }
}

/* Landscape Mobile (up to 768px in landscape) */
@media (max-width: 768px) and (orientation: landscape) {
  .menu-header-modern {
    position: static;
    padding: 12px 16px;
  }
  
  .restaurant-title-row {
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }
  
  .restaurant-logo-modern {
    width: 40px !important;
    height: 40px !important;
    margin-left: 0 !important;
  }
  
  .restaurant-info h1 {
    font-size: 1.3rem;
  }
  
  .description-compact {
    display: none; /* Hide description in landscape to save space */
  }
  
  .filters-compact {
    padding: 8px 16px;
  }
  
  .allergen-pills {
    max-height: 60px;
    overflow-y: auto;
  }
  
  .menu-grid-modern {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }
  
  .category-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
  }
  
  .item-image-compact {
    height: 70px;
  }
  
  .item-info-compact {
    padding: 6px;
    min-height: 50px;
  }
}

/* Add click outside handler for dropdown */
.allergy-filter-compact.open .allergy-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.allergy-filter-compact.open .allergy-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.item-image-compact {
  width: 100%;
  /* Pick one of these for consistent sizing: */
  aspect-ratio: 4 / 3;        /* modern browsers */
  /* height: 160px; */         /* fallback if you prefer explicit height */
  
  display: flex;
  align-items: center;
  justify-content: center;

  background: #f7f7f8;        /* subtle backdrop behind letterboxed images */
  border-radius: 10px;
  overflow: hidden;            /* keeps corners tidy */
}

/* The image itself: scale to fit without cropping */
.item-image-compact .item-image,
.item-image-compact img {
  max-width: 100%;
  max-height: 100%;
  width: auto;                 /* don’t stretch */
  height: auto;                /* don’t stretch */
  object-fit: contain;         /* key: show the whole image */
  object-position: center;     /* center it */
}

/* Prominent Powered by MenuRX button */
.powered-by-menurx {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.powered-by-menurx:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.restaurant-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.restaurant-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.restaurant-name-section {
  display: flex;
  flex-direction: column;
}

.website-under-name {
  font-size: 0.8rem;
  color: #3b82f6;
  font-weight: 500;
  margin-top: 2px;
  text-decoration: none;
  cursor: pointer;
}

.restaurant-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 4px;
}

.restaurant-header-right .cuisine-tag {
  font-size: 0.85rem;
}

.restaurant-header-right .address {
  font-size: 0.85rem;
  color: #4a5568;
}

.restaurant-branding,
.restaurant-info,
.restaurant-header-row {
  width: 100%;
  padding-right: 0; /* remove any inner right padding */
}

/* Force the right column to hug the true far right of the header */
.restaurant-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.restaurant-header-right {
  margin-left: auto; /* pushes it all the way right */
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

@media (max-width: 768px) {
  .restaurant-header-row {
    flex-direction: column;      /* stack under the name/logo */
    align-items: flex-start;     /* align the whole block left */
    gap: 6px;
  }
  .restaurant-header-right {
    margin-left: 0;              /* stop pushing to the right */
    align-items: center;         /* center-align its contents */
    text-align: center;
    white-space: normal;         /* allow wrapping on small screens */
    width: 100%;
  }
}

@media (max-width: 768px) {
  .item-image-compact {
    display: none;
  }
}

@media (min-width: 769px) {
  .category-select {
    display: inline-block !important;
    width: 320px;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .category-select:focus {
    outline: none;
    border-color: #a5b4fc;
    box-shadow: 0 4px 14px rgba(99,102,241,0.15);
  }

  .dietary-select {
    display: inline-block !important;
    width: 320px;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }
  .dietary-select:focus {
    outline: none;
    border-color: #a5b4fc;
    box-shadow: 0 4px 14px rgba(99,102,241,0.15);
  }

  .category-pills {
    display: none !important;
  }
}

/* Desktop: keep filters on-screen when using dropdown */
@media (min-width: 769px) {
  /* Let the row wrap to two lines if needed */
  .filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
  }

  /* Give both sections flexible widths so they don’t push each other offscreen */
  .category-filter-modern {
    /*flex: 1 1 340px;   /* grow, shrink, preferred width */
    min-width: 280px;
    max-width: 100%;
  }

  .allergy-filter-direct {
    flex: 1 1 420px;   /* let it wrap under on tighter screens */
    min-width: 320px;
    max-width: 100%;
  }

  /* Make the dropdown fluid within its container */
  .category-select {
    display: inline-block !important;
    width: 100%;
    max-width: 480px;  /* cap so it doesn’t get comically wide */
  }

  /* Ensure allergy chips wrap rather than overflow */
  .allergen-pills {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: minmax(36px, auto); /* even-ish rows */
    grid-gap: 8px 12px;
    gap: 8px 12px;
    width: 100%;
  }

  /* Let each pill fit its grid cell instead of forcing a larger width */
  .allergen-pill {
    width: 100%;
    min-width: 0;          /* allow shrink inside grid cell */
    white-space: normal;   /* allow “tree nuts” etc. to wrap */
    justify-content: center;
    text-align: center;
  }
}

/* Optional: on mid-width desktops, bias the dropdown full width on its line */
@media (min-width: 769px) and (max-width: 1100px) {
  .category-filter-modern { flex-basis: 100%; }
}

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

/* Larger logo on desktop only */
@media (min-width: 1024px) {
  .restaurant-logo-modern {
    width: 200px !important;
    height: 200px !important;
  }
}

.publicmenu-flag {
  margin-left: auto;       /* pushes it to the far right */
  display: inline-flex;
  justify-content: flex-end;
}

.footer-content a {
  display: flex;
  justify-content: space-between;  /* text on left, flag on right */
  align-items: center;
}

.publicmenu-flag {
  margin-left: 1rem; /* small gap from text */
}

/* Make the footer a positioning context */
.menu-footer-modern {
  position: relative;
}

/* Force the 🚩 to the far right of the screen inside the footer */
.menu-footer-modern .publicmenu-flag {
  position: absolute !important;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 0 !important;
  display: inline-flex;
  cursor: pointer;
  z-index: 2; /* stays above footer text */
}

/* Keep the link centered while the flag sits on the edge */
.menu-footer-modern .footer-content {
  position: relative;
}

.menu-footer-modern .footer-content a {
  margin: 0 auto;        /* keep Powered by centered */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Style the 🚩 report button */
.menu-footer-modern .publicmenu-flag {
  position: absolute !important;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffffff 0%, #fffdfd 100%); /* red gradient */
  color: #fff;
  font-size: 1.2rem;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.menu-footer-modern .publicmenu-flag:hover {
  background: linear-gradient(135deg, #f9cccc 0%, #ffbcbc 100%);
  transform: translateY(-50%) scale(1.08);
}

.menu-footer-modern .publicmenu-flag:active {
  transform: translateY(-50%) scale(0.96);
}

@media (max-width: 768px) {
  .menu-footer-modern .footer-content {
    justify-content: flex-start; /* align to left */
    padding-right: 80px; /* leave room so text doesn't overlap flag */
  }

  .menu-footer-modern .footer-content a {
    margin: 0; /* remove auto-centering */
  }

  .menu-footer-modern .publicmenu-flag {
    right: 12px; /* keep flag on far right */
    top: 50%;
    transform: translateY(-50%);
  }
}

* Keep filter row as a horizontal layout */
.filters-compact .filter-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

/* Stack the two dropdowns vertically on the left */
.filter-dropdowns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 300px;
}

.category-filter-modern,
.dietary-filter-modern {
  width: 100%;
}

.category-select,
.dietary-select {
  width: 100%;
}

.dietary-filter-modern {
  margin-top: 4px; /* small space between category and dietary */
}

/* Keep allergens on the right */
.allergy-filter-direct {
  flex: 1 1;
}

.dietary-filter-modern {
  margin-top: 4px; /* small consistent gap between dropdowns */
  text-align: left;
}


.filter-dropdowns {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ensures both dropdowns align to the same left edge */
  gap: 4px; /* small vertical gap */
}

.category-filter-modern,
.dietary-filter-modern {
  width: 100%;
  margin: 0;
  padding: 0;
}

.dietary-filter-modern {
  text-align: left;
}

.category-select,
.dietary-select {
  width: 100%;
  margin: 0;
}

.allergens-preview {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* --- Mobile fixes: make the dropdowns full-width --- */
@media (max-width: 768px) {
  /* Stack the filter row vertically and let children stretch */
  .filters-compact .filter-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  /* Left column should span 100% */
  .filter-left {
    width: 100% !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* Make both containers full width; remove desktop spacing */
  .category-filter-modern,
  .dietary-filter-modern {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    margin: 0 !important;
  }

  /* Force the selects to truly fill the line */
  .category-select,
  .dietary-select {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Don’t let the allergens block squeeze them */
  .allergy-filter-direct {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* Optional: if you want them to be full width on very small phones too */
@media (max-width: 480px) {
  .filters-compact .filter-row {
    gap: 6px !important;
  }
}

@media (max-width: 768px) {
  .allergen-pills,
  .dietary-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-gap: 8px !important;
    gap: 8px !important;
    width: 100% !important;
  }

  /* More specific selectors beat the earlier .allergen-pill width:auto !important */
  .allergen-pills .allergen-pill,
  .dietary-grid .chip {
    width: 100% !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    display: flex !important;
    box-sizing: border-box;
  }
}

.specific-allergen-icon {
  margin-right: 4px;
}

@media (max-width: 480px) {
  .specific-allergen-icon.hide-on-mobile {
    display: none;
  }
}

.cross-contact-alert.alert-style {
  text-align: center;
  align-self: flex-start;
  margin-top: 8px;
  background: linear-gradient(90deg, #fff5f5 0%, #fde2e2 100%);
  color: #991b1b;
  border: 1.2px solid #fecaca;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 0 1px 4px rgba(239,68,68,0.06);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 600px;
}
.cross-contact-icon {
  font-size: 1.1em;
  margin-right: 6px;
}
.cross-contact-text > strong {
  color: #b91c1c;
  font-weight: 700;
}

@media (max-width: 520px) {
  .cross-contact-alert.alert-style {
    font-size: 0.82rem;
    padding: 4px 7px;
    border-radius: 6px;
    max-width: 98vw;
    margin-top: 6px;
    gap: 4px;
  }
  .cross-contact-icon {
    font-size: 1em;
    margin-right: 4px;
  }
  .cross-contact-text {
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 80vw;
    display: block;
  }
}

/* Cross-contact alert (beneath title) */
 .cross-contact-alert {
  margin-top: 8px;
  text-align: center;
  width: 100%;
  display: block;
  background: linear-gradient(90deg, #fff5f5 0%, #fde2e2 100%);
  color: #991b1b;
  border: 1.2px solid #fecaca;
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(239,68,68,0.06);
  align-items: center;
  gap: 6px;
  max-width: 600px;
}
@media (max-width: 768px) {
  .cross-contact-alert {
    margin-top: 8px;
    text-align: center;
    width: 100%;
    font-size: 0.95rem;
    padding: 6px 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
}
@media (min-width: 769px) {
  .cross-contact-alert {
    margin-top: 8px;
    text-align: center;
    width: 100%;
    font-size: 1rem;
    padding: 6px 0 0 0;
  }
}

@media (max-width: 768px) {
  .restaurant-name-section {
    text-align: center !important;
    align-items: center !important;
    padding-top: 18px !important;
  }
  .restaurant-name-section h1 {
    padding-top: 12px !important;
  }
}
.restaurant-selector {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.restaurant-selector.modern {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.restaurant-selector h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #333;
}

.selector-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.selector-header h2 {
  margin: 0 0 16px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.search-box {
  margin-bottom: 1.5rem;
}

.search-container {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input-wrapper {
  flex: 1 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: #64748b;
  font-size: 1rem;
  z-index: 1;
  pointer-events: none;
}

.restaurant-search {
  width: 100%;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  background-color: #f8f8f8;
  transition: all 0.3s ease;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: #fafafa;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.restaurant-search:focus {
  border-color: #4CAF50;
  outline: none;
  background-color: white;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.clear-search {
  position: absolute;
  right: 8px;
  background: #e2e8f0;
  border: none;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 0.75rem;
  transition: background-color 0.2s ease;
}

.clear-search:hover {
  background: #cbd5e1;
}

.restaurant-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0;
}

.restaurant-list.compact {
  gap: 8px;
}

.results-section {
  padding: 16px 24px 24px;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.results-count {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.sort-indicator {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.restaurant-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.restaurant-card.modern {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.restaurant-card:hover {
  border-color: #007bff;
  box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}

.restaurant-card.modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #667eea;
}

.restaurant-card.compact {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e1e5e9;
  background: white;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.restaurant-card.selected {
  border-color: #007bff;
  background-color: #f8f9ff;
}

.restaurant-card.compact.selected {
  border-color: #007bff;
  background-color: #f8f9ff;
}

.card-image {
  width: 100%;
  height: 60px;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

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

.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.placeholder-icon {
  font-size: 1.5rem;
  opacity: 0.6;
}

.distance-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
}

.restaurant-details {
  flex: 1 1;
  min-width: 0;
}

.restaurant-details h3 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 1.1em;
}

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

.restaurant-details h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.restaurant-cuisine {
  color: #475569;
  margin: 0 0 5px 0;
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.restaurant-distance {
  color: #007bff;
  margin: 0;
  font-size: 0.85em;
  font-weight: 500;
}

.restaurant-distance {
  font-size: 0.75rem;
  color: #28a745;
  font-weight: 500;
  background: #e8f5e8;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.no-restaurants {
  padding: 2rem;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  color: #666;
}

.search-results {
  margin-top: 15px;
  text-align: left;
  font-size: 0.9rem;
  color: #777;
}

.search-results {
  margin-top: 12px;
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

.search-prompt {
  text-align: center;
  padding: 40px 20px;
  color: #666;
  font-style: italic;
}

.location-btn {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s;
}

.location-enable-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.location-btn:hover {
  background-color: #0056b3;
}

.location-enable-btn:hover {
  transform: translateY(-1px);
}

.nearby-header {
  margin: 16px 0 12px 0;
}

.nearby-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
}

.no-nearby {
  text-align: center;
  padding: 20px;
  color: #666;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 16px;
}

.location-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 8px;
}

.selected-info {
  text-align: center;
  padding: 16px;
  background: #e8f5e8;
  border: 1px solid #28a745;
  border-radius: 8px;
  margin-top: 16px;
  color: #155724;
}

.selected-restaurant-header {
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-start;
}

.back-btn {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  text-decoration: none;
  min-height: 36px;
  align-self: flex-start;
}

.back-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.back-btn:disabled {
  background: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.back-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Hero Section Styles */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  padding: 2.5rem 2rem 2rem;
  border-radius: 20px 20px 0 0;
  position: relative;
  overflow: hidden;
  margin: -24px -24px 0 -24px;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\"%3E%3Cdefs%3E%3Cpattern id=\"grain\" width=\"100\" height=\"100\" patternUnits=\"userSpaceOnUse\"%3E%3Ccircle cx=\"20\" cy=\"20\" r=\"1\" fill=\"white\" opacity=\"0.1\"/%3E%3Ccircle cx=\"80\" cy=\"40\" r=\"1\" fill=\"white\" opacity=\"0.1\"/%3E%3Ccircle cx=\"40\" cy=\"80\" r=\"1\" fill=\"white\" opacity=\"0.1\"/%3E%3C/pattern%3E%3C/defs%3E%3Crect width=\"100%25\" height=\"100%25\" fill=\"url%28%23grain%29\"/%3E%3C/svg%3E");
  pointer-events: none;
}

 .restaurant-hero-content {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-gap: 2rem;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-text {
  color: white;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); /* 👈 match the CTA glow */
}
.hero-subtitle {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0.5rem;
  opacity: 1;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 1;
  margin: 0;
  max-width: 450px;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-item {
  text-align: center;
  color: #1e293b;
  padding: 0.75rem 1rem;
  background: white;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  min-width: 90px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-item:hover {
  transform: translateY(-2px);
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
  color: #667eea;
  text-shadow: none;
}

.stat-label {
  font-size: 0.8rem;
  opacity: 0.8;
  font-weight: 500;
  color: #64748b;
  text-shadow: none;
}

.hero-visual {
  position: relative;
  width: 200px;
  height: 200px;
}

.floating-food-icons {
  position: relative;
  width: 100%;
  height: 100%;
}

.food-icon {
  position: absolute;
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.food-icon:hover {
  transform: scale(1.2) rotate(10deg);
}

.food-icon.pizza {
  top: 10%;
  left: 20%;
  animation-delay: 0s;
}

.food-icon.burger {
  top: 20%;
  right: 10%;
  animation-delay: 1s;
}

.food-icon.sushi {
  bottom: 30%;
  left: 10%;
  animation-delay: 2s;
}

.food-icon.taco {
  bottom: 20%;
  right: 20%;
  animation-delay: 3s;
}

.food-icon.coffee {
  top: 50%;
  left: 50%;
  animation-delay: 4s;
  transform: translate(-50%, -50%);
}

.food-icon.dessert {
  top: 70%;
  right: 40%;
  animation-delay: 5s;
}

/* Search Section Styles */
.search-section {
  padding: 3rem 2rem 2rem;
  background: white;
}

.search-header {
  text-align: center;
  margin-bottom: 2rem;
}

.search-header h2 {
  font-size: 2rem;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.search-header p {
  color: #64748b;
  font-size: 1.1rem;
  margin: 0;
}

.search-container {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.search-input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-size: 1.1rem;
  background: #fafafa;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  z-index: 1;
}

.clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.clear-search:hover {
  background: #e2e8f0;
  transform: translateY(-50%) scale(1.1);
}

/* Quick Filters */
.quick-filters {
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

.filter-label {
  display: block;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 1rem;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.filter-tag {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tag:hover {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Enhanced Restaurant Cards */
.restaurant-card.enhanced {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.restaurant-card.enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.restaurant-card.enhanced .card-image {
  height: 120px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  position: relative;
  overflow: hidden;
}

.restaurant-card.enhanced .card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.restaurant-card.enhanced:hover .card-image::before {
  transform: translateX(100%);
}

.card-content {
  padding: 1rem;
}

.restaurant-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.restaurant-cuisine {
  color: #475569;
  margin: 0 0 5px 0;
  font-size: 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}

.view-menu-hint {
  color: #667eea;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.restaurant-card.enhanced:hover .view-menu-hint {
  opacity: 1;
}

/* Welcome State */
.welcome-state {
  text-align: center;
  padding: 4rem 2rem;
}

.welcome-content {
  max-width: 500px;
  margin: 0 auto;
}

.welcome-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1.5rem;
  animation: bounce 2s infinite;
}

.welcome-content h3 {
  font-size: 1.8rem;
  color: #1e293b;
  margin: 0 0 1rem 0;
  font-weight: 700;
}

.welcome-content p {
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 2rem 0;
}

.welcome-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

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

.feature-item span:last-child {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
}

.enable-location-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.enable-location-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.empty-state p {
  color: #64748b;
  font-size: 1.1rem;
  margin: 0 0 1.5rem 0;
}

.clear-search-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.clear-search-btn:hover {
  background: #5a67d8;
  transform: translateY(-1px);
}

/* Animations */
@keyframes titleGlow {
  0% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
  100% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.3); }
}

@keyframes subtitleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-10px) rotate(5deg); }
  66% { transform: translateY(5px) rotate(-3deg); }
}

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

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1rem 1.5rem;
    margin: -20px -16px 0 -16px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  
  .stat-item {
    min-width: 80px;
    padding: 0.75rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .hero-visual {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }
  
  .search-section {
    padding: 2rem 1rem 1.5rem;
  }
  
  .search-header h2 {
    font-size: 1.5rem;
  }
  
  .search-header p {
    font-size: 1rem;
  }
  
  .welcome-features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .feature-item {
    padding: 1rem;
  }
  
  /* Horizontal Rectangle Restaurant Cards for Mobile */
  .restaurant-card.modern {
    padding: 12px;
    border-radius: 10px;
    min-height: auto;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  
  .card-content {
    padding: 0;
    flex: 1 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .restaurant-header {
    margin-bottom: 2px;
    display: flex;
    flex-direction: column;
  }
  
  .restaurant-name {
    font-size: 1rem !important;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
  }
  
  .restaurant-cuisine {
    font-size: 0.875rem !important;
    margin-bottom: 4px;
    color: #64748b;
  }
  
  .restaurant-distance {
    font-size: 0.75rem !important;
    margin-bottom: 2px;
  }
  
  .allergy-safe-count {
    font-size: 0.75rem !important;
    margin-bottom: 0;
  }
  
  .card-footer {
    display: none; /* Hide footer on mobile to save space */
  }
  
  .view-menu-hint {
    font-size: 0.75rem !important;
    padding: 3px 6px;
  }
  
  /* Compact card images - positioned on the left */
  .card-image {
    height: 60px !important;
    min-width: 60px;
    width: 60px;
    border-radius: 8px;
    flex-shrink: 0;
    order: -1; /* Move image to the left */
  }
  
  .distance-badge {
    font-size: 0.65rem;
    padding: 2px 4px;
  }
}

@media (max-width: 480px) {
  /* Extra Compact Horizontal Restaurant Cards for Small Mobile */
  .restaurant-card.modern {
    padding: 8px;
    border-radius: 8px;
    gap: 8px;
  }
  
  .restaurant-name {
    font-size: 0.9rem !important;
    margin-bottom: 1px;
    line-height: 1.1;
  }
  
  .restaurant-cuisine {
    font-size: 0.8rem !important;
    margin-bottom: 2px;
  }
  
  .restaurant-distance {
    font-size: 0.7rem !important;
    margin-bottom: 1px;
  }
  
  .allergy-safe-count {
    font-size: 0.7rem !important;
  }
  
  .view-menu-hint {
    font-size: 0.7rem !important;
    padding: 2px 6px;
  }
  
  .card-image {
    height: 50px !important;
    min-width: 50px;
    width: 50px;
  }
  
  .distance-badge {
    font-size: 0.6rem;
    padding: 1px 3px;
  }
  
  .card-footer {
    display: none; /* Hide footer on small mobile for maximum space efficiency */
  }
  
  /* Hero styles (will be hidden anyway but keeping for consistency) */
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .restaurant-search-container {
    padding-top: 12px;
  }
}

/* Allergy Safety Indicators */
.allergy-safe-count {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 8px 0;
  padding: 4px 8px;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border: 1px solid #10b981;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #047857;
}

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

/* Enhanced restaurant cards for allergy filtering */
.restaurant-card.enhanced.allergy-filtered {
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.restaurant-card.enhanced.allergy-filtered:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

/* Empty state for allergy filtering */
/* Hero Section Feature Icons */
.hero-features {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.feature-highlight {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e293b;
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-icon {
  font-size: 1.5rem; /* Increased from default size */
  line-height: 1;
  transition: transform 0.2s ease;
}

.feature-highlight:hover .feature-icon {
  transform: scale(1.1);
}

.empty-state.allergy-filtered {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  color: #92400e;
}

.empty-state.allergy-filtered .empty-icon {
  color: #f59e0b;
}

/* Search suggestions for allergy-friendly searches */
.search-suggestions {
  margin-top: 12px;
  padding: 12px;
  background: #f0f9ff;
  border: 1px solid #0ea5e9;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #0c4a6e;
}

.search-suggestions h4 {
  margin: 0 0 8px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0c4a6e;
}

.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.suggestion-tag {
  background: #e0f2fe;
  border: 1px solid #0891b2;
  color: #0c4a6e;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-tag:hover {
  background: #0891b2;
  color: white;
}

/* Allergy Selector Integration */
.allergy-selector-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin: 2rem 0;
  padding: 1.5rem;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.allergy-selector-container .allergy-selector {
  margin-bottom: 0;
  background: none;
  box-shadow: none;
  padding: 0;
}

.allergy-selector-container .allergy-header h3 {
  color: #1f2937;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.allergy-selector-container .allergy-header h3:before {
  content: "🛡️";
  font-size: 1.5rem;
}

/* Enhanced allergy buttons in restaurant selector */
.allergy-selector-container .allergy-buttons {
  gap: 0.75rem;
  justify-content: center;
}

.allergy-selector-container .allergy-btn {
  background: white;
  border: 2px solid #e5e7eb;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.allergy-selector-container .allergy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: #d1d5db;
}

.allergy-selector-container .allergy-btn.selected {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #dc2626;
  color: white;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

.hero-features .feature-icon,
.welcome-state .feature-icon {
  font-size: 1rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.feature-highlight {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Nearby Restaurants Section Styles */
.nearby-restaurants-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

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

.loading-indicator {
  font-size: 0.875rem;
  color: #64748b;
  font-style: italic;
}

.nearby-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #dc2626;
  font-size: 0.875rem;
}

.retry-btn {
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.retry-btn:hover {
  background: #b91c1c;
}

.nearby-restaurants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-top: 12px;
}

.nearby-restaurant-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.nearby-restaurant-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nearby-restaurant-card.selected {
  background: #dbeafe;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.nearby-restaurant-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nearby-restaurant-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

.nearby-restaurant-cuisine {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  text-transform: capitalize;
}

.nearby-restaurant-address {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 2px 0;
  font-style: italic;
}

.branch-indicator {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 500;
}

/* Search loading indicator */
.search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #64748b;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.nearby-restaurant-distance {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 500;
  margin-top: 8px;
  padding: 4px 8px;
  background: #f0fdf4;
  border-radius: 12px;
  display: inline-block;
  width: fit-content;
}

.very-close-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.no-nearby-restaurants {
  text-align: center;
  padding: 24px;
  color: #64748b;
}

.no-nearby-restaurants span {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 8px;
}

.expand-search-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}

.location-prompt {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
}

.location-prompt-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.location-prompt-text {
  flex: 1 1;
}

.location-prompt-text h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.location-prompt-text p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.enable-location-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.enable-location-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Mobile responsive styles for nearby restaurants */
@media (max-width: 768px) {
  .nearby-restaurants-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  
  .nearby-restaurant-card {
    padding: 10px;
    border-radius: 8px;
    min-height: auto;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  
  .nearby-restaurant-info {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .nearby-restaurant-name {
    font-size: 0.9rem !important;
    margin-bottom: 2px;
  }
  
  .nearby-restaurant-cuisine {
    font-size: 0.8rem !important;
  }
  
  .nearby-restaurant-distance {
    font-size: 0.7rem !important;
    margin-top: 4px;
    padding: 2px 6px;
  }
  
  .nearby-restaurant-address {
    font-size: 0.7rem !important;
    margin: 1px 0;
  }
  
  .branch-indicator {
    font-size: 0.65rem !important;
  }
  
  .very-close-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    top: 6px;
    right: 6px;
  }

  /* Hide hero section on mobile to save screen space */
  .mobile-hidden {
    display: none !important;
  }

  /* Adjust spacing when hero is hidden on mobile */
  .restaurant-selector.modern {
    padding-top: 0;
  }

  .selector-header {
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .nearby-restaurants-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .nearby-restaurant-card {
    padding: 8px;
    border-radius: 6px;
    gap: 8px;
  }
  
  .nearby-restaurant-name {
    font-size: 0.85rem !important;
    margin-bottom: 1px;
  }
  
  .nearby-restaurant-cuisine {
    font-size: 0.75rem !important;
  }
  
  .nearby-restaurant-distance {
    font-size: 0.65rem !important;
    margin-top: 3px;
    padding: 1px 4px;
  }
  
  .nearby-restaurant-address {
    font-size: 0.65rem !important;
    margin: 1px 0;
  }
  
  .branch-indicator {
    font-size: 0.6rem !important;
  }
  
  .very-close-badge {
    font-size: 0.55rem;
    padding: 1px 4px;
    top: 4px;
    right: 4px;
  }

  .location-prompt-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

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

  /* More compact mobile layout */
  .selector-header {
    padding: 12px 16px 16px;
  }

  .selector-header h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .search-container {
    gap: 8px;
  }

  .search-input {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 12px 16px 12px 48px;
  }

  /* Make quick filters more compact */
  .quick-filters {
    margin-top: 16px;
  }

  .filter-tags {
    gap: 6px;
  }

  .filter-tag {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .restaurant-search-container {
    padding-top: 12px;
  }
}

/* Unique RestaurantSelector Search Styles */
.restaurant-search-container {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.restaurant-search-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.restaurant-search-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: #fafafa;
  transition: all 0.2s ease;
  box-sizing: border-box;
  outline: none;
}

.restaurant-search-input:focus {
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.restaurant-search-input::placeholder {
  color: #94a3b8;
}

.restaurant-clear-search {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: none;
  border-radius: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.875rem;
  color: #64748b;
  transition: all 0.2s ease;
}

.restaurant-clear-search:hover {
  background: #e2e8f0;
  color: #374151;
}

/* Load More Button Styles */
.load-more-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
  padding: 1rem;
}

.load-more-button {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.load-more-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.load-more-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner-small {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.no-more-results {
  text-align: center;
  padding: 2rem;
  color: #64748b;
  font-style: italic;
}

.no-more-results p {
  margin: 0;
  font-size: 1rem;
}

/* Mobile responsive for unique search */
@media (max-width: 768px) {
  .restaurant-search-input {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 14px 18px;
  }
  
  .restaurant-clear-search {
    right: 10px;
    width: 22px;
    height: 22px;
    font-size: 0.8rem;
  }
  
  .load-more-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}



/* Allergy Selector Mobile Styles */
@media (max-width: 768px) {
  .allergy-selector-container {
    padding: 1rem;
    margin: 1.2rem 0;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  }
  .allergy-selector-container .allergy-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
  }
  .allergy-selector-container .allergy-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.7rem 1.2rem !important;
    justify-content: center !important;
    margin-bottom: 0.7rem !important;
  }
  .allergy-selector-container .allergy-btn {
    min-width: 70px;
    font-size: 0.95rem;
    padding: 0.5rem 0.7rem;
    border-radius: 12px;
    margin-bottom: 0.4rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s, box-shadow 0.2s;
  }
  .allergy-selector-container .allergy-btn.selected {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-color: #dc2626;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.18);
  }
  .allergy-selector-container .allergy-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
  }
  .allergy-selector-container .allergy-selector {
    padding: 0;
    margin-bottom: 0;
  }
  .allergy-selector-container .allergy-header h3:before {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .allergy-selector-container {
    padding: 0.75rem;
    margin: 0.8rem 0;
    border-radius: 12px;
  }
  .allergy-selector-container .allergy-header h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
  }
  .allergy-selector-container .allergy-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem 0.8rem !important;
    justify-content: center !important;
    margin-bottom: 0.4rem !important;
  }
  .allergy-selector-container .allergy-btn {
    min-width: 60px;
    font-size: 0.9rem;
    padding: 0.4rem 0.5rem;
    border-radius: 10px;
    margin-bottom: 0.2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  }
  .allergy-selector-container .allergy-btn.selected {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border-color: #dc2626;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
  }
  .allergy-selector-container .allergy-btn:hover {
    background: #fef2f2;
    color: #dc2626;
    border-color: #fca5a5;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.10);
  }
  .allergy-selector-container .allergy-header h3:before {
    font-size: 1rem;
  }
}

.restaurant-logo-container {
  display: inline-flex;        /* shrink to fit logo */
  align-items: center;
  justify-content: center;
  padding: 6px;
  background-color: #f3f4f6;   /* light grey behind logo only */
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  flex: 0 0 auto;              /* don’t grow */
  margin-right: 10px;          /* space from text */
}

.restaurant-logo {
  max-width: 60px;
  max-height: 60px;
  height: auto;
  width: auto;
  display: block;
}



.results-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.result-item:hover {
  background-color: #f9fafb;
}

.result-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  background-color: #f3f4f6;
  padding: 2px;
  flex-shrink: 0;
}

.result-name {
  font-weight: 600;
  flex: 1 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-cuisine {
  color: #6b7280;
  font-size: 0.85rem;
  white-space: nowrap;
}

.result-distance {
  color: #4b5563;
  font-size: 0.85rem;
  white-space: nowrap;
}

.result-safe {
  color: #10b981;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-left: auto;
}
.result-text {
  display: flex;
  align-items: center;
  justify-content: space-between; /* pushes address to the right */
  width: 100%;
}

.result-name {
  font-weight: 600;
  white-space: nowrap;
}

.result-address {
  font-size: 0.9rem;
  color: #6b7280;
  white-space: nowrap;
}


@media (max-width: 768px) {
  .mobile-address-break {
    display: inline;
  }

  .result-address {
    display: block;
    text-align: right; /* keeps right alignment */
  }
}

/* On desktop, hide the break so it stays one line */
@media (min-width: 769px) {
  .mobile-address-break {
    display: none;
  }
}
@media (max-width: 768px) {
  .result-item {
    flex-wrap: wrap;
    align-items: flex-start; /* allow stacking */
  }

  .result-name {
    flex: 1 1 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    font-weight: 600;
    margin-bottom: 2px;
  }

  .result-cuisine {
    flex: 1 1 100%;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 4px;
  }


  .result-text {
        display: flex;
        flex-direction: column;
      }

      .result-address {
        font-size: 0.85rem;
        color: #6b7280;
      }
}
@media (max-width: 768px) {
  .result-logo {
    display: none;
  }

  .result-text {
    justify-content: flex-start; /* align items left */
  }
}

@media (max-width: 768px) {
  .result-item,
  .nearby-restaurant-card {
    text-align: left;
  }
}

/* Make sure the results list and each card are left-aligned by default */
.results-list { text-align: left; }
.result-item,
.nearby-restaurant-card { text-align: left; }

/* If anything upstream is centering the first child, squash it */
.results-list > *:first-child { text-align: left !important; }

/* Mobile: hide the logo and keep text aligned left */
@media (max-width: 768px) { 
  .result-logo {
    display: none;
  }

  .result-text {
    flex-direction: column;   /* stack vertically */
    align-items: flex-start;  /* left-align contents */
    justify-content: flex-start; /* remove space-between effect */
  }

  .result-left {
    width: 100%;
  }
}

.result-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 4px;
  background-color: #f3f4f6;
  padding: 2px;
  flex-shrink: 0;
}





@media (max-width: 480px) {
  .allergy-selector-container.desktop-only { display: none !important; }
  .allergy-filter-direct.mobile-only { display: block !important; }
}
@media (min-width: 481px) {
  .allergy-filter-direct.mobile-only { display: none !important; }
}

/* ===== DemoMenu allergen styles (copied) ===== */
/* Grid container */
.demomenu-allergen-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 8px;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Pill */
.demomenu-allergen-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.demomenu-allergen-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.demomenu-allergen-pill.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* Icon */
.demomenu-allergen-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

/* Mobile sizing tweaks (exactly like DemoMenu.css) */
@media (max-width: 480px) {
  .demomenu-allergen-pills {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
    gap: 6px;
  }
  .demomenu-allergen-pill {
    padding: 4px 6px;
    font-size: 0.65rem;
    min-height: 36px;
  }
  .demomenu-allergen-icon {
    font-size: 1rem;
  }
}

/* Small heading + clear button area for the mobile block */
.allergy-filter-direct h4 {
  margin: 0 0 8px 0;
  font-size: 0.9rem;
  color: #1f2937;
  font-weight: 600;
}

.clear-allergies {
  margin-top: 8px;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.clear-allergies:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}



/* --- RestaurantSelector CTA (namespaced) --- */
.restaurant-selector-cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.restaurant-selector-cta-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.restaurant-selector-cta-section h2 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 2rem;
  font-weight: 800;
}

.restaurant-selector-cta-section p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.restaurant-selector-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.restaurant-selector-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 160px;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.restaurant-selector-cta-btn-primary {
  background: #fff;
  color: #667eea;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.restaurant-selector-cta-btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* ===== Mobile: tablet and down ===== */
@media (max-width: 768px) {
  .restaurant-selector-cta-section {
    padding: 36px 0;              /* was 64px */
  }

  .restaurant-selector-cta-content {
    padding: 0 16px;              /* was 24px */
    max-width: 640px;
  }

  .restaurant-selector-cta-section h2 {
    font-size: 1.6rem;            /* was 2rem */
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .restaurant-selector-cta-section p {
    font-size: 0.98rem;           /* was 1.05rem */
    line-height: 1.6;             /* slightly tighter */
    margin: 0 auto 20px;          /* was 28px */
    max-width: 520px;             /* keeps lines shorter on mid phones */
  }

  .restaurant-selector-cta-buttons {
    gap: 12px;                    /* was 20px */
  }

  .restaurant-selector-cta-btn {
    padding: 14px 20px;           /* was 16px 32px */
    border-radius: 10px;          /* a touch smaller radius */
    font-size: 0.95rem;
    min-width: 0;                 /* allow shrinking */
    width: 100%;                  /* go full-width on mobile */
    max-width: 420px;             /* but don’t get silly-wide on tablets */
    margin: 0 auto;
  }
}

/* ===== Small phones ===== */
@media (max-width: 480px) {
  .restaurant-selector-cta-section {
    padding: 28px 0;
  }

  .restaurant-selector-cta-content {
    padding: 0 14px;
  }

  .restaurant-selector-cta-section h2 {
    font-size: 1.35rem;
    margin-bottom: 8px;
  }

  .restaurant-selector-cta-section p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 16px;
    max-width: 100%;
  }

  .restaurant-selector-cta-buttons {
    gap: 10px;
  }

  .restaurant-selector-cta-btn {
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 0.95rem;
    box-shadow: 0 3px 12px rgba(255,255,255,0.28); /* slightly reduced for smaller screens */
  }
}

/* ===== Ultra-small devices & safe areas ===== */
@media (max-width: 360px) {
  .restaurant-selector-cta-section {
    padding-top: calc(22px + env(safe-area-inset-top));
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }

  .restaurant-selector-cta-section h2 {
    font-size: 1.2rem;
  }

  .restaurant-selector-cta-btn {
    padding: 11px 14px;
  }
}

/* ===== Motion-friendly hover on touch ===== */
@media (hover: none) and (pointer: coarse) {
  .restaurant-selector-cta-btn-primary:hover {
    transform: none;              /* avoid jumpiness on tap */
    box-shadow: 0 4px 14px rgba(255,255,255,0.3);
  }
}

/* CTA Bottom Section (RestaurantSelector) */
.restaurant-selector-cta-bottom {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  text-align: center;
  padding: 64px 24px;
  border-radius: 0 0 16px 16px;
  margin-top: 48px;
}

.restaurant-selector-cta-content {
  max-width: 1100px;
  margin: 0 auto;
}

.restaurant-selector-cta-content h2 {
  color: white;
  margin-bottom: 16px;
  font-size: 2rem;
  font-weight: 800;
}

.restaurant-selector-cta-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.6;
}

.restaurant-selector-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.restaurant-selector-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 160px;
  justify-content: center;
  cursor: pointer;
}

.restaurant-selector-cta-btn.primary {
  background: white;
  color: #667eea;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.restaurant-selector-cta-btn.primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.restaurant-selector-cta-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #fff;
}

@media (max-width: 600px) {
  .restaurant-selector-cta-bottom {
    padding: 32px 16px;
    margin-top: 32px;
    border-radius: 0; /* flush edges for mobile */
  }

  .restaurant-selector-cta-content h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .restaurant-selector-cta-content p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .restaurant-selector-cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .restaurant-selector-cta-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    min-width: 0;
    min-width: initial;
  }

  .restaurant-selector-cta-note {
    font-size: 0.85rem;
    margin-top: 8px;
  }
}

.restaurant-search-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: left;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.search-header-icon {
  font-size: 1.5rem;
  color: #667eea;
  margin-bottom: 0;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
}

.search-header-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
}

@media (max-width: 600px) {
  .restaurant-search-header {
    margin-bottom: .5rem;
    margin-top: 3rem;
    gap: 0.4rem;
  }
  .search-header-icon {
    font-size: 1.2rem;
    margin-bottom: 0;
    margin-right: 0.3rem;
  }
  .search-header-title {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 700;
  }
}

.search-header-description {
  font-size: .5rem;
  color: #64748b;
  margin: 0.5rem 0 0;
}

@media (max-width: 600px) {
  .restaurant-search-header {
    margin-bottom: .5rem;
    padding: 0;
  }
  .search-header-icon {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  .search-header-title {
    font-size: .9rem;
    margin: 0;
    font-weight: 700;
  }
  .search-header-description {
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
  }
}

.hero-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.hero-btn.primary {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.hero-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.hero-btn.secondary {
  background: white;
  color: #1e293b;
  border: 2px solid #e2e8f0;
}

.hero-btn.secondary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Badge at top of hero */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
}

.hero-badge .badge-icon {
  font-size: 1.2rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
.hero-title-slogan {
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
  background: linear-gradient(90deg, #60a5fa, #f472b6 60%, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 520px;
  margin: 0 auto 1.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hero-gradient-text {
  display: inline-block;
  background: linear-gradient(135deg, #9333ea, #9333ea);
  -webkit-background-clip: text;
  font-weight: 800;
}

/* Modern gradient background with soft radial accents */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  padding: 2.75rem 2rem 2rem;
  border-radius: 20px 20px 0 0;
  position: relative;
  overflow: hidden;
  margin: -24px -24px 0 -24px;
}

/* Keep grid but give right column some width */
.restaurant-hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-gap: 2rem;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Badge / title / description polish */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin: 0 0 0.75rem 0;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  max-width: 560px;
  margin: 0 0 1.25rem 0;
}


.hero-buttons {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  border: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-btn:first-child {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
}
.hero-btn:first-child:hover { transform: translateY(-2px); }

.hero-btn:last-child {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.hero-btn:last-child:hover { transform: translateY(-2px); }

.hero-benefits h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.hero-benefits ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
}

.hero-benefits li {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  align-items: start;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
  font-size: 1.2rem;
  color: #1e3a8a;
  font-weight: bold;
}

.hero-benefits p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: #475569;
}
/* Right column container */
.hero-right {
  display: grid;
  grid-gap: 1.2rem;
  gap: 1.2rem;
}

/* Shared hero card style (glass look) */
.hero-card {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 1.25rem;
  color: #f9fafb; /* very light text */
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/* Benefits card */
.hero-benefits h3 {
  margin: 0 0 1rem 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff; /* white for readability */
}

.hero-benefits ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 1rem;
  gap: 1rem;
}

.hero-benefits li {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-gap: 0.75rem;
  gap: 0.75rem;
  align-items: start;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  font-size: 1.2rem;
  color: #fff;
  font-weight: bold;
}

.hero-benefits strong {
  color: #fff;
  font-size: 0.95rem;
}

.hero-benefits p {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
}

/* Proof card */
.hero-proof .proof-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-radius: 10px;
}

.proof-badge {
  display: inline-block;
  min-width: 54px;
  text-align: center;
  padding: 0.35rem 0.65rem;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.proof-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}


.hero-buttons .hero-btn {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-title {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-buttons .hero-btn {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}

.hero-tagline {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 300;
  font-style: italic;
  color: #cbd5e1;             /* softer text color */
  text-align: center;
  letter-spacing: 0.5px;
  opacity: 0.9;

  /* 🚫 strip away "button" look */
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.hero-btn.restaurant-selector-cta-btn-primary {
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3) !important;
}
/* Modern Admin Upload Styling */

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

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

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

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

@keyframes tabSlide {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.admin-upload {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #38bdf8 100%);
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  position: relative;
  overflow-x: hidden;
}

.admin-upload::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 255, 214, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 120, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.admin-upload > * {
  position: relative;
  z-index: 1;
}

/* Header */
.admin-upload-header {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInUp 0.6s ease-out;
}

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

.header-content h1 {
  margin: 0 0 8px 0;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b, #475569, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content p {
  margin: 0;
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 500;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

.tab-button {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  background: transparent;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tab-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.tab-button:hover::before {
  left: 100%;
}

.tab-button.active {
  background: rgba(255, 255, 255, 0.95);
  color: #1e293b;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.tab-icon {
  font-size: 1.2rem;
}

/* Notification Message */
.notification-message {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 16px 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInScale 0.4s ease-out;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.notification-message.success {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(187, 247, 208, 0.9));
  color: #166534;
}

.notification-message.error {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(252, 165, 165, 0.9));
  color: #991b1b;
}

.message-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.close-notification {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  color: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.close-notification:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

/* Tab Content */
.tab-content {
  animation: fadeInUp 1s ease-out;
}

.form-container {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
  padding-top: 48px; /* Add padding to avoid overlap with the button */
}

.form-header {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.8));
  padding: 32px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  text-align: center;
}

.form-header h2 {
  margin: 0 0 8px 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
}

.form-header p {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
}

/* Modern Form */
.modern-form {
  padding: 32px;
}

.form-section {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.6);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section h3 {
  margin: 0 0 24px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 24px;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: linear-gradient(145deg, #f8fafc, #ffffff);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.15),
    inset 0 2px 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ef4444;
  background: rgba(254, 242, 242, 0.5);
  box-shadow: 
    0 0 0 4px rgba(239, 68, 68, 0.15),
    inset 0 2px 4px rgba(239, 68, 68, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
  transition: all 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  color: #d1d5db;
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.error-text {
  color: #ef4444;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 4px;
}

/* Corporate Toggle */
.corporate-toggle {
  margin-bottom: 24px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-weight: 600;
  color: #374151;
  padding: 16px 20px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.toggle-label:hover {
  background: rgba(239, 246, 255, 0.8);
  border-color: #3b82f6;
}

.toggle-label input {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 60px;
  height: 32px;
  background: #e2e8f0;
  border-radius: 16px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.toggle-slider .toggle-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input:checked + .toggle-slider {
  background: #3b82f6;
}

.toggle-label input:checked + .toggle-slider .toggle-thumb {
  transform: translateX(28px);
}

/* Allergens Grid */
.allergens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  background: rgba(248, 250, 252, 0.6);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.allergen-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.allergen-checkbox:hover {
  background: rgba(239, 246, 255, 0.8);
}

.allergen-checkbox input {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.allergen-checkbox input:checked + .checkbox-custom {
  background: #3b82f6;
  border-color: #3b82f6;
}

.allergen-checkbox input:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Dietary Information Styles */
.dietary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  background: rgba(240, 253, 244, 0.5);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #bbf7d0;
}

.dietary-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 500;
}

.dietary-checkbox:hover {
  background: rgba(220, 252, 231, 0.8);
}

.dietary-checkbox input {
  display: none;
}

.checkbox-custom.dietary {
  width: 20px;
  height: 20px;
  border: 2px solid #bbf7d0;
  border-radius: 6px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.dietary-checkbox input:checked + .checkbox-custom.dietary {
  background: #16a34a;
  border-color: #16a34a;
}

.dietary-checkbox input:checked + .checkbox-custom.dietary::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Image Upload Section */
.image-upload-section {
  background: rgba(248, 250, 252, 0.6);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

/* Form Actions */
.form-actions {
  display: flex;
  justify-content: center;
  padding-top: 32px;
  border-top: 1px solid rgba(241, 245, 249, 0.8);
  margin-top: 32px;
}

.submit-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 18px 36px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
  min-width: 200px;
  justify-content: center;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.submit-btn:hover:not(:disabled)::before {
  left: 100%;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Bulk Upload Button */
.bulk-upload-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.bulk-upload-button .submit-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .admin-upload {
    padding: 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tab-navigation {
    flex-direction: column;
    gap: 4px;
  }
  
  .tab-button {
    padding: 12px 20px;
  }
}

@media (max-width: 768px) {
  .admin-upload {
    padding: 16px;
  }
  
  .admin-upload-header {
    padding: 24px;
  }
  
  .header-content h1 {
    font-size: 2rem;
  }
  
  .modern-form {
    padding: 24px;
  }
  
  .form-section h3 {
    font-size: 1.1rem;
  }
  
  .allergens-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }
  
  .submit-btn {
    padding: 16px 24px;
    font-size: 1rem;
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .admin-upload-header {
    padding: 20px;
  }
  
  .header-content h1 {
    font-size: 1.75rem;
  }
  
  .header-content p {
    font-size: 1rem;
  }
  
  .modern-form {
    padding: 20px;
  }
  
  .form-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
  }
  
  .allergens-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .toggle-label {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
}
.image-upload {
  margin: 15px 0;
}

.image-upload-label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.image-upload-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

.upload-progress {
  background: #e3f2fd;
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
  text-align: center;
  color: #1976d2;
}

.image-preview {
  margin: 10px 0;
  text-align: center;
}

.preview-image {
  max-width: 200px;
  max-height: 150px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #ddd;
  display: block;
  margin: 0 auto 10px auto;
}

.remove-image-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.remove-image-btn:hover:not(:disabled) {
  background-color: #c82333;
}

.remove-image-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.upload-hint {
  font-size: 12px;
  color: #666;
  margin: 5px 0 0 0;
}

/* Address Autocomplete Component */
.address-autocomplete {
  position: relative;
  width: 100%;
}

.address-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #374151;
  font-size: 0.875rem;
}

.required-asterisk {
  color: #ef4444;
  margin-left: 2px;
}

.address-autocomplete .address-input-container {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  background: white !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: text;
}

.address-autocomplete .address-input-container:hover {
  border-color: #9ca3af !important;
}

.address-autocomplete .address-input-container:focus-within {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.address-autocomplete .address-input-container.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.address-autocomplete .address-input-container.disabled {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
  cursor: not-allowed;
}

.address-autocomplete .address-input {
  flex: 1 1;
  padding: 12px 16px;
  border: none !important;
  outline: none;
  background: transparent !important;
  font-size: 0.875rem;
  color: #374151 !important;
  border-radius: 8px;
  box-shadow: none !important;
}

.address-autocomplete .address-input::placeholder {
  color: #9ca3af !important;
}

.address-autocomplete .address-input:disabled {
  cursor: not-allowed;
  color: #9ca3af !important;
}

.address-autocomplete .address-input:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.address-input-icon {
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: #6b7280;
}

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

.loading-spinner {
  animation: spin 1s linear infinite;
  font-size: 0.875rem;
}

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

/* Suggestions Dropdown */
.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  margin-top: -1px;
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.15s ease;
}

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

.suggestion-item:hover,
.suggestion-item.highlighted {
  background: #f1f5f9;
}

.suggestion-item:hover .suggestion-main,
.suggestion-item.highlighted .suggestion-main {
  color: #1e293b;
}

.suggestion-item:hover .suggestion-full,
.suggestion-item.highlighted .suggestion-full {
  color: #475569;
}

.suggestion-main {
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
  margin-bottom: 2px;
}

.suggestion-full {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.3;
}

.address-error {
  margin-top: 6px;
  font-size: 0.75rem;
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 4px;
}

.address-error::before {
  content: "⚠️";
  font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .address-input {
    padding: 10px 14px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .suggestions-dropdown {
    max-height: 200px;
  }
  
  .suggestion-item {
    padding: 10px 14px;
  }
}

/* Override conflicts from parent form styles */
.form-group .address-autocomplete .address-input,
.address-input-group .address-autocomplete .address-input,
.compact-form .address-autocomplete .address-input {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 12px 16px !important;
  font-size: 0.875rem !important;
  color: #374151 !important;
  width: auto !important;
  flex: 1 1 !important;
}

.form-group .address-autocomplete .address-input:focus,
.address-input-group .address-autocomplete .address-input:focus,
.compact-form .address-autocomplete .address-input:focus {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.form-group .address-autocomplete .address-input-container,
.address-input-group .address-autocomplete .address-input-container,
.compact-form .address-autocomplete .address-input-container {
  background: white !important;
  border: 1px solid #d1d5db !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.form-group .address-autocomplete .address-input-container:focus-within,
.address-input-group .address-autocomplete .address-input-container:focus-within,
.compact-form .address-autocomplete .address-input-container:focus-within {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.form-group .address-autocomplete .address-input-container.error,
.address-input-group .address-autocomplete .address-input-container.error,
.compact-form .address-autocomplete .address-input-container.error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Specific override for location-autocomplete class in ManageLocations */
.location-autocomplete.address-autocomplete .address-input,
.location-autocomplete.address-autocomplete .address-input:focus {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  width: 100% !important;
}

.location-autocomplete.address-autocomplete .address-input-container {
  width: 100% !important;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .address-input-container {
    border-width: 2px;
  }
  
  .suggestion-item:hover,
  .suggestion-item.highlighted {
    background: #e5e7eb;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .address-autocomplete {
    color: #f9fafb;
  }
  
  .address-label {
    color: #f3f4f6;
  }
  
  .address-input-container {
    background: #374151;
    border-color: #4b5563;
  }
  
  .address-input-container:hover {
    border-color: #6b7280;
  }
  
  .address-input-container:focus-within {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
  }
  
  .address-input {
    color: #f9fafb;
  }
  
  .address-input::placeholder {
    color: #9ca3af;
  }
  
  .suggestions-dropdown {
    background: #374151;
    border-color: #4b5563;
  }
  
  .suggestion-item {
    border-bottom-color: #4b5563;
  }
  
  .suggestion-item:hover,
  .suggestion-item.highlighted {
    background: #4b5563;
  }
  
  .suggestion-main {
    color: #f3f4f6;
  }
  
  .suggestion-full {
    color: #d1d5db;
  }
}

/* Focus indicators for accessibility */
.address-input:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.suggestion-item:focus {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
}

/* Animation for dropdown appearance */
.suggestions-dropdown {
  animation: dropdownSlideIn 0.15s ease-out;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Modern AdminView Styling with Glassmorphism */

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

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

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.admin-view {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  position: relative;
  overflow-x: hidden;
}

.admin-view::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 255, 214, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 120, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.admin-view > * {
  position: relative;
  z-index: 1;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.loading-spinner {
  margin-bottom: 24px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.loading-text h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Header */
.admin-header {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInUp 0.6s ease-out;
  text-align: center;
}

.header-content h1 {
  margin: 0 0 8px 0;
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.admin-subtitle {
  margin: 0;
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Message Toast */
.message-toast {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInScale 0.4s ease-out;
}

.message-toast.success {
  border-left: 4px solid #22c55e;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.message-toast.error {
  border-left: 4px solid #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1;
}

.toast-icon {
  font-size: 1.25rem;
  animation: float 2s ease-in-out infinite;
}

.toast-text {
  font-weight: 500;
  color: #374151;
}

.toast-close {
  background: rgba(107, 114, 128, 0.1);
  border: none;
  color: #6b7280;
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  background: rgba(107, 114, 128, 0.2);
  transform: scale(1.1);
}

/* Filter Banner */
.filter-banner {
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInUp 0.8s ease-out;
}

.filter-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.filter-icon {
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.2);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.filter-text h3 {
  color: white;
  margin: 0 0 4px 0;
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.filter-text p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 0.95rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Statistics Overview */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 32px;
  animation: slideInUp 1s ease-out;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  z-index: 1;
}

.stat-card.total::before { background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%); }
.stat-card.approved::before { background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%); }
.stat-card.pending::before { background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%); }
.stat-card.denied::before { background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%); }
.stat-card.corporate::before { background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%); }
.stat-card.individual::before { background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%); }

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

.stat-content {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.stat-icon {
  font-size: 2rem;
  background: rgba(248, 250, 252, 0.8);
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.6);
  flex-shrink: 0;
}

.stat-details {
  flex: 1 1;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Content */
.admin-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 32px;
  gap: 32px;
  align-items: start;
  animation: slideInUp 1.2s ease-out;
}

.admin-content-single {
  display: flex;
  flex-direction: column;
  animation: slideInUp 1.2s ease-out;
}

/* Panel Styling */
.restaurants-panel {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

/* Menu Items Modal */
.menu-items-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.menu-items-modal {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 100%;
  max-width: 1200px;
  max-height: 90vh;
  overflow: hidden;
  animation: slideInScale 0.4s ease-out;
}

.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.6);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.modal-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title h2 {
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.close-modal-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
}

.close-modal-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.1);
}

.modal-content {
  padding: 32px;
  max-height: calc(90vh - 100px);
  overflow-y: auto;
  width: 100%;
  box-sizing: border-box;
}

.panel-header {
  padding: 24px 32px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.6);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-title h2 {
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-icon {
  font-size: 1.5rem;
}

.count-badge {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

/* Search Container */
.search-container {
  margin-bottom: 0;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background: rgba(248, 250, 252, 0.8);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-icon {
  position: absolute;
  left: 16px;
  color: #64748b;
  font-size: 1rem;
  z-index: 2;
}

.clear-search {
  position: absolute;
  right: 12px;
  background: #64748b;
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.clear-search:hover {
  background: #475569;
  transform: scale(1.1);
}

.search-btn {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.search-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.search-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.search-actions {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.load-all-btn {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.load-all-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.load-all-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Pagination Controls */
.pagination-controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.pagination-btn {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.pagination-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.pagination-info {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  min-width: 200px;
}

/* Panel Content */
.panel-content {
  padding: 0 32px 32px 32px;
}

/* Restaurant Grid */
.restaurant-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.restaurant-card {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.restaurant-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.restaurant-card.pending::before {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.restaurant-card.denied::before {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  opacity: 0.7;
}

.restaurant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.9);
}

.restaurant-header {
  margin-bottom: 16px;
}

.restaurant-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.restaurant-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.restaurant-details {
  flex: 1 1;
  min-width: 0;
}

.restaurant-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.restaurant-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.approved {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.denied {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.business-type-badge {
  background: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Restaurant Meta */
.restaurant-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  align-items: flex-start;
  min-width: 200px;
}

.meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #64748b;
  width: 100%;
  padding: 4px 0;
}

.meta-icon {
  color: #94a3b8;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Restaurant Description */
.restaurant-description {
  margin-bottom: 16px;
}

.restaurant-description p {
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* Restaurant Actions */
.restaurant-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  margin-left: auto;
  min-width: 120px;
}

.action-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  width: 100%;
  min-width: 110px;
}

.action-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.action-btn.edit {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.action-btn.menu {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.action-btn.qr {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: white;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.3);
}

.action-btn.delete {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

/* QR Display */
.qr-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.qr-code {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-link {
  font-size: 0.75rem;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.qr-link:hover {
  text-decoration: underline;
}

/* Restaurant ID Display */
.restaurant-id-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 12px;
  margin-bottom: 24px;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.id-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
}

.id-value {
  font-size: 0.875rem;
  font-family: 'Monaco', 'Menlo', monospace;
  color: #374151;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

/* Add Item Button */
.add-item-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.add-item-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Form Containers */
.add-form-container,
.edit-form-container {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.add-form-header,
.edit-form-header {
  margin-bottom: 20px;
}

.add-form-header h3,
.edit-form-header h4 {
  color: #1e293b;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Form Styling */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 24px;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.form-input,
.form-select,
.form-textarea {
  padding: 12px 16px;
  border: 2px solid rgba(226, 232, 240, 0.6);
  border-radius: 12px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Readonly Input Styling */
.readonly-input {
  background: rgba(248, 250, 252, 0.8) !important;
  border-color: rgba(203, 213, 225, 0.6) !important;
  color: #64748b !important;
  cursor: not-allowed !important;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  -webkit-user-select: all;
          user-select: all;
}

.readonly-input:focus {
  border-color: rgba(203, 213, 225, 0.6) !important;
  box-shadow: none !important;
  background: rgba(248, 250, 252, 0.8) !important;
}

/* Checkbox Styling */
.checkbox-group {
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 8px 0;
}

.checkbox-text {
  font-weight: 500;
  color: #374151;
}

.allergen-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  margin-top: 12px;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
}

.btn-submit {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-cancel {
  background: rgba(248, 250, 252, 0.8);
  color: #374151;
  border: 2px solid rgba(226, 232, 240, 0.6);
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.btn-cancel:hover {
  background: rgba(241, 245, 249, 0.9);
  border-color: rgba(203, 213, 225, 0.8);
  transform: translateY(-1px);
}

/* Menu Items Grid */
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.menu-item-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  padding: 20px 20px 30px 20px;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  overflow: visible;
  word-wrap: break-word;
}

.menu-item-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
}

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

.item-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.item-category {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.2);
  display: inline-block;
}

.item-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #059669;
  flex-shrink: 0;
}

.menu-item-description {
  margin-bottom: 16px;
}

.menu-item-description p {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* Allergens Display */
.allergens-display {
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(254, 242, 242, 0.8);
  border-radius: 12px;
  border: 1px solid rgba(252, 165, 165, 0.3);
}

.allergens-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #dc2626;
  margin-bottom: 8px;
}

.allergens-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.allergen-tag {
  padding: 4px 8px;
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Menu Item Actions */
.menu-item-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
  min-height: 40px;
}

/* Item ID */
.item-id {
  font-size: 0.7rem;
  color: #94a3b8;
  font-family: 'Monaco', 'Menlo', monospace;
  background: rgba(248, 250, 252, 0.8);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  display: inline-block;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 40px;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 16px;
  border: 2px dashed rgba(203, 213, 225, 0.6);
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.6;
  animation: float 3s ease-in-out infinite;
}

.empty-text h3 {
  color: #64748b;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.empty-text p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .admin-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .menu-items-modal {
    max-width: 95vw;
    margin: 10px;
  }
}

@media (max-width: 1024px) {
  .admin-view {
    padding: 16px;
  }
  
  .stats-overview {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }
  
  .panel-header {
    padding: 20px 24px;
  }
  
  .panel-content {
    padding: 0 24px 24px 24px;
  }
}

@media (max-width: 768px) {
  .admin-header {
    padding: 24px;
  }
  
  .header-content h1 {
    font-size: 1.75rem;
  }
  
  .stats-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .restaurant-actions {
    flex-direction: column;
    align-items: flex-end;
    margin-left: auto;
    min-width: 100px;
  }
  
  .action-btn {
    justify-content: center;
    width: 100%;
    min-width: 95px;
  }
  
  .restaurant-meta {
    min-width: 180px;
  }
  
  .meta-item {
    font-size: 0.75rem;
    padding: 3px 0;
  }
  
  .filter-content {
    flex-direction: column;
    text-align: center;
  }
  
  .pagination-controls {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .pagination-info {
    min-width: auto;
    order: -1;
  }
  
  .menu-items-modal-overlay {
    padding: 10px;
  }
  
  .menu-items-modal {
    max-height: 95vh;
    border-radius: 16px;
  }
  
  .modal-header {
    padding: 20px 24px;
  }
  
  .modal-title {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .modal-actions {
    justify-content: space-between;
  }
  
  .modal-content {
    padding: 24px;
  }
  
  .menu-item-card {
    padding: 16px 16px 24px 16px;
  }
  
  .menu-item-actions {
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-start;
  }
  
  .menu-items-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .stats-overview {
    grid-template-columns: 1fr;
  }
  
  .panel-header {
    padding: 16px 20px;
  }
  
  .panel-content {
    padding: 0 20px 20px 20px;
  }
  
  .restaurant-card {
    padding: 20px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-submit,
  .btn-cancel {
    width: 100%;
    justify-content: center;
  }
}
/* Modern Admin Statistics Styling */

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

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

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.admin-statistics {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #38bdf8 100%);
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  position: relative;
  overflow-x: hidden;
}

.admin-statistics::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 255, 214, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 120, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.admin-statistics > * {
  position: relative;
  z-index: 1;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.loading-spinner {
  margin-bottom: 24px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.loading-text h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Error State */
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: pulse 2s infinite;
}

.error-text h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.error-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0 0 24px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.retry-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.retry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Header */
.statistics-header {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInUp 0.6s ease-out;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.header-content {
  flex: 1 1;
}

.header-content h1 {
  margin: 0 0 8px 0;
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b, #475569, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content p {
  margin: 0;
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: flex-start;
}

.refresh-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.refresh-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.refresh-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.refresh-icon.spinning {
  animation: spin 1s linear infinite;
}

/* Stats Overview */
.stats-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 32px;
  animation: slideInUp 0.8s ease-out;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  z-index: 1;
}

.stat-card.restaurants::before {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.stat-card.menu-items::before {
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.stat-card.pending::before {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.stat-card.qr-codes::before {
  background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

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

.stat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.stat-icon {
  font-size: 1.5rem;
  background: rgba(248, 250, 252, 0.8);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.stat-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-growth, .stat-alert, .stat-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.stat-growth {
  color: #16a34a;
  background: rgba(34, 197, 94, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.stat-alert {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.stat-detail {
  color: #64748b;
}

/* Analytics Grid */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
  animation: slideInUp 1s ease-out;
}

.analytics-card {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
}

.analytics-card:hover {
  transform: translateY(-4px);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

.admin-statistics-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.6);
}

.card-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-badge {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.header-badge.healthy {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.card-content {
  padding: 24px;
}

/* Breakdown Items */
.breakdown-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.breakdown-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
  cursor: pointer;
}

.breakdown-item:hover {
  background: rgba(239, 246, 255, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateX(4px);
}

.breakdown-item.corporate {
  border-left: 4px solid #8b5cf6;
}

.breakdown-item.individual {
  border-left: 4px solid #22c55e;
}

.item-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.6);
  flex-shrink: 0;
}

.item-content {
  flex: 1 1;
  min-width: 0;
}

.item-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.item-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 4px;
}

.item-percentage {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.item-bar {
  width: 80px;
  height: 6px;
  background: rgba(226, 232, 240, 0.6);
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
}

.item-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s ease;
}

.item-fill.corporate {
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
}

.item-fill.individual {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

/* Cuisines List */
.cuisines-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cuisine-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.cuisine-item:hover {
  background: rgba(239, 246, 255, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateX(2px);
}

.cuisine-rank {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.cuisine-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1;
  min-width: 0;
}

.cuisine-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.cuisine-details {
  flex: 1 1;
  min-width: 0;
}

.cuisine-name {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.cuisine-count {
  font-size: 0.75rem;
  color: #64748b;
}

.cuisine-bar {
  width: 60px;
  height: 4px;
  background: rgba(226, 232, 240, 0.6);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.cuisine-fill {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #a855f7);
  border-radius: 2px;
  transition: width 0.8s ease;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.category-item {
  text-align: center;
  padding: 16px 12px;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.category-item:hover {
  background: rgba(239, 246, 255, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.category-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

.category-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.category-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  text-transform: capitalize;
}

.category-bar {
  width: 100%;
  height: 3px;
  background: rgba(226, 232, 240, 0.6);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.category-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  border-radius: 2px;
  transition: width 0.8s ease;
}

/* Health Metrics */
.health-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.health-metric {
  text-align: center;
  padding: 16px 12px;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.health-metric:hover {
  background: rgba(239, 246, 255, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.metric-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

.metric-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 4px;
}

.metric-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-status.good {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.metric-status.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Pricing List */
.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.pricing-item:hover {
  background: rgba(239, 246, 255, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateX(2px);
}

.pricing-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1;
  min-width: 0;
}

.pricing-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.pricing-details {
  flex: 1 1;
  min-width: 0;
}

.pricing-category {
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.pricing-amount {
  font-size: 1rem;
  font-weight: 700;
  color: #16a34a;
}

.pricing-bar {
  width: 60px;
  height: 4px;
  background: rgba(226, 232, 240, 0.6);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.pricing-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border-radius: 2px;
  transition: width 0.8s ease;
}

/* Allergens Grid */
.allergens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.allergen-item {
  text-align: center;
  padding: 16px 12px;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.allergen-item:hover {
  background: rgba(254, 242, 242, 0.8);
  border-color: rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

.allergen-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
  display: block;
}

.allergen-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.allergen-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.allergen-name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  text-transform: capitalize;
}

/* Recent Activity Section */
.recent-activity-section {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInUp 1.2s ease-out;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.6);
}

.section-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-badge {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Recent Restaurants Grid */
.recent-restaurants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.recent-restaurant-card {
  background: rgba(248, 250, 252, 0.8);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.recent-restaurant-card:hover {
  background: rgba(239, 246, 255, 0.9);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.restaurant-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.restaurant-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1;
  min-width: 0;
}

.restaurant-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.restaurant-details {
  flex: 1 1;
  min-width: 0;
}

.restaurant-details h4 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.restaurant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cuisine-tag {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.corporate-tag {
  background: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.restaurant-date {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  flex-shrink: 0;
}

.restaurant-description {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
}

.restaurant-status {
  display: flex;
  justify-content: flex-end;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-indicator.approved {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-indicator.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-indicator.denied {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 40px;
  animation: fadeIn 0.6s ease-out;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.empty-subtext {
  font-size: 0.875rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Footer */
.statistics-footer {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 24px 32px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInUp 1.4s ease-out;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.875rem;
  color: #64748b;
}

.footer-actions {
  flex-shrink: 0;
}

.footer-refresh {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 12px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-refresh:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

/* Latest Menu Items Section */
.latest-menu-items-section {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInUp 1.2s ease-out;
}

.latest-menu-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.menu-item-card {
  background: rgba(248, 250, 252, 0.8);
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.menu-item-card:hover {
  background: rgba(239, 246, 255, 0.9);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.menu-item-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
}

.menu-item-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: #16a34a;
}

.menu-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: #64748b;
}

.menu-item-category {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 600;
}

.menu-item-allergens {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 600;
}

.menu-item-description {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
}

.menu-item-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.data-table th, .data-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.data-table th {
  background: rgba(248, 250, 252, 0.8);
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.data-table tr:hover {
  background: rgba(239, 246, 255, 0.8);
}

.data-table td {
  font-size: 0.875rem;
  color: #374151;
}

.data-table td:last-child {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .admin-statistics {
    padding: 20px;
  }
  
  .statistics-header {
    flex-direction: column;
    gap: 20px;
  }
  
  .stats-overview {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
  
  .analytics-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .admin-statistics {
    padding: 16px;
  }
  
  .statistics-header {
    padding: 24px;
  }
  
  .header-content h1 {
    font-size: 1.75rem;
  }
  
  .stats-overview {
    grid-template-columns: 1fr;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  
  .recent-restaurants-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: left;
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
  
  .health-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .statistics-header {
    padding: 20px;
  }
  
  .header-content h1 {
    font-size: 1.5rem;
  }
  
  .admin-statistics-card-header {
    padding: 20px 20px 16px 20px;
  }
  
  .card-content {
    padding: 20px;
  }
  
  .recent-activity-section {
    padding: 24px;
  }
  
  .restaurant-header {
    flex-direction: column;
    gap: 8px;
  }
  
  .restaurant-date {
    align-self: flex-end;
  }
}
.restaurant-dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.restaurant-dashboard.modern {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

/* Modern Header */
.dashboard-header {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.restaurant-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #f1f5f9;
}

.restaurant-title h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.restaurant-subtitle {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.4;
  text-align: left;
}

.restaurant-subtitle .cuisine {
  display: block;
  font-weight: 600;
  color: #1e293b;
}

.restaurant-subtitle .address {
  display: block;
  font-style: italic;
  color: #64748b;
}

.header-actions {
  display: flex;
  gap: 8px; /* Reduced gap between buttons */
  flex-wrap: wrap;
  justify-content: flex-start; /* Align buttons to the left */
  max-width: 300px; /* Limit the width of the actions container */
  margin-top: 12px; /* Add spacing from the title */
}

/* Action Buttons */
.action-btn {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.action-btn.secondary {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.action-btn.secondary:hover {
  background: #e2e8f0;
  color: #475569;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.action-btn.danger:hover {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.action-btn.small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.action-btn.large {
  padding: 14px 24px;
  font-size: 1rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.stat-card.clickable {
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.stat-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
}

/* QR Code Section */
.qr-section {
  margin-bottom: 24px;
}

.qr-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 24px;
}

.qr-section.active .qr-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-color: #22c55e;
}

.qr-display {
  flex-shrink: 0;
}

.qr-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 2px solid #f1f5f9;
}

.qr-info h3,
.qr-content h3 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.qr-info p,
.qr-content p {
  margin: 0 0 16px 0;
  color: #64748b;
}

.menu-url {
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.menu-url span {
  font-weight: 500;
  color: #374151;
  margin-right: 8px;
}

.menu-url a {
  color: #3b82f6;
  text-decoration: none;
  word-break: break-all;
}

/* Menu Management */
.menu-management {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.menu-items-section {
  margin-bottom: 32px;
}

.menu-items-section h3 {
  margin: 0 0 16px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

/* Menu Items Grid */
.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.menu-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.menu-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-header {
  padding: 16px;
  display: flex;
  gap: 12px;
}

.item-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.item-info h4 {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-description {
  margin: -8px 0 8px 0;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.item-price {
  font-weight: 700;
  color: #059669;
  font-size: 1rem;
}

.item-category {
  background: #e0e7ff;
  color: #3730a3;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.item-allergens {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.allergen-tag {
  background: #fee2e2;
  color: #991b1b;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 500;
}

.allergen-more {
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.65rem;
}

.item-actions {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}

/* Forms */
.add-menu-section {
  border-top: 1px solid #f1f5f9;
  padding-top: 24px;
}

.add-menu-section h3 {
  margin: 0 0 20px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.allergens-section-compact label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #374151;
}

.allergen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.allergen-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.allergen-checkbox:hover {
  background: #f1f5f9;
}

.allergen-checkbox input[type="checkbox"] {
  margin: 0;
  width: auto;
}

/* Allergen Section Styles */
.allergens-section {
  margin: 1rem 0;
}

.allergens-label {
  display: flex;
  align-items: center;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #374151;
  font-size: 0.9rem;
}

.allergens-icon {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.allergen-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.allergen-pill {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  position: relative;
  min-height: 2.5rem;
  -webkit-user-select: none;
          user-select: none;
}

.allergen-pill:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.allergen-pill.selected {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.allergen-checkbox-hidden {
  display: none;
}

.allergen-icon {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.allergen-name {
  font-weight: 500;
}

.allergen-check {
  margin-left: 0.5rem;
  color: #059669;
  font-weight: bold;
  font-size: 0.875rem;
}

.selected-allergens-summary {
  padding: 0.75rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.summary-label {
  font-weight: 600;
  color: #0369a1;
  margin-right: 0.5rem;
  font-size: 0.875rem;
}

.selected-allergen-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #3b82f6;
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-compact,
.modal-large {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-large {
  max-width: 700px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #64748b;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: #f1f5f9;
}

.modal-form {
  padding: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap; /* allow wrapping */
}

@media (max-width: 640px) {
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .modal-actions .action-btn {
    width: 100%;
    min-width: 120px;
  }
}

/* Locations Management Modal Styles */
.locations-info {
  margin-bottom: 24px;
}

.readonly-input {
  background-color: #f8fafc;
  color: #64748b;
  border: 2px solid #e2e8f0;
  cursor: not-allowed;
}

.locations-section {
  margin-bottom: 24px;
}

.locations-section h4 {
  margin: 0 0 16px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}

.locations-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap; /* allow wrapping on small screens */
}

.locations-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap; /* allow buttons to wrap if needed */
  justify-content: flex-end;
  max-width: 100%; /* prevent overflow */
}

@media (max-width: 640px) {
  .locations-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .locations-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
  }
  .locations-actions .action-btn {
    flex: 1 1 100%;
    min-width: 120px;
    margin-bottom: 6px;
  }
}

.locations-header h4 {
  margin: 0;
}

.locations-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.locations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.2s ease;
  position: relative;
}

.location-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.location-number {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
  align-self: flex-start;
  margin-bottom: 2px;
}

.location-address {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1;
  justify-content: flex-start;
  text-align: left;
  width: 100%;
  margin-bottom: 0;
}

.location-item .action-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  margin-top: 0;
  align-self: initial;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
  min-width: 0;
  height: 32px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .location-item {
    gap: 4px;
    padding: 12px;
  }
  .location-item .action-btn {
    top: 12px;
    right: 12px;
    width: auto;
    height: 28px;
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

.location-item .action-btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 6px;
  min-width: 0;
  height: 32px;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 640px) {
  .location-item {
    gap: 4px;
    padding: 12px;
  }
  .location-item .action-btn {
    width: auto;
    height: 28px;
    font-size: 0.8rem;
    margin-top: 6px;
    padding: 6px 10px;
  }
}

.locations-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.location-input-row .location-number {
  flex-shrink: 0;
}

.location-input-row .location-input {
  flex: 1 1 100%;
  min-width: 0;
  width: 100%;
  /* If AddressAutocomplete renders an input, ensure it stretches */
}

.location-input {
  flex: 1 1 100%;
  min-width: 0;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
}

.location-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.remove-location-btn {
  background: #ef4444;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.remove-location-btn:hover {
  background: #dc2626;
}

.add-location-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}

.add-location-btn:hover {
  background: #059669;
  transform: translateY(-1px);
}

.empty-locations {
  text-align: center;
  padding: 40px 20px;
  background: #f8fafc;
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  color: #64748b;
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.6;
}

.empty-locations p {
  margin: 4px 0;
}

.empty-note {
  font-size: 0.875rem;
  color: #94a3b8;
}

.locations-note {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.note-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.note-icon {
  font-size: 1.25rem;
  color: #0369a1;
  flex-shrink: 0;
  margin-top: 2px;
}

.note-content p {
  margin: 0 0 4px 0;
  color: #0369a1;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* States */
.loading-state,
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
}

.loading-spinner,
.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h4 {
  margin: 0 0 8px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.message.compact {
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.message.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.message-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  opacity: 0.7;
}

.message-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

/* Location Management */
.location-input {
  display: flex;
  gap: 10px;
  align-items: center;
}

.location-input input {
  flex: 1 1;
  margin-bottom: 0;
}

.remove-location-btn,
.add-location-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}

.add-location-btn {
  background-color: #28a745;
  margin-top: 5px;
}

.remove-location-btn:hover {
  background-color: #c82333;
}

.add-location-btn:hover {
  background-color: #218838;
}

/* Restaurant Display */
.restaurant-logo-display {
  text-align: center;
  margin: 15px 0;
}

.restaurant-logo {
  max-width: 200px;
  max-height: 100px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.header-buttons {
  display: flex;
  gap: 10px;
}

.change-password-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.change-password-btn:hover {
  background-color: #5a6268;
}

.change-password-form {
  background: #fff3cd;
  padding: 20px;
  border-radius: 6px;
  margin-top: 20px;
  border: 1px solid #ffeaa7;
}

.change-password-form h4 {
  margin: 0 0 15px 0;
  color: #856404;
}

.change-password-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 14px;
  box-sizing: border-box;
}

/* Edit Profile Page */
.edit-profile-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 24px;
}

.edit-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.edit-profile-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.close-edit-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.close-edit-btn:hover {
  background: #e2e8f0;
  color: #475569;
}

.edit-profile-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.edit-profile-form-full {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.edit-profile-form-full .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}

@media (max-width: 768px) {
  .edit-profile-form-full .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.form-actions-bottom {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.update-profile-btn {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.update-profile-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.update-profile-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.cancel-profile-btn {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-profile-btn:hover {
  background: #e2e8f0;
  color: #475569;
}

.restaurant-details {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin: 16px 0;
}

.restaurant-details p {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.restaurant-details p:last-child {
  border-bottom: none;
}

/* Locations Upload Functionality Styles */
.input-method-selector {
  margin-bottom: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.input-method-selector label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.method-dropdown {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  font-size: 0.875rem;
}

.upload-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin-bottom: 16px;
  color: #991b1b;
  font-size: 0.875rem;
}

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

.upload-section {
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px dashed #e2e8f0;
}

.upload-info {
  margin-bottom: 20px;
}

.upload-info h5 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}

.upload-info p {
  margin: 0 0 8px 0;
  color: #64748b;
  font-size: 0.875rem;
}

.upload-info ul {
  margin: 0 0 16px 16px;
  color: #64748b;
  font-size: 0.875rem;
}

.file-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

.file-upload-label {
  background: #3b82f6;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.file-upload-label:hover {
  background: #5a67d8;
}

.file-name {
  font-size: 0.875rem;
  color: #059669;
  font-weight: 500;
}

.csv-example, .json-examples {
  margin-top: 16px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.csv-example h6, .json-examples h6 {
  margin: 0 0 8px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.csv-example pre {
  background: #f1f5f9;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  color: #374151;
  margin: 0;
  overflow-x: auto;
}

.json-input {
  margin-bottom: 16px;
}

.json-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  margin-bottom: 12px;
  resize: vertical;
}

.json-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.process-json-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.process-json-btn:hover:not(:disabled) {
  background: #059669;
  transform: translateY(-1px);
}

.process-json-btn:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.example-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.example-item {
  padding: 12px;
  background: #f1f5f9;
  border-radius: 6px;
}

.example-item strong {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-size: 0.875rem;
}

.example-item pre {
  background: white;
  padding: 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #374151;
  margin: 0;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
}

.preview-section {
  margin-top: 20px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.preview-section h6 {
  margin: 0 0 12px 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}

.location-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.preview-number {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.preview-address {
  flex: 1 1;
  font-size: 0.875rem;
  color: #374151;
}

.preview-more {
  text-align: center;
  padding: 8px;
  color: #64748b;
  font-size: 0.875rem;
  font-style: italic;
}

/* Add styles for menu category separation */
.menu-category {
  margin-bottom: 24px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.menu-category h4 {
  margin: 0 0 16px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.menu-items-grid.compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  justify-content: center;
}

.menu-item-card.compact {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.menu-item-card.compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-item-card.compact h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.menu-item-card.compact p {
  margin: 4px 0 0 0;
  color: #64748b;
  font-size: 0.875rem;
}

/* Menu Upload Info Card */
.menu-upload-info-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
  padding: 32px 24px;
  margin: 32px auto 0;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-upload-info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2);
}

.menu-upload-info-card h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 16px;
  text-align: center;
}

.menu-upload-info-card p {
  font-size: 1rem;
  color: #334155;
  margin-bottom: 12px;
  line-height: 1.6;
}

.menu-upload-info-card ul {
  margin: 16px 0 0 20px;
  padding: 0;
  color: #475569;
  font-size: 0.95rem;
  list-style: disc inside;
}

.menu-upload-info-card li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.menu-upload-info-card a {
  color: #1d4ed8;
  text-decoration: underline;
  font-weight: 500;
}

.menu-upload-info-card strong {
  color: #1e40af;
  font-weight: 600;
}

.menu-upload-info-card button {
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.menu-upload-info-card button:hover {
  background: #1e3a8a;
  transform: translateY(-2px);
}

.menu-upload-info-card button:active {
  transform: scale(0.95);
}

.menu-upload-info-card .allowed-list {
  margin-top: 16px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #475569;
}

.menu-upload-info-card .button-group {
  display: flex;
  gap: 12px; /* Adjust spacing between buttons */
  flex-wrap: nowrap; /* Prevent wrapping to the next line */
  justify-content: flex-start; /* Align buttons to the left */
  margin-top: 16px;
}

.menu-upload-info-card .button-group button {
  flex: 1 1; /* Ensure buttons are evenly spaced */
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 16px;
  }
  
  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .qr-card {
    flex-direction: column;
    text-align: center;
  }
  
  .menu-items-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .modal-actions {
    flex-direction: column-reverse;
  }
  
  .edit-profile-page {
    padding: 16px;
  }
  
  .edit-profile-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .edit-profile-container {
    padding: 24px;
  }
  
  .form-actions-bottom {
    flex-direction: column-reverse;
  }
  
  .update-profile-btn,
  .cancel-profile-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Responsive design */
@media (max-width: 768px) {
  .edit-profile-page {
    padding: 16px;
  }
  
  .edit-profile-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .edit-profile-container {
    padding: 24px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .form-actions-bottom {
    flex-direction: column-reverse;
  }
  
  .update-profile-btn,
  .cancel-profile-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Fix form grid layout */
.form-group.full-width {
  grid-column: 1 / -1;
}


/* Centered wide Edit Restaurant modal */
.edit-profile-page {
  width: 90vw; /* almost full width */
  max-width: 1400px; /* prevent it from being too huge on big monitors */
  margin: 0 auto; /* center horizontally */
  padding: 20px 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Override any default modal sizing */
.modal-content {
  width: auto !important;
  max-width: none !important;
  margin: auto;
  padding: 0;
  border-radius: 12px;
}

/* Mobile fixes */
@media (max-width: 640px) {
  /* Keep the page inside the viewport */
  .edit-profile-page {
    width: 100vw;
    max-width: 100vw;
    padding: 16px;        /* reduce padding on small screens */
    overflow-x: hidden;   /* safety net */
  }

  /* Make the inner card full width with modest padding */
  .edit-profile-container {
    width: 100%;
    max-width: 100%;
    padding: 16px;
  }

  /* One-column form; allow shrinking below 350px without overflow */
  .edit-profile-form-full .form-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  /* Tighter input padding so keyboards don’t cause horizontal scroll */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px;
    font-size: 16px; /* avoids iOS zoom-on-focus */
  }

  /* Long URLs, emails, etc. shouldn’t blow out the layout */
  .menu-url a,
  .form-group input[type="url"],
  .form-group input[type="text"] {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Keep action buttons from forcing width */
  .form-actions-bottom {
    flex-wrap: wrap;
    justify-content: stretch;
    gap: 10px;
  }
  .form-actions-bottom .update-profile-btn,
  .form-actions-bottom .cancel-profile-btn {
    flex: 1 1 100%;
  }

  /* The three info dropdown buttons: stack nicely on mobile */
  .menu-upload-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }
  .menu-upload-buttons button {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(50% - 10px); /* two per row */
  }
  .menu-upload-buttons button:nth-child(3) {
    flex-basis: 100%;           /* third goes full width */
  }

  .modal-content {
    width: 95vw;               /* almost full width */
    max-width: 95vw;
    margin: 0 auto;             /* horizontal center fallback */
    border-radius: 10px;
  }

  .edit-profile-page {
    width: 100%;
    max-width: 100%;
    padding: 16px;
  }
  .modal-actions {
    display: flex;
    flex-direction: column;     /* not column-reverse */
    align-items: stretch;
    gap: 10px;
  }

  .modal-actions .action-btn {
    width: 100%;
  }

  /* Make sure visual order is correct regardless of DOM quirks */
  .modal-actions button[type="submit"] { order: 1; }
  .modal-actions .action-btn.secondary { order: 2; }
}

@media (max-width: 640px) {
  .modal-actions {
    display: flex !important;
    flex-direction: column !important;   /* stack vertically */
    align-items: stretch !important;
    gap: 10px !important;
  }

  /* Submit first */
  .modal-actions > button[type="submit"],
  .modal-actions > .action-btn.primary {
    order: 1 !important;
    width: 100%;
  }

  /* Cancel second (covers both button and link variants) */
  .modal-actions > button:not([type="submit"]),
  .modal-actions > .action-btn.secondary,
  .modal-actions > a.action-btn.secondary {
    order: 2 !important;
    width: 100%;
  }
}


/* Modern info selector */
.info-selector {
  margin-top: 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}

.info-selector__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid #e2e8f0;
}

.info-selector__header h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
}

.info-selector__control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-selector__control label {
  font-size: 0.9rem;
  color: #475569;
}

.info-selector__control select {
  appearance: none;
  padding: 8px 12px;
  font-size: 0.9rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.info-selector__control select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.info-selector__panel {
  padding: 16px 18px 18px;
}

.info-selector__lede {
  margin: 0 0 10px 0;
  color: #475569;
  font-size: 0.95rem;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 8px 16px;
  gap: 8px 16px;
}

.info-list.two-col {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.info-list.three-col {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.info-list li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.92rem;
  color: #334155;
  transition: transform 0.15s ease, background 0.15s ease;
}

.info-list li:hover {
  transform: translateY(-1px);
  background: #f1f5f9;
}

@media (max-width: 640px) {
  .info-selector__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .info-selector__control {
    width: 100%;
  }
  .info-selector__control select {
    width: 100%;
  }
}

.info-selector {
  margin: 24px auto;
  max-width: 700px;        /* center on page */
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;      /* center content */
}

.info-selector__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-bottom: 1px solid #e2e8f0;
}

.info-selector__control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-selector__panel {
  padding: 20px;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-gap: 10px 16px;
  gap: 10px 16px;
  justify-content: center;
}


.restaurant-signup {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.restaurant-signup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width=%2760%27 height=%2760%27 viewBox=%270 0 60 60%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg fill=%27none%27 fill-rule=%27evenodd%27%3E%3Cg fill=%27%23ffffff%27 fill-opacity=%270.1%27%3E%3Cpath d=%27m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.3;
}

.restaurant-signup > * {
  position: relative;
  z-index: 1;
}

/* Header */
.signup-header {
  text-align: center;
  margin-bottom: 32px;
}

.signup-header h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin: 0;
}

/* Success Card */
.success-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.success-card h1 {
  color: #2d3748;
  font-size: 2rem;
  margin-bottom: 16px;
}

.success-card p {
  color: #718096;
  font-size: 1.125rem;
  margin-bottom: 32px;
}

.next-steps h3 {
  color: #2d3748;
  margin-bottom: 20px;
}

.steps-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.step {
  flex: 1 1;
  text-align: center;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.step-number {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #4caf50;
  margin-bottom: 10px;
}

.step-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.step-description strong {
  color: #333;
}

/* Form */
.signup-form {
  background: white;
  border-radius: 20px;
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.form-section {
  margin-bottom: 32px;
}

.form-section:last-of-type {
  margin-bottom: 24px;
}

.form-section h2 {
  margin: 0 0 20px 0;
  color: #2d3748;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
  background: #fef2f2;
}

.form-group label {
  font-size: 0.875rem; /* Smaller font size */
  font-weight: 500; /* Medium weight for modern look */
  color: #4a5568; /* Neutral gray color */
  margin-bottom: 4px; /* Add spacing below the label */
  display: block; /* Ensure proper alignment */
}

.signup-label {
  font-size: 0.8rem; /* Slightly smaller font size */
  font-weight: 600; /* Slightly bolder for emphasis */
  color: #374151; /* Darker neutral gray for modern look */
  text-transform: uppercase; /* Modern uppercase styling */
  letter-spacing: 0.5px; /* Slight spacing for readability */
  margin-bottom: 4px; /* Add spacing below the label */
  display: block; /* Ensure proper alignment */
}

/* Corporate Section */
.corporate-toggle {
  margin-bottom: 20px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  color: #2d3748;
}

.toggle-label input {
  display: none;
}

.toggle-slider {
  width: 50px;
  height: 26px;
  background: #e2e8f0;
  border-radius: 13px;
  position: relative;
  transition: background 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-label input:checked + .toggle-slider {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
}

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

.corporate-details {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
}

.locations-manager h4 {
  margin: 16px 0 12px 0;
  color: #374151;
  font-size: 1rem;
}

.location-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

.location-row input {
  flex: 1 1;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
}

.remove-btn {
  background: #ef4444;
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  transition: background 0.2s ease;
}

.remove-btn:hover {
  background: #dc2626;
}

.add-location-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s ease;
}

.add-location-btn:hover {
  background: #059669;
}

/* Terms Section */
.terms-section {
  margin-bottom: 24px;
}

.terms-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
}

.terms-label input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
}

.terms-label input:checked + .checkmark {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  border-color: transparent;
}

.terms-label input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 0.875rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Terms and Privacy Policy Links */
.terms-link {
  background: none;
  border: none;
  color: #3b82f6;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  margin: 0;
  transition: color 0.2s ease;
}

.terms-link:hover {
  color: #60a5fa;
  text-decoration: none;
}

/* Input with Help Button */
.input-with-help {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-with-help input {
  flex: 1 1;
}

.help-button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #3b82f6;
  background: white;
  color: #3b82f6;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.help-button:hover {
  background: #3b82f6;
  color: white;
  transform: scale(1.1);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  margin: 0;
  color: #2d3748;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #718096;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f1f5f9;
  color: #2d3748;
}

.modal-body {
  padding: 24px;
}

.modal-intro {
  color: #4a5568;
  margin-bottom: 24px;
  line-height: 1.6;
}

.help-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.help-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
}

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

.step-content h4 {
  margin: 0 0 4px 0;
  color: #2d3748;
  font-size: 1rem;
  font-weight: 600;
}

.step-content p {
  margin: 0;
  color: #4a5568;
  font-size: 0.875rem;
  line-height: 1.5;
}

.help-note {
  background: #e6fffa;
  border: 1px solid #81e6d9;
  border-radius: 8px;
  padding: 16px;
  color: #234e52;
  font-size: 0.875rem;
  line-height: 1.5;
}

.help-note strong {
  color: #1a365d;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Messages */
.message {
  background: rgba(239, 68, 68, 0.9);
  color: white;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.message.success {
  background: rgba(34, 197, 94, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
  .restaurant-signup {
    padding: 16px;
  }
  
  .signup-header h1 {
    font-size: 2rem;
  }
  
  .signup-form {
    padding: 24px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Modern Admin Notifications Styling */

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

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

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes cardHover {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}

.admin-notifications {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  position: relative;
  overflow-x: hidden;
}

.admin-notifications::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 255, 214, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 120, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.admin-notifications > * {
  position: relative;
  z-index: 1;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.loading-spinner {
  margin-bottom: 24px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.loading-text h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Header */
.notifications-header {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInUp 0.6s ease-out;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.header-content {
  flex: 1 1;
}

.header-content h1 {
  margin: 0 0 20px 0;
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b, #475569, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-stats {
  display: flex;
  gap: 20px;
}

.stat-card {
  background: rgba(248, 250, 252, 0.8);
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
  text-align: center;
  min-width: 120px;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card.corporate {
  background: rgba(239, 246, 255, 0.9);
  border-color: rgba(147, 197, 253, 0.6);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
  display: block;
}

.stat-card.corporate .stat-number {
  color: #2563eb;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.header-actions {
  display: flex;
  align-items: flex-start;
}

.refresh-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.refresh-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.refresh-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.refresh-icon.spinning {
  animation: spin 1s linear infinite;
}

/* Notification Messages */
.notification-message {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  margin-bottom: 24px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideInUp 0.4s ease-out;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.notification-message.success {
  background: rgba(220, 252, 231, 0.95);
  border-color: rgba(134, 239, 172, 0.6);
  color: #166534;
}

.notification-message.error {
  background: rgba(254, 242, 242, 0.95);
  border-color: rgba(252, 165, 165, 0.6);
  color: #991b1b;
}

.message-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.message-content-text {
  flex: 1 1;
}

.close-notification {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  color: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.close-notification:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

/* Applications Container */
.applications-container {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 32px;
  animation: slideInUp 0.8s ease-out;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 40px;
  animation: fadeIn 0.6s ease-out;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.empty-subtext {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Applications Grid */
.applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  grid-gap: 24px;
  gap: 24px;
}

.application-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  animation: slideInScale 0.4s ease-out;
}

.application-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.application-card.corporate {
  border-left: 4px solid #8b5cf6;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
}

.application-card.corporate::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #e0f2fe, #60a5fa);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.1;
}

/* Card Header */
.admin-notifications-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 16px;
}

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

.restaurant-info h3 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  word-break: break-word;
}

.restaurant-name {
  margin: 12px 0; /* Add spacing around the name */
  font-size: 1.5rem; /* Slightly larger font size */
  font-weight: 700;
  color: #1e293b;
  text-align: center; /* Center-align the name */
  line-height: 1.4;
}

.restaurant-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cuisine-tag {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.corporate-badge {
  background: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.application-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.pending-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(245, 158, 11, 0.3);
  white-space: nowrap;
}

.time-since {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Card Content */
.card-content {
  margin-bottom: 20px;
}

.owner-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.owner-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.owner-details {
  flex: 1 1;
  min-width: 0;
}

.owner-name {
  display: block;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.owner-email {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  word-break: break-all;
}

.location-info {
  display: flex;
  align-items: center; /* Align logo and text vertically */
  gap: 12px; /* Add spacing between logo and text */
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(248, 250, 252, 0.4);
  border-radius: 10px;
}

.location-icon {
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.location-text {
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.4;
  word-break: break-word;
}

.locations-preview {
  margin-bottom: 12px;
  padding: 8px 12px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.locations-count {
  font-size: 0.875rem;
  color: #7c3aed;
  font-weight: 600;
}

.description-preview {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  background: rgba(248, 250, 252, 0.4);
  padding: 12px;
  border-radius: 10px;
  border-left: 3px solid #e2e8f0;
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-actions button {
  flex: 1 1;
  min-width: 90px;
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.approve-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.approve-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.deny-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.deny-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.view-btn {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.view-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.card-actions button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.action-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.detail-modal {
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  max-width: 800px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInScale 0.4s ease-out;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(255, 255, 255, 0.8));
  border-radius: 24px 24px 0 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.modal-close {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.6);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  color: #64748b;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  transform: scale(1.05);
}

.modal-content {
  padding: 32px;
}

.detail-section {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.6);
}

.detail-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.detail-section h3 {
  margin: 0 0 20px 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f1f5f9;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 16px;
  gap: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-item.full-width {
  grid-column: 1 / -1;
}

.detail-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 500;
  word-break: break-word;
}

.detail-value.description {
  line-height: 1.6;
  padding: 12px;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 8px;
  border-left: 3px solid #e2e8f0;
}

.detail-value a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.detail-value a:hover {
  text-decoration: underline;
}

/* Geocoded Locations */
.geocoded-locations {
  margin-top: 20px;
  padding: 20px;
  background: rgba(239, 246, 255, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, 0.6);
}

.geocoded-locations h4 {
  margin: 0 0 16px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1e40af;
}

.locations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.location-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(219, 234, 254, 0.6);
}

.location-address {
  flex: 1 1;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.location-coords {
  font-size: 0.75rem;
  color: #64748b;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  background: rgba(248, 250, 252, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding: 24px 32px;
  border-top: 1px solid rgba(241, 245, 249, 0.8);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 0.9));
  border-radius: 0 0 24px 24px;
}

.approve-btn-modal,
.deny-btn-modal {
  padding: 16px 32px;
  border: none;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  justify-content: center;
}

.approve-btn-modal {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.approve-btn-modal:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.deny-btn-modal {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.deny-btn-modal:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.4);
}

.approve-btn-modal:disabled,
.deny-btn-modal:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Submitted Logo Section */
.logo-preview {
  text-align: center;
  margin-top: 12px;
}

.submitted-logo {
  max-width: 100%;
  max-height: 200px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Restaurant Logo in Application Card */
.application-logo {
  width: 40px; /* Adjust size for alignment */
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-right: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .admin-notifications {
    padding: 20px;
  }
  
  .notifications-header {
    flex-direction: column;
    gap: 24px;
  }
  
  .header-stats {
    justify-content: center;
  }
  
  .applications-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-notifications {
    padding: 16px;
  }
  
  .notifications-header {
    padding: 24px;
  }
  
  .header-content h1 {
    font-size: 1.75rem;
  }
  
  .applications-grid {
    grid-template-columns: 1fr;
  }
  
  .card-actions {
    flex-direction: column;
  }
  
  .card-actions button {
    flex: none;
  }
  
  .modal-content {
    padding: 24px;
  }
  
  .modal-actions {
    flex-direction: column;
    padding: 20px 24px;
  }
  
  .approve-btn-modal,
  .deny-btn-modal {
    min-width: auto;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .notifications-header {
    padding: 20px;
  }
  
  .header-content h1 {
    font-size: 1.5rem;
  }
  
  .stat-card {
    padding: 12px 16px;
    min-width: 100px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .application-card {
    padding: 20px;
  }
  
  .owner-info {
    padding: 10px;
  }
  
  .owner-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
  
  .modal-header {
    padding: 20px 24px;
  }
  
  .modal-header h2 {
    font-size: 1.25rem;
  }
}

/* AdminNotifications.css additions */

.warning-badge {
  margin-left: 8px;
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #fff7ed; /* warm amber-ish */
  border: 1px solid #fed7aa;
}

.email-warning-banner {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  font-size: 0.95rem;
}
.restaurant-login {
  height: 100vh;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { 
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%); 
  }
  50% { 
    background: linear-gradient(135deg, #000000 0%, #1e3a8a 50%, #0f172a 100%); 
  }
}

.restaurant-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(15, 23, 42, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
  animation: floatingOrbs 12s ease-in-out infinite;
}

@keyframes floatingOrbs {
  0%, 100% { 
    background: 
      radial-gradient(circle at 20% 80%, rgba(15, 23, 42, 0.3) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.3) 0%, transparent 50%),
      radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
  }
  33% { 
    background: 
      radial-gradient(circle at 60% 30%, rgba(15, 23, 42, 0.3) 0%, transparent 50%),
      radial-gradient(circle at 30% 70%, rgba(30, 58, 138, 0.3) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
  }
  66% { 
    background: 
      radial-gradient(circle at 80% 60%, rgba(15, 23, 42, 0.3) 0%, transparent 50%),
      radial-gradient(circle at 20% 30%, rgba(30, 58, 138, 0.3) 0%, transparent 50%),
      radial-gradient(circle at 60% 20%, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
  }
}


.restaurant-login > * {
  position: relative;
  z-index: 1;
}

.restaurant-login h1 {
  color: white;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
  background: linear-gradient(45deg, #ffffff, #f0f8ff, #ffffff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

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

.subtitle {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease-out 0.3s both;
}

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

.login-form,
.reset-form {
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 420px;
  margin: 0 auto 24px auto;
  flex-shrink: 0;
  position: relative;
  animation: slideInScale 0.8s ease-out 0.1s both;
  transition: all 0.3s ease;
}

.login-form:hover,
.reset-form:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

@keyframes slideInScale {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reset-form h2 {
  margin: 0 0 8px 0;
  color: #2d3748;
  font-size: 1.5rem;
  font-weight: 600;
}

.reset-form p {
  color: #718096;
  margin-bottom: 24px;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #2d3748;
  font-weight: 500;
  font-size: 0.875rem;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: linear-gradient(145deg, #f8fafc, #ffffff);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  position: relative;
}

.form-group input::placeholder {
  color: #a0aec0;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 
    0 0 0 4px rgba(102, 126, 234, 0.15),
    inset 0 2px 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.form-group input:focus::placeholder {
  color: #cbd5e0;
  transform: translateY(-2px);
}

.login-btn,
.reset-btn {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: white;
  border: none;
  padding: 18px 24px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.login-btn::before,
.reset-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.login-btn:hover::before,
.reset-btn:hover::before {
  left: 100%;
}

.login-btn:hover:not(:disabled),
.reset-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #7c8ce8 0%, #8a5fb6 100%);
}

.login-btn:disabled,
.reset-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.cancel-btn {
  width: 100%;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-btn:hover {
  background: #e2e8f0;
  color: #475569;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reset-password-link {
  text-align: center;
  margin-bottom: 28px;
}

.reset-link-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.reset-link-btn:hover {
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  text-shadow: none;
}

.help-section {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  max-width: 420px;
  width: 100%;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  margin: 0 auto;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.help-section h3 {
  margin: 0 0 16px 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.help-section p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.7;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.message {
  padding: 20px 24px;
  border-radius: 16px;
  margin: 0 auto 28px auto;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  max-width: 420px;
  width: 100%;
  flex-shrink: 0;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  animation: slideInScale 0.5s ease-out;
  position: relative;
  border: 1px solid transparent;
}

.message.success {
  background: linear-gradient(135deg, rgba(72, 187, 120, 0.95), rgba(56, 178, 172, 0.95));
  color: white;
  border: 1px solid rgba(72, 187, 120, 0.6);
  box-shadow: 0 8px 16px rgba(72, 187, 120, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.message.error {
  background: linear-gradient(135deg, rgba(245, 101, 101, 0.95), rgba(229, 62, 62, 0.95));
  color: white;
  border: 1px solid rgba(245, 101, 101, 0.6);
  box-shadow: 0 8px 16px rgba(245, 101, 101, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Center content perfectly on very tall screens */
@media (min-height: 1200px) {
  .restaurant-login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    min-height: 100vh;
  }
  
  .restaurant-login > * {
    flex-shrink: 0;
  }
}

/* Ensure perfect centering on ultrawide vertical monitors */
@media (min-height: 1600px) {
  .restaurant-login {
    padding: 40px 20px;
  }
}

@media (max-width: 768px) {
  .restaurant-login {
    padding: 16px;
  }
  
  .restaurant-login h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
  }
  
  .subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
  }
  
  .login-form,
  .reset-form,
  .help-section {
    padding: 32px 24px;
    max-width: 100%;
  }
  
  .form-group input {
    padding: 14px 18px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .login-btn,
  .reset-btn {
    padding: 16px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .restaurant-login h1 {
    font-size: 1.8rem;
  }
  
  .login-form,
  .reset-form,
  .help-section {
    padding: 24px 20px;
  }
}

.qr-image {
  width: 200px;
  height: 200px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin: 15px 0;
}

.qr-display a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

.qr-display a:hover {
  text-decoration: underline;
}

.no-items {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 40px;
}

.menu-management {
  background: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
}

.add-item-btn {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.add-item-btn:hover {
  background-color: #218838;
}

.add-item-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  border: 1px solid #dee2e6;
}

.add-item-form h3 {
  margin: 0 0 15px 0;
  color: #333;
}

.add-item-form input,
.add-item-form textarea,
.add-item-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 14px;
  box-sizing: border-box;
}

.add-item-form textarea {
  min-height: 60px;
  resize: vertical;
}

.allergens-section h4 {
  margin: 15px 0 10px 0;
  color: #555;
  font-size: 14px;
}

.allergen-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  grid-gap: 8px;
  gap: 8px;
  margin-bottom: 15px;
}

.allergen-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.allergen-label input[type="checkbox"] {
  margin: 0;
  width: auto;
}

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

.submit-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.submit-btn:hover:not(:disabled) {
  background-color: #0056b3;
}

.submit-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.cancel-btn {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.cancel-btn:hover {
  background-color: #5a6268;
}

.delete-item-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.delete-item-btn:hover {
  background-color: #c82333;
}

.menu-item-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
}

.qr-display-inline {
  margin-top: 20px;
  padding: 15px;
  background: #e3f2fd;
  border-radius: 6px;
  border: 1px solid #bbdefb;
}

.qr-display-inline h3 {
  margin: 0 0 10px 0;
  color: #1565c0;
  font-size: 16px;
}

.qr-inline-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.qr-image-inline {
  width: 80px;
  height: 80px;
  border: 1px solid #90caf9;
  border-radius: 4px;
  flex-shrink: 0;
}

.qr-info {
  flex: 1 1;
}

.qr-info p {
  margin: 5px 0;
  color: #1565c0;
  font-size: 13px;
}

.qr-info a {
  color: #0d47a1;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.qr-info a:hover {
  text-decoration: underline;
}

.print-qr-btn {
  background-color: #2196f3;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
}

.print-qr-btn:hover {
  background-color: #1976d2;
}

.restaurant-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.edit-profile-btn {
  background-color: #17a2b8;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.edit-profile-btn:hover {
  background-color: #138496;
}

.restaurant-logo {
  text-align: center;
  margin: 15px 0;
}

.logo-image {
  max-width: 200px;
  max-height: 100px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #ddd;
}

.edit-profile-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  margin-top: 20px;
  border: 1px solid #dee2e6;
}

.edit-profile-form h3 {
  margin: 0 0 15px 0;
  color: #333;
}

.edit-profile-form input,
.edit-profile-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 14px;
  box-sizing: border-box;
}

.edit-profile-form textarea {
  min-height: 60px;
  resize: vertical;
}

.reset-password-link {
  text-align: center;
  margin: 15px 0;
}

.reset-link-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #667eea;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.reset-link-btn:hover {
  background: white;
  color: #764ba2;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.reset-form {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  margin-bottom: 20px;
}

.reset-form h2 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.5em;
}

.reset-form p {
  margin: 0 0 20px 0;
  color: #666;
  font-size: 14px;
}

.reset-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 10px;
}

.reset-btn:hover:not(:disabled) {
  background-color: #c82333;
}

.reset-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.location-enable-btn {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  color: white;
  border: none;
  padding: 18px 24px;
  border-radius: 14px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.location-enable-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.location-enable-btn:hover::before {
  left: 100%;
}

.location-enable-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #7c8ce8 0%, #8a5fb6 100%);
}

.location-enable-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .restaurant-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .items-grid {
    grid-template-columns: 1fr;
  }
  
  .menu-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .allergen-checkboxes {
    grid-template-columns: 1fr;
  }
  
  .qr-inline-content {
    flex-direction: column;
    text-align: center;
  }
  
  .qr-image-inline {
    width: 100px;
    height: 100px;
  }
}

/* Modern Compact Location Management */
.manage-locations {
  min-height: 100vh;
  background: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  flex-direction: column;
}

/* Batch Progress Modal */
.batch-progress-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.batch-progress-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  animation: modalSlideIn 0.3s ease-out;
}

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

.batch-progress-header {
  text-align: center;
  margin-bottom: 24px;
}

.batch-progress-header h3 {
  margin: 0 0 8px 0;
  font-size: 1.25rem;
  color: #1e293b;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.progress-bar-container {
  margin-bottom: 20px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  transition: width 0.3s ease;
  border-radius: 6px;
}

.progress-text {
  text-align: center;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.progress-details {
  margin-bottom: 16px;
}

.progress-counts {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.success-count {
  color: #059669;
  font-weight: 500;
}

.error-count {
  color: #dc2626;
  font-weight: 500;
}

.current-address {
  font-size: 0.875rem;
  color: #374151;
  background: #f1f5f9;
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.current-address strong {
  color: #1e293b;
}

.progress-note {
  text-align: center;
  color: #64748b;
  font-style: italic;
}

/* Time Warning */
.time-warning {
  background: linear-gradient(135deg, #fef3cd, #fde68a);
  border: 1px solid #f59e0b;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-content {
  flex: 1 1;
}

.warning-content strong {
  display: block;
  color: #92400e;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.warning-content p {
  margin: 0 0 8px 0;
  color: #451a03;
  font-size: 0.875rem;
  line-height: 1.4;
}

.warning-content p strong {
  display: inline;
  color: #dc2626;
  font-weight: 700;
}

.warning-content small {
  color: #78350f;
  font-size: 0.75rem;
  font-style: italic;
  display: block;
}

/* Compact Header */
.page-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.brand h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

/* Content Layout */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1 1; /* Allow content to grow and fill available space */
  min-height: 0; /* Allow flex items to shrink if needed */
  width: 100%; /* Ensure full width usage */
}

/* Modern Cards */
.card {
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
  /* Ensure no overflow clipping */
  overflow: visible;
  display: flex;
  flex-direction: column;
  width: 100%; /* Ensure cards use full available width */
}

/* Make the locations card expandable */
.card:last-child {
  flex: 1 1;
  min-height: 0;
  min-height: 400px; /* Ensure minimum height even when empty */
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  position: sticky;
  top: 73px;
  z-index: 50;
  border-radius: 12px 12px 0 0; /* Round top corners to match card */
  flex-wrap: wrap;
  gap: 16px;
}

.card-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.hq-card {
  border-left: 4px solid #10b981;
}

/* Location Items */
.location-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #f1f5f9;
}

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

.location-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.location-badge.hq {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  font-size: 0.75rem;
}

.location-text {
  flex: 1 1;
  font-size: 0.9rem;
  color: #374151;
  line-height: 1.4;
  word-break: break-word;
}

.locations-list {
  /* Remove max-height limitation to allow full expansion */
  overflow-y: auto;
  flex: 1 1; /* Allow list to grow and fill available card space */
  min-height: 0; /* Allow flex items to shrink if needed */
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px; /* Increased padding for more presence */
  color: #64748b;
  flex: 1 1; /* Allow empty state to fill available card space */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px; /* Ensure substantial height even when empty */
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.7;
}

.empty-state p {
  margin: 0 0 4px 0;
  font-weight: 500;
}

.empty-state small {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Compact Form */
.compact-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  /* Ensure form can contain dropdowns */
  overflow: visible;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  /* Allow dropdowns to extend outside */
  overflow: visible;
  position: relative;
}

.form-group label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: border-color 0.2s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Address Search */
.address-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  /* Ensure dropdown visibility */
  position: relative;
  overflow: visible;
}

.input-badge {
  background: #f1f5f9;
  color: #64748b;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.address-search-container {
  flex: 1 1;
  position: relative;
  /* Ensure container doesn't clip dropdown */
  overflow: visible;
}

.address-input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fafafa;
  transition: border-color 0.2s ease;
  color: #374151; /* dark gray for good contrast */
}

.address-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-spinner {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #667eea;
  font-size: 0.9rem;
  animation: pulse 1.5s ease-in-out infinite;
}

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

.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px); /* Ensure proper spacing */
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 9999; /* Maximum z-index to ensure visibility */
  max-height: 250px;
  overflow-y: auto;
  /* Force visibility */
  visibility: visible;
  opacity: 1;
  /* Ensure it's above everything */
  transform: translateZ(0);
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 0.875rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s ease;
  line-height: 1.4;
}

.suggestion-item:hover {
  background: #f8fafc;
}

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

/* Upload Sections */
.upload-section {
  border: 2px dashed #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  background: #f8fafc;
  width: 100%; /* Full width */
  box-sizing: border-box;
  margin: 0; /* Remove any default margins */
}

.upload-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%; /* Ensure upload area uses full width */
}

/* File Upload Styling */
.file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

.file-label {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
  border: 2px solid transparent;
}

.file-label:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.file-label:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.file-label::before {
  content: '📁';
  font-size: 1.1rem;
}

.file-name {
  background: #e0e7ff;
  color: #3730a3;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid #c7d2fe;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name::before {
  content: '✓';
  color: #059669;
  font-weight: bold;
}

/* Preview styling */
.preview {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
}

.preview small {
  color: #166534;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* JSON Input Styling */
.json-input {
  width: 100% !important;
  max-width: 100% !important;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  resize: vertical;
  margin-bottom: 8px;
  padding: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.875rem;
  background: #fafafa;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.json-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Help Section Styles */
.help-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 6px; /* Reduced from 8px */
  padding: 0; /* Remove default padding */
  margin-bottom: 8px; /* Reduced from 12px */
  overflow: visible;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

.help-section:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.help-header {
  display: flex;
  align-items: center;
  gap: 6px; /* Reduced from 8px */
  margin-bottom: 0; /* Remove margin when collapsed */
  color: #374151;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
  transition: all 0.2s ease;
  justify-content: space-between;
  padding: 4px 8px; /* Reduced from 6px 10px */
  border-radius: 6px;
  background: rgba(102, 126, 234, 0.05);
  min-height: 20px; /* Reduced from 24px */
  font-size: 0.75rem; /* Reduced from 0.8rem */
}

.help-header:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.help-icon {
  font-size: 0.9rem; /* Reduced from 1rem */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.expand-icon {
  font-size: 0.7rem; /* Reduced from 0.75rem */
  color: #667eea;
  transition: all 0.3s ease;
  margin-left: auto;
  font-weight: bold;
}

.help-content {
  padding: 0 8px 8px 8px; /* Reduced from 0 12px 12px 12px */
  overflow: visible;
  width: 100%;
}

/* Add collapsed state to remove margin when not expanded */
.help-content.collapsed {
  display: none;
  margin-bottom: 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    max-height: 1500px;
    margin-bottom: 0; /* Changed from 8px to 0 */
    transform: translateY(0);
  }
}

.help-description {
  margin: 0 0 12px 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.4;
  padding: 10px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #667eea;
  width: 100%;
  box-sizing: border-box;
}

.format-options {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin-bottom: 12px;
  width: 100% !important;
  max-width: none !important;
}

@media (min-width: 768px) {
  .format-options {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .format-options {
    grid-template-columns: 1fr 1fr;
  }
}

.format-option {
  background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.format-option:hover {
  border-color: #667eea;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.format-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.format-option strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #374151;
  font-size: 0.8rem;
  font-weight: 600;
}

.format-option strong::before {
  content: '📄';
  font-size: 0.9rem;
}

.format-example {
  background: #1e293b;
  color: #e2e8f0;
  border: none;
  border-radius: 6px;
  padding: 8px;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.7rem;
  line-height: 1.3;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.format-example::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 6px;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 12px 0 0 #f59e0b, 24px 0 0 #10b981;
}

.help-tips {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 10px;
  position: relative;
  overflow: hidden;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

.help-tips::before {
  content: '💡';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.2rem;
  opacity: 0.7;
}

.help-tips strong {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 600;
}

.help-tips strong::before {
  content: '✨';
  font-size: 0.9rem;
}

.help-tips ul {
  margin: 0;
  padding-left: 18px;
  color: #92400e;
}

.help-tips li {
  font-size: 0.75rem;
  margin-bottom: 3px;
  line-height: 1.3;
  position: relative;
}

.help-tips li::marker {
  content: '▶ ';
  color: #f59e0b;
  font-weight: bold;
}

/* Modern Buttons */
.btn-primary,
.btn-secondary,
.btn-danger {
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 8px 16px;
}

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

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #475569;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.btn-danger:hover {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.btn-delete {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-delete:hover {
  background: #fef2f2;
  color: #dc2626;
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form Actions */
.form-actions {
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.alert-success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0.7;
  font-weight: 700;
}

.alert-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

/* Error Container */
.error-container {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.error-container h1 {
  margin: 0 0 12px 0;
  color: #1e293b;
  font-size: 1.5rem;
}

.error-container p {
  margin: 0 0 20px 0;
  color: #64748b;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .content {
    max-width: 100%; /* Use full width on smaller screens */
    padding: 24px;
  }
  
  .header-content {
    max-width: 100%; /* Use full width on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 12px 16px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    max-width: 100%;
  }
  
  .brand {
    width: 100%;
  }
  
  .content {
    padding: 16px;
    max-width: 100%;
  }
  
  .card-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    top: 85px;
  }
  
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
  
  .address-input-group {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .form-actions {
    justify-content: stretch;
  }
  
  .form-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
  
  .format-options {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  
  .help-section {
    padding: 16px; /* Slightly less padding on mobile */
  }
  
  .format-option {
    padding: 12px; /* Slightly less padding on mobile */
  }
  
  .format-example {
    font-size: 0.75rem; /* Slightly smaller font on mobile */
    padding: 12px;
  }
  
  .help-tips {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .help-section {
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 8px;
  }
  
  .format-option {
    padding: 10px;
  }
  
  .format-example {
    font-size: 0.7rem;
    padding: 10px;
  }
}
/* Printable QR Code Styles */
.printable-qr {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: white;
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

/* No-print controls */
.no-print {
  display: block;
}

.print-controls {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 1000;
  display: flex;
  gap: 12px;
  padding: 16px 0 0 0;
}

.print-btn, .back-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-btn {
  background: #6c757d;
}

.print-btn:hover, .back-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tab Section */
.tab-section {
  max-width: 8.5in;
  margin: 2rem auto 0;
  padding: 0 1rem;
  display: flex;
  justify-content: center;
}

.tab-controls-main {
  display: flex;
  gap: 8px;
  background: white;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
  white-space: nowrap;
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.tab-btn:hover:not(.active) {
  background: #f1f5f9;
  color: #374151;
}

/* Main QR Card */
.qr-card-printable {
  max-width: 8.5in;
  margin: 1in auto;
  padding: 0.75in;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  page-break-after: always;
}

.qr-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f1f5f9;
}

.restaurant-logo-print {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #e2e8f0;
}

.restaurant-info-print h1 {
  margin: 0 0 0.5rem 0;
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
}

.cuisine-tag {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.address-print {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
}

.qr-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 3rem;
  gap: 3rem;
  margin-bottom: 2rem;
  align-items: center;
}

.qr-section-print {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-code-large {
  width: 250px;
  height: 250px;
  border: 3px solid #667eea;
  border-radius: 16px;
  padding: 12px;
  background: white;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
}

.instructions-section h2 {
  margin: 0 0 1.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
}

.instructions {
  margin-bottom: 2rem;
}

.instruction-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.instruction-step p {
  margin: 0;
  font-size: 1rem;
  color: #374151;
}

.manual-url {
  background: #f8fafc;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.url-label {
  margin: 0 0 0.5rem 0;
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
}

.url-text {
  margin: 0;
  font-size: 0.875rem;
  color: #667eea;
  font-weight: 500;
  word-break: break-all;
}

.qr-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 2px solid #f1f5f9;
}

.features-highlight {
  display: flex;
  gap: 1.5rem;
}

.feature-item-print {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  font-weight: 500;
}

.feature-icon-print {
  font-size: 1rem;
}

.powered-by {
  text-align: right;
}

.powered-by p {
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.tagline {
  font-style: italic;
  font-size: 0.75rem !important;
}

/* Table Cards Grid */
.qr-grid-page {
  max-width: 8.5in;
  margin: 0 auto;
  padding: 0.5in;
  page-break-before: always;
}

.grid-title {
  text-align: center;
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  grid-gap: 0.25in;
  gap: 0.25in;
  margin-bottom: 1rem;
}

.qr-table-card {
  border: 2px dashed #cbd5e1;
  padding: 0.5rem;
  text-align: center;
  background: white;
  border-radius: 8px;
  height: 2.5in;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.table-card-header h3 {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.table-card-header p {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
}

.qr-code-small-container {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-code-small {
  width: 80px;
  height: 80px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.table-card-footer p {
  margin: 0;
  font-size: 0.75rem;
  color: #374151;
}

.powered-small {
  font-weight: 500;
  color: #667eea !important;
}

.cutting-instructions {
  text-align: center;
  background: #fef3c7;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #f59e0b;
}

.cutting-instructions p {
  margin: 0;
  font-size: 0.875rem;
  color: #92400e;
  font-weight: 500;
}

/* Loading and Error States */
.printable-qr.loading,
.printable-qr.error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  color: #64748b;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  .printable-qr {
    background: white;
    margin: 0;
    padding: 0;
  }
  
  .qr-card-printable {
    margin: 0;
    padding: 0.5in;
    border: none;
    border-radius: 0;
    box-shadow: none;
    page-break-after: always;
    max-width: none;
  }
  
  .qr-grid-page {
    margin: 0;
    padding: 0.25in;
    page-break-before: always;
    max-width: none;
  }
  
  .qr-table-card {
    border: 2px dashed #000;
    background: white;
  }
  
  .qr-code-large,
  .qr-code-small {
    border-color: #000;
  }
  
  .cuisine-tag {
    background: #000 !important;
    color: white;
  }
  
  .step-number {
    background: #000 !important;
    color: white;
  }
  
  .feature-icon-print {
    color: #000;
  }
  
  .url-text {
    color: #000;
  }
  
  .powered-small {
    color: #000 !important;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .qr-card-printable {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .qr-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .qr-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .qr-footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .features-highlight {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .qr-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
  }
}
/* Menu Management Styles */
.menu-management {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 50%, #f8fafc 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
}

.menu-management::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.menu-management > * {
  position: relative;
  z-index: 1;
}

.menu-management-header {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInDown 0.6s ease-out;
}

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

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.restaurant-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid #f1f5f9;
}

.restaurant-title h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
}

.restaurant-subtitle {
  margin: 4px 0 0 0;
  color: #64748b;
  font-size: 0.875rem;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Export CSV Button */
.export-csv-button {
  background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(99,102,241,0.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.export-csv-button:hover {
  background: linear-gradient(90deg, #5b5be6 0%, #4f9ce6 100%);
  box-shadow: 0 4px 12px rgba(99,102,241,0.15);
  transform: translateY(-1px);
}

.export-csv-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99,102,241,0.08);
}

.export-csv-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Dropdown Styles */
.dropdown-container {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 8px 0;
  margin-top: 4px;
  z-index: 1000;
  min-width: 200px;
  animation: dropdownSlideIn 0.2s ease-out;
}

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

.dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
}

.dropdown-item:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.dropdown-item:first-child {
  border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 12px 12px;
}

.dropdown-item:only-child {
  border-radius: 12px;
}

.action-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.action-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn.secondary {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.action-btn.secondary:hover {
  background: #e2e8f0;
  color: #475569;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn.small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.action-btn.large {
  padding: 14px 24px;
  font-size: 1rem;
}

.action-btn.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.action-btn.danger:hover {
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.message.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.message.compact {
  margin-top: 15px;
  padding: 12px 16px;
  font-size: 0.95rem;
}

.message-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  opacity: 0.7;
}

.message-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.stat-card.clickable {
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 2rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

.stat-card p {
  margin: 0;
  color: #64748b;
  font-size: 0.875rem;
}

/* Menu Management Content */
.menu-management-content {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.section-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

/* Menu Items Section */
.menu-items-section {
  margin-bottom: 32px;
}

.menu-items-section h3 {
  margin: 0 0 16px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.loading-state {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
}

.loading-spinner {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
  opacity: 0.6;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #64748b;
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-state h4 {
  margin: 0 0 8px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.empty-state p {
  margin: 0;
  font-size: 1.1rem;
}

/* Menu Categories */
.menu-items-categories {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.menu-items-categories.compact {
  gap: 20px;
}

.menu-category h4 {
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
}

.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin: 24px 0;
}

.menu-items-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  justify-content: center;
}

.menu-item-card {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  position: relative;
  animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.menu-item-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.menu-item-card.compact {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(15px);
          backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.menu-item-card.compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
}

.menu-item-card h4 {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.menu-item-card.compact h4 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.menu-item-card p {
  margin: 0 0 12px 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.menu-item-card .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #059669;
  margin: 8px 0;
}

.menu-item-card .category-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #374151;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.menu-item-card .allergen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.menu-item-card .allergen-tag {
  background: #fef3c7;
  color: #d97706;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 500;
}

.menu-item-card .action-btn {
  margin-top: 16px;
  width: 100%;
}

.menu-item-card .card-content {
  padding: 20px;
}

.menu-item-card .card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

/* Uncategorized / To Do Section Styles */
.menu-category.uncategorized-todo {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
  padding: 24px 18px;
  margin-bottom: 24px;
  position: relative;
  animation: pulseTodo 1.5s infinite alternate;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

@keyframes pulseTodo {
  from { box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08); }
  to { box-shadow: 0 8px 32px rgba(245, 158, 11, 0.18); }
}

.menu-category.uncategorized-todo h4 {
  color: #111;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1.5px dashed #f59e0b;
  text-align: center;
  position: relative;
}

.todo-badge {
  display: inline-block;
  background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
  color: #111;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 5px 16px;
  border-radius: 16px;
  margin-left: 10px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
  letter-spacing: 1px;
  vertical-align: middle;
  position: relative;
  top: -2px;
  border: 2px solid #fffbe6;
  text-shadow: none;
}

.menu-category.uncategorized-todo .menu-items-grid {
  background: none;
  margin-top: 10px;
}

.menu-category.uncategorized-todo .menu-item-card {
  border: 2px solid #fde68a;
  background: #fffbe6;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.08);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}

.menu-category.uncategorized-todo .menu-item-card h4 {
  color: #111;
}

/* Add Menu Section */
.add-menu-section {
  border-top: 1px solid #f1f5f9;
  padding-top: 24px;
}

.add-menu-section h3 {
  margin: 0 0 20px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.add-menu-form {
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
  animation: slideInUp 0.6s ease-out 0.2s both;
}

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

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

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: linear-gradient(145deg, #f8fafc, #ffffff);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.15),
    inset 0 2px 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
  transition: all 0.3s ease;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
  color: #d1d5db;
  transform: translateY(-2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Allergens Section */
.allergens-section {
  margin-top: 16px;
  background: rgba(254, 242, 242, 0.6); /* soft red background */
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(254, 202, 202, 0.8); /* light red border */
}

.allergens-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 18px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.allergens-icon {
  font-size: 1.2rem;
  color: #f59e0b;
}

.allergen-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Reduce spacing between pills */
}

.allergen-pill {
  display: flex;
  align-items: center;
  gap: 6px; /* Reduce spacing between content inside pills */
  padding: 6px 12px; /* Reduce padding */
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 2px solid #e5e7eb;
  border-radius: 20px; /* Slightly smaller border radius */
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-height: 2.4rem; /* Reduce height */
  -webkit-user-select: none;
          user-select: none;
  font-size: 0.8rem; /* Increased font size */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.allergen-pill:hover {
  background: linear-gradient(145deg, #f8fafc, #f1f5f9);
  border-color: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.allergen-pill.selected {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transform: translateY(-1px);
}

.allergen-checkbox-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Dietary Information Styles */
.dietary-section {
  background: rgba(240, 253, 244, 0.5);
  padding: 20px;
  border-radius: 16px;
  border: 2px solid rgba(34, 197, 94, 0.2);
}

.dietary-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #166534;
  margin-bottom: 16px;
  font-size: 1rem;
}

.dietary-icon {
  font-size: 1.2rem;
  color: #16a34a;
}

.dietary-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* Ensure 5 items per row */
  grid-gap: 12px;
  gap: 12px; /* Adjust spacing between items */
  justify-content: center;
}

.dietary-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  
  border: 2px solid #bbf7d0;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  min-width: 120px;
  justify-content: center;
  font-size: 0.9rem; /* Increased font size */
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.1);
}

.dietary-pill:hover {
  
  border-color: #16a34a;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(34, 197, 94, 0.2);
}

.dietary-pill.selected {
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border-color: #16a34a;
  color: #166534;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
}

.dietary-checkbox-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.selected-dietary-summary {
  margin-top: 12px;
  padding: 12px;
  background: rgba(220, 252, 231, 0.5);
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}

.selected-dietary-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #16a34a;
  color: white;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 8px;
  margin-bottom: 4px;
}

.allergen-icon {
  font-size: 1.1rem;
}

.allergen-name {
  font-weight: 500;
}

.allergen-check {
  font-size: 0.8rem;
  font-weight: bold;
  color: #059669;
}

.selected-allergens-summary {
  margin-top: 15px;
  padding: 12px;
  background: #f0f9ff;
  border-radius: 8px;
  border: 1px solid #bae6fd;
}

.summary-label {
  font-weight: 600;
  color: #0369a1;
  margin-right: 10px;
  font-size: 0.875rem;
}

.selected-allergen-tag {
  display: inline-block;
  background: #3b82f6;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin: 2px;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

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

.modal-large {
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  max-width: 1200px;
  width: 95%;
  max-height: 95vh;
  overflow-y: auto;
  margin: 0 auto;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInScale 0.4s ease-out;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 32px 24px 32px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
  border-radius: 24px 24px 0 0;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  background: linear-gradient(135deg, #1e293b, #475569);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-close {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.6);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  color: #64748b;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
  transform: scale(1.05);
}

.modal-form {
  padding: 32px;
  background: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.menu-management-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .menu-management-modal-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0; /* Remove gap between buttons */
  }

  .menu-management-modal-actions .cancel-btn {
    order: 2; /* Ensure the cancel button appears below the update button */
  }
}

.menu-management-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  border-top: 1px solid rgba(241, 245, 249, 0.8);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(255, 255, 255, 0.9));
  border-radius: 0 0 24px 24px;
  flex-wrap: wrap;
  box-sizing: border-box;
  overflow-x: auto;
  max-width: 100vw;
}

@media (max-width: 768px) {
  .menu-management-modal-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    border-radius: 0 0 12px 12px;
    max-width: 100vw;
  }
}

@media (max-width: 480px) {
  .menu-management-modal-actions {
    padding: 10px 4px;
    gap: 8px;
    margin-top: 8px;
    border-radius: 0 0 8px 8px;
    max-width: 100vw;
  }
}

/* Bulk Modal Specific Styles */
.bulk-disclaimer {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  padding: 20px 24px;
  border-radius: 16px;
  margin: 20px 32px;
  font-size: 0.95rem;
  border: 1px solid rgba(217, 119, 6, 0.2);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
  animation: slideInDown 0.6s ease-out 0.2s both;
}

.bulk-disclaimer strong {
  color: #78350f;
  font-weight: 700;
}

.format-selector {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.format-selector label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #374151;
  font-size: 1rem;
}

.format-selector select {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.format-selector select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.upload-section {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  margin-bottom: 24px;
}

.upload-section textarea {
  background: linear-gradient(145deg, #f8fafc, #ffffff);
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  width: 100%;
  min-width: 100%;
  box-sizing: border-box;
}

.upload-section textarea:focus {
  outline: none;
  border-color: #3b82f6;
  background: white;
  box-shadow: 
    0 0 0 3px rgba(59, 130, 246, 0.1),
    inset 0 2px 4px rgba(59, 130, 246, 0.05);
}

.file-input-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-input-display {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.file-input-display:hover {
  border-color: #3b82f6;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  transform: translateY(-2px);
}

.file-icon {
  font-size: 2.5rem;
  color: #64748b;
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.file-input-display:hover .file-icon {
  color: #3b82f6;
}

.file-text {
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.file-subtext {
  font-size: 0.875rem;
  color: #64748b;
}

.file-selected {
  margin-top: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  border: 1px solid #86efac;
  border-radius: 12px;
  color: #166534;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-text {
  background: rgba(248, 250, 252, 0.8);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.help-text strong {
  color: #374151;
  font-weight: 600;
}

.help-text code {
  background: rgba(226, 232, 240, 0.6);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.8rem;
}

.help-text pre {
  background: rgba(30, 41, 59, 0.95);
  color: #e2e8f0;
  padding: 16px;
  border-radius: 8px;
  margin: 12px 0;
  font-size: 0.8rem;
  overflow-x: auto;
  white-space: pre-wrap;
}

.bulk-preview {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bulk-preview h4 {
  margin: 0 0 20px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
}

.preview-section {
  margin-bottom: 20px;
}

.preview-section strong {
  color: #374151;
  font-weight: 600;
}

.preview-list {
  margin: 12px 0 0 16px;
  padding: 0;
}

.preview-list li {
  margin: 8px 0;
  padding: 8px 12px;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 8px;
  border-left: 3px solid #3b82f6;
}

.preview-list.skip li {
  background: rgba(254, 242, 242, 0.8);
  border-left-color: #ef4444;
  color: #b91c1c;
}

.preview-item-name {
  font-weight: 600;
}

.preview-item-details {
  font-size: 0.875rem;
  color: #64748b;
}

/* Error Container */
.error-container {
  background: white;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.error-container p {
  color: #64748b;
  font-size: 1.1rem;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .menu-management {
    padding: 20px 16px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .header-actions {
    justify-content: center;
    width: 100%;
  }
  
  .menu-items-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .menu-management {
    padding: 16px 12px;
  }
  
  .menu-management-header {
    padding: 24px 20px;
  }
  
  .restaurant-title h1 {
    font-size: 1.5rem;
    margin-bottom: 4px;
  }
  
  .restaurant-subtitle {
    font-size: 0.8rem;
  }
  
  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .header-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .action-btn {
    padding: 10px 16px;
    font-size: 0.8rem;
    min-width: 120px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .add-menu-form {
    padding: 24px 20px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 14px 18px;
  }
  
  .allergen-pills {
    gap: 8px;
    justify-content: center;
  }
  
  .allergen-pill {
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  .dietary-pills {
    gap: 8px;
    justify-content: center;
  }
  
  .dietary-pill {
    padding: 10px 14px;
    font-size: 0.8rem;
  }
  
  .menu-items-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .menu-items-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .menu-item-card .card-content {
    padding: 18px;
  }
  
  .modal-large {
    margin: 10px;
    max-height: 95vh;
    width: calc(100% - 20px);
  }
  
  .modal-form {
    padding: 20px;
  }
  
  .menu-management-modal-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  
  .action-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .menu-management {
    padding: 12px 8px;
  }
  
  .menu-management-header {
    padding: 20px 16px;
  }
  
  .restaurant-title {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  
  .header-logo {
    width: 48px;
    height: 48px;
  }
  
  .restaurant-title h1 {
    font-size: 1.3rem;
  }
  
  .add-menu-form {
    padding: 20px 16px;
    width: 100%; /* Ensure the form stays within the container */
    box-sizing: border-box;
  }
  
  .form-group {
    width: 100%; /* Ensure form fields stay within the container */
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 16px;
    width: 100%; /* Ensure inputs stretch to fit the container */
    box-sizing: border-box;
  }
  
  .allergen-pills,
  .dietary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center; /* Center the pills within the container */
  }
  
  .allergen-pill,
  .dietary-pill {
    padding: 4px 8px; /* Reduce padding */
    font-size: 0.65rem; /* Smaller font size */
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: calc(33.33% - 8px); /* Fit more pills per row */
    max-width: calc(33.33% - 8px);
    box-sizing: border-box;
  }
  
  .selected-dietary-tag,
  .selected-allergen-tag {
    padding: 2px 6px; /* Smaller tags */
    font-size: 0.7rem;
  }
  
  .menu-item-card .card-content {
    padding: 16px;
  }
  
  .action-btn {
    padding: 12px 16px;
    font-size: 0.85rem;
  }
  
  .modal-large {
    margin: 5px;
    border-radius: 12px;
  }
}

@media (min-width: 769px) {
  /* Compact Allergen Pills */
  dietary-pills {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* exactly 5 per row */
    grid-auto-rows: auto;
    grid-gap: 6px;
    gap: 6px;
    justify-items: center; /* center pills within their grid cell */
  }

  .dietary-pill {
    gap: 4px;
    padding: 3px 8px;
    font-size: 0.65rem;
    min-width: auto;
    box-shadow: none;
    flex-direction: column; /* icon above text */
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .dietary-name {
    display: block;
    text-align: center;
    line-height: 1.2;
  }
}
.allergens-section {
  margin-top: 16px;
  background: rgba(254, 242, 242, 0.6); /* soft red background */
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(254, 202, 202, 0.8); /* light red border */
}

.category-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.category-filter label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
}

.category-filter select {
  padding: 8px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #374151;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.category-filter select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.allergens-dietary-dots {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.allergen-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fecaca;
}

.allergen-more-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
}

.dietary-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bbf7d0;
}

.dietary-more-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.6rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
}

.modal-small {
  background: #fffbe6;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.12);
  border: 2px solid #fde68a;
  padding: 32px;
  margin: 0 auto;
  position: relative;
  max-width: 350px;
  width: 100%;
  animation: fadeIn 0.3s ease;
}
.modal-small .modal-close {
  background: none;
  border: none;
  color: #b45309;
  cursor: pointer;
  font-size: 1.2rem;
  border-radius: 6px;
  padding: 4px 8px;
  transition: background 0.2s;
}
.modal-small .modal-close:hover {
  background: #fde68a;
}

.cross-contact-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.cross-contact-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.cross-contact-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
}

.cross-contact-helper {
  color: #64748b;
  font-size: 0.9rem;
}

.cross-contact-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cross-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #374151;
}

.cross-contact-notes {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 80px;
  background: linear-gradient(145deg, #f8fafc, #ffffff);
  transition: all 0.2s ease;
}

.cross-contact-notes:focus {
  outline: none;
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.12);
}
/* Wrapper */
.addmenu.modern { border-top: 1px solid #f1f5f9; padding-top: 16px; }
.addmenu__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.addmenu__title { margin: 0; font-size: 1.25rem; font-weight: 800; color: #0f172a; }
.addmenu__subtitle { margin: 0; font-size: .92rem; color: #64748b; }

/* Form */
.addmenu__form {
  background: #ffffff; border: 1px solid #e5e7eb; border-radius: 16px;
  padding: 18px; box-shadow: 0 8px 24px rgba(2,6,23,0.06);
  display: flex; flex-direction: column; gap: 16px;
}
.addmenu__grid { display: grid; grid-gap: 14px; gap: 14px; }
.addmenu__grid--main { grid-template-columns: 1.1fr .9fr; }
.addmenu__grid--two { grid-template-columns: 1fr 1fr; align-items: start; } /* <- prevents equal heights */
@media (max-width: 960px){ .addmenu__grid--main, .addmenu__grid--two { grid-template-columns: 1fr; } }

/* Cards */
.addmenu__card {
  background: linear-gradient(180deg, #e0f2fe, #60a5fa);
  border: 1px solid #eef2f7;
  border-radius: 14px;
  padding: 14px;
}
.addmenu__card--image .field--fullheight { min-height: 220px; display: flex; flex-direction: column; }

/* Make these two cards smaller & not tall */
.addmenu__card--allergens,
.addmenu__card--dietary {
  padding: 10px;                 /* tighter padding */
}
.addmenu__card--allergens { background: #fff5f5; border-color: #fde2e2; }
.addmenu__card--dietary  { background: #f0fff4; border-color: #dcfce7; }

/* Rows & Fields */
.row { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; }
@media (max-width: 720px){ .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-weight: 700; color: #1f2937; font-size: .9rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #e2e8f0; border-radius: 10px; font-size: 1rem; background: #fff; transition: box-shadow .15s, border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #3b82f6; box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}
.field textarea { min-height: 84px; resize: vertical; }
.image-placeholder { display: grid; place-items: center; height: 100%; border: 1.5px dashed #e2e8f0; border-radius: 12px; color: #64748b; font-size: .95rem; }

/* Chips header */
.chips__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } /* tighter */
.chips__emoji { font-size: 1rem; }
.chips__title { font-weight: 800; color: #0f172a; font-size: .92rem; }
.chips__hint { font-size: .8rem; color: #6b7280; }

/* Compact chip layouts (no extra bottom whitespace) */
.chips {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin: 0; padding: 0;        /* remove extra space below */
}
.dietary-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-gap: 4px;
  gap: 4px; margin: 0; padding: 0; /* remove extra space below */
}
@media (max-width: 520px){
  .dietary-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
}

/* Chip */
.chip {
  --padx: 6px; --pady: 4px; --radius: 999px; --size: 15px; --gap: 4px; /* smaller */
  display: inline-flex; align-items: center; justify-content: center; gap: var(--gap);
  padding: var(--pady) var(--padx);
  border-radius: var(--radius); border: 1.5px solid #e5e7eb; background: #fff;
  font-size: var(--size); line-height: 1; -webkit-user-select: none; user-select: none; cursor: pointer;
}
.chip input { display: none; }
.chip__ico { font-size: .8rem; }
.chip__name { white-space: nowrap; }
.chip__name--center { text-align: center; width: 100%; }

/* Selected styles */
.chip.is-selected { border-color: #3b82f6; background: #eff6ff; box-shadow: 0 0 0 3px rgba(59,130,246,.12) inset; }
.chip--allergen.is-selected { border-color: #ef4444; background: #fee2e2; box-shadow: 0 0 0 3px rgba(239,68,68,.12) inset; }
.chip--dietary.is-selected  { border-color: #22c55e; background: #dcfce7; box-shadow: 0 0 0 3px rgba(34,197,94,.12) inset; }

/* Actions */
.addmenu__actions {
  position: sticky; bottom: 0; padding-top: 2px;
  background: linear-gradient(180deg, rgba(255,255,255,0), #e0f2fe 30%);
  display: flex; justify-content: flex-end;
}
.btn { appearance: none; border: none; border-radius: 12px; padding: 12px 16px; font-weight: 700; font-size: .98rem; cursor: pointer; }
.btn[disabled] { opacity: .7; cursor: not-allowed; }
.btn--primary { background: #2563eb; color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.25); transition: transform .04s ease; }
.btn--primary:active { transform: translateY(1px); }

/* Stop equal heights for Allergens/Dietary row */
.addmenu__grid--two { align-items: start; }

/* Make dietary chips truly compact (size-to-content) */
.card--dietary { padding: 10px; }
.card--dietary .chips__head { margin-bottom: 6px; }
.dietary-grid { gap: 4px; margin: 0; }

/* The main culprit: remove the forced full-width label on dietary names */
.card--dietary .chip__name--center { width: auto; }

/* Smaller dietary chips */
.card--dietary .chip { --padx: 6px; --pady: 4px; --size: .68rem; gap: 4px; }
.card--dietary .chip__ico { font-size: .8rem; }

/* Allergens: two rows of five */

  
  /* Keep chips sized to content (no stretching) */
  .addmenu__card--allergens .chip { justify-self: start; }
  .addmenu__card--allergens .chip__name--center { width: auto; }
  
  /* Keep it readable on small phones while staying 5×2 */
  @media (max-width: 420px){
    .addmenu__card--allergens .chip { --padx: 4px; --pady: 3px; --size: .62rem; gap: 3px; }
    .addmenu__card--allergens .chip__ico { font-size: .75rem; }
  }

  /* Allergens grid: same layout as dietary-grid, full width, two rows of five */
/* Allergens grid: 5 equal-width buttons per row, full card width */
.allergens-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* equal-width cells */
    grid-gap: 4px;
    gap: 4px;
    margin: 0;
    padding: 0;
    width: 100%;
  }
  
  /* Make each chip fill its grid cell */
  .allergens-grid .chip {
    justify-self: stretch;  /* stretch to fill column width */
    width: 100%;
    display: flex;          /* ensure icon + text align nicely */
    justify-content: center;
    align-items: center;
  }
  
  /* Let text center naturally */
  .allergens-grid .chip__name--center {
    width: auto;
    text-align: center;
  }
  
  /* Optional: slightly smaller on small phones while keeping 5 columns */
  @media (max-width: 420px){
    .allergens-grid .chip { --padx: 4px; --pady: 3px; --size: .62rem; gap: 3px; }
    .allergens-grid .chip__ico { font-size: .75rem; }
  }

  /* Mobile responsiveness */
@media (max-width: 640px) {
    .allergens-grid,
    .dietary-grid {
      grid-template-columns: repeat(3, 1fr); /* 3 per row on mobile */
    }
  }
  
  @media (max-width: 420px) {
    .allergens-grid,
    .dietary-grid {
      grid-template-columns: repeat(2, 1fr); /* 2 per row on very small screens */
    }
  }
/* Square Import Modal Styles */
.square-import-modal {
  max-width: 800px;
  width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.step-content {
  padding: 20px 0;
  flex: 1 1;
  overflow-y: auto;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f3f4f6;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.step-header h4 {
  margin: 0;
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
}

/* Square Setup Info */
.square-setup-info {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

.square-setup-info h5 {
  margin: 0 0 15px 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
}

.square-setup-info ol {
  margin: 0;
  padding-left: 20px;
  color: #4b5563;
  line-height: 1.6;
}

.square-setup-info li {
  margin-bottom: 8px;
}

.square-setup-info a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.square-setup-info a:hover {
  text-decoration: underline;
}

.square-setup-info p {
  margin: 0 0 15px 0;
  color: #4b5563;
  line-height: 1.5;
}

.oauth-benefits {
  background: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 6px;
  padding: 15px;
  margin-top: 15px;
}

.oauth-benefits h6 {
  margin: 0 0 10px 0;
  color: #1976d2;
  font-size: 14px;
  font-weight: 600;
}

.oauth-benefits ul {
  margin: 0 0 10px 0;
  padding-left: 20px;
}

.oauth-benefits li {
  margin-bottom: 5px;
  color: #424242;
  font-size: 14px;
}

.oauth-benefits p {
  margin: 0;
  font-size: 13px;
  color: #666;
  font-style: italic;
}

.oauth-btn {
  background: #00c851 !important;
  border-color: #00c851 !important;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 24px;
}

.oauth-btn:hover {
  background: #00a844 !important;
  border-color: #00a844 !important;
}

.action-btn.danger {
  background: #dc3545;
  border-color: #dc3545;
  color: white;
}

.action-btn.danger:hover {
  background: #c82333;
  border-color: #bd2130;
}

/* Import Summary */
.import-summary {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
}

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

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

.stat-number {
  display: block;
  font-size: 28px;
  font-weight: bold;
  color: #0369a1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

/* Preview Items */
.preview-items {
  margin-bottom: 25px;
}

.preview-items h5 {
  margin: 0 0 15px 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
}

.items-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
}

.preview-item {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: white;
}

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

.item-name {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.item-details {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}

.more-items {
  padding: 12px 16px;
  text-align: center;
  color: #6b7280;
  font-style: italic;
  background: #f9fafb;
}

/* Import Errors */
.import-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.import-errors h5 {
  margin: 0 0 10px 0;
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
}

.errors-list {
  max-height: 150px;
  overflow-y: auto;
}

.error-item {
  font-size: 13px;
  color: #7f1d1d;
  margin-bottom: 4px;
  padding: 4px 0;
}

/* Import Progress */
.import-progress {
  margin-bottom: 25px;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

.importing-message {
  text-align: center;
  padding: 30px 20px;
}

.loading-spinner {
  font-size: 32px;
  margin-bottom: 15px;
  animation: spin 2s linear infinite;
}

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

.importing-message p {
  color: #6b7280;
  font-size: 16px;
  margin: 0;
}

/* Completion Message */
.completion-message {
  text-align: center;
  padding: 30px 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  margin-bottom: 25px;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.completion-message h5 {
  margin: 0 0 10px 0;
  color: #166534;
  font-size: 18px;
  font-weight: 600;
}

.completion-message p {
  color: #15803d;
  margin: 0;
  font-size: 16px;
}

/* Next Steps */
.next-steps {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
}

.next-steps h5 {
  margin: 0 0 15px 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 600;
}

.next-steps ul {
  margin: 0;
  padding-left: 20px;
  color: #4b5563;
  line-height: 1.6;
}

.next-steps li {
  margin-bottom: 8px;
}

/* Import Disclaimer */
.import-disclaimer {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #92400e;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.modal-actions .action-btn {
  min-width: 140px;
  flex: 0 1 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .square-import-modal {
    width: 95vw;
    margin: 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .summary-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .modal-actions {
    flex-direction: column;
    gap: 8px;
  }
  
  .modal-actions .action-btn {
    width: 100%;
    min-width: auto;
  }
  
  .step-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Form Group Styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  background: white;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:disabled,
.form-group select:disabled {
  background: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
}

/* Message Styles */
.message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}

.message.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.message.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
}

.admin-login {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.admin-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width=%2760%27 height=%2760%27 viewBox=%270 0 60 60%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg fill=%27none%27 fill-rule=%27evenodd%27%3E%3Cg fill=%27%23ffffff%27 fill-opacity=%270.1%27%3E%3Cpath d=%27m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z%27/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.3;
}

.admin-login > * {
  position: relative;
  z-index: 1;
}

.admin-login-form {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.admin-login-form h2 {
  margin: 0 0 24px 0;
  text-align: center;
  color: #2d3748;
  font-size: 1.75rem;
  font-weight: 700;
}

.admin-login-form input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #f8fafc;
  box-sizing: border-box;
}

.admin-login-form input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-login-form input::placeholder {
  color: #94a3b8;
}

.admin-login-form button {
  width: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.admin-login-form button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.admin-login-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.error-message {
  background: rgba(245, 101, 101, 0.1);
  color: #e53e3e;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(245, 101, 101, 0.2);
}

.admin-note {
  margin-top: 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .admin-login {
    padding: 16px;
  }
  
  .admin-login-form {
    padding: 24px;
  }
  
  .admin-login-form h2 {
    font-size: 1.5rem;
  }
}

/* Demo Menu Specific Styles */

.demo-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.demo-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  padding: 12px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.demo-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.demo-badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.demo-text {
  font-size: 0.95rem;
  font-weight: 500;
}

.demo-error {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #f8fafc;
}

.demo-error-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  text-align: center;
}

.demo-error-content h2 {
  color: #dc2626;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.demo-error-content p {
  color: #6b7280;
  margin-bottom: 24px;
  line-height: 1.6;
}

.demo-setup-instructions {
  background: #f3f4f6;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  margin-top: 20px;
}

.demo-setup-instructions h3 {
  color: #374151;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.demo-setup-instructions ol {
  color: #6b7280;
  line-height: 1.6;
  padding-left: 20px;
}

.demo-setup-instructions li {
  margin-bottom: 8px;
}

.demo-setup-instructions code {
  background: #e5e7eb;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #374151;
}

.demo-loading {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #6b7280;
}

.demo-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 16px;
  margin: 20px;
  text-align: center;
}

.demo-notice p {
  margin: 0;
  color: #1e40af;
  font-weight: 500;
}

.demo-cross-contact-alert {
  background: linear-gradient(90deg, #fff5f5 0%, #fde2e2 100%);
  color: #991b1b;
  border: 1.2px solid #fecaca;
  border-radius: 10px;
  padding: 12px 18px;
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.08);
}

.demo-cross-contact-icon {
  font-size: 1.5rem;
  margin-right: 8px;
}

.demo-cross-contact-text > strong {
  color: #991b1b;
}

/* Override public menu styles when in demo mode */
.public-menu.modern.demo-mode {
  /* Ensure demo works with the modern PublicMenu layout */
  max-width: none;
  margin-top: 0;
}

.public-menu.modern.demo-mode .menu-header-modern {
  /* Ensure header is properly positioned after demo banner */
  position: static;
  top: auto;
}

.public-menu.modern.demo-mode .publicmenu-flag {
  /* Hide the report flag in demo mode */
  display: none;
}

.public-menu.modern.demo-mode .report-button {
  opacity: 0.6;
  cursor: not-allowed;
}

.public-menu.modern.demo-mode .report-button:hover {
  background: #6b7280;
  transform: none;
}

.fake-data-notice {
  font-size: 0.875rem;
  color: #6366f1;
  font-style: italic;
  margin-top: 4px;
}

.demo-disabled-notice {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-weight: 500;
}

.report-modal input:disabled,
.report-modal select:disabled,
.report-modal textarea:disabled,
.report-modal button:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
  border-color: #d1d5db;
}

.menu-footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  background: white;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.powered-by {
  margin-top: 16px;
  font-size: 0.875rem;
  color: #6b7280;
}

/* Demo-specific adjustments */
.demo-mode .filters-compact {
  margin-top: 0;
}

.demo-mode .menu-content {
  background: transparent;
}

/* Ensure demo banner stays on top */
.demo-banner {
  z-index: 1001;
}

.demo-mode .menu-header-modern {
  z-index: 100;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .demo-banner-content {
    flex-direction: column;
    gap: 8px;
  }
  
  .demo-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
  }
  
  .demo-text {
    font-size: 0.875rem;
  }
  
  .demo-error-content {
    padding: 30px 20px;
  }
  
  .demo-notice {
    margin: 12px;
    padding: 12px;
  }
  
  .demo-cross-contact-alert {
    font-size: 0.95rem;
    padding: 10px 12px;
    gap: 8px;
  }
  
  .demo-cross-contact-icon {
    font-size: 1.2rem;
    margin-right: 6px;
  }
}

.demomenu-allergen-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 8px;
  gap: 8px;
  max-width: 100%;
  box-sizing: border-box;
}

.demomenu-allergen-pill {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.demomenu-allergen-pill:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.demomenu-allergen-pill.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.demomenu-allergen-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

@media (max-width: 480px) {
  .demomenu-allergen-pills {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
    gap: 6px;
  }

  .demomenu-allergen-pill {
    padding: 4px 6px;
    font-size: 0.65rem;
    min-height: 36px;
  }

  .demomenu-allergen-icon {
    font-size: 1rem;
  }
}

/* Keep filter row as a horizontal layout */
.filters-compact .filter-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

/* Stack the two dropdowns vertically on the left */
.filter-dropdowns {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 300px;
}

.category-filter-modern,
.dietary-filter-modern {
  width: 100%;
}

.category-select,
.dietary-select {
  width: 100%;
}

.dietary-filter-modern {
  margin-top: 4px; /* small space between category and dietary */
}

/* Keep allergens on the right */
.allergy-filter-direct {
  flex: 1 1;
}

.dietary-filter-modern {
  margin-top: 4px; /* small consistent gap between dropdowns */
  text-align: left;
}


.filter-dropdowns {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ensures both dropdowns align to the same left edge */
  gap: 4px; /* small vertical gap */
}

.category-filter-modern,
.dietary-filter-modern {
  width: 100%;
  margin: 0;
  padding: 0;
}

.dietary-filter-modern {
  text-align: left;
}

.category-select,
.dietary-select {
  width: 100%;
  margin: 0;
}

.dietary-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin: 0 2px;
  background-color: #16a34a; /* Green for dietary options */
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 10px;
  color: white;
  font-weight: bold;
  cursor: default;
}

.dietary-more-dot {
  display: inline-block;
  margin-left: 4px;
  font-size: 12px;
  color: #16a34a;
  font-weight: bold;
}

/* --- Mobile phones only: full-width Category & Dietary selects --- */
@media (max-width: 480px) {
  /* Stack filters and let them stretch */
  .filters-compact .filter-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  /* Let the dropdown column use the whole width */
  .filter-dropdowns {
    width: 100% !important;
    max-width: none !important;
  }

  /* Each dropdown wrapper spans 100% */
  .category-filter-modern,
  .dietary-filter-modern {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
  }

  /* The selects themselves truly fill the line */
  .category-select,
  .dietary-select {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  /* Don’t let the allergens block squeeze them */
  .allergy-filter-direct {
    width: 100% !important;
    min-width: 0 !important;
  }
}

.phone-frame {
  position: relative;
  display: inline-block;
  padding: 40px 12px;
  background: #111;
  border-radius: 36px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  margin: 20px auto; /* centers horizontally */
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #333;
  border-radius: 3px;
}

.phone-frame::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: #333;
  border-radius: 50%;
}

.demomenu-allergen-icon {
  margin-right: 4px;
}

@media (max-width: 480px) {
  .demomenu-allergen-icon.hide-on-mobile {
    display: none;
  }
}
.help-center {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

.help-header {
  text-align: center;
  margin-bottom: 48px;
}

.help-header h1 {
  margin: 0 0 12px 0;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.help-header p {
  color: #718096;
  font-size: 1.125rem;
  margin: 0;
}

.help-content {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.quick-links h2,
.faq-section h2,
.additional-help h2 {
  margin: 0 0 24px 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
}

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

.quick-link-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.quick-link-card:hover {
  transform: translateY(-2px);
}

.quick-link-card h3 {
  margin: 0 0 12px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
}

.quick-link-card p {
  margin: 0;
  color: #718096;
  line-height: 1.5;
}

.faq-list {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  color: #2d3748;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: #f7fafc;
}

.faq-question.active {
  background-color: #edf2f7;
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 300;
  color: #667eea;
}

.faq-answer {
  padding: 0 24px 20px;
  background-color: #f7fafc;
}

.faq-answer p {
  margin: 0;
  color: #4a5568;
  line-height: 1.6;
}

.additional-help {
  text-align: center;
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.additional-help p {
  color: #718096;
  margin: 0 0 24px 0;
  font-size: 1rem;
}

.contact-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.contact-btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .help-center {
    padding: 16px;
  }
  
  .help-header h1 {
    font-size: 2rem;
  }
  
  .link-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-question {
    padding: 16px;
  }
  
  .faq-answer {
    padding: 0 16px 16px;
  }
}

.help-center {
  max-width: 1000px;
  width: 100%;     /* Always use full width of parent up to max-width */
  min-width: 0;    /* Prevent flex/grid child overflow */
  box-sizing: border-box; /* Include padding and border in width */
  overflow-x: hidden;     /* No horizontal scroll */
}

.faq-section,
.faq-list {
  width: 100%;
  box-sizing: border-box;
}

.faq-answer {
  width: 100%;
  word-break: break-word;    /* Break long words/links */
  box-sizing: border-box;
}

/* ---------- Layout / Header ---------- */
.help-center {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.help-header h1 {
  margin: 0 0 6px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
}

.help-header p {
  color: #4b5563;
  margin: 0 0 20px 0;
}

/* ---------- Quick Links (tappable tiles) ---------- */
.quick-links {
  margin-top: 8px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.quick-link-button {
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.quick-link-button h3 {
  margin: 0 0 6px 0;
  font-size: 1rem;
}

.quick-link-button p {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.quick-link-button:hover,
.quick-link-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
  border-color: #c7d2fe; /* soft indigo */
  outline: none;
}

.quick-link-button:active {
  transform: translateY(0);
}

/* ---------- FAQ ---------- */
.faq-section {
  margin-top: 28px;
}

.faq-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden; /* keep corners crisp during animation */
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 600;
  color: #111827;
}

.faq-question:hover,
.faq-question:focus-visible {
  background: #f9fafb;
  outline: none;
}

.faq-icon {
  font-size: 1.25rem;
  color: #6b7280;
}

/* Smooth expand/collapse */
.faq-answer {
  padding: 0 16px;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 240ms ease,
    opacity 180ms ease,
    transform 240ms ease;
}

.faq-item.open .faq-answer {
  padding: 10px 16px 16px;
  max-height: 320px; /* enough for most answers; raise if needed */
  opacity: 1;
  transform: translateY(0);
}

.faq-answer p {
  margin: 0;
  color: #374151;
  line-height: 1.55;
}

/* ---------- Still Need Help / Actions ---------- */
.additional-help {
  margin-top: 32px;
  text-align: center;
}

.help-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}

.contact-btn,
.secondary-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  cursor: pointer;
  transition: box-shadow 120ms ease, transform 120ms ease, border-color 120ms ease;
}

.contact-btn {
  background: #4f46e5; /* indigo-600 */
  color: #fff;
  border-color: #4f46e5;
}

.contact-btn:hover,
.contact-btn:focus-visible {
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
  border-color: #c7d2fe;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.08);
}

.tiny-note {
  color: #6b7280;
  font-size: 0.9rem;
}

/* ---------- Accessibility / Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .quick-link-button,
  .faq-answer {
    transition: none;
  }
}

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .help-center {
    padding: 20px 12px 56px;
  }
  .quick-link-button {
    padding: 12px 14px;
  }
  .faq-question {
    padding: 12px 14px;
  }
}

.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.contact-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-header h1 {
  margin: 0 0 12px 0;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-header p {
  color: #718096;
  font-size: 1.125rem;
  margin: 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 48px;
  gap: 48px;
}

.contact-info h2,
.contact-form-section h2 {
  margin: 0 0 24px 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2d3748;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-icon {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-details h3 {
  margin: 0 0 4px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
}

.contact-details p {
  margin: 0 0 4px 0;
  font-size: 1rem;
  color: #4a5568;
  font-weight: 500;
}

.contact-details span {
  font-size: 0.875rem;
  color: #718096;
}

.support-hours {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.support-hours h3 {
  margin: 0 0 16px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #2d3748;
}

.support-hours ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.support-hours li {
  padding: 4px 0;
  color: #4a5568;
  font-size: 0.875rem;
}

.contact-form-section {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: fit-content;
}

.submit-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group label {
  font-weight: 500;
  color: #2d3748;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.submit-btn {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 768px) {
  .contact-page {
    padding: 16px;
  }
  
  .contact-header h1 {
    font-size: 2rem;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form-section {
    padding: 24px;
  }
}

.terms-of-service {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: #333;
}

.terms-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.terms-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.last-updated {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
}

.terms-content {
  margin-top: 2rem;
}

.terms-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fafafa;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.terms-section h2 {
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.terms-section h3 {
  color: #374151;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
}

.terms-section p {
  margin: 0 0 1rem 0;
  color: #4b5563;
}

.terms-section ul {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.terms-section li {
  margin-bottom: 0.5rem;
  color: #4b5563;
}

.important-notice {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}

.important-notice strong {
  color: #dc2626;
}

.contact-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
  color: #0c4a6e;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .terms-of-service {
    padding: 1rem;
  }
  
  .terms-header h1 {
    font-size: 2rem;
  }
  
  .terms-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .terms-section h2 {
    font-size: 1.3rem;
  }
  
  .terms-section h3 {
    font-size: 1.1rem;
  }
}

/* Print styles */
@media print {
  .terms-of-service {
    max-width: none;
    padding: 0;
  }
  
  .terms-section {
    background: white;
    border: 1px solid #ccc;
    page-break-inside: avoid;
    break-inside: avoid;
  }
}
.privacy-policy {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: #333;
}

.privacy-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.privacy-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
}

.last-updated {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
  font-style: italic;
}

.privacy-content {
  margin-top: 2rem;
}

.privacy-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fafafa;
  border-radius: 8px;
  border-left: 4px solid #10b981;
}

.privacy-section h2 {
  color: #1e293b;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.privacy-section h3 {
  color: #374151;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem 0;
}

.privacy-section p {
  margin: 0 0 1rem 0;
  color: #4b5563;
}

.privacy-section ul {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
}

.privacy-section li {
  margin-bottom: 0.5rem;
  color: #4b5563;
}

.privacy-section li strong {
  color: #1e293b;
  font-weight: 600;
}

.contact-info {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
  color: #065f46;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .privacy-policy {
    padding: 1rem;
  }
  
  .privacy-header h1 {
    font-size: 2rem;
  }
  
  .privacy-section {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .privacy-section h2 {
    font-size: 1.3rem;
  }
  
  .privacy-section h3 {
    font-size: 1.1rem;
  }
}

/* Print styles */
@media print {
  .privacy-policy {
    max-width: none;
    padding: 0;
  }
  
  .privacy-section {
    background: white;
    border: 1px solid #ccc;
    page-break-inside: avoid;
    break-inside: avoid;
  }
}
.about-page {
  min-height: 100vh;
  background: #fafafa;
}

/* Hero Section */
.about-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  padding: 50px 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px;
  animation: float 20s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

/* Section Styles */
.about-section {
  padding: 80px 0;
}

.about-section:nth-child(even) {
  background: white;
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 48px;
}

.mission-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #4a5568;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 32px;
  gap: 32px;
  margin-top: 48px;
}

.feature-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.feature-card p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Story Section */
.story-section {
 background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
  color: #ffffff;
}

.story-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 24px;
}

.story-content p:last-child {
  margin-bottom: 0;
}

/* Cuisine Section */
.cuisine-section {
  background: white;
}

.section-description {
  font-size: 1.125rem;
  color: #64748b;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

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

.cuisine-card {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.cuisine-card:hover {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.cuisine-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.cuisine-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e293b;
  transition: color 0.3s ease;
}

.cuisine-card:hover h3 {
  color: white;
}

.cuisine-card p {
  color: #64748b;
  margin: 0;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.cuisine-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* Values Section */
.values-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
}

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

.value-item {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  border: 1px solid #e2e8f0;
}

.value-item:hover {
  transform: translateY(-2px);
}

.value-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.value-item p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 24px;
}

.cta-section p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 160px;
  justify-content: center;
}

.cta-btn.primary {
  background: white;
  color: #667eea;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.cta-btn.primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.cta-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-hero {
    padding: 60px 0;
  }
  
  .about-hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .about-section {
    padding: 60px 0;
  }
  
  .about-section h2 {
    font-size: 2rem;
    margin-bottom: 32px;
    color: #ffffff;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .feature-card {
    padding: 24px;
  }
  
  .cuisine-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .section-content {
    padding: 0 16px;
  }
  
  .about-hero h1 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
  }
  
  .cuisine-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-card,
  .cuisine-card,
  .value-item {
    padding: 20px;
  }
}

.mission-kicker {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 1rem; /* Reduced font size for smaller text */
  font-weight: 600;
  padding: 12px 20px;
  margin: 20px 0;
  background: linear-gradient(90deg, #eef2ff, #e0e7ff); /* soft brand gradient */
  color: #1f2937; /* dark text */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mission-kicker strong {
  color: #4338ca; /* brand purple */
  font-weight: 700;
}
.blog-posts-page {
  min-height: 100vh;
  background: #fafafa;
}

/* Hero Section */
.blog-posts-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  padding: 50px 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-posts-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px;
  animation: blog-posts-float 20s ease-in-out infinite;
}

.blog-posts-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-posts-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.blog-posts-hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

/* Section Styles */
.blog-posts-section {
  padding: 80px 0;
}

.blog-posts-section:nth-child(even) {
  background: white;
}

.blog-posts-section-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-posts-section h2 {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 40px;
}

/* Featured Post */
.blog-posts-featured-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  margin-bottom: 48px;
  border: 1px solid #e2e8f0;
}

.blog-posts-featured-image {
  flex: 0 0 300px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-posts-image-placeholder {
  font-size: 4rem;
  opacity: 0.75;
}

.blog-posts-featured-content {
  flex: 1 1;
  padding: 32px;
}

.blog-posts-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.blog-posts-date {
  color: #64748b;
}

.blog-posts-category {
  background: #eef2ff;
  color: #4338ca;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.blog-posts-featured-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-posts-featured-content p {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.blog-posts-read-more-btn {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-posts-read-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Blog Posts Grid */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  grid-gap: 28px;
  gap: 28px;
  margin-top: 32px;
}

.blog-posts-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
}

.blog-posts-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-posts-card-image {
  height: 180px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-posts-card-content {
  padding: 22px;
}

.blog-posts-card-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-posts-card-content p {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 18px;
  font-size: 0.97rem;
}

/* Newsletter Section */
.blog-posts-newsletter-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  text-align: center;
}

.blog-posts-newsletter-text {
  font-size: 1.05rem;
  color: #46566f;
  max-width: 640px;
  margin: 0 auto 26px;
  line-height: 1.7;
}

.blog-posts-newsletter-form {
  display: flex;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-posts-email-input {
  flex: 1 1;
  min-width: 250px;
  padding: 14px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.blog-posts-email-input:focus {
  border-color: #667eea;
}

.blog-posts-subscribe-btn {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

.blog-posts-newsletter-note {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
}

/* CTA Section */
.blog-posts-cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  text-align: center;
}

.blog-posts-cta-section h2 {
  color: white;
  margin-bottom: 12px;
}

.blog-posts-cta-section p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.blog-posts-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.blog-posts-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 160px;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.blog-posts-cta-btn-primary {
  background: white;
  color: #3b82f6;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.blog-posts-cta-btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* -------- Article view additions -------- */
.blog-posts-article-hero .blog-posts-hero-subtitle {
  opacity: 0.95;
}

.blog-post-article {
  max-width: 800px;
}

.blog-posts-back {
  background: transparent;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 18px;
  cursor: pointer;
}

.blog-posts-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 40px 0 24px;
}

.blog-posts-related-heading {
  text-align: left;
  color: #0f172a;
  margin-bottom: 12px;
}

.blog-post-body p {
  color: #334155;
  line-height: 1.85;
  margin: 14px 0;
  font-size: 1.03rem;
}

.blog-post-body h3 {
  color: #0f172a;
  margin-top: 26px;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.blog-post-body ul {
  padding-left: 1.25rem;
  margin: 6px 0 10px;
}

.blog-post-body li {
  color: #334155;
  line-height: 1.85;
  margin: 6px 0;
}

.blog-post-takeaway {
  background: #f1f5f9;
  border-left: 4px solid #3b82f6;
  padding: 14px 16px;
  border-radius: 8px;
  margin-top: 18px;
}

.blog-post-note {
  background: #fff7ed;
  border-left: 4px solid #fb923c;
  padding: 12px 14px;
  border-radius: 8px;
  color: #7c2d12;
}

/* Animations */
@keyframes blog-posts-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-posts-hero {
    padding: 56px 0;
  }
  
  .blog-posts-hero h1 {
    font-size: 2.4rem;
  }
  
  .blog-posts-hero-subtitle {
    font-size: 1.05rem;
  }
  
  .blog-posts-section {
    padding: 56px 0;
  }
  
  .blog-posts-section h2 {
    font-size: 1.9rem;
    margin-bottom: 28px;
  }
  
  .blog-posts-featured-card {
    flex-direction: column;
  }
  
  .blog-posts-featured-image {
    flex: none;
    height: 200px;
  }
  
  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  
  .blog-posts-newsletter-form {
    flex-direction: column;
    align-items: center;
  }
  
  .blog-posts-email-input {
    min-width: 100%;
    max-width: 300px;
  }
  
  .blog-posts-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .blog-posts-cta-btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .blog-posts-section-content {
    padding: 0 16px;
  }
  
  .blog-posts-hero h1 {
    font-size: 1.9rem;
  }
  
  .blog-posts-hero-subtitle {
    font-size: 1rem;
  }
  
  .blog-posts-featured-content {
    padding: 22px;
  }
  
  .blog-posts-featured-content h3 {
    font-size: 1.35rem;
  }
  
  .blog-posts-card-content {
    padding: 18px;
  }
}

.release-notes-page {
  min-height: 100vh;
  background: #fafafa;
}

/* Hero Section */
.release-notes-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  padding: 50px 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.release-notes-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px;
  animation: release-notes-float 20s ease-in-out infinite;
}

.release-notes-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.release-notes-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.release-notes-hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

/* Section Styles */
.release-notes-section {
  padding: 80px 0;
}

.release-notes-section:nth-child(even) {
  background: white;
}

.release-notes-section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.release-notes-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 48px;
}

/* Version Card */
.release-notes-version-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin-bottom: 48px;
}

.release-notes-version-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  padding: 24px 32px;
}

.release-notes-version-info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.release-notes-version-info h3 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0;
}

.release-notes-version-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.release-notes-version-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.release-notes-changes {
  padding: 32px;
}

.release-notes-change-category {
  margin-bottom: 32px;
}

.release-notes-change-category:last-child {
  margin-bottom: 0;
}

.release-notes-change-category h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.release-notes-change-category ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.release-notes-change-category li {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
}

.release-notes-change-category li::before {
  content: '•';
  color: #667eea;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Timeline */
.release-notes-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.release-notes-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #3b82f6, #60a5fa);
}

.release-notes-timeline-item {
  position: relative;
  margin-bottom: 48px;
  padding-left: 60px;
}

.release-notes-timeline-item:last-child {
  margin-bottom: 0;
}

.release-notes-timeline-marker {
  position: absolute;
  left: 11px;
  top: 0;
  width: 20px;
  height: 20px;
  background: white;
  border: 3px solid #3b82f6;
  border-radius: 50%;
  z-index: 2;
}

.release-notes-timeline-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.release-notes-timeline-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.release-notes-timeline-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.release-notes-timeline-date {
  color: #64748b;
  font-size: 0.9rem;
}

.release-notes-timeline-changes {
  display: grid;
  grid-gap: 24px;
  gap: 24px;
}

/* Roadmap Section */
.release-notes-roadmap-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.release-notes-roadmap-intro {
  font-size: 1.125rem;
  color: #4a5568;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.release-notes-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 32px;
  gap: 32px;
  margin-top: 48px;
}

.release-notes-roadmap-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
}

.release-notes-roadmap-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.release-notes-roadmap-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}

.release-notes-roadmap-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.release-notes-roadmap-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.release-notes-roadmap-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #eef2ff;
  color: #4338ca;
}

/* Feedback Section */
.release-notes-feedback-section {
  background: white;
  text-align: center;
}

.release-notes-feedback-text {
  font-size: 1.125rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.release-notes-feedback-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.release-notes-feedback-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 160px;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.release-notes-feedback-btn-primary {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  color: white;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.release-notes-feedback-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.release-notes-feedback-btn-secondary {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  border: 2px solid rgba(102, 126, 234, 0.3);
}

.release-notes-feedback-btn-secondary:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: translateY(-2px);
}

/* CTA Section */
.release-notes-cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  text-align: center;
}

.release-notes-cta-section h2 {
  color: white;
  margin-bottom: 24px;
}

.release-notes-cta-section p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.release-notes-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.release-notes-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 160px;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.release-notes-cta-btn-primary {
  background: white;
  color: #667eea;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.release-notes-cta-btn-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Animations */
@keyframes release-notes-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .release-notes-hero {
    padding: 60px 0;
  }
  
  .release-notes-hero h1 {
    font-size: 2.5rem;
  }
  
  .release-notes-hero-subtitle {
    font-size: 1.25rem;
  }
  
  .release-notes-section {
    padding: 60px 0;
  }
  
  .release-notes-section h2 {
    font-size: 2rem;
    margin-bottom: 32px;
  }
  
  .release-notes-version-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .release-notes-timeline::before {
    left: 15px;
  }
  
  .release-notes-timeline-item {
    padding-left: 50px;
  }
  
  .release-notes-timeline-marker {
    left: 6px;
    width: 18px;
    height: 18px;
  }
  
  .release-notes-roadmap-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .release-notes-feedback-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .release-notes-feedback-btn {
    width: 100%;
    max-width: 280px;
  }
  
  .release-notes-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .release-notes-cta-btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .release-notes-section-content {
    padding: 0 16px;
  }
  
  .release-notes-hero h1 {
    font-size: 2rem;
  }
  
  .release-notes-hero-subtitle {
    font-size: 1.125rem;
  }
  
  .release-notes-version-header {
    padding: 20px 24px;
  }
  
  .release-notes-version-info h3 {
    font-size: 1.5rem;
  }
  
  .release-notes-changes {
    padding: 24px;
  }
  
  .release-notes-timeline-content {
    padding: 20px;
  }
  
  .release-notes-roadmap-card {
    padding: 24px;
  }
}

/* Modern Messages Page Styling */

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

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

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.messages-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  min-height: 100vh;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  position: relative;
  overflow-x: hidden;
}

.messages-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 255, 214, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 120, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 200, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.messages-page > * {
  position: relative;
  z-index: 1;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.loading-spinner {
  margin-bottom: 24px;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.loading-text h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Header */
.messages-header {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInUp 0.6s ease-out;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.header-title {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.header-title h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b, #475569, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-stats {
  display: flex;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 20px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-item.unread {
  background: rgba(239, 246, 255, 0.9);
  border-color: rgba(147, 197, 253, 0.6);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 4px;
}

.stat-item.unread .stat-number {
  color: #2563eb;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.messages-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* Search Box */
.search-box {
  min-width: 300px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  padding: 0 16px;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.search-input-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 1);
}

.search-icon {
  flex-shrink: 0;
  margin-right: 12px;
  font-size: 1.1rem;
  color: #64748b;
  pointer-events: none;
}

.search-input-wrapper input {
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 0;
  font-size: 0.95rem;
  color: #1e293b;
  flex: 1 1;
  font-weight: 500;
  min-width: 0;
}

.search-input-wrapper input::placeholder {
  color: #94a3b8;
}

.clear-search {
  background: rgba(239, 68, 68, 0.1);
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.875rem;
  margin-left: 8px;
  transition: all 0.2s ease;
}

.clear-search:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.05);
}

/* Filter Controls */
.filter-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  padding: 0 16px;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.filter-wrapper:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.filter-icon {
  margin-right: 12px;
  font-size: 1.1rem;
  color: #64748b;
}

.status-filter, .status-select {
  border: none;
  outline: none;
  background: transparent;
  padding: 14px 0;
  font-size: 0.95rem;
  color: #1e293b;
  cursor: pointer;
  font-weight: 500;
  min-width: 140px;
}

.refresh-btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.refresh-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.refresh-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.refresh-icon.spinning {
  animation: spin 1s linear infinite;
}

/* Notification Messages */
.notification-message {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  margin-bottom: 24px;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 500;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideInUp 0.4s ease-out;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.notification-message.success {
  background: rgba(220, 252, 231, 0.95);
  border-color: rgba(134, 239, 172, 0.6);
  color: #166534;
}

.notification-message.error {
  background: rgba(254, 242, 242, 0.95);
  border-color: rgba(252, 165, 165, 0.6);
  color: #991b1b;
}

.message-icon {
  font-size: 1.2rem;
}

.message-content-text {
  flex: 1 1;
}

.close-notification {
  background: rgba(0, 0, 0, 0.1);
  border: none;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  color: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.close-notification:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

/* Messages Container */
.messages-container {
  display: flex;
  gap: 24px;
  height: calc(100vh - 300px);
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  animation: slideInUp 0.8s ease-out;
}

/* Messages List */
.messages-list {
  width: 40%;
  border-right: 1px solid rgba(241, 245, 249, 0.8);
  display: flex;
  flex-direction: column;
}

.messages-scroll {
  flex: 1 1;
  overflow-y: auto;
  padding: 8px;
}

.messages-scroll::-webkit-scrollbar {
  width: 6px;
}

.messages-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.messages-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
}

.messages-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.6);
}

.message-item {
  padding: 20px;
  margin: 4px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  background: rgba(248, 250, 252, 0.3);
  animation: slideInLeft 0.4s ease-out;
}

.message-item:hover {
  background: rgba(248, 250, 252, 0.8);
  transform: translateX(4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.message-item.active {
  background: rgba(239, 246, 255, 0.9);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
  transform: translateX(8px);
}

.message-item.unread {
  border-left: 4px solid #3b82f6;
}

.message-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.sender-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1;
  min-width: 0;
}

.sender-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.sender-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sender-name {
  font-weight: 700;
  color: #1e293b;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sender-email {
  font-size: 0.8rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.timestamp {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 500;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-badge.unread {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.3);
}

.status-badge.read {
  background: rgba(34, 197, 94, 0.15);
  color: #166534;
  border-color: rgba(34, 197, 94, 0.3);
}

.status-badge.pending {
  background: rgba(245, 158, 11, 0.15);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.3);
}

.status-badge.resolved {
  background: rgba(168, 85, 247, 0.15);
  color: #7c3aed;
  border-color: rgba(168, 85, 247, 0.3);
}

.subject {
  font-weight: 700;
  color: #1e293b;
  font-size: 1rem;
  line-height: 1.4;
  margin: 4px 0;
}

.message-snippet {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Empty States */
.no-messages, .no-message-selected {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 40px;
}

.empty-state {
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
}

.empty-subtext {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* Message Detail */
.message-detail {
  flex: 1 1;
  padding: 32px;
  overflow-y: auto;
  background: rgba(248, 250, 252, 0.3);
}

.message-detail::-webkit-scrollbar {
  width: 6px;
}

.message-detail::-webkit-scrollbar-track {
  background: transparent;
}

.message-detail::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 3px;
}

 .messages-page-content {
  background: rgba(255, 255, 255, 0.9);
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  animation: fadeIn 0.6s ease-out;
}

.message-header-detail {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  gap: 24px;
}

.message-title-section {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1 1;
}

.message-avatar-large {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  flex-shrink: 0;
}

.message-title-info {
  flex: 1 1;
  min-width: 0;
}

.message-title-info h2 {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.3;
}

.message-from {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.from-name {
  font-weight: 700;
  color: #374151;
  font-size: 1rem;
}

.from-email {
  font-size: 0.875rem;
  color: #64748b;
  font-style: italic;
}

.message-actions {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-shrink: 0;
}

.status-update-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.action-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-select {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(226, 232, 240, 0.6);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.status-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.delete-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.delete-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.message-meta-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  padding: 20px;
  background: rgba(248, 250, 252, 0.6);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

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

.meta-label {
  font-weight: 600;
  color: #64748b;
}

.meta-value {
  color: #1e293b;
  font-weight: 500;
}

.message-body {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.6);
}

.message-content-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(241, 245, 249, 0.8);
}

.content-icon {
  font-size: 1.1rem;
}

.content-label {
  font-weight: 700;
  color: #374151;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.message-text {
  line-height: 1.7;
  color: #1e293b;
  font-size: 0.95rem;
}

.message-text p {
  margin: 0 0 16px 0;
}

.message-text p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .messages-container {
    flex-direction: column;
    height: auto;
  }
  
  .messages-list, .message-detail {
    width: 100%;
  }
  
  .messages-list {
    max-height: 50vh;
    border-right: none;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
  }
  
  .message-detail {
    min-height: 50vh;
  }
  
  .header-content {
    flex-direction: column;
    gap: 24px;
  }
  
  .messages-actions {
    width: 100%;
    justify-content: stretch;
  }
  
  .search-box {
    min-width: auto;
    flex: 1 1;
  }
}

@media (max-width: 768px) {
  .messages-page {
    padding: 16px;
  }
  
  .messages-header {
    padding: 24px;
  }
  
  .header-title h1 {
    font-size: 1.75rem;
  }
  
  .header-stats {
    flex-direction: row;
    gap: 16px;
  }
  
  .messages-actions {
    flex-direction: column;
    gap: 16px;
  }
  
  .filter-controls {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .filter-wrapper, .refresh-btn {
    width: 100%;
  }
  
  .message-header-detail {
    flex-direction: column;
    gap: 20px;
  }
  
  .message-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  
  .status-update-wrapper {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
  
  .message-meta-detail {
    flex-direction: column;
    gap: 12px;
  }
  
  .message-item-header {
    flex-direction: column;
    gap: 8px;
  }
  
  .message-meta {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .messages-header {
    padding: 20px;
  }
  
  .header-title h1 {
    font-size: 1.5rem;
  }
  
  .header-stats {
    gap: 12px;
  }
  
  .stat-item {
    padding: 8px 12px;
  }
  
  .message-content {
    padding: 20px;
  }
  
  .message-detail {
    padding: 20px;
  }
  
  .sender-info {
    gap: 8px;
  }
  
  .sender-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }
  
  .message-avatar-large {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
}
.whybother-page {
  min-height: 100vh;
  background: #fafafa;
}

/* Hero Section */
.whybother-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  padding: 50px 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.whybother-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px;
  animation: float 20s ease-in-out infinite;
}

.whybother-hero-content {
  position: relative;
  z-index: 2;
}

.whybother-hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.whybother-hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.5;
}

/* Section Styles */
.whybother-section {
  padding: 80px 0;
}

.whybother-section:nth-child(even) {
  background: white;
}

.whybother-section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.whybother-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 48px;
}

.whybother-mission-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: #4a5568;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* Features Grid */
.whybother-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 32px;
  gap: 32px;
  margin-top: 48px;
}

.whybother-feature-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
}

.whybother-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
}

.whybother-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 18px;
}

/* Cuisine Grid */
.whybother-cuisine-section {
  background: white;
}

.whybother-section-description {
  font-size: 1.125rem;
  color: #64748b;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

.whybother-cuisine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-top: 48px;
}

.whybother-cuisine-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.whybother-cuisine-card:hover {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
}

.whybother-cuisine-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

/* Values Grid */
.whybother-values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 32px;
  gap: 32px;
  margin-top: 48px;
}

.whybother-value-item {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  border: 1px solid #e2e8f0;
}

.whybother-value-item:hover {
  transform: translateY(-2px);
}

.whybother-value-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.whybother-value-item p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.whybother-cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
  text-align: center;
}

.whybother-cta-section h2 {
  color: white;
  margin-bottom: 24px;
}

.whybother-cta-section p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.whybother-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.whybother-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 160px;
  justify-content: center;
}

.whybother-primary {
  background: white;
  color: #667eea;
  border: none;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3);
}

.whybother-primary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.whybother-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.whybother-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .whybother-hero {
    padding: 60px 0;
  }
  .whybother-hero h1 {
    font-size: 2.5rem;
  }
  .whybother-hero-subtitle {
    font-size: 1.25rem;
  }
  .whybother-section {
    padding: 60px 0;
  }
  .whybother-section h2 {
    font-size: 2rem;
    margin-bottom: 32px;
  }
  .whybother-features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .whybother-feature-card {
    padding: 24px;
  }
  .whybother-cuisine-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
  }
  .whybother-values-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .whybother-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .whybother-cta-btn {
    width: 100%;
    min-width: 0;
    margin-bottom: 12px;
  }
}

.whybother-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  text-align: center;
  padding: 30px 0;
  background: linear-gradient(90deg, #f9fafb 0%, #f3f4f6 100%);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.whybother-proof-item {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.whybother-proof-number {
  font-size: 2rem;
  font-weight: 800;
  color: #4338ca; /* brand purple */
  margin-bottom: 6px;
}

.whybother-proof-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #4b5563; /* gray-700 */
  line-height: 1.3;
  max-width: 180px;
}

@media (min-width: 768px) {
  .whybother-proof-number {
    font-size: 2.5rem;
  }
}

.whybother-highlight {
  display: inline-block;
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 20px;
  margin: 20px 0;
  background: linear-gradient(90deg, #eef2ff, #e0e7ff); /* soft brand gradient */
  color: #1f2937; /* dark text */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.whybother-highlight strong {
  color: #4338ca; /* brand purple */
  font-weight: 700;
}
.square-callback {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.callback-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.callback-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.callback-content h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
  font-weight: 600;
}

.callback-content p {
  margin: 0;
  color: #666;
  line-height: 1.5;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.success-icon {
  font-size: 48px;
  color: #4CAF50;
}

.error-icon {
  font-size: 48px;
  color: #f44336;
}

.error-message {
  color: #f44336 !important;
  font-weight: 500;
  background: #ffebee;
  padding: 12px;
  border-radius: 6px;
  border-left: 4px solid #f44336;
}

.retry-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.retry-btn:hover {
  background: #5a6fd8;
}

.retry-btn:active {
  transform: translateY(1px);
}

.cancellation-page {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: 100vh;
  padding: 20px;
}

.cancellation-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}

.cancellation-header {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.cancellation-header h1 {
  margin: 0 0 16px 0;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cancellation-subtitle {
  margin: 0;
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
}

.feedback-section {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feedback-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: white;
  color: #1e293b;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group small {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: #64748b;
}

.form-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}

.action-btn.primary {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #000000 100%);
  color: white;
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.action-btn.secondary {
  background: white;
  color: #475569;
  border: 2px solid #e2e8f0;
}

.action-btn.secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.action-btn.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.action-btn.danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.message {
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
  font-weight: 500;
}

.message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.confirmation-section {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.confirmation-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.confirmation-icon {
  font-size: 4rem;
  margin-bottom: 24px;
}

.confirmation-card h2 {
  margin: 0 0 16px 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
}

.confirmation-card p {
  margin: 0 0 24px 0;
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
}

.deletion-list {
  text-align: left;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.deletion-list li {
  padding: 8px 0;
  color: #475569;
  font-size: 1rem;
  position: relative;
  padding-left: 24px;
}

.deletion-list li:before {
  content: "🗑️";
  position: absolute;
  left: 0;
  top: 8px;
}

.warning-text {
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 16px;
  margin: 24px 0;
  color: #92400e;
  font-weight: 500;
}

.confirmation-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

.error-container {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  color: #dc2626;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cancellation-container {
    padding: 16px;
  }
  
  .cancellation-header,
  .feedback-section,
  .confirmation-section {
    padding: 24px;
  }
  
  .cancellation-header h1 {
    font-size: 1.75rem;
  }
  
  .form-actions,
  .confirmation-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .action-btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .cancellation-header h1 {
    font-size: 1.5rem;
  }
  
  .cancellation-subtitle {
    font-size: 1rem;
  }
  
  .confirmation-card h2 {
    font-size: 1.5rem;
  }
}


/*# sourceMappingURL=main.768d13f6.css.map*/