﻿/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   CSS VARIABLES
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
:root {
  /* â”€â”€ Colors â”€â”€ */
  --void: #050507;
  --deep: #0d0d12;
  --surface: #13131a;
  --card: #1a1a24;
  --border: rgba(255,255,255,0.07);
  --amber: #f5a623;
  --amber-glow: rgba(245,166,35,0.15);
  --restaurant-glow-15: rgba(245,166,35,0.15);
  --restaurant-glow-25: rgba(245,166,35,0.25);
  --restaurant-glow-70: rgba(245,166,35,0.70);
  --gold: #d4a843;
  --emerald: #2dd4a0;
  --rose: #f06b8a;
  --text: #e8e8f0;
  --muted: #7a7a9a;
  --dim: #4a4a6a;

  /* â”€â”€ Fonts â”€â”€ */
  --font-ar: 'Tajawal', sans-serif;
  --font-en: 'Playfair Display', serif;
  --font-mono: 'Space Mono', monospace;

  /* â”€â”€ Border Radius â”€â”€ */
  --r-sm:   6px;
  --r:      16px;
  --r-lg:   24px;
  --r-full: 9999px;

  /* â”€â”€ Shadows â”€â”€ */
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.55);
  --shadow:    0 24px 60px rgba(0,0,0,0.6);

  /* â”€â”€ Spacing â”€â”€ */
  --sp-1:  4px;
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* â”€â”€ Typography â”€â”€ */
  --text-xs:   12px;
  --text-sm:   13px;
  --text-base: 15px;
  --text-md:   16px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  36px;
  --text-4xl:  48px;

  /* â”€â”€ Line Heights (Arabic-optimized) â”€â”€ */
  --leading-tight:  1.4;
  --leading-normal: 1.7;
  --leading-loose:  2.0;

  /* â”€â”€ Touch Target â”€â”€ */
  --touch: 44px;
}

/* Reset WordPress interference */
html, body { margin: 0 !important; padding: 0 !important; }
.wp-site-blocks, #page, #content, #primary, #main { all: unset; }
img { max-width: none; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-ar);
  line-height: var(--leading-normal);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   LANDING
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.landing-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(245,166,35,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(45,212,160,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 30% 30% at 20% 70%, rgba(240,107,138,0.06) 0%, transparent 50%);
}

.landing-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.landing-content {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 2rem;
  max-width: 700px;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.75rem;
  color: var(--amber);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
}

.landing-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.landing-logo {
  font-family: var(--font-en);
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--amber) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -2px;
}

.landing-tagline {
  font-size: clamp(1rem, 3vw, 1.3rem);
  color: var(--muted);
  margin-bottom: 3rem;
  line-height: 1.8;
}
.landing-tagline span { color: var(--amber); }

.landing-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-sub-note {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: -0.25rem;
  font-family: var(--font-ar);
  letter-spacing: 0.3px;
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 5rem;
  max-width: 800px;
}
@media(min-width:769px) and (max-width:1024px) { .landing-features { grid-template-columns: repeat(2, 1fr); max-width: 100%; } }
@media(max-width:768px) { .landing-features { grid-template-columns: 1fr; max-width: 100%; } }

.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  text-align: right;
  transition: all 0.3s ease;
}
.feat-card:hover {
  border-color: rgba(245,166,35,0.3);
  transform: translateY(-4px);
  background: var(--surface);
}
.feat-icon { font-size: 2rem; margin-bottom: 0.75rem; display: block; }
.feat-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feat-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.7; }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   BUTTONS
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.btn-primary {
  background: var(--amber);
  color: var(--void);
  border: none;
  padding: 14px 32px;
  border-radius: var(--r);
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px rgba(245,166,35,0.5);
}
.btn-primary:hover::before { opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 14px 32px;
  border-radius: var(--r);
  font-family: var(--font-ar);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   CUSTOMER MENU PAGE
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
#menu-page {
  --restaurant-primary: #f5a623;
  --amber: var(--restaurant-primary);
  --restaurant-secondary: #2dd4a0;
  --restaurant-dark: #0a0a0f;
  min-height: 100vh;
  background: var(--restaurant-dark);
  position: relative;
}
/* Lightboxes inherit the live restaurant color */
#productLightbox, #cartSheet, #promoSheet {
  --amber: var(--restaurant-primary);
}

.menu-header {
  position: relative;
  background: #080808;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 1rem 2rem;
  overflow: hidden;
}
.menu-header::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(186,117,23,0.08) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.menu-header-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  direction: rtl;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  z-index: 2;
}

.lang-toggle {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 6px 4px;
  display: flex;
  gap: 2px;
  cursor: pointer;
}

.lang-btn {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  cursor: pointer;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.5);
  transition: all 0.2s;
}
.lang-btn.active {
  background: var(--restaurant-primary);
  color: var(--void);
}

.menu-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  z-index: 1;
  padding-top: 0.5rem;
}

.menu-logo {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--restaurant-primary, #e76f51), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(239,159,39,0.25);
  box-shadow: 0 0 0 5px rgba(186,117,23,0.08);
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.menu-restaurant-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

.menu-tagline {
  font-size: 0.78rem;
  color: #BA7517;
  text-align: center;
  letter-spacing: 0.3px;
}
.menu-tagline:empty { display: none; }

.menu-body { padding: 2rem 1rem 6rem; }

.menu-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}

.wa-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(37,211,102,0.08);
  color: #25D366;
  border: 1px solid rgba(37,211,102,0.3);
  padding: 10px 16px;
  border-radius: var(--r);
  font-family: var(--font-ar);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.wa-btn:hover {
  background: rgba(37,211,102,0.14);
  border-color: rgba(37,211,102,0.55);
}
.wa-icon { font-size: 1.05rem; }

.shuffle-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 10px 12px;
  border-radius: var(--r);
  font-family: var(--font-ar);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.shuffle-btn.active {
  background: var(--amber-glow);
  color: var(--amber);
  border-color: var(--restaurant-glow-25);
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 700;
}
.stars { color: var(--amber); letter-spacing: -2px; font-size: 0.8rem; }

.cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid rgba(245,166,35,0.35);
  cursor: pointer;
  transition: all 0.25s ease;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.cat-tab:hover { background: rgba(245,166,35,0.08); border-color: rgba(245,166,35,0.6); }
.cat-tab.active { background: #F5A623; border-color: #F5A623; color: #0d0d12; }
.cat-icon { font-size: 1rem; line-height: 1; }
.cat-name { font-size: 0.82rem; font-weight: 700; color: inherit; white-space: nowrap; }
.cat-count { display: none; }

.cat-section { display: none; }
.cat-section.active { display: block; }

.cat-section-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.product-grid { display: flex; flex-direction: column; gap: 1rem; }

.product-card {
  display: flex;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}
.product-card:hover { border-color: rgba(245,166,35,0.3); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.product-card:active { transform: scale(0.98); }

.product-img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface);
  font-size: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-info { flex: 1; padding: 1rem 1rem 1rem 0; display: flex; flex-direction: column; }
.product-name { font-size: 1rem; font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.product-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 700; color: var(--restaurant-primary); }

.add-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--restaurant-primary);
  border: none;
  color: var(--void);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 900;
  line-height: 1;
}
.add-btn:hover { transform: scale(1.15); box-shadow: 0 4px 16px rgba(245,166,35,0.5); }

.cart-ctrl-wrap { display: flex; align-items: center; }
.qty-control { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--restaurant-primary); border-radius: 20px; padding: 3px 8px; }
.qty-btn { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--restaurant-primary); color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0; transition: transform 0.15s; position: relative; }
.qty-btn:hover { transform: scale(1.15); }
.qty-btn::after { content: ''; position: absolute; inset: -6px; }
.qty-num { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; color: var(--text); min-width: 18px; text-align: center; }

.product-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--rose);
  color: white;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.item-unavailable { opacity: 0.5; pointer-events: none; }
.item-unavailable:hover { transform: none !important; box-shadow: none !important; border-color: var(--border) !important; }
.item-unavailable .product-img { filter: grayscale(1); }

.unavail-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  pointer-events: none;
}

.order-bar {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(13,13,18,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 1rem;
  display: none;
  z-index: 100;
}

.order-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--restaurant-primary);
  color: var(--void);
  padding: 14px 20px;
  border-radius: var(--r);
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   RESTAURANT LOGIN
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.login-box {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow);
}

.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo .logo-mark {
  font-family: var(--font-en);
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.login-logo .logo-sub { font-size: 0.8rem; color: var(--muted); font-family: var(--font-mono); letter-spacing: 2px; }
.login-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.login-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 2rem; }
.login-hint { text-align: center; font-size: 0.75rem; color: var(--dim); margin-top: 1rem; font-family: var(--font-mono); }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   FORMS
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.5px; }
.form-input {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 0.95rem;
  transition: all 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,166,35,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.emoji-picker-grid { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.emoji-pick-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px; height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
  padding: 0;
  line-height: 1;
}
.emoji-pick-btn:hover { background: rgba(245,166,35,0.12); border-color: var(--amber); transform: scale(1.15); }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   DASHBOARD LAYOUT
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.dash-sidebar {
  width: 240px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 1.5rem 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

@media(max-width:768px) {
  .dash-sidebar { position: fixed; right: -240px; top: 0; bottom: 0; z-index: 200; transition: right 0.3s ease; }
  .dash-sidebar.open { right: 0; }
}

.sidebar-logo { padding: 0 1.5rem 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; background: linear-gradient(180deg, rgba(245,166,35,0.04) 0%, transparent 100%); }
.sidebar-logo .logo-text {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sidebar-logo .logo-role {
  font-size: 0.7rem;
  color: var(--amber);
  font-family: var(--font-mono);
  letter-spacing: 1px;
  background: var(--amber-glow);
  padding: 2px 8px;
  border-radius: 100px;
  display: inline-block;
  margin-top: 4px;
}

.sidebar-nav { flex: 1; }
.nav-section-label { font-size: 0.65rem; font-weight: 700; color: var(--dim); letter-spacing: 2px; text-transform: uppercase; padding: 0.5rem 1.5rem; margin-top: 0.5rem; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 1.5rem;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  border-right: 3px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.nav-item.active { background: var(--amber-glow); color: var(--amber); border-right-color: var(--amber); }
.nav-icon { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-footer { padding: 1.5rem; border-top: 1px solid var(--border); }
.restaurant-badge { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--card); border-radius: var(--r); border: 1px solid var(--border); }
.restaurant-badge .r-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.r-name { font-size: 0.85rem; font-weight: 700; }
.r-plan { font-size: 0.7rem; color: var(--emerald); font-family: var(--font-mono); }

.dash-main { flex: 1; padding: 2rem; overflow-x: hidden; min-width: 0; }
@media(max-width:768px) { .dash-main { padding: 1rem; } }

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--deep);
  gap: 12px;
}
.dash-page-title { font-size: 1.6rem; font-weight: 800; }
.dash-page-sub { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

.mobile-menu-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
  font-size: 1.2rem;
}
@media(max-width:768px) { .mobile-menu-btn { display: flex; } }

/* â”€â”€ Dashboard mobile topbar â”€â”€ */
@media(max-width:768px) {
  .dash-page-title { font-size: 1.2rem; }
  .dash-topbar > div:first-child { min-width: 0; overflow: hidden; }
}

/* â”€â”€ Open/Close status dropdown â”€â”€ */
.rest-status-select {
  border-radius: var(--r);
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
}
.rest-status-open {
  background: rgba(45,212,160,0.12);
  color: var(--emerald);
  border: 1px solid rgba(45,212,160,0.3);
}
.rest-status-closed {
  background: rgba(240,107,138,0.08);
  color: var(--rose);
  border: 1px solid rgba(240,107,138,0.3);
}
.rest-status-open option, .rest-status-closed option {
  background: var(--card);
  color: var(--text);
}
@media(max-width:768px) { .rest-status-select { font-size: 0.75rem; padding: 8px 10px; } }

/* â”€â”€ Category drag-and-drop â”€â”€ */
.drag-handle {
  color: var(--dim);
  font-size: 1.1rem;
  cursor: grab;
  padding: 0 4px;
  user-select: none;
  flex-shrink: 0;
}
.drag-handle:active { cursor: grabbing; }
.table-row[draggable="true"] { cursor: default; }
.table-row.row-dragging { opacity: 0.45; background: rgba(245,166,35,0.06); }
.table-row.row-drag-over { border-top: 2px solid var(--amber); background: rgba(245,166,35,0.04); }
.cat-hidden-row { opacity: 0.6; }
#menu-page.delivery-mode .cat-delivery-excluded { display: none !important; }
.action-btn.toggle-eye { color: var(--muted); }
.action-btn.toggle-eye:hover { background: rgba(255,255,255,0.06); color: var(--text); }

/* â”€â”€ Social links bar (menu page) â”€â”€ */
.social-links-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 1.25rem 1rem 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.social-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: none;
  border-radius: 100px;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-ar);
  transition: opacity 0.18s, transform 0.15s;
  background: var(--surface);
}
.social-link-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.social-link-btn svg { flex-shrink: 0; }
.social-link-btn.social-instagram { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.social-link-btn.social-tiktok    { background: #010101; }
.social-link-btn.social-snapchat  { background: #FFFC00; color: #000; }
.social-link-btn.social-twitter   { background: #000; }
.social-link-btn.social-facebook  { background: #1877F2; }

/* â”€â”€ Featured / Chef's Picks section â”€â”€ */
.featured-section { padding: 1rem 0 0.25rem; }
.featured-title { font-size: 0.95rem; font-weight: 800; padding: 0 1rem; margin-bottom: 0.75rem; }
.featured-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 1rem 0.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.featured-scroll::-webkit-scrollbar { display: none; }
.featured-card {
  flex-shrink: 0;
  width: 140px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.featured-card:hover  { transform: translateY(-2px); border-color: var(--amber); }
.featured-card:active { transform: scale(0.97); }
.featured-card-img {
  position: relative;
  height: 108px;
  background: linear-gradient(135deg,#1a0d00,#0d0600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  overflow: hidden;
}
.featured-card-img img { width: 100%; height: 100%; object-fit: cover; }
.featured-star-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.72rem;
  background: rgba(0,0,0,0.55);
  border-radius: 100px;
  padding: 2px 7px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.featured-card-info { padding: 8px 10px 10px; }
.featured-card-name {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}
.featured-card-price { font-family: var(--font-mono); font-size: 0.8rem; color: var(--amber); font-weight: 700; }

/* â”€â”€ Menu search bar â”€â”€ */
.menu-search-wrap {
  padding: 0.5rem 1rem 0.25rem;
}
.menu-search-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px;
  transition: border-color 0.2s;
}
.menu-search-inner:focus-within { border-color: var(--amber); }
.menu-search-icon { font-size: 0.9rem; flex-shrink: 0; opacity: 0.6; }
.menu-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 0.9rem;
  min-width: 0;
}
.menu-search-input::placeholder { color: var(--dim); }
.menu-search-input::-webkit-search-cancel-button { display: none; }
.menu-search-clear {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 4px;
  line-height: 1;
  flex-shrink: 0;
}
.menu-search-clear:hover { color: var(--text); }

.dash-panel { display: none; }
.dash-panel.active { display: block; animation: fadeIn 0.3s ease; }

/* Period filter tabs */
.stat-period-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 4px;
}
.stat-period-btn {
  flex: 1;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 8px 4px;
  font-size: 0.8rem;
  font-family: var(--font-ar);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.stat-period-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.stat-period-btn.active { background: var(--amber-glow); color: var(--amber); }

.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-bottom: 1.25rem; }
@media(max-width:900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:480px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; } }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--stat-accent, var(--amber));
}
.stat-card:hover { border-color: rgba(245,166,35,0.2); transform: translateY(-2px); }
.stat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
.stat-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.stat-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 0; font-weight: 600; }
.stat-value { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; }
.stat-change { font-size: 0.75rem; color: var(--emerald); margin-top: 4px; }
.stat-meta { font-size: 0.68rem; color: var(--dim); margin-top: 8px; font-family: var(--font-mono); }
.stat-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 0.67rem; font-weight: 700; font-family: var(--font-mono); padding: 2px 8px; border-radius: 100px; margin-top: 6px; }
.stat-chip.up   { background: rgba(45,212,160,0.1);   color: var(--emerald); border: 1px solid rgba(45,212,160,0.2); }
.stat-chip.down { background: rgba(240,107,138,0.1);  color: var(--rose);    border: 1px solid rgba(240,107,138,0.2); }
.stat-chip.flat { background: rgba(255,255,255,0.04); color: var(--dim);     border: 1px solid var(--border); }

/* â”€â”€ Onboarding Card â”€â”€ */
.onboarding-card { background: var(--card); border: 1px solid rgba(245,166,35,0.25); border-radius: var(--r-lg); margin-bottom: 1.25rem; overflow: hidden; }
.onboarding-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; cursor: pointer; user-select: none; transition: background 0.2s; gap: 12px; }
.onboarding-header:hover { background: rgba(255,255,255,0.02); }
.onboarding-progress-bar { width: 80px; height: 5px; background: var(--surface); border-radius: 100px; overflow: hidden; flex-shrink: 0; }
.onboarding-progress-fill { height: 100%; background: linear-gradient(90deg, var(--amber), var(--gold)); border-radius: 100px; transition: width 0.5s ease; }
.onboarding-chevron { font-size: 0.7rem; color: var(--muted); transition: transform 0.25s; }
.onboarding-body { padding: 0 1.25rem 1rem; display: flex; flex-direction: column; gap: 8px; }
.onboarding-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border-radius: var(--r); border: 1px solid var(--border); transition: all 0.2s; }
.onboarding-step.done { opacity: 0.45; }
.step-icon { font-size: 1rem; flex-shrink: 0; width: 20px; text-align: center; }
.step-label { flex: 1; font-size: 0.85rem; font-weight: 600; }
.step-btn { font-size: 0.75rem; padding: 4px 12px; background: rgba(245,166,35,0.12); color: var(--amber); border: 1px solid rgba(245,166,35,0.25); border-radius: 100px; cursor: pointer; font-family: var(--font-ar); font-weight: 700; transition: all 0.2s; white-space: nowrap; }
.step-btn:hover { background: rgba(245,166,35,0.22); }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.section-title { font-size: 1.1rem; font-weight: 800; }

.data-table { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.table-row {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  transition: background 0.2s;
}
.table-row:last-child { border-bottom: none; }
.table-row:hover { background: rgba(255,255,255,0.02); }
.table-row-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; overflow: hidden; }
.table-row-icon img { width: 100%; height: 100%; object-fit: cover; }
.row-main { flex: 1; }
.row-name { font-weight: 700; font-size: 0.95rem; }
.row-sub { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.row-price { font-family: var(--font-mono); font-weight: 700; color: var(--amber); font-size: 0.95rem; }
.row-actions { display: flex; gap: 8px; }
.action-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s;
  position: relative;
}
.action-btn::after { content: ''; position: absolute; inset: -4px; }
.action-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.action-btn.delete:hover { background: rgba(240,107,138,0.1); border-color: rgba(240,107,138,0.3); color: var(--rose); }
.action-btn.edit:hover { background: rgba(245,166,35,0.1); border-color: rgba(245,166,35,0.3); color: var(--amber); }

.qr-panel { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 3rem; max-width: 400px; margin: 0 auto; }
.qr-frame { background: white; padding: 20px; border-radius: var(--r); box-shadow: 0 0 60px rgba(245,166,35,0.2); }
.qr-url { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); text-align: center; word-break: break-all; background: var(--surface); padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border); width: 100%; }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   MODAL
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: scaleIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media(max-width:600px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-box {
    max-width: 100%;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    max-height: 92vh;
    animation: slideUpModal 0.28s cubic-bezier(0.34,1.1,0.64,1);
  }
  @keyframes slideUpModal {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }
}

.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-title { font-size: 1.2rem; font-weight: 800; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--text); }

.image-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-upload-area:hover { border-color: rgba(245,166,35,0.4); background: rgba(245,166,35,0.03); }
.upload-icon { font-size: 2rem; margin-bottom: 8px; }
.upload-text { font-size: 0.8rem; color: var(--muted); }

.cover-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 0.5rem;
  position: relative;
  overflow: hidden;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}
.cover-upload-zone:hover { border-color: rgba(245,166,35,0.4); background: rgba(245,166,35,0.03); }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   ADMIN DASHBOARD
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
/* ── Master Admin Layout ── */
#ma-wrap {
  display: flex;
  min-height: 100vh;
  background: var(--void);
  direction: rtl;
  position: relative;
}

.ma-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; right: 0;
  z-index: 200;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}

.ma-sidebar-logo {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ma-logo-text {
  font-family: var(--font-en);
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text);
}

.ma-logo-text em {
  font-style: normal;
  color: var(--amber);
}

.ma-logo-badge {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  background: rgba(239,68,68,0.12);
  color: var(--rose);
  border: 1px solid rgba(239,68,68,0.22);
  padding: 2px 8px;
  border-radius: 100px;
}

.ma-nav {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ma-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r);
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: right;
  width: 100%;
  transition: background 0.15s, color 0.15s;
  position: relative;
  font-family: var(--font-ar);
}

.ma-nav-item i {
  width: 18px;
  text-align: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.ma-nav-item span:first-of-type { flex: 1; }
.ma-nav-item:hover { background: var(--card); color: var(--text); }
.ma-nav-item.active { background: var(--amber-glow); color: var(--amber); font-weight: 700; }
.ma-nav-disabled { opacity: 0.38; cursor: not-allowed; }
.ma-nav-disabled:hover { background: transparent; color: var(--muted); }

.ma-nav-badge {
  background: var(--rose);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 100px;
  min-width: 18px;
  text-align: center;
}

.ma-nav-badge-amber { background: var(--amber); color: var(--void); }

.ma-nav-soon {
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(107,114,128,0.18);
  color: var(--muted);
  padding: 1px 7px;
  border-radius: 100px;
}

.ma-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

/* Sidebar footer */
.ma-sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ma-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ma-sidebar-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber-glow);
  border: 1px solid rgba(245,166,35,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--amber);
  flex-shrink: 0;
}

