/* ==================== PREMIUM FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ==================== CSS VARIABLES ==================== */
:root {
  --primary: #E23744;
  --primary-dark: #C72A36;
  --primary-light: #FFE8EA;
  --accent: #FFC72C;
  --text-dark: #1C1C1C;
  --text-medium: #696969;
  --text-light: #9C9C9C;
  --bg-light: #F8F8F8;
  --bg-white: #FFFFFF;
  --success: #48C479;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --transition-base: 0.2s ease;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Premium Colors from auth-styles.css */
  --premium-black: #000000;
  --premium-dark: #141414;
  --premium-gray-900: #1C1C1C;
  --premium-gray-800: #2C2C2C;
  --premium-gray-700: #3C3C3C;
  --premium-gray-600: #545454;
  --premium-gray-400: #9CA3AF;
  --premium-gray-300: #D1D5DB;
  --premium-gray-200: #E5E7EB;
  --premium-gray-100: #F3F4F6;
  --premium-white: #FFFFFF;
  --premium-green: #06C167;
  --premium-green-dark: #05A857;
  --premium-green-light: #E8F9F1;
  --premium-green-glow: rgba(6, 193, 103, 0.2);
  --premium-blue: #276EF1;
  --premium-red: #FF4444;
}

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

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Prevent iOS zoom on input focus — inputs must be ≥ 16px */
input, select, textarea {
  font-size: 16px !important;
}

/* ==================== HEADER ==================== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #09453F;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1280px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

/* Tablets */
@media (max-width: 992px) {
  .logo img {
    max-height: 34px;
  }
}

/* Phones */
@media (max-width: 576px) {
  .logo img {
    max-height: 26px;
  }
}

.logo img {
  height: 48px;
  transition: transform var(--transition-base);
}

.logo img:hover {
  transform: scale(1.05);
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #94d82f;
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-smooth);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #94d82f;
  cursor: pointer;
  padding: 8px;
}

/* Mobile Navigation - Slide-in Sidebar */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
}
.mobile-nav-overlay.show {
  display: block;
}

.page-home .mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-white);
  padding: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform var(--transition-smooth);
  z-index: 10001;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  gap: 0;
}

.page-home .mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #eee;
  background: #09453F;
}
.mobile-nav-header img { height: 36px; }
.mobile-nav-close {
  background: none;
  border: none;
  color: #94d82f;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

.page-home .mobile-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-home .mobile-nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 15px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  gap: 14px;
}
.page-home .mobile-nav a:hover { color: var(--primary); background: var(--primary-light); }
.page-home .mobile-nav a:hover i { color: var(--primary); }

/* Navigation Icons */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.icon-btn {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94d82f;
  position: relative;
  transition: all var(--transition-base);
  padding: 8px;
  border-radius: 8px;
}

.icon-btn:hover {
  background: var(--bg-light);
  color: var(--primary);
  transform: scale(1.05);
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Search Bar */
.search-wrap {
  display: flex;
  align-items: center;
  width: 0;
  overflow: hidden;
  transition: width 0.35s ease;
  background: var(--bg-light);
  border-radius: 8px;
}

.search-wrap.active {
  width: 240px;
  padding: 0 12px;
}

.search-wrap input {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
}

/* ==================== HERO SECTION ==================== */
.hero {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 48px 24px;
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 18px;
  opacity: 0.95;
  font-weight: 400;
}

/* ==================== FILTERS ==================== */
.filters-section {
  max-width: 1280px;
  margin: 32px auto;
  margin-top: 96px;
  padding: 0 24px;
}

.filter-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  padding: 10px 20px;
  border: 2px solid #E0E0E0;
  background: white;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-base);
  color: var(--text-medium);
}

.filter-chip:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.filter-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Sort Dropdown */
.sort-dropdown {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sort-label {
  font-size: 14px;
  color: var(--text-medium);
  font-weight: 500;
}

select {
  padding: 10px 16px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: white;
  color: var(--text-dark);
  outline: none;
  transition: border-color var(--transition-base);
  font-family: 'Poppins', sans-serif;
}

select:hover,
select:focus {
  border-color: var(--primary);
}

/* ==================== MAIN CONTENT ==================== */
main {
  max-width: 1280px;
  margin: 0 auto 60px;
  padding: 0 24px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.restaurants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  animation: fadeInUp 0.6s ease;
}

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

/* ==================== RESTAURANT CARDS ==================== */
.restaurant-card {
  background: white;
    text-decoration: none; /* Remove underline */

  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
    outline: none; /* Remove focus outline */
  -webkit-tap-highlight-color: transparent; /* Remove blue tap highlight on mobile */
}

.restaurant-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

/* Card Image */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

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

.restaurant-card:hover img {
  transform: scale(1.1);
}

/* Image Badges */
.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
}

