/* ═══════════════════════════════════════════════════════════════════════════
   PizzaForge — Design System
   Palette: Volcanic Glass — #0f0f0f bg, #ff6b2b accent
   Fonts: Syne (display) + DM Sans (body)
═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --bg:          #0f0f0f;
  --bg-2:        #1a1a1a;
  --bg-3:        #242424;
  --bg-4:        #2e2e2e;
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.13);
  --text:        #f0ebe5;
  --text-2:      #9a9088;
  --text-3:      #524d49;
  --orange:      #ff6b2b;
  --orange-2:    #ff8c55;
  --orange-3:    #ffb088;
  --orange-bg:   rgba(255,107,43,0.10);
  --orange-glow: 0 0 40px rgba(255,107,43,0.18);
  --green:       #22c55e;
  --red:         #ef4444;
  --yellow:      #f59e0b;
  --blue:        #3b82f6;
  --purple:      #a855f7;
  --accent:      #ff6b2b;
  --nav-h:       64px;
  --r-sm:        8px;
  --r:           12px;
  --r-lg:        18px;
  --r-xl:        24px;
  --shadow:      0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.7);
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; cursor: pointer; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; color: inherit; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }

/* ─── VIEWS ─────────────────────────────────────────────────────────────────── */
.view { display: none; min-height: 100vh; padding-top: var(--nav-h); }
.view.active { display: block; animation: fadeUp 0.35s var(--ease); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── NAVBAR ────────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  background: rgba(15,15,15,0.90);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 28px;
  height: 100%; display: flex; align-items: center; gap: 28px;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 19px; font-weight: 800;
  letter-spacing: -0.02em; flex-shrink: 0;
}
.logo-icon { font-size: 20px; }
.logo-text { color: var(--orange); }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-link {
  padding: 7px 13px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--bg-3); }
.nav-link-admin { color: var(--orange-3); }
.nav-link-admin:hover { color: var(--orange); background: var(--orange-bg); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cart-btn {
  position: relative;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); border-radius: var(--r-sm);
  font-size: 18px;
  transition: all 0.2s var(--ease);
}
.cart-btn:hover { background: var(--bg-4); }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cart-count.bump { animation: pop 0.3s var(--ease); }
@keyframes pop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.5); } }