.ma-sidebar-user-info { min-width: 0; }

.ma-sidebar-username {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ma-sidebar-role {
  font-size: 0.68rem;
  color: var(--muted);
  font-family: var(--font-en);
}

.ma-logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r);
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.ma-logout-btn:hover { background: rgba(239,68,68,0.09); color: var(--rose); }

/* Mobile overlay */
.ma-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 199;
  backdrop-filter: blur(2px);
}

.ma-overlay.open { display: block; }

/* ── Main ── */
.ma-main {
  flex: 1;
  margin-right: 230px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.ma-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.9rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ma-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--r);
  transition: color 0.15s;
}

.ma-hamburger:hover { color: var(--text); }

.ma-topbar-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  flex: 1;
}

.ma-topbar-actions { display: flex; align-items: center; gap: 8px; }

.ma-btn-export {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r);
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  font-family: var(--font-ar);
}

.ma-btn-export:hover { color: var(--emerald); border-color: var(--emerald); }

.ma-content { padding: 1.5rem; flex: 1; }

/* ── KPI Grid ── */
.ma-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.ma-kpi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
}

.ma-kpi-alert {
  border-color: rgba(245,166,35,0.3);
  background: var(--amber-glow);
}

.ma-kpi-icon { font-size: 1.2rem; margin-bottom: 8px; }

.ma-kpi-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1;
}

.ma-kpi-label { font-size: 0.74rem; color: var(--muted); }

.ma-kpi-action {
  font-size: 0.72rem;
  color: var(--amber);
  cursor: pointer;
  margin-top: 8px;
  display: inline-block;
}

.ma-kpi-action:hover { text-decoration: underline; }

/* ── Generic card ── */
.ma-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
}

/* ── Alert boxes ── */
.ma-alert-box {
  border-radius: var(--r-lg);
  padding: 1rem 1.25rem;
}

.ma-alert-danger {
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.22);
}

.ma-alert-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--rose);
}

.ma-badge-rose {
  background: var(--rose);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 100px;
}

.ma-badge-muted {
  background: var(--muted);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 100px;
}

/* ── Filter bar ── */
.ma-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.ma-filter-search { flex: 1; min-width: 200px; padding: 8px 14px; font-size: 0.85rem; }
.ma-filter-select { padding: 8px 14px; font-size: 0.85rem; min-width: 130px; }

/* ── Plans panel ── */
.ma-plan-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
  font-family: var(--font-en);
}

.ma-plan-price {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.ma-plan-period { font-size: 0.75rem; color: var(--muted); margin-bottom: 1rem; }

.ma-plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.84rem;
}

.ma-plan-features .dim { color: var(--muted); }

.ma-plan-featured {
  background: var(--amber-glow);
  border-color: rgba(245,166,35,0.35);
  position: relative;
}

.ma-plan-popular {
  position: absolute;
  top: -11px;
  right: 1.25rem;
  background: var(--amber);
  color: var(--void);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 100px;
}

/* ── Coming soon ── */
.ma-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  text-align: center;
  gap: 0;
}

.ma-coming-icon {
  font-size: 3rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.ma-coming-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }

.ma-coming-desc {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}

.ma-coming-badge {
  display: inline-block;
  background: var(--amber-glow);
  color: var(--amber);
  border: 1px solid rgba(245,166,35,0.3);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 100px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .ma-sidebar { transform: translateX(100%); }
  .ma-sidebar.open { transform: translateX(0); }
  .ma-main { margin-right: 0; }
  .ma-hamburger { display: block; }
  .ma-btn-export { display: none; }
}

@media (max-width: 600px) {
  .ma-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .ma-content { padding: 1rem; }
  .ma-filter-bar { flex-direction: column; align-items: stretch; }
  .ma-filter-search, .ma-filter-select { min-width: unset; width: 100%; }
}

@media (max-width: 380px) {
  .ma-kpi-grid { grid-template-columns: 1fr; }
}

/* ── Overview activity sections ── */
.ma-activity-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 700px) {
  .ma-activity-row { grid-template-columns: 1fr; }
}

.ma-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.ma-list-item:last-child { border-bottom: none; }

.ma-list-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.ma-list-body { flex: 1; min-width: 0; }

.ma-list-name {
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ma-list-meta {
  font-size: 0.73rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.ma-list-end {
  text-align: left;
  flex-shrink: 0;
}

.ma-list-stat {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--amber);
}

.ma-list-date {
  font-size: 0.7rem;
  color: var(--muted);
  font-family: var(--font-en);
}

.ma-badge-new {
  display: inline-block;
  background: rgba(45,212,160,0.15);
  color: var(--emerald);
  border: 1px solid rgba(45,212,160,0.3);
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.ma-badge-plan {
  display: inline-block;
  background: var(--amber-glow);
  color: var(--amber);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 100px;
  text-transform: uppercase;
}

.ma-badge-emerald {
  background: var(--emerald);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 8px;
  border-radius: 100px;
}

.ma-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  font-weight: 800;
  font-size: 0.9rem;
}

/* ── Restaurants sub-sections ── */
.ma-sub-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.25rem 0.5rem;
  margin-bottom: 1.5rem;
}

.ma-sub-section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 0.9rem;
}

.ma-empty-note {
  text-align: center;
  color: var(--dim);
  font-size: 0.83rem;
  padding: 1.5rem 0;
}

.restaurant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }

.restaurant-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: all 0.3s ease; }
.restaurant-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-2px); box-shadow: var(--shadow); }
.restaurant-card-header { height: 120px; position: relative; background: linear-gradient(135deg, var(--surface), var(--card)); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.restaurant-card-body { padding: 1.25rem; }
.r-card-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.r-card-meta { font-size: 0.75rem; color: var(--muted); margin-bottom: 1rem; display: flex; gap: 8px; flex-wrap: wrap; }
.r-tag { padding: 2px 8px; border-radius: 100px; font-size: 0.7rem; font-weight: 600; }
.r-tag.active-tag { background: rgba(45,212,160,0.1); color: var(--emerald); border: 1px solid rgba(45,212,160,0.2); }
.r-tag.inactive-tag { background: rgba(240,107,138,0.1); color: var(--rose); border: 1px solid rgba(240,107,138,0.2); }
.r-tag.plan-tag { background: rgba(245,166,35,0.1); color: var(--amber); border: 1px solid rgba(245,166,35,0.2); }
.r-card-actions { display: flex; gap: 8px; }
.r-action {
  flex: 1;
  padding: 8px;
  border-radius: var(--r);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-ar);
  transition: all 0.2s;
}
.r-action:hover { color: var(--text); background: var(--card); }
.r-action.danger { color: var(--rose); border-color: rgba(239,68,68,0.3); }
.r-action.danger:hover { background: rgba(239,68,68,0.1); color: var(--rose); }
.r-action-enter { color: var(--amber) !important; border-color: rgba(245,166,35,0.35) !important; }
.r-action-enter:hover { background: rgba(245,166,35,0.1) !important; }

/* ── Financial panel ── */
.fin-chart-wrap { overflow-x: auto; }
.fin-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 140px;
  direction: ltr;
  min-width: 600px;
}
.fin-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
  cursor: default;
}
.fin-bar-fill {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--amber), rgba(245,166,35,0.25));
  min-height: 3px;
  transition: height 0.6s ease;
}
.fin-bar-wrap:hover .fin-bar-fill { filter: brightness(1.35); }
.fin-bar-label {
  font-size: 0.58rem;
  color: var(--muted);
  font-family: var(--font-en);
  white-space: nowrap;
}
.fin-ca-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.fin-ca-table th {
  text-align: right;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.fin-ca-table td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.fin-ca-table tr:last-child td { border-bottom: none; }
.fin-ca-table tr:hover td { background: var(--surface); }

/* ── Admin impersonation return banner ── */
#adminReturnBanner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(245,166,35,0.12);
  border-bottom: 2px solid var(--amber);
  padding: 10px 1.5rem;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--amber);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  backdrop-filter: blur(8px);
}
#adminReturnBanner button {
  background: var(--amber);
  color: var(--void);
  border: none;
  border-radius: var(--r);
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-ar);
  margin-right: auto;
}
#adminReturnBanner button:hover { opacity: 0.85; }
body.has-admin-banner #restaurant-dashboard { padding-top: 44px; }

.ma-fin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 700px) {
  .fin-chart-bars { min-width: 480px; }
  .ma-fin-grid { grid-template-columns: 1fr; }
}

/* Toggle switch */
.toggle-switch { position: relative; width: 44px; height: 24px; cursor: pointer; display: inline-block; }
.toggle-switch input { display: none; }
.toggle-track { position: absolute; inset: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 100px; transition: all 0.3s; }
.toggle-switch input:checked + .toggle-track { background: var(--emerald); border-color: var(--emerald); }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: white; border-radius: 50%; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 1; }
.toggle-switch input:checked ~ .toggle-thumb { left: 23px; }

/* Progress bar */
.progress-bar { height: 4px; background: var(--surface); border-radius: 100px; overflow: hidden; margin-top: 8px; }
.progress-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--amber), var(--gold)); transition: width 1s ease; }

/* Chart */
.chart-section { display: flex; align-items: stretch; gap: 8px; direction: ltr; }
.chart-y-axis { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; width: 28px; padding: 8px 0; flex-shrink: 0; }
.chart-y-label { font-size: 0.55rem; color: var(--dim); font-family: var(--font-mono); line-height: 1; }
.chart-bars-area { flex: 1; min-width: 0; }
.chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 100px; padding: 8px 0; }
.chart-bar { flex: 1; min-width: 0; background: linear-gradient(to top, var(--amber), rgba(245,166,35,0.25)); border-radius: 4px 4px 0 0; min-height: 2px; transition: all 0.5s ease; cursor: pointer; box-shadow: 0 -2px 8px rgba(245,166,35,0.12); position: relative; }
.chart-bar:hover { filter: brightness(1.4); transform: scaleY(1.04); transform-origin: bottom; }
.chart-bar::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 5px); left: 50%; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 2px 7px; font-size: 0.62rem; color: var(--text); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 20; font-family: var(--font-mono); }
.chart-bar:hover::after { opacity: 1; }
.chart-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 120px; gap: 6px; }
.chart-empty-icon { font-size: 2rem; opacity: 0.35; }
.chart-empty-text { font-size: 0.78rem; color: var(--dim); }

/* ════════════════════════════════════════
   BLOG (archive.php + single.php)
════════════════════════════════════════ */

#blog-archive,
#blog-single {
  background: var(--void);
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-ar);
  direction: rtl;
}

/* ── Nav ── */
.blog-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.blog-nav-logo {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.blog-nav-logo em { font-style: normal; color: var(--amber); }
.blog-nav-right { display: flex; align-items: center; gap: 12px; }
.blog-nav-cta {
  background: var(--amber);
  color: var(--void);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.blog-nav-cta:hover { opacity: 0.85; }
.blog-nav-back {
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.blog-nav-back:hover { color: var(--amber); }

/* ── Archive hero ── */
.blog-hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  max-width: 680px;
  margin: 0 auto;
}
.blog-hero-tag {
  display: inline-block;
  background: var(--amber-glow);
  color: var(--amber);
  border: 1px solid rgba(245,166,35,0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.blog-hero-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.blog-hero-sub { font-size: 1rem; color: var(--muted); line-height: 1.8; }

/* ── Container ── */
.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ── Grid ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* ── Card ── */
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.blog-card:hover {
  border-color: rgba(245,166,35,0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.blog-card-thumb {
  display: block;
  height: 200px;
  overflow: hidden;
  background: var(--surface);
}
.blog-card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.blog-card:hover .blog-card-img { transform: scale(1.04); }
.blog-card-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--dim);
  background: linear-gradient(135deg, var(--surface), var(--card));
}
.blog-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 0.6rem; }
.blog-card-cat {
  background: var(--amber-glow);
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  text-decoration: none;
  border: 1px solid rgba(245,166,35,0.25);
}
.blog-card-cat:hover { background: rgba(245,166,35,0.2); }
.blog-card-date { font-size: 0.72rem; color: var(--muted); display: flex; align-items: center; gap: 4px; font-family: var(--font-en); }
.blog-card-title { font-size: 1.05rem; font-weight: 800; line-height: 1.4; margin-bottom: 0.6rem; }
.blog-card-title a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.blog-card-title a:hover { color: var(--amber); }
.blog-card-excerpt { font-size: 0.84rem; color: var(--muted); line-height: 1.8; flex: 1; margin-bottom: 1rem; }
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.blog-card-author { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.blog-read-link { font-size: 0.8rem; font-weight: 700; color: var(--amber); text-decoration: none; }
.blog-read-link:hover { opacity: 0.75; }

/* ── Pagination ── */
.blog-pagination { text-align: center; margin-top: 1rem; }
.blog-pagination .nav-links { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--r);
  font-size: 0.85rem; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; transition: all 0.2s;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover { background: var(--amber); color: var(--void); border-color: var(--amber); }
.blog-pagination .prev,
.blog-pagination .next { width: auto; padding: 0 14px; font-size: 0.82rem; font-weight: 600; }

/* ── Empty state ── */
.blog-empty { text-align: center; padding: 5rem 1rem; }
.blog-empty-icon { font-size: 3.5rem; color: var(--dim); display: block; margin-bottom: 1.25rem; }
.blog-empty-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.5rem; }
.blog-empty-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.8; }
.blog-back-btn {
  display: inline-block;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 0.85rem; font-weight: 700;
  padding: 10px 24px; border-radius: var(--r); text-decoration: none; transition: all 0.2s;
}
.blog-back-btn:hover { border-color: var(--amber); color: var(--amber); }

/* ── Footer strip ── */
.blog-footer-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 2rem; border-top: 1px solid var(--border); margin-top: 2rem;
}

/* ══ SINGLE POST ══ */
.blog-single-wrap { max-width: 740px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.blog-single-header { text-align: center; margin-bottom: 2.5rem; }
.blog-single-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800; line-height: 1.3; margin-bottom: 1.5rem;
}
.blog-single-author-row {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px 6px 8px; margin-bottom: 1.75rem;
}
.blog-author-avatar { width: 32px !important; height: 32px !important; border-radius: 50% !important; }
.blog-author-name { font-size: 0.82rem; font-weight: 700; }
.blog-single-feat { border-radius: var(--r-lg); overflow: hidden; margin-top: 0.5rem; }
.blog-single-feat-img { width: 100%; height: 360px; object-fit: cover; display: block; }

/* ── Prose ── */
.blog-content { font-size: 1rem; line-height: 2; color: var(--text); margin-bottom: 2.5rem; }
.blog-content h2, .blog-content h3 { font-weight: 800; margin: 2rem 0 0.75rem; line-height: 1.35; }
.blog-content h2 { font-size: 1.35rem; }
.blog-content h3 { font-size: 1.1rem; color: var(--amber); }
.blog-content p { margin-bottom: 1.25rem; color: var(--muted); }
.blog-content a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.blog-content strong { color: var(--text); font-weight: 700; }
.blog-content ul, .blog-content ol { padding-right: 1.5rem; margin-bottom: 1.25rem; color: var(--muted); }
.blog-content li { margin-bottom: 0.4rem; }
.blog-content blockquote {
  border-right: 3px solid var(--amber); padding: 0.75rem 1.25rem;
  margin: 1.5rem 0; background: rgba(245,166,35,0.05);
  border-radius: 0 var(--r) var(--r) 0; font-style: italic; color: var(--muted);
}
.blog-content code {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 7px;
  font-family: var(--font-mono); font-size: 0.85em; color: var(--amber);
}
.blog-content pre {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem; overflow-x: auto;
  margin-bottom: 1.25rem; direction: ltr; text-align: left;
}
.blog-content pre code { background: none; border: none; padding: 0; }
.blog-content img { width: 100%; border-radius: var(--r); margin: 1rem 0; }
.blog-content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ── Tags ── */
.blog-single-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.blog-tag {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); font-size: 0.78rem; padding: 4px 12px;
  border-radius: 100px; text-decoration: none; transition: all 0.2s;
}
.blog-tag:hover { border-color: var(--amber); color: var(--amber); }

/* ── Post nav ── */
.blog-post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.blog-post-nav-item {
  display: flex; flex-direction: column; gap: 4px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 16px;
  text-decoration: none; transition: all 0.2s;
}
.blog-post-nav-item:hover { border-color: var(--amber); }
.blog-post-nav-next { text-align: left; }
.blog-post-nav-label { font-size: 0.7rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.blog-post-nav-title { font-size: 0.85rem; font-weight: 700; color: var(--text); line-height: 1.35; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .blog-nav { padding: 0.9rem 1rem; }
  .blog-hero { padding: 2.5rem 1rem 2rem; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-single-wrap { padding: 2rem 1rem 4rem; }
  .blog-single-feat-img { height: 220px; }
  .blog-post-nav { grid-template-columns: 1fr; }
  .blog-footer-strip { flex-direction: column; gap: 8px; text-align: center; }
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   TOAST
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9000;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: var(--shadow);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-color: rgba(45,212,160,0.4); color: var(--emerald); }
.toast.error { border-color: rgba(240,107,138,0.4); color: var(--rose); }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   UTILITIES
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.badge-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.badge-dot.green { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.badge-dot.red { background: var(--rose); }

.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.2s;
  font-family: var(--font-ar);
  text-decoration: none;
}
.nav-back:hover { color: var(--text); background: var(--card); }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   DEMO SWITCHER
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.demo-switcher {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: rgba(13,13,18,0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 8px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
}
.demo-btn {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-ar);
  white-space: nowrap;
  transition: all 0.2s;
  text-align: right;
  display: block;
}
.demo-btn:hover { color: var(--text); background: var(--card); }
.demo-btn.active { background: var(--amber-glow); color: var(--amber); }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   DASHBOARD ENHANCED
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

/* Sidebar avatar */
.r-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--void);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

/* Status dot */
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 6px var(--emerald);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

/* Sidebar overlay (mobile backdrop) */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.open { opacity: 1; pointer-events: all; }

/* Quick action cards */
.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.quick-action-card:hover {
  border-color: rgba(245,166,35,0.3);
  background: var(--card);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.quick-action-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Settings card layout */
.settings-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 1rem;
}
.settings-card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.01);
}
.settings-card-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--amber-glow);
  border: 1px solid rgba(245,166,35,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.settings-card-title { font-size: 0.9rem; font-weight: 800; }
.settings-card-body { padding: 1.5rem; }

/* Section title with left accent */
.section-title-accent {
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title-accent::before {
  content: '';
  width: 3px; height: 16px;
  background: var(--amber);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Chart day labels */
.chart-day-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 2px;
}
.chart-day { font-size: 0.6rem; color: var(--dim); font-family: var(--font-mono); flex: 1; text-align: center; }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 2rem; }
.empty-state-icon { font-size: 2.5rem; opacity: 0.35; margin-bottom: 10px; display: block; }
.empty-state-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.empty-state-sub { font-size: 0.78rem; color: var(--dim); }

[dir="ltr"] { direction: ltr; text-align: left; }
[dir="rtl"] { direction: rtl; text-align: right; }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   MENU PAGE ENHANCED
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

/* Open status pill with animated dot */
.menu-open-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(45,212,160,0.1);
  border: 1px solid rgba(45,212,160,0.25);
  border-radius: 100px;
  padding: 5px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--emerald);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}
.menu-open-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

/* Sticky category tabs wrapper */
.cat-tabs-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,13,18,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  margin: 0 -1rem 1.5rem;
  padding: 0.75rem 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Product card hover glow overlay */
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(245,166,35,0.05) 0%, transparent 55%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.product-card:hover::before { opacity: 1; }

/* Product card left inset accent on hover */
.product-card:hover {
  box-shadow: inset 3px 0 0 var(--restaurant-primary), 0 12px 32px rgba(0,0,0,0.45);
}

/* Product image shimmer */
.product-img {
  position: relative;
  overflow: hidden;
}
.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 55%);
  pointer-events: none;
}

/* Add button pop animation */
@keyframes addPop {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.45); }
  65%  { transform: scale(0.88); }
  100% { transform: scale(1); }
}
.add-btn.popped { animation: addPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1); }

/* Category sections stagger fade-in */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cat-section.active .product-card {
  animation: fadeInUp 0.32s ease both;
}
.cat-section.active .product-card:nth-child(2) { animation-delay: 0.06s; }
.cat-section.active .product-card:nth-child(3) { animation-delay: 0.12s; }
.cat-section.active .product-card:nth-child(4) { animation-delay: 0.18s; }
.cat-section.active .product-card:nth-child(5) { animation-delay: 0.22s; }
.cat-section.active .product-card:nth-child(n+6) { animation-delay: 0.25s; }

/* Order bar inner glow on hover */
@keyframes orderGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0.35); }
  50%       { box-shadow: 0 0 0 7px rgba(245,166,35,0); }
}
.order-bar-inner:hover {
  filter: brightness(1.08);
  animation: orderGlow 1.6s infinite;
}