.offer-badge {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.favorite-btn {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 16px;
  color: var(--text-medium);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.favorite-btn.active {
  color: var(--primary);
}

.delivery-time-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.delivery-time-badge i {
  color: var(--primary);
}

/* Card Content */
.card-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-header {
  margin-bottom: 8px;
}

.restaurant-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.restaurant-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0;
  line-height: 1.3;
}

.new-badge-inline {
  display: inline-block;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
  flex-shrink: 0;
}

.cuisine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.cuisine-tag {
  font-size: 12px;
  color: var(--text-medium);
  background: var(--bg-light);
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--success);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.rating i {
  font-size: 11px;
}

.reviews {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.location {
  font-size: 13px;
  color: var(--text-medium);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.location i {
  color: var(--primary);
  font-size: 12px;
}

.price-range {
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 12px;
}

/* Menu Button */
.menu-btn {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition-base);
  margin-top: auto;
  position: relative;
  overflow: hidden;
}

.menu-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.menu-btn:hover::before {
  width: 300px;
  height: 300px;
}

.menu-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(226, 55, 68, 0.3);
}

/* ==================== CART DRAWER ==================== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  height: 100vh;
  background: white;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  padding: 24px;
  box-shadow: -8px 0 32px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--bg-light);
}

.cart-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

#clearCartBtn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background var(--transition-base);
}

#clearCartBtn:hover {
  background: var(--primary-light);
}

#cartItems {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  margin-bottom: 16px;
}

#cartItems li {
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: var(--bg-light);
  transition: background var(--transition-base);
}

#cartItems li:hover {
  background: var(--primary-light);
}

.cart-item-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
}

.cart-item-delete {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 16px;
  transition: transform var(--transition-base);
  padding: 4px;
}

.cart-item-delete:hover {
  transform: scale(1.2);
}

.cart-total {
  font-weight: 700;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 8px;
  padding: 16px 0;
  border-top: 2px solid var(--bg-light);
}

/* Offer badge shown inside cart drawer total line — matches discount purple */
.cart-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px 3px 7px;
  border-radius: 20px;
  margin-right: 6px;
  letter-spacing: 0.04em;
  vertical-align: middle;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

#cartRestaurantName {
  font-size: 13px;
  color: var(--text-medium);
  margin-bottom: 16px;
  font-weight: 500;
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  font-weight: 700;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.checkout-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(226, 55, 68, 0.3);
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 20px 20px;
}

.footer-container {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

footer h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

footer p,
footer a {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  line-height: 1.8;
  transition: color var(--transition-base);
}

footer a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.social-icons a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.bottom-line {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* ==================== UTILITIES ==================== */
.restaurant-card.search-hidden {
  display: none !important;
}

#noRestaurantResults {
  text-align: center;
  padding: 60px 20px;
  font-size: 18px;
  color: var(--text-medium);
}

#noRestaurantResults i {
  font-size: 64px;
  color: var(--text-light);
  margin-bottom: 16px;
  display: block;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .cart-drawer {
    width: 80%;
    max-width: 380px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .restaurants {
    grid-template-columns: 1fr;
  }
  
  .search-wrap.active {
    width: 180px;
  }
}

@media (max-width: 576px) {
  .filter-tabs {
    gap: 8px;
  }
  
  .filter-chip {
    font-size: 13px;
    padding: 8px 16px;
  }
  
  .sort-dropdown {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
/* ==================== AUTH STYLES ==================== */

/* Login Button in Header */
.btn-login {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #94d82f;
  position: relative;
  transition: all var(--transition-base);
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login:hover {
  background: var(--bg-light);
  color: var(--primary);
  transform: scale(1.05);
}

/* User Menu Dropdown */
/* ==================== USER MENU DROPDOWN ==================== */
.user-menu {
  position: relative;
}

.user-avatar {
  font-size: 28px;
  cursor: pointer;
  transition: transform 0.3s var(--transition-smooth);
}

.user-avatar:hover {
  transform: scale(1.1);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 280px;
  background: var(--premium-white);
  border-radius: 16px;
  box-shadow: var(--shadow-2xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s var(--transition-smooth);
  z-index: 10000;
  border: 1px solid var(--premium-gray-200);
  overflow: hidden;
}

.user-menu:hover .user-dropdown,
.user-dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 24px;
  border-bottom: 1px solid var(--premium-gray-200);
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--premium-green-light), var(--premium-white));
}

.user-dropdown-header i {
  font-size: 42px;
  color: var(--premium-green);
}

.user-dropdown-header h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--premium-black);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.user-dropdown-header p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--premium-gray-600);
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  color: var(--premium-black);
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.25s var(--transition-smooth);
  position: relative;
}

.user-dropdown a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--premium-green);
  transform: scaleY(0);
  transition: transform 0.25s var(--transition-smooth);
}

.user-dropdown a:hover::before {
  transform: scaleY(1);
}

.user-dropdown a:hover {
  background: var(--premium-gray-100);
  padding-left: 28px;
}

.user-dropdown a i {
  width: 20px;
  color: var(--premium-green);
  font-size: 18px;
  transition: transform 0.25s var(--transition-bounce);
}

.user-dropdown a:hover i {
  transform: scale(1.15);
}

.user-dropdown a:last-child {
  border-top: 1px solid var(--premium-gray-200);
  color: var(--premium-red);
}

.user-dropdown a:last-child i {
  color: var(--premium-red);
}

/* ==================== AUTH MODAL — PREMIUM GREEN ==================== */

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

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

@keyframes authSheetUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

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

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

/* ── Overlay ── */
.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 16, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20000;
  align-items: center;
  justify-content: center;
  animation: authFadeIn 0.28s ease both;
  padding: 16px;
}

.auth-modal.show { display: flex; }

/* ── Modal Card ── */
.auth-modal-content {
  display: flex;
  width: 100%;
  max-width: 880px;
  min-height: 560px;
  max-height: 94vh;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  animation: authSlideUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  box-shadow:
    0 0 0 1px rgba(148, 216, 47, 0.12),
    0 40px 100px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(9, 69, 63, 0.3);
}

/* ══════════════════════════════════════
   LEFT BRAND PANEL
══════════════════════════════════════ */
.auth-brand-panel {
  flex: 0 0 340px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 60% 50% at 15% 15%, rgba(148, 216, 47, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 70% 60% at 85% 85%, rgba(6, 193, 103, 0.1) 0%, transparent 70%),
    linear-gradient(160deg, #0d5c54 0%, #09453F 40%, #062e2a 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
}

/* Decorative rings */
.auth-brand-panel::before {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(148, 216, 47, 0.1);
  top: -120px;
  right: -140px;
  pointer-events: none;
}

.auth-brand-panel::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(148, 216, 47, 0.07);
  top: -40px;
  right: -60px;
  pointer-events: none;
}