/* ─── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #fff;
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  padding: 10px 20px; border-radius: var(--r-sm);
  transition: all 0.2s var(--ease); white-space: nowrap;
}
.btn-primary:hover { background: var(--orange-2); transform: translateY(-1px); box-shadow: var(--orange-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--text-2);
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
  transition: all 0.2s var(--ease);
}
.btn-ghost:hover { color: var(--text); background: var(--bg-3); }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--orange);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--orange);
  transition: all 0.2s var(--ease);
}
.btn-outline:hover { background: var(--orange-bg); }
.btn-sm { padding: 7px 14px !important; font-size: 12px !important; }
.btn-lg { padding: 14px 30px !important; font-size: 15px !important; border-radius: var(--r) !important; }
.btn-full { width: 100%; }

/* ─── LAYOUT ────────────────────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.section { padding: 64px 0; }
.section-dark { background: var(--bg-2); }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 30px; font-weight: 800; letter-spacing: -0.03em;
}
.section-link { color: var(--orange); font-size: 14px; font-weight: 600; }
.section-link:hover { text-decoration: underline; }

/* ─── PAGE HERO ─────────────────────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(180deg, rgba(255,107,43,0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 36px;
}
.page-hero-sm { padding: 36px 0 28px; }
.page-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
}
.page-sub { color: var(--text-2); font-size: 15px; margin-top: 6px; }

/* ─── HOME HERO ─────────────────────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  max-width: 1280px; margin: 0 auto; padding: 60px 28px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-bg); color: var(--orange-3);
  border: 1px solid rgba(255,107,43,0.22);
  font-size: 12.5px; font-weight: 600;
  padding: 5px 13px; border-radius: 100px;
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 0.95; margin-bottom: 22px;
}
.hero-title em { color: var(--orange); font-style: normal; }
.hero-sub {
  font-size: 16px; color: var(--text-2); line-height: 1.7;
  max-width: 440px; margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 28px; align-items: center; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800; color: var(--orange); line-height: 1;
}
.stat-label { font-size: 11px; color: var(--text-3); margin-top: 3px; }
.stat-divider { width: 1px; height: 36px; background: var(--border-2); }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.pizza-showcase {
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,43,0.10) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
.pizza-emoji-big { font-size: 160px; filter: drop-shadow(0 20px 40px rgba(255,107,43,0.30)); }
.pizza-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,107,43,0.12);
}
.pizza-ring-1 { inset: -20px; animation: spin 28s linear infinite; }
.pizza-ring-2 { inset: -52px; animation: spin 44s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── CATEGORIES ────────────────────────────────────────────────────────────── */
.categories-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.category-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  cursor: pointer; transition: all 0.2s var(--ease); text-align: center;
}
.category-card:hover {
  border-color: var(--orange); background: var(--orange-bg);
  transform: translateY(-4px); box-shadow: var(--orange-glow);
}
.cat-emoji { font-size: 38px; }
.cat-name { font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.cat-count { font-size: 11px; color: var(--text-3); }

/* ─── PIZZA CARDS ───────────────────────────────────────────────────────────── */
.pizza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.pizza-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  transition: all 0.25s var(--ease); cursor: pointer;
}
.pizza-card:hover {
  border-color: rgba(255,107,43,0.35);
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), var(--orange-glow);
}
.pizza-card-img {
  height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 84px;
  background: radial-gradient(circle, rgba(255,107,43,0.07) 0%, transparent 70%);
  position: relative;
}
.pizza-card-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--orange-bg); color: var(--orange);
  border: 1px solid rgba(255,107,43,0.3);
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  padding: 3px 9px; border-radius: 6px; text-transform: uppercase;
}
.pizza-card-body { padding: 16px 18px 18px; }
.pizza-card-name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; margin-bottom: 5px;
}
.pizza-card-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.5; margin-bottom: 14px; }
.pizza-card-meta { display: flex; gap: 12px; margin-bottom: 14px; }
.pizza-card-rating, .pizza-card-time { font-size: 12px; color: var(--text-3); }
.pizza-card-footer { display: flex; align-items: center; justify-content: space-between; }
.pizza-card-price {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 800; color: var(--orange);
}
.pizza-card-price .original {
  font-size: 13px; color: var(--text-3);
  text-decoration: line-through; margin-right: 4px;
}
.add-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1;
  transition: all 0.2s var(--ease);
}
.add-btn:hover { background: var(--orange-2); transform: scale(1.12); }

/* ─── HOW IT WORKS ──────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.step-card {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 26px 22px;
  position: relative; overflow: hidden;
}
.step-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.step-num {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 800;
  color: rgba(255,107,43,0.10); line-height: 1; margin-bottom: 10px;
}
.step-icon { font-size: 30px; margin-bottom: 12px; }
.step-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 7px; }
.step-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 44px 0 24px;
}
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 28px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-tagline { font-size: 13px; color: var(--text-3); }
.footer-links { display: flex; gap: 24px; align-items: center; }
.footer-links a { font-size: 13.5px; color: var(--text-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-3);
}

/* ─── MENU FILTERS ──────────────────────────────────────────────────────────── */
.menu-filters {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap; margin-bottom: 28px;
}
.search-box {
  display: flex; align-items: center; gap: 9px;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 9px 14px;
  flex: 1; min-width: 180px;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: var(--orange); }
.search-box input {
  background: none; border: none; outline: none;
  font-size: 13.5px; color: var(--text); flex: 1;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box svg { color: var(--text-3); flex-shrink: 0; }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
  padding: 7px 15px; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-2); transition: all 0.2s var(--ease);
}
.filter-tab:hover { border-color: var(--orange); color: var(--orange); }
.filter-tab.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.sort-select {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 9px 13px;
  font-size: 13px; color: var(--text-2); outline: none; cursor: pointer;
}
.sort-select-wrap { position: relative; }

