/* ============================================
   SNACKY'S — PREMIUM MENU EXPERIENCE
   ============================================ */

:root {
  /* ── 60% Blanc cassé ──────────────────────── */
  --bg:         #FAF6F1;
  --surface:    #FFFFFF;
  --surface-2:  #F5EDEA;
  --surface-3:  #EDE0E3;
  /* ── 30% Rouge bordeaux ───────────────────── */
  --copper:     #7A1B2F;   /* bordeaux (remplace l'ancienne variable copper) */
  --red:        #7A1B2F;
  --red-deep:   #5E1424;
  --red-hover:  #921E37;
  --red-tint:   #F7EAEC;
  /* ── 10% Or champagne ─────────────────────── */
  --gold:       #C9A84C;
  --gold-light: #D9BC74;
  --gold-dark:  #A88B3A;
  --gold-g:     linear-gradient(135deg, #A88B3A 0%, #D9BC74 50%, #A88B3A 100%);
  /* ── Status ───────────────────────────────── */
  --emerald:    #2E7D56;
  /* ── Texte ────────────────────────────────── */
  --cream:      #FAF6F1;
  --text:       #1C0A10;
  --text-muted: #7A4F5C;
  /* ── Bordures & Verre ─────────────────────── */
  --glass:        rgba(122, 27, 47, 0.03);
  --glass-border: #E8D0D5;
  /* ── Ombres ───────────────────────────────── */
  --shadow-sm:   0 2px 8px rgba(122,27,47,0.08);
  --shadow-md:   0 8px 30px rgba(122,27,47,0.12);
  --shadow-lg:   0 20px 50px rgba(122,27,47,0.15);
  --shadow-gold: 0 4px 20px rgba(201,168,76,0.22);
  --shadow-red:  0 4px 20px rgba(122,27,47,0.22);
  /* ── Radius ───────────────────────────────── */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

::selection { background: rgba(122,27,47,0.15); color: var(--red-deep); }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--glass-border) var(--bg);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: none; border: none; background: none; }
input, select, textarea { font-family: inherit; cursor: none; }

/* ─── CUSTOM CURSOR ─────────────────────────── */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.15s var(--ease), height 0.15s var(--ease);
}
.cursor.hover { width: 32px; height: 32px; background: var(--gold); }

.cursor-follower {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(122,27,47,0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
}
.cursor-follower.hover { width: 50px; height: 50px; border-color: rgba(201,168,76,0.5); }

/* ─── AMBIENT BACKGROUND ────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: orbFloat 25s ease-in-out infinite;
}

.orb-gold {
  width: 500px;
  height: 500px;
  top: -150px;
  right: -100px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
}

.orb-copper {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -80px;
  background: radial-gradient(circle, var(--copper) 0%, transparent 70%);
  animation-delay: -8s;
}

.orb-emerald {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 30%;
  background: radial-gradient(circle, var(--emerald) 0%, transparent 70%);
  opacity: 0.06;
  animation-delay: -16s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -30px); }
  66% { transform: translate(-15px, 20px); }
}

#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

/* ─── PAGE LOADER ───────────────────────────── */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { text-align: center; }

.loader-logo {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: var(--bg);
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 16px;
  animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.loader-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: 0.08em;
}

.loader-bar {
  width: 160px;
  height: 2px;
  background: var(--glass-border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--copper));
  animation: loaderFill 1.5s var(--ease) forwards;
}

@keyframes loaderFill { to { width: 100%; } }

/* ─── MENU APP LAYOUT ───────────────────────── */
.menu-app {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── HEADER ────────────────────────────────── */
.menu-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,246,241,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 0;
}

.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: var(--bg);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 12px;
}