/* Top badge */
.auth-brand-badge {
  position: absolute;
  top: 36px;
  left: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-brand-logo-mark {
  width: 40px;
  height: 40px;
  background: rgba(148, 216, 47, 0.15);
  border: 1px solid rgba(148, 216, 47, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  backdrop-filter: blur(4px);
}

.auth-brand-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}

.auth-brand-name span { color: #94d82f; }

/* Bottom content */
.auth-brand-headline {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.auth-brand-headline em {
  font-style: normal;
  color: #94d82f;
}

.auth-brand-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.52);
  line-height: 1.65;
  margin-bottom: 28px;
  max-width: 240px;
}

.auth-brand-stats {
  display: flex;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}

.auth-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #94d82f;
  letter-spacing: -0.5px;
  line-height: 1;
}

.auth-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ══════════════════════════════════════
   RIGHT FORM PANEL
══════════════════════════════════════ */
.auth-form-panel {
  flex: 1;
  background: #fff;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* ── Close Button ── */
.auth-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #F4F4F4;
  border: 1px solid #E8E8E8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 12px;
  color: #888;
  z-index: 10;
}

.auth-modal-close:hover {
  background: #09453F;
  border-color: #09453F;
  color: #94d82f;
  transform: rotate(90deg);
}

/* ── Form Container ── */
.auth-form-container {
  padding: 52px 44px 44px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ── Tab Switcher ── */
.auth-tabs {
  display: flex;
  position: relative;
  background: #F5F5F5;
  border-radius: 14px;
  padding: 5px;
  gap: 4px;
  margin-bottom: 36px;
}

.auth-tab-btn {
  flex: 1;
  padding: 11px 16px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: #999;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.01em;
  position: relative;
}

.auth-tab-btn.active {
  background: #09453F;
  color: #94d82f;
  box-shadow:
    0 2px 12px rgba(9, 69, 63, 0.35),
    inset 0 1px 0 rgba(148, 216, 47, 0.15);
}

.auth-tab-btn:not(.active):hover {
  color: #09453F;
  background: rgba(9, 69, 63, 0.06);
}

/* ── Auth Header ── */
.auth-header {
  margin-bottom: 28px;
}

.auth-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #09453F 0%, #0d5c54 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(9, 69, 63, 0.3);
}

.auth-icon i {
  font-size: 18px;
  color: #94d82f;
}

.auth-header h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0d0d0d;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.auth-header p {
  font-size: 13.5px;
  color: #888;
  line-height: 1.5;
}

/* ══════════════════════════════════════
   AUTH FORM FIELDS
══════════════════════════════════════ */
.auth-form .form-group {
  margin-bottom: 16px;
  animation: authFieldIn 0.35s ease both;
}

.auth-form .form-group:nth-child(1) { animation-delay: 0.05s; }
.auth-form .form-group:nth-child(2) { animation-delay: 0.10s; }
.auth-form .form-group:nth-child(3) { animation-delay: 0.15s; }
.auth-form .form-group:nth-child(4) { animation-delay: 0.20s; }
.auth-form .form-group:nth-child(5) { animation-delay: 0.25s; }
.auth-form .form-group:nth-child(6) { animation-delay: 0.30s; }

.auth-form label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  font-size: 12px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon > i:first-child {
  position: absolute;
  left: 15px;
  color: #bbb;
  font-size: 14px;
  pointer-events: none;
  transition: color 0.18s ease;
  z-index: 1;
}

.input-with-icon input {
  width: 100%;
  height: 50px;
  padding: 0 46px 0 44px;
  border: 1.5px solid #E8E8E8;
  border-radius: 13px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.2s ease;
  background: #FAFAFA;
  color: #111;
  font-weight: 500;
}

.input-with-icon input::placeholder { color: #C8C8C8; font-weight: 400; }

.input-with-icon:focus-within > i:first-child { color: #09453F; }

.input-with-icon input:focus {
  outline: none;
  border-color: #09453F;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(9, 69, 63, 0.1);
}

.input-with-icon input:not(:placeholder-shown):not(:focus):valid {
  border-color: #94d82f;
  background: #fff;
}

.toggle-password {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: #bbb;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  font-size: 14px;
  transition: color 0.15s ease;
}

.toggle-password:hover { color: #09453F; }

.password-hint {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: #aaa;
  padding-left: 2px;
}

/* Form Options Row */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  margin-top: 4px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  cursor: pointer;
  user-select: none;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #09453F;
}

.forgot-password {
  font-size: 12.5px;
  color: #09453F;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: all 0.15s ease;
  padding: 3px 0;
  border-bottom: 1.5px solid transparent;
}

.forgot-password:hover {
  border-bottom-color: #94d82f;
  color: #0d5c54;
}

.terms-accept {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: #777;
  cursor: pointer;
  line-height: 1.6;
  user-select: none;
}

.terms-accept input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: #09453F;
}

.terms-accept a {
  color: #09453F;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid rgba(9,69,63,0.25);
  transition: border-color 0.15s;
}

.terms-accept a:hover { border-bottom-color: #94d82f; }

/* ── Submit Button ── */
.btn-auth-submit {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #09453F 0%, #0d5c54 50%, #116b61 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(9, 69, 63, 0.4);
}

/* lime shimmer streak */
.btn-auth-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(148, 216, 47, 0.18) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: shimmer 2.8s linear infinite;
}

.btn-auth-submit i { position: relative; z-index: 1; }
.btn-auth-submit span { position: relative; z-index: 1; }

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(9, 69, 63, 0.5);
  background: linear-gradient(135deg, #0d5c54 0%, #116b61 50%, #148f83 100%);
}

.btn-auth-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(9, 69, 63, 0.35);
}