/* ─── BUILDER ───────────────────────────────────────────────────────────────── */
.builder-container { padding: 28px 0 72px; }
.builder-steps {
  display: flex; align-items: center; gap: 0; margin-bottom: 36px;
}
.builder-step {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 18px; border-radius: var(--r-sm);
  cursor: pointer; transition: all 0.2s var(--ease);
}
.bstep-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-4); color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  transition: all 0.2s;
}
.builder-step.active .bstep-num { background: var(--orange); color: #fff; }
.builder-step.done .bstep-num { background: var(--green); color: #fff; }
.bstep-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.builder-step.active .bstep-label { color: var(--text); }
.bstep-line { flex: 1; height: 1px; background: var(--border-2); }
.builder-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start;
}
.builder-panel {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px;
}
.builder-step-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  margin-bottom: 4px;
}
.builder-step-sub { font-size: 13px; color: var(--text-2); margin-bottom: 24px; }
.options-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px; margin-bottom: 24px;
}
.option-card {
  background: var(--bg-3); border: 2px solid var(--border);
  border-radius: var(--r); padding: 16px 10px;
  text-align: center; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.option-card:hover { border-color: var(--border-2); }
.option-card.selected { border-color: var(--orange); background: var(--orange-bg); }
.option-emoji { font-size: 32px; margin-bottom: 7px; }
.option-name { font-family: var(--font-display); font-size: 12.5px; font-weight: 700; }
.option-desc { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.option-price { font-size: 11px; color: var(--orange); margin-top: 3px; }
.toppings-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 9px; margin-bottom: 24px;
}
.topping-card {
  display: flex; align-items: center; gap: 9px;
  background: var(--bg-3); border: 2px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 12px;
  cursor: pointer; transition: all 0.2s var(--ease);
}
.topping-card:hover { border-color: var(--border-2); }
.topping-card.selected { border-color: var(--orange); background: var(--orange-bg); }
.topping-emoji { font-size: 20px; flex-shrink: 0; }
.topping-name { font-size: 12.5px; font-weight: 600; }
.topping-price { font-size: 11px; color: var(--orange); }
.builder-nav {
  display: flex; justify-content: space-between; align-items: center; margin-top: 4px;
}
.preview-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 24px;
  position: sticky; top: calc(var(--nav-h) + 16px);
}
.preview-pizza-emoji { font-size: 72px; text-align: center; margin-bottom: 16px; }
.preview-title {
  font-family: var(--font-display); font-size: 17px; font-weight: 800; margin-bottom: 16px;
}
.preview-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; gap: 8px;
}
.preview-row:last-of-type { border-bottom: none; }
.preview-row span:first-child { color: var(--text-2); flex-shrink: 0; }
.preview-row span:last-child { font-weight: 600; text-align: right; font-size: 12px; }
.preview-price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 18px;
  font-family: var(--font-display); font-weight: 800;
}
.preview-price { font-size: 26px; color: var(--orange); }

