/* ============================================================
   PICKZO — assets/css/style.css
   Central stylesheet — mobile-first, all pages
   NOTE: Font Awesome loaded via <link> in each page head
   ============================================================ */

/* ------------------------------------------------------------
   FA ICON HELPERS — theme-matched sizes & colors
   ------------------------------------------------------------ */
.fa-icon         { display:inline-flex; align-items:center; justify-content:center; }
.fa-icon-sm      { font-size:.8rem; }
.fa-icon-md      { font-size:1rem; }
.fa-icon-lg      { font-size:1.25rem; }
.fa-icon-xl      { font-size:1.5rem; }
.fa-icon-orange  { color:var(--orange); }
.fa-icon-muted   { color:var(--gray-400); }
.fa-icon-success { color:var(--success); }
.fa-icon-danger  { color:var(--danger); }

/* ------------------------------------------------------------
   CSS VARIABLES
   ------------------------------------------------------------ */
:root {
  /* Brand */
  --orange:        #FF6500;
  --orange-dark:   #e05800;
  --orange-light:  #ff8533;
  --orange-pale:   #fff3ec;

  /* Neutrals */
  --black:         #1A1A1A;
  --dark:          #2C2C2C;
  --gray-800:      #3D3D3D;
  --gray-600:      #6B6B6B;
  --gray-400:      #A0A0A0;
  --gray-200:      #E5E5E5;
  --gray-100:      #F5F5F5;
  --white:         #FFFFFF;

  /* Semantic */
  --success:       #22C55E;
  --warning:       #F59E0B;
  --danger:        #EF4444;
  --info:          #3B82F6;

  /* Status colors */
  --status-placed:    #3B82F6;
  --status-confirmed: #F59E0B;
  --status-preparing: #FF6500;
  --status-ready:     #22C55E;
  --status-picked-up: #6B6B6B;
  --status-cancelled: #EF4444;

  /* Typography */
  --font-main:     'Nunito', sans-serif;
  --font-display:  'Nunito', sans-serif;

  /* Spacing */
  --gap:           1rem;
  --gap-sm:        0.5rem;
  --gap-lg:        1.5rem;
  --gap-xl:        2rem;

  /* Radius */
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --radius-full:   999px;

  /* Shadow */
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.08);
  --shadow:        0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.14);
  --shadow-orange: 0 4px 20px rgba(255,101,0,0.25);

  /* Navbar height */
  --nav-h:         60px;

  /* Admin sidebar */
  --sidebar-w:     240px;
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

body {
  font-family: var(--font-main);
  color: var(--black);
  background: var(--gray-100);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

/* ------------------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------------------ */
h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p  { color: var(--gray-600); }

.text-orange   { color: var(--orange); }
.text-success  { color: var(--success); }
.text-danger   { color: var(--danger); }
.text-muted    { color: var(--gray-400); }
.text-center   { text-align: center; }
.text-bold     { font-weight: 700; }
.text-sm       { font-size: 0.85rem; }
.text-xs       { font-size: 0.75rem; }

/* ------------------------------------------------------------
   LAYOUT
   ------------------------------------------------------------ */
.container      { width: 100%; max-width: 480px; margin: 0 auto; padding: 0 1rem; }
.container-wide { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 1rem; }

.page-pad { padding-top: calc(var(--nav-h) + 1rem); padding-bottom: 5rem; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-sm      { gap: var(--gap-sm); }
.gap         { gap: var(--gap); }
.gap-lg      { gap: var(--gap-lg); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }

/* ------------------------------------------------------------
   NAVBAR (customer)
   ------------------------------------------------------------ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 100;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.5px;
}
.navbar-logo span { color: var(--black); }

.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }

.cart-btn {
  position: relative;
  background: var(--orange-pale);
  border: none;
  border-radius: var(--radius-full);
  padding: 0.45rem 0.9rem;
  font-weight: 700;
  color: var(--orange);
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 0.4rem;
  transition: background 0.2s;
}
.cart-btn:hover { background: var(--orange); color: var(--white); }

.cart-count {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
  border: 2px solid var(--white);
}

.avatar-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background 0.2s;
}
.avatar-btn:hover { background: var(--orange-pale); }

/* ------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover { background: var(--orange-pale); }

.btn-ghost {
  background: var(--gray-100);
  color: var(--dark);
  border: none;
}
.btn-ghost:hover { background: var(--gray-200); }

.btn-danger  { background: var(--danger);  color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-sm      { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-lg      { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block   { width: 100%; }
.btn-icon    { padding: 0.6rem; border-radius: var(--radius-full); }

.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------
   CARDS
   ------------------------------------------------------------ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-body    { padding: 1rem; }
.card-header  { padding: 1rem; border-bottom: 1px solid var(--gray-200); }
.card-footer  { padding: 0.75rem 1rem; background: var(--gray-100); }

/* Restaurant card */
.restaurant-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.restaurant-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.restaurant-card-img {
  width: 100%; height: 150px;
  object-fit: cover;
  background: var(--gray-200);
}
.restaurant-card-img-placeholder {
  width: 100%; height: 150px;
  background: linear-gradient(135deg, var(--orange-pale), var(--gray-200));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}

.restaurant-card-body { padding: 0.85rem; }
.restaurant-card-name { font-weight: 800; font-size: 1rem; color: var(--black); }
.restaurant-card-meta { font-size: 0.8rem; color: var(--gray-400); margin-top: 0.2rem; }
.restaurant-card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* Menu item card */
.menu-item-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.85rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid var(--gray-200);
  transition: border-color 0.2s;
}
.menu-item-card:hover { border-color: var(--orange); }

.menu-item-img {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--gray-100);
}

