/* ============================================================
   USMAN RESTAURANT — Shared Design System
   styles.css v2.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&family=Inter:wght@400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;600&family=JetBrains+Mono:wght@600;700&display=swap');

/* ============================================================
   CSS VARIABLES — DARK THEME (DEFAULT)
   ============================================================ */

:root {
  --bg:           #0b0b0f;
  --bg2:          #12121a;
  --bg3:          #1a1a24;
  --surface:      #1f1f2e;
  --surface2:     #272738;
  --border:       rgba(255,255,255,0.07);
  --border2:      rgba(255,255,255,0.12);
  --text:         #eeeef5;
  --text2:        #a0a0c0;
  --text3:        #606080;
  --primary:      #f97316;
  --primary-glow: rgba(249,115,22,0.25);
  --primary-dim:  rgba(249,115,22,0.10);
  --gold:         #e8c96a;
  --gold-glow:    rgba(232,201,106,0.15);
  --success:      #22c55e;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --info:         #3b82f6;

  --font:         'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-urdu:    'Noto Nastaliq Urdu', serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --radius-pill:  999px;

  --shadow:       0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:  0 0 32px rgba(249,115,22,0.15);

  --transition:   0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   MILK.HTML OVERRIDE — WHITE/LIGHT THEME
   Applied with class="milk-theme" on <body>
   ============================================================ */

body.milk-theme {
  --bg:           #fefdf8;
  --bg2:          #f7f4ed;
  --bg3:          #efe9de;
  --surface:      #ffffff;
  --surface2:     #f4f0e8;
  --border:       rgba(0,0,0,0.08);
  --border2:      rgba(0,0,0,0.15);
  --text:         #1a1206;
  --text2:        #5c4a2a;
  --text3:        #9c8760;
  --primary:      #c67c2a;
  --primary-glow: rgba(198,124,42,0.20);
  --primary-dim:  rgba(198,124,42,0.08);
  --gold:         #8b6914;
  --gold-glow:    rgba(139,105,20,0.12);
  --surface:      #ffffff;
  --shadow:       0 4px 24px rgba(0,0,0,0.08);
  --shadow-glow:  0 0 32px rgba(198,124,42,0.12);
}

/* ============================================================
   RESET + BASE
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--font); cursor: pointer; border: none; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 99px; }

/* Selection */
::selection { background: var(--primary-dim); color: var(--primary); }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */

#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  z-index: 99999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================================
   PAGE TRANSITION — SHOP GATE / SHUTTER EFFECT
   ============================================================ */

#shutter-top,
#shutter-bottom {
  position: fixed;
  left: 0; right: 0;
  z-index: 99998;
  pointer-events: none;
  background: var(--bg);
}

#shutter-top {
  top: 0;
  height: 50vh;
  transform: translateY(-100%);
}

#shutter-bottom {
  bottom: 0;
  height: 50vh;
  transform: translateY(100%);
}

.shutter-closing #shutter-top { animation: shutter-close-top 450ms ease-in forwards; }
.shutter-closing #shutter-bottom { animation: shutter-close-bottom 450ms ease-in forwards; }

.shutter-opening #shutter-top { animation: shutter-open-top 600ms cubic-bezier(0.16,1,0.3,1) forwards; }
.shutter-opening #shutter-bottom { animation: shutter-open-bottom 600ms cubic-bezier(0.16,1,0.3,1) forwards; }

@keyframes shutter-close-top    { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes shutter-close-bottom { from { transform: translateY(100%); }  to { transform: translateY(0); } }
@keyframes shutter-open-top     { from { transform: translateY(0); }     to { transform: translateY(-100%); } }
@keyframes shutter-open-bottom  { from { transform: translateY(0); }     to { transform: translateY(100%); } }

/* Logo in shutter */
.shutter-logo {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--primary);
}
.shutter-closing .shutter-logo { animation: logo-appear 200ms ease forwards 250ms; }
.shutter-opening .shutter-logo { animation: logo-disappear 200ms ease forwards; }