/* iOS safe area bottom insets */
@supports (padding: env(safe-area-inset-bottom)) {
  .order-bar { padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .menu-body  { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   LANDING SUPPORT NOTE
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.landing-support-note {
  position: relative;
  z-index: 1;
  margin-top: 1.25rem;
  padding-bottom: 3rem;
  font-size: 13px;
  color: rgba(255,255,255,0.25);
  text-align: center;
  font-family: var(--font-ar);
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   RESPONSIVE â€” TABLET & MOBILE
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

/* Landing: tighten padding on medium screens */
@media(max-width:768px) {
  .landing-content { padding: 1.5rem 1rem; }
  .landing-badge { font-size: 0.7rem; letter-spacing: 1px; }
  .landing-features { gap: 0.75rem; margin-top: 3rem; }
}

/* Landing: stack buttons on mobile */
@media(max-width:768px) {
  .landing-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; max-width: 300px; }
}

@media(max-width:768px) {
  .restaurant-grid { grid-template-columns: 1fr; }
}

/* Login box: tighter on small screens */
@media(max-width:480px) {
  .login-box { padding: 1.75rem 1.25rem; border-radius: var(--r); }
  .form-row { grid-template-columns: 1fr; }
}

/* QR panel: full width on mobile */
@media(max-width:480px) {
  .qr-panel { padding: 2rem 1.25rem; }
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   DELIVERY BADGE + DISCOUNT PRICE
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.delivery-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.8rem;
  background: rgba(0,0,0,0.65);
  border-radius: 20px;
  padding: 2px 7px;
  line-height: 1.6;
  pointer-events: none;
  z-index: 2;
}
.price-wrap { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.price-original {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: line-through;
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   DELIVERY TOGGLE ROW (Dashboard modal)
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.delivery-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  margin-bottom: 12px;
}
.delivery-toggle-label { font-weight: 600; font-size: 0.9rem; }
.delivery-toggle-sub   { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   TAG INPUT (weight options)
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.tag-input-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 8px 12px;
  min-height: 44px;
  cursor: text;
  transition: border-color 0.2s;
}
.tag-input-wrap:focus-within { border-color: var(--amber); }
.tags-list { display: flex; flex-wrap: wrap; gap: 6px; }
.weight-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--amber);
  border-radius: 20px;
  padding: 2px 10px 2px 8px;
  font-size: 0.8rem;
  font-weight: 600;
}
.weight-tag-rm {
  background: none;
  border: none;
  color: var(--amber);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
}
.weight-tag-rm:hover { opacity: 1; }
.tag-input-field {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font-ar);
  min-width: 120px;
  flex: 1;
  padding: 2px 0;
}
.tag-input-field::placeholder { color: var(--dim); }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   PRODUCT BOTTOM SHEET
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  transition: background 0.32s ease, backdrop-filter 0.32s ease;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}
.lightbox-overlay.open {
  background: rgba(0,0,0,0.75);
  pointer-events: all;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lightbox-box {
  background: #111111;
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
  overscroll-behavior: contain;
}
.lightbox-overlay.open .lightbox-box { transform: translateY(0); }
.lightbox-box.lb-closing { transition: transform 0.25s ease-in !important; }

.lb-drag-handle {
  width: 40px;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  margin: 12px auto 0;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  z-index: 3;
  transition: all 0.15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); color: #fff; }

.lightbox-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg,#1a0d00,#0d0600);
  position: relative;
  flex-shrink: 0;
  margin-top: 8px;
}
.lightbox-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.lb-disc-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--amber);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 100px;
  z-index: 2;
  letter-spacing: 0.3px;
}
.lb-img-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(transparent, #111111);
  pointer-events: none;
}

.lightbox-info {
  padding: 20px 20px 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.lightbox-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.lightbox-price { margin: 4px 0; }
.lb-price-old {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 6px;
}
.lb-price-new {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--amber);
}
.lb-save-pill {
  display: inline-flex;
  align-items: center;
  background: var(--restaurant-glow-15);
  border: 1px solid var(--restaurant-glow-25);
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  margin-right: 6px;
  vertical-align: middle;
}

.lb-ingredients-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 6px;
  margin-top: 4px;
}
.lb-ingredients-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lb-ingredient-chip {
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

.lightbox-weights { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lb-weights-label {
  width: 100%;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2px;
}
.lb-weight-btn {
  background: rgba(255,255,255,0.08);
  border: 0.5px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-family: var(--font-ar);
  cursor: pointer;
  transition: all 0.15s;
}
.lb-weight-btn:hover { border-color: var(--restaurant-glow-70); color: var(--amber); }
.lb-weight-btn.active {
  background: var(--restaurant-glow-15);
  border-color: var(--amber);
  color: var(--amber);
  font-weight: 700;
}
.lightbox-add-btn { width: 100%; margin-top: 8px; }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   OPEN / CLOSED STATUS PILL
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.menu-open-status.closed {
  background: rgba(240,107,138,0.1);
  border-color: rgba(240,107,138,0.25);
  color: var(--rose);
}
.menu-open-status.closed::before {
  background: var(--rose);
  box-shadow: 0 0 8px var(--rose);
  animation: none;
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   RESTAURANT CLOSED STATE
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.menu-closed .add-btn,
.menu-closed .cart-ctrl-wrap .add-btn {
  opacity: 0.35;
  pointer-events: none;
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   PROMO BANNER
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.promo-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(245,166,35,0.12) 0%, rgba(240,107,138,0.08) 100%);
  border: 1px solid rgba(245,166,35,0.28);
  border-radius: var(--r);
  padding: 12px 16px;
  margin-bottom: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.promo-banner:hover { border-color: var(--amber); background: rgba(245,166,35,0.16); }
.promo-banner-icon  { font-size: 1.4rem; flex-shrink: 0; }
.promo-banner-text  { flex: 1; font-weight: 600; font-size: 0.9rem; color: var(--text); }
.promo-banner-arrow { color: var(--amber); font-size: 1rem; flex-shrink: 0; }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   DELIVERY TOGGLE BUTTON (inline in actions row)
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.delivery-fab {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--amber);
  color: var(--void);
  border: none;
  border-radius: var(--r);
  padding: 11px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-ar);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.delivery-fab:hover { opacity: 0.88; transform: translateY(-1px); }
.delivery-fab.active {
  background: rgba(240,107,138,0.2);
  color: var(--rose);
  border: 1px solid rgba(240,107,138,0.4);
}

/* Default: hide + buttons (browse-only mode); show only in delivery mode */
#menu-page .cart-ctrl-wrap { display: none; }
#menu-page.delivery-mode .cart-ctrl-wrap { display: flex; }
.menu-closed .cart-ctrl-wrap { display: none !important; }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   RESPONSIVE â€” TABLET (768-1024px)
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
@media(min-width: 768px) and (max-width: 1024px) {
  #menu-page {
    max-width: 100% !important;
    min-height: 100vh;
  }

  /* Header fills full width */
  .menu-header { min-height: 260px; }
  .menu-header::before { width: 500px; height: 500px; }

  /* Actions row adapts */
  .menu-actions { gap: 0.75rem; }
  .wa-btn { font-size: 1rem; padding: 14px 24px; }

  /* Promo banner full width */
  .promo-banner { margin: 0 0 1.25rem; }

  /* Product grid: 2 columns */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .product-card   { flex-direction: column; }
  .product-img    { width: 100%; height: 200px; }
  .product-info   { padding: 0.85rem; }

  /* Lightbox / bottom sheets fill more width */
  .lightbox-box { max-width: 640px; }
  .lightbox-img-wrap { height: 300px; }

  /* Order bar full width */
  .order-bar { max-width: 100%; }

  /* Category tabs scrollable */
  .cat-tabs { gap: 8px; }
  .cat-tab  { font-size: 0.82rem; }
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   RESPONSIVE â€” DESKTOP (>1024px)
   480px centered + blurred dark sides
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.menu-side-blur { display: none; }

@media(min-width: 1025px) {
  #menu-page {
    position: relative;
    z-index: 3;
    box-shadow: 0 0 100px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.04);
  }

  .menu-side-blur {
    display: block;
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    backdrop-filter: blur(18px) brightness(0.45);
    -webkit-backdrop-filter: blur(18px) brightness(0.45);
    -webkit-mask-image: linear-gradient(
      to right,
      black 0%,
      black calc(50% - 252px),
      transparent calc(50% - 232px),
      transparent calc(50% + 232px),
      black calc(50% + 252px),
      black 100%
    );
    mask-image: linear-gradient(
      to right,
      black 0%,
      black calc(50% - 252px),
      transparent calc(50% - 232px),
      transparent calc(50% + 232px),
      black calc(50% + 252px),
      black 100%
    );
  }

  /* Keep interactive layers above the blur overlay */
  .lightbox-overlay,
  .order-bar { z-index: 10001; }
}