/* ── Divider ── */
.auth-divider {
  position: relative;
  text-align: center;
  margin: 18px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #EFEFEF;
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 14px;
  background: white;
  font-size: 11px;
  font-weight: 700;
  color: #C0C0C0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Social Buttons ── */
.social-login {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}

.btn-social {
  flex: 1;
  height: 46px;
  border: 1.5px solid #E8E8E8;
  background: #fff;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  color: #333;
}

.btn-social:hover {
  border-color: #09453F;
  background: rgba(9, 69, 63, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(9, 69, 63, 0.1);
}

.btn-social.google  i { color: #DB4437; }
.btn-social.facebook i { color: #1877F2; }

/* ── Switch Link ── */
.auth-switch {
  text-align: center;
  margin-top: 2px;
}

.auth-switch p {
  font-size: 13.5px;
  color: #888;
}

.auth-switch a {
  color: #09453F;
  text-decoration: none;
  font-weight: 800;
  border-bottom: 1.5px solid rgba(9,69,63,0.2);
  padding-bottom: 1px;
  transition: all 0.15s ease;
}

.auth-switch a:hover {
  color: #94d82f;
  border-bottom-color: #94d82f;
}

/* ══════════════════════════════════════
   GUEST PROMPT MODAL
══════════════════════════════════════ */
.guest-prompt-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 16, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20000;
  align-items: center;
  justify-content: center;
  animation: authFadeIn 0.25s ease both;
  padding: 16px;
}

.guest-prompt-modal.show { display: flex; }

.guest-prompt-content {
  background: white;
  border-radius: 26px;
  max-width: 440px;
  width: 100%;
  padding: 44px 38px;
  position: relative;
  animation: authSlideUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  box-shadow:
    0 0 0 1px rgba(9,69,63,0.08),
    0 32px 80px rgba(0,0,0,0.22);
  overflow: hidden;
}

/* Top green bar */
.guest-prompt-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #09453F 0%, #94d82f 100%);
}

.guest-prompt-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #F4F4F4;
  border: 1px solid #E8E8E8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  font-size: 12px;
  color: #888;
}

.guest-prompt-close:hover {
  background: #09453F;
  border-color: #09453F;
  color: #94d82f;
  transform: rotate(90deg);
}

.guest-prompt-header {
  text-align: center;
  margin-bottom: 30px;
}

.guest-prompt-header i {
  font-size: 48px;
  color: #09453F;
  margin-bottom: 16px;
  display: block;
}

.guest-prompt-header h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0d0d0d;
  margin-bottom: 7px;
  letter-spacing: -0.4px;
}

.guest-prompt-header p {
  font-size: 13.5px;
  color: #888;
  line-height: 1.55;
}

.guest-prompt-benefits {
  margin-bottom: 28px;
}

.guest-prompt-benefits h3 {
  font-size: 11px;
  font-weight: 700;
  color: #999;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guest-prompt-benefits ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guest-prompt-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #333;
  background: #F9F9F9;
  border: 1px solid #EFEFEF;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 500;
}

.guest-prompt-benefits li i {
  color: #09453F;
  font-size: 15px;
  flex-shrink: 0;
  width: 18px;
}