.brand-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-tag {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px rgba(78,202,160,0.6);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.header-admin {
  padding: 8px 18px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: all 0.2s;
}
.header-admin:hover {
  background: var(--surface-3);
  color: var(--gold);
  border-color: rgba(201,168,76,0.3);
}

/* ─── MAIN LAYOUT ───────────────────────────── */
.menu-main {
  flex: 1;
  display: grid;
  grid-template-columns: 240px 1fr 320px;
  gap: 0;
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* ─── SIDEBAR ───────────────────────────────── */
.menu-sidebar {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  padding: 24px 20px;
  border-right: 1px solid var(--glass-border);
  background: var(--surface-2);
}

.sidebar-section { margin-bottom: 28px; }

.sidebar-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.category-list, .tag-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chip {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: left;
  transition: all 0.2s var(--ease);
  cursor: pointer;
}
.chip:hover {
  background: var(--surface-2);
  border-color: rgba(201,168,76,0.2);
  color: var(--text);
}
.chip.active {
  background: var(--red-tint);
  border-color: rgba(122,27,47,0.3);
  color: var(--red);
}

.tag-list .chip {
  padding: 8px 12px;
  font-size: 0.8rem;
}

.sidebar-info { margin-top: auto; }

.info-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}
.info-icon { font-size: 1.4rem; }
.info-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--gold-dark);
}
.info-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── MENU CONTENT ──────────────────────────── */
.menu-content {
  padding: 24px;
  overflow-y: auto;
  height: calc(100vh - 70px);
}

.content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.content-title h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.content-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  transition: border-color 0.2s;
}
.search-box:focus-within { border-color: rgba(201,168,76,0.3); }
.search-box svg { color: var(--text-muted); flex-shrink: 0; }
.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.85rem;
  width: 140px;
}
.search-box input::placeholder { color: var(--text-muted); }

.filter-select select {
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  outline: none;
  cursor: pointer;
}

.view-toggle {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  overflow: hidden;
}

.view-btn {
  padding: 8px 12px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.view-btn.active { background: rgba(201,168,76,0.15); color: var(--gold); }
.view-btn:hover:not(.active) { color: var(--text); }

/* ─── MENU GRID ─────────────────────────────── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.menu-grid.list-view {
  grid-template-columns: 1fr;
}

.menu-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  transform-style: preserve-3d;
}
.menu-card:hover {
  border-color: rgba(201,168,76,0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.menu-card.active {
  border-color: rgba(201,168,76,0.5);
  box-shadow: var(--shadow-gold);
}

.menu-card .card-shine {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(201,168,76,0.06), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.menu-card:hover .card-shine { opacity: 1; }

.card-image {
  position: relative;
  height: 140px;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.menu-card:hover .card-image img { transform: scale(1.08); }

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,10,0.6) 100%);
}

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  background: rgba(122,27,47,0.75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-featured {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.2);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  font-size: 0.7rem;
  color: var(--gold-light);
}

.card-body { padding: 14px; }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-price {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}

.card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* List view */
.menu-grid.list-view .menu-card {
  display: grid;
  grid-template-columns: 160px 1fr;
}
.menu-grid.list-view .card-image { height: 100%; min-height: 120px; }

/* Card animation */
.menu-card {
  opacity: 0;
  transform: translateY(20px);
}
.menu-card.card-visible {
  animation: cardIn 0.4s var(--ease) forwards;
}
@keyframes cardIn { to { opacity: 1; transform: translateY(0); } }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state.hidden { display: none; }
.empty-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); font-size: 0.85rem; }

/* ─── DETAIL PANEL ──────────────────────────── */
.menu-detail {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  padding: 24px 20px;
  border-left: 1px solid var(--glass-border);
  background: var(--surface-2);
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 20px;
}

.detail-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.detail-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 14px;
  background: rgba(122,27,47,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-body { padding: 20px; }

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.detail-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.detail-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.detail-tag {
  padding: 5px 12px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--gold-light);
}

.detail-info {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.info-value {
  font-size: 0.8rem;
  color: var(--text);
}

.spice-meter {
  display: flex;
  gap: 4px;
}

.spice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(122,27,47,0.12);
  transition: background 0.2s;
}
.spice-dot.active {
  background: var(--copper);
  box-shadow: 0 0 6px rgba(122,27,47,0.4);
}