/* â”€â”€ Stat skeleton â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@keyframes skeletonPulse {
  0%,100% { opacity: 0.35; }
  50%      { opacity: 0.65; }
}
.stat-skeleton {
  display: inline-block; width: 60px; height: 1.6rem;
  background: var(--border); border-radius: 6px;
  animation: skeletonPulse 1.2s ease-in-out infinite;
  vertical-align: middle;
}

/* â”€â”€ Pro stats row â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stats-grid-pro { margin-top: -0.5rem; }

/* â”€â”€ Pro lock overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pro-card { position: relative; overflow: hidden; }
.pro-lock-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,15,0.72); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  border-radius: inherit; z-index: 5;
}
.pro-lock-inner {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text); font-weight: 600;
}
.pro-upgrade-btn {
  background: var(--amber); color: var(--void);
  border: none; border-radius: 100px; padding: 5px 14px;
  font-size: 0.75rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-ar); transition: transform 0.15s;
}
.pro-upgrade-btn:hover { transform: scale(1.05); }

/* â”€â”€ Top products â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.top-products-list { display: flex; flex-direction: column; gap: 10px; }
.top-product-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.top-product-row:last-child { border-bottom: none; }
.top-product-rank { font-size: 1.4rem; flex-shrink: 0; width: 28px; text-align: center; }
.top-product-img {
  width: 44px; height: 44px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0;
}
.top-product-img-ph {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 1.4rem;
}
.top-product-name { flex: 1; font-size: 0.88rem; font-weight: 600; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-product-count { display: flex; align-items: baseline; gap: 3px; flex-shrink: 0; }
.top-product-count span { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--amber); }
.top-product-count small { font-size: 0.65rem; color: var(--muted); }

/* â”€â”€ Heatmap â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.heatmap-grid { overflow-x: auto; }
.heatmap-hour-row,
.heatmap-row {
  display: flex; align-items: center; gap: 2px; margin-bottom: 2px;
}
.heatmap-day-label {
  width: 22px; font-size: 0.55rem; color: var(--dim);
  font-family: var(--font-mono); flex-shrink: 0; text-align: right;
  padding-right: 4px;
}
.heatmap-hour-label {
  flex: 1; min-width: 0; font-size: 0.5rem; color: var(--dim);
  font-family: var(--font-mono); text-align: center; height: 12px;
}
.heatmap-cell {
  flex: 1; min-width: 0; height: 18px; border-radius: 3px;
  cursor: default; transition: filter 0.15s;
}
.heatmap-cell:hover { filter: brightness(1.6); }

/* â”€â”€ Dead products â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dead-products-list { display: flex; flex-direction: column; gap: 10px; max-height: 340px; overflow-y: auto; }
.dead-product-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--border);
}
.dead-product-row:last-child { border-bottom: none; }
.dead-product-name { flex: 1; font-size: 0.86rem; color: var(--text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dead-product-actions { display: flex; gap: 6px; flex-shrink: 0; }
.dead-action-btn {
  font-size: 0.7rem; font-weight: 700; padding: 4px 10px;
  border-radius: 100px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer;
  font-family: var(--font-ar); transition: border-color 0.15s;
}
.dead-action-btn:hover { border-color: var(--amber); color: var(--amber); }
.dead-action-hide:hover { border-color: var(--rose); color: var(--rose); }

/* â”€â”€ Smart tips â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.smart-tips-list { display: flex; flex-direction: column; gap: 10px; }
.smart-tip-row {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(245,166,35,0.05); border: 1px solid rgba(245,166,35,0.14);
  border-radius: var(--r); padding: 12px 14px;
}
.smart-tip-icon { font-size: 1.1rem; flex-shrink: 0; }
.smart-tip-text { font-size: 0.85rem; line-height: 1.6; color: var(--text); }

/* â”€â”€ Chart loading skeleton bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chart-bar-skel {
  flex: 1; min-width: 0; border-radius: 4px 4px 0 0;
  background: var(--border);
  animation: skeletonPulse 1.2s ease-in-out infinite;
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   BOTTOM TAB BAR (Mobile â‰¤768px)
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.bottom-tab-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 201;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.6rem;
  font-weight: 600;
  font-family: var(--font-ar);
  cursor: pointer;
  padding: 8px 4px;
  transition: color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.bottom-tab-item:hover { color: var(--text); }
.bottom-tab-item.active { color: var(--amber); }
.bottom-tab-icon { font-size: 1.3rem; line-height: 1; }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   DASHBOARD â€” TABLET (769pxâ€“1024px)
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
@media(min-width: 769px) and (max-width: 1024px) {
  /* Sidebar collapses like mobile â€” triggered by hamburger */
  .dash-sidebar {
    position: fixed;
    right: -260px;
    top: 0; bottom: 0;
    z-index: 200;
    transition: right 0.3s ease;
  }
  .dash-sidebar.open { right: 0; }
  .dash-main {
    margin-right: 0 !important;
    padding: 1.25rem;
  }
  .mobile-menu-btn { display: flex !important; }

  /* Stats: 2Ã—2 grid */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Products table: horizontal scroll */
  #panel-products .data-table { overflow-x: auto; }

  /* Forms: keep 2-column */
  .form-row { grid-template-columns: 1fr 1fr; }

  /* Settings panel: wider */
  #panel-settings > div { max-width: 100%; }
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   DASHBOARD â€” MOBILE (<768px)
   Bottom tab bar replaces sidebar nav
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
@media(max-width: 768px) {
  .bottom-tab-bar { display: flex; }
  /* Pad content above bottom tab bar */
  .dash-main { padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important; }

  /* All stat cards: single column */
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stats-grid-pro { grid-template-columns: 1fr !important; }

  /* Forms: full width */
  .form-row { grid-template-columns: 1fr !important; }

  /* Settings panel: full width */
  #panel-settings > div { max-width: 100%; }

  /* Stat period tabs: scrollable on tiny screens */
  .stat-period-tabs { gap: 3px; }
  .stat-period-btn { font-size: 0.72rem; padding: 7px 2px; }

  /* QR panel smaller padding */
  .qr-panel { padding: 1.5rem 1rem; }
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   CART BOTTOM SHEET
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.cart-sheet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.cart-sheet-item:last-child { border-bottom: none; }
.cart-sheet-name {
  font-size: 0.88rem;
  font-weight: 600;
  flex: 1;
  line-height: 1.4;
}
.cart-sheet-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cart-sheet-price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--amber);
  min-width: 58px;
  text-align: left;
}
.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   WHATSAPP FAB (fixed, bottom-left)
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.wa-fab {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9990;
  background: #128C7E;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-family: var(--font-ar);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(18,140,126,0.45);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}
.wa-fab:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 32px rgba(18,140,126,0.65);
  color: #fff;
  text-decoration: none;
}
.wa-fab-icon { font-size: 1.15rem; line-height: 1; }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   PRICING SECTION
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.pricing-section {
  position: relative;
  background: var(--deep);
  padding: 5rem 2rem 4rem;
  border-top: 1px solid var(--border);
}
.pricing-inner {
  max-width: 820px;
  margin: 0 auto;
}
.pricing-title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.pricing-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.pricing-card-featured {
  border-color: rgba(245,166,35,0.4);
  background: linear-gradient(160deg, rgba(245,166,35,0.07) 0%, var(--card) 60%);
  box-shadow: 0 0 48px rgba(245,166,35,0.08);
}
.pricing-card-featured:hover {
  box-shadow: 0 16px 48px rgba(245,166,35,0.2);
}
.pricing-card-header { display: flex; flex-direction: column; gap: 6px; }
.pricing-badge {
  display: inline-block;
  background: var(--amber);
  color: var(--void);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  width: fit-content;
}
.pricing-plan-name {
  font-family: var(--font-en);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1;
}
.pricing-price {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  margin-top: 4px;
}
.pricing-currency { font-size: 1rem; font-weight: 400; }
.pricing-price-period {
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-ar);
  font-weight: 400;
}
.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.pricing-features-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}
.pricing-features-list li::before {
  content: 'âœ“';
  color: var(--emerald);
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.pricing-cta {
  display: block;
  text-align: center;
  padding: 13px 24px;
  border-radius: var(--r);
  font-family: var(--font-ar);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: auto;
}
.pricing-cta-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.pricing-cta-ghost:hover {
  border-color: rgba(245,166,35,0.45);
  color: var(--amber);
}
.pricing-cta-primary {
  background: var(--amber);
  color: var(--void);
  border: 1px solid transparent;
}
.pricing-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245,166,35,0.45);
  color: var(--void);
  text-decoration: none;
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   LANDING FOOTER
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.landing-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.landing-footer-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.landing-footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.2s;
}
.landing-footer-links a:hover { color: var(--amber); }
.footer-sep { color: var(--dim); font-size: 0.84rem; }
.landing-footer-copy {
  font-size: 0.78rem;
  color: var(--dim);
  font-family: var(--font-mono);
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   LANDING â€” RESPONSIVE (hero text scale)
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
@media(max-width:768px) {
  .landing-logo { font-size: clamp(2.4rem, 14vw, 3.8rem); letter-spacing: -1px; }
  .landing-tagline { font-size: 0.95rem; margin-bottom: 2rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-section { padding: 3.5rem 1.25rem 3rem; }
  .landing-footer { padding: 1.5rem 1.25rem; }
}

@media(min-width:769px) and (max-width:1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .landing-features { gap: 0.9rem; }
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   RESPONSIVE BATCH v3.2
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

/* â”€â”€ Disable hover animations on touch devices â”€â”€ */
@media (hover: none) {
  .feat-card:hover    { transform: none; background: var(--card); border-color: var(--border); }
  .product-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
  .product-card:hover::before { opacity: 0; }
  .pricing-card:hover { transform: none; box-shadow: none; }
  .stat-card:hover    { transform: none; border-color: var(--border); }
  .btn-primary:hover, .btn-ghost:hover { transform: none; }
}

/* â”€â”€ Add-btn: expand touch area â”€â”€ */
.add-btn { position: relative; }
.add-btn::after { content: ''; position: absolute; inset: -8px; }

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* LANDING â€” HERO                          */
/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Extra-small (â‰¤374px) */
@media(max-width: 374px) {
  .landing-content  { padding: 1rem 0.75rem; }
  .landing-logo     { font-size: 2.6rem; letter-spacing: -1px; }
  .landing-tagline  { font-size: 0.85rem; margin-bottom: 1.5rem; }
  .btn-primary, .btn-ghost { padding: 12px 18px; font-size: 0.9rem; }
  .landing-features { gap: 0.5rem; margin-top: 2.5rem; }
  .feat-card  { padding: 1rem; }
  .feat-icon  { font-size: 1.6rem; }
}

/* Small mobile (375pxâ€“480px) */
@media(max-width: 480px) {
  .landing-content { padding: 1.5rem 0.875rem; }
  .feat-card  { padding: 1.1rem; }
  .feat-title { font-size: 0.92rem; }
  .feat-desc  { font-size: 0.77rem; }
  .feat-icon  { font-size: 1.75rem; }
}

/* Desktop: wider content area */
@media(min-width: 1025px) {
  .landing-content { max-width: 840px; }
}
@media(min-width: 1280px) {
  .landing-content { max-width: 960px; padding: 2.5rem; }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* PRICING CARDS                           */
/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* Pro card elevated on desktop */
@media(min-width: 769px) {
  .pricing-card-featured {
    transform: scale(1.025);
    position: relative;
    z-index: 1;
    box-shadow: 0 0 56px rgba(245,166,35,0.13), 0 20px 44px rgba(0,0,0,0.4);
  }
  .pricing-card-featured:hover {
    transform: scale(1.025) translateY(-5px);
    box-shadow: 0 0 80px rgba(245,166,35,0.22), 0 28px 56px rgba(0,0,0,0.5);
  }
}

/* Pro card shows first on mobile */
@media(max-width: 768px) {
  .pricing-card-featured { order: -1; }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* DASHBOARD â€” MODAL BOTTOM SHEET (mobile) */
/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

@media(max-width: 768px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal-box {
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    max-width: 100%;
    max-height: 88vh;
    padding: 1.5rem 1.25rem 2rem;
  }
  .modal-header { margin-bottom: 1.25rem; }

  /* Table rows: tighter */
  .table-row       { padding: 0.875rem; gap: 0.6rem; }
  .table-row-icon  { width: 40px; height: 40px; font-size: 1.1rem; border-radius: 10px; }
  .row-name        { font-size: 0.88rem; }
  .row-sub         { font-size: 0.68rem; }
  .row-price       { font-size: 0.88rem; }
  .row-actions     { gap: 4px; }

  /* Onboarding: tighter */
  .onboarding-header { padding: 0.875rem 1rem; gap: 8px; }
  .onboarding-body   { padding: 0 1rem 0.875rem; }
  .step-label        { font-size: 0.82rem; }
}

/* Tablet: modal centered, wider */
@media(min-width: 769px) and (max-width: 1024px) {
  .modal-box { max-width: 540px; }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* MENU PAGE â€” EXTRA SMALL (â‰¤374px)        */
/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

@media(max-width: 374px) {
  .menu-body    { padding: 1.5rem 0.75rem 6rem; }
  .menu-header  { padding: 3rem 0.75rem 1.75rem; }
  .product-img  { width: 90px; height: 90px; }
  .product-name { font-size: 0.9rem; }
  .cat-tab      { padding: 7px 11px; font-size: 0.75rem; }
}

/* WA FAB: tighter on small screens */
@media(max-width: 480px) {
  .wa-fab { bottom: 1.25rem; left: 1rem; padding: 10px 16px; font-size: 0.82rem; }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* LOGIN PAGE                              */
/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.login-demo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  background: rgba(245,166,35,0.06);
  border: 1px dashed rgba(245,166,35,0.32);
  border-radius: var(--r);
  color: var(--amber);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-ar);
  transition: all 0.2s;
  margin-top: 0.5rem;
}
.login-demo-link:hover {
  background: rgba(245,166,35,0.11);
  border-color: rgba(245,166,35,0.55);
}

.login-register-hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1.25rem;
}
.login-register-hint a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 600;
}
.login-register-hint a:hover { text-decoration: underline; }

/* Login box: edge-to-edge on very small screens */
@media(max-width: 400px) {
  .login-box {
    border-radius: var(--r) var(--r) 0 0;
    border-left: none;
    border-right: none;
    padding: 1.5rem 1rem 2rem;
  }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* REGISTER â€” SUCCESS STATE                */
/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

.reg-success-state {
  text-align: center;
  padding: 0.5rem 0 2rem;
  animation: fadeIn 0.4s ease;
}
.reg-success-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(45,212,160,0.1);
  border: 2px solid rgba(45,212,160,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.25rem;
}
.reg-success-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.reg-success-sub {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.85;
  margin-bottom: 2rem;
}
.reg-success-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.reg-success-secondary {
  font-size: 0.8rem;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}
.reg-success-secondary:hover { color: var(--muted); }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   REGISTRATION PAGE
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
/* Page wrapper — two columns on desktop */
#register-page {
  min-height: 100vh;
  background: var(--void);
  display: flex;
  align-items: stretch;
}

/* Left branding panel */
.rp-left {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 3rem 3rem 4rem;
  background: linear-gradient(160deg, rgba(245,166,35,0.06), transparent 60%);
  border-left: 1px solid var(--border);
  flex: 1;
  max-width: 420px;
}
.rp-logo {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--amber));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.rp-logo span { font-size: 1.1rem; }
.rp-tagline { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.rp-perks {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rp-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}
.rp-perks li i { color: var(--emerald, #2dd4a0); font-size: 0.75rem; }
.rp-trust {
  background: rgba(245,166,35,0.07);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rp-trust-num   { font-size: 2rem; font-weight: 900; color: var(--amber); }
.rp-trust-label { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

/* Right form panel */
.rp-right {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem;
  overflow-y: auto;
}

/* Card */
.register-card {
  width: 100%;
  max-width: 500px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.25rem 2rem 2.5rem;
  box-shadow: var(--shadow);
}
.rp-card-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.rp-card-logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--amber));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.rp-card-logo span { font-size: 0.85rem; }
.rp-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.rp-card-sub   { font-size: 0.76rem; color: var(--muted); }
.form-label-hint { font-size: 0.72rem; color: var(--dim, #555); }
.rp-login-hint {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.rp-login-hint a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 600;
}
.rp-login-hint a:hover { text-decoration: underline; }

/* Plans — 2x2 grid */
.reg-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.reg-plan-card {
  display: block;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 12px 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
  user-select: none;
  position: relative;
}
.reg-plan-card:hover    { border-color: rgba(245,166,35,0.4); }
.reg-plan-card.selected { border-color: var(--amber); background: rgba(245,166,35,0.07); }
.reg-plan-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #0a0a0a;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
.reg-plan-name     { font-size: 0.8rem; font-weight: 700; margin-bottom: 5px; }
.reg-plan-price    { font-family: var(--font-mono); font-size: 0.92rem; font-weight: 700; color: var(--amber); margin-bottom: 4px; }
.reg-plan-currency { font-size: 0.68rem; font-weight: 400; }
.reg-plan-custom   { font-size: 0.8rem !important; font-family: inherit !important; }
.reg-plan-desc     { font-size: 0.68rem; color: var(--muted); line-height: 1.35; }

.reg-pass-toggle {
  position: absolute;
  left: 12px;
  bottom: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  padding: 2px 4px;
  line-height: 1;
}

/* Desktop: show left panel */
@media (min-width: 900px) {
  .rp-left  { display: flex; }
  .rp-right { padding: 3rem 2.5rem; }
  .register-card { max-width: 520px; }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 899px) {
  .rp-right { padding: 3rem 2rem; }
}

/* Mobile — full bleed card */
@media (max-width: 599px) {
  .rp-right { padding: 0; align-items: flex-start; }
  .register-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 1.75rem 1.25rem 3rem;
    min-height: 100vh;
  }
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   ADMIN â€” PENDING RESTAURANT CARD
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.pending-card {
  border-color: rgba(245,166,35,0.35) !important;
  box-shadow: 0 0 0 1px rgba(245,166,35,0.15);
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   RESPONSIVE â€” NEW PANELS & ELEMENTS
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

/* All settings-style panels: full width on mobile */
@media(max-width: 768px) {
  #panel-promotions > div,
  #panel-discounts > div,
  #panel-social > div,
  #panel-delivery > div { max-width: 100%; }

  /* Bottom tab bar: 6 items â€” tighter spacing */
  .bottom-tab-item { font-size: 0.55rem; padding: 7px 2px; gap: 2px; }
  .bottom-tab-icon  { font-size: 1.15rem; }

  /* Drag handles: hide on touch-primary devices (sortable only on desktop) */
  @media (hover: none) {
    .drag-handle { display: none; }
  }

  /* Featured cards: slightly narrower on very small screens */
  .featured-card { width: 128px; }
  .featured-card-img { height: 96px; }

  /* WA template textarea: ensure full width */
  #settingWaTemplate { width: 100%; box-sizing: border-box; }

  /* Social bar: center-wrap on small screens */
  .social-links-bar { justify-content: center; padding: 1rem 0.75rem 1.25rem; }
  .social-link-btn  { font-size: 0.78rem; padding: 7px 13px; }
}

/* Tablet (769-1024px) â€” new panels behave like desktop */
@media(min-width: 769px) and (max-width: 1024px) {
  #panel-promotions > div,
  #panel-discounts > div,
  #panel-social > div,
  #panel-delivery > div { max-width: 100%; }
}

/* Menu page: search bar & featured on tablet */
@media(min-width: 768px) and (max-width: 1024px) {
  .menu-search-wrap { padding: 0 1.25rem; }
  .featured-section { padding: 1.25rem 0 0.5rem; }
}

/* Menu page: search bar on desktop (centred within 480px col) */
@media(min-width: 1025px) {
  .menu-search-wrap { padding: 0 1rem; }
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   PROMO CAROUSEL (menu page)
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.promo-carousel-inner { display:flex; flex-direction:column; }
.promo-carousel-slide { display:none; align-items:center; gap:10px; }
.promo-carousel-slide.active { display:flex; }
.promo-carousel-dots {
  display:flex; justify-content:center; gap:6px;
  padding:6px 0 0;
}
.promo-dot {
  width:6px; height:6px; border-radius:50%;
  background:rgba(255,255,255,0.2); cursor:pointer; transition:background 0.25s;
}
.promo-dot.active { background:var(--amber); }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   PROMO DASHBOARD MANAGEMENT
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
.promo-dash-row {
  display:flex; align-items:center; gap:10px;
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r); padding:12px 14px;
  margin-bottom:8px;
}
.promo-add-form {
  background:var(--surface); border:1px dashed var(--border);
  border-radius:var(--r); padding:16px;
  margin-top:4px;
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   DISCOUNTS PANEL â€” full width mobile
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
@media(max-width: 768px) {
  #panel-discounts > div { max-width: 100%; }
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   RESPONSIVE â€” INNER PANEL CONTENT
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

/* Settings card: tighter padding on mobile */
@media(max-width: 480px) {
  .settings-card-header { padding: 0.75rem 1rem; }
  .settings-card-body   { padding: 1rem; }
}

/* Business hours: time inputs override inline width:90px */
@media(max-width: 480px) {
  #bizHoursPanel input[type="time"] {
    width: 4.5rem !important;
    padding: 5px 3px !important;
    font-size: 0.75rem !important;
  }
}
@media(max-width: 360px) {
  #bizHoursPanel input[type="time"] {
    width: 3.8rem !important;
    font-size: 0.7rem !important;
  }
}

/* Table rows: smaller on very small screens */
@media(max-width: 374px) {
  .table-row { padding: 0.75rem; gap: 0.5rem; }
  .table-row-icon { width: 40px; height: 40px; font-size: 1.1rem; }
  .action-btn { width: 32px; height: 32px; }
  .row-name   { font-size: 0.85rem; }
}

/* Heatmap: force min-width to enable scroll on mobile */
@media(max-width: 768px) {
  .heatmap-hour-row,
  .heatmap-row { min-width: 420px; }
}

/* Modal box: tighter padding on extra-small screens */
@media(max-width: 374px) {
  .modal-box { padding: 1.25rem; }
  .modal-title { font-size: 1rem; }
}

/* Chart value font on mobile */
@media(max-width: 480px) {
  .stat-value { font-size: 1.6rem; }
  .chart-bars { height: 80px; }
}

/* Chef's Picks tab: star accent */
.cat-tab[data-cat="featured"] { border-color: rgba(245,166,35,0.55); }
.cat-tab[data-cat="featured"].active { background: #F5A623; border-color: #F5A623; color: #0d0d12; }

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   LAPTOP (1025px â€“ 1280px)
   Default desktop rules assume large screens. At 1025-1280px
   the sidebar eats too much space â€” shrink it slightly.
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
@media(min-width: 1025px) and (max-width: 1280px) {
  .dash-sidebar { width: 200px !important; }
  .dash-main    { margin-right: 200px !important; }
  /* Sidebar labels: tighter font so they don't clip */
  .nav-label    { font-size: 0.78rem; }
  /* Stats: 2-column grid saves horizontal space */
  .stats-grid   { grid-template-columns: repeat(2, 1fr) !important; }
  /* Settings inner wrappers: use full available width */
  #panel-settings > div { max-width: 100% !important; }
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   SETTINGS PANEL â€” FIX inline style="max-width:560px;"
   PHP uses inline styles; CSS rules without !important lose.
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
@media(max-width: 1024px) {
  /* All panel inner wrappers that carry an inline max-width */
  #panel-settings > div,
  #panel-discounts > div,
  #panel-menu-settings > div { max-width: 100% !important; width: 100% !important; }
}

@media(max-width: 768px) {
  /* Re-assert with !important â€” overrides inline max-width:560px */
  #panel-settings > div,
  #panel-discounts > div,
  #panel-menu-settings > div { max-width: 100% !important; width: 100% !important; }

  /* Settings flex rows: allow wrapping on tablet/mobile */
  .settings-card-body { flex-wrap: wrap !important; }

  /* Biz-hours row: inline display:flex â€” make it wrap */
  #bizHoursPanel .hours-row,
  #bizHoursPanel > div > div { flex-wrap: wrap !important; gap: 0.5rem !important; }

  /* Color picker row: inline flex â€” stack the preview bar */
  #colorPreviewBar { width: 100% !important; }

  /* Logo/cover flex row: allow wrap so preview doesn't overflow */
  #logoPreview { flex-shrink: 0; }

  /* Discount type + value flex row */
  #menuDiscountValueGroup,
  #addDiscountValueGroup { width: 100% !important; }
}

@media(max-width: 480px) {
  /* form-group rows with inline flex:0 0 80px â€” go full width on small screens */
  .form-group[style*="flex:0 0"],
  .form-group[style*="flex: 0 0"] { flex: 1 1 100% !important; width: 100% !important; }

  /* Any form-group with inline flex:1 inside settings â€” ensure they can shrink */
  #panel-settings .form-group[style*="flex:1"],
  #panel-settings .form-group[style*="flex: 1"] { width: 100% !important; min-width: 0 !important; }

  /* Product modal: variant row inputs â€” allow wrap */
  #addVariantName,
  #addVariantPrice { min-width: 0 !important; }

  /* Day schedule checkboxes row already has flex-wrap:wrap on inline style â€” keep it */

  /* Color input: slightly narrower to leave room for preview */
  #settingColor { width: 60px !important; flex-shrink: 0 !important; }

  /* Buttons row in modals: stack on tiny screens */
  .modal-footer,
  [style*="display:flex"][style*="gap:8px;margin-top:0.5rem"] { flex-wrap: wrap !important; }
  .modal-footer .btn-primary,
  .modal-footer .btn-ghost { width: 100% !important; }

  /* Panel sections that carry inline max-width: always 100% */
  [id^="panel-"] > div[style*="max-width"] { max-width: 100% !important; width: 100% !important; }
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   ANALYTICS / STATS PANEL â€” responsive at all breakpoints
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
@media(max-width: 768px) {
  .stats-grid     { grid-template-columns: 1fr 1fr !important; }
  .stats-grid-pro { grid-template-columns: 1fr !important; }
  .chart-wrap     { overflow-x: auto !important; }
}
@media(max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr !important; }
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   ORDERS / PRODUCTS TABLE â€” horizontal scroll on mobile
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */
@media(max-width: 768px) {
  #panel-orders  .data-table,
  #panel-products .data-table { overflow-x: auto !important; }
  .orders-table  { min-width: 520px; }
  .products-table { min-width: 480px; }
}

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   LAYOUT SYSTEM v3.6
   CSS classes that replace PHP inline styles â€” no !important needed.
   Breakpoints work naturally because classes have lower specificity than
   inline styles, but these REPLACE inline styles so the conflict is gone.
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

/* â”€â”€ Dashboard root â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#restaurant-dashboard {
  display: flex;
  direction: rtl;
  min-height: 100vh;
  background: var(--void);
}

/* â”€â”€ Product category filter tabs â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#productCatTabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
#productCatTabs::-webkit-scrollbar { display: none; }

/* â”€â”€ Topbar actions row â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.topbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* â”€â”€ Panel inner form wrapper â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.panel-form-wrap {
  max-width: 100%;
}

/* â”€â”€ Inline flex row for discount/type selectors â”€â”€â”€â”€â”€â”€ */
/* Replaces style="display:flex;gap:12px;align-items:flex-end;..." */
.form-flex-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}
.form-flex-row-16 { margin-bottom: 16px; }
@media(max-width: 480px) {
  .form-flex-row { flex-wrap: wrap; gap: 8px; }
}

/* â”€â”€ Flex form-group variants â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Replaces style="flex:1;margin-bottom:0;" */
.form-group-flex {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
}
/* Replaces style="flex:0 0 80px;margin-bottom:0;" */
.form-group-fixed {
  flex: 0 0 80px;
  margin-bottom: 0;
}
@media(max-width: 480px) {
  .form-group-fixed { flex: 1 1 100%; }
}

/* â”€â”€ Modal / panel button row â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* Replaces style="display:flex;gap:8px;margin-top:0.5rem;" */
.modal-btn-row {
  display: flex;
  gap: 8px;
  margin-top: 0.5rem;
}
.modal-btn-row .btn-primary { flex: 1; }
@media(max-width: 480px) {
  .modal-btn-row { flex-direction: column; }
  .modal-btn-row .btn-primary,
  .modal-btn-row .btn-ghost { width: 100%; }
}

/* â”€â”€ Variant input row (weight/size options) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.variant-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.variant-input-row .form-input { min-width: 0; }
@media(max-width: 400px) {
  .variant-input-row { flex-wrap: wrap; }
}

/* â”€â”€ Menu page: full width on very small screens â”€â”€â”€â”€â”€â”€ */
@media(max-width: 480px) {
  #menu-page {
    max-width: 100% !important;
    border-radius: 0;
    box-shadow: none !important;
  }
  .menu-side-blur { display: none !important; }
  .menu-actions { flex-wrap: wrap; }
}

/* â”€â”€ Menu page tablet: better proportions â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media(min-width: 768px) and (max-width: 1024px) {
  .menu-body { padding: 1.5rem 1.25rem 6rem; }
  .cat-tabs-wrap { margin: 0 -1.25rem 1.5rem; padding: 0.75rem 1.25rem 0; }
  .order-bar { padding: 0.875rem 1.25rem; }
  .featured-card { width: 148px; }
  .featured-card-img { height: 112px; }
}

/* â”€â”€ Dashboard: stats grid on laptop screens â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media(min-width: 1025px) and (max-width: 1440px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media(min-width: 1441px) {
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media(max-width: 768px) {
  #bizHoursPanel [style*="grid-template-columns"] {
    grid-template-columns: 28px 1fr auto auto !important;
    gap: 4px !important;
  }
}

/* â”€â”€ Quick actions: hidden on laptop (sidebar handles navigation) â”€â”€ */
@media(min-width: 1025px) {
  #quickActionsSection { display: none; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   SMART ADVISOR PANEL
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.advisor-loading {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 4rem 2rem; color: var(--muted); font-size: 0.9rem;
}
.advisor-spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* â”€â”€ Score Card â”€â”€ */
.advisor-score-card {
  background: linear-gradient(135deg, var(--card), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}
.advisor-score-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--emerald));
}
.advisor-score-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.advisor-score-label {
  font-size: 0.78rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: 1.5px; font-weight: 600;
}
.advisor-score-num {
  font-size: 3rem; font-weight: 900; font-family: var(--font-mono);
  line-height: 1;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.advisor-score-grade {
  font-size: 0.7rem; font-weight: 700; padding: 3px 10px;
  border-radius: 100px; border: 1px solid;
  flex-shrink: 0;
}
.grade-a { background: rgba(45,212,160,0.12); color: var(--emerald); border-color: rgba(45,212,160,0.3); }
.grade-b { background: rgba(245,166,35,0.12); color: var(--amber); border-color: rgba(245,166,35,0.3); }
.grade-c { background: rgba(240,107,138,0.08); color: var(--rose); border-color: rgba(240,107,138,0.25); }

.advisor-score-bars { display: flex; flex-direction: column; gap: 10px; }
.advisor-bar-row {
  display: grid; grid-template-columns: 70px 1fr 30px;
  align-items: center; gap: 10px;
}
.advisor-bar-label { font-size: 0.76rem; color: var(--muted); }
.advisor-bar-track {
  height: 6px; background: var(--surface); border-radius: 100px; overflow: hidden;
}
.advisor-bar-fill {
  height: 100%; border-radius: 100px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.bar-fill-a { background: linear-gradient(90deg, var(--emerald), #1af5b0); }
.bar-fill-b { background: linear-gradient(90deg, var(--amber), #f5c842); }
.bar-fill-c { background: linear-gradient(90deg, var(--rose), #ff8aaa); }
.advisor-bar-pct { font-size: 0.7rem; font-family: var(--font-mono); color: var(--dim); text-align: right; }

/* â”€â”€ Story Section â”€â”€ */
.advisor-story-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.advisor-section-title {
  font-size: 0.72rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: 1.5px; font-weight: 700; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 6px;
}
.advisor-story-text {
  font-size: 0.92rem; line-height: 1.85; color: var(--text);
}
.advisor-story-text strong { color: var(--amber); font-weight: 700; }
.story-stat {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(245,166,35,0.08); border: 1px solid rgba(245,166,35,0.15);
  border-radius: 6px; padding: 1px 7px; font-family: var(--font-mono);
  font-size: 0.82rem; color: var(--amber); font-weight: 700;
}
.story-stat.up { background: rgba(45,212,160,0.08); border-color: rgba(45,212,160,0.2); color: var(--emerald); }
.story-stat.down { background: rgba(240,107,138,0.08); border-color: rgba(240,107,138,0.2); color: var(--rose); }

/* â”€â”€ Priority Cards â”€â”€ */
.advisor-priorities { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.25rem; }
.priority-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1rem 1.1rem;
  position: relative; overflow: hidden; cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.priority-card:hover { transform: translateX(-2px); }
.priority-card::before {
  content: ''; position: absolute; top: 0; bottom: 0; right: 0;
  width: 3px; border-radius: 0 var(--r) var(--r) 0;
}
.priority-urgent::before  { background: var(--rose); }
.priority-high::before    { background: var(--amber); }
.priority-normal::before  { background: var(--dim); }
.priority-card:hover { border-color: rgba(255,255,255,0.12); }
.priority-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.priority-body { flex: 1; min-width: 0; }
.priority-title { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.priority-desc  { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.priority-badge {
  font-size: 0.62rem; font-weight: 700; padding: 2px 7px;
  border-radius: 100px; flex-shrink: 0; margin-top: 2px;
  border: 1px solid;
}
.badge-urgent { background: rgba(240,107,138,0.1); color: var(--rose); border-color: rgba(240,107,138,0.3); }
.badge-high   { background: rgba(245,166,35,0.1); color: var(--amber); border-color: rgba(245,166,35,0.3); }
.badge-normal { background: rgba(74,74,106,0.2); color: var(--dim); border-color: rgba(74,74,106,0.3); }

/* â”€â”€ Discoveries â”€â”€ */
.advisor-discoveries { display: flex; flex-direction: column; gap: 10px; margin-bottom: 1.25rem; }
.discovery-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,0.025); border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--r); padding: 1rem 1.1rem;
}
.discovery-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.discovery-title { font-size: 0.86rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.discovery-desc  { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* â”€â”€ Growth Plan â”€â”€ */
.advisor-growth { display: flex; flex-direction: column; gap: 0; }
.growth-step {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
  position: relative;
}
.growth-step:last-child { border-bottom: none; }
.growth-timeline {
  display: flex; flex-direction: column; align-items: center;
  flex-shrink: 0; width: 28px;
}
.growth-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--amber); border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px rgba(245,166,35,0.3);
  flex-shrink: 0; margin-top: 5px;
}
.growth-dot.dim { background: var(--dim); box-shadow: none; }
.growth-line {
  width: 1px; flex: 1; background: var(--border);
  min-height: 20px; margin-top: 4px;
}
.growth-content { flex: 1; min-width: 0; }
.growth-week {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--amber); margin-bottom: 3px;
}
.growth-week.future { color: var(--dim); }
.growth-title { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.growth-desc  { font-size: 0.77rem; color: var(--muted); line-height: 1.5; }

/* â”€â”€ No Data State â”€â”€ */
.advisor-empty {
  text-align: center; padding: 2rem; color: var(--dim);
  font-size: 0.85rem; line-height: 1.6;
}
.advisor-section-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CLICKABLE STAT CARDS (D)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.stat-card.clickable {
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.stat-card.clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}
.stat-card.clickable:hover .stat-label { color: var(--amber); }

/* Stat detail modal */
.stat-detail-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.22s;
}
.stat-detail-overlay.open { opacity: 1; pointer-events: all; }
.stat-detail-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  width: 100%; max-width: 560px; padding: 1.5rem 1.5rem 2rem;
  transform: translateY(100%); transition: transform 0.28s cubic-bezier(0.32,0,0.67,0);
}
.stat-detail-overlay.open .stat-detail-box { transform: translateY(0); }
.stat-detail-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.stat-detail-title { font-size: 1rem; font-weight: 700; }
.stat-detail-close {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 50%; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.85rem; color: var(--muted);
}
.stat-detail-body { display: flex; flex-direction: column; gap: 12px; }
.stat-detail-big {
  font-size: 2.5rem; font-weight: 900; font-family: var(--font-mono);
  line-height: 1; color: var(--amber);
}
.stat-detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: var(--card); border-radius: var(--r);
  font-size: 0.85rem;
}
.stat-detail-row span:first-child { color: var(--muted); }
.stat-detail-row span:last-child  { font-weight: 700; font-family: var(--font-mono); color: var(--text); }
.stat-detail-funnel {
  display: flex; flex-direction: column; gap: 6px;
}
.funnel-step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--card); border-radius: var(--r);
  border-right: 3px solid;
}
.funnel-label { flex: 1; font-size: 0.83rem; color: var(--muted); }
.funnel-val   { font-family: var(--font-mono); font-size: 1rem; font-weight: 800; }
.funnel-pct   { font-size: 0.7rem; color: var(--dim); margin-top: 1px; }
.stat-detail-tip {
  background: var(--amber-glow); border: 1px solid var(--restaurant-glow-25);
  border-radius: var(--r); padding: 10px 14px; font-size: 0.82rem;
  color: var(--amber); line-height: 1.6;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   CHEF'S PICKS PANEL (A)
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.chef-picks-list { display: flex; flex-direction: column; gap: 8px; }
.chef-pick-row {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 12px 14px;
  transition: border-color 0.15s;
}
.chef-pick-row.is-featured {
  border-color: rgba(245,166,35,0.35);
  background: linear-gradient(135deg, var(--card), rgba(245,166,35,0.04));
}
.chef-pick-top {
  display: flex; align-items: center; gap: 12px;
}
.chef-pick-img {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover;
  background: var(--surface); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.chef-pick-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.chef-pick-info { flex: 1; min-width: 0; }
.chef-pick-name { font-size: 0.88rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chef-pick-cat  { font-size: 0.72rem; color: var(--muted); margin-top: 1px; }
.chef-pick-discount {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.chef-disc-label { font-size: 0.75rem; color: var(--muted); flex-shrink: 0; }
.chef-disc-select {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 5px 8px; font-size: 0.78rem;
  color: var(--text); font-family: var(--font-ar);
}
.chef-disc-input {
  width: 70px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 5px 8px; font-size: 0.78rem;
  color: var(--text); font-family: var(--font-mono); text-align: center;
}
.chef-disc-save {
  background: var(--amber-glow); color: var(--amber);
  border: 1px solid var(--restaurant-glow-25);
  border-radius: var(--r-sm); padding: 5px 12px; font-size: 0.75rem;
  font-weight: 700; cursor: pointer; font-family: var(--font-ar);
  white-space: nowrap;
}
.chef-disc-save:hover { background: rgba(245,166,35,0.2); }
.chef-pick-empty {
  text-align: center; padding: 3rem 2rem; color: var(--dim); font-size: 0.85rem;
}
.chef-filter-tabs {
  display: flex; gap: 6px; margin-bottom: 1rem; flex-wrap: wrap;
}
.chef-filter-btn {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 5px 14px; font-size: 0.78rem;
  color: var(--muted); cursor: pointer; font-family: var(--font-ar);
  transition: all 0.15s;
}
.chef-filter-btn.active {
  background: var(--amber-glow); color: var(--amber);
  border-color: var(--restaurant-glow-25);
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HAMBURGER MENU BUTTON
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.menu-hamburger-btn {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 36px; height: 36px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; cursor: pointer;
  padding: 0; transition: background 0.2s;
}
.menu-hamburger-btn:hover { background: rgba(255,255,255,0.15); }
.menu-hamburger-btn span {
  display: block; width: 16px; height: 2px;
  background: rgba(255,255,255,0.85); border-radius: 2px; transition: all 0.2s;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   HAMBURGER SHEET MENU LIST
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.hb-menu-list { display: flex; flex-direction: column; gap: 4px; }
.hb-menu-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: var(--r-sm); cursor: pointer; transition: background 0.15s;
  border: 1px solid transparent;
}
.hb-menu-item:hover { background: var(--surface); border-color: var(--border); }
.hb-menu-item-icon { font-size: 1.4rem; width: 32px; text-align: center; flex-shrink: 0; }
.hb-menu-item-text { flex: 1; }
.hb-menu-item-label { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.hb-menu-item-sub   { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.hb-menu-item-arrow { color: var(--dim); font-size: 0.8rem; }
.hb-social-section  { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.hb-social-grid     { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hb-social-link {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.8rem; color: var(--text);
  text-decoration: none; transition: all 0.15s;
}
.hb-social-link:hover { border-color: var(--restaurant-color); color: var(--restaurant-color); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RATING SHEET
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.rating-sheet-title {
  font-size: 1.05rem; font-weight: 800; text-align: center; margin-bottom: 6px;
}
.rating-sheet-sub {
  font-size: 0.82rem; color: var(--muted); text-align: center; margin-bottom: 1.5rem;
}
.rating-stars-row {
  display: flex; justify-content: center; gap: 10px; margin-bottom: 1.5rem;
}
.rating-star-btn {
  font-size: 2.2rem; background: none; border: none; cursor: pointer;
  transition: transform 0.15s, filter 0.15s; filter: grayscale(0.7);
  padding: 4px;
}
.rating-star-btn { color: var(--dim); }
.rating-star-btn.lit  { filter: none; transform: scale(1.15); color: var(--amber); }
.rating-star-btn:hover { transform: scale(1.2); filter: none; color: var(--amber); }
.rating-comment-wrap { margin-bottom: 1rem; }
.rating-comment-label { font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; }
.rating-comment-input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 14px; font-family: var(--font-ar);
  font-size: 0.9rem; color: var(--text); resize: none; box-sizing: border-box;
}
.rating-name-row { display: flex; gap: 10px; margin-bottom: 1rem; }
.rating-name-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 9px 12px; font-family: var(--font-ar);
  font-size: 0.85rem; color: var(--text); box-sizing: border-box;
}
.rating-complaint-note {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--r-sm); padding: 10px 14px; font-size: 0.82rem;
  color: #f87171; margin-bottom: 1rem; text-align: center;
}
.complaint-code-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem; text-align: center; margin-bottom: 1rem;
}
.complaint-code-label { font-size: 0.78rem; color: var(--muted); margin-bottom: 8px; }
.complaint-code-value {
  font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700;
  color: var(--amber); letter-spacing: 0.15em;
}
.complaint-check-row { display: flex; gap: 8px; margin-top: 1rem; }
.complaint-check-input {
  flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 9px 12px; font-family: var(--font-mono);
  font-size: 0.9rem; color: var(--text); text-transform: uppercase; letter-spacing: 0.1em;
  box-sizing: border-box;
}
.complaint-status-badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; margin-top: 10px;
}
.cst-new      { background: rgba(239,68,68,0.15); color: #f87171; }
.cst-seen     { background: rgba(245,166,35,0.15); color: var(--amber); }
.cst-resolved { background: rgba(34,197,94,0.15); color: #4ade80; }

/* Complaint restaurant reply (customer view) */
.complaint-restaurant-reply {
  margin-top: 12px; padding: 10px 14px;
  background: rgba(255,255,255,0.05); border-radius: 10px;
  border-right: 3px solid var(--amber); text-align: right;
}
.crr-label { font-size: 0.7rem; color: var(--muted); margin-bottom: 4px; }
.crr-text  { font-size: 0.84rem; line-height: 1.7; color: var(--text); }

/* Complaint response in dashboard */
.complaint-response-preview {
  font-size: 0.82rem; color: var(--text); line-height: 1.6;
  padding: 8px 12px; background: rgba(34,197,94,0.07);
  border-right: 3px solid #4ade80; border-radius: 8px; margin-bottom: 4px;
}
.complaint-reply-input { width: 100%; box-sizing: border-box; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   REVIEWS SHEET
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.reviews-sheet-header {
  display: flex; align-items: center; gap: 12px; margin-bottom: 1.25rem;
}
.reviews-avg-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--amber-glow); border: 2px solid var(--amber);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.reviews-avg-num { font-size: 1.1rem; font-weight: 900; color: var(--amber); line-height: 1; }
.reviews-avg-stars { font-size: 0.55rem; color: var(--amber); }
.reviews-header-text { flex: 1; }
.reviews-header-count { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.reviews-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 10px;
}
.reviews-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.reviews-card-name { font-weight: 700; font-size: 0.88rem; flex: 1; }
.reviews-card-stars { font-size: 0.85rem; color: var(--amber); }
.reviews-card-date  { font-size: 0.7rem; color: var(--dim); }
.reviews-card-comment { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.reviews-empty {
  text-align: center; padding: 3rem 2rem; color: var(--dim); font-size: 0.85rem;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MOOD FAB BUTTON
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.mood-fab {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 14px; cursor: pointer;
  font-family: var(--font-ar); font-size: 0.85rem; color: var(--text);
  transition: all 0.2s; white-space: nowrap;
}
.mood-fab:hover { border-color: var(--restaurant-color); background: var(--restaurant-glow-15); }
.mood-fab.active { border-color: var(--restaurant-color); background: var(--restaurant-glow-15); color: var(--restaurant-color); }
.mood-fab-icon  { font-size: 1.1rem; }
.mood-fab-label { font-size: 0.82rem; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   MOOD PICKER SHEET
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.mood-picker-grid { display: flex; flex-direction: column; gap: 10px; }
.mood-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); cursor: pointer; transition: all 0.2s;
}
.mood-card:hover { border-color: var(--restaurant-color); background: var(--restaurant-glow-15); }
.mood-card.selected { border-color: var(--restaurant-color); background: var(--restaurant-glow-15); }
.mood-card-icon { font-size: 2rem; flex-shrink: 0; }
.mood-card-body { flex: 1; }
.mood-card-name   { font-weight: 700; font-size: 0.95rem; }
.mood-card-reason { font-size: 0.75rem; color: var(--muted); margin-top: 3px; line-height: 1.5; }

/* Mood active banner in menu */
.mood-active-banner {
  background: var(--restaurant-glow-15); border: 1px solid var(--restaurant-glow-25);
  border-radius: var(--r-sm); padding: 12px 16px; margin: 0 1rem 1rem;
  display: flex; align-items: center; gap: 12px;
}
.mood-active-icon  { font-size: 1.6rem; }
.mood-active-text  { flex: 1; }
.mood-active-name  { font-weight: 700; font-size: 0.88rem; color: var(--restaurant-color); }
.mood-active-reason{ font-size: 0.75rem; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.mood-clear-btn {
  background: none; border: 1px solid var(--border); border-radius: 100px;
  padding: 4px 10px; font-size: 0.72rem; color: var(--muted); cursor: pointer;
  font-family: var(--font-ar); white-space: nowrap;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ADMIN REVIEWS PANEL
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.reviews-tabs {
  display: flex; gap: 6px; margin-bottom: 1.25rem;
}
.reviews-tab-btn {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 18px; font-size: 0.82rem;
  color: var(--muted); cursor: pointer; font-family: var(--font-ar);
  transition: all 0.15s;
}
.reviews-tab-btn.active {
  background: var(--amber-glow); color: var(--amber);
  border-color: var(--restaurant-glow-25);
}
.rev-admin-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 10px;
}
.rev-admin-top {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap;
}
.rev-admin-name  { font-weight: 700; font-size: 0.88rem; flex: 1; }
.rev-admin-stars { font-size: 0.85rem; color: var(--amber); }
.rev-admin-date  { font-size: 0.7rem; color: var(--dim); }
.rev-admin-comment { font-size: 0.84rem; color: var(--muted); margin-bottom: 10px; line-height: 1.7; }
.rev-admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.rev-status-btn {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 4px 12px; font-size: 0.72rem;
  cursor: pointer; font-family: var(--font-ar); color: var(--muted); transition: all 0.15s;
}
.rev-status-btn:hover { color: var(--amber); border-color: var(--amber); }
.rev-status-btn.active-btn { background: var(--amber-glow); color: var(--amber); border-color: var(--amber); }
.rev-admin-status {
  display: inline-block; padding: 2px 10px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 700; margin-right: auto;
}
.rev-s-pending  { background: rgba(148,163,184,0.15); color: var(--muted); }
.rev-s-approved { background: rgba(34,197,94,0.15); color: #4ade80; }
.rev-s-hidden   { background: rgba(239,68,68,0.12); color: #f87171; }
.rev-s-new      { background: rgba(239,68,68,0.15); color: #f87171; }
.rev-s-seen     { background: rgba(245,166,35,0.15); color: var(--amber); }
.rev-s-resolved { background: rgba(34,197,94,0.15); color: #4ade80; }
.rev-phone-link { font-size: 0.75rem; color: var(--muted); font-family: var(--font-mono); }
.rev-code-chip  { font-family: var(--font-mono); font-size: 0.72rem; color: var(--amber); background: var(--amber-glow); padding: 2px 8px; border-radius: 4px; }
.reviews-badge  {
  display: inline-block; background: #ef4444; color: #fff;
  border-radius: 100px; font-size: 0.6rem; font-weight: 700;
  padding: 1px 5px; margin-right: 6px; min-width: 16px; text-align: center;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   ADMIN MOODS PANEL
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.mood-admin-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 10px;
  display: flex; align-items: flex-start; gap: 14px;
}
.mood-admin-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.mood-admin-body { flex: 1; min-width: 0; }
.mood-admin-name   { font-weight: 700; font-size: 0.92rem; margin-bottom: 4px; }
.mood-admin-reason { font-size: 0.78rem; color: var(--muted); line-height: 1.6; margin-bottom: 8px; }
.mood-admin-items  { font-size: 0.75rem; color: var(--dim); }
.mood-admin-actions { display: flex; gap: 6px; flex-shrink: 0; align-items: flex-start; }
.mood-item-tag {
  display: inline-block; background: var(--amber-glow); color: var(--amber);
  border-radius: 100px; padding: 2px 8px; font-size: 0.7rem; margin: 2px 2px 0 0;
}
#moodItemsSelector .mood-item-check-row {
  display: flex; align-items: center; gap: 8px; padding: 5px 4px;
  border-radius: 4px; cursor: pointer; transition: background 0.1s;
}
#moodItemsSelector .mood-item-check-row:hover { background: var(--surface); }
#moodItemsSelector .mood-item-check-row input { accent-color: var(--amber); }

/* â”€â”€ Modifier Groups (customer lightbox) â”€â”€ */
.modifier-group { margin-bottom: 1.1rem; }
.modifier-group-label {
  font-size: 0.82rem; font-weight: 700; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.modifier-required-badge {
  font-size: 0.65rem; background: var(--rose); color: #fff;
  padding: 1px 6px; border-radius: 100px; font-weight: 700;
}
.modifier-options-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.modifier-pill {
  padding: 6px 13px; border-radius: 100px; font-size: 0.82rem; cursor: pointer;
  border: 1.5px solid var(--border); background: var(--surface);
  transition: all 0.15s; user-select: none; white-space: nowrap;
}
.modifier-pill:hover { border-color: var(--amber); }
.modifier-pill.selected {
  background: var(--amber); color: #000; border-color: var(--amber); font-weight: 700;
}
.modifier-pill-price { font-size: 0.73rem; opacity: 0.75; margin-right: 3px; }

/* â”€â”€ Modifier Groups (dashboard admin) â”€â”€ */
.mod-group-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px;
}
.mod-group-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; gap: 10px;
}
.mod-group-card-title { font-weight: 700; font-size: 0.9rem; }
.mod-group-card-meta { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.mod-group-actions { display: flex; gap: 6px; }
.mod-options-list { display: flex; flex-wrap: wrap; gap: 7px; }
.mod-option-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.78rem;
}
.mod-option-tag-price { color: var(--amber); font-weight: 700; font-size: 0.72rem; }
.mod-option-tag-del {
  cursor: pointer; color: var(--muted); font-size: 0.7rem;
  background: none; border: none; padding: 0; line-height: 1;
}
.mod-option-tag-del:hover { color: var(--rose); }
.mod-option-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 7px; flex-wrap: wrap;
}
.mod-option-row input { flex: 1; min-width: 100px; }

/* â”€â”€ Modifier selector in product edit modal â”€â”€ */
.mod-selector-chip {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  padding: 5px 11px; border-radius: 100px; font-size: 0.78rem;
  border: 1.5px solid var(--border); background: var(--surface);
  transition: all 0.15s; user-select: none;
}
.mod-selector-chip.selected {
  background: var(--amber); color: #000; border-color: var(--amber); font-weight: 700;
}
.mod-selector-chip input { display: none; }

/* ── Coupons (dashboard) — ticket style defined at bottom of file ── */

/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   STORIES
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

/* â”€â”€ Logo Ring â”€â”€ */
.menu-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 3px;
  background: transparent;
  cursor: default;
  transition: transform 0.2s;
}
.menu-logo-wrap.has-stories {
  background: linear-gradient(135deg, #ffe066 0%, #ffd700 25%, #daa520 50%, #b8860b 75%, #ffd700 100%);
  background-size: 400% 400%;
  animation: sv-ring-spin 2s linear infinite;
  cursor: pointer;
}
.menu-logo-wrap.has-stories:active { transform: scale(0.95); }
@keyframes sv-ring-spin {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.sv-story-hint {
  font-size: 0.68rem; font-weight: 700;
  color: #daa520; text-align: center;
  margin-top: 3px; letter-spacing: 0.5px;
}

/* â”€â”€ Story Viewer Overlay â”€â”€ */
.story-viewer-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 10000;
  background: #000;
  flex-direction: column; align-items: center; justify-content: center;
  user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.story-viewer-overlay.open { display: flex; }

/* 9:16 frame */
.sv-frame {
  position: relative;
  width: 100%;
  max-width: min(100vw, calc(96vh * 9 / 16));
  height: min(100dvh, 96dvh);
  max-height: 96dvh;
  overflow: hidden;
  border-radius: 0;
  background: #111;
  flex-shrink: 0;
}
@media (min-width: 500px) { .sv-frame { border-radius: 18px; } }

/* Progress bars */
.sv-progress-row {
  position: absolute;
  top: 10px; left: 8px; right: 8px;
  display: flex; gap: 3px; z-index: 15;
  direction: ltr;
}
.sv-progress-item {
  flex: 1; height: 2.5px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px; overflow: hidden;
  direction: ltr;
}
.sv-progress-fill {
  height: 100%; width: 0;
  background: #fff;
  border-radius: 2px;
  transform-origin: left center;
}
.sv-progress-fill.done { width: 100%; }
.sv-progress-fill.animating {
  animation: sv-progress-anim 4s linear forwards;
}
@keyframes sv-progress-anim {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Header bar: restaurant info + close */
.sv-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 20px 12px 10px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 14;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
}
.sv-rest-info {
  display: flex; align-items: center; gap: 9px;
}
.sv-rest-logo {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; overflow: hidden; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.sv-rest-meta {
  display: flex; flex-direction: column; gap: 1px;
}
.sv-rest-name {
  font-size: 0.82rem; font-weight: 700; color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.sv-header-time {
  font-size: 0.68rem; color: rgba(255,255,255,0.7);
}
.sv-close-btn {
  background: rgba(0,0,0,0.4);
  border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  font-size: 0.9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  flex-shrink: 0;
}

/* Tap zones */
.sv-tap-zone {
  position: absolute; top: 0; bottom: 0; width: 40%;
  z-index: 10; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sv-tap-left  { left: 0; }
.sv-tap-right { right: 0; }

/* Story image */
.sv-image {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0; z-index: 1;
  user-select: none; -webkit-user-drag: none; pointer-events: none;
}

/* Stickers overlay */
.sv-stickers {
  position: absolute; inset: 0; z-index: 12;
  pointer-events: none;
}
.sv-sticker {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  max-width: 80%;
}
.sv-sticker-text {
  font-size: 1.1rem; font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  text-align: center; white-space: pre-wrap;
  background: rgba(0,0,0,0.25);
  padding: 5px 10px; border-radius: 8px;
  backdrop-filter: blur(4px);
}
.sv-sticker-emoji {
  font-size: 2.8rem; line-height: 1; text-align: center;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.sv-sticker-poll, .sv-sticker-question {
  background: rgba(255,255,255,0.96);
  border-radius: 16px;
  padding: 12px 14px;
  min-width: 200px; max-width: 240px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  font-size: 0.82rem;
}
.sv-poll-q, .sv-qa-prompt {
  font-weight: 800; color: #111;
  font-size: 0.88rem; text-align: center;
  margin-bottom: 10px; direction: rtl;
}
.sv-poll-opts { display: flex; gap: 8px; flex-direction: column; }
.sv-poll-opt {
  background: #f0f0f0;
  border: 2px solid #ddd; border-radius: 10px;
  padding: 7px 12px; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; color: #222;
  transition: background 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
  direction: rtl; text-align: center;
}
.sv-poll-opt:active { transform: scale(0.96); background: #e8e8e8; }
.sv-poll-results { display: flex; flex-direction: column; gap: 6px; }
.sv-poll-res-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; direction: rtl;
}
.sv-poll-res-item.my-pick .sv-poll-res-label { font-weight: 800; }
.sv-poll-res-label { flex: 0 0 auto; max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #222; }
.sv-poll-res-bar { flex: 1; height: 6px; background: #e8e8e8; border-radius: 3px; overflow: hidden; }
.sv-poll-res-fill { height: 100%; background: linear-gradient(90deg, #ffd700, #f59e0b); border-radius: 3px; transition: width 0.5s ease; }
.sv-poll-res-pct { flex: 0 0 auto; font-weight: 700; color: #555; font-size: 0.72rem; }
.sv-qa-form { display: flex; gap: 6px; margin-top: 6px; }
.sv-qa-input {
  flex: 1; border: 1.5px solid #ddd; border-radius: 8px;
  padding: 6px 10px; font-size: 0.78rem; outline: none;
  direction: rtl;
}
.sv-qa-input:focus { border-color: #f59e0b; }
.sv-qa-send {
  background: #f59e0b; color: #fff;
  border: none; border-radius: 8px;
  padding: 6px 10px; font-size: 0.78rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
}
.sv-qa-done {
  text-align: center; color: #16a34a;
  font-size: 0.82rem; font-weight: 700; padding: 4px 0;
}

/* Bottom gradient */
.sv-gradient {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 70%;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0) 100%);
  z-index: 5; pointer-events: none;
}

/* Text overlay */
.sv-text {
  position: absolute; bottom: 140px; left: 0; right: 0;
  padding: 0 1.25rem; z-index: 6;
  direction: rtl; text-align: right; pointer-events: none;
}
.sv-title {
  font-size: 1.1rem; font-weight: 800; color: #fff;
  line-height: 1.3; margin-bottom: 0.3rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}
.sv-body {
  font-size: 0.88rem; color: rgba(255,255,255,0.88);
  line-height: 1.55; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Reactions */
.sv-reactions {
  position: absolute; bottom: 80px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
  z-index: 11; padding: 0 1rem;
}
.sv-reaction-btn {
  background: rgba(255,255,255,0.18);
  border: none; border-radius: 50px;
  font-size: 1.4rem; padding: 6px 10px;
  cursor: pointer; transition: transform 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent; line-height: 1;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sv-reaction-btn:active { transform: scale(0.82); }
.sv-reaction-btn.reacted {
  background: rgba(255,255,255,0.4);
  transform: scale(1.15);
}

/* Comment area */
.sv-comment-area {
  position: absolute; bottom: 14px; left: 0; right: 0;
  z-index: 11; padding: 0 12px;
}
.sv-comment-toggle {
  width: 100%; background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 22px;
  color: rgba(255,255,255,0.8); padding: 9px 20px;
  font-size: 0.82rem; cursor: pointer; text-align: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: transparent;
}
.sv-comment-form {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.sv-comment-input {
  flex: 1; min-width: 0;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 22px; color: #fff;
  padding: 8px 14px; font-size: 0.82rem; outline: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.sv-comment-input::placeholder { color: rgba(255,255,255,0.55); }
.sv-comment-input:focus { border-color: rgba(255,255,255,0.6); }
.sv-comment-submit {
  background: #fff; color: #111;
  border: none; border-radius: 22px;
  padding: 8px 16px; font-size: 0.82rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.sv-comment-done {
  text-align: center; color: #7fff7f;
  font-size: 0.85rem; font-weight: 700; padding: 8px 0;
}

/* â”€â”€ Stories Dashboard â”€â”€ */
.story-new-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  width: 100px; height: 140px;
  border: 2px dashed var(--border); border-radius: var(--r);
  cursor: pointer; color: var(--muted);
  font-size: 0.8rem; font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
  background: var(--surface);
}
.story-new-btn:hover { border-color: var(--amber); color: var(--amber); }

/* Story Editor Modal */
.se-overlay {
  position: fixed; inset: 0; z-index: 20000;
  background: #000;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.se-modal {
  width: 100%; max-width: 420px; height: 100dvh;
  display: flex; flex-direction: column;
  background: #000; position: relative;
}
.se-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0,0,0,0.85);
  position: relative; z-index: 10;
}
.se-header-title { color: #fff; font-size: 0.88rem; font-weight: 700; }
.se-cancel-btn {
  background: none; border: none; color: rgba(255,255,255,0.8);
  font-size: 0.82rem; cursor: pointer; padding: 4px 6px;
}
.se-publish-btn {
  background: var(--amber); color: #000;
  border: none; border-radius: 20px;
  padding: 7px 18px; font-size: 0.85rem; font-weight: 800;
  cursor: pointer;
}
.se-publish-btn:disabled { opacity: 0.6; cursor: wait; }

.se-canvas-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 8px;
}
.se-canvas {
  position: relative;
  width: 100%; aspect-ratio: 9/16;
  max-height: calc(100dvh - 200px);
  max-width: min(100%, calc((100dvh - 200px) * 9 / 16));
  border-radius: 12px; overflow: hidden; background: #222;
}
.se-canvas > img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; pointer-events: none; user-select: none;
}
.se-stickers-layer {
  position: absolute; inset: 0;
}
.se-sticker-item {
  position: absolute; transform: translate(-50%, -50%);
  cursor: grab; touch-action: none;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   RESTRANCE MENU PAGE â€” v2
   Reference: deepseek_html_20260522_61a548.html (copied faithful)
   Scoped under #menu-page to avoid conflicts with other pages
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Local tokens (reference variables mapped to our system) â”€â”€ */
#menu-page {
  --amber-light: #f7b84d;
  --text-muted:  var(--muted);
  --transition:  all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   28px;
  --spacing-xs:  4px;
  --spacing-sm:  8px;
  --spacing-md:  16px;
  --spacing-lg:  24px;
  --spacing-xl:  32px;
  width: 100%;
  min-height: 100vh;
  background: var(--void);
  font-family: var(--font-ar), sans-serif;
  color: var(--text);
  /* NO overflow-x:hidden here — it breaks position:sticky on cat-tabs-wrap */
  position: relative;
}

/* ── Ambient orb ── */
#menu-page .bg-orb {
  position: fixed;
  top: 10%; right: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, var(--amber-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── App container ── */
#menu-page .app {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-xl);
}

/* Lock layout containers to RTL — JS changes #menu-page dir for text only */
#menu-page .glass-header,
#menu-page .action-strip,
#menu-page .info-row,
#menu-page .cat-tabs-wrap,
#menu-page .cat-tabs,
#menu-page .footer { direction: rtl; }

/* ══════════════════════════════
   GLASS HEADER
══════════════════════════════ */
#menu-page .glass-header {
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

#menu-page .header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;  /* never wrap — controls stay on same line */
  gap: var(--spacing-sm);
}

#menu-page .brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  min-width: 0;  /* allow brand to shrink instead of pushing header-actions down */
  flex: 1;
}

/* Logo ring (story trigger) */
#menu-page .logo-ring {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  animation: menuRingPulse 2.5s ease-in-out infinite;
}
@keyframes menuRingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(245,166,35,0); }
}
#menu-page .logo-ring-inner {
  width: 48px; height: 48px;
  background: var(--surface);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

/* Restaurant name & tagline */
#menu-page .logo { min-width: 0; }
#menu-page .logo .menu-restaurant-name,
#menu-page .logo h1 {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--amber));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#menu-page .logo p,
#menu-page .logo .menu-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Header right controls */
#menu-page .header-actions {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
  flex-shrink: 0;  /* never shrink — always stays on same row as brand */
}

/* Story hint pill */
#menu-page .sv-story-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--amber);
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.25);
  padding: 3px 10px;
  border-radius: 40px;
}
#menu-page .story-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: storyBlink 1.2s ease-in-out infinite;
}
@keyframes storyBlink {
  0%,100% { opacity:1; } 50% { opacity:0.25; }
}

/* Lang switch */
#menu-page .lang-switch {
  background: rgba(255,255,255,0.04);
  border-radius: 40px;
  padding: 4px;
  border: 1px solid var(--border);
  display: flex;
}
#menu-page .lang-btn {
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  font-family: inherit;
}
#menu-page .lang-btn.active {
  background: var(--amber);
  color: #0a0a0a;
}

/* Hamburger */
#menu-page .hamburger {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: var(--transition);
}
#menu-page .hamburger:hover { border-color: var(--amber); }
#menu-page .hamburger span {
  display: block;
  width: 16px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Info row */
#menu-page .info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}
#menu-page .status-badge {
  background: rgba(45,212,160,0.12);
  border: 1px solid rgba(45,212,160,0.2);
  color: var(--emerald);
  padding: 5px 12px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
#menu-page .status-badge.closed {
  background: rgba(240,107,138,0.1);
  border-color: rgba(240,107,138,0.2);
  color: var(--rose);
}
#menu-page .status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  animation: storyBlink 1.5s ease-in-out infinite;
}

/* Rating badge (class used by JS querySelector!) */
#menu-page .rating-badge {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 40px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  cursor: pointer;
}

/* ══════════════════════════════
   ACTION STRIP
══════════════════════════════ */
#menu-page .action-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
}
#menu-page .action-chip {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}
#menu-page .action-chip:hover {
  border-color: var(--amber);
  color: var(--amber-light);
  transform: translateY(-2px);
}
#menu-page .action-chip.whatsapp {
  background: rgba(37,211,102,0.12);
  border-color: rgba(37,211,102,0.4);
  color: #4ade80;
}
#menu-page .action-chip.whatsapp:hover {
  background: rgba(37,211,102,0.2);
  color: #25D366;
  box-shadow: 0 4px 12px rgba(37,211,102,0.2);
}
/* Delivery active state */
#menu-page #deliveryFab.delivery-active {
  background: rgba(245,166,35,0.15);
  border-color: var(--amber);
  color: var(--amber);
}

/* ══════════════════════════════
   PROMO CARD
══════════════════════════════ */
#menu-page .promo-card {
  background: linear-gradient(135deg, rgba(245,166,35,0.08), rgba(0,0,0,0.2));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  margin: var(--spacing-md) 0 var(--spacing-md);
  display: block;  /* JS injects carousel inside — block lets it take full width */
  cursor: pointer;
  transition: var(--transition);
}
/* Carousel slide inside promo card */
#menu-page .promo-carousel-slide.active {
  display: flex;
  align-items: center;
  gap: 12px;
}
#menu-page .promo-banner-text { flex: 1; font-size: 0.88rem; font-weight: 600; }
#menu-page .promo-banner-icon { font-size: 1.3rem; flex-shrink: 0; }
#menu-page .promo-banner-arrow { color: var(--amber); flex-shrink: 0; }
#menu-page .promo-carousel-dots { display: flex; gap: 5px; justify-content: center; margin-top: 8px; }
#menu-page .promo-card:hover {
  border-color: var(--amber);
  box-shadow: 0 0 20px var(--amber-glow);
}

/* ── Table mode banner (our extra, same spirit) ── */
#menu-page .table-mode-banner {
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: #0a0a0a;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  margin-bottom: var(--spacing-md);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--amber-glow);
}

/* ══════════════════════════════
   SEARCH
══════════════════════════════ */
#menu-page .search-glass {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 60px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: var(--spacing-sm) 0 var(--spacing-md);
  transition: var(--transition);
}
#menu-page .search-glass:focus-within {
  border-color: var(--amber);
  box-shadow: 0 0 15px var(--amber-glow);
}
#menu-page .search-glass input,
#menu-page #menuSearchInput {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
}
#menu-page .search-glass input::placeholder,
#menu-page #menuSearchInput::placeholder { color: var(--text-muted); }
#menu-page #menuSearchClear {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}
#menu-page #menuSearchClear:hover { color: var(--rose); }

/* Loading state */
#menu-page .loading-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 2;
}

/* Footer */
#menu-page .footer {
  text-align: center;
  padding: 24px;
  font-size: 0.65rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
#menu-page .footer strong { color: var(--amber); }

/* ══════════════════════════════
   CATEGORY TABS (JS-generated)
   .cat-tabs-wrap → .category-section
   .cat-tabs → .category-scroll
   .cat-tab → .cat-item
══════════════════════════════ */
#menu-page .cat-tabs-wrap {
  margin: var(--spacing-lg) 0 var(--spacing-md);
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(var(--void) 80%, transparent);
  padding-bottom: 8px;
}
#menu-page .cat-tabs {
  display: flex;
  gap: var(--spacing-sm);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