@keyframes logo-appear    { from { opacity: 0; } to { opacity: 1; } }
@keyframes logo-disappear { from { opacity: 1; } to { opacity: 0; } }

/* ============================================================
   TOPBAR / NAVBAR
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,11,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.milk-theme .topbar {
  background: rgba(254,253,248,0.9);
}

.topbar-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.topbar-logo .logo-emoji { font-size: 22px; }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.cart-chip:hover { background: #ea6600; transform: scale(1.04); }
.cart-chip.empty { display: none; }

.cart-chip .count {
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800;
}

/* Category nav (in topbar) */
.cat-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  padding: 56px 20px 48px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, var(--primary-glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-dim);
  border: 1px solid rgba(249,115,22,0.25);
  color: var(--primary);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--text);
}

.hero-title .accent { color: var(--primary); }

.hero-urdu {
  font-family: var(--font-urdu);
  font-size: clamp(20px, 4vw, 32px);
  color: var(--text2);
  margin-bottom: 16px;
  direction: rtl;
}

.hero-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-primary:hover {
  background: #ea6600;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-gold {
  background: var(--gold);
  color: #1a1000;
  font-weight: 700;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--gold-glow); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.card-glass {
  background: rgba(31, 31, 46, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
}

body.milk-theme .card-glass {
  background: rgba(255,255,255,0.7);
}

/* ============================================================
   MENU ITEM CARDS
   ============================================================ */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  padding: 0 16px;
}

@media (max-width: 600px) {
  .menu-grid { grid-template-columns: 1fr; }
}

.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
}

.item-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.item-card .sold-out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: inherit;
}

.item-card .sold-out-overlay span {
  background: var(--danger);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  transform: rotate(-15deg);
}

.item-img-wrap {
  position: relative;
  overflow: hidden;
  height: 180px;
}

.item-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.item-card:hover .item-img { transform: scale(1.06); }

.item-placeholder {
  width: 100%; height: 100%;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
}

.popular-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.item-body {
  padding: 14px 16px 16px;
}

.item-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
  color: var(--text);
}

.item-name-urdu {
  font-family: var(--font-urdu);
  font-size: 14px;
  color: var(--text2);
  direction: rtl;
  margin-bottom: 6px;
}

.item-desc {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
  margin-bottom: 14px;
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.item-price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }

.qty-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  min-width: 22px;
  text-align: center;
}

.add-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.add-btn:hover { background: #ea6600; transform: scale(1.1); }
.add-btn:active { transform: scale(0.95); }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
  padding: 28px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */

.fab-group {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.fab {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: all var(--transition);
  text-decoration: none;
}

.fab-whatsapp {
  background: #25d366;
  color: #fff;
  font-size: 26px;
}
.fab-whatsapp:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.4); }

.fab-call {
  background: var(--primary);
  color: #fff;
  font-size: 22px;
}
.fab-call:hover { transform: scale(1.1); box-shadow: 0 6px 28px var(--primary-glow); }

/* Cart float (bottom center) */
#cart-float {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 32px var(--primary-glow);
  cursor: pointer;
  z-index: 150;
  text-decoration: none;
  animation: float-up 0.4s cubic-bezier(0.34,1.56,0.64,1);
  white-space: nowrap;
}
#cart-float.show { display: flex; }
@keyframes float-up { from { transform: translateX(-50%) translateY(80px); opacity: 0; } }

#cart-float .cf-count {
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

#toast-container {
  position: fixed;
  top: 70px; right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  pointer-events: all;
  cursor: pointer;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: 300px;
  border-left: 3px solid var(--primary);
}