.guest-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-guest-login,
.btn-guest-signup {
  width: 100%;
  height: 52px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.btn-guest-login {
  background: linear-gradient(135deg, #09453F 0%, #116b61 100%);
  color: white;
  border: none;
  box-shadow: 0 4px 18px rgba(9, 69, 63, 0.38);
}

.btn-guest-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(9, 69, 63, 0.45);
  background: linear-gradient(135deg, #0d5c54 0%, #148f83 100%);
}

.btn-guest-signup {
  background: white;
  color: #09453F;
  border: 2px solid #09453F;
}

.btn-guest-signup:hover {
  background: rgba(9, 69, 63, 0.05);
  transform: translateY(-1px);
  border-color: #94d82f;
  color: #0d5c54;
}

/* ══════════════════════════════════════
   MOBILE — BOTTOM SHEET
══════════════════════════════════════ */
@media (max-width: 768px) {
  .auth-modal {
    padding: 0;
    align-items: flex-end;
  }

  .auth-modal-content {
    flex-direction: column;
    max-width: 100%;
    width: 100%;
    max-height: 93dvh;
    border-radius: 26px 26px 0 0;
    animation: authSheetUp 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
    /* Drag handle visual */
    background: #fff;
  }

  /* Compact green header strip */
  .auth-brand-panel {
    flex: none;
    flex-direction: row;
    padding: 16px 20px;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    border-radius: 0;
    min-height: 72px;
    background:
      radial-gradient(ellipse 80% 120% at 90% 50%, rgba(148,216,47,0.1) 0%, transparent 70%),
      linear-gradient(120deg, #09453F 0%, #0d5c54 100%);
  }

  .auth-brand-panel::before,
  .auth-brand-panel::after { display: none; }

  /* Drag handle on top */
  .auth-brand-panel::after {
    display: block;
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
  }

  .auth-brand-badge {
    position: static;
    gap: 10px;
  }

  .auth-brand-logo-mark {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 10px;
  }

  .auth-brand-name { font-size: 16px; }

  .auth-brand-headline,
  .auth-brand-desc,
  .auth-brand-stats { display: none; }

  .auth-form-panel {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(93dvh - 72px);
  }

  .auth-form-container {
    padding: 28px 24px 36px;
  }

  .auth-modal-close {
    top: 18px;
    right: 18px;
  }

  /* Guest modal as bottom sheet too */
  .guest-prompt-modal {
    padding: 0;
    align-items: flex-end;
  }

  .guest-prompt-content {
    border-radius: 26px 26px 0 0;
    max-width: 100%;
    padding: 36px 24px 40px;
    animation: authSheetUp 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .user-dropdown { right: -20px; }
}

/* ══════════════════════════════════════
   SMALL PHONES
══════════════════════════════════════ */
@media (max-width: 430px) {
  .btn-login {
    padding: 8px;
    font-size: 18px;
  }

  .social-login {
    flex-direction: column;
    gap: 8px;
  }

  .btn-social { width: 100%; }

  .auth-header h2 { font-size: 22px; }

  .auth-form-container { padding: 24px 20px 32px; }

  .auth-tabs { margin-bottom: 24px; }
}

/* ==================== RATING MODAL ==================== */
.rating-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 20001;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.rating-modal.show {
  display: flex;
}

.rating-modal-content {
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.4s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  padding: 40px 30px 30px;
}

.rating-header {
  text-align: center;
  margin-bottom: 30px;
}

.restaurant-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 32px;
}

.rating-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.rating-header p {
  font-size: 16px;
  color: var(--text-medium);
  font-weight: 600;
}

.rating-stars-section {
  text-align: center;
  margin-bottom: 30px;
}

.rating-stars-section label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rating-stars i {
  font-size: 40px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.rating-stars i:hover {
  transform: scale(1.2);
}

.rating-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 12px;
}

.quick-tags {
  margin-bottom: 24px;
}

.quick-tags p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-btn {
  padding: 8px 16px;
  border: 2px solid #E0E0E0;
  background: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
}

.tag-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.tag-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.btn-submit-rating {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
}

.btn-submit-rating:disabled {
  background: var(--text-light);
  cursor: not-allowed;
}

.btn-submit-rating:not(:disabled):hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(226, 55, 68, 0.3);
}

/* ==================== USER PROFILE PAGE ==================== */
.profile-page {
  max-width: 1200px;
  margin: 100px auto 60px;
  padding: 0 24px;
}

.profile-header {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
  flex-shrink: 0;
}

.profile-info h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.profile-info p {
  font-size: 16px;
  color: var(--text-medium);
  margin-bottom: 12px;
}

.profile-stats {
  display: flex;
  gap: 24px;
}

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

.stat-item strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.stat-item span {
  font-size: 14px;
  color: var(--text-medium);
}

/* Hide footer on phones & tablets */
@media (max-width: 1024px) {
  footer {
    display: none;
  }
}

/* ==================== DESKTOP-ONLY HELPERS ==================== */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
}

/* ==================== DELIVERY LOCATION BAR ==================== */
.location-bar {
  display: none;
}
@media (max-width: 768px) {
  .page-home .location-bar {
    display: block;
    margin-top: 72px;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 14px 16px 0 16px;
  }
  .page-home .hero { display: none; }
  .page-home main { padding-bottom: 80px; }
  .page-home .filters-section { margin-top: 84px; }
}
.location-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.location-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.location-search-icon {
  font-size: 18px;
  color: var(--text-medium);
}
.location-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.deliver-label {
  font-size: 12px;
  color: var(--text-medium);
  font-weight: 500;
}
.deliver-address {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.deliver-address i {
  font-size: 10px;
  margin-left: 4px;
  color: var(--text-medium);
}
/* Address edit input */
.location-edit {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.location-edit.active {
  display: flex;
}
.location-edit input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.location-edit input:focus {
  border-color: var(--primary);
}
.location-edit .save-location-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  white-space: nowrap;
}
/* Search restaurants button (mobile) */
.mobile-search-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #f2f2f2;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-light);
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  -webkit-tap-highlight-color: transparent;
  margin-bottom: 14px;
  transition: background 0.2s;
}
.mobile-search-btn i { font-size: 16px; color: var(--text-light); }
.mobile-search-btn:hover, .mobile-search-btn:active { background: #eaeaea; }

/* ==================== SEARCH OVERLAY ==================== */
.search-overlay {
  display: none !important;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  flex-direction: column;
  animation: fadeIn 0.2s ease;
}
.search-overlay.active {
  display: flex !important;
}
.search-overlay-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.search-overlay-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f2f2f2;
  border-radius: 10px;
  padding: 0 14px;
  height: 44px;
}
.search-overlay-input-wrap i {
  color: var(--text-light);
  font-size: 16px;
  margin-right: 10px;
}
.search-overlay-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
}
.search-cancel-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  padding: 8px;
  white-space: nowrap;
}
.search-overlay-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  -webkit-overflow-scrolling: touch;
}

/* Recent Searches */
.recent-searches {
  margin-bottom: 28px;
}
.recent-searches-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.recent-searches-header span {
  font-size: 14px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.recent-searches-header i {
  color: var(--text-medium);
}
.clear-recent-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}
.recent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.recent-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f2f2f2;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}
.tag-remove {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-weight: 400;
}

/* Trending Sections */
.trending-section {
  margin-bottom: 28px;
}
.trending-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.trending-section h3 i {
  color: var(--text-medium);
  font-size: 15px;
}

/* Square trending cards */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.trending-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}
.trending-img-square {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #eee;
  background: #f5f5f5;
}
.trending-img-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.trending-card:hover .trending-img-square img,
.trending-card:active .trending-img-square img {
  transform: scale(1.08);
}
.trending-card span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

/* Round trending cards */
.trending-card-round {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}
.trending-img-round {
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #eee;
  background: #f5f5f5;
  margin: 0 auto;
}
.trending-img-round img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.trending-card-round:hover .trending-img-round img,
.trending-card-round:active .trending-img-round img {
  transform: scale(1.08);
}
.trending-card-round span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
}

/* ==================== BOTTOM TAB BAR - UNIVERSAL COMPATIBILITY ==================== */
/* Base styles - hidden on desktop */
.bottom-tab-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  /* Prevents any parent styles from breaking it */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Mobile activation - multiple breakpoints for maximum compatibility */
@media screen and (max-width: 768px), 
       screen and (max-device-width: 768px),
       screen and (max-width: 48em) {
  
  .page-home .bottom-tab-bar {
    /* Force display with multiple methods for browser compatibility */
    display: -webkit-box !important;
    display: -webkit-flex !important;
    display: -ms-flexbox !important;
    display: flex !important;
    
    /* Restore visibility */
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    
    /* Positioning */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    
    /* Layout */
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    
    -webkit-box-pack: space-around;
    -webkit-justify-content: space-around;
    -ms-flex-pack: space-around;
    justify-content: space-around;
    
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    
    /* Appearance */
    background: #ffffff;
    background-color: #ffffff;
    border-top: 1px solid #e8e8e8;
    
    /* Spacing with safe area support for notched devices */
    padding: 8px 0;
    padding-bottom: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    padding-bottom: calc(8px + constant(safe-area-inset-bottom)); /* iOS 11.0-11.2 */
    
    /* Shadow for depth */
    -webkit-box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    
    /* Prevent content overflow */
    overflow: hidden;
    
    /* Ensure it's above other content */
    z-index: 9999;
    
    /* Smooth appearance */
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* Force hardware acceleration */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
  }
}