.menu-item-info { flex: 1; min-width: 0; }
.menu-item-name { font-weight: 700; font-size: 0.95rem; color: var(--black); }
.menu-item-desc { font-size: 0.8rem; color: var(--gray-400); margin-top: 0.2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item-price { font-weight: 800; color: var(--orange); font-size: 1rem; margin-top: 0.35rem; }

/* ------------------------------------------------------------
   FORM ELEMENTS
   ------------------------------------------------------------ */
.form-group  { margin-bottom: 1rem; }
.form-label  { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 0.4rem; color: var(--dark); }
.form-hint   { font-size: 0.78rem; color: var(--gray-400); margin-top: 0.3rem; }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  appearance: none;
}
.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,101,0,0.12);
}
.form-control.error { border-color: var(--danger); }

.input-group {
  display: flex;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.input-group:focus-within { border-color: var(--orange); }
.input-group-prefix {
  padding: 0.75rem 0.9rem;
  background: var(--gray-100);
  color: var(--gray-600);
  font-weight: 700;
  font-size: 0.9rem;
  border-right: 2px solid var(--gray-200);
  white-space: nowrap;
}
.input-group .form-control {
  border: none;
  border-radius: 0;
  flex: 1;
}
.input-group .form-control:focus { box-shadow: none; }

.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 0.3rem; }

/* OTP inputs */
.otp-inputs { display: flex; gap: 0.6rem; justify-content: center; }
.otp-input {
  width: 56px; height: 60px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.otp-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,101,0,0.12); }
.otp-input.filled { border-color: var(--orange); background: var(--orange-pale); }

