/* ============================================
   ChefAround — Design System & Styles
   Mobile-first hyperlocal food marketplace
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #F59E0B;
  --primary-dark: #D97706;
  --primary-light: #FEF3C7;
  --accent: #0F172A;
  --bg: #FAFBFC;
  --bg-card: #FFFFFF;
  --text-primary: #1A1D21;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --star: #F59E0B;
  --call-blue: #007AFF;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass: rgba(255, 255, 255, 0.8);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

/* Fallback for broken images */
img.image-error {
  position: relative;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

img.image-error::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
}


a {
  text-decoration: none;
  color: inherit;
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
}

.navbar-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--primary);
}

.logo .around {
  color: var(--accent); /* Dark color for 'Around' */
}

/* Branding Utility */
.brand-text { font-weight: 700; color: var(--primary); }
.brand-text .around { color: var(--accent); }


.logo img {
  height: 32px;
  width: 32px;
  border-radius: 8px;
}

.location-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #FFF7ED;
  color: #C2410C;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid #FFEDD5;
  transition: all var(--transition);
}

.location-badge:hover {
  border-color: var(--primary);
  background: #FFEDD5;
}

.location-badge select {
  background: transparent;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  padding: 2px 0;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.location-badge label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}


/* --- Hero Section --- */
.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px 16px;
  text-align: center;
}

.hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto;
}

/* --- Search Bar --- */
.search-container {
  position: relative;
  max-width: 500px;
  margin: 24px auto 0;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  pointer-events: none;
}

#searchInput {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  background: var(--bg-card);
  font-family: inherit;
  font-size: 15px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

#searchInput:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}

/* --- Global Icon Utility --- */
svg.lucide,
i[data-lucide] {
  width: 20px;
  height: 20px;
  display: inline-block;
  stroke-width: 2.5px;
}

/* --- Category Filters --- */
.categories {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 16px 8px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.cat-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.cat-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* --- Cook Cards Grid --- */
.cooks-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 16px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
}

.section-title i {
  color: var(--primary);
}

.cooks-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Cook Card --- */
.cook-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.cook-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.cook-card-body {
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cook-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--primary-light);
}

.cook-info {
  flex: 1;
  min-width: 0;
}

.cook-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.cook-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.top-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  color: #92400E;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cook-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.cook-rating .star {
  color: var(--star);
  font-size: 15px;
}

.cook-rating .count {
  color: var(--text-muted);
  font-size: 13px;
}

.cook-items {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cook-card-footer {
  padding: 0 16px 16px;
  display: flex;
  justify-content: flex-end;
}

.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.view-btn:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* --- Loading / Empty States --- */
.loading-state,
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===========================================
   COOK DETAIL PAGE
   =========================================== */

/* --- Back Header --- */
.detail-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
}

.detail-header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 12px;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 18px;
  color: var(--text-primary);
}

.back-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.detail-header-title {
  font-size: 17px;
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Cook Profile Section --- */
.cook-profile {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
  text-align: center;
}

.cook-profile-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid var(--primary-light);
  box-shadow: var(--shadow-md);
}

.cook-profile h1 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.cook-profile .profile-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.cook-profile .profile-rating .star {
  color: var(--star);
}

.cook-profile .profile-location {
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Food Gallery --- */
.food-gallery {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 16px;
}

.gallery-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-img {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}

.gallery-img:hover {
  transform: scale(1.03);
}

/* --- Menu Section --- */
.menu-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

.menu-section .section-title {
  margin-bottom: 12px;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
}

.menu-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.menu-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.menu-item-info {
  flex: 1;
  min-width: 0;
}

.menu-item-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.menu-item-desc {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
}

.menu-item-category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

/* --- Reviews Section --- */
.reviews-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 120px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 10px;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.review-author {
  font-size: 14px;
  font-weight: 600;
}

.review-stars {
  color: var(--star);
  font-size: 14px;
  letter-spacing: 1px;
}

.review-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Sticky Bottom CTA --- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.cta-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.cta-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.cta-whatsapp {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.cta-whatsapp:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transform: translateY(-1px);
}

.cta-call {
  background: var(--call-blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.cta-call:hover {
  background: #006AE0;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
  transform: translateY(-1px);
}

.cta-icon {
  font-size: 20px;
}

/* --- Availability Badge --- */
.avail-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
}

.avail-badge.available {
  background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
  color: #065F46;
}

.avail-badge.unavailable {
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  color: #991B1B;
}

/* --- Unavailable Cook Card --- */
.cook-card.unavailable {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(30%);
}

.cook-card.unavailable .view-btn {
  background: var(--border);
  color: var(--text-muted);
}

/* --- Unavailable Banner (Cook Detail) --- */
.unavailable-banner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 12px;
}

.unavailable-banner-inner {
  background: linear-gradient(135deg, #FEE2E2, #FECACA);
  border: 1px solid #FCA5A5;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #991B1B;
  font-weight: 600;
}

/* --- Disabled CTA --- */
.cta-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none;
}

.menu-item-order-btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  background: var(--border);
  color: var(--text-muted);
}

/* --- Verified Badge --- */
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: #1E40AF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Trust Banner --- */
.trust-banner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 8px;
}