#menu-page .cat-tabs::-webkit-scrollbar { display: none; }
#menu-page .cat-tab {
  background: transparent;
  border: none;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  position: relative;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#menu-page .cat-tab.active { color: var(--amber-light); }
#menu-page .cat-tab.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 20%; left: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-light));
  border-radius: 2px;
  box-shadow: 0 0 6px var(--amber-glow);
}
#menu-page .cat-tab:hover { color: var(--amber-light); }
#menu-page .cat-icon { font-size: 1rem; }
#menu-page .cat-name { font-size: 0.8rem; }

/* Category section title */
#menu-page .cat-section-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  padding: 8px 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#menu-page .cat-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ══════════════════════════════
   PRODUCT GRID (JS-generated)
   .product-grid → .products-grid
   .product-card → .product-card  (same name, reference style)
   .product-img  → .card-media
   .product-info → .card-body
══════════════════════════════ */
#menu-page .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--spacing-lg);
  margin: 0 0 var(--spacing-xl);
}

#menu-page .product-card {
  display: block;        /* override old flex (row) layout */
  background: var(--card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
#menu-page .product-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, transparent, var(--amber), transparent);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: 0.4s;
  pointer-events: none;
}
#menu-page .product-card:hover::before { opacity: 1; }
#menu-page .product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,166,35,0.5);
  box-shadow: 0 20px 35px rgba(0,0,0,0.5), 0 0 20px var(--amber-glow);
}
#menu-page .product-card.item-unavailable { opacity: 0.55; }