/* ─── CART ──────────────────────────────────────────────────────────────────── */
.cart-container {
  display: grid; grid-template-columns: 1fr 340px; gap: 28px;
  padding: 28px 0 72px; align-items: start;
}
.cart-items-col { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px;
  display: flex; gap: 16px; align-items: center;
  transition: border-color 0.2s;
}
.cart-item:hover { border-color: var(--border-2); }
.cart-item-emoji { font-size: 48px; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.cart-item-desc { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg-4); color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: all 0.2s var(--ease);
}
.qty-btn:hover { background: var(--orange); color: #fff; }
.qty-num { font-family: var(--font-display); font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }
.cart-item-price {
  font-family: var(--font-display); font-size: 18px; font-weight: 800;
  color: var(--orange); flex-shrink: 0;
}
.remove-btn {
  color: var(--text-3); font-size: 16px; flex-shrink: 0;
  transition: color 0.2s; padding: 4px;
}
.remove-btn:hover { color: var(--red); }
.cart-empty {
  text-align: center; padding: 72px 24px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.cart-empty-icon { font-size: 56px; margin-bottom: 14px; }
.summary-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 24px;
  position: sticky; top: calc(var(--nav-h) + 16px);
}
.summary-title { font-family: var(--font-display); font-size: 17px; font-weight: 800; margin-bottom: 18px; }
.coupon-row { display: flex; gap: 8px; margin-bottom: 6px; }
.coupon-input {
  flex: 1; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 8px 12px;
  font-size: 13px; outline: none; transition: border-color 0.2s;
}
.coupon-input:focus { border-color: var(--orange); }
.coupon-input::placeholder { color: var(--text-3); }
.coupon-msg { font-size: 12px; margin-bottom: 14px; min-height: 16px; }
.coupon-msg.success { color: var(--green); }
.coupon-msg.error { color: var(--red); }
.summary-rows { margin-bottom: 18px; }
.summary-row {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-2);
}
.summary-row:last-child { border-bottom: none; }
.summary-row.total {
  font-family: var(--font-display); font-size: 17px; font-weight: 800;
  color: var(--text); padding-top: 12px;
}
.summary-row.discount { color: var(--green); }

/* ─── CHECKOUT ──────────────────────────────────────────────────────────────── */
.checkout-container {
  display: grid; grid-template-columns: 1fr 360px; gap: 28px;
  padding: 28px 0 72px; align-items: start;
}
.checkout-form-col { display: flex; flex-direction: column; gap: 20px; }
.form-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 26px;
}
.form-section-title { font-family: var(--font-display); font-size: 16px; font-weight: 800; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-full { grid-column: 1 / -1; }
.form-group label {
  font-size: 11px; font-weight: 700; color: var(--text-2);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.form-input {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 13px;
  font-size: 13.5px; outline: none; transition: border-color 0.2s; width: 100%;
}
.form-input:focus { border-color: var(--orange); }
.form-input::placeholder { color: var(--text-3); }
.payment-options { display: flex; flex-direction: column; gap: 9px; }
.payment-option {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-3); border: 2px solid var(--border);
  border-radius: var(--r); padding: 12px 16px;
  cursor: pointer; transition: all 0.2s var(--ease);
}
.payment-option:has(input:checked) { border-color: var(--orange); background: var(--orange-bg); }
.payment-option input { accent-color: var(--orange); }
.payment-option-inner { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 500; }
.payment-icon { font-size: 20px; }
.checkout-items-list { margin-bottom: 14px; }
.checkout-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item-name { color: var(--text-2); }
.checkout-item-price { font-weight: 600; }

/* ─── TRACKING ──────────────────────────────────────────────────────────────── */
.tracking-container {
  display: grid; grid-template-columns: 1fr 300px; gap: 28px;
  padding: 28px 0 72px; align-items: start;
}
.tracking-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px;
}
.tracking-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 32px;
}
.tracking-order-id { font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.tracking-eta { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.tracking-status-badge {
  background: var(--orange-bg); color: var(--orange);
  border: 1px solid rgba(255,107,43,0.28);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 5px 13px; border-radius: 100px; text-transform: uppercase;
}
.tracking-steps { display: flex; flex-direction: column; margin-bottom: 28px; }
.track-step {
  display: flex; gap: 16px; align-items: flex-start;
  position: relative;
}
.track-step:not(:last-child) { padding-bottom: 24px; }
.track-step:not(:last-child)::after {
  content: '';
  position: absolute; left: 16px; top: 36px;
  width: 2px; bottom: 0;
  background: var(--border-2);
  transition: background 0.4s;
}
.track-step.completed::after { background: var(--orange); }
.track-step-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-4); border: 2px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; z-index: 1; transition: all 0.3s;
}
.track-step.completed .track-step-icon { background: var(--orange); border-color: var(--orange); }
.track-step.active .track-step-icon {
  background: var(--orange-bg); border-color: var(--orange);
  animation: trackPulse 1.8s ease-in-out infinite;
}
@keyframes trackPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,107,43,0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(255,107,43,0); }
}
.track-step-info { padding-top: 5px; }
.track-step-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.track-step-time { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.tracking-items { border-top: 1px solid var(--border); padding-top: 20px; }
.tracking-items-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.tracking-item {
  display: flex; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text-2);
}
.tracking-item:last-child { border-bottom: none; }
.tracking-side { display: flex; flex-direction: column; gap: 14px; }
.delivery-agent-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 22px;
}
.da-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.da-info { display: flex; align-items: center; gap: 12px; }
.da-avatar { font-size: 36px; }
.da-name { font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.da-rating { font-size: 12px; color: var(--text-2); margin-top: 2px; }

/* ─── MY ORDERS ─────────────────────────────────────────────────────────────── */
.orders-list { display: flex; flex-direction: column; gap: 14px; }
.order-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 22px;
  cursor: pointer; transition: all 0.2s var(--ease);
}
.order-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.order-card-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 12px;
}
.order-id { font-family: var(--font-display); font-size: 15px; font-weight: 800; }
.order-date { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.order-status {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 11px; border-radius: 100px; text-transform: uppercase;
}
.status-delivered     { background: rgba(34,197,94,0.14); color: var(--green); }
.status-preparing     { background: rgba(245,158,11,0.14); color: var(--yellow); }
.status-out_for_delivery { background: var(--orange-bg); color: var(--orange); }
.status-pending       { background: rgba(160,152,144,0.14); color: var(--text-2); }
.status-cancelled     { background: rgba(239,68,68,0.14); color: var(--red); }
.order-items-preview { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.order-item-chip {
  background: var(--bg-4); border-radius: 100px;
  padding: 3px 11px; font-size: 12px; color: var(--text-2);
}
.order-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.order-total { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--orange); }

/* ─── AUTH ──────────────────────────────────────────────────────────────────── */
.auth-container {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255,107,43,0.05) 0%, transparent 70%);
}
.auth-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 44px;
  width: 100%; max-width: 400px;
}
.auth-logo { text-align: center; font-size: 40px; margin-bottom: 6px; }
.auth-title { font-family: var(--font-display); font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 5px; }
.auth-sub { font-size: 13.5px; color: var(--text-2); text-align: center; margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--text-2); }
.auth-switch a { color: var(--orange); font-weight: 600; }

