/* =============================================
   DEMO RESTAURANT — Restaurant Ordering Web App
   Theme: Red / Gold / Dark
   ============================================= */

:root {
  --primary: #E63946;
  --primary-dark: #c42a36;
  --gold: #FFD700;
  --gold-dark: #e6c200;
  --dark: #1A1A2E;
  --darker: #0f0f1a;
  --surface: #FAFAFA;
  --surface-2: #F1F1F1;
  --text: #1A1A2E;
  --text-secondary: #5a5a6e;
  --text-muted: #8888a0;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: var(--font-body); background: var(--surface); color: var(--text); -webkit-font-smoothing: antialiased; }

/* Loading Screen */
.loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen:not(.active) { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-logo { font-size: 72px; animation: bounce 1.2s infinite; margin-bottom: 16px; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.loading-title { font-family: var(--font-heading); font-size: 36px; color: var(--white); letter-spacing: 1px; }
.loading-spinner { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.15); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 20px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-sub { color: var(--text-muted); font-size: 14px; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,26,46,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-wings { font-size: 28px; }
.logo-text { font-family: var(--font-heading); font-size: 22px; color: var(--white); letter-spacing: 0.5px; }
.logo-text strong { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-link { color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 500; font-size: 14px; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--gold); }
.cart-btn { position: relative; background: var(--primary); border: none; width: 40px; height: 40px; border-radius: 50%; color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: transform 0.2s, background 0.2s; }
.cart-btn:hover { transform: scale(1.08); background: var(--primary-dark); }
.cart-badge { position: absolute; top: -4px; right: -4px; background: var(--gold); color: var(--dark); font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cart-badge.hidden { display: none !important; }

/* Hero */
.hero { position: relative; min-height: 480px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.35); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,26,46,0.3) 0%, rgba(26,26,46,0.85) 100%); }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 720px; padding: 40px 20px; }
.hero-tag { display: inline-block; background: rgba(230,57,70,0.2); color: var(--primary); border: 1px solid rgba(230,57,70,0.35); padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
.hero-title { font-family: var(--font-heading); font-size: 52px; line-height: 1.1; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.hero-gold { color: var(--gold); }
.hero-desc { font-size: 18px; color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Info Bar */
.info-bar { display: flex; justify-content: center; gap: 32px; padding: 14px 20px; background: var(--dark); color: rgba(255,255,255,0.7); font-size: 13px; flex-wrap: wrap; }
.info-item { display: flex; align-items: center; gap: 6px; }
.info-item i { color: var(--gold); font-size: 12px; }

/* Category Chips */
.category-bar { display: flex; gap: 10px; padding: 20px; max-width: 1200px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.category-bar::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; padding: 8px 18px; border-radius: 100px; border: 1px solid var(--surface-2); background: var(--white); color: var(--text-secondary); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: var(--font-body); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip-active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.chip-active:hover { background: var(--primary-dark); color: var(--white); }

/* Combos strip */
.combos-strip { display: none; gap: 14px; padding: 16px 20px; max-width: 1200px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.combos-strip::-webkit-scrollbar { display: none; }
.combo-card {
  flex: 0 0 150px; background: var(--white); border-radius: var(--radius); padding: 14px;
  box-shadow: var(--shadow); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; text-align: center;
}
.combo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.combo-image { width: 100%; height: 90px; border-radius: var(--radius-sm); background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 36px; overflow: hidden; margin-bottom: 10px; }
.combo-image img { width: 100%; height: 100%; object-fit: cover; }
.combo-name { font-family: var(--font-heading); font-size: 15px; line-height: 1.2; margin-bottom: 4px; }
.combo-meta { font-size: 11px; color: var(--text-muted); line-height: 1.3; margin-bottom: 6px; }
.combo-price { font-weight: 700; color: var(--primary); font-size: 15px; }

/* Menu Section */
.menu-section { max-width: 1200px; margin: 0 auto; padding: 20px 20px 60px; }
.section-header { text-align: center; margin-bottom: 28px; }
.section-title { font-family: var(--font-heading); font-size: 32px; color: var(--text); text-transform: uppercase; }
.section-sub { color: var(--text-muted); font-size: 15px; margin-top: 4px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* Menu Card */
.menu-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform 0.25s, box-shadow 0.25s; display: flex; flex-direction: column; }
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.menu-card-image { position: relative; height: 180px; background: var(--surface-2); overflow: hidden; }
.menu-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.menu-card:hover .menu-card-image img { transform: scale(1.06); }
.menu-card-badge { position: absolute; top: 12px; left: 12px; background: var(--primary); color: var(--white); font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.5px; }
.menu-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.menu-card-title { font-family: var(--font-heading); font-size: 20px; color: var(--text); margin-bottom: 4px; line-height: 1.2; }
.menu-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; margin-bottom: 12px; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-card-footer { display: flex; align-items: center; justify-content: space-between; }
.menu-card-price { font-size: 18px; font-weight: 700; color: var(--primary); }
.menu-card-btn { background: var(--primary); color: var(--white); border: none; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; transition: background 0.2s; }
.menu-card-btn:hover { background: var(--primary-dark); }

.see-all-row {
  grid-column: 1 / -1;
  text-align: center;
  padding: 18px 12px;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px dashed var(--surface-2);
  border-radius: 12px;
  margin-top: 4px;
  transition: all 0.2s;
}
.see-all-row:hover { background: var(--surface-2); border-color: var(--primary); }

/* Promo Banner */
.promo-banner { background: linear-gradient(90deg, var(--gold-dark), var(--gold)); padding: 12px 20px; text-align: center; }
.promo-inner { display: inline-flex; align-items: center; gap: 8px; }
.promo-icon { font-size: 18px; }
.promo-text { font-weight: 700; color: var(--dark); font-size: 14px; }

/* Cart Drawer */
.cart-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.cart-drawer.open { visibility: visible; }
.cart-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); opacity: 0; transition: opacity 0.3s; }
.cart-drawer.open .cart-overlay { opacity: 1; }
.cart-panel { position: absolute; right: 0; top: 0; bottom: 0; width: 100%; max-width: 420px; background: var(--white); transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); display: flex; flex-direction: column; }
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-header { padding: 20px 24px; border-bottom: 1px solid var(--surface-2); display: flex; align-items: center; justify-content: space-between; }
.cart-header h2 { font-family: var(--font-heading); font-size: 22px; }
.cart-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.cart-close:hover { background: var(--surface-2); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--text-muted); }
.cart-empty-icon { font-size: 56px; opacity: 0.5; }
.cart-footer { padding: 20px 24px; border-top: 2px solid var(--surface-2); }
.cart-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--text-secondary); }
.cart-row.total { font-size: 18px; font-weight: 700; color: var(--text); padding-top: 10px; border-top: 1px solid var(--surface-2); margin-top: 4px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--surface-2); }
.cart-item-img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); flex-shrink: 0; }
.cart-item-img-fallback { width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--surface-2); flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.cart-item-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; word-break: break-word; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--surface-2); background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all 0.2s; }
.qty-btn:hover { background: var(--surface-2); }
.cart-item-price { font-weight: 700; color: var(--primary); font-size: 15px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-family: var(--font-body); font-weight: 600; font-size: 14px; cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-secondary:hover { background: #e4e4e4; }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-sm); }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.btn-link { background: transparent; color: var(--primary); padding: 0; font-weight: 600; }

/* Checkout */
.checkout-hero { background: var(--dark); color: var(--white); text-align: center; padding: 48px 20px 32px; }
.checkout-hero-title { font-family: var(--font-heading); font-size: 36px; text-transform: uppercase; }
.checkout-hero-sub { color: rgba(255,255,255,0.6); margin-top: 4px; }
.checkout-layout { max-width: 1100px; margin: 0 auto; padding: 32px 20px; display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .checkout-layout { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.card-title { font-family: var(--font-heading); font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.card-title i { color: var(--primary); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--surface-2); border-radius: var(--radius-sm); font-size: 15px; font-family: var(--font-body); transition: border-color 0.2s; background: var(--white); }
.input:focus { outline: none; border-color: var(--primary); }
.input-lg { padding: 14px 18px; font-size: 16px; }
textarea.input { resize: vertical; min-height: 80px; line-height: 1.4; }
.toggle-group { display: flex; gap: 8px; }
.toggle-btn { flex: 1; padding: 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--surface-2); background: var(--white); cursor: pointer; font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: all 0.2s; }
.toggle-btn i { color: var(--text-muted); }
.toggle-active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.toggle-active i { color: var(--white); }
.address-block { margin-top: 16px; }
.gps-status { font-size: 12px; color: var(--text-muted); margin-top: 6px; min-height: 18px; }
.promo-row { display: flex; gap: 8px; }
.promo-message { font-size: 13px; margin-top: 6px; min-height: 18px; }

/* Summary sticky */
.summary-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.sticky { position: sticky; top: 84px; }
.summary-title { font-family: var(--font-heading); font-size: 20px; margin-bottom: 16px; }
.summary-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.summary-item { display: flex; justify-content: space-between; font-size: 14px; }
.summary-item-name { color: var(--text-secondary); flex: 1; padding-right: 12px; }
.summary-item-price { font-weight: 600; }
.summary-divider { height: 1px; background: var(--surface-2); margin: 10px 0; }
.summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; color: var(--text-secondary); }
.summary-row.total { font-size: 20px; font-weight: 700; color: var(--text); font-family: var(--font-heading); }
.summary-row.promo { color: var(--primary); }
.secure-note { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 10px; }
.secure-note i { margin-right: 4px; }

/* Confirmation */
.confirm-center { max-width: 520px; margin: 80px auto; text-align: center; padding: 0 20px; }
.confirm-icon { font-size: 72px; margin-bottom: 16px; }
.confirm-title { font-family: var(--font-heading); font-size: 36px; margin-bottom: 8px; }
.confirm-id { font-size: 16px; color: var(--text-secondary); margin-bottom: 12px; }
.confirm-msg { color: var(--text-muted); margin-bottom: 28px; line-height: 1.5; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.confirm-simulate { margin-top: 28px; padding-top: 24px; border-top: 1px dashed rgba(0,0,0,0.12); }
.confirm-simulate .btn-secondary { background: #f3f4f6; color: #111827; border: 1px solid #d1d5db; }
.confirm-simulate .btn-secondary:hover { background: #e5e7eb; }
.confirm-simulate .btn-secondary.paid { background: #dcfce7; color: #166534; border-color: #86efac; }
.confirm-simulate .simulate-note { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* Track */
.track-hero { background: var(--dark); color: var(--white); text-align: center; padding: 48px 20px 32px; }
.track-title { font-family: var(--font-heading); font-size: 36px; text-transform: uppercase; }
.track-sub { color: rgba(255,255,255,0.6); margin-top: 4px; }
.track-card { max-width: 640px; margin: 32px auto; padding: 0 20px; }
.track-search { display: flex; gap: 10px; margin-bottom: 24px; }
.track-search .input { flex: 1; }
.track-result { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.status-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.status-badge { background: var(--primary); color: var(--white); padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.status-time { font-size: 13px; color: var(--text-muted); }
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--surface-2); }
.timeline-step { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; position: relative; }
.timeline-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; z-index: 1; }
.timeline-step.active .timeline-dot { background: var(--primary); color: var(--white); }
.timeline-step.done .timeline-dot { background: #22c55e; color: var(--white); }
.timeline-label { font-weight: 600; font-size: 15px; padding-top: 5px; }
.timeline-step.active .timeline-label { color: var(--primary); }
.timeline-step.done .timeline-label { color: var(--text-secondary); text-decoration: line-through; }
.driver-info { display: flex; align-items: center; gap: 14px; background: var(--surface); padding: 16px; border-radius: var(--radius-sm); margin-top: 16px; }
.driver-avatar { font-size: 32px; }
.driver-label { font-size: 13px; color: var(--text-muted); }
.driver-dist { font-weight: 700; color: var(--text); font-size: 16px; }

/* Modal / Customize */
.modal { position: fixed; inset: 0; z-index: 600; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; }
.modal.active { visibility: visible; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.3s; }
.modal.active .modal-overlay { opacity: 1; }
.modal-panel { position: relative; background: var(--white); width: 100%; max-width: 620px; max-height: 90vh; border-radius: var(--radius) var(--radius) 0 0; transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.16,1,0.3,1); overflow-y: auto; padding: 28px 24px 32px; }
.modal.active .modal-panel { transform: translateY(0); }
#customize-modal-title { position: sticky; top: -28px; background: var(--white); padding: 14px 0; margin-top: -14px; margin-bottom: 12px; z-index: 2; font-family: var(--font-heading); font-size: 26px; }
.modal-panel .customize-title { font-family: var(--font-heading); font-size: 26px; margin-bottom: 4px; }
.modal-close { position: sticky; top: 0; float: right; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--surface-2); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 3; }
.modal-close:hover { background: #e4e4e4; }
.customize-image { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 16px; background: var(--surface-2); }
.customize-title { font-family: var(--font-heading); font-size: 26px; margin-bottom: 4px; }
.customize-price { font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.customize-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; line-height: 1.5; }
.option-group { margin-bottom: 20px; }
.option-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 10px; }
.option-chip { display: inline-block; padding: 8px 14px; border-radius: 100px; border: 1.5px solid var(--surface-2); background: var(--white); margin: 0 6px 8px 0; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.option-chip:hover { border-color: var(--primary); }
.option-chip.selected { background: var(--primary); color: var(--white); border-color: var(--primary); }
.addon-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--surface-2); }
.addon-row:last-child { border-bottom: none; }
.addon-info { display: flex; align-items: center; gap: 8px; position: relative; cursor: pointer; }
.addon-check { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.addon-checkmark { width: 20px; height: 20px; border: 2px solid var(--surface-2); border-radius: 5px; background: var(--white); display: flex; align-items: center; justify-content: center; transition: all 0.2s; flex-shrink: 0; }
.addon-check:checked + .addon-checkmark { background: var(--primary); border-color: var(--primary); }
.addon-check:checked + .addon-checkmark::after { content: '✓'; color: var(--white); font-size: 13px; font-weight: 700; }
.addon-name { font-size: 14px; }
.addon-price { font-size: 14px; color: var(--text-muted); }
.quantity-row { display: flex; align-items: center; gap: 16px; margin: 20px 0; }
.qty-big { display: flex; align-items: center; gap: 12px; }
.qty-big button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--surface-2); background: var(--white); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.qty-big button:hover { background: var(--surface-2); }
.qty-big span { font-size: 20px; font-weight: 700; min-width: 24px; text-align: center; }
.instructions-area { width: 100%; padding: 12px; border: 1.5px solid var(--surface-2); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 14px; min-height: 80px; resize: vertical; }
.instructions-area:focus { outline: none; border-color: var(--primary); }
.add-btn { width: 100%; padding: 14px; background: var(--primary); color: var(--white); border: none; border-radius: var(--radius-sm); font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.2s; margin-top: 8px; }
.add-btn:hover { background: var(--primary-dark); }
.muted { color: var(--text-muted); font-size: 13px; }
.empty-state { color: var(--text-muted); font-size: 14px; text-align: center; padding: 20px; }

/* Modal on desktop: centered */
@media (min-width: 641px) {
  .modal { align-items: center; }
  .modal-panel { border-radius: var(--radius); transform: translateY(20px) scale(0.97); }
  .modal.active .modal-panel { transform: translateY(0) scale(1); }
}

/* Clover push safety report */
.clover-report-section { margin-top: 16px; }
.clover-report-section h4 { font-size: 14px; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.clover-report-warning { background: #fff7ed; border-left: 4px solid var(--primary); color: #7c2d12; padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 10px; font-size: 14px; line-height: 1.4; }
.clover-report-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--surface-2); font-size: 14px; }
.clover-report-row:last-child { border-bottom: none; }

.payment-layout { max-width: 1100px; margin: 0 auto; padding: 32px 20px; display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .payment-layout { grid-template-columns: 1fr; } }
.clover-input { border: 1.5px solid var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; background: var(--white); transition: border-color 0.2s; }
.clover-input.clover-focus { border-color: var(--primary); }
#payment-error { color: var(--primary); }
#payment-error:empty { min-height: 0; }
#payment-error:not(:empty) { min-height: 18px; }
.pay-normal, .pay-spinner { display: inline-flex; align-items: center; gap: 8px; }
#pay-now-btn .pay-normal.hidden, #pay-now-btn .pay-spinner.hidden { display: none !important; }

/* Footer */
.footer { background: var(--darker); color: rgba(255,255,255,0.5); padding: 40px 20px; text-align: center; margin-top: auto; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.footer-logo { font-size: 24px; }
.footer-name { font-family: var(--font-heading); font-size: 18px; color: var(--white); }
.footer-address { font-size: 13px; margin-bottom: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

/* Toast */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--dark); color: var(--white); padding: 12px 24px; border-radius: 100px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 500; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* Utility */
.hidden { display: none !important; }
.text-muted { color: var(--text-muted); }
.accentGreen { color: #22c55e; }

/* App layout */
#app { display: flex; flex-direction: column; min-height: 100vh; }
#main { flex: 1; }
.screen { display: none; }
.screen.active { display: block; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.25); }

.owner-login-btn { margin-top: 12px; background: transparent; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.2); font-size: 12px; padding: 6px 12px; }
.owner-login-btn:hover { color: var(--white); border-color: var(--white); }

/* Toggle switch */
.toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: relative; width: 44px; height: 24px; background: var(--surface-2); border-radius: 999px; transition: background 0.2s; }
.toggle-slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: var(--white); border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.toggle input:checked + .toggle-slider { background: var(--primary); }
.toggle input:checked + .toggle-slider::after { transform: translateX(20px); }

/* Owner Shell */
.owner-shell { position: fixed; inset: 0; z-index: 400; display: flex; background: var(--surface); }
.owner-mobile-header { display: none; }
.owner-side { width: 240px; background: var(--dark); color: var(--white); display: flex; flex-direction: column; padding: 24px 16px; flex-shrink: 0; }
.owner-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.owner-brand-inline { display: flex; align-items: center; gap: 10px; }
.owner-brand-logo { font-size: 32px; }
.owner-brand-name { font-family: var(--font-heading); font-size: 18px; }
.owner-build { font-size: 11px; color: var(--text-muted); }
.owner-nav { display: flex; flex-direction: column; gap: 8px; }
.owner-nav button { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--radius-sm); border: none; background: transparent; color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.owner-nav button:hover, .owner-nav button.active { background: var(--primary); color: var(--white); }
.owner-side-backdrop { display: none; }
.owner-main { flex: 1; padding: 24px 32px; overflow-y: auto; min-width: 0; }
.owner-view { display: none; }
.owner-view.active { display: block; }
.owner-view-title { font-family: var(--font-heading); font-size: 26px; margin-bottom: 20px; text-transform: uppercase; }
.owner-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }

/* Board */
.owner-board { display: grid; grid-template-columns: repeat(4, minmax(270px, 1fr)); gap: 16px; min-height: 400px; }
.board-col { background: rgba(0,0,0,0.03); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; min-width: 0; }
.board-col-title { font-family: var(--font-heading); font-size: 14px; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.board-col-count { background: var(--primary); color: var(--white); font-size: 11px; min-width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.board-col-body { display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; }
.board-empty { color: var(--text-muted); font-size: 13px; text-align: center; padding: 20px; }
.board-order { background: var(--white); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); border: 1px solid var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.board-order-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.board-order-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; }
.board-order-time { font-size: 11px; color: var(--text-muted); }
.board-order-name { font-weight: 700; font-size: 15px; }
.board-order-phone { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.board-order-phone a { text-decoration: none; font-size: 16px; }
.phone-digits { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.board-order-section { background: var(--surface); border-radius: var(--radius-sm); padding: 10px; }
.board-section-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px; }
.board-order-items { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }
.board-item { margin-bottom: 8px; }
.board-item:last-child { margin-bottom: 0; }
.board-item-main { font-weight: 600; color: var(--text); }
.board-item-qty { color: var(--primary); margin-right: 4px; }
.board-item-mod { padding-left: 12px; color: var(--text-muted); font-size: 12px; }
.board-item-combo { padding-left: 12px; color: var(--text-secondary); font-size: 12px; }
.board-item-instr { padding-left: 12px; color: var(--text-muted); font-style: italic; font-size: 12px; }
.board-order-address { font-size: 12px; color: var(--text-secondary); word-break: break-word; }
.board-order-notes { font-size: 12px; color: var(--text-secondary); font-style: italic; }
.board-order-total { font-size: 16px; font-weight: 700; color: var(--primary); margin-top: 2px; }
.board-order-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-move { flex: 1; min-width: 70px; background: var(--primary); color: var(--white); border: none; border-radius: var(--radius-sm); padding: 8px 10px; font-weight: 700; font-size: 12px; cursor: pointer; transition: background 0.2s; }
.btn-move:hover { background: var(--primary-dark); }
.btn-cancel { background: #fee2e2; color: #991b1b; border: none; border-radius: var(--radius-sm); padding: 8px 12px; font-weight: 700; font-size: 12px; cursor: pointer; transition: background 0.2s; }
.btn-cancel:hover { background: #fecaca; }
.map-btn { background: var(--surface-2); color: var(--text); border: none; border-radius: var(--radius-sm); padding: 8px 10px; font-weight: 700; font-size: 12px; text-decoration: none; }
.map-btn:hover { background: #e4e4e4; }

/* Menu table */
.owner-menu-table { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.owner-menu-row { display: grid; grid-template-columns: 60px 1fr 120px 100px 90px 140px; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--surface-2); }
.owner-menu-row.h { background: var(--dark); color: var(--white); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 18px; }
.owner-menu-row.h.combos { grid-template-columns: 60px 1fr 1fr 120px 90px 120px; }
.owner-menu-row.h.promos { grid-template-columns: 120px 1fr 100px 90px 100px; }
.owner-menu-row:last-child { border-bottom: none; }
.owner-menu-row.combos { grid-template-columns: 60px 1fr 1fr 120px 90px 120px; }
.owner-menu-row.promos { grid-template-columns: 120px 1fr 100px 90px 100px; }
.menu-card-image-uploader { position: relative; width: 40px; height: 40px; }
.menu-card-image-uploader img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.menu-card-image-uploader .upload-btn {
  position: absolute; inset: 0; background: rgba(0,0,0,0.35); color: #fff; border: none; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 16px; opacity: 0; cursor: pointer; transition: opacity 0.2s;
}
.menu-card-image-uploader:hover .upload-btn { opacity: 1; }
.empty-row { grid-template-columns: 1fr !important; text-align: center; color: var(--text-muted); padding: 24px; }
.edit-btn { background: var(--surface-2); color: var(--text); border: none; border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.edit-btn:hover { background: #e4e4e4; }
.delete-btn { background: #fee2e2; color: #991b1b; border: none; border-radius: 6px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
.delete-btn:hover { background: #fecaca; }

/* Settings */
.owner-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(300px, 1fr)); gap: 20px; }
.owner-setting-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.owner-setting-card h3 { font-family: var(--font-heading); font-size: 18px; margin-bottom: 16px; }
.hours-grid { display: grid; grid-template-columns: 110px 1fr 1fr; gap: 10px; align-items: center; }
.hours-grid div { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.hours-grid label { font-weight: 600; font-size: 13px; }
.hours-grid input[type="time"] { width: 100%; padding: 10px; border: 1.5px solid var(--surface-2); border-radius: var(--radius-sm); font-family: inherit; }
.hours-grid input[type="time"]:focus { outline: none; border-color: var(--primary); }
.owner-save-bar { display: flex; justify-content: flex-end; }

/* Combo picker */
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.picker-chip { border: 1.5px solid var(--surface-2); border-radius: var(--radius-sm); padding: 10px; text-align: center; cursor: pointer; transition: all 0.2s; background: var(--white); }
.picker-chip:hover { border-color: var(--primary); }
.picker-chip.selected { background: var(--primary); color: var(--white); border-color: var(--primary); }
.picker-chip.selected * { color: var(--white); }
.combo-items-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.combo-chip { background: var(--surface-2); padding: 4px 8px; border-radius: 100px; font-size: 11px; }

/* Rewards */
.owner-rewards-list { display: flex; flex-direction: column; gap: 8px; }
.owner-reward-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; background: var(--surface); border-radius: var(--radius-sm); }
.owner-reward-phone { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; }
.owner-reward-stats { font-size: 13px; color: var(--text-secondary); }
.owner-reward-actions { display: flex; gap: 6px; }

/* Modal small */
.modal-sm { max-width: 420px; }

/* Desktop board horizontal scroll if too narrow */
@media (max-width: 1200px) {
  .owner-board { grid-template-columns: repeat(4, minmax(260px, 1fr)); overflow-x: auto; }
}

/* Tablet + mobile owner shell */
@media (max-width: 860px) {
  .owner-shell { flex-direction: column; }
  .owner-mobile-header {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--dark); color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .owner-menu-toggle { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; width: 36px; height: 36px; font-size: 20px; cursor: pointer; }
  .owner-side {
    position: fixed; top: 0; left: 0; bottom: 0; width: 240px; transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1); z-index: 410;
  }
  .owner-side.open { transform: translateX(0); }
  .owner-side-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 405; display: none;
  }
  .owner-side.open + .owner-side-backdrop { display: block; }
  .owner-nav { flex: 1; }
  .owner-main { padding: 16px; flex: 1; overflow-y: auto; }
  .owner-board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; }
  .board-col { width: 300px; flex: 0 0 300px; }
  .owner-menu-row,
  .owner-menu-row.combos,
  .owner-menu-row.promos { grid-template-columns: 50px 1fr auto; }
  .owner-menu-row.h,
  .owner-menu-row.h.combos,
  .owner-menu-row.h.promos { display: none; }
  .owner-menu-row > div:nth-child(3),
  .owner-menu-row > div:nth-child(4),
  .owner-menu-row > div:nth-child(5) { grid-row: 2; }
  .owner-menu-row.combos > div:nth-child(3),
  .owner-menu-row.combos > div:nth-child(4) { grid-row: 2; }
  .owner-menu-row.promos > div:nth-child(3),
  .owner-menu-row.promos > div:nth-child(4) { grid-row: 2; }
  .owner-menu-row .actions { grid-row: 1; grid-column: 3; }
  .owner-settings-grid { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: 80px 1fr 1fr; }
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .hero-title { font-size: 36px; }
  .nav-links { gap: 12px; }
  .nav-link { font-size: 13px; }
  .logo-text { font-size: 18px; }
  .menu-grid { grid-template-columns: 1fr; }
  .track-search { flex-direction: column; }
  .checkout-layout { padding: 20px 14px; }
  .cart-panel { max-width: 100%; }
  .hero { min-height: 380px; }
  .owner-view-title { font-size: 22px; }
  .board-order-actions .btn-move, .board-order-actions .btn-cancel, .board-order-actions .map-btn { padding: 10px 8px; }
}
