@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #09090b;
  --bg-elev: #141416;
  --panel: #18181b;
  --panel-2: #202023;
  --accent: #2d6a4f;
  --accent-bright: #3d8b6a;
  --accent-ink: #eafff4;
  --accent-2: #3d8b6a;
  --accent-pink: #ff007f;
  --accent-pink-text: #ff6fae;
  --accent-pink-soft: rgba(255,0,127,0.14);
  --brand-gradient: linear-gradient(165deg, #74c69d 0%, #40916c 40%, #ff007f 100%);
  --text: #fafafa;
  --text-dim: #a1a1aa;
  --muted: #71717a;
  --border: #27272a;
  --border-soft: #1f1f22;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(0,0,0,0.36);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: radial-gradient(1100px 560px at 50% -12%, #12241c 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 720px; margin: 0 auto; padding: 28px 18px 100px; }

.brand {
  font-family: 'Inter', system-ui, sans-serif; font-weight: 800; font-size: 1.5rem;
  letter-spacing: -0.03em; display: flex; align-items: center; color: var(--text);
}
.brand span {
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand small { font-weight: 500; font-size: 0.72rem; color: var(--muted); letter-spacing: 0; margin-left: 4px; text-transform: uppercase; }

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel) 60%, var(--panel-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.card h2, .card h3 { margin-top: 0; letter-spacing: -0.01em; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: rgba(61,139,106,0.14); color: var(--accent-2);
  display: flex; align-items: center; justify-content: center;
}
.card-head h3 { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  box-shadow: 0 4px 14px rgba(45,106,79,0.35);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:not(.secondary):not(.ghost):not(.danger):hover { background: var(--accent-bright); }
.btn.secondary:hover, .btn.ghost:hover { border-color: var(--accent); color: var(--text); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
.btn.secondary { background: var(--panel-2); border: 1px solid var(--border); color: var(--text); box-shadow: none; }
.btn.ghost { background: transparent; border: 1px solid var(--border); color: var(--text-dim); box-shadow: none; }
.btn.small { padding: 7px 14px; font-size: 0.82rem; }
.btn.danger { background: #d9534f; box-shadow: 0 4px 14px rgba(217,83,79,0.25); }
.btn.block { width: 100%; }

.chip {
  display: inline-flex; align-items: center;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin: 4px 8px 4px 0;
  cursor: pointer;
  background: var(--panel-2);
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.12s ease;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.selected { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.chip-ask {
  display: inline-flex; align-items: center; justify-content: center;
  width: 37px; height: 37px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin: 4px 0 4px 4px;
  cursor: pointer;
  background: var(--panel-2);
  color: var(--text-dim);
  vertical-align: middle;
  transition: all 0.12s ease;
}
.chip-ask:hover { border-color: var(--accent); color: var(--accent); background: rgba(61,139,106,0.14); }

table { width: 100%; border-collapse: collapse; margin-top: 12px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-soft); font-size: 0.88rem; }
th { color: var(--muted); font-weight: 600; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; }
tr:last-child td { border-bottom: none; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 16px;
  transition: border-color 0.15s ease;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.stat:hover { border-color: var(--accent); }
.stat-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(61,139,106,0.14); color: var(--accent-2);
}
.stat .num-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stat .num { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat .label { color: var(--muted); font-size: 0.78rem; }
.stat.pink .num { color: var(--accent-pink-text); }
.stat.pink .stat-icon { background: var(--accent-pink-soft); color: var(--accent-pink-text); }
.trend { display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; line-height: 1; }
.trend.up { background: rgba(61,139,106,0.16); color: var(--accent-2); }
.trend.down { background: rgba(224,82,82,0.14); color: #e05252; }
.trend.flat { background: var(--panel-2); color: var(--muted); }

label { display: block; margin: 14px 0 6px; font-size: 0.84rem; color: var(--muted); font-weight: 500; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], textarea, select {
  width: 100%; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.12s ease;
  -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { min-height: 84px; resize: vertical; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.search-box { position: relative; }
.search-box input[type=search] {
  padding: 16px 46px 16px 50px; border-radius: 999px; font-size: 1.05rem;
  border-width: 1.5px; box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.search-box input[type=search]:focus { box-shadow: 0 2px 14px rgba(0,0,0,0.16), 0 0 0 3px rgba(61,139,106,0.18); }
.search-box .search-box-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; display: flex;
}
.search-box:focus-within .search-box-icon { color: var(--accent); }
.search-box .search-box-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; color: var(--muted); text-decoration: none; transition: all 0.12s ease;
}
.search-box .search-box-clear:hover { background: var(--panel-2); color: var(--text); }
.row { display: flex; gap: 20px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 150px; }
.row > .field-tight { flex: 0 0 auto; min-width: 0; }

.badge { padding: 4px 12px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.badge.approved { background: rgba(61,139,106,0.16); color: var(--accent-2); }
.badge.pending { background: rgba(224,195,82,0.14); color: #e0c352; }
.badge.rejected { background: rgba(224,82,82,0.14); color: #e05252; }

nav.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: rgba(9,9,11,0.85); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
form.inline { display: inline; }

/* ============ Admin app nav (shared across restaurant + platform admin) ============ */
.icon { display: inline-block; vertical-align: -3px; flex-shrink: 0; }
.mobile-only { display: revert; }
.desktop-only { display: none; }

.app-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(9,9,11,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.app-nav-brand-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px 10px; gap: 12px;
}
.app-nav-brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.app-nav-brand .brand { font-size: 1.15rem; }
.app-nav-context { font-size: 0.82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-nav-tabs {
  display: flex; gap: 4px; padding: 0 16px 10px;
  overflow-x: auto; scrollbar-width: none;
}
.app-nav-tabs::-webkit-scrollbar { display: none; }
.nav-tab {
  flex-shrink: 0; display: flex; align-items: center; gap: 9px;
  padding: 8px 14px; border-radius: 12px;
  font-size: 0.84rem; font-weight: 600; color: var(--text-dim);
  white-space: nowrap; transition: background 0.12s ease, color 0.12s ease;
}
.nav-tab:hover { background: var(--panel-2); color: var(--text); text-decoration: none; }
.nav-tab.active { background: var(--brand-gradient); color: #fff; box-shadow: 0 4px 14px rgba(45,106,79,0.35); }

.app-nav-footer { display: none; }
.nav-premium {
  margin: 8px 12px; padding: 14px; border-radius: 12px;
  background: linear-gradient(160deg, rgba(255,0,127,0.16), rgba(61,139,106,0.08));
  border: 1px solid rgba(255,0,127,0.3);
}
.nav-premium-title { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.84rem; color: var(--accent-pink-text); }
.nav-premium p { font-size: 0.76rem; color: var(--text-dim); margin: 6px 0 10px; line-height: 1.4; }

.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 1.5rem; margin: 0 0 4px; letter-spacing: -0.015em; }
.page-head p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.admin-content { padding: 28px 24px 100px; max-width: 1180px; }

.btn.icon-only { padding: 8px 9px; }

/* Below 640px, collapse tab labels to icon-only pills so the scroll strip stays compact and legible. */
@media (max-width: 640px) {
  .nav-tab span { display: none; }
  .nav-tab { padding: 9px 11px; }
}

@media (max-width: 480px) {
  .app-nav-brand-row { padding: 12px 14px 8px; }
  .app-nav-tabs { padding: 0 10px 10px; }
  .admin-content { padding: 20px 14px 90px; }
}

/* Desktop: nav becomes a fixed left sidebar instead of a horizontal top bar. */
@media (min-width: 900px) {
  .mobile-only { display: none; }
  .desktop-only { display: block; }
  .admin-body { display: flex; align-items: flex-start; }
  .app-nav {
    flex: 0 0 240px; align-self: stretch;
    border-bottom: none; border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
  }
  .app-nav-brand-row { padding: 22px 20px 18px; }
  .app-nav-tabs { flex-direction: column; align-items: stretch; padding: 4px 12px; overflow-x: visible; flex: 1; }
  .nav-tab { text-align: left; }
  .app-nav-footer {
    display: block; padding: 14px 16px; border-top: 1px solid var(--border);
  }
  .app-nav-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
  .app-nav-user-name { font-weight: 700; font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
  .app-nav-user-role { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
  .app-nav-footer .btn { display: flex; align-items: center; justify-content: center; gap: 6px; }
  .admin-content { flex: 1; min-width: 0; margin: 0 auto; }
}

.auth-shell {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px 18px;
}
.auth-shell .brand { margin-bottom: 22px; font-size: 1.7rem; }
.auth-shell .card { width: 100%; max-width: 380px; margin-bottom: 0; }

/* ============ Guest chat ============ */
.chat-shell { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.chat-header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: rgba(9,9,11,0.9); backdrop-filter: blur(10px); z-index: 5;
}
.chat-header-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1 1 auto; }
.chat-logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.chat-header-brand > div { min-width: 0; }
.chat-header-title {
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-header-sub { font-size: 0.72rem; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.table-pill { color: var(--accent-2); font-weight: 700; }
.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang-btn { background: transparent; border: none; color: var(--muted); padding: 7px 13px; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.lang-btn.active { background: var(--accent); color: #fff; }

.chat-thread { flex: 1; padding: 18px; overflow-y: auto; padding-bottom: 24px; }

.msg-row { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.msg-row.guest { justify-content: flex-end; }
.msg-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-gradient);
  color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(45,106,79,0.35);
}
.msg-avatar-z { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 13px; line-height: 1; }
.bubble.ai {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); border-bottom-left-radius: 4px;
  padding: 13px 17px; max-width: 84%;
  box-shadow: var(--shadow); line-height: 1.55; font-size: 0.94rem;
}
.bubble.guest {
  background: var(--accent); color: #fff; line-height: 1.5; font-size: 0.94rem;
  border-radius: var(--radius); border-bottom-right-radius: 4px;
  padding: 11px 16px; max-width: 78%; box-shadow: 0 4px 14px rgba(45,106,79,0.25);
}
.typing-dots { display: inline-flex; gap: 4px; align-items: center; padding: 4px 0; }
.typing-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chip-row { display: flex; flex-wrap: wrap; margin: 4px 0 18px 38px; }
.chat-thread .chat-input { margin: 4px 0 6px 38px; width: calc(100% - 38px); }
.ask-inline-row { display: flex; align-items: center; gap: 8px; margin: 0 0 18px 38px; }
.ask-inline-row .ask-inline-input { flex: 1; margin: 0; width: auto; height: 42px; padding-top: 0; padding-bottom: 0; box-sizing: border-box; }
.ask-inline-row .chip-ask { flex-shrink: 0; width: 42px; height: 42px; }

.dish {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px;
  margin-bottom: 12px; background: var(--bg-elev); box-shadow: var(--shadow);
  transition: border-color 0.12s ease;
}
.dish.in-cart { border-color: var(--accent); }
.dish.has-image { display: flex; gap: 14px; align-items: flex-start; }
.dish-img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--panel-2); }
.dish-body { flex: 1; min-width: 0; }
.dish h3 { margin: 0 0 4px; font-size: 1.02rem; letter-spacing: -0.01em; }
.dish-desc { color: var(--muted); font-size: 0.88rem; margin: 4px 0 10px; line-height: 1.45; }
.tag { display: inline-block; font-size: 0.72rem; color: var(--text-dim); background: var(--panel-2); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; margin: 0 6px 6px 0; }
.allergen-note { font-size: 0.76rem; color: #e0a352; margin-top: 8px; }
.dish-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.price { color: var(--accent-2); font-weight: 700; font-size: 1rem; }
.qty-stepper { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); font-size: 1rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.12s ease;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent-2); }
.qty-value { min-width: 18px; text-align: center; font-weight: 700; }

.cart-bar {
  position: sticky; bottom: 0; background: rgba(9,9,11,0.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); padding: 14px 18px; display: none;
  align-items: center; justify-content: space-between; gap: 12px;
}
.cart-bar.visible { display: flex; }
.cart-summary { font-size: 0.85rem; color: var(--text-dim); }
.cart-summary .cart-total { color: var(--accent-2); font-weight: 700; font-size: 1rem; }

.staff-bar { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: center; align-items: center; gap: 10px; }

.order-confirm { text-align: center; padding: 8px 0; }
.order-confirm .checkmark { font-size: 2.4rem; margin-bottom: 8px; }
.order-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.9rem; }
.order-line:last-child { border-bottom: none; }
.order-total-row { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--border); font-weight: 700; }

.menu-toolbar { padding: 18px 18px 0; }
.menu-section-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; margin: 18px 0 8px; }
.menu-section-title:first-child { margin-top: 0; }


.rating-widget { text-align: center; padding: 10px 0; }
.rating-stars { font-size: 1.8rem; letter-spacing: 4px; cursor: pointer; }
.rating-stars .star { color: var(--border); transition: color 0.1s ease; }
.rating-stars .star.active { color: #e0c352; }

.privacy-menu { position: relative; display: inline-block; }
.privacy-dropdown {
  position: absolute; bottom: 100%; right: 0; margin-bottom: 8px;
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px; width: 220px; box-shadow: var(--shadow); font-size: 0.8rem;
  max-width: calc(100vw - 36px);
}
/* Header dropdowns open downward instead of upward (upward would run off the top of the screen). */
.privacy-dropdown.dropdown-down { bottom: auto; top: 100%; margin-bottom: 0; margin-top: 8px; }

.role-badge { background: var(--panel-2); color: var(--text-dim); text-transform: uppercase; vertical-align: middle; margin-left: 8px; }
.bar-chart { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.bar-row { display: grid; grid-template-columns: 46px 1fr 56px; align-items: center; gap: 10px; font-size: 0.78rem; }
.bar-label { color: var(--muted); }
.bar-track { background: var(--panel-2); border-radius: 999px; height: 10px; overflow: hidden; }
.bar-fill { background: linear-gradient(90deg, var(--accent), var(--accent-bright)); height: 100%; border-radius: 999px; min-width: 3px; }
.bar-value { text-align: right; color: var(--text-dim); }

/* ============ Admin: analytics & reviews (shared bar/funnel widgets) ============ */
.funnel { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.funnel-step { display: grid; grid-template-columns: 140px 1fr 60px; align-items: center; gap: 12px; }
.funnel-label { font-size: 0.85rem; color: var(--text-dim); }
.funnel-track { background: var(--panel-2); border-radius: 999px; height: 22px; overflow: hidden; position: relative; }
.funnel-fill { background: linear-gradient(90deg, var(--accent), var(--accent-bright)); height: 100%; border-radius: 999px; display: flex; align-items: center; padding-left: 10px; font-size: 0.75rem; font-weight: 700; color: #fff; min-width: 30px; }
.funnel-count { text-align: right; font-weight: 700; }
.hour-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 10px; align-items: end; height: 90px; }
.hour-bar-wrap { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.hour-bar { width: 100%; background: linear-gradient(180deg, var(--accent-bright), var(--accent)); border-radius: 4px 4px 0 0; min-height: 2px; }
.hour-label { font-size: 0.62rem; color: var(--muted); margin-top: 4px; }
.pref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 10px; }
.pref-block h4 { margin: 0 0 8px; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.rating-row { display: grid; grid-template-columns: 40px 1fr 50px; align-items: center; gap: 10px; font-size: 0.82rem; margin-bottom: 6px; }

@media (max-width: 520px) {
  .funnel-step { grid-template-columns: 92px 1fr 38px; gap: 8px; }
  .funnel-label { font-size: 0.76rem; }
  .funnel-count { font-size: 0.85rem; }
  .funnel-fill { font-size: 0.68rem; padding-left: 8px; }
}

/* ============ Admin: reviews ============ */
.review-card { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.review-card:last-child { border-bottom: none; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff;
}
.avatar-0 { background: #2d6a4f; } .avatar-1 { background: #3080ff; }
.avatar-2 { background: #b5860b; } .avatar-3 { background: #6a5fd8; }
.avatar-4 { background: #c0546f; } .avatar-5 { background: #3d8b6a; }
.review-body { flex: 1; min-width: 0; }
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.review-name { font-weight: 700; }
.review-time { font-size: 0.76rem; color: var(--muted); }
.review-stars { color: #e0c352; font-size: 0.9rem; letter-spacing: 2px; margin: 3px 0 6px; }
.review-text { font-size: 0.9rem; color: var(--text-dim); line-height: 1.5; }
.review-dishes { font-size: 0.76rem; color: var(--muted); margin-top: 6px; }

/* ============ Admin: orders ============ */
.filter-row { display: flex; flex-wrap: wrap; margin-bottom: 18px; }
.filter-row .chip { text-decoration: none; }
.order-card { padding: 18px; }
.order-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; flex-wrap: wrap; gap: 8px; }
.order-time { color: var(--muted); font-size: 0.78rem; margin-left: 10px; }
.order-actions { display: flex; gap: 10px; margin-top: 14px; }
.badge.status-new { background: rgba(224,195,82,0.14); color: #e0c352; }
.badge.status-preparing { background: rgba(48,128,255,0.14); color: #5da2ff; }
.badge.status-served { background: rgba(61,139,106,0.16); color: var(--accent-2); }
.badge.status-paid { background: rgba(161,161,170,0.14); color: var(--text-dim); }
.badge.status-cancelled { background: rgba(224,82,82,0.14); color: #e05252; }

@media (max-width: 480px) {
  .container { padding: 20px 14px 90px; }
  .card { padding: 18px; }
}
