/* ============================================================
   SRI KRISHNA HOTEL - COMPLETE STYLESHEET
   Base styles + Gift Box/Coupon styles
   ============================================================ */

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #e65100;
  --primary-dark: #bf360c;
  --secondary: #2e7d32;
  --bg: #f8f9fa;
  --card-bg: #fff;
  --text: #212529;
  --text-light: #6c757d;
  --border: #dee2e6;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 14px;
  --radius-sm: 10px;
  --header-height: 64px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  padding-bottom: 80px;
  -webkit-overflow-scrolling: touch;
  min-height: 100dvh;
}

a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; touch-action: manipulation; }
img { max-width: 100%; display: block; height: auto; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(230,81,0,0.25);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  max-width: 1400px;
  margin: 0 auto;
  height: var(--header-height);
  gap: 8px;
}

.header-left { display: flex; align-items: center; gap: 10px; }

.logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 2px solid rgba(255,255,255,0.25);
  overflow: hidden;
  background: #fff;
}

.logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.hotel-title { font-size: 1rem; font-weight: 700; line-height: 1.2; margin-bottom: 1px; white-space: nowrap; }
.hotel-tagline { font-size: 0.68rem !important; font-weight: 600; color: #ffeb3b; display: flex; align-items: center; gap: 4px; }
.hotel-info p { font-size: 0.75rem; opacity: 0.9; display: flex; align-items: center; gap: 4px; margin-top: 1px; white-space: nowrap; }

.header-right { display: flex; align-items: center; gap: 6px; }

.search-toggle, .menu-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-toggle:active, .menu-toggle:active {
  background: rgba(255,255,255,0.25);
  transform: scale(0.95);
}

/* ===== SEARCH BAR ===== */
.search-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s, padding 0.25s;
  background: rgba(0,0,0,0.08);
}

.search-bar.active { max-height: 60px; padding: 8px 12px; }

.search-container {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  padding: 6px 14px;
  max-width: 600px;
  margin: 0 auto;
  gap: 8px;
}

.search-container input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  background: transparent;
}

.search-container button {
  color: var(--text-light);
  font-size: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

/* ===== HERO BANNER ===== */
.hero-banner {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #1a1a1a;
}

.hero-slider { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.3) 100%);
}

.hero-content {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  color: #fff;
  text-align: center;
}

.hero-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-content p {
  font-size: 0.85rem;
  opacity: 0.9;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: all 0.2s;
}

.hero-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* ===== OFFERS SLIDER ===== */
.offers-slider {
  position: absolute;
  bottom: 60px;
  left: 0;
  right: 0;
  z-index: 6;
  padding: 0 12px;
}

.offers-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.offers-track::-webkit-scrollbar { display: none; }

.offer-slide {
  flex-shrink: 0;
  width: 220px;
  background: rgba(255,255,255,0.95);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  backdrop-filter: blur(8px);
}

.offer-slide.highlight {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 2px solid #ff9800;
}