/* ─── ADMIN ─────────────────────────────────────────────────────────────────── */
.admin-layout {
  display: grid; grid-template-columns: 210px 1fr;
  min-height: calc(100vh - var(--nav-h));
}
.admin-sidebar {
  background: var(--bg-2); border-right: 1px solid var(--border);
  padding: 20px 10px;
  position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.admin-brand {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 14px; font-weight: 800;
  padding: 7px 12px; margin-bottom: 20px; color: var(--orange);
}
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 13px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: all 0.2s var(--ease);
}
.admin-nav-item:hover { background: var(--bg-3); color: var(--text); }
.admin-nav-item.active { background: var(--orange-bg); color: var(--orange); }
.admin-back-btn {
  margin-top: auto; padding: 9px 13px;
  font-size: 12.5px; color: var(--text-3);
  border-radius: var(--r-sm); transition: all 0.2s; text-align: left;
}
.admin-back-btn:hover { color: var(--text); background: var(--bg-3); }
.admin-main { padding: 28px; overflow-y: auto; }
.admin-tab { display: none; }
.admin-tab.active { display: block; animation: fadeUp 0.3s var(--ease); }
.admin-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
}
.admin-page-title { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.admin-date { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.admin-header-actions { display: flex; gap: 9px; align-items: center; }

/* Stats grid */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  border-radius: var(--r-lg); padding: 20px;
  border: 1px solid var(--border); transition: border-color 0.2s;
}
.stat-card:hover { border-color: var(--border-2); }
.stat-card-orange { background: linear-gradient(135deg, rgba(255,107,43,0.12), rgba(255,107,43,0.04)); }
.stat-card-blue   { background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(59,130,246,0.04)); }
.stat-card-green  { background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(34,197,94,0.04)); }
.stat-card-purple { background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(168,85,247,0.04)); }
.stat-card-icon { font-size: 26px; margin-bottom: 10px; }
.stat-card-value { font-family: var(--font-display); font-size: 26px; font-weight: 800; margin-bottom: 3px; }
.stat-card-label { font-size: 12.5px; color: var(--text-2); margin-bottom: 7px; }
.stat-card-change { font-size: 11.5px; color: var(--green); }