/* Product image area */
#menu-page .product-img {
  position: relative;
  width: 100% !important;     /* override old 110px */
  height: 160px !important;   /* override old 110px height */
  flex-shrink: unset;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245,166,35,0.05), rgba(0,0,0,0.25)) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;           /* no circular shape */
}
#menu-page .product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
#menu-page .product-img > span { font-size: 3rem; filter: drop-shadow(0 0 14px var(--amber-glow)); }
#menu-page .unavail-badge {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
}

/* Product info area */
#menu-page .product-info {
  flex: unset;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
}
#menu-page .product-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
}
#menu-page .product-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.45;
  flex: 1;  /* push footer to bottom regardless of description length */
}
#menu-page .product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;  /* price + button always on same line */
  margin-top: auto;
}
#menu-page .price-wrap { display: flex; align-items: baseline; gap: 6px; }
#menu-page .product-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--amber-light);
  font-family: var(--font-mono);
}
#menu-page .price-original {
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: line-through;
  font-family: var(--font-mono);
}

/* Add-btn: hidden when not in delivery mode — JS toggles .delivery-mode on #menu-page */
#menu-page:not(.delivery-mode) .add-btn {
  display: none !important;
}
#menu-page:not(.delivery-mode) .cart-ctrl-wrap {
  display: none !important;
}

/* Add to cart button */
#menu-page .add-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 700;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  flex-shrink: 0;
}
#menu-page .add-btn:hover {
  background: var(--amber);
  color: #0a0a0a;
  border-color: var(--amber);
  box-shadow: 0 0 14px var(--amber-glow);
  transform: scale(1.1);
}

/* Cart controls (qty +/- when in cart) */
#menu-page .cart-ctrl-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
#menu-page .cart-qty-display {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
  color: var(--amber);
}
#menu-page .dec-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.1rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
#menu-page .dec-btn:hover { background: var(--rose); border-color: var(--rose); color: #fff; }

/* Mood filter banner */
#menu-page .mood-active-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245,166,35,0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: var(--spacing-md);
}
#menu-page .mood-active-icon { font-size: 1.8rem; }
#menu-page .mood-active-text { flex: 1; }
#menu-page .mood-active-name { font-weight: 700; font-size: 0.9rem; }
#menu-page .mood-active-reason { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
#menu-page .mood-clear-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 40px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}
#menu-page .mood-clear-btn:hover { border-color: var(--rose); color: var(--rose); }