/* Individual tab item styles */
.bottom-tab-bar .tab-item {
  /* Force display */
  display: -webkit-box !important;
  display: -webkit-flex !important;
  display: -ms-flexbox !important;
  display: flex !important;
  
  /* Layout */
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  
  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
  
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;
  
  /* Flex properties */
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  
  /* Sizing */
  min-width: 0; /* Prevents flex overflow */
  max-width: 120px;
  min-height: 56px; /* Minimum tap target size for accessibility */
  
  /* Spacing */
  gap: 3px;
  padding: 6px 4px;
  margin: 0;
  
  /* Appearance */
  text-decoration: none;
  text-align: center;
  color: #696969;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  
  /* Interaction */
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  
  /* Smooth transitions */
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
  
  /* Force rendering */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

/* Tab item icon */
.bottom-tab-bar .tab-item i {
  display: block !important;
  font-size: 24px;
  line-height: 1;
  margin: 0;
  padding: 0;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

/* Tab item text */
.bottom-tab-bar .tab-item span {
  display: block !important;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 11px;
  margin: 0;
  padding: 0;
}

/* Active state */
.bottom-tab-bar .tab-item.active {
  color: #E23744;
  color: var(--primary, #E23744);
}

.bottom-tab-bar .tab-item.active i {
  -webkit-transform: scale(1.1);
  transform: scale(1.1);
}

/* Active indicator - modern style */
.bottom-tab-bar .tab-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  background: #E23744;
  background: var(--primary, #E23744);
  border-radius: 0 0 3px 3px;
}

/* Hover effect for devices that support it */
@media (hover: hover) {
  .bottom-tab-bar .tab-item:hover {
    color: #E23744;
    color: var(--primary, #E23744);
    background-color: rgba(226, 55, 68, 0.05);
  }
}

/* Active/pressed state for touch devices */
.bottom-tab-bar .tab-item:active {
  background-color: rgba(226, 55, 68, 0.1);
  -webkit-transform: scale(0.96);
  transform: scale(0.96);
}

/* Extra small phones (iPhone SE, etc.) */
@media screen and (max-width: 375px) {
  .bottom-tab-bar .tab-item {
    max-width: 90px;
    padding: 6px 2px;
  }
  
  .bottom-tab-bar .tab-item i {
    font-size: 22px;
  }
  
  .bottom-tab-bar .tab-item span {
    font-size: 10px;
  }
}

/* Very small devices */
@media screen and (max-width: 320px) {
  .bottom-tab-bar .tab-item {
    max-width: 80px;
    gap: 2px;
  }
  
  .bottom-tab-bar .tab-item i {
    font-size: 20px;
  }
  
  .bottom-tab-bar .tab-item span {
    font-size: 9px;
  }
}

/* Landscape orientation adjustments */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .page-home .bottom-tab-bar {
    padding: 4px 0;
    padding-bottom: calc(4px + env(safe-area-inset-bottom));
    padding-bottom: calc(4px + constant(safe-area-inset-bottom));
  }
  
  .bottom-tab-bar .tab-item {
    min-height: 48px;
    gap: 2px;
  }
  
  .bottom-tab-bar .tab-item i {
    font-size: 20px;
  }
  
  .bottom-tab-bar .tab-item span {
    font-size: 10px;
  }
}

/* Android notch/safe area support */
@supports (padding: max(0px)) {
  .page-home .bottom-tab-bar {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  .page-home .bottom-tab-bar {
    /* iOS safe area insets */
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
}

/* Prevent scrolling behind bottom bar on mobile */
@media screen and (max-width: 768px) {
  .page-home body {
    padding-bottom: 70px;
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
    padding-bottom: calc(70px + constant(safe-area-inset-bottom));
  }
}


/* ==================== MOBILE RESPONSIVE OVERRIDES (all pages) ==================== */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    order: -1;
  }
  .nav-links {
    display: none;
  }
  .nav-container {
    padding: 0 12px;
  }
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .logo img {
    height: 38px;
  }
  .btn-login {
    padding: 8px;
    font-size: 20px;
  }
  .page-home .section-title {
    font-size: 20px;
    margin-bottom: 16px;
  }
  .page-home .card-image-wrapper {
    height: 180px;
  }
}

/* ==================== GLOBAL MOBILE NAV (all pages) ==================== */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: var(--bg-white, #fff);
  padding: 0;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10001;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  gap: 0;
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav a {
  text-decoration: none;
  color: var(--text-dark, #1a1a1a);
  font-weight: 500;
  font-size: 15px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 14px;
}
.mobile-nav a i {
  width: 20px;
  text-align: center;
  color: var(--text-medium, #666);
  font-size: 16px;
}
.mobile-nav a:hover {
  color: var(--primary, #E23744);
  background: var(--primary-light, #fef0f1);
}
.mobile-nav a:hover i {
  color: var(--primary, #E23744);
}

/* ==================== HERO BANNER SLIDESHOW ==================== */

/* ── Section wrapper: card on mobile, full-bleed on desktop ── */
.hero-banner-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 72px;
}

/* On mobile: give it breathing room so it looks like a Figma card */
@media (max-width: 639px) {
  .hero-banner-section {
    padding: 10px 14px 0;
    margin-top: 72px;
  }

  /* The slider itself becomes a rounded card */
  .hero-slider {
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
      0 2px 16px rgba(0,0,0,0.13),
      0 0 0 1px rgba(255,255,255,0.06);
  }
}

/* ── Slider ── */
.hero-slider {
  display: block;
  position: relative;
  height: 144px;
  transition: none;
}

@media (min-width: 640px) { .hero-slider { height: 168px; } }
@media (min-width: 1024px) { .hero-slider { height: 200px; } }

/* ── Individual slide ── */
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 20px;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.45s cubic-bezier(0.4,0,0.2,1), transform 0.45s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  overflow: hidden;
}

/* Subtle inner top highlight */
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

/* Bottom fade for text legibility */
.hero-slide::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(transparent, rgba(0,0,0,0.08));
  pointer-events: none;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

.hero-slide.slide-out-left {
  opacity: 0;
  transform: translateX(-40px);
}

@media (min-width: 640px) {
  .hero-slide { padding: 0 40px; }
}

/* ── Content side ── */
.hero-slide-content {
  flex: 1;
  z-index: 2;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-size: 9.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 30px;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.35);
}

.hero-slide-content h2 {
  font-size: 18px;
  font-weight: 600;
  color: white;
  line-height: 1.15;
  margin: 0 0 4px 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.18);
}

.hero-slide-content h2 strong {
  font-weight: 900;
  display: block;
  font-size: 21px;
  letter-spacing: -0.3px;
}

.hero-slide-content p {
  font-size: 10.5px;
  color: rgba(255,255,255,0.88);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.95);
  color: #1a1a1a;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 40px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 3px 14px rgba(0,0,0,0.2);
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.01em;
  border: 1.5px solid rgba(255,255,255,0.5);
}

.hero-cta-btn i {
  font-size: 9px;
  transition: transform 0.18s ease;
}

.hero-cta-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(0,0,0,0.22);
  color: #1a1a1a;
  text-decoration: none;
}

.hero-cta-btn:hover i { transform: translateX(2px); }

/* ── Visual side (emoji) ── */
.hero-slide-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}

/* Glowing blob behind emoji */
.hero-slide-visual::before {
  content: '';
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255,255,255,0.2);
}

.hero-emoji {
  font-size: 60px;
  line-height: 1;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.22));
  animation: heroFloat 3.2s ease-in-out infinite;
  user-select: none;
  position: relative;
  z-index: 1;
}