.trust-banner-inner {
  background: linear-gradient(135deg, var(--primary-light), #D1FAE5);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #065F46;
  font-weight: 500;
}

.trust-banner-icon {
  font-size: 20px;
  flex-shrink: 0;
}

/* --- Why Order Through Us Section --- */
.why-us-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.why-us-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: all var(--transition);
}

.why-us-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.why-us-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.why-us-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.why-us-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- Platform Notice (cook detail) --- */
.platform-notice {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-notice-inner {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border: 1px solid #FCD34D;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #92400E;
  font-weight: 500;
}

/* --- Order Button on Menu Items --- */
.menu-item-order-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.menu-item-order-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transform: scale(1.05);
}

/* --- Order Modal --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  padding: 24px 20px 32px;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 0 auto 16px;
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
}

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

.form-selected-item {
  background: var(--primary-light);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-selected-price {
  font-weight: 700;
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  margin-top: 8px;
}

.form-submit-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transform: translateY(-1px);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all var(--transition);
}

.modal-close:hover {
  background: #FEE2E2;
  border-color: #FECACA;
  color: #DC2626;
}

/* --- Confirmation Toast --- */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  z-index: 2000;
  background: var(--bg-card);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #065F46;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  max-width: 90vw;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  font-size: 22px;
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cook-card {
  animation: fadeInUp 0.4s ease both;
}

.cook-card:nth-child(1) {
  animation-delay: 0.05s;
}

.cook-card:nth-child(2) {
  animation-delay: 0.1s;
}

.cook-card:nth-child(3) {
  animation-delay: 0.15s;
}

.cook-card:nth-child(4) {
  animation-delay: 0.2s;
}

.cook-card:nth-child(5) {
  animation-delay: 0.25s;
}

/* --- Why Order Through Us? --- */
.why-us-section {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0;
}

.why-us-card {
  background: var(--bg-card);
  padding: 40px 30px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.why-us-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}

.why-us-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.why-us-icon i {
  width: 28px !important;
  height: 28px !important;
}

.why-us-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.why-us-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Cook Onboarding CTA --- */
.onboarding-cta {
  max-width: 800px;
  margin: 40px auto;
  padding: 48px 24px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid #FFEDD5;
}

.onboarding-cta h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
}

.onboarding-cta p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.onboarding-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  padding: 16px 40px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 18px;
  transition: all var(--transition);
  box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.4), 0 4px 6px -2px rgba(245, 158, 11, 0.2);
  text-decoration: none;
}

.onboarding-cta .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(245, 158, 11, 0.5), 0 10px 10px -5px rgba(245, 158, 11, 0.2);
}


/* --- Back to Top --- */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
}

#backToTop i {
  width: 20px !important;
  height: 20px !important;
}

/* --- Mobile Navbar Optimization --- */
@media (max-width: 768px) {
  .navbar-inner {
    padding: 0 12px;
  }
  
  .logo span {
    font-size: 18px;
  }
  
  .nav-link {
    font-size: 14px;
    gap: 6px;
  }
}

@media (max-width: 600px) {
  .logo span {
    display: none; /* Hide 'ChefAround' text to save space */
  }
  
  .navbar-inner div[style*="display:flex"] {
    gap: 8px !important;
  }
  
  .navbar-inner .nav-link span {
    display: none !important; /* Hide "Track" and "Join" text on mobile */
  }
  
  .nav-link {
    font-size: 13px;
    padding: 8px 10px;
  }
  
  .location-badge select {
    max-width: 100px;
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  /* Specific refinements for smaller mobile */
  .navbar-inner .nav-link {
    padding: 8px 12px;
  }
  
  .navbar-inner .nav-link i {
    width: 20px !important;
    height: 20px !important;
  }
}



/* --- Responsive (Tablet & Desktop) --- */
@media (min-width: 640px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 17px;
  }

  .cooks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .cook-card-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .cook-avatar {
    width: 88px;
    height: 88px;
  }

  .cook-name-row {
    justify-content: center;
  }

  .cook-card-footer {
    justify-content: center;
  }

  .gallery-img {
    width: 240px;
    height: 160px;
  }

  .modal-content {
    border-radius: var(--radius-xl);
    margin-bottom: 20px;
  }

  .modal-overlay {
    align-items: center;
  }

  .why-us-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .cooks-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Cook Detail Page Icons --- */
.title-icon {
  width: 24px !important;
  height: 24px !important;
  vertical-align: middle;
  margin-right: 8px;
  color: var(--primary);
}

.notice-icon {
  width: 20px !important;
  height: 20px !important;
  color: #1EB954;
  flex-shrink: 0;
}

.avail-badge i {
  margin-right: 4px;
}

.profile-rating i {
  margin-right: 4px;
}

.profile-location i {
  margin-right: 6px;
  vertical-align: text-bottom;
}

.top-badge i, .verified-badge i {
  margin-right: 4px;
}

.cta-btn i {
  width: 20px !important;
  height: 20px !important;
  margin-right: 8px;
}

.form-submit-btn i {
  width: 20px !important;
  height: 20px !important;
  margin-right: 8px;
}

.modal-title i {
  width: 24px !important;
  height: 24px !important;
  margin-right: 10px;
  vertical-align: middle;
}

.menu-item-order-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
}