.toast.show { transform: translateX(0); }
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error   { border-left-color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast.toast-order   { border-left-color: var(--primary); background: var(--primary-dim); }

/* ============================================================
   CHAT SYSTEM
   ============================================================ */

.chat-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 500px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.chat-msg.mine {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg.theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.chat-msg.mine .chat-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg.theirs .chat-bubble {
  background: var(--surface2);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.chat-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text3);
  margin-top: 3px;
}

.msg-status { font-size: 12px; }
.msg-status.sent     { color: var(--text3); }
.msg-status.delivered { color: var(--text3); }
.msg-status.seen      { color: var(--info); }

/* Voice note bubble */
.voice-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface2);
  border-radius: 14px;
  cursor: pointer;
}

.voice-play-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.voice-wave {
  display: flex;
  gap: 2px;
  align-items: center;
  height: 24px;
}

.voice-bar {
  width: 3px;
  background: var(--text3);
  border-radius: 2px;
  animation: wave-pulse 1s ease-in-out infinite;
}

@keyframes wave-pulse {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.voice-bar:nth-child(1) { height: 10px; animation-delay: 0.0s; }
.voice-bar:nth-child(2) { height: 18px; animation-delay: 0.1s; }
.voice-bar:nth-child(3) { height: 24px; animation-delay: 0.2s; }
.voice-bar:nth-child(4) { height: 16px; animation-delay: 0.3s; }
.voice-bar:nth-child(5) { height: 22px; animation-delay: 0.4s; }
.voice-bar:nth-child(6) { height: 12px; animation-delay: 0.5s; }

/* Typing indicator */
.typing-indicator {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--text3);
  font-size: 12px;
}

.typing-indicator.show { display: flex; }

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dot {
  width: 6px; height: 6px;
  background: var(--text3);
  border-radius: 50%;
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Chat input */
.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  align-items: flex-end;
}

.chat-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 22px;
  padding: 10px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  resize: none;
  max-height: 120px;
  min-height: 40px;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--primary); }
.chat-input::placeholder { color: var(--text3); }

.chat-send-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.chat-send-btn:hover { background: #ea6600; transform: scale(1.1); }

.chat-voice-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.chat-voice-btn:hover { border-color: var(--primary); color: var(--primary); }
.chat-voice-btn.recording { background: var(--danger); color: #fff; border-color: var(--danger); animation: pulse-rec 1s infinite; }

@keyframes pulse-rec {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

/* ============================================================
   WATERMARK FOOTER
   ============================================================ */

.watermark {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}

.watermark-text {
  font-size: 10px;
  color: var(--text3);
  opacity: 0.35;
  letter-spacing: 0.8px;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.5; }
}

/* ============================================================
   FORMS + INPUTS
   ============================================================ */

.form-group { margin-bottom: 14px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 5px; display: block; letter-spacing: 0.3px; }

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

input::placeholder, textarea::placeholder { color: var(--text3); }

/* ============================================================
   STATUS BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-placed   { background: rgba(249,115,22,0.15); color: var(--primary); }
.badge-accepted { background: rgba(59,130,246,0.15); color: var(--info); }
.badge-preparing{ background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-ready    { background: rgba(34,197,94,0.15);  color: var(--success); }
.badge-assigned { background: rgba(139,92,246,0.15); color: #a78bfa; }
.badge-picked   { background: rgba(34,197,94,0.2);   color: var(--success); }
.badge-delivered{ background: rgba(100,100,120,0.15);color: var(--text3); }
.badge-cancelled{ background: rgba(239,68,68,0.15);  color: var(--danger); }

/* ============================================================
   GLASSMORPHISM PANELS
   ============================================================ */

.glass-panel {
  background: rgba(31,31,46,0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
  50%       { box-shadow: 0 0 40px var(--primary-glow), 0 0 80px var(--primary-glow); }
}

.animate-fade-in  { animation: fade-in 0.4s ease; }
.animate-slide-up { animation: slide-up 0.5s ease; }
.animate-scale-in { animation: scale-in 0.35s cubic-bezier(0.34,1.56,0.64,1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px; }
  .item-img-wrap { height: 140px; }
  .hero { padding: 40px 16px 32px; }
  .fab-group { bottom: 80px; right: 14px; }
}

@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr; }
  .topbar { padding: 0 12px; }
}