@keyframes heroFloat {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}

@media (min-width: 640px) {
  .hero-slide-content h2     { font-size: 22px; }
  .hero-slide-content h2 strong { font-size: 26px; }
  .hero-slide-content p      { font-size: 12px; }
  .hero-cta-btn              { font-size: 12px; padding: 8px 18px; }
  .hero-emoji                { font-size: 80px; }
  .hero-slide-visual::before { width: 110px; height: 110px; }
}

@media (min-width: 1024px) {
  .hero-slide-content h2     { font-size: 28px; }
  .hero-slide-content h2 strong { font-size: 34px; }
  .hero-emoji                { font-size: 100px; }
  .hero-slide-visual::before { width: 130px; height: 130px; }
}

/* ── Navigation arrows (desktop only) ── */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.4);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: none; /* hidden on mobile */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.18s, transform 0.18s;
  font-size: 12px;
}

.hero-nav:hover {
  background: rgba(255,255,255,0.38);
  transform: translateY(-50%) scale(1.08);
}

.hero-prev { left: 14px; }
.hero-next { right: 14px; }

@media (min-width: 640px) {
  .hero-nav { display: flex; }
}

/* ── Dots ── */
.hero-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  padding: 0;
}

.hero-dot.active {
  background: white;
  width: 22px;
  border-radius: 3px;
}

/* =====================================================================
   AD BANNER STRIP — Premium compact cards
   ===================================================================== */
.ad-banner-section {
  padding: 12px 14px 0;
}

@media (min-width: 640px)  { .ad-banner-section { padding: 16px 24px 0; } }
@media (min-width: 1024px) { .ad-banner-section { padding: 20px 32px 0; } }

.ad-strip-track {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.ad-strip-track::-webkit-scrollbar { display: none; }

/* Each card: peek-style on mobile */
.ad-strip-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(74vw, 260px);
  height: 64px;
  border-radius: 14px;
  padding: 0 14px 0 12px;
  text-decoration: none;
  color: #fff;
  scroll-snap-align: start;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}

/* Sheen overlay */
.ad-strip-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,0.14) 0%, transparent 55%);
  pointer-events: none;
  border-radius: inherit;
}

/* Big decorative circle */
.ad-strip-card::after {
  content: '';
  position: absolute;
  right: -22px;
  top: -28px;
  width: 96px;
  height: 96px;
  background: rgba(255,255,255,0.09);
  border-radius: 50%;
  pointer-events: none;
}

.ad-strip-card:active  { transform: scale(0.97); }
.ad-strip-card:hover   { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }

/* Colour themes — using site palette */
.ad-orange  {
  background: linear-gradient(120deg, #E23744 0%, #ff7043 100%);
}
.ad-green   {
  background: linear-gradient(120deg, #09453F 0%, #0d6b60 100%);
}
.ad-crimson {
  background: linear-gradient(120deg, #C72A36 0%, #E23744 100%);
}
.ad-indigo  {
  background: linear-gradient(120deg, #1B4332 0%, #2d6a4f 100%);
}

.ad-strip-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}

.ad-strip-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.ad-strip-text strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ad-strip-text span {
  font-size: 10px;
  opacity: 0.82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.ad-strip-cta {
  font-size: 10.5px;
  font-weight: 800;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 10px;
  border-radius: 30px;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
  transition: background 0.15s;
}
.ad-strip-card:hover .ad-strip-cta {
  background: rgba(255,255,255,0.3);
}
.ad-strip-cta i { font-size: 9px; margin-left: 2px; }

/* Desktop: 4-col grid */
@media (min-width: 640px) {
  .ad-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .ad-strip-card { min-width: unset; height: 68px; }
}


/* =====================================================================
   NEW RESTAURANTS CAROUSEL  —  2-col scrollable on mobile
   ===================================================================== */
.nrc-section {
  padding: 20px 0 16px;
  position: relative;
}

/* ── Header ── */
.nrc-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 12px;
}

.nrc-title-block { display: flex; flex-direction: column; gap: 1px; }

.nrc-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #09453F;
}

.nrc-heading {
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #111;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.nrc-see-all {
  font-size: 12.5px;
  font-weight: 700;
  color: #09453F;
  text-decoration: none;
  white-space: nowrap;
  padding: 5px 12px;
  background: rgba(9,69,63,0.07);
  border-radius: 30px;
  border: 1px solid rgba(9,69,63,0.12);
  transition: all 0.15s ease;
}
.nrc-see-all:hover {
  background: #09453F;
  color: #94d82f;
}
.nrc-see-all i { font-size: 9px; margin-left: 2px; }

/* ── Scroll wrapper ── */
.nrc-scroll-wrap {
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 14px 8px;
}
.nrc-scroll-wrap::-webkit-scrollbar { display: none; }

.nrc-grid {
  display: grid;
  grid-template-columns: repeat(2, calc(50vw - 21px));
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: calc(50vw - 21px);
  gap: 10px;
  width: max-content;
}

/* ── Cards ── */
.nrc-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 6px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}
.nrc-card:active { transform: scale(0.97); }
.nrc-card:hover  {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.05);
}