/* ══════════════════════════════
   ORDER BAR
══════════════════════════════ */
#menu-page .order-bar,
#orderBar {
  position: fixed;
  bottom: 20px;
  left: 20px; right: 20px;
  background: rgba(8, 8, 12, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 60px;
  padding: 10px 10px 10px 20px;
  display: none;             /* hidden by default — JS adds .visible to show */
  justify-content: space-between;
  align-items: center;
  z-index: 300;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 0 1px var(--amber-glow);
  cursor: pointer;
  transition: var(--transition);
}
/* JS: orderBar.classList.toggle('visible', total > 0 && deliveryMode) */
#menu-page .order-bar.visible,
#orderBar.visible {
  display: flex;
  animation: orderBarSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes orderBarSlideUp {
  from { transform: translateX(-50%) translateY(120%); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}
@media (max-width: 700px) {
  @keyframes orderBarSlideUp {
    from { transform: translateY(120%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }
}
#menu-page .order-bar:hover,
#orderBar:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 16px var(--amber-glow); }
#menu-page .order-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
#menu-page .order-bar-cart-icon { font-size: 1.1rem; }
#menu-page .cart-count-badge,
#menu-page #cartCount {
  background: var(--amber);
  color: #0a0a0a;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 30px;
  font-family: var(--font-mono);
}
#menu-page .order-bar-btn {
  background: var(--amber);
  color: #0a0a0a;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
#menu-page #cartBarTotal {
  color: var(--amber-light);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 700px) {
  #menu-page .app { padding: 12px 12px 100px; }
  #menu-page .product-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  #menu-page .order-bar,
  #orderBar { left: 12px; right: 12px; bottom: 12px; }
}
@media (min-width: 768px) {
  #menu-page .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}
@media (min-width: 1024px) {
  #menu-page .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Lightbox full-width on desktop — override old .lightbox-box max-width */
  #menu-page ~ * .lightbox-box,
  #productLightbox .lightbox-box,
  #cartSheet .lightbox-box,
  #hamburgerSheet .lightbox-box,
  #promoSheet .lightbox-box,
  #ratingSheet .lightbox-box,
  #reviewsSheet .lightbox-box,
  #moodPickerSheet .lightbox-box {
    max-width: min(1000px, 96vw) !important;
  }
  #productLightbox .lightbox-img-wrap { height: 360px !important; }
}
@media (min-width: 1280px) {
  #menu-page .app { padding: var(--spacing-lg) var(--spacing-xl) var(--spacing-xl); }
  #menu-page .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ══ END RESTRANCE MENU PAGE ══ */

.se-sticker-item:active { cursor: grabbing; }
.se-del-btn {
  position: absolute; top: -10px; right: -10px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,0.7); color: #fff;
  border: none; font-size: 0.65rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.se-sticker-text-preview {
  font-size: 1rem; font-weight: 800;
  text-shadow: 0 2px 6px rgba(0,0,0,0.7);
  white-space: nowrap;
  background: rgba(0,0,0,0.25);
  padding: 4px 8px; border-radius: 6px;
  display: block;
}
.se-sticker-emoji-preview { font-size: 2.5rem; line-height: 1; display: block; }
.se-poll-preview, .se-qa-preview {
  background: rgba(255,255,255,0.95); border-radius: 12px;
  padding: 8px 10px; min-width: 140px; font-size: 0.75rem;
}
.se-poll-preview-q, .se-qa-preview { font-weight: 700; color: #111; direction: rtl; text-align: center; }
.se-poll-preview-opt {
  margin-top: 4px; background: #f0f0f0; border-radius: 6px;
  padding: 4px 8px; color: #444; font-size: 0.72rem;
  text-align: center; direction: rtl;
}

/* Sticker config panel */
.se-sticker-panel {
  background: rgba(20,20,20,0.98);
  padding: 14px 16px; border-top: 1px solid rgba(255,255,255,0.1);
}
.se-config-group { display: flex; flex-direction: column; gap: 8px; }
.se-config-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px; color: #fff;
  padding: 9px 12px; font-size: 0.85rem; outline: none;
  direction: rtl;
}
.se-config-input:focus { border-color: var(--amber); }
.se-config-input::placeholder { color: rgba(255,255,255,0.4); }
.se-color-row { display: flex; gap: 10px; align-items: center; }
.se-color-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s;
}
.se-color-btn.active { border-color: #fff; transform: scale(1.2); }
.se-config-add {
  background: var(--amber); color: #000;
  border: none; border-radius: 10px;
  padding: 9px; font-size: 0.85rem; font-weight: 700;
  cursor: pointer;
}
.se-config-cancel {
  background: none; border: none; color: rgba(255,255,255,0.5);
  font-size: 0.78rem; cursor: pointer;
  margin-top: 4px; text-align: center; width: 100%;
}
.se-emoji-grid {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
}
.se-emoji-btn {
  font-size: 1.8rem; background: none; border: none;
  cursor: pointer; padding: 4px; line-height: 1;
  border-radius: 8px; transition: background 0.15s;
}
.se-emoji-btn:hover { background: rgba(255,255,255,0.1); }

/* Toolbar */
.se-toolbar {
  display: flex; justify-content: space-around; align-items: center;
  padding: 10px 0 16px;
  background: rgba(10,10,10,0.95);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.se-tool-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.85); padding: 6px 14px;
  border-radius: 10px; transition: background 0.15s;
}
.se-tool-btn:hover, .se-tool-btn:active { background: rgba(255,255,255,0.1); }
.se-tool-icon { font-size: 1.5rem; line-height: 1; }
.se-tool-text-icon {
  font-size: 1.3rem; font-weight: 900; color: #fff;
  font-style: italic;
}
.se-tool-label { font-size: 0.68rem; color: rgba(255,255,255,0.65); }
.story-card {
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 14px;
  margin-bottom: 8px;
}
.story-card-img {
  width: 48px; height: 64px;
  border-radius: 8px; object-fit: cover; flex-shrink: 0;
}
.story-card-info { flex: 1; min-width: 0; }
.story-card-title { font-weight: 700; font-size: 0.88rem; }
.story-card-meta  { font-size: 0.73rem; color: var(--muted); margin-top: 3px; }
.story-card-views { font-size: 0.72rem; color: var(--emerald); margin-top: 2px; }
.story-card-del {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 1rem; padding: 6px 8px;
  border-radius: var(--r-sm); transition: color 0.15s;
  flex-shrink: 0;
}
.story-card-del:hover { color: var(--rose); }
.story-interactions-btn {
  background: none; border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: 0.72rem;
  color: var(--muted); cursor: pointer; padding: 3px 8px;
  margin-top: 5px; transition: color 0.15s, border-color 0.15s;
}
.story-interactions-btn:hover { color: var(--text); border-color: var(--text); }
.story-interactions-box {
  margin-top: 8px; padding: 8px 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: 0.78rem;
}
.sv-interactions { display: flex; flex-direction: column; gap: 6px; }
.svi-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.svi-emoji { display: inline-flex; align-items: center; gap: 3px; font-size: 1rem; }
.svi-cnt { font-size: 0.75rem; color: var(--muted); }
.svi-comments { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.svi-comment {
  display: flex; gap: 6px; align-items: flex-start;
  padding: 5px 8px; background: var(--surface);
  border-radius: var(--r-sm); font-size: 0.78rem;
}
.svi-name { font-weight: 700; color: var(--amber); white-space: nowrap; }
.svi-text { flex: 1; color: var(--text); }
.svi-time { color: var(--muted); font-size: 0.7rem; white-space: nowrap; }

/* ══ Story expansion v2 ══ */

/* Text-story button */
.story-text-btn {
  background: linear-gradient(135deg, #1a1a2e, #00204a);
  border: 1px dashed rgba(245,166,35,0.4);
  font-weight: 800;
}

/* Countdown sticker -- viewer */
.sv-sticker-countdown {
  background: rgba(0,0,0,0.82); border-radius: 14px;
  padding: 10px 18px; text-align: center; min-width: 130px;
  border: 1px solid rgba(245,166,35,0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.sv-countdown-label { font-size: 0.72rem; color: #f5a623; font-weight: 700; margin-bottom: 4px; }
.sv-countdown-timer {
  font-family: monospace; font-size: 1.8rem; font-weight: 900;
  color: #fff; letter-spacing: 2px; line-height: 1;
}

/* Countdown sticker -- editor preview */
.se-countdown-preview {
  background: rgba(0,0,0,0.7); border-radius: 10px;
  padding: 6px 12px; text-align: center;
  border: 1px solid rgba(245,166,35,0.4);
}
.se-countdown-preview-lbl  { font-size: 0.7rem; color: #f5a623; font-weight: 700; }
.se-countdown-preview-time { font-size: 0.65rem; color: #aaa; margin-top: 2px; }

/* Product sticker -- viewer */
.sv-sticker-product {
  background: rgba(255,255,255,0.95); border-radius: 14px;
  padding: 10px 14px; cursor: pointer;
  min-width: 140px; max-width: 180px; text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.sv-product-img  { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; margin-bottom: 6px; }
.sv-product-name { font-size: 0.82rem; font-weight: 800; color: #111; line-height: 1.3; }
.sv-product-price{ font-size: 0.75rem; color: #666; margin-top: 2px; }
.sv-product-cta  {
  margin-top: 6px; background: #111; color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; display: inline-block;
}

/* Product sticker -- editor preview */
.se-product-preview {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1); border-radius: 10px;
  padding: 6px 10px; font-size: 0.8rem; color: #fff;
}
.se-product-preview-img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }

/* Archive pin button */
.story-pin-btn {
  position: absolute; bottom: 4px; left: 4px;
  background: rgba(0,0,0,0.6); border: none; border-radius: 50%;
  width: 24px; height: 24px; font-size: 0.75rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0.5; transition: opacity 0.15s, transform 0.15s;
}
.story-pin-btn:hover { opacity: 1; transform: scale(1.1); }
.story-pin-btn.pinned { opacity: 1; filter: drop-shadow(0 0 4px #f5a623); }
.story-archive-thumb { position: relative; }
.story-archive-bg {
  width: 100%; aspect-ratio: 9/16; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

/* Highlights row on customer menu */
.menu-highlights-row {
  display: flex; gap: 14px; overflow-x: auto; padding: 8px 16px 4px;
  scrollbar-width: none;
}
.menu-highlights-row::-webkit-scrollbar { display: none; }
.menu-highlight-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; cursor: pointer; flex-shrink: 0;
}
.menu-highlight-ring {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--amber); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.menu-highlight-ring img { width: 100%; height: 100%; object-fit: cover; }
.menu-highlight-ring.text-only { background: #1a1a2e; }
.menu-highlight-label { font-size: 0.62rem; color: var(--text); max-width: 60px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Background color row in editor */
.se-bg-color-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: rgba(0,0,0,0.4);
}
.se-bg-color-label { font-size: 0.72rem; color: rgba(255,255,255,0.6); white-space: nowrap; }
.se-bg-color-btn {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.se-bg-color-btn.active { border-color: #fff; transform: scale(1.15); }

/* Template buttons */
.se-template-btn {
  display: block; width: 100%; text-align: right;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; border-radius: var(--r-sm); padding: 8px 12px;
  font-size: 0.82rem; font-family: var(--font-ar); cursor: pointer;
  margin-bottom: 6px; transition: background 0.15s;
}
.se-template-btn:hover { background: rgba(245,166,35,0.15); }


/* â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”
   COSTING
â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â”â” */

/* â”€â”€ Tabs â”€â”€ */
.costing-tabs {
  display: flex; gap: 6px; margin-bottom: 0;
  border-bottom: 1px solid var(--border); padding-bottom: 0;
}
.costing-tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--muted); font-size: 0.85rem; font-weight: 600;
  padding: 8px 16px; cursor: pointer; transition: all 0.15s;
  margin-bottom: -1px; font-family: var(--font-ar);
}
.costing-tab:hover  { color: var(--text); }
.costing-tab.active { color: var(--amber); border-bottom-color: var(--amber); }

/* â”€â”€ Ingredient Table â”€â”€ */
.ing-table { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.ing-table-head {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr auto;
  gap: 8px; padding: 8px 14px;
  background: var(--surface); font-size: 0.72rem;
  color: var(--muted); font-weight: 700; text-align: right;
}
.ing-table-row {
  display: grid; grid-template-columns: 2fr 1fr 1.5fr 1fr auto;
  gap: 8px; padding: 10px 14px; align-items: center;
  border-top: 1px solid var(--border); transition: background 0.1s;
}
.ing-table-row:hover { background: rgba(255,255,255,0.02); }
.ing-name  { font-weight: 700; font-size: 0.88rem; }
.ing-unit  { font-size: 0.8rem; color: var(--muted); }
.ing-cost  { font-family: var(--font-mono); font-size: 0.82rem; color: var(--amber); }

/* â”€â”€ Recipe Builder â”€â”€ */
.recipe-cost-summary {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 16px;
}
.recipe-line {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; padding: 10px 14px; margin-bottom: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm);
}
.recipe-line-name { font-weight: 700; font-size: 0.85rem; flex: 1; min-width: 80px; }
.recipe-qty-input { width: 80px !important; padding: 6px 10px !important; font-size: 0.85rem !important; }
.recipe-add-row {
  background: rgba(245,166,35,0.05); border: 1.5px dashed var(--amber);
  border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 6px;
}

/* â”€â”€ Recipe Packaging Section â”€â”€ */
.recipe-packaging-section {
  margin-top: 14px; padding: 12px 14px;
  background: rgba(245,166,35,0.05); border: 1px solid rgba(245,166,35,0.2);
  border-radius: var(--r-sm);
}
.recipe-packaging-title {
  font-size: 0.78rem; font-weight: 700; color: var(--amber); margin-bottom: 8px;
}
.pkg-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 3px 10px; font-size: 0.75rem;
  margin: 2px;
}
.pkg-chip-rm {
  background: none; border: none; color: var(--rose);
  cursor: pointer; font-size: 0.9rem; line-height: 1; padding: 0;
}

/* â”€â”€ Advisor Price Cards â”€â”€ */
.advisor-price-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.advisor-price-card {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 12px 16px;
  border-right: 3px solid var(--amber);
}
.advisor-price-card.adopt-done { border-right-color: var(--emerald); opacity: 0.6; }
.apc-name  { font-weight: 700; font-size: 0.88rem; flex: 1; min-width: 100px; }
.apc-meta  { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }
.apc-adopt {
  background: linear-gradient(135deg,var(--amber),var(--gold));
  color: #000; border: none; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; padding: 6px 14px; cursor: pointer;
  white-space: nowrap; flex-shrink: 0;
}
.apc-adopt:disabled { opacity: 0.5; cursor: default; }

/* â”€â”€ Reviews Panel Toggles â”€â”€ */
.reviews-panel-toggles {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.feature-toggle {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer;
}
.feature-toggle input[type=checkbox] {
  width: 16px; height: 16px; cursor: pointer; accent-color: var(--amber);
}

/* â”€â”€ Subscription Warning Bar â”€â”€ */
@keyframes marquee-rtl {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.subscription-bar-marquee {
  white-space: nowrap;
  animation: marquee-rtl 22s linear infinite;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 20px;
  color: #fff;
}
.sub-bar-warning { background: linear-gradient(90deg,#b91c1c,#dc2626); }
.sub-bar-grace   { background: linear-gradient(90deg,#7f1d1d,#991b1b); }
.sub-bar-frozen  { background: linear-gradient(90deg,#374151,#4b5563); }

/* â”€â”€ Admin Expiring List â”€â”€ */
.expiring-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.18);
  border-radius: var(--r); padding: 8px 12px; font-size: 0.82rem;
}
.expiring-badge {
  font-size: 0.68rem; font-weight: 800; padding: 2px 8px;
  border-radius: 100px; color: #fff; white-space: nowrap;
}
.expiring-badge-warning { background: var(--amber); color: #000; }
.expiring-badge-grace   { background: var(--rose); }
.expiring-badge-frozen  { background: #6b7280; }

/* â”€â”€ Admin Notifications List â”€â”€ */
.admin-notif-row {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 14px; margin-bottom: 8px;
}
.admin-notif-row .notif-body { flex: 1; }
.admin-notif-row .notif-title { font-weight: 700; font-size: 0.88rem; margin-bottom: 2px; }
.admin-notif-row .notif-text  { font-size: 0.8rem; color: var(--muted); }
.admin-notif-row .notif-del   {
  background: none; border: none; color: var(--rose);
  cursor: pointer; font-size: 1rem; flex-shrink: 0; padding: 2px 6px;
}

/* â”€â”€ Re-rating link button in complaint row â”€â”€ */
.complaint-rerating-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.73rem; font-weight: 600; color: var(--amber);
  background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.3);
  border-radius: 100px; padding: 3px 10px; cursor: pointer; margin-top: 6px;
  transition: background 0.15s;
}
.complaint-rerating-btn:hover { background: rgba(245,166,35,0.2); }
.complaint-rerating-btn.copied { color: var(--emerald); border-color: var(--emerald); background: rgba(16,185,129,0.1); }

/* ══════════════════════════════════════════════
   OVERVIEW — 2-COLUMN GRID
══════════════════════════════════════════════ */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 272px;
  gap: 1.25rem;
  align-items: start;
}
@media(max-width:1100px) { .overview-grid { grid-template-columns: 1fr 240px; } }
@media(max-width:900px)  { .overview-grid { grid-template-columns: 1fr; } }

.overview-main { min-width: 0; }
.overview-aside { display: flex; flex-direction: column; gap: 1rem; }

/* Stack aside below main on mobile */
@media(max-width:900px) {
  .overview-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media(max-width:560px) {
  .overview-aside { grid-template-columns: 1fr; }
}

/* ── Aside section card ── */
.ov-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.ov-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.ov-card-title {
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}

.ov-card-body { padding: 14px 16px; }

/* ── Compact QR card ── */
.ov-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px;
}

.ov-qr-frame {
  background: #fff;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(245,166,35,0.15);
}

.ov-qr-url {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--dim);
  text-align: center;
  word-break: break-all;
  padding: 6px 10px;
  background: var(--surface);
  border-radius: 6px;
  border: 1px solid var(--border);
  width: 100%;
}

.ov-qr-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.ov-qr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-ar);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  white-space: nowrap;
}
.ov-qr-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }
.ov-qr-btn.primary { background: var(--amber); color: var(--void); border-color: var(--amber); }
.ov-qr-btn.primary:hover { opacity: 0.88; }

/* ── Overview quick actions ── */
.ov-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px;
}

.ov-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 8px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-ar);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.ov-action-btn:hover { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.18); color: var(--text); }
.ov-action-btn.accent { border-color: rgba(245,166,35,0.25); color: var(--amber); background: rgba(245,166,35,0.04); }
.ov-action-btn.accent:hover { background: rgba(245,166,35,0.1); border-color: var(--amber); }

.ov-action-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Overview chart section ── */
.ov-chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

/* ── Overview split row: top products + dead products ── */
.ov-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
@media(max-width:700px) { .ov-split-row { grid-template-columns: 1fr; } }

.ov-split-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.ov-split-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.ov-split-card-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.ov-split-card-body { padding: 0; }

/* ── Pro section in overview ── */
.ov-pro-section {
  margin-bottom: 1rem;
}

/* ── AI Tips card in aside ── */
.ov-ai-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.15s;
}
.ov-ai-tip:last-child { border-bottom: none; }
.ov-ai-tip:hover { background: rgba(255,255,255,0.02); }
.ov-ai-tip-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.ov-ai-tip-text { flex: 1; }
.ov-ai-tip-title { font-weight: 700; color: var(--text); margin-bottom: 2px; }
.ov-ai-tip-desc  { color: var(--muted); font-size: 0.75rem; }

/* period tabs inside main col — tighter */
.overview-main .stat-period-tabs { margin-bottom: 1rem; }

/* ── Topbar simplified ── */
.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* status toggle chip */
.rest-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-ar);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.rest-status-chip.open   { background: rgba(45,212,160,0.12); color: var(--emerald); border: 1px solid rgba(45,212,160,0.3); }
.rest-status-chip.closed { background: rgba(240,107,138,0.08); color: var(--rose);    border: 1px solid rgba(240,107,138,0.3); }
.rest-status-chip .chip-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* â”€â”€ Menu Locked Screen â”€â”€ */
.menu-locked-screen {
  position: fixed; inset: 0; background: var(--void);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; z-index: 9999;
}
.menu-locked-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.menu-locked-title { font-size: 1.2rem; font-weight: 800; color: var(--fg); margin-bottom: 0.5rem; }
.menu-locked-sub   { font-size: 0.85rem; color: var(--dim); max-width: 280px; line-height: 1.7; }

/* â”€â”€ Cost badge in product list â”€â”€ */
.cost-badge {
  font-size: 0.67rem; color: var(--muted);
  display: block; margin-top: 2px; line-height: 1.4;
}
.cost-badge .margin-val { font-weight: 700; }
.margin-good   { color: var(--emerald); }
.margin-medium { color: var(--amber); }
.margin-low    { color: var(--rose); }

/* ═══════════════════════════════════════════════════════════
   NEW LANDING PAGE  —  all selectors scoped under #landing-page
   ═══════════════════════════════════════════════════════════ */

#landing-page {
  background: var(--void);
  overflow-x: hidden;
  color: var(--fg, #e8e8f0);
}

/* Ambient orb */
#landing-page .lp-bg-orb {
  position: fixed;
  top: 10%; right: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(245,166,35,0.25), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Content wrapper */
#landing-page .lp-app {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px 48px;
}

/* ── Glass Header ── */
#landing-page .glass-header {
  background: rgba(8,8,12,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 16px 24px;
  margin-bottom: 32px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
#landing-page .header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
#landing-page .lp-logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg,#fff,var(--amber));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin: 0;
}
#landing-page .lp-logo span { font-size: 1rem; }
#landing-page .brand > p {
  font-size: 0.65rem;
  color: var(--muted);
  margin: 0;
}
#landing-page .lp-nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
#landing-page .lp-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.25s;
}
#landing-page .lp-nav-links a:hover { color: var(--amber); }
#landing-page .lp-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
#landing-page .lp-lang-switch,
#landing-page .lp-currency-switch {
  background: rgba(255,255,255,0.04);
  border-radius: 40px;
  padding: 4px;
  border: 1px solid var(--border);
  display: flex;
}
#landing-page .lp-lang-btn,
#landing-page .lp-currency-btn {
  background: transparent;
  border: none;
  padding: 5px 12px;
  border-radius: 40px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.25s;
  font-family: inherit;
}
#landing-page .lp-lang-btn.active,
#landing-page .lp-currency-btn.active {
  background: var(--amber);
  color: #0a0a0a;
}
#landing-page .lp-btn-outline {
  background: transparent;
  border: 1px solid var(--amber);
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  color: var(--amber);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  white-space: nowrap;
}
#landing-page .lp-btn-outline:hover {
  background: var(--amber);
  color: #0a0a0a;
}
#landing-page .lp-btn-primary {
  background: var(--amber);
  border: none;
  padding: 10px 28px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  color: #0a0a0a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  white-space: nowrap;
}
#landing-page .lp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(245,166,35,0.35);
  color: #0a0a0a;
}

/* ── Hero ── */
#landing-page .lp-hero {
  background: linear-gradient(135deg,rgba(245,166,35,0.08),rgba(0,0,0,0.3));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 64px 48px;
  margin-bottom: 64px;
  text-align: center;
  backdrop-filter: blur(10px);
}
#landing-page .lp-hero-badge {
  background: rgba(245,166,35,0.15);
  color: var(--amber);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.75rem;
  margin-bottom: 24px;
}
#landing-page .lp-hero-h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg,#fff,var(--amber));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  line-height: 1.2;
}
#landing-page .lp-hero-tagline {
  font-size: 1.2rem;
  color: #f7b84d;
  margin-bottom: 16px;
}
#landing-page .lp-hero-desc {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
#landing-page .lp-hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ── Section headings ── */
#landing-page .lp-section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}
#landing-page .lp-section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 48px;
}

/* ── Features grid ── */
#landing-page .lp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
  gap: 24px;
  margin-bottom: 64px;
}
#landing-page .lp-feature-card {
  background: var(--card,#1a1a24);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition: transform 0.25s, border-color 0.25s;
}
#landing-page .lp-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--amber);
}
#landing-page .lp-feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--amber);
}
#landing-page .lp-feature-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}
#landing-page .lp-feature-card p {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Featured In ── */
#landing-page .lp-featured-section {
  text-align: center;
  margin-bottom: 64px;
}
#landing-page .lp-featured-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
  margin-top: 24px;
  opacity: 0.6;
}
#landing-page .lp-featured-logos span {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 1px;
}

/* ── Testimonial ── */
#landing-page .lp-testimonial {
  background: rgba(255,255,255,0.02);
  border-radius: 28px;
  padding: 32px;
  margin-bottom: 64px;
  text-align: center;
  border: 1px solid var(--border);
}
#landing-page .lp-testimonial-icon {
  font-size: 2rem;
  color: var(--amber);
  margin-bottom: 16px;
}
#landing-page .lp-testimonial-text {
  font-size: 1rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 16px;
  line-height: 1.6;
}
#landing-page .lp-testimonial-author {
  font-weight: 600;
  color: #f7b84d;
}

/* ── Pricing ── */
#landing-page .lp-pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 64px;
}
#landing-page .lp-pricing-card {
  background: var(--card,#1a1a24);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  flex: 1;
  min-width: 260px;
  max-width: 310px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  display: flex;
  flex-direction: column;
}
#landing-page .lp-pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--amber);
  box-shadow: 0 20px 35px rgba(0,0,0,0.4);
}
#landing-page .lp-pricing-card.popular {
  border-color: var(--amber);
  background: linear-gradient(135deg,#1a1a24,#13131a);
}
#landing-page .lp-popular-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--amber);
  color: #0a0a0a;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 0.65rem;
  font-weight: 700;
}
#landing-page .lp-pricing-header {
  text-align: center;
  margin-bottom: 24px;
}
#landing-page .lp-pricing-header h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
#landing-page .lp-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}
#landing-page .lp-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--amber);
}
#landing-page .lp-price-sub {
  font-size: 0.7rem;
  color: var(--muted);
}
#landing-page .lp-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}
#landing-page .lp-features-list {
  list-style: none;
  margin: 24px 0;
  flex: 1;
  padding: 0;
}
#landing-page .lp-features-list li {
  padding: 8px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
#landing-page .lp-features-list li:last-child { border-bottom: none; }
#landing-page .lp-features-list li i { width: 16px; font-size: 0.78rem; flex-shrink: 0; margin-top: 2px; }
#landing-page .lp-features-list .fa-check { color: var(--emerald,#2dd4a0); }
#landing-page .lp-features-list .fa-times  { color: #f06b8a; }
#landing-page .lp-features-list li.disabled { opacity: 0.45; }
#landing-page .lp-feature-highlight { color: var(--amber); font-weight: 600; }
#landing-page .lp-pricing-btn {
  width: 100%;
  margin-top: 16px;
  background: transparent;
  border: 1px solid var(--amber);
  color: var(--amber);
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
#landing-page .lp-pricing-btn:hover {
  background: var(--amber);
  color: #0a0a0a;
}