/* Toggle / switch */
.toggle-wrap { display: flex; align-items: center; gap: 0.6rem; }
.toggle {
  position: relative;
  width: 44px; height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  transition: 0.3s;
  cursor: pointer;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: var(--shadow-sm);
}
.toggle input:checked + .toggle-slider { background: var(--orange); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Qty stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.qty-btn {
  width: 32px; height: 32px;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.qty-btn:hover { background: var(--orange-pale); }
.qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   BADGE / TAG / PILL
   ------------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge-orange   { background: var(--orange-pale); color: var(--orange); }
.badge-success  { background: #dcfce7; color: #16a34a; }
.badge-warning  { background: #fef9c3; color: #b45309; }
.badge-danger   { background: #fee2e2; color: #dc2626; }
.badge-info     { background: #dbeafe; color: #1d4ed8; }
.badge-gray     { background: var(--gray-200); color: var(--gray-600); }

.veg-dot {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1.5px solid;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.veg-dot.veg { border-color: var(--success); }
.veg-dot.veg::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.veg-dot.nonveg { border-color: var(--danger); }
.veg-dot.nonveg::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }

/* ------------------------------------------------------------
   STATUS CHIPS
   ------------------------------------------------------------ */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
}
.status-chip::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.status-placed    { background: #dbeafe; color: var(--status-placed); }
.status-confirmed { background: #fef9c3; color: var(--status-confirmed); }
.status-preparing { background: var(--orange-pale); color: var(--status-preparing); }
.status-ready     { background: #dcfce7; color: var(--status-ready); }
.status-picked-up { background: var(--gray-200); color: var(--status-picked-up); }
.status-cancelled { background: #fee2e2; color: var(--status-cancelled); }

/* ------------------------------------------------------------
   PAGE SECTIONS
   ------------------------------------------------------------ */
.section { margin-bottom: 1.75rem; }
.section-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.4rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  padding: 2rem 1rem 1.5rem;
  text-align: center;
}
.hero h1 { color: var(--white); }
.hero p  { color: rgba(255,255,255,0.85); }

/* Search bar */
.search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 0.6rem 1rem;
  gap: 0.5rem;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.search-bar:focus-within { border-color: var(--orange); }
.search-bar input {
  flex: 1; border: none; outline: none;
  font-size: 0.95rem; background: transparent;
}
.search-icon { color: var(--gray-400); font-size: 1rem; }

/* Divider */
.divider {
  height: 1px; background: var(--gray-200);
  margin: 1rem 0;
}
.divider-text {
  text-align: center; position: relative; margin: 1.2rem 0;
  font-size: 0.82rem; color: var(--gray-400);
}
.divider-text::before, .divider-text::after {
  content: ''; position: absolute; top: 50%;
  width: calc(50% - 2rem); height: 1px; background: var(--gray-200);
}
.divider-text::before { left: 0; }
.divider-text::after  { right: 0; }

/* ------------------------------------------------------------
   BOTTOM NAV (customer mobile)
   ------------------------------------------------------------ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--white);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  display: flex;
  z-index: 100;
}
.bottom-nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--gray-400);
  border: none; background: none;
  transition: color 0.2s;
  text-decoration: none;
}
.bottom-nav-item .nav-icon { font-size: 1.2rem; }
.bottom-nav-item.active   { color: var(--orange); }
.bottom-nav-item:hover    { color: var(--orange); }

/* ------------------------------------------------------------
   TOAST NOTIFICATIONS
   ------------------------------------------------------------ */
#toast-container {
  position: fixed;
  bottom: 5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex; flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  width: calc(100% - 2rem);
  max-width: 400px;
}

.toast {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 0.5rem;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  pointer-events: auto;
}
.toast-success { background: var(--success); color: var(--white); }
.toast-error   { background: var(--danger);  color: var(--white); }
.toast-info    { background: var(--orange);  color: var(--white); }
.toast-warning { background: var(--warning); color: var(--white); }

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

/* ------------------------------------------------------------
   MODAL
   ------------------------------------------------------------ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.modal-backdrop.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; max-width: 480px;
  padding: 1.5rem 1.25rem 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-backdrop.open .modal { transform: translateY(0); }

.modal-handle {
  width: 36px; height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin: 0 auto 1.2rem;
}
.modal-title { font-weight: 800; font-size: 1.1rem; margin-bottom: 1rem; }

/* ------------------------------------------------------------
   LOADING SPINNER
   ------------------------------------------------------------ */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
}

/* ------------------------------------------------------------
   EMPTY STATE
   ------------------------------------------------------------ */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.empty-state h3   { font-size: 1.1rem; color: var(--dark); }
.empty-state p    { font-size: 0.88rem; color: var(--gray-400); margin-top: 0.4rem; }

/* ------------------------------------------------------------
   ORDER STATUS TIMELINE
   ------------------------------------------------------------ */
.order-timeline { padding: 0.5rem 0; }
.timeline-step {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding-bottom: 1.2rem;
  position: relative;
}
.timeline-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 13px; top: 26px;
  width: 2px;
  bottom: 0;
  background: var(--gray-200);
}
.timeline-step.done::before { background: var(--success); }

.timeline-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: var(--white);
  position: relative; z-index: 1;
  transition: background 0.3s;
}
.timeline-step.done .timeline-dot   { background: var(--success); }
.timeline-step.active .timeline-dot { background: var(--orange); animation: pulse 1.5s infinite; }

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,101,0,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(255,101,0,0); }
}

.timeline-info h4   { font-weight: 700; font-size: 0.92rem; color: var(--black); }
.timeline-info p    { font-size: 0.78rem; color: var(--gray-400); }
.timeline-step:not(.done):not(.active) .timeline-info h4 { color: var(--gray-400); }

/* ------------------------------------------------------------
   ADMIN — SIDEBAR LAYOUT
   ------------------------------------------------------------ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--black);
  flex-shrink: 0;
  display: none; /* mobile: hidden by default */
  flex-direction: column;
  padding: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 150;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
.sidebar.open { transform: translateX(0); display: flex; }

.sidebar-logo {
  padding: 1.25rem 1.25rem 1rem;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--orange);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo span { color: var(--white); }
.sidebar-subrole {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.1rem;
}

.sidebar-nav { padding: 0.75rem 0; flex: 1; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.75rem 1.25rem;
  color: var(--gray-400);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.sidebar-nav a.active { color: var(--orange); border-left-color: var(--orange); background: rgba(255,101,0,0.08); }
.sidebar-nav a .nav-icon { width: 20px; text-align: center; font-size: 1rem; }

.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex; flex-direction: column;
}

.admin-topbar {
  height: var(--nav-h);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  position: sticky; top: 0; z-index: 90;
}

.admin-topbar-logo {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.5px;
}
.admin-topbar-logo span { color: var(--black); }

.hamburger-btn {
  width: 36px; height: 36px;
  background: var(--gray-100);
  border: none; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--dark);
}

.admin-content { padding: 1.25rem 1rem 3rem; flex: 1; }

/* Stats cards */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 0.4rem;
}
.stat-card-label { font-size: 0.78rem; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card-value { font-size: 1.6rem; font-weight: 900; color: var(--black); line-height: 1; }
.stat-card-meta  { font-size: 0.78rem; color: var(--gray-400); }
.stat-card-icon  { font-size: 1.5rem; }

/* Order row in admin */
.order-row {
  background: var(--white);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  border: 2px solid var(--gray-200);
  margin-bottom: 0.6rem;
  transition: border-color 0.2s;
}
.order-row.new-order { border-color: var(--orange); animation: newOrderPulse 1s ease 2; }
@keyframes newOrderPulse {
  0%,100% { background: var(--white); }
  50%      { background: var(--orange-pale); }
}

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { text-align: left; padding: 0.7rem 0.75rem; font-weight: 700; color: var(--gray-600); border-bottom: 2px solid var(--gray-200); }
td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--gray-200); }
tr:hover td { background: var(--gray-100); }

/* Sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 140;
}
.sidebar-overlay.open { display: block; }

/* Desktop: show sidebar inline */
@media (min-width: 768px) {
  .sidebar {
    display: flex;
    position: relative;
    transform: none;
    top: auto; left: auto; bottom: auto;
  }
  .admin-main { margin-left: 0; }
  .hamburger-btn { display: none; }
  .sidebar-overlay { display: none !important; }
  .admin-layout { }
  .container { max-width: 600px; }
}

/* ------------------------------------------------------------
   AUTH PAGES
   ------------------------------------------------------------ */
.auth-page {
  min-height: 100vh;
  background: var(--gray-100);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  width: 100%; max-width: 400px;
}
.auth-logo {
  text-align: center; margin-bottom: 1.75rem;
}
.auth-logo-text {
  font-size: 2rem; font-weight: 900;
  color: var(--orange);
  letter-spacing: -1px;
}
.auth-logo-text span { color: var(--black); }
.auth-logo-sub { font-size: 0.82rem; color: var(--gray-400); margin-top: 0.25rem; }

/* ------------------------------------------------------------
   UTILITIES
   ------------------------------------------------------------ */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.p-1  { padding: 0.5rem; }
.p-2  { padding: 1rem; }
.d-none { display: none !important; }
.d-flex { display: flex; }
.w-100  { width: 100%; }
.rounded { border-radius: var(--radius); }
.rounded-full { border-radius: var(--radius-full); }
.overflow-hidden { overflow: hidden; }
.sticky-top { position: sticky; top: var(--nav-h); z-index: 80; }
.bg-white   { background: var(--white); }
.bg-gray    { background: var(--gray-100); }
.shadow     { box-shadow: var(--shadow); }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Scroll-snap for horizontal carousels */
.scroll-x {
  display: flex; gap: 0.75rem;
  overflow-x: auto; padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none; scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }
.scroll-x > * { scroll-snap-align: start; flex-shrink: 0; }

/* Feature banner strip */
.feature-strip {
  display: flex; gap: 0.5rem;
  background: var(--orange-pale);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  align-items: center;
}
.feature-strip-icon { font-size: 1.3rem; }
.feature-strip-text { font-size: 0.82rem; color: var(--orange-dark); font-weight: 600; }