.offer-content h4 { font-size: 0.85rem; margin-bottom: 3px; color: var(--text); font-weight: 700; }
.offer-content p { font-size: 0.75rem; color: #666; margin-bottom: 6px; line-height: 1.3; }

.btn-offer-action {
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
}

.btn-offer-action:active { transform: scale(0.95); }

/* ===== CATEGORY SECTION ===== */
.category-section {
  position: sticky;
  top: var(--header-height);
  background: var(--bg);
  z-index: 100;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.category-container {
  display: flex;
  gap: 6px;
  padding: 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-container::-webkit-scrollbar { display: none; }

.category-btn {
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 50px;
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 0.8rem;
  border: 1.5px solid var(--border);
  white-space: nowrap;
}

.category-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(230,81,0,0.22);
}

.category-btn:active { transform: scale(0.96); }

/* ===== MENU SECTION ===== */
.menu-section { padding: 12px 12px 30px; max-width: 1400px; margin: 0 auto; }
.menu-container { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* ===== SKELETON ===== */
.skeleton-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.skeleton-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(90deg, #e8e8e8 25%, #d0d0d0 50%, #e8e8e8 75%);
  background-size: 200% 100%;
  animation: shimmer 1s infinite;
}

.skeleton-body { padding: 12px; }
.skeleton-title { height: 16px; width: 65%; background: #e8e8e8; border-radius: 4px; margin-bottom: 6px; }
.skeleton-price { height: 20px; width: 35%; background: #e8e8e8; border-radius: 4px; margin-bottom: 10px; }
.skeleton-btn { height: 36px; width: 100%; background: #e8e8e8; border-radius: 50px; }

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.product-card:active { transform: scale(0.985); }

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e8e8e8;
}

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s;
}

.product-image img.loaded { opacity: 1; }

.product-image-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  z-index: 1;
}

.product-image img.loaded + .product-image-fallback { display: none; }

.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
}

.product-info { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 1rem; font-weight: 700; margin-bottom: 3px; }
.product-price { font-size: 1.15rem; font-weight: 800; color: var(--primary); margin-bottom: 10px; }
.product-price::before { content: "Rs."; font-size: 0.9rem; }

.product-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-control {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 50px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 700;
}

.qty-btn:active { background: var(--primary); color: #fff; }
.qty-btn:disabled { opacity: 0.3; }
.qty-value { width: 32px; text-align: center; font-weight: 700; font-size: 0.95rem; }

.btn-add-cart {
  flex: 1;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(230,81,0,0.18);
}

.btn-add-cart:active { transform: scale(0.97); }
.btn-add-cart.added { background: linear-gradient(135deg, var(--secondary) 0%, #1b5e20 100%); }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-15px);
  background: var(--secondary);
  color: #fff;
  padding: 8px 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.85rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
  pointer-events: none;
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== STICKY CART ===== */
.sticky-cart {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: none;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 18px rgba(230,81,0,0.35);
}

.cart-btn:active { transform: scale(0.97); }

.cart-count {
  background: #fff;
  color: var(--primary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 420px;
  height: 100dvh;
  background: #fff;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  transition: right 0.25s;
  box-shadow: -6px 0 25px rgba(0,0,0,0.1);
}

.cart-drawer.open { right: 0; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.cart-drawer-header h3 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }

.cart-close {
  color: #fff;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.cart-close:active { background: rgba(255,255,255,0.3); }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 12px; -webkit-overflow-scrolling: touch; }

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
  color: var(--text-light);
}

.empty-cart i { font-size: 3.5rem; margin-bottom: 14px; opacity: 0.3; }
.empty-cart p { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; color: var(--text); }

.cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  border: 1px solid var(--border);
}

.cart-item-image { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.88rem; margin-bottom: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: 0.82rem; }

.cart-item-qty { display: flex; align-items: center; gap: 5px; }
.cart-item-qty button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.cart-item-qty button:active { background: var(--primary); color: #fff; }
.cart-item-qty span { font-weight: 700; min-width: 16px; text-align: center; font-size: 0.85rem; }

.cart-item-remove {
  color: #dc3545;
  font-size: 0.9rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.cart-item-remove:active { background: #ffebee; }

.cart-drawer-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: #fafafa;
  display: none;
}

.cart-summary { margin-bottom: 12px; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.9rem; color: var(--text-light); }
.cart-summary-row.total { font-size: 1.1rem; font-weight: 800; color: var(--text); border-top: 2px solid var(--border); padding-top: 6px; margin-top: 4px; }

.btn-place-order {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--secondary) 0%, #1b5e20 100%);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
  box-shadow: 0 3px 12px rgba(46,125,50,0.22);
}

.btn-continue {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: var(--text-light);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px solid var(--border);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  max-width: 80vw;
  height: 100dvh;
  background: #fff;
  z-index: 10001;
  box-shadow: -4px 0 20px rgba(0,0,0,0.12);
  transition: right 0.25s;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open { right: 0; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
}

.mobile-menu-header h3 { font-size: 1.1rem; }
.mobile-menu-header button {
  color: #fff;
  font-size: 1.1rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.mobile-menu-content { flex: 1; overflow-y: auto; padding: 8px 0; -webkit-overflow-scrolling: touch; }

.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  border-left: 3px solid transparent;
}

.mobile-menu-item i { width: 22px; text-align: center; color: var(--primary); font-size: 1rem; }
.mobile-menu-item:active { background: #fff3e0; border-left-color: var(--primary); color: var(--primary-dark); }
.mobile-menu-divider { height: 1px; background: var(--border); margin: 8px 16px; }

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.mobile-menu-overlay.open { opacity: 1; visibility: visible; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  background: #fff;
  border-radius: var(--radius);
  width: 92%;
  max-width: 420px;
  max-height: 90dvh;
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-header h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }

.modal-close {
  color: #fff;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.modal-close:active { background: rgba(255,255,255,0.3); }
.modal-body { padding: 16px 16px 24px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.text-center { text-align: center; }

#order-form {
  display: flex;
  flex-direction: column;
}

#payment-method-group { order: 1; }
#qr-payment-section { order: 2; width: 100%; }
#order-notes-group { order: 3; }
#order-form-actions {
  order: 4;
  position: sticky;
  bottom: 0;
  margin-top: 14px;
  padding-top: 12px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 18px, #fff 100%);
  z-index: 2;
}

/* ===== FORM ELEMENTS ===== */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group label i { color: var(--primary); width: 16px; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 60px; }

/* ===== PAYMENT OPTIONS ===== */
.payment-options { display: flex; gap: 10px; flex-wrap: wrap; }

.payment-option {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  background: #fff;
}

.payment-option:has(input:checked) { border-color: var(--primary); background: #fff3e0; }
.payment-option input { position: absolute; opacity: 0; }

.payment-radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.payment-option:has(input:checked) .payment-radio { border-color: var(--primary); background: var(--primary); }

.payment-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

.payment-option:has(input:checked) .payment-radio::after { opacity: 1; }
.payment-option i { font-size: 1.1rem; color: var(--primary); }
.payment-option span { font-weight: 600; font-size: 0.9rem; }

/* ===== UPI APP GRID ===== */
.upi-app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }

.upi-app-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.upi-app-btn:active { transform: scale(0.96); }
.upi-app-btn.selected { border-color: var(--primary); background: #fff3e0; box-shadow: 0 2px 8px rgba(230,81,0,0.15); }

.upi-app-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f5f5f5;
}

.upi-app-icon img { width: 100%; height: 100%; object-fit: contain; }

.fallback-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.upi-app-name { font-size: 0.75rem; font-weight: 600; color: var(--text); }

/* ===== QR CODE ===== */
.qr-container {
  text-align: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--border);
}

.qr-header { margin-bottom: 10px; }
.qr-title { font-size: 1rem; font-weight: 700; color: var(--text); }
.qr-subtitle { font-size: 0.8rem; color: var(--text-light); }

.qr-image-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(100%, 320px);
  margin: 0 auto 10px;
}

.qr-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.qr-amount-badge {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.qr-upi-id {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.qr-upi-id strong { color: var(--primary); }

#btn-copy-upi {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

#btn-copy-upi:active { transform: scale(0.9); }
.qr-note { font-size: 0.8rem; color: var(--text-light); margin-top: 8px; line-height: 1.5; }

/* ===== PAYMENT STATUS ===== */
.payment-status {
  text-align: center;
  padding: 10px;
  background: #f5f5f5;
  border-radius: var(--radius-sm);
  margin: 10px 0;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-paid { color: var(--secondary); background: #e8f5e9; }
.status-pending { color: #f57c00; background: #fff3e0; }
.status-cash { color: var(--text-light); }

/* ===== SUBMIT ORDER BUTTON ===== */
.btn-submit-order {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(230,81,0,0.25);
}

.btn-submit-order:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-submit-order:active:not(:disabled) { transform: scale(0.98); }

/* ===== SUCCESS MODAL ===== */
.success-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary), #1b5e20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-icon i { font-size: 2.5rem; color: #fff; }
.success-modal h3 { color: var(--secondary); margin-bottom: 8px; font-size: 1.3rem; }
.success-modal p { margin-bottom: 4px; color: var(--text-light); }
.success-note { font-size: 0.85rem; color: var(--text-light); margin: 8px 0 16px; }

.btn-new-order,
.btn-download-bill {
  width: 100%;
  padding: 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-new-order {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 3px 12px rgba(230,81,0,0.22);
}

.btn-download-bill { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn-new-order:active, .btn-download-bill:active { transform: scale(0.97); }

/* ===== HISTORY ===== */
.history-item {
  padding: 12px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid var(--border);
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.history-item-header h4 { font-size: 0.95rem; color: var(--text); }
.history-item-date { font-size: 0.8rem; color: var(--text-light); }
.history-item-details { font-size: 0.85rem; color: var(--text-light); margin-bottom: 6px; line-height: 1.4; }
.history-item-total { font-size: 0.9rem; font-weight: 700; color: var(--primary); }

.empty-history {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  color: var(--text-light);
  text-align: center;
}

.empty-history i { font-size: 3rem; margin-bottom: 12px; opacity: 0.3; }
.empty-history p { font-weight: 600; color: var(--text); }

/* ===== CONTACT ===== */
.contact-info { display: flex; flex-direction: column; gap: 8px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.contact-item:active { background: #fff3e0; border-color: var(--primary); }

.contact-item i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item h4 { font-size: 0.95rem; margin-bottom: 2px; color: var(--text); }
.contact-item p { font-size: 0.85rem; color: var(--text-light); }

/* ===== GIFT BOX SECTION ===== */
.gift-box-section {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px;
  border: 2px solid #ff9800;
  box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
}

.gift-box-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.gift-box-header i { font-size: 1.5rem; color: #e65100; }
.gift-box-header h3 { flex: 1; font-size: 1.1rem; color: #e65100; }

.gift-progress {
  background: #e65100;
  color: #fff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.gift-box-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }

.gift-box-day {
  aspect-ratio: 1;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gift-box-day:active { transform: scale(0.95); }
.gift-box-day.locked { background: #f5f5f5; color: #bbb; cursor: not-allowed; }

.gift-box-day.active {
  background: linear-gradient(135deg, #ff9800, #e65100);
  color: #fff;
  border-color: #e65100;
  animation: pulse-gift 2s infinite;
}

.gift-box-day.opened { background: linear-gradient(135deg, #4caf50, #2e7d32); color: #fff; }
.gift-box-day.missed { background: #ffebee; color: #c62828; opacity: 0.6; }

@keyframes pulse-gift {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(230, 81, 0, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 4px 20px rgba(230, 81, 0, 0.4); }
}

.gift-box-icon { font-size: 1.3rem; }
.gift-day-num { font-size: 0.65rem; font-weight: 600; }

.gift-progress-bar { height: 8px; background: #e0e0e0; border-radius: 50px; overflow: hidden; margin-bottom: 8px; }
.gift-progress-fill { height: 100%; background: linear-gradient(90deg, #ff9800, #e65100); border-radius: 50px; transition: width 0.5s ease; }
.gift-status-text { text-align: center; font-size: 0.85rem; color: #666; font-weight: 500; }

/* ===== COUPON SECTION ===== */
.coupon-section { margin-top: 14px; padding-top: 14px; border-top: 2px dashed #ff9800; }

.coupon-banner {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: #fff;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.coupon-banner i { font-size: 1.3rem; }

.btn-claim-coupon {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #e65100, #bf360c);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(230, 81, 0, 0.3);
  animation: pulse-gift 2s infinite;
  border: none;
}

.btn-claim-coupon:active { transform: scale(0.97); }

/* ===== GIFT REWARD MODAL ===== */
.gift-reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.gift-reward-content {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  max-width: 300px;
  width: 90%;
  animation: pop-in 0.3s ease;
}

@keyframes pop-in {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.gift-reward-icon { font-size: 4rem; margin-bottom: 10px; animation: bounce 1s infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.gift-reward-content h3 { color: #e65100; margin-bottom: 8px; }
.gift-reward-text { font-size: 1.1rem; font-weight: 700; color: #2e7d32; margin-bottom: 20px; }

.btn-gift-ok {
  padding: 12px 30px;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  border: none;
}

.btn-gift-ok:active { transform: scale(0.95); }

/* ===== COUPON MODAL ===== */
.coupon-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10001;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.coupon-modal {
  background: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: slide-up 0.3s ease;
}

@keyframes slide-up {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

.coupon-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.coupon-modal-header h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }

.coupon-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.coupon-close:active { background: rgba(255,255,255,0.3); }
.coupon-modal-body { padding: 16px; overflow-y: auto; flex: 1; }

.coupon-info {
  background: #fff3e0;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.coupon-info i { color: #e65100; font-size: 1.2rem; margin-top: 2px; flex-shrink: 0; }
.coupon-info p { font-size: 0.9rem; color: #666; line-height: 1.4; }

.coupon-items-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.coupon-item-card {
  background: #f8f9fa;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.coupon-item-card:active { transform: scale(0.97); border-color: var(--primary); background: #fff3e0; }
.coupon-item-emoji { font-size: 2.5rem; margin-bottom: 6px; }
.coupon-item-name { font-weight: 600; font-size: 0.85rem; margin-bottom: 4px; }
.coupon-item-price { color: var(--primary); font-weight: 700; font-size: 0.9rem; }

/* ===== COUPON SUCCESS ===== */
.coupon-success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.coupon-success-modal {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  max-width: 320px;
  width: 90%;
  animation: pop-in 0.3s ease;
}

.coupon-success-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.coupon-success-icon i { font-size: 2.5rem; color: #fff; }
.coupon-success-modal h3 { color: #2e7d32; margin-bottom: 14px; font-size: 1.3rem; }

.coupon-code-box {
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  border: 2px dashed #e65100;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.coupon-code { font-size: 1.4rem; font-weight: 800; color: #e65100; letter-spacing: 2px; }

.btn-copy-code {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e65100;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.btn-copy-code:active { transform: scale(0.9); }
.coupon-hint { font-size: 0.85rem; color: #666; margin-bottom: 20px; }

.btn-coupon-done {
  padding: 12px 32px;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
}

.btn-coupon-done:active { transform: scale(0.95); }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 28px 16px 16px;
  margin-top: 30px;
}

.footer-content { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-brand { margin-bottom: 16px; }
.footer-brand h3 { font-size: 1.2rem; margin-bottom: 3px; }
.footer-brand p { opacity: 0.7; font-size: 0.82rem; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.footer-links a { display: flex; align-items: center; gap: 6px; opacity: 0.8; font-weight: 500; font-size: 0.85rem; }
.footer-links a:active { opacity: 1; color: #ff9800; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px; font-size: 0.78rem; opacity: 0.6; }


/* ===== IMAGE EMOJI FALLBACK ===== */
.img-emoji-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    z-index: 1;
}

.product-image img.loaded + .img-emoji-fallback {
    display: none;
}


/* ===== HEADER GIFT BUTTON ===== */
.gift-header-btn {
    position: relative;
    transition: all 0.2s;
}

.gift-header-btn:hover {
    background: rgba(255,255,255,0.2) !important;
    transform: scale(1.05);
}

.gift-header-btn:active {
    transform: scale(0.95);
}

.gift-header-btn #gift-header-badge {
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}


/* ===== OFFER GIFT BOX ===== */
#offer-gift-box {
    transition: all 0.2s;
    cursor: pointer;
}

#offer-gift-box:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(230,81,0,0.3);
}

#offer-gift-box:active {
    transform: scale(0.98);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .order-modal,
  .history-modal,
  .contact-modal {
    width: 100%;
    max-width: none;
    max-height: 100dvh;
    height: 100dvh;
    top: auto;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    border-radius: 20px 20px 0 0;
  }

  .order-modal.open,
  .history-modal.open,
  .contact-modal.open {
    transform: translateY(0);
  }

  .modal-header {
    padding: 14px 16px;
  }

  .modal-header h3 {
    font-size: 1rem;
  }

  .modal-body {
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
  }

  #order-form-actions {
    margin-top: 12px;
    padding-top: 10px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .payment-options {
    flex-direction: column;
  }

  .payment-option {
    width: 100%;
    min-width: 0;
  }

  .qr-container {
    padding: 14px;
  }

  .qr-image {
    max-width: min(100%, 280px);
  }

  .history-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .history-item-header h4,
  .history-item-date {
    white-space: normal;
  }
}

@media (min-width: 480px) {
  .menu-container { grid-template-columns: repeat(2, 1fr); }
  .hero-banner { height: 200px; }
}

@media (min-width: 640px) {
  .header-top { padding: 10px 16px; }
  .hotel-title { font-size: 1.1rem; }
  .logo { width: 52px; height: 52px; }
}

@media (min-width: 768px) {
  .menu-container { grid-template-columns: repeat(3, 1fr); }
  .hero-banner { height: 220px; }
  .hero-content h2 { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .menu-container { grid-template-columns: repeat(4, 1fr); }
  .hero-banner { height: 260px; }
}

@media (min-width: 1440px) {
  .menu-container { grid-template-columns: repeat(5, 1fr); }
  .hero-banner { height: 300px; }
}

@media (max-width: 360px) {
  .gift-box-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .gift-box-day { border-radius: 8px; }
  .gift-box-icon { font-size: 1rem; }
  .gift-day-num { font-size: 0.55rem; }
}

/* ===== GIFT PHONE LOGIN MODAL ===== */
.gift-phone-login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  animation: fadeIn 0.3s ease;
}

.gift-phone-login-container {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 20px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

.gift-phone-login-container h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.gift-phone-login-container > p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.gift-phone-login-container input {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 14px;
  transition: all 0.2s;
}

.gift-phone-login-container input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(230, 81, 0, 0.1);
}

.gift-phone-login-container button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(230, 81, 0, 0.3);
  border: none;
}

.gift-phone-login-container button:active {
  transform: scale(0.98);
}

.gift-phone-login-container button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.gift-info-text {
  font-size: 0.85rem;
  color: var(--secondary);
  font-weight: 600;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== REWARD STATUS CARD ===== */
.reward-status-card-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: 16px;
  animation: fadeIn 0.3s ease;
}

.reward-status-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px 22px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: pop-in 0.35s ease;
  position: relative;
}

.reward-card-cancel {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.reward-card-cancel:active { background: #e0e0e0; transform: scale(0.9); }

.reward-card-icon { font-size: 3rem; margin-bottom: 10px; line-height: 1; }

.reward-status-card h3 {
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}

.reward-card-name {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 16px;
}

.reward-card-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.reward-stat {
  flex: 1;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 12px 8px;
  border: 1.5px solid var(--border);
}

.reward-stat.eligible {
  background: #e8f5e9;
  border-color: #4caf50;
}

.reward-stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2px;
}

.reward-stat.eligible .reward-stat-value { color: #2e7d32; }

.reward-stat-label {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
}

.reward-card-msg {
  font-size: 0.88rem;
  color: #555;
  margin-bottom: 16px;
  line-height: 1.4;
}

.reward-card-open-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
  box-shadow: 0 4px 15px rgba(230,81,0,0.3);
  transition: all 0.2s;
}
.reward-card-open-btn:active { transform: scale(0.97); }

.reward-card-close-btn {
  width: 100%;
  padding: 11px;
  background: #f5f5f5;
  color: #666;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.reward-card-close-btn:active { background: #e0e0e0; }


/* ===== FREE DELIVERY BANNER - BORDER ONLY ===== */
.free-delivery-banner {
    background: transparent;
    border: 2.5px dashed #4caf50;
    border-radius: 16px;
    padding: 14px 16px;
    margin: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.free-delivery-banner::before {
    content: '📦';
    position: absolute;
    right: -10px;
    top: -10px;
    font-size: 4rem;
    opacity: 0.06;
    transform: rotate(-15deg);
}

.free-delivery-banner .fdb-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.free-delivery-banner .fdb-icon {
    font-size: 2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.free-delivery-banner .fdb-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.free-delivery-banner .fdb-text strong {
    font-size: 0.95rem;
    color: #2e7d32;
    font-weight: 700;
}

.free-delivery-banner .fdb-text span {
    font-size: 0.8rem;
    color: #558b2f;
    font-weight: 500;
}

.free-delivery-banner .fdb-check-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(46,125,50,0.2);
    transition: all 0.2s;
}

.free-delivery-banner .fdb-check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46,125,50,0.3);
}

.free-delivery-banner .fdb-check-btn:active {
    transform: scale(0.95);
}

.free-delivery-banner .fdb-check-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fdb-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.fdb-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.fdb-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fdb-text strong {
    font-size: 0.92rem;
    color: #2e7d32;
}

.fdb-text span {
    font-size: 0.78rem;
    color: #558b2f;
}

.fdb-check-btn {
    padding: 8px 14px;
    background: linear-gradient(135deg, #4caf50, #2e7d32);
    color: #fff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(46,125,50,0.2);
    transition: all 0.2s;
}

.fdb-check-btn:active {
    transform: scale(0.95);
}

.fdb-check-btn:disabled {
    opacity: 0.6;
}

/* ===== DELIVERY RESULT POPUP ===== */
.delivery-result-popup {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    max-width: 340px;
    width: 90%;
    z-index: 10005;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    text-align: center;
    animation: slideDown 0.3s ease;
}

.delivery-result-popup.drp-yes {
    border: 2px solid #4caf50;
    background: linear-gradient(135deg, #e8f5e9, #fff);
}

.delivery-result-popup.drp-no {
    border: 2px solid #f44336;
    background: linear-gradient(135deg, #ffebee, #fff);
}

.delivery-result-popup.drp-info {
    border: 2px solid #2196f3;
    background: linear-gradient(135deg, #e3f2fd, #fff);
}

.drp-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1rem;
    color: #999;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.drp-close:active {
    background: #f5f5f5;
}

.drp-icon {
    font-size: 2.5rem;
    margin-bottom: 6px;
}

.delivery-result-popup h4 {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 6px;
}

.delivery-result-popup p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.4;
}

.drp-note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #ccc;
    font-size: 0.82rem;
    color: #2e7d32;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== NOT ELIGIBLE MESSAGE ===== */
.not-eligible-msg {
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===== DAY 1 SPECIAL STYLES ===== */
.day1-special {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border: 2px dashed #ff9800;
    border-radius: 14px;
    padding: 16px;
    margin-top: 14px;
    animation: pulse-gift 2s infinite;
}

.day1-banner {
    background: linear-gradient(135deg, #ff9800, #e65100) !important;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ===== DAY 10 MYSTERY BOX STYLES ===== */
.day10-mystery {
    background: linear-gradient(135deg, #f3e5f5, #e1bee7);
    border: 2px dashed #9c27b0;
    border-radius: 14px;
    padding: 16px;
    margin-top: 14px;
    animation: pulse-mystery 2s infinite;
}

.day10-banner {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2) !important;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.btn-mystery {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2) !important;
    animation: pulse-mystery 2s infinite !important;
}

@keyframes pulse-mystery {
    0%, 100% { transform: scale(1); box-shadow: 0 2px 8px rgba(156, 39, 176, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 4px 20px rgba(156, 39, 176, 0.5); }
}

/* ===== FUTURE DAYS (locked preview) ===== */
.gift-box-day.future {
    background: #fafafa;
    color: #bbb;
    cursor: not-allowed;
    opacity: 0.6;
    border: 2px dashed #ddd;
}

.gift-box-day.future .gift-box-icon {
    filter: grayscale(100%);
    opacity: 0.5;
}

/* ===== LOGO FALLBACK ===== */
.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.logo {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===== GIFT BOX COUNT DISPLAY ===== */
.gift-count-display {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: #e65100;
    margin: 10px 0;
    padding: 10px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 12px;
    border: 2px solid #ff9800;
}

.gift-count-display .count-number {
    font-size: 2rem;
    display: block;
    margin-bottom: 4px;
}