.detail-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
  transition: box-shadow 0.3s, transform 0.2s;
}
.detail-action:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* Chef picks */
.chef-picks {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.picks-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.picks-title span { color: var(--gold); }

.picks-list { display: grid; gap: 10px; }

.pick-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}
.pick-item:hover {
  background: rgba(201,168,76,0.05);
  border-color: rgba(201,168,76,0.2);
}

.pick-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  object-fit: cover;
}

.pick-info { flex: 1; min-width: 0; }

.pick-name {
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pick-price {
  font-size: 0.78rem;
  color: var(--gold);
}

/* ─── MODAL ─────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.open { display: flex; opacity: 1; }

.modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s var(--ease);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250,246,241,0.85);
  backdrop-filter: blur(6px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text);
}

.modal-image { position: relative; height: 220px; overflow: hidden; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }

.modal-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 14px;
  background: rgba(122,27,47,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--gold-light);
  text-transform: uppercase;
}

.modal-body { padding: 24px; }

.modal-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-price {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.modal-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.modal-tag {
  padding: 5px 12px;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--gold-light);
}

.modal-info {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.modal-info > div {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.modal-action {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 999px;
}

/* ─── SIDEBAR TOGGLE (Mobile) ───────────────── */
.sidebar-toggle {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 500;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: var(--bg);
  border-radius: 50%;
  box-shadow: var(--shadow-gold);
  align-items: center;
  justify-content: center;
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 1200px) {
  .menu-main { grid-template-columns: 220px 1fr 280px; }
}

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

  .menu-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 600;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
    height: 100vh;
    border-right: 1px solid var(--glass-border);
    background: var(--bg);
  }
  .menu-sidebar.open { transform: translateX(0); }

  .menu-detail { display: none; }

  .sidebar-toggle { display: flex; }

  .menu-content { height: auto; min-height: calc(100vh - 70px); }
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-follower { display: none; }

  .header-status { display: none; }

  .content-header { flex-direction: column; align-items: stretch; }
  .content-controls { justify-content: space-between; }

  .menu-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  .card-image { height: 100px; }
  .card-body { padding: 10px; }
  .card-name { font-size: 0.85rem; }
  .card-price { font-size: 0.9rem; }
  .card-desc { display: none; }
}

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

  .card-image { height: 140px; }
  .card-desc { display: block; }
}

/* ─── SCROLLBAR ─────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(201,168,76,0.4); }

/* ═══════════════════════════════════════════════
   MENU TYPE TABS (Food/Drinks)
   ═══════════════════════════════════════════════ */
.menu-type-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 4px;
}

.type-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.3s var(--ease);
}

.type-tab:hover {
  color: var(--text);
  background: var(--surface-3);
}

.type-tab.active {
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: var(--shadow-gold);
}

.type-tab svg {
  width: 18px;
  height: 18px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ═══════════════════════════════════════════════
   QUANTITY CONTROLS
   ═══════════════════════════════════════════════ */
.detail-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.quantity-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.qty-btn:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.modal-quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════
   CART TOGGLE BUTTON
   ═══════════════════════════════════════════════ */
.cart-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 500;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: var(--bg);
  border-radius: 50%;
  box-shadow: var(--shadow-gold), 0 8px 30px rgba(201,168,76,0.3);
  transition: all 0.3s var(--ease);
}

.cart-toggle:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-gold), 0 12px 40px rgba(201,168,76,0.4);
}

.cart-toggle.has-items {
  animation: cartPulse 2s ease-in-out infinite;
}

@keyframes cartPulse {
  0%, 100% { box-shadow: var(--shadow-gold), 0 8px 30px rgba(201,168,76,0.3); }
  50% { box-shadow: var(--shadow-gold), 0 8px 40px rgba(201,168,76,0.5); }
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--emerald);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 6px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s var(--ease);
}