/* Card image */
.nrc-img {
  position: relative;
  width: 100%;
  padding-top: 60%;
  overflow: hidden;
  background: #e5e7eb;
  flex-shrink: 0;
}
.nrc-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}
.nrc-card:hover .nrc-img img { transform: scale(1.06); }

.nrc-new-badge {
  position: absolute;
bottom: 5px;
right: 6px;
  background: #09453F;
  color: #94d82f;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 20px;
  z-index: 2;
  animation: nrcGlow 2s ease-in-out infinite;
}

.nrc-discount-badge {
  position: absolute;
    top: 5px;
    left: 6px;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 8px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
  text-transform: uppercase;
  max-width: calc(100% - 14px); /* Prevent overflow */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes nrcGlow {
  0%,100% { box-shadow: 0 1px 6px rgba(9,69,63,0.4); }
  50%      { box-shadow: 0 1px 14px rgba(148,216,47,0.5); }
}

.nrc-time {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 8px 5px;
  background: linear-gradient(transparent, rgba(0,0,0,0.48));
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  z-index: 1;
}
.nrc-time i { margin-right: 3px; font-size: 9px; }

/* Card info */
.nrc-info {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nrc-name {
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #111;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nrc-meta-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #6b7280;
}
.nrc-stars { color: #f59e0b; font-weight: 700; }
.nrc-stars i { font-size: 9px; margin-right: 1px; }
.nrc-dot-sep { color: #d1d5db; }
.nrc-loc {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nrc-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  align-self: flex-start;
  /* discount / offer — purple */
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

.nrc-pill.nrc-pill-free {
  background: #FFC72C !important;
  color: #1C1C1C !important;
  box-shadow: 0 2px 6px rgba(255, 199, 44, 0.3) !important;
}

/* ── Dots (mobile only) ── */
.nrc-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  padding: 0 16px;
}
.nrc-dot-btn {
  width: 6px; height: 6px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  padding: 0;
  cursor: pointer;
  transition: all 0.25s;
}
.nrc-dot-btn.active {
  background: #09453F;
  width: 18px;
  border-radius: 3px;
}

/* ── Desktop arrows ── */
.nrc-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #374151;
  cursor: pointer;
  font-size: 13px;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: all 0.18s ease;
}
.nrc-arrow:hover:not(:disabled) {
  background: #09453F;
  border-color: #09453F;
  color: #94d82f;
  transform: translateY(-50%) scale(1.05);
}
.nrc-arrow-prev { left: 4px; }
.nrc-arrow-next { right: 4px; }

/* ── Tablet / Desktop ── */
@media (min-width: 640px) {
  .nrc-section { padding: 26px 0 22px; }
  .nrc-header { padding: 0 24px; margin-bottom: 14px; }
  .nrc-heading { font-size: 21px; }
  .nrc-scroll-wrap { padding: 4px 24px 8px; justify-content: center; display: flex; }
  .nrc-grid {
    grid-template-columns: repeat(3, 200px);
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: 200px;
    gap: 14px;
  }
  .nrc-name { font-size: 12px; }
  .nrc-card { border-radius: 16px; }
  .nrc-arrow { display: flex; }
  .nrc-dots  { display: none; }
}

@media (min-width: 768px) {
  .nrc-grid {
    grid-template-columns: repeat(3, 220px);
    grid-auto-columns: 220px;
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .nrc-section { padding: 30px 0 26px; }
  .nrc-header { padding: 0 32px; }
  .nrc-scroll-wrap { padding: 4px 32px 8px; }
  .nrc-grid {
    grid-template-columns: repeat(3, 240px);
    grid-auto-columns: 240px;
    gap: 18px;
  }
  .nrc-name { font-size: 13px; }
  .nrc-info { padding: 10px 12px 12px; gap: 5px; }
  .nrc-arrow-prev { left: 8px; }
  .nrc-arrow-next { right: 8px; }
}

/* Free Delivery badge — accent amber, distinct from discount purple */
.free-delivery-badge,
.offer-badge.free-delivery-badge,
.nrc-discount-badge.free-delivery-badge,
.cart-offer-badge.free-delivery-badge {
  background: #0c9d5a !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(255, 199, 44, 0.35) !important;
  animation: none !important;
}

.free-delivery-badge::after,
.offer-badge.free-delivery-badge::after,
.nrc-discount-badge.free-delivery-badge::after,
.cart-offer-badge.free-delivery-badge::after {
  display: none !important;
}

.free-delivery-badge i,
.offer-badge.free-delivery-badge i,
.nrc-discount-badge.free-delivery-badge i,
.cart-offer-badge.free-delivery-badge i {
  color: #ffffff !important;
}