/* Charts */
.admin-charts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 24px;
}
.chart-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px;
}
.chart-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.bar-chart { display: flex; align-items: flex-end; gap: 7px; height: 96px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.bar-val { font-size: 9px; color: var(--text-3); }
.bar-fill {
  width: 100%; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--orange), rgba(255,107,43,0.45));
  transition: height 0.6s var(--ease);
}
.bar-label { font-size: 10px; color: var(--text-3); }
.top-pizzas { display: flex; flex-direction: column; gap: 11px; }
.top-pizza-item { display: flex; align-items: center; gap: 10px; }
.top-pizza-rank { font-family: var(--font-display); font-size: 12px; font-weight: 800; color: var(--text-3); width: 18px; }
.top-pizza-info { flex: 1; }
.top-pizza-name { font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.top-pizza-bar-wrap { height: 5px; background: var(--bg-4); border-radius: 3px; overflow: hidden; }
.top-pizza-bar { height: 100%; background: var(--orange); border-radius: 3px; transition: width 0.6s var(--ease); }
.top-pizza-count { font-size: 11px; color: var(--text-3); width: 36px; text-align: right; }

/* Admin table */
.admin-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
}
.admin-card-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.admin-card-header h3 { font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: 10px 16px; text-align: left;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text-3); text-transform: uppercase;
  background: var(--bg-3); border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 13px 16px; font-size: 13px;
  border-bottom: 1px solid var(--border); vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.015); }
.table-name { font-weight: 600; }
.status-select {
  background: var(--bg-4); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 5px 9px;
  font-size: 12px; color: var(--text-2); outline: none; cursor: pointer;
}
.stock-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 100px;
}
.stock-ok       { background: rgba(34,197,94,0.14); color: var(--green); }
.stock-low      { background: rgba(245,158,11,0.14); color: var(--yellow); }
.stock-critical { background: rgba(239,68,68,0.14); color: var(--red); }

/* ─── MODAL ─────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.72); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 28px;
  width: 100%; max-width: 460px;
  animation: slideUp 0.3s var(--ease);
}
@keyframes slideUp { from { transform: translateY(18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}
.modal-header h3 { font-family: var(--font-display); font-size: 19px; font-weight: 800; }
.modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-4); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all 0.2s;
}
.modal-close:hover { background: var(--red); color: #fff; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }

/* ─── TOAST ─────────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 22px; right: 22px; z-index: 2000;
  display: flex; flex-direction: column; gap: 9px;
  pointer-events: none;
}
.toast {
  background: var(--bg-3); border: 1px solid var(--border-2);
  border-radius: var(--r); padding: 12px 16px;
  display: flex; align-items: center; gap: 9px;
  box-shadow: var(--shadow-lg); max-width: 300px;
  animation: toastIn 0.3s var(--ease);
  pointer-events: all;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.info    { border-left: 3px solid var(--orange); }
.toast-icon { font-size: 16px; flex-shrink: 0; }
.toast-msg { font-size: 13.5px; }
@keyframes toastIn  { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-charts { grid-template-columns: 1fr; }
  .cart-container, .checkout-container, .tracking-container { grid-template-columns: 1fr; }
  .builder-layout { grid-template-columns: 1fr; }
  .preview-card { position: static; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .admin-charts { grid-template-columns: 1fr; }
  .hero-title { font-size: 44px; }
}