.cart-count.has-items {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════════════
   CART DRAWER
   ═══════════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100%;
  z-index: 950;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-left: 1px solid var(--glass-border);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--glass-border);
}

.cart-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.cart-header h3 svg {
  color: var(--gold);
}

.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}

.cart-close:hover {
  color: var(--text);
  border-color: rgba(122,27,47,0.25);
}

/* Table selection */
.cart-table-select {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(201,168,76,0.05);
  border-bottom: 1px solid var(--glass-border);
}

.cart-table-select label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
}

.cart-table-select select {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
}

.cart-table-select select:focus {
  outline: none;
  border-color: var(--gold);
}

/* Cart items list */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  text-align: center;
  color: var(--text-muted);
}

.cart-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.cart-empty p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.cart-empty span {
  font-size: 0.85rem;
}

/* Cart item */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: all 0.2s var(--ease);
}

.cart-item:hover {
  border-color: rgba(201,168,76,0.2);
}

.cart-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50%;
  color: var(--gold);
  font-size: 1rem;
  transition: all 0.2s var(--ease);
}

.cart-qty-btn:hover {
  background: var(--gold);
  color: var(--bg);
}

.cart-qty-value {
  min-width: 20px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 50%;
  transition: all 0.2s var(--ease);
}

.cart-item-remove:hover {
  color: #ef4444;
  background: rgba(239,68,68,0.1);
}

/* Cart footer */
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--glass-border);
  background: var(--surface-2);
}

.cart-summary {
  margin-bottom: 16px;
}

.cart-subtotal,
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.cart-subtotal {
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
}

.cart-total {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.cart-total span:last-child {
  color: var(--gold);
  font-size: 1.25rem;
}

.cart-notes {
  margin-bottom: 16px;
}

.cart-notes textarea {
  width: 100%;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  resize: none;
  min-height: 60px;
}

.cart-notes textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.cart-notes textarea::placeholder {
  color: var(--text-muted);
}

/* Payment method selection */
.cart-payment-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.cart-payment-method label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.cart-payment-method label svg {
  color: var(--gold);
}

.cart-payment-method select {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.2s var(--ease);
}

.cart-payment-method select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.cart-payment-method select option {
  padding: 10px;
}

.cart-actions {
  display: flex;
  gap: 10px;
}

.cart-order-btn,
.cart-waiter-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s var(--ease);
}

.cart-order-btn {
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: var(--bg);
  box-shadow: var(--shadow-gold);
}

.cart-order-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201,168,76,0.4);
}

.cart-order-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cart-waiter-btn {
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.cart-waiter-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* ═══════════════════════════════════════════════
   CARD ADD BUTTON
   ═══════════════════════════════════════════════ */
.card-add-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--copper));
  color: var(--bg);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s var(--ease);
  box-shadow: var(--shadow-gold);
  z-index: 10;
}

.menu-card:hover .card-add-btn {
  opacity: 1;
  transform: scale(1);
}

.card-add-btn:hover {
  transform: scale(1.1);
}

/* ═══════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--surface-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s var(--ease);
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.toast-success .toast-icon {
  background: rgba(78,202,160,0.15);
  color: var(--emerald);
}

.toast-error .toast-icon {
  background: rgba(239,68,68,0.15);
  color: #ef4444;
}

.toast-info .toast-icon {
  background: rgba(201,168,76,0.15);
  color: var(--gold);
}

.toast-message {
  font-size: 0.9rem;
  color: var(--text);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE UPDATES
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .menu-type-tabs {
    order: -1;
    margin-bottom: 0;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-right {
    display: none;
  }
}

@media (max-width: 768px) {
  .menu-type-tabs {
    padding: 3px;
  }

  .type-tab {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .type-tab span {
    display: none;
  }

  .cart-toggle {
    bottom: 90px;
    width: 54px;
    height: 54px;
  }

  .cart-drawer {
    width: 100%;
  }

  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 160px;
  }

  .toast {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cart-actions {
    flex-direction: column;
  }

  .cart-table-select {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-payment-method {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
}