/* ── CTA ── */
#landing-page .lp-cta {
  background: linear-gradient(135deg,rgba(245,166,35,0.1),rgba(0,0,0,0.2));
  border-radius: 28px;
  padding: 48px;
  text-align: center;
  margin-bottom: 64px;
  border: 1px solid var(--border);
}
#landing-page .lp-cta h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}
#landing-page .lp-cta > p {
  color: var(--muted);
  margin-bottom: 24px;
}

/* ── Footer ── */
#landing-page .lp-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
#landing-page .lp-footer-col { flex: 1; min-width: 140px; }
#landing-page .lp-footer-col h4 { margin-bottom: 16px; font-size: 0.9rem; }
#landing-page .lp-footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.7rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}
#landing-page .lp-footer-col a:hover { color: var(--amber); }
#landing-page .lp-social-icons { display: flex; gap: 16px; flex-wrap: wrap; }
#landing-page .lp-social-icons a {
  font-size: 1.2rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
#landing-page .lp-social-icons a:hover { color: var(--amber); }
#landing-page .lp-copyright {
  text-align: center;
  font-size: 0.65rem;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

/* ── WhatsApp FAB (landing page) ── */
.lp-wa-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #25D366;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  transition: transform 0.25s;
}
.lp-wa-fab:hover { transform: scale(1.08); }
.lp-wa-fab i { font-size: 1.8rem; color: #fff; }

/* ── Responsive ── */
@media (max-width: 768px) {
  #landing-page .lp-app { padding: 12px 12px 40px; }
  #landing-page .lp-hero { padding: 40px 20px; }
  #landing-page .lp-hero-h1 { font-size: 2rem; }
  #landing-page .lp-nav-links { display: none; }
  #landing-page .lp-pricing-grid { flex-direction: column; align-items: stretch; }
  #landing-page .lp-pricing-card { max-width: 100%; }
  #landing-page .lp-section-title { font-size: 1.4rem; }
  #landing-page .lp-cta { padding: 32px 20px; }
  #landing-page .lp-features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  #landing-page .lp-features-grid { grid-template-columns: 1fr; }
  #landing-page .lp-header-actions { gap: 6px; }
  #landing-page .lp-hero-h1 { font-size: 1.7rem; }
}
@media (min-width: 1025px) {
  #landing-page .lp-pricing-card { max-width: 300px; }
}

/* ════════════════════════════════════════
   DELIVERY INFO SHEET
════════════════════════════════════════ */
#deliverySheetCard {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--surface, #1a1a1a);
  border-radius: 20px 20px 0 0;
  padding: 0 0 env(safe-area-inset-bottom, 16px);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1);
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
  will-change: transform;
}
#deliverySheetCard.dsh-open { transform: translateY(0); }
.dsh-handle {
  width: 36px; height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  margin: 12px auto 8px;
}
.dsh-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.dsh-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; }
.dsh-icon { font-size: 1.1rem; }
.dsh-close {
  background: rgba(255,255,255,0.08); border: none;
  width: 28px; height: 28px; border-radius: 50%;
  color: rgba(255,255,255,0.5); font-size: 0.8rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.dsh-close:hover { background: rgba(255,255,255,0.14); }
.dsh-body { padding: 6px 20px 12px; }
.dsh-info-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dsh-info-row:last-child { border-bottom: none; }
.dsh-info-icon {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(245,166,35,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.dsh-info-label { font-size: 0.75rem; color: rgba(255,255,255,0.45); margin-bottom: 2px; }
.dsh-info-val { font-size: 0.98rem; font-weight: 700; color: #f5f5f5; }
.dsh-confirm {
  display: block; width: calc(100% - 40px);
  margin: 4px 20px 16px;
  background: linear-gradient(135deg, #f5a623, #e8901a);
  color: #000; border: none; border-radius: 14px;
  padding: 15px; font-size: 0.95rem; font-weight: 800;
  cursor: pointer; letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.dsh-confirm:hover { opacity: 0.9; }

/* ════════════════════════════════════════
   COUPON CARD — TICKET STYLE
════════════════════════════════════════ */
.coupon-card {
  position: relative; overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); margin-bottom: 12px;
  display: flex; align-items: stretch; gap: 0;
  transition: opacity 0.2s;
}
.coupon-card.inactive { opacity: 0.48; }
.coupon-stub {
  background: linear-gradient(160deg, rgba(245,166,35,0.18) 0%, rgba(245,166,35,0.06) 100%);
  border-left: 1px dashed rgba(245,166,35,0.35);
  padding: 18px 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 80px; gap: 3px; flex-shrink: 0;
}

.coupon-stub-val {
  font-size: 1.6rem; font-weight: 900; color: var(--amber);
  line-height: 1; font-family: var(--font-mono);
}
.coupon-stub-type {
  font-size: 0.6rem; color: rgba(245,166,35,0.6);
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
}
.coupon-body {
  flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.coupon-code-badge {
  font-family: var(--font-mono); font-size: 1rem; font-weight: 800;
  letter-spacing: 2.5px; color: var(--text);
}
.coupon-meta { font-size: 0.71rem; color: var(--muted); line-height: 1.7; }
.coupon-actions {
  padding: 12px 10px 12px 0;
  display: flex; flex-direction: column; gap: 6px; justify-content: center; flex-shrink: 0;
}
.coupon-btn-edit, .coupon-btn-del {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: transparent;
  cursor: pointer; transition: all 0.15s;
}
.coupon-btn-edit { color: var(--muted); }
.coupon-btn-edit:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.coupon-btn-del { color: var(--muted); }
.coupon-btn-del:hover { background: rgba(239,68,68,0.1); color: var(--rose); border-color: rgba(239,68,68,0.3); }

/* ════════════════════════════════════════
   SMART ADVISOR — NEW SECTIONS
════════════════════════════════════════ */
.advisor-refresh-row {
  display: flex; justify-content: flex-end; margin-bottom: 10px;
}
.advisor-refresh-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px;
  font-size: 0.72rem; color: var(--muted); cursor: pointer;
  transition: all 0.2s;
}
.advisor-refresh-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }

/* Diagnostics */
.diag-list { display: flex; flex-direction: column; gap: 8px; }
.diag-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 12px 14px;
  transition: border-color 0.2s;
}
.diag-card.diag-warn { border-color: rgba(245,166,35,0.25); }
.diag-card.diag-info { border-color: rgba(96,165,250,0.2); }
.diag-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.diag-body { flex: 1; min-width: 0; }
.diag-title { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.diag-desc { font-size: 0.74rem; color: var(--muted); line-height: 1.5; }
.diag-action-btn {
  flex-shrink: 0; background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.25); border-radius: 8px;
  padding: 5px 10px; font-size: 0.68rem; font-weight: 600;
  color: var(--amber); cursor: pointer; white-space: nowrap;
  transition: all 0.2s;
}
.diag-action-btn:hover { background: rgba(245,166,35,0.2); }

/* Ask Advisor */
.advisor-ask-wrap { margin-top: 8px; }
.advisor-ask-chips {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.ask-chip {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 20px; padding: 5px 12px;
  font-size: 0.73rem; color: var(--muted); cursor: pointer;
  transition: all 0.15s;
}
.ask-chip:hover { background: rgba(245,166,35,0.1); border-color: rgba(245,166,35,0.3); color: var(--amber); }
.advisor-ask-input-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 4px 4px 4px 12px;
}
.advisor-ask-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 0.82rem; font-family: inherit;
  direction: rtl; padding: 6px 0;
}
.advisor-ask-input::placeholder { color: var(--dim); }
.advisor-ask-send {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--amber); border: none; color: #000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: opacity 0.15s;
}
.advisor-ask-send:hover { opacity: 0.85; }
.advisor-ask-answer {
  margin-top: 10px;
  background: rgba(245,166,35,0.06);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: var(--r); padding: 12px 14px;
  font-size: 0.8rem; line-height: 1.7; color: var(--text);
  animation: fadeSlideIn 0.25s ease;
}
.ask-thinking { color: var(--muted); font-size: 0.78rem; text-align: center; }
.ask-q { font-size: 0.72rem; color: var(--muted); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ask-a { line-height: 1.75; }
@keyframes fadeSlideIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

/* ══════════════════════════════
   BELL NOTIFICATIONS
══════════════════════════════ */
.bell-wrap { position: relative; }
.bell-btn {
  position: relative;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted);
  transition: all 0.2s;
}
.bell-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.bell-badge {
  position: absolute;
  top: -5px; left: -5px;
  min-width: 18px; height: 18px;
  background: var(--rose);
  border-radius: 9px;
  font-size: 0.62rem; font-weight: 800;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--void);
  line-height: 1;
  animation: badgePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes badgePop { from { transform: scale(0); } to { transform: scale(1); } }
.bell-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 320px;
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  z-index: 9500;
  opacity: 0;
  transform: translateY(-8px) scale(0.97);
  transform-origin: top left;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  overflow: hidden;
}
.bell-dropdown.bell-dd-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.bell-dd-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.bell-dd-title { font-size: 0.82rem; font-weight: 700; color: var(--text); }
.bell-read-all {
  font-size: 0.68rem; color: var(--amber);
  background: none; border: none; cursor: pointer;
  padding: 0; transition: opacity 0.15s;
}
.bell-read-all:hover { opacity: 0.7; }
#bellNotifItems { max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
.bell-notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
  position: relative;
}
.bell-notif-item:last-child { border-bottom: none; }
.bell-notif-item:hover { background: rgba(255,255,255,0.03); }
.bell-notif-item.bell-unread::before {
  content: "";
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
}
.bell-notif-icon {
  font-size: 1.2rem; flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border-radius: 10px;
}
.bell-notif-body { flex: 1; min-width: 0; }
.bell-notif-title { font-size: 0.78rem; font-weight: 700; color: var(--text); margin-bottom: 2px; line-height: 1.3; }
.bell-notif-text { font-size: 0.7rem; color: var(--muted); line-height: 1.45; }
.bell-notif-time { font-size: 0.62rem; color: var(--dim); margin-top: 4px; }
.bell-notif-dismiss {
  flex-shrink: 0; background: none; border: none;
  color: var(--dim); cursor: pointer; padding: 2px;
  border-radius: 4px; opacity: 0;
  transition: all 0.15s;
  font-size: 0.8rem; line-height: 1;
}
.bell-notif-item:hover .bell-notif-dismiss { opacity: 1; }
.bell-notif-dismiss:hover { color: var(--rose); }
.bell-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 0.78rem; color: var(--dim);
}

/* ══════════════════════════════
   SUBSCRIPTION EXPIRY POPUP
══════════════════════════════ */
#subExpiryPopup {
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
}
.sub-popup-card {
  background: var(--deep);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  transform: scale(0.92) translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s;
}
.sub-popup-card.sub-popup-open {
  transform: scale(1) translateY(0);
  opacity: 1;
}
.sub-popup-icon { font-size: 2.8rem; margin-bottom: 14px; }
.sub-popup-title { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.sub-popup-body { font-size: 0.82rem; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.sub-popup-days {
  display: inline-block;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 30px;
  padding: 6px 18px;
  font-size: 0.82rem; font-weight: 700;
  color: var(--amber);
  margin-bottom: 22px;
}
.sub-popup-actions { display: flex; flex-direction: column; gap: 10px; }
.sub-popup-btn-primary {
  display: block;
  background: linear-gradient(135deg, var(--amber), var(--amber-light));
  color: #000;
  font-size: 0.88rem; font-weight: 800;
  padding: 13px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.sub-popup-btn-primary:hover { opacity: 0.85; }
.sub-popup-btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 10px 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.sub-popup-btn-ghost:hover { background: rgba(255,255,255,0.05); color: var(--text); }

/* ══════════════════════════════
   SETUP ACTIONS CARD
══════════════════════════════ */
.setup-action-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.setup-action-row:last-child { border-bottom: none; }
.setup-action-row:hover { background: rgba(255,255,255,0.03); }
.setup-action-icon {
  font-size: 1.1rem;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,166,35,0.08);
  border-radius: 10px;
  flex-shrink: 0;
}
.setup-action-body { flex: 1; min-width: 0; }
.setup-action-label { font-size: 0.8rem; font-weight: 700; color: var(--text); margin-bottom: 1px; }
.setup-action-desc { font-size: 0.68rem; color: var(--muted); }
.setup-action-arrow { color: var(--dim); font-size: 0.85rem; flex-shrink: 0; }
#setupProgressLabel {
  font-size: 0.7rem; color: var(--muted);
  background: rgba(255,255,255,0.05);
  border-radius: 20px; padding: 3px 10px;
}

/* ══════════════════════════════
   STORY ARCHIVE
══════════════════════════════ */
.story-section-label {
  font-size: 0.7rem; font-weight: 700;
  color: var(--muted); letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 0 8px;
  display: flex; align-items: center; gap: 8px;
}
.story-section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.story-archive-toggle {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.73rem; color: var(--muted);
  cursor: pointer; width: 100%;
  margin-top: 6px;
  transition: all 0.2s;
  font-family: inherit;
}
.story-archive-toggle:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.story-archive-toggle .toggle-icon { margin-right: auto; transition: transform 0.25s; }
.story-archive-toggle.expanded .toggle-icon { transform: rotate(180deg); }
#storyArchiveContent { margin-top: 10px; }
.story-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.story-archive-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 9/16;
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s;
}
.story-archive-thumb:hover { transform: scale(1.03); }
.story-archive-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 6px;
}
.story-archive-title { font-size: 0.62rem; color: rgba(255,255,255,0.85); font-weight: 600; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.story-archive-stats { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.story-archive-stat {
  display: flex; align-items: center; gap: 2px;
  font-size: 0.6rem; color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.4);
  border-radius: 20px; padding: 2px 6px;
}
.story-archive-date { font-size: 0.55rem; color: rgba(255,255,255,0.55); margin-top: 3px; }
.story-archive-empty { padding: 20px; text-align: center; font-size: 0.75rem; color: var(--dim); }

/* ══════════════════════════════
   SALES SUMMARY ROW (POS overview)
══════════════════════════════ */
.sales-summary-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1.25rem;
  transition: opacity 0.3s;
}
@media (max-width: 560px) {
  .sales-summary-row { grid-template-columns: 1fr 1fr; }
  .sales-summary-row .sales-card:last-child { grid-column: span 2; }
}
.sales-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}
.sales-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--sales-color, var(--amber)) 0%, transparent 60%);
  opacity: 0.04;
}
.sales-card:hover { border-color: rgba(255,255,255,0.12); }
.sales-card-icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sales-card-content { flex: 1; min-width: 0; }
.sales-card-label { font-size: 0.68rem; color: var(--muted); font-weight: 600; margin-bottom: 3px; }
.sales-card-val { font-size: 1.05rem; font-weight: 800; color: var(--sales-color, var(--amber)); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sales-chip {
  font-size: 0.62rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  border: 1px solid transparent;
  white-space: nowrap; align-self: flex-start;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
}
.sales-chip.chip-up   { background: rgba(45,212,160,0.1); color: var(--emerald); border-color: rgba(45,212,160,0.2); }
.sales-chip.chip-down { background: rgba(240,107,138,0.1); color: var(--rose);    border-color: rgba(240,107,138,0.2); }
.sales-chip.chip-flat { background: rgba(255,255,255,0.04); color: var(--muted);  border-color: var(--border); }

/* ══════════════════════════════
   POS RECEIPT MODAL
══════════════════════════════ */
.receipt-card {
  background: #fff;
  color: #111;
  border-radius: 12px;
  width: 100%;
  max-width: 320px;
  padding: 24px 20px;
  text-align: center;
  font-family: "Courier New", monospace;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  transform: scale(0.9) translateY(16px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.22s;
  max-height: 90vh;
  overflow-y: auto;
  direction: rtl;
}
.receipt-card.receipt-open { transform: scale(1) translateY(0); opacity: 1; }
.receipt-rest-name { font-size: 1rem; font-weight: 900; margin-bottom: 4px; letter-spacing: 0.02em; }
.receipt-order-num { font-size: 0.82rem; color: #555; margin-bottom: 2px; }
.receipt-date { font-size: 0.72rem; color: #777; margin-bottom: 4px; }
.receipt-divider { font-size: 0.7rem; color: #bbb; margin: 8px 0; letter-spacing: 2px; }
.receipt-items { text-align: right; margin-bottom: 4px; }
.rcpt-item {
  display: flex; align-items: baseline;
  gap: 6px; padding: 4px 0;
  border-bottom: 1px dashed #eee;
  font-size: 0.78rem;
}
.rcpt-item:last-child { border-bottom: none; }
.rcpt-item-name { flex: 1; }
.rcpt-item-qty { color: #888; font-size: 0.72rem; white-space: nowrap; }
.rcpt-item-price { font-weight: 700; white-space: nowrap; }
.receipt-totals { text-align: right; margin-bottom: 8px; }
.rcpt-total-row {
  display: flex; justify-content: space-between;
  font-size: 0.8rem; padding: 3px 0;
}
.rcpt-discount { color: #c00; }
.rcpt-final {
  font-size: 0.95rem; font-weight: 900;
  border-top: 2px solid #111; margin-top: 4px; padding-top: 6px;
}
.receipt-payment { font-size: 0.72rem; color: #555; margin-bottom: 8px; }
.receipt-footer { font-size: 0.78rem; font-weight: 700; margin: 6px 0 2px; letter-spacing: 1px; }
.receipt-powered { font-size: 0.6rem; color: #bbb; margin-bottom: 14px; }
.receipt-actions {
  display: flex; gap: 8px; margin-top: 10px;
}
.receipt-print-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: #111; color: #fff; border: none; border-radius: 8px;
  padding: 10px; font-size: 0.82rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: opacity 0.15s;
}
.receipt-print-btn:hover { opacity: 0.85; }
.receipt-close-btn {
  background: #f4f4f4; color: #555; border: none; border-radius: 8px;
  padding: 10px 16px; font-size: 0.8rem; cursor: pointer;
  font-family: inherit; transition: background 0.15s;
}
.receipt-close-btn:hover { background: #e0e0e0; }
.rcpt-row-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1rem; padding: 4px 6px; border-radius: 6px;
  transition: background 0.15s;
}
.rcpt-row-btn:hover { background: rgba(255,255,255,0.08); }

/* Print: show only receipt card */
@media print {
  body > *:not(#receiptModal) { display: none !important; }
  #receiptModal {
    position: static !important;
    background: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
  }
  .receipt-card { box-shadow: none !important; border-radius: 0 !important; transform: none !important; opacity: 1 !important; max-height: none !important; overflow: visible !important; }
  .no-print { display: none !important; }
}

/* ══════════════════════════════════════
   SUPPORT INBOX
══════════════════════════════════════ */
.support-inbox {
  display: flex;
  height: calc(100vh - 200px);
  min-height: 460px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg);
}

.support-ticket-list {
  width: 280px;
  flex-shrink: 0;
  border-inline-end: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.support-list-header {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--muted);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 1;
}

.support-ticket-item {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.13s;
}
.support-ticket-item:hover { background: var(--card); }
.support-ticket-item.active { background: var(--amber-glow); }

.support-ticket-subject {
  font-weight: 600;
  font-size: 0.83rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-ticket-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--muted);
}

.support-ticket-preview {
  font-size: 0.76rem;
  color: var(--dim);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-unread-dot {
  width: 7px;
  height: 7px;
  background: var(--rose);
  border-radius: 50%;
  flex-shrink: 0;
}

.support-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.support-thread-header {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.support-thread-title {
  font-weight: 700;
  font-size: 0.88rem;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.support-thread-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  gap: 10px;
}

.support-msg-wrap { display: flex; flex-direction: column; }
.support-msg-wrap--restaurant { align-items: flex-start; }
.support-msg-wrap--admin      { align-items: flex-end; }

.support-msg {
  max-width: 72%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.84rem;
  line-height: 1.55;
  word-break: break-word;
  white-space: pre-wrap;
}
.support-msg--restaurant {
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-right-radius: 4px;
}
.support-msg--admin {
  background: var(--amber-glow);
  border: 1px solid rgba(245,166,35,0.25);
  border-bottom-left-radius: 4px;
}

.support-msg-time {
  font-size: 0.67rem;
  color: var(--dim);
  margin-top: 3px;
  padding: 0 4px;
}

.support-reply {
  border-top: 1px solid var(--border);
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.support-reply-input {
  flex: 1;
  resize: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.84rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 38px;
  max-height: 100px;
  overflow-y: auto;
}
.support-reply-input:focus { outline: none; border-color: var(--amber); }

.support-status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.support-status-open   { background: rgba(34,197,94,0.12);   color: #16a34a; }
.support-status-closed { background: rgba(107,114,128,0.12); color: var(--muted); }

@media (max-width: 680px) {
  .support-inbox { flex-direction: column; height: auto; min-height: unset; }
  .support-ticket-list { width: 100%; border-inline-end: none; border-bottom: 1px solid var(--border); max-height: 240px; }
  .support-thread { min-height: 340px; }
}

/* ══════════════════════════════════════
   ADVISOR ENHANCEMENTS
══════════════════════════════════════ */
.advisor-bench-badge {
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 500;
}
.advisor-sparkline {
  display: inline-block;
  vertical-align: middle;
  margin-inline-start: 8px;
}

/* Snapshot "what improved" section */
.advisor-snap-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 2px 0;
}
.snap-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.18);
  border-radius: 10px;
  padding: 10px 14px;
}
.snap-check {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.snap-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}
.snap-sub {
  font-size: 0.77rem;
  color: var(--muted);
  margin-top: 2px;
}
