/* ==========================================================================
   ACIKTIM DESIGN SYSTEM v7.0 — Aciktim Hybrid Formula (BK Yemek layout + v7 Suite)
   Crimson brand header · Emerald ratings/prices · optional html[data-theme="bk-green"]
   Sections:
   00 Tokens & Reset        05 Cart / Checkout / Map     10 Modals & Toast
   01 Topbar & Demo Roller  06 Auth / Profile / Kumbara  11 Dashboard System
   02 Vitrin (Discover)     07 Orders & Stepper          12 Utilities
   03 Restaurant Detail     08 Forms & Buttons           13 Print & Motion
   04 Option Modal          09 Navigation & Floating
   ========================================================================== */

/* ---------- 00. TOKENS & RESET ---------- */
:root {
  --brand: #e6391d;
  --brand-hover: #c92a10;
  --brand-active: #b32912;
  --brand-soft: #fff2ef;
  --brand-ring: rgba(230, 57, 29, 0.22);
  --gold: #d97706;
  --gold-bright: #f59e0b;
  --gold-soft: #fffbeb;
  --gold-ink: #92400e;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-subtle: #f3f4f2;
  --surface-sunken: #efefec;
  --ink: #0f172a;
  --ink-2: #475569;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --obsidian: #111114;
  --obsidian-2: #1c1c21;
  --line: rgba(15, 23, 42, 0.07);
  --line-strong: rgba(15, 23, 42, 0.13);
  --line-input: rgba(15, 23, 42, 0.16);
  --ok: #10b981;
  --ok-dark: #059669;
  --ok-soft: #ecfdf5;
  --ok-ink: #047857;
  --info: #2563eb;
  --info-soft: #eff6ff;
  --violet: #7c3aed;
  --violet-soft: #f5f3ff;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --radius-2xl: 24px;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --radius-xs: 6px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 1px 3px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(15, 23, 42, 0.07), 0 18px 40px -12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.06), 0 18px 44px rgba(15, 23, 42, 0.14), 0 32px 64px -20px rgba(15, 23, 42, 0.18);
  --shadow-brand: 0 1px 2px rgba(230, 57, 29, 0.2), 0 6px 18px rgba(230, 57, 29, 0.24);
  --ring: 0 0 0 3px var(--brand-ring);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --topbar-h: 58px;
  /* v6.0 Aciktim Hybrid Formula */
  --header-bg: linear-gradient(135deg, #e6391d 0%, #c82810 100%);
  --header-solid: #e6391d;
  --emerald: #16a34a;
  --emerald-dark: #15803d;
  --emerald-soft: #ecfdf3;
  --express-bar: #15803d;
  --rest-bar: #e6391d;
  --border-strong: rgba(15, 23, 42, 0.14);
}

html[data-theme="bk-green"] {
  --brand: #28a745;
  --brand-hover: #1e8738;
  --brand-active: #198754;
  --brand-soft: #eaf7ed;
  --brand-ring: rgba(40, 167, 69, 0.24);
  --shadow-brand: 0 1px 2px rgba(40, 167, 69, 0.2), 0 6px 18px rgba(40, 167, 69, 0.24);
  --header-bg: linear-gradient(135deg, #2fb63c 0%, #1e922b 100%);
  --header-solid: #28a745;
  --express-bar: #0f6b32;
  --rest-bar: #28a745;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-bottom: 110px;
}

@media (min-width: 880px) {
  body { padding-bottom: 48px; }
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.02em; }
a { color: inherit; }
button { font-family: inherit; }
hr { border: none; border-top: 1px solid var(--line); margin: 16px 0; }
::selection { background: rgba(230, 57, 29, 0.16); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

button:focus:not(:focus-visible) { outline: none; }

/* ---------- 01. TOPBAR, LOCATION PILL & DEMO ROLLER ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 6px 20px -14px rgba(15, 23, 42, 0.12);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--topbar-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  flex-shrink: 0;
  border-radius: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(160deg, #f04a2c 0%, var(--brand) 55%, #c92d14 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 16px rgba(230, 57, 29, 0.28);
  transition: transform 0.2s var(--ease);
}

.brand-box:hover .brand-mark { transform: scale(1.05) rotate(-3deg); }

.brand-wordmark {
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--ink);
}

.location-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 6px 12px 6px 7px;
  border-radius: 999px;
  min-width: 0;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.location-pill:hover { border-color: rgba(15, 23, 42, 0.22); box-shadow: var(--shadow-sm); }
.location-pill:focus-within { border-color: var(--brand); box-shadow: var(--ring); }

.loc-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.loc-text-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.loc-micro-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.1;
}

.neighborhood-select,
select.neighborhood-select {
  width: auto;
  border: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0 center;
  -webkit-appearance: none;
  appearance: none;
  padding: 1px 16px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  max-width: 165px;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  font-family: inherit;
  text-overflow: ellipsis;
}

.neighborhood-select:focus { box-shadow: none; }

@media (max-width: 480px) {
  .location-pill { padding: 5px 10px 5px 5px; }
  .neighborhood-select { max-width: 110px; }
}

/* Desktop nav */
.desktop-nav {
  display: none;
  align-items: center;
  gap: 2px;
  background: var(--surface-subtle);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

@media (min-width: 880px) {
  .desktop-nav { display: inline-flex; }
}

.desk-nav-link {
  background: transparent;
  border: none;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.desk-nav-link:hover { color: var(--ink); }

.desk-nav-link.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--line);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.kumbara-top-pill {
  background: linear-gradient(135deg, var(--obsidian) 0%, var(--obsidian-2) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 5px 13px 5px 5px;
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(17, 17, 20, 0.2);
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease;
}

.kumbara-top-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(17, 17, 20, 0.26); }

.coin-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 40%, var(--gold) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #3b2004;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-cart-btn {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-family: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-brand);
  transition: background 0.15s ease, transform 0.18s var(--ease), box-shadow 0.18s ease;
}

.top-cart-btn:hover { background: var(--brand-hover); transform: translateY(-1px); }
.top-cart-btn:active { transform: translateY(0) scale(0.98); }

@media (min-width: 880px) {
  .top-cart-btn { display: inline-flex; }
}

.role-switch-trigger {
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}

.role-switch-trigger:hover,
.role-switch-trigger.active,
.role-switch-trigger[aria-expanded="true"] {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface-subtle);
}

@media (max-width: 560px) {
  .role-switch-trigger span { display: none; }
  .role-switch-trigger { padding: 8px; }
}

/* Demo Roller drawer */
.dev-drawer {
  max-width: 1160px;
  margin: 0 auto 10px;
  padding: 10px 12px 10px 16px;
  background: linear-gradient(135deg, var(--obsidian) 0%, var(--obsidian-2) 100%);
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.78rem;
  animation: drawerIn 0.22s var(--ease);
}

@media (max-width: 1200px) {
  .dev-drawer { margin: 0 14px 10px; }
}

@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dev-drawer-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #fafafa;
  letter-spacing: 0.01em;
}

.dev-drawer-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.dev-drawer small, .dev-drawer-sub { color: #a1a1aa; font-size: 0.72rem; }

.dev-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dev-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s var(--ease);
}

.dev-btn::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #71717a;
  flex-shrink: 0;
}

.dev-btn[data-phone="05001000007"]::before, .dev-btn[data-role="customer"]::before { background: var(--info); }
.dev-btn[data-phone="05001000002"]::before,
.dev-btn[data-phone="05001000004"]::before, .dev-btn[data-role="restaurant"]::before { background: var(--brand); }
.dev-btn[data-phone="05001000005"]::before,
.dev-btn[data-phone="05001000009"]::before, .dev-btn[data-role="courier"]::before { background: var(--ok); }
.dev-btn[data-phone="05001000001"]::before, .dev-btn[data-role="admin"]::before { background: var(--gold-bright); }

.dev-btn:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }

.dev-btn.active, .dev-btn.is-active {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.role-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--muted-2);
}
.role-dot.role-customer { background: var(--info); }
.role-dot.role-restaurant { background: var(--brand); }
.role-dot.role-courier { background: var(--ok); }
.role-dot.role-admin { background: var(--gold-bright); }

/* ---------- CONTAINER & SKELETON ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 20px 44px;
}

@media (max-width: 640px) {
  :root { --topbar-h: 62px; }
  .topbar-inner { padding: 0 14px; }
  .container { padding: 14px 14px 36px; }
}

.skeleton-wrap { display: flex; flex-direction: column; gap: 18px; }
.skeleton-hero, .skeleton-card, .skeleton-line {
  background: linear-gradient(90deg, #ececea 25%, #f6f6f4 50%, #ececea 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton-hero { height: 200px; border-radius: var(--radius-2xl); }
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.skeleton-card { height: 270px; border-radius: var(--radius-xl); }
.skeleton-line { height: 12px; border-radius: 6px; }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- 02. VİTRİN (DISCOVER) ---------- */
.discover-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.omnibox-wrap {
  position: relative;
  flex: 1 1 320px;
}

.omnibox-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: inline-flex;
  pointer-events: none;
}

.omnibox-input,
input.omnibox-input {
  width: 100%;
  height: 50px;
  padding: 0 18px 0 46px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.omnibox-input::placeholder { color: var(--muted-2); }
.omnibox-input:hover { border-color: rgba(15, 23, 42, 0.2); }
.omnibox-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring), var(--shadow-sm);
}

.sort-segmented {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.sort-segmented::-webkit-scrollbar { display: none; }

.sort-pill {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}

.sort-pill:hover { border-color: rgba(15, 23, 42, 0.22); color: var(--ink); }
.sort-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

/* Campaign cards */
.promo-banners {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin-bottom: 26px;
}

@media (max-width: 820px) {
  .promo-banners { grid-template-columns: 1fr; }
}

.promo-banner-card {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  min-height: 212px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: var(--obsidian);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.promo-banner-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.promo-banner-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.promo-banner-card:hover img { transform: scale(1.05); }

.promo-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(10, 10, 12, 0.9) 0%, rgba(10, 10, 12, 0.6) 55%, rgba(10, 10, 12, 0.12) 100%);
}

.promo-banner-body {
  position: relative;
  z-index: 2;
  max-width: 440px;
}

.promo-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fde68a;
  margin-bottom: 10px;
}

.promo-banner-body h2 {
  margin: 0 0 6px;
  font-size: 1.46rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.16;
  color: #fff;
}

.promo-banner-body p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

/* Category pills */
.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 18px;
  margin-bottom: 8px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.category-strip::-webkit-scrollbar { display: none; }

.cat-pill-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 16px 5px 5px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  scroll-snap-align: start;
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cat-pill-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: var(--shadow-sm);
}

.cat-pill-card.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
}

.cat-pill-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-subtle);
  box-shadow: 0 0 0 2px #fff;
}

.cat-pill-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
}

/* Section head */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 16px;
}

.section-head h2, .section-head h3 {
  margin: 0;
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-sub {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

.section-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 4px;
}

/* Restaurant cards */
.rest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(335px, 1fr));
  gap: 22px;
}

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

.rest-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease), box-shadow 0.28s ease, border-color 0.2s ease;
}

.rest-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.rest-card:focus-visible { outline: none; box-shadow: var(--ring), var(--shadow-md); }

.rest-card.is-closed .rest-cover-img { filter: grayscale(0.7) brightness(0.85); }

.rest-cover-wrap {
  position: relative;
  height: 204px;
  overflow: hidden;
  background: var(--obsidian);
}

.rest-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.3s ease;
}

.rest-card:hover .rest-cover-img { transform: scale(1.06); }

.rest-cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.36) 0%, rgba(10, 10, 12, 0) 40%, rgba(10, 10, 12, 0.44) 100%);
}

.cover-cashback-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 17, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fde68a;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cover-cashback-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.cover-status-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ok-ink);
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.cover-status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.cover-status-pill.is-closed { color: var(--danger); }

.cover-eta-chip {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: #ffffff;
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

.rest-card-body {
  padding: 15px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rest-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.rest-name {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gold-soft);
  border: 1px solid rgba(217, 119, 6, 0.14);
  color: var(--gold-ink);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.rating-chip svg { color: var(--gold-bright); }

.rest-subline {
  font-size: 0.82rem;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.dot-sep {
  color: var(--muted-2);
  opacity: 0.7;
}

.rest-foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ink-2);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.status-dot.closed {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.qr-subtle-link {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  transition: background 0.14s ease, color 0.14s ease;
}

.qr-subtle-link:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.empty-state {
  text-align: center;
  padding: 44px 20px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-xl);
  color: var(--muted);
  font-size: 0.88rem;
}
.empty-state h3, .empty-state strong { display: block; color: var(--ink); font-size: 1rem; margin: 0 0 4px; }
.empty-state-icon {
  width: 52px; height: 52px; border-radius: 50%;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-subtle); color: var(--ink-2);
}

/* ---------- 03. RESTAURANT DETAIL & SIDE CART ---------- */
.rest-hero-banner {
  position: relative;
  height: 264px;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--obsidian);
  box-shadow: var(--shadow-md);
}

.rest-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rest-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.44) 0%, rgba(10, 10, 12, 0.1) 38%, rgba(10, 10, 12, 0.9) 100%);
  padding: 20px 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}

.rest-hero-overlay h1, .rest-hero-overlay h2 { color: #fff; margin: 0; letter-spacing: -0.03em; }
.rest-hero-title { font-size: 1.7rem; font-weight: 800; line-height: 1.12; }
.rest-hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 8px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.86);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .rest-hero-banner { height: 220px; border-radius: var(--radius-xl); }
  .rest-hero-overlay { padding: 16px; }
  .rest-hero-title { font-size: 1.36rem; }
}

.hero-glass-btn {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  transition: transform 0.18s var(--ease), background 0.15s ease;
}

.hero-glass-btn:hover { transform: translateY(-1px); background: #fff; }

.rest-verified-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
  font-variant-numeric: tabular-nums;
}

.rest-layout-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 980px) {
  .rest-layout-split { grid-template-columns: minmax(0, 1fr) 340px; }
}

.sticky-side-cart {
  display: none;
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-md);
  max-height: calc(100vh - var(--topbar-h) - 40px);
  overflow-y: auto;
}

@media (min-width: 980px) {
  .sticky-side-cart { display: block; }
}

.side-cart-title {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0 0 12px; font-size: 1rem; font-weight: 800;
}

/* Sticky category jump bar */
.menu-jump-bar {
  position: sticky;
  top: var(--topbar-h);
  z-index: 50;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 2px;
  margin: 0 0 14px;
  background: rgba(247, 247, 245, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.menu-jump-bar::-webkit-scrollbar { display: none; }

.jump-chip {
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.jump-chip:hover { color: var(--ink); border-color: rgba(15, 23, 42, 0.22); }
.jump-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.menu-section { margin-bottom: 26px; scroll-margin-top: calc(var(--topbar-h) + 64px); }
.menu-section-title {
  display: flex; align-items: baseline; gap: 8px;
  margin: 0 0 12px; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.02em;
}
.menu-section-title .count { font-size: 0.76rem; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Food rows (2-col) */
.native-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

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

.native-food-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease);
}

.native-food-row:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.native-food-row.is-disabled, .native-food-row.is-sold-out { opacity: 0.55; }

.native-food-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.native-food-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}

.native-food-desc {
  font-size: 0.81rem;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.food-customizable-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 6px;
}

.native-food-thumb-wrap {
  position: relative;
  width: 122px;
  height: 122px;
  flex-shrink: 0;
}

.native-food-thumb {
  width: 122px;
  height: 122px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--surface-subtle);
  box-shadow: inset 0 0 0 1px var(--line);
}

.floating-plus-btn {
  position: absolute;
  bottom: -6px;
  right: -6px;
  height: 38px;
  min-width: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.26);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.15s ease, transform 0.15s var(--ease);
}

.floating-plus-btn:hover { background: var(--brand); transform: translateY(-1px); }
.floating-plus-btn:active { transform: scale(0.94); }

/* ---------- 04. OPTION CUSTOMIZATION MODAL ---------- */
.opt-group-box,
.opt-group-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 14px 6px;
  margin-bottom: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.opt-group-box { background: var(--bg); }

.opt-group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.opt-group-title { font-size: 0.92rem; font-weight: 800; color: var(--ink); }
.opt-group-rule { font-size: 0.72rem; color: var(--muted); font-weight: 600; }

.opt-choice-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 10px;
  margin: 2px -6px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.opt-choice-row + .opt-choice-row { border-top-color: transparent; }
.opt-choice-row:hover { background: var(--surface-subtle); }
.opt-choice-row:has(input:checked) {
  background: var(--brand-soft);
  border-color: rgba(230, 57, 29, 0.22);
}
.opt-choice-row:has(input:focus-visible) { box-shadow: var(--ring); }

.opt-choice-row input,
.opt-choice-input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand);
  flex-shrink: 0;
  cursor: pointer;
}

/* Custom mark (new markup): input is visually hidden only when a .opt-choice-mark sibling exists */
.opt-choice-row:has(> .opt-choice-mark) > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.opt-choice-mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1.5px solid var(--line-input);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

input[type="radio"] + .opt-choice-mark { border-radius: 50%; }

input:checked + .opt-choice-mark {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 2px 6px rgba(230, 57, 29, 0.3);
}

input[type="checkbox"]:checked + .opt-choice-mark::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}

input[type="radio"]:checked + .opt-choice-mark::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.opt-choice-label { flex: 1; min-width: 0; font-weight: 600; }
.opt-choice-price {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.opt-choice-price.is-free { color: var(--muted); font-weight: 600; }

.modal-sub { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

.modal-action-bar {
  position: sticky;
  bottom: -24px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 16px -24px -24px;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.modal-action-bar .btn { flex: 1; }

/* ---------- 05. CART, CHECKOUT & MAP ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

@media (min-width: 920px) {
  .checkout-grid { grid-template-columns: minmax(0, 1.35fr) 380px; }
  .checkout-grid > :last-child { position: sticky; top: calc(var(--topbar-h) + 20px); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}

.card-title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 14px; font-size: 1rem; font-weight: 800; letter-spacing: -0.02em;
}
.card-title .step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink); color: #fff;
  font-size: 0.74rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line:last-child { border-bottom: none; }
.cart-line-info { min-width: 0; flex: 1; }
.cart-line-name { font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.cart-line-opts { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.cart-line-price { font-weight: 800; font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.qty-stepper strong, .qty-stepper span, .qty-value {
  min-width: 18px;
  text-align: center;
  font-weight: 800;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

.qty-stepper button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1), 0 0 0 1px var(--line);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.qty-stepper button:hover { background: var(--ink); color: #fff; }
.qty-stepper button:active { transform: scale(0.9); }
.qty-stepper.qty-lg { padding: 5px; gap: 12px; }
.qty-stepper.qty-lg button { width: 34px; height: 34px; }

/* Legacy payment cards */
.choice-cards-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 520px) {
  .choice-cards-row { grid-template-columns: 1fr; }
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.radio-card:hover { border-color: rgba(15, 23, 42, 0.24); }
.radio-card:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 1px var(--brand) inset;
}

.radio-card input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--brand);
}

/* Payment choice tiles */
.payment-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 520px) {
  .payment-choice-grid { grid-template-columns: 1fr; }
}

.payment-choice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s var(--ease);
}

.payment-choice-card:hover { border-color: rgba(15, 23, 42, 0.24); transform: translateY(-1px); }

.payment-choice-card > input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.payment-choice-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.payment-choice-body { flex: 1; min-width: 0; }
.payment-choice-title { display: block; font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.payment-choice-desc { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 2px; line-height: 1.4; }

.payment-choice-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--line-input);
  background: #fff;
  transition: all 0.15s ease;
}

.payment-choice-card:has(input:checked),
.payment-choice-card.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 1px var(--brand) inset, 0 6px 16px rgba(230, 57, 29, 0.1);
}

.payment-choice-card:has(input:checked) .payment-choice-icon,
.payment-choice-card.is-selected .payment-choice-icon { background: var(--brand); color: #fff; }

.payment-choice-card:has(input:checked)::after,
.payment-choice-card.is-selected::after {
  border: 5px solid var(--brand);
}

.payment-choice-card:has(input:focus-visible) { box-shadow: var(--ring); }
.payment-choice-card:has(input:disabled), .payment-choice-card.is-disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Kumbara use */
.kumbara-use-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  color: #fff;
  background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.28), transparent 55%), linear-gradient(135deg, var(--obsidian) 0%, var(--obsidian-2) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: var(--shadow-md);
}
.kumbara-use-card .kumbara-use-title { font-weight: 800; font-size: 0.9rem; }
.kumbara-use-card .kumbara-use-desc { font-size: 0.75rem; color: #a1a1aa; margin-top: 2px; }
.kumbara-use-card .kumbara-use-amount { color: #fde68a; font-weight: 800; font-variant-numeric: tabular-nums; }
.kumbara-use-card.is-active { border-color: var(--gold-bright); box-shadow: 0 0 0 1px var(--gold-bright) inset, var(--shadow-md); }

.kumbara-toggle-banner {
  background: linear-gradient(135deg, var(--obsidian) 0%, var(--obsidian-2) 100%);
  color: #fff;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  font-variant-numeric: tabular-nums;
}

/* Address selection */
.address-select-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.address-select-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.address-select-card:hover { border-color: rgba(15, 23, 42, 0.24); }
.address-select-card input {
  width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); flex-shrink: 0;
}
.address-select-card:has(input:checked), .address-select-card.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 1px var(--brand) inset;
}
.address-select-body { flex: 1; min-width: 0; }
.address-title { display: block; font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.address-text { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; line-height: 1.45; }

.new-address-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-top: 14px;
}

/* Map */
.map-picker-wrap {
  position: relative;
  margin: 10px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.map-picker-wrap .map-box { margin: 0; border: none; border-radius: 0; }
.map-picker-hint {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 500;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.map-box {
  width: 100%;
  height: 240px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  margin: 10px 0;
  z-index: 1;
  background: var(--surface-subtle);
}

.leaflet-container { font-family: inherit; }

/* Voice */
.voice-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
}

.voice-btn.is-listening,
.voice-btn-recording {
  background: var(--danger) !important;
  border-color: var(--danger) !important;
  color: #fff !important;
  animation: pulseRec 1.2s infinite;
}

.voice-btn.is-listening::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1s infinite;
}

@keyframes pulseRec {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

@keyframes blink { 50% { opacity: 0.3; } }

/* Receipt summary */
.summary-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  color: var(--ink-2);
}
.summary-row > :last-child { color: var(--ink); font-weight: 700; white-space: nowrap; }
.summary-row.is-discount > :last-child, .summary-row.is-earn > :last-child { color: var(--ok-dark); }
.summary-row.is-kumbara > :last-child { color: var(--gold); }
.summary-row.is-total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: 1.12rem;
  color: var(--ink);
  font-weight: 800;
}
.summary-row.is-total > :last-child { font-weight: 800; }

.summary-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  border: 1px solid rgba(217, 119, 6, 0.16);
  color: var(--gold-ink);
  font-size: 0.78rem;
  font-weight: 600;
}
.summary-note.is-warn { background: var(--danger-soft); border-color: #fecaca; color: var(--danger); }
.summary-note.is-ok { background: var(--ok-soft); border-color: #a7f3d0; color: var(--ok-ink); }

.info-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  font-size: 0.83rem;
  color: var(--ink-2);
}

/* ---------- 06. AUTH, PROFILE & KUMBARA ---------- */
.auth-card {
  max-width: 440px;
  margin: 12px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.auth-tabs, .segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 18px;
}

.auth-tab, .segmented-item {
  flex: 1;
  padding: 9px 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s ease;
}
.auth-tab:hover, .segmented-item:hover { color: var(--ink); }
.auth-tab.active, .segmented-item.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--line);
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.avatar-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, #f97316 100%);
  color: #fff; font-weight: 800; font-size: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-brand);
  flex-shrink: 0;
}
.profile-name { margin: 0; font-size: 1.2rem; font-weight: 800; }
.profile-meta { font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Obsidian & gold Kumbara card */
.kumbara-vip-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.3), transparent 50%),
    radial-gradient(circle at 0% 120%, rgba(230, 57, 29, 0.18), transparent 45%),
    linear-gradient(135deg, var(--obsidian) 0%, #202026 100%);
  color: #fff;
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-2xl);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow-lg);
}

.kumbara-vip-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 28px solid rgba(253, 230, 138, 0.06);
  z-index: -1;
}

.kumbara-vip-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fbbf24;
}

.kumbara-balance-num {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fef3c7 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #fde68a;
  -webkit-text-fill-color: transparent;
  margin: 6px 0 4px;
  line-height: 1.1;
}

.kumbara-vip-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  color: #a1a1aa;
  font-variant-numeric: tabular-nums;
}
.kumbara-vip-meta strong { color: #fafafa; }

/* Ledger */
.ledger-list {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ledger-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.ledger-item:last-child { border-bottom: none; }
.ledger-item:hover { background: var(--bg); }

.ledger-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 800; font-size: 0.9rem;
  background: var(--surface-subtle); color: var(--ink-2);
}
.ledger-icon.is-earn { background: var(--ok-soft); color: var(--ok-dark); }
.ledger-icon.is-spend { background: var(--gold-soft); color: var(--gold); }

.ledger-info { flex: 1; min-width: 0; }
.ledger-title { font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.ledger-date { font-size: 0.73rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ledger-amount { font-weight: 800; font-size: 0.9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-amount.is-earn { color: var(--ok-dark); }
.ledger-amount.is-spend { color: var(--gold); }

/* KVKK */
.kvkk-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.kvkk-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kvkk-card-title { font-size: 0.9rem; font-weight: 800; color: var(--ink); }
.kvkk-card-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }

/* ---------- 07. CUSTOMER ORDERS & STEPPER ---------- */
.order-card-cust {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.order-card-title { font-weight: 800; font-size: 0.98rem; color: var(--ink); }
.order-card-id, .order-card-date { font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.order-card-items { font-size: 0.82rem; color: var(--ink-2); margin: 12px 0 0; line-height: 1.55; }
.order-card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.order-stepper {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
}

.step-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted-2);
}

.step-item::before {
  content: "";
  position: absolute;
  top: 11px;
  left: calc(-50% + 14px);
  right: calc(50% + 14px);
  height: 2px;
  border-radius: 2px;
  background: var(--surface-sunken);
}
.step-item:first-child::before { display: none; }

.step-dot {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--surface-sunken);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  transition: all 0.2s ease;
}

.step-dot:empty::after { counter-increment: step; content: counter(step); }
.step-label { line-height: 1.25; }

.step-item.is-done { color: var(--ok-ink); }
.step-item.is-done::before { background: var(--ok); }
.step-item.is-done .step-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.step-item.is-done .step-dot:empty::after { content: "✓"; }

.step-item.is-active { color: var(--ink); }
.step-item.is-active::before { background: linear-gradient(90deg, var(--ok), var(--brand)); }
.step-item.is-active .step-dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 4px var(--brand-ring);
  animation: stepPulse 1.8s infinite;
}

.step-item.is-cancelled { color: var(--danger); }
.step-item.is-cancelled .step-dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.step-item.is-cancelled .step-dot:empty::after { content: "✕"; }

@keyframes stepPulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--brand-ring); }
  50% { box-shadow: 0 0 0 7px rgba(230, 57, 29, 0.08); }
}

/* ---------- 08. BADGES, PRICES, FORMS & BUTTONS ---------- */
.kpi-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-xs);
}

.kpi-val {
  font-size: 1.24rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}

.badge-open { background: var(--ok-soft); color: var(--ok-ink); border-color: #a7f3d0; }
.badge-closed { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }
.badge-rating { background: var(--gold-soft); color: var(--gold-ink); border-color: #fde68a; }
.badge-kumbara { background: var(--obsidian-2); color: #fde68a; border-color: rgba(245, 158, 11, 0.25); }
.badge-info { background: var(--surface-subtle); color: var(--ink-2); border-color: var(--line); }
.badge-kvkk { background: var(--surface-subtle); color: var(--ink-2); border-color: var(--line-strong); }
.badge-brand { background: var(--brand-soft); color: var(--brand); border-color: rgba(230, 57, 29, 0.2); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Order status badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 0.71rem; font-weight: 700; white-space: nowrap;
  background: var(--surface-subtle); color: var(--ink-2);
  border: 1px solid var(--line);
}
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.status-pending { background: var(--gold-soft); color: var(--gold-ink); border-color: #fde68a; }
.status-badge.status-confirmed,
.status-badge.status-preparing { background: var(--info-soft); color: var(--info); border-color: #bfdbfe; }
.status-badge.status-on_the_way { background: var(--violet-soft); color: var(--violet); border-color: #ddd6fe; }
.status-badge.status-delivered { background: var(--ok-soft); color: var(--ok-ink); border-color: #a7f3d0; }
.status-badge.status-cancelled { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }

.price-tag {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.price-old {
  font-size: 0.8rem;
  text-decoration: line-through;
  color: var(--muted);
  margin-right: 4px;
  font-variant-numeric: tabular-nums;
}

.allergen-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 2px 0 6px;
}

.allergen-chip {
  font-size: 0.67rem;
  font-weight: 600;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  color: var(--ink-2);
  padding: 1px 7px;
  border-radius: var(--radius-xs);
}

/* Inputs */
.input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-input);
  font-size: 0.9rem;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

select:not(.neighborhood-select) {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center;
  cursor: pointer;
}

textarea { min-height: 88px; resize: vertical; line-height: 1.5; }

.input::placeholder, textarea::placeholder { color: var(--muted-2); }
.input:hover, select:hover, textarea:hover { border-color: rgba(15, 23, 42, 0.26); }

.input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring);
}

.input:disabled, select:disabled, textarea:disabled, .input[readonly] {
  background: var(--surface-subtle);
  color: var(--muted);
  cursor: not-allowed;
}

.input.is-invalid, .input:user-invalid { border-color: var(--danger); }
.input.is-invalid:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.18); }

input[type="checkbox"], input[type="radio"] { accent-color: var(--brand); }
input[type="file"] { font-family: inherit; font-size: 0.82rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  user-select: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.18s ease, transform 0.15s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled, .btn[aria-disabled="true"], .btn.is-loading {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), var(--shadow-brand);
}
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { background: var(--brand-active); }

.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 12px rgba(15, 23, 42, 0.18);
}
.btn-dark:hover { background: #1e293b; }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--surface-subtle); border-color: rgba(15, 23, 42, 0.22); }

.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { background: var(--surface-subtle); color: var(--ink); }

.btn-gold {
  background: linear-gradient(135deg, #fbbf24 0%, var(--gold-bright) 40%, var(--gold) 100%);
  color: #1c1003;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 16px rgba(217, 119, 6, 0.28);
}
.btn-gold:hover { filter: brightness(1.04); }

.btn-ok {
  background: var(--ok-dark);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 16px rgba(5, 150, 105, 0.24);
}
.btn-ok:hover { background: var(--ok-ink); }

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #fecaca;
}
.btn-danger:hover { background: #fee2e2; border-color: #fca5a5; }

.btn-sm {
  min-height: 34px;
  padding: 7px 13px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

.btn-xs {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 0.72rem;
  border-radius: var(--radius-xs);
}

.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 0.95rem; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn-icon { width: 38px; min-height: 38px; padding: 0; }

/* Forms (legacy + new) */
.form-group { margin-bottom: 14px; }
.form-label, .field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink-2);
  letter-spacing: 0.005em;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  margin-bottom: 10px;
  background: var(--bg);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  cursor: pointer;
  line-height: 1.5;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.checkbox-line:hover { border-color: var(--line-strong); }
.checkbox-line:has(input:checked) { background: #fff; border-color: rgba(230, 57, 29, 0.3); }

.checkbox-line input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  font-weight: 700;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.link-btn:hover { color: var(--brand); text-decoration-color: currentColor; }

/* Tabs (legacy) */
.tabs-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  margin-bottom: 18px;
  scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }

.tab-chip {
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.82rem;
  font-family: inherit;
  color: var(--ink-2);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.15s ease;
}
.tab-chip:hover { border-color: rgba(15, 23, 42, 0.22); color: var(--ink); }
.tab-chip.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

/* ---------- 09. NAVIGATION & FLOATING CART ---------- */
.floating-cart-bar {
  position: fixed;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 16px;
  right: 16px;
  max-width: 520px;
  margin: 0 auto;
  z-index: 940;
  background: linear-gradient(135deg, var(--ink) 0%, #1e293b 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 9px 10px 9px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  animation: fcbIn 0.3s var(--ease);
  transition: transform 0.2s var(--ease);
}
.floating-cart-bar:hover { transform: translateY(-2px); }

@keyframes fcbIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.fcb-info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fcb-count {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); font-size: 0.78rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.fcb-label { font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fcb-total {
  background: var(--brand); color: #fff; padding: 9px 16px; border-radius: 999px;
  font-weight: 700; font-size: 0.85rem; box-shadow: var(--shadow-brand);
}

@media (min-width: 980px) {
  .floating-cart-bar {
    bottom: 24px;
    right: 28px;
    left: auto;
    margin: 0;
    min-width: 380px;
  }
}

.bottom-nav {
  position: fixed;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 14px;
  right: 14px;
  max-width: 440px;
  margin: 0 auto;
  z-index: 950;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05), 0 14px 36px rgba(15, 23, 42, 0.14);
  display: flex;
  justify-content: space-around;
  padding: 6px;
}

@media (min-width: 880px) {
  .bottom-nav { display: none !important; }
}

.nav-item {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-item:hover { color: var(--ink-2); }
.nav-label { line-height: 1.15; white-space: nowrap; }
.nav-item.active { color: var(--brand); background: var(--brand-soft); }

.cart-badge {
  position: absolute;
  top: 1px;
  right: 9px;
  min-width: 18px;
  background: var(--brand);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 0.62rem;
  padding: 0 5px;
  line-height: 14px;
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------- 10. MODALS & TOAST ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 14, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

@media (min-width: 640px) {
  .modal-backdrop { align-items: center; padding: 20px; }
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box.sheet-box {
  position: relative;
  background: #fff;
  border-radius: 26px 26px 0 0;
  max-width: 540px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  animation: slideUpModal 0.28s var(--ease);
}

@media (max-width: 639px) {
  .modal-box.sheet-box { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .modal-box.sheet-box::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: var(--line-strong);
    margin: -10px auto 14px;
  }
}

@media (min-width: 640px) {
  .modal-box.sheet-box { border-radius: 24px; }
}

@keyframes slideUpModal {
  from { transform: translateY(28px); opacity: 0.4; }
  to { transform: translateY(0); opacity: 1; }
}

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

.modal-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.icon-close-btn {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, transform 0.2s var(--ease);
}
.icon-close-btn:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }

.legal-modal-body {
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.7;
}
.legal-modal-body h4 { margin: 18px 0 6px; font-size: 0.92rem; color: var(--ink); }
.legal-modal-body p { margin: 0 0 10px; }
.legal-modal-body ul { padding-left: 18px; margin: 0 0 10px; }

.toast {
  position: fixed;
  top: calc(var(--topbar-h) + 12px);
  right: 20px;
  left: 20px;
  max-width: 420px;
  margin: 0 auto;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1500;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  box-shadow: var(--shadow-lg);
  display: none;
}

.toast.show { display: block; animation: toastIn 0.3s var(--ease); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--ink); }
.toast.success { background: linear-gradient(135deg, var(--ok-dark), var(--ok-ink)); }

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

/* ---------- 11. ENTERPRISE DASHBOARD SYSTEM ---------- */
/* Shell & nav */
.panel-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.panel-header-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.panel-header-info h1, .panel-header-info h2, .panel-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.panel-header-info p, .panel-subtitle { margin: 0; font-size: 0.82rem; color: var(--muted); }
.panel-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--brand);
}

.panel-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-tabs {
  display: flex;
  gap: 2px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.panel-tabs::-webkit-scrollbar { display: none; }

.panel-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 8px 15px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.panel-tab:hover { color: var(--ink); }
.panel-tab.active, .panel-tab[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--line);
}
.panel-tab .tab-count {
  min-width: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-size: 0.66rem; line-height: 18px; text-align: center; font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.panel-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
@media (min-width: 920px) {
  .panel-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-grid-2.is-wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.panel-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin: -2px 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.panel-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.panel-card-sub { margin: 2px 0 0; font-size: 0.78rem; color: var(--muted); }

.panel-empty {
  text-align: center;
  padding: 36px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.85rem;
}
.panel-empty strong { display: block; color: var(--ink); font-size: 0.95rem; margin-bottom: 4px; }

/* KPIs */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 16px 15px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
  --kpi-accent: var(--ink);
  --kpi-soft: var(--surface-subtle);
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.kpi-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--kpi-accent);
}

.kpi-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.kpi-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-top: 6px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.kpi-sub {
  margin-top: 4px;
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.kpi-sub.is-up { color: var(--ok-dark); }
.kpi-sub.is-down { color: var(--danger); }

.kpi-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--kpi-soft);
  color: var(--kpi-accent);
}

.kpi-brand { --kpi-accent: var(--brand); --kpi-soft: var(--brand-soft); }
.kpi-emerald { --kpi-accent: var(--ok-dark); --kpi-soft: var(--ok-soft); }
.kpi-amber { --kpi-accent: var(--gold); --kpi-soft: var(--gold-soft); }
.kpi-slate { --kpi-accent: var(--ink); --kpi-soft: var(--surface-subtle); }
.kpi-brand .kpi-value { color: var(--brand); }
.kpi-emerald .kpi-value { color: var(--ok-dark); }
.kpi-amber .kpi-value { color: var(--gold); }

/* Toggles */
.switch-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.switch-row:first-child { padding-top: 0; }
.switch-row:last-child { border-bottom: none; padding-bottom: 0; }
.switch-info { min-width: 0; flex: 1; }
.switch-title { font-size: 0.88rem; font-weight: 700; color: var(--ink); }
.switch-desc { font-size: 0.76rem; color: var(--muted); margin-top: 2px; line-height: 1.45; }

.toggle-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 44px;
  height: 26px;
  cursor: pointer;
}

.toggle-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d4d4d8;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
  transition: background 0.2s ease;
}

.toggle-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22), 0 0 0 0.5px rgba(15, 23, 42, 0.06);
  transition: transform 0.22s var(--ease);
}

.toggle-switch input:checked + .toggle-track { background: var(--ok-dark); }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(18px); }
.toggle-switch input:focus-visible + .toggle-track { box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.25); }
.toggle-switch input:disabled + .toggle-track { opacity: 0.5; }
.toggle-switch input:disabled { cursor: not-allowed; }
.toggle-switch.is-brand input:checked + .toggle-track { background: var(--brand); }
.toggle-switch.is-gold input:checked + .toggle-track { background: var(--gold); }

/* Forms */
.form-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.form-row > * { flex: 1 1 160px; }
.form-grid-2, .form-grid-3 { display: grid; gap: 12px 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.form-grid-2 .span-full, .form-grid-3 .span-full { grid-column: 1 / -1; }

.field-group { display: flex; flex-direction: column; gap: 0; min-width: 0; margin-bottom: 0; }
.field-help { margin-top: 5px; font-size: 0.72rem; color: var(--muted); line-height: 1.4; }
.field-help.is-error { color: var(--danger); }

.file-input-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.file-input-box:hover { border-color: var(--brand); background: var(--brand-soft); }
.file-input-box input[type="file"] { width: 100%; cursor: pointer; }
.file-input-box input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.76rem;
  cursor: pointer;
}

/* Live orders */
.live-order-list { display: flex; flex-direction: column; gap: 12px; }

.live-order-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 16px 16px 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s var(--ease);
  --status-accent: var(--muted-2);
}
.live-order-card:hover { box-shadow: var(--shadow-md); }

.live-order-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--status-accent);
}

.live-order-card.status-pending { --status-accent: var(--gold-bright); background: linear-gradient(90deg, rgba(255, 251, 235, 0.7), #fff 40%); }
.live-order-card.status-confirmed,
.live-order-card.status-preparing { --status-accent: var(--info); }
.live-order-card.status-on_the_way { --status-accent: var(--violet); }
.live-order-card.status-delivered { --status-accent: var(--ok); }
.live-order-card.status-cancelled { --status-accent: var(--danger); opacity: 0.78; }
.live-order-card.is-new { animation: newOrder 1.6s ease 2; }

@keyframes newOrder {
  0%, 100% { box-shadow: var(--shadow-sm); }
  50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.3), var(--shadow-md); }
}

.live-order-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.live-order-id { font-weight: 800; font-size: 0.95rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.live-order-time { font-size: 0.73rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.live-order-total { font-weight: 800; font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }

.live-order-customer {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.live-order-customer strong { color: var(--ink); }

.live-order-items {
  list-style: none;
  margin: 12px 0 0;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--ink);
}
.live-order-items li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-variant-numeric: tabular-nums; }
.live-order-items li + li { border-top: 1px dashed var(--line); }
.live-order-items .item-opts { display: block; font-size: 0.72rem; color: var(--muted); }

.live-order-note {
  margin-top: 10px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 0.76rem;
  font-weight: 600;
}

.live-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.courier-assign-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.courier-assign-group select { flex: 1 1 180px; width: auto; min-height: 36px; padding-top: 7px; padding-bottom: 7px; font-size: 0.82rem; }

.courier-task-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.courier-task-card .task-route {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 4px 10px;
  font-size: 0.8rem;
  color: var(--ink-2);
}
.courier-task-card .task-route .route-dot { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--brand); }
.courier-task-card .task-route .route-dot.is-end { background: var(--ok); }
.courier-task-card.is-available { border-style: dashed; border-color: var(--line-strong); }

/* Menu manage, zones, QR studio */
.menu-manage-list { display: flex; flex-direction: column; gap: 8px; }

.menu-manage-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.menu-manage-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.menu-manage-item.is-inactive { opacity: 0.6; }

.menu-manage-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--surface-subtle);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px var(--line);
}
.menu-manage-info { flex: 1; min-width: 0; }
.menu-manage-info .name { font-weight: 700; font-size: 0.88rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-manage-info .meta { font-size: 0.74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.menu-manage-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

@media (max-width: 520px) {
  .menu-manage-item { flex-wrap: wrap; }
  .menu-manage-actions { width: 100%; justify-content: flex-end; }
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.zone-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.zone-item:has(input[type="checkbox"]:checked), .zone-item.is-active { border-color: rgba(5, 150, 105, 0.35); background: var(--ok-soft); }
.zone-item .zone-name { font-weight: 700; color: var(--ink); }
.zone-item .input { min-height: 36px; padding: 7px 10px; font-size: 0.82rem; }

.qr-studio-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
}
@media (min-width: 720px) {
  .qr-studio-box { grid-template-columns: 260px minmax(0, 1fr); }
}

.qr-svg-frame {
  aspect-ratio: 1;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-svg-frame svg, .qr-svg-frame img, .qr-svg-frame canvas { width: 100%; height: 100%; display: block; }

.qr-print-card {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-2xl);
  padding: 28px;
  text-align: center;
  background: #fff;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

/* Super admin */
.admin-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.admin-row:last-child { border-bottom: none; }
.admin-row:hover { background: var(--bg); }
.admin-row-main { flex: 1 1 220px; min-width: 0; }
.admin-row-main .title, .admin-row-title { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.admin-row-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin-top: 2px; font-size: 0.75rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.admin-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.data-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
.data-table th {
  position: sticky;
  top: 0;
  text-align: left;
  padding: 10px 14px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--bg); }
.data-table .num, .data-table .text-right { text-align: right; }

.audit-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 4px;
  display: flex;
  flex-direction: column;
}

.audit-item {
  position: relative;
  padding: 0 0 14px 22px;
  font-size: 0.8rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.audit-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
}
.audit-item::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.audit-item:last-child { padding-bottom: 0; }
.audit-item:last-child::after { display: none; }
.audit-item strong { color: var(--ink); }
.audit-item time, .audit-item .audit-time { display: block; font-size: 0.7rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 12. LAYOUT UTILITIES ---------- */
.stack-xs, .stack-sm, .stack-md, .stack-lg { display: flex; flex-direction: column; }
.stack-xs { gap: 4px; }
.stack-sm { gap: 8px; }
.stack-md { gap: 14px; }
.stack-lg { gap: 22px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; }
.gap-xs { gap: 4px; }
.gap-sm { gap: 8px; }
.gap-md { gap: 14px; }
.text-muted { color: var(--muted); }
.text-xs { font-size: 0.72rem; }
.text-sm { font-size: 0.82rem; }
.text-brand { color: var(--brand); }
.text-ok { color: var(--ok-dark); }
.text-gold { color: var(--gold); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 800; }
.tabular { font-variant-numeric: tabular-nums; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.w-full { width: 100%; }
.flex-1 { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--line); border: none; margin: 14px 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* JS helper hooks */
.ico { flex-shrink: 0; vertical-align: -3px; }
.thumb-badge { position: absolute; bottom: 6px; right: 6px; z-index: 2; box-shadow: var(--shadow-sm); }
.rest-grid > .empty-state, .native-menu-grid > .empty-state { grid-column: 1 / -1; }
.native-food-info .row-wrap { margin-bottom: 4px; }

/* KVKK footer */
.kvkk-footer {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.77rem;
  color: var(--muted);
  justify-content: center;
}

/* ---------- 13. PRINT & MOTION ---------- */
@media print {
  .topbar, .bottom-nav, .tabs-bar, .panel-tabs, .floating-cart-bar, .no-print {
    display: none !important;
  }
  body { background: #fff; padding: 0; }
  .card, .panel-card, .qr-print-card { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   14. BK YEMEK v6.0 COMPONENT SUITE (Aciktim Hybrid Formula)
   Overrides v5 topbar & bottom nav by cascade; all v5 classes preserved.
   ========================================================================== */

@media (min-width: 960px) {
  :root { --topbar-h: 64px; }
}

/* ---------- 14.0 Solid brand header ---------- */
.topbar {
  background: var(--header-bg);
  color: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14);
}

.topbar-inner { padding: 0 14px; gap: 10px; }
@media (min-width: 960px) { .topbar-inner { padding: 0 20px; } }

.topbar .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: #fff;
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
}

.topbar .brand-wordmark {
  color: #fff;
  font-size: 1.28rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

@media (max-width: 420px) {
  .topbar .brand-wordmark { display: none; }
}

.topbar .location-pill {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  color: #fff;
}
.topbar .location-pill:hover { background: rgba(255, 255, 255, 0.22); border-color: rgba(255, 255, 255, 0.4); box-shadow: none; }
.topbar .location-pill:focus-within { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3); }
.topbar .loc-icon { background: #fff; color: var(--brand); }
.topbar .loc-micro-label { color: rgba(255, 255, 255, 0.78); }
.topbar .neighborhood-select,
.topbar select.neighborhood-select {
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.topbar .neighborhood-select option { color: var(--ink); background: #fff; }

.topbar .desktop-nav {
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.topbar .desk-nav-link { color: rgba(255, 255, 255, 0.86); }
.topbar .desk-nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.topbar .desk-nav-link.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}

.topbar .top-cart-btn {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  font-weight: 800;
}
.topbar .top-cart-btn:hover { background: #fff7f5; color: var(--brand-hover); }
html[data-theme="bk-green"] .topbar .top-cart-btn:hover { background: #f1fbf3; }

.topbar .kumbara-top-pill {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.topbar .role-switch-trigger {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
}
.topbar .role-switch-trigger:hover,
.topbar .role-switch-trigger.active,
.topbar .role-switch-trigger[aria-expanded="true"] {
  background: #fff;
  color: var(--brand);
  border-color: #fff;
}

.topbar #installPwaBtn {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.topbar .dev-drawer { margin-top: 2px; }

/* ---------- 14.0b Guest quick-auth sub-row ---------- */
.bk-guest-strip {
  background: rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.bk-guest-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7px 14px 9px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 960px) {
  .bk-guest-strip-inner { display: flex; justify-content: flex-end; padding: 6px 20px 8px; }
}
.bk-guest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.bk-guest-btn:hover { background: #fff; color: var(--brand); }
.bk-guest-btn:active { transform: scale(0.98); }
.bk-guest-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- 14.0c BK 4-tab clean white bottom bar ---------- */
body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 880px) { body { padding-bottom: 48px; } }

.bottom-nav {
  bottom: 0;
  left: 0;
  right: 0;
  max-width: none;
  margin: 0;
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.06);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.bottom-nav .nav-item {
  flex: 1 1 0;
  min-width: 0;
  padding: 5px 4px;
  border-radius: 10px;
  font-size: 0.7rem;
  color: #6b7280;
  gap: 3px;
}
.bottom-nav .nav-item:hover { color: var(--ink-2); }
.bottom-nav .nav-item.active { color: var(--brand); background: transparent; font-weight: 800; }
.bottom-nav .nav-item.active svg { stroke-width: 2.4; }
.bottom-nav .cart-badge { top: 0; right: calc(50% - 22px); }

.floating-cart-bar { bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 980px) { .floating-cart-bar { bottom: 24px; } }

/* ---------- 14.1 Screen transitions ---------- */
@keyframes bkSlideIn {
  from { transform: translateX(28px); opacity: 0.6; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes bkFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.screen-slide-in { animation: bkSlideIn 240ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.screen-fade-in { animation: bkFadeIn 180ms ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .screen-slide-in, .screen-fade-in { animation: none !important; transform: none !important; opacity: 1 !important; }
}

/* ---------- 14.2 Vitrin search & Kumbara hero ---------- */
.bk-hero-search-zone {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 18px;
}
.bk-search-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bk-search-box {
  flex: 1;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0 8px 0 12px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bk-search-box:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.bk-search-icon { color: var(--muted); display: inline-flex; flex-shrink: 0; }
.bk-search-input,
.bk-search-box input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}
.bk-search-box input::placeholder { color: var(--muted-2); font-weight: 500; }
.bk-search-box input:focus { box-shadow: none; }
.bk-search-input::-webkit-search-cancel-button,
.bk-search-box input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.bk-search-clear {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--surface-subtle);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0.8rem;
}
.bk-search-clear:hover { background: var(--surface-sunken); color: var(--ink); }
.bk-filter-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.bk-filter-btn:hover,
.bk-filter-btn.active,
.bk-filter-btn[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.bk-filter-dot {
  position: absolute; top: 7px; right: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--brand); border: 2px solid #fff;
}
.bk-sort-drawer {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 4px;
  animation: drawerIn 0.2s var(--ease);
}
.bk-sort-drawer::-webkit-scrollbar { display: none; }
.bk-sort-pill {
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.bk-sort-pill:hover { border-color: var(--ink-2); color: var(--ink); }
.bk-sort-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.bk-kumbara-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 128px;
  padding: 18px 18px 18px 20px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 45%),
    radial-gradient(rgba(255, 255, 255, 0.1) 1.2px, transparent 1.4px) 0 0 / 14px 14px,
    linear-gradient(120deg, var(--emerald) 0%, var(--emerald-dark) 55%, #0f5132 100%);
  box-shadow: 0 10px 26px -10px rgba(21, 128, 61, 0.55);
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}
.bk-kumbara-banner.is-crimson {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 45%),
    radial-gradient(rgba(255, 255, 255, 0.1) 1.2px, transparent 1.4px) 0 0 / 14px 14px,
    linear-gradient(120deg, #e6391d 0%, #ef5a1f 55%, #f59e0b 100%);
  box-shadow: 0 10px 26px -10px rgba(230, 57, 29, 0.55);
}
.bk-kumbara-copy { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bk-kumbara-eyebrow {
  align-self: flex-start;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.2); padding: 3px 9px; border-radius: 999px;
}
.bk-kumbara-title { margin: 0; color: #fff; font-size: 1.22rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.bk-kumbara-sub { margin: 0; font-size: 0.82rem; font-weight: 600; color: rgba(255, 255, 255, 0.88); line-height: 1.35; }
.bk-kumbara-visual { position: relative; flex-shrink: 0; width: 108px; height: 96px; }
.bk-kumbara-food-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); border: 2px solid rgba(255, 255, 255, 0.5);
}
.bk-kumbara-pct {
  position: absolute; left: -14px; bottom: -8px;
  min-width: 52px; height: 52px; padding: 0 6px; border-radius: 50%;
  background: #fff; color: var(--emerald-dark);
  font-size: 0.95rem; font-weight: 900; letter-spacing: -0.03em;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  border: 3px solid #fde68a;
}
.bk-kumbara-banner.is-crimson .bk-kumbara-pct { color: var(--brand); }
@media (min-width: 960px) {
  .bk-kumbara-banner { min-height: 150px; padding: 22px 28px; }
  .bk-kumbara-title { font-size: 1.5rem; }
  .bk-kumbara-visual { width: 150px; height: 112px; }
}

/* ---------- 14.3 Square food-photo category strip ---------- */
.bk-photo-cats {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px 2px 8px;
  margin: 0 0 14px;
  scroll-snap-type: x proximity;
}
.bk-photo-cats::-webkit-scrollbar { display: none; }
.bk-cat-item {
  flex-shrink: 0;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  scroll-snap-align: start;
}
.bk-cat-thumb {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-subtle);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  border: 2.5px solid transparent;
  transition: transform 0.18s var(--ease), border-color 0.15s ease;
}
.bk-cat-thumb.is-emoji {
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; background: #fff;
}
.bk-cat-item:hover .bk-cat-thumb { transform: translateY(-2px); }
.bk-cat-item.active .bk-cat-thumb { border: 2.5px solid var(--brand); }
.bk-cat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
  text-align: center;
  line-height: 1.15;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bk-cat-item.active .bk-cat-label { color: var(--brand); font-weight: 800; }

/* ---------- 14.4 2-up campaign cards ---------- */
.bk-section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 0 10px;
}
.bk-section-title { margin: 0; font-size: 1.05rem; font-weight: 800; }
.bk-section-link { background: none; border: none; color: var(--brand); font-weight: 700; font-size: 0.8rem; cursor: pointer; font-family: inherit; }
.bk-campaign-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 2px 8px;
  margin-bottom: 14px;
  scroll-snap-type: x mandatory;
}
.bk-campaign-strip::-webkit-scrollbar { display: none; }
.bk-campaign-card {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  min-width: 260px;
  max-width: 82vw;
  min-height: 112px;
  border-radius: 16px;
  padding: 14px 14px 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  scroll-snap-align: start;
  background: linear-gradient(125deg, var(--brand) 0%, var(--brand-hover) 100%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease;
}
.bk-campaign-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.bk-campaign-card.is-emerald { background: linear-gradient(125deg, #16a34a 0%, #0f6b36 100%); }
.bk-campaign-card.is-crimson { background: linear-gradient(125deg, #e6391d 0%, #b9230d 100%); }
.bk-campaign-copy { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bk-campaign-badge {
  align-self: flex-start; background: #fff; color: var(--ink);
  font-size: 0.66rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.02em;
}
.bk-campaign-card.is-emerald .bk-campaign-badge { color: var(--emerald-dark); }
.bk-campaign-card.is-crimson .bk-campaign-badge { color: #c92a10; }
.bk-campaign-big { font-size: 1.5rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; }
.bk-campaign-text { font-size: 0.8rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); line-height: 1.3; }
.bk-campaign-img {
  flex-shrink: 0; width: 88px; height: 88px; object-fit: cover; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.45); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
@media (min-width: 960px) {
  .bk-campaign-strip { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .bk-campaign-card { min-width: 0; max-width: none; min-height: 128px; }
}

/* ---------- 14.5 Compact horizontal restaurant cards ---------- */
.bk-rest-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
@media (min-width: 920px) {
  .bk-rest-list { grid-template-columns: 1fr 1fr; gap: 14px; }
}
.bk-rest-card {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  width: 100%;
  min-width: 0;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s var(--ease), box-shadow 0.18s ease, border-color 0.15s ease;
}
.bk-rest-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.bk-rest-card:active { transform: translateY(0) scale(0.995); }
.bk-rest-card.is-closed .bk-rest-thumb { filter: grayscale(0.85); opacity: 0.75; }
.bk-rest-thumb-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-subtle);
}
.bk-rest-thumb { width: 100%; height: 100%; object-fit: cover; }
.bk-rest-thumb.is-emoji { display: flex; align-items: center; justify-content: center; font-size: 2.4rem; }
.bk-star-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: #16a34a;
  color: #fff;
  font-weight: 800;
  font-size: 0.74rem;
  line-height: 1.2;
  padding: 3px 8px;
  border-radius: 8px 0 8px 0;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}
.bk-star-badge.is-strip { right: 0; border-radius: 0; text-align: center; }
.bk-star-badge.is-new { background: var(--gold); }
.bk-cashback-mini {
  position: absolute;
  left: 4px;
  bottom: 4px;
  z-index: 1;
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 60%, #d97706 100%);
  color: #3b2004;
  font-size: 0.64rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.bk-rest-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bk-rest-title-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.bk-rest-name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bk-rest-qr-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.bk-rest-qr-btn:hover { color: var(--brand); border-color: var(--brand); }
.bk-rest-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3;
  min-width: 0;
}
.bk-rest-meta svg { flex-shrink: 0; color: var(--muted-2); }
.bk-meta-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.bk-meta-item strong { color: var(--ink-2); font-weight: 700; }
.bk-delivery-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 3px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--rest-bar);
}
.bk-delivery-bar svg { flex-shrink: 0; }
.bk-delivery-bar.is-express { background: var(--express-bar); }
.bk-delivery-bar.is-restaurant { background: var(--rest-bar); }
.bk-delivery-bar.is-closed { background: #94a3b8; }

.bk-empty-state {
  text-align: center; padding: 36px 16px; color: var(--muted); background: #fff;
  border: 1px dashed var(--line-strong); border-radius: 16px; font-weight: 600;
}

/* ---------- 14.6 Restaurant detail & menu ---------- */
.bk-rest-detail { display: flex; flex-direction: column; gap: 12px; }
.bk-rest-topcard {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-xs);
}
.bk-back-btn,
.bk-icon-btn {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: inherit;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.bk-back-btn:hover,
.bk-icon-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.bk-rest-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  overflow: hidden;
}
.bk-rest-title-block { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bk-rest-title-block h1,
.bk-rest-title-block h2,
.bk-rest-title-block .bk-rest-name { margin: 0; font-size: 1.08rem; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-stars { display: inline-flex; align-items: center; gap: 1px; color: var(--emerald); font-size: 0.86rem; letter-spacing: 0.02em; }
.bk-stars .is-off { color: #d1d5db; }
.bk-rating-text { font-size: 0.76rem; font-weight: 700; color: var(--muted); margin-left: 6px; }
.bk-rating-text strong { color: var(--emerald-dark); }
.bk-rest-actions { display: flex; gap: 6px; flex-shrink: 0; }

.bk-delivery-box {
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 10px 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--ink-2);
}
.bk-delivery-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.bk-delivery-line strong { color: var(--ink); font-weight: 800; }
.bk-delivery-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.74rem; font-weight: 800; color: #fff;
  padding: 3px 9px; border-radius: 6px; background: var(--rest-bar);
}
.bk-delivery-tag.is-express { background: var(--express-bar); }
.bk-delivery-tag.is-restaurant { background: var(--rest-bar); }
.bk-delivery-tag.is-closed { background: #94a3b8; }
.bk-kumbara-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--gold-soft); color: var(--gold-ink);
  border: 1px solid rgba(217, 119, 6, 0.25);
  font-size: 0.72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px;
}

.bk-subtabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
}
.bk-subtab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 8px 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.bk-subtab:hover { color: var(--ink); }
.bk-subtab.active { border-bottom: 3px solid var(--brand); color: var(--brand); font-weight: 800; }

.bk-cat-bar {
  position: sticky;
  top: var(--topbar-h, 58px);
  z-index: 50;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #fff;
  border-bottom: 1px solid var(--line-strong);
  margin: 0 -14px;
  padding: 0 14px;
  box-shadow: 0 4px 10px -8px rgba(15, 23, 42, 0.2);
}
.bk-cat-bar::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .bk-cat-bar { margin: 0; border-radius: 12px; border: 1px solid var(--line-strong); } }
.bk-cat-chip {
  flex-shrink: 0;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 12px 9px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}
.bk-cat-chip:hover { color: var(--ink); }
.bk-cat-chip.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 800; }

.bk-menu-section { scroll-margin-top: calc(var(--topbar-h, 58px) + 56px); margin-top: 6px; }
.bk-menu-cat-title { margin: 10px 0 8px; font-size: 1.02rem; font-weight: 800; color: var(--ink); }
.bk-dish-list {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
}
@media (min-width: 960px) {
  .bk-dish-list { display: grid; grid-template-columns: 1fr 1fr; }
  .bk-dish-list .bk-dish-card:nth-child(odd) { border-right: 1px solid var(--line); }
}
.bk-dish-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  background: #fff;
  transition: background 0.15s ease;
}
.bk-dish-card:last-child { border-bottom: none; }
.bk-dish-card:hover { background: #fcfcfb; }
.bk-dish-card.is-unavailable { opacity: 0.55; cursor: not-allowed; }
.bk-dish-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bk-dish-name { margin: 0; font-size: 0.94rem; font-weight: 800; color: var(--ink); line-height: 1.25; }
.bk-dish-prices { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.bk-price-now { color: var(--emerald); font-weight: 800; font-size: 0.95rem; }
.bk-price-old { color: var(--muted-2); font-weight: 600; font-size: 0.8rem; text-decoration: line-through; }
.bk-dish-desc {
  margin: 0; font-size: 0.78rem; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bk-dish-hints { display: flex; flex-wrap: wrap; gap: 4px; }
.bk-dish-hint {
  font-size: 0.66rem; font-weight: 700; color: var(--ink-2);
  background: var(--surface-subtle); border-radius: 6px; padding: 2px 6px;
}
.bk-dish-hint.is-allergen { background: #fff7ed; color: #9a3412; }
.bk-dish-media { position: relative; width: 82px; height: 82px; flex-shrink: 0; }
.bk-dish-img {
  width: 82px; height: 82px; border-radius: 14px; object-fit: cover;
  background: var(--surface-subtle); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.bk-plus-fab {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--brand);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s var(--ease), background 0.15s ease;
}
.bk-plus-fab:hover { transform: scale(1.1); background: var(--brand-hover); }
.bk-plus-fab:active { transform: scale(0.95); }

/* ---------- 14.7 Doodle auth sheet ---------- */
.bk-auth-wrap { margin: -4px -14px 0; padding-bottom: 20px; }
@media (min-width: 960px) { .bk-auth-wrap { margin: 0; border-radius: 24px; overflow: hidden; } }
.bk-auth-hero {
  position: relative;
  padding: 36px 20px 48px;
  text-align: center;
  color: #fff;
  background-color: var(--header-solid);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160' fill='none' stroke='%23ffffff' stroke-opacity='0.12' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 42a16 16 0 0 1 32 0Z'/%3E%3Cpath d='M12 48h36'/%3E%3Cpath d='M14 54h32a4 4 0 0 1-4 4H18a4 4 0 0 1-4-4Z'/%3E%3Cpath d='M98 14l26 40H72Z'/%3E%3Ccircle cx='92' cy='38' r='3'/%3E%3Ccircle cx='104' cy='44' r='3'/%3E%3Cpath d='M30 96v28M24 96v10a6 6 0 0 0 12 0V96'/%3E%3Cpath d='M44 96c6 0 6 12 0 14v14'/%3E%3Cpath d='M90 104h36l-4 30H94Z'/%3E%3Cpath d='M112 104l6-14'/%3E%3Cpath d='M136 74c8 4 12 12 10 20M60 140c10-6 20-6 30 0'/%3E%3C/svg%3E"),
    var(--header-bg);
  background-size: 160px 160px, cover;
  background-repeat: repeat, no-repeat;
}
.bk-auth-logo { display: inline-flex; align-items: center; gap: 10px; }
.bk-auth-logo .brand-mark { width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--brand); }
.bk-auth-wordmark { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.05em; color: #fff; line-height: 1; }
.bk-auth-tagline { margin: 10px 0 0; font-size: 0.86rem; font-weight: 600; color: rgba(255, 255, 255, 0.88); }
.bk-auth-sheet {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 24px 24px 16px 16px;
  margin-top: -24px;
  max-width: 520px;
  margin-inline: auto;
  padding: 24px 20px;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06), var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bk-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background: var(--surface-subtle);
  padding: 4px;
  border-radius: 12px;
}
.bk-auth-tab {
  border: none; background: transparent; border-radius: 9px; padding: 10px 8px;
  font-family: inherit; font-size: 0.88rem; font-weight: 700; color: var(--muted); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.bk-auth-tab:hover { color: var(--ink); }
.bk-auth-tab.active { background: #fff; color: var(--brand); font-weight: 800; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.bk-field-label { font-size: 0.78rem; font-weight: 700; color: var(--ink-2); margin-bottom: 5px; display: block; }
.bk-phone-group {
  display: flex;
  align-items: stretch;
  height: 48px;
  border: 1px solid var(--line-input);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bk-phone-group:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.bk-country-box {
  display: inline-flex; align-items: center; gap: 4px; padding: 0 12px;
  background: var(--surface-subtle); border-right: 1px solid var(--line-input);
  font-size: 0.9rem; font-weight: 800; color: var(--ink); white-space: nowrap; flex-shrink: 0;
}
.bk-phone-input,
.bk-phone-group input {
  flex: 1; min-width: 0; border: none; outline: none; box-shadow: none; background: transparent;
  padding: 0 12px; font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--ink);
  height: 100%; border-radius: 0;
}
.bk-phone-group input:focus { box-shadow: none; }
.bk-icon-input {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid var(--line-input);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bk-icon-input:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.bk-icon-input > svg,
.bk-icon-input .bk-input-icon { margin-left: 12px; color: var(--muted); flex-shrink: 0; display: inline-flex; }
.bk-icon-input input {
  flex: 1; min-width: 0; border: none; outline: none; box-shadow: none; background: transparent;
  padding: 0 12px 0 10px; font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--ink);
  height: 100%; border-radius: 12px;
}
.bk-icon-input input:focus { box-shadow: none; }
.bk-auth-submit {
  width: 100%; height: 48px; border: none; border-radius: 12px;
  background: var(--brand); color: #fff; font-family: inherit; font-size: 0.95rem; font-weight: 800;
  cursor: pointer; box-shadow: var(--shadow-brand); transition: background 0.15s ease, transform 0.15s ease;
}
.bk-auth-submit:hover { background: var(--brand-hover); }
.bk-auth-submit:active { transform: scale(0.99); }
.bk-auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.bk-auth-foot { text-align: center; font-size: 0.76rem; color: var(--muted); line-height: 1.45; }
.bk-auth-foot a, .bk-auth-foot button { color: var(--brand); font-weight: 700; background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; font-size: inherit; }

/* ---------- 14.8 Theme switch (palette compare) ---------- */
.bk-theme-switch {
  display: inline-flex; gap: 4px; background: var(--surface-subtle); padding: 4px; border-radius: 999px;
}
.bk-theme-opt {
  border: none; background: transparent; border-radius: 999px; padding: 6px 12px;
  font-family: inherit; font-size: 0.76rem; font-weight: 700; color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.bk-theme-opt::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: #e6391d; }
.bk-theme-opt[data-theme-value="bk-green"]::before { background: #28a745; }
.bk-theme-opt.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }

@media print {
  .bk-guest-strip, .bk-cat-bar, .bk-plus-fab { display: none !important; }
}

/* ---------- 14.9 bk-js contract aliases (names used by assets/js modules) ---------- */
/* Photo category tiles */
.bk-photo-cat {
  flex-shrink: 0; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; scroll-snap-align: start;
}
.bk-photo-cat-img {
  width: 64px; height: 64px; border-radius: 14px; overflow: hidden; display: block;
  background: var(--surface-subtle); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  border: 2.5px solid transparent; transition: transform 0.18s var(--ease), border-color 0.15s ease;
}
.bk-photo-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.bk-photo-cat:hover .bk-photo-cat-img { transform: translateY(-2px); }
.bk-photo-cat.active .bk-photo-cat-img { border: 2.5px solid var(--brand); }
.bk-photo-cat-name {
  font-size: 0.78rem; font-weight: 700; color: var(--ink-2); text-align: center; line-height: 1.15;
  max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bk-photo-cat.active .bk-photo-cat-name { color: var(--brand); font-weight: 800; }

/* Kumbara hero aliases */
.bk-kumbara-text { position: relative; z-index: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bk-kumbara-text h2, .bk-kumbara-text h3, .bk-kumbara-text strong { margin: 0; color: #fff; font-size: 1.22rem; font-weight: 800; line-height: 1.2; }
.bk-kumbara-text p, .bk-kumbara-text span { margin: 0; font-size: 0.82rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); line-height: 1.35; }
@media (min-width: 960px) { .bk-kumbara-text h2, .bk-kumbara-text h3, .bk-kumbara-text strong { font-size: 1.5rem; } }
.bk-kumbara-visual > img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); border: 2px solid rgba(255, 255, 255, 0.5); }
.bk-kumbara-badge {
  position: absolute; left: -14px; bottom: -8px; z-index: 2;
  min-width: 52px; height: 52px; padding: 0 6px; border-radius: 50%;
  background: #fff; color: var(--emerald-dark); font-size: 0.95rem; font-weight: 900; letter-spacing: -0.03em;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22); border: 3px solid #fde68a;
}
.bk-kumbara-banner.is-crimson .bk-kumbara-badge { color: var(--brand); }

/* Campaign card aliases */
.bk-campaign-text { display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 1; min-width: 0; }
.bk-campaign-eyebrow {
  align-self: flex-start; background: #fff; color: var(--ink);
  font-size: 0.66rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: 0.02em;
}
.bk-campaign-card.is-emerald .bk-campaign-eyebrow { color: var(--emerald-dark); }
.bk-campaign-card.is-crimson .bk-campaign-eyebrow { color: #c92a10; }
.bk-campaign-title { display: block; color: #fff; font-size: 1.5rem; font-weight: 900; line-height: 1.05; letter-spacing: -0.03em; }
.bk-campaign-sub { font-size: 0.8rem; font-weight: 600; color: rgba(255, 255, 255, 0.9); line-height: 1.3; }
.bk-campaign-card > img { flex-shrink: 0; width: 88px; height: 88px; object-fit: cover; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.45); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); }

/* Restaurant card meta line */
.bk-rest-line {
  display: flex; align-items: center; gap: 5px; min-width: 0;
  font-size: 0.78rem; font-weight: 500; color: var(--muted); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bk-rest-line svg { flex-shrink: 0; color: var(--muted-2); }
.bk-rest-line > span { overflow: hidden; text-overflow: ellipsis; }
.bk-rest-line .dot-sep { color: var(--muted-2); }
.bk-rest-thumb-wrap > img { width: 100%; height: 100%; object-fit: cover; }

/* Restaurant detail identity */
.bk-rest-photo {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; object-fit: cover;
  background: var(--surface-subtle); border: 1px solid var(--line);
}
.bk-rest-identity { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bk-rest-title {
  margin: 0; font-size: 1.08rem; font-weight: 800; line-height: 1.2; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bk-rest-stars { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bk-rating-num { font-size: 0.76rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.bk-kumbara-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--gold-soft); color: var(--gold-ink); border: 1px solid rgba(217, 119, 6, 0.25);
  font-size: 0.72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.bk-info-stack { display: flex; flex-direction: column; gap: 12px; }
.bk-info-card { border-radius: 16px; border: 1px solid var(--line-strong); box-shadow: var(--shadow-xs); }
@media (min-width: 960px) {
  .bk-info-stack { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Menu & dish aliases */
.bk-menu-section-title { margin: 10px 0 8px; font-size: 1.02rem; font-weight: 800; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.bk-menu-section-title .count {
  font-size: 0.7rem; font-weight: 800; color: var(--muted); background: var(--surface-subtle);
  padding: 2px 8px; border-radius: 999px;
}
.bk-dish-title { margin: 0; font-size: 0.94rem; font-weight: 800; color: var(--ink); line-height: 1.25; }
.bk-dish-thumb-wrap { position: relative; width: 82px; height: 82px; flex-shrink: 0; }
.bk-dish-thumb {
  width: 82px; height: 82px; border-radius: 14px; object-fit: cover;
  background: var(--surface-subtle); border: 1px solid var(--line);
}

/* Auth form aliases */
.bk-auth-form { display: flex; flex-direction: column; gap: 12px; }
.bk-auth-heading { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.bk-auth-sub { margin: -4px 0 2px; font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.bk-input {
  width: 100%; height: 48px; border: 1px solid var(--line-input); border-radius: 12px; background: #fff;
  padding: 0 12px; font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--ink);
  outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bk-input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.bk-input::placeholder { color: var(--muted-2); font-weight: 500; }
.bk-phone-group .bk-input,
.bk-input-icon-wrap .bk-input { border: none; box-shadow: none; background: transparent; height: 100%; }
.bk-input-icon-wrap {
  position: relative; display: flex; align-items: center; height: 48px;
  border: 1px solid var(--line-input); border-radius: 12px; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bk-input-icon-wrap:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.bk-input-icon-wrap .bk-input { padding-left: 8px; }
.bk-input-icon { margin-left: 12px; color: var(--muted); flex-shrink: 0; display: inline-flex; }
.bk-code-btn {
  flex-shrink: 0; align-self: center; margin-right: 6px; height: 36px; padding: 0 12px;
  border: none; border-radius: 9px; background: var(--brand-soft); color: var(--brand);
  font-family: inherit; font-size: 0.78rem; font-weight: 800; cursor: pointer; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.bk-code-btn:hover { background: var(--brand); color: #fff; }
.bk-code-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.bk-pill-btn {
  width: 100%; height: 48px; border: none; border-radius: 999px;
  background: var(--brand); color: #fff; font-family: inherit; font-size: 0.95rem; font-weight: 800;
  cursor: pointer; box-shadow: var(--shadow-brand); transition: background 0.15s ease, transform 0.15s ease;
}
.bk-pill-btn:hover { background: var(--brand-hover); }
.bk-pill-btn:active { transform: scale(0.99); }
.bk-pill-btn:disabled { opacity: 0.6; cursor: not-allowed; }


/* ==========================================================================
   15. ACIKTIM v7.0 FEATURE SUITE (Group 1 & Group 2 Agency Components)
   Preserves 100% of v5/v6 rules & html[data-theme="bk-green"] compatibility.
   ========================================================================== */

/* ---------- 15.1 Favorite Heart & Deep Dish Search Match Chips ---------- */
@keyframes bkFavPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.24); }
  100% { transform: scale(1); }
}

.bk-fav-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
  transition: transform 0.18s var(--ease), color 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.bk-fav-btn svg {
  flex-shrink: 0;
  transition: transform 0.18s var(--ease), fill 0.16s ease, stroke 0.16s ease;
}

.bk-fav-btn:hover {
  transform: scale(1.08);
  background: #ffffff;
  color: #e11d48;
  border-color: rgba(225, 29, 72, 0.28);
}

.bk-fav-btn:active {
  transform: scale(0.93);
}

.bk-fav-btn.is-inline {
  position: relative;
  top: auto;
  right: auto;
  z-index: auto;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  box-shadow: none;
  flex-shrink: 0;
}

.bk-fav-btn.is-inline:hover {
  background: #fff1f2;
  border-color: rgba(225, 29, 72, 0.35);
  color: #e11d48;
}

.bk-fav-btn.is-fav {
  color: #e11d48;
  background: rgba(255, 241, 242, 0.96);
  border-color: rgba(225, 29, 72, 0.32);
  animation: bkFavPop 0.28s var(--ease);
}

.bk-fav-btn.is-fav svg {
  fill: #e11d48;
  stroke: #e11d48;
}

.bk-dish-matches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  min-width: 0;
}

.bk-dish-match-chip {
  background: var(--emerald-soft, #ecfdf5);
  color: var(--emerald-dark, #15803d);
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- 15.2 3-Axis Customer Reviews & Star Rating Picker ---------- */
.bk-subtabs {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.bk-subtab {
  font-size: 0.84rem;
  padding: 11px 6px 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 400px) {
  .bk-subtab {
    font-size: 0.78rem;
    padding: 10px 4px 8px;
  }
}

.bk-review-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 18px;
  background: linear-gradient(135deg, #ffffff 0%, var(--emerald-soft, #ecfdf5) 100%);
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
  font-variant-numeric: tabular-nums;
}

.bk-review-big-score {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--emerald-dark, #15803d);
}

.bk-review-big-score small,
.bk-review-big-score span.count,
.bk-review-count {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: normal;
  color: var(--muted);
}

.bk-review-axes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
  justify-content: flex-end;
}

@media (max-width: 560px) {
  .bk-review-axes {
    justify-content: flex-start;
    width: 100%;
  }
}

.bk-axis-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 10px 5px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
  box-shadow: var(--shadow-xs);
  font-variant-numeric: tabular-nums;
}

.bk-axis-pill strong,
.bk-axis-pill .bk-axis-score {
  background: var(--emerald, #16a34a);
  color: #ffffff;
  font-size: 0.73rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.25;
}

.bk-review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.bk-review-card {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bk-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.bk-review-head strong,
.bk-review-user {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}

.bk-review-date,
.bk-review-head time {
  font-size: 0.74rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bk-review-avg,
.bk-review-star-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--emerald, #16a34a);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.bk-review-scores {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  align-self: flex-start;
  background: var(--surface-subtle);
  color: var(--ink-2);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bk-review-comment {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.5;
  word-break: break-word;
}

.bk-owner-reply {
  margin-top: 4px;
  margin-left: 6px;
  padding: 10px 12px;
  background: var(--emerald-soft, #ecfdf5);
  border-left: 3.5px solid var(--emerald, #16a34a);
  border-radius: 0 10px 10px 0;
  font-size: 0.8rem;
  color: var(--ink-2);
  line-height: 1.45;
}

.bk-owner-reply strong {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--emerald-dark, #15803d);
  margin-bottom: 2px;
}

.review-reply-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.review-reply-row .input {
  flex: 1 1 200px;
  min-height: 38px;
  padding: 7px 11px;
  font-size: 0.82rem;
}

/* Profile inline 3-axis review form */
.review-form-box {
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: drawerIn 0.2s var(--ease);
}

.star-rating-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.star-pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.star-pick-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  min-width: 78px;
}

.star-pick-btns {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.star-pick-btn {
  min-width: 38px;
  height: 34px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--ink-2);
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-variant-numeric: tabular-nums;
  transition: transform 0.15s var(--ease), background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.star-pick-btn:hover {
  border-color: var(--emerald, #16a34a);
  color: var(--emerald-dark, #15803d);
  transform: translateY(-1px);
}

.star-pick-btn.active,
.star-pick-btn.is-active {
  background: linear-gradient(135deg, var(--emerald, #16a34a) 0%, var(--emerald-dark, #15803d) 100%);
  border-color: var(--emerald-dark, #15803d);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.26);
}

/* ---------- 15.3 Coupon Box & Quick Coupon Chips (Checkout) ---------- */
.coupon-card {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coupon-card-title,
.coupon-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink);
}

.coupon-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.coupon-input-row .input,
.coupon-input-row input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coupon-input-row .input::placeholder,
.coupon-input-row input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 500;
}

.coupon-input-row .btn {
  flex-shrink: 0;
  min-height: 40px;
}

.coupon-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.coupon-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 9px;
  border: 1.5px dashed rgba(230, 57, 29, 0.42);
  background: var(--brand-soft);
  color: var(--brand);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: transform 0.15s var(--ease), background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

html[data-theme="bk-green"] .coupon-chip {
  border-color: rgba(40, 167, 69, 0.45);
}

.coupon-chip:hover {
  transform: translateY(-1px);
  border-style: solid;
  border-color: var(--brand);
}

.coupon-chip.is-applied,
.coupon-chip.active {
  border-style: solid;
  border-color: var(--emerald, #16a34a);
  background: var(--emerald-soft, #ecfdf5);
  color: var(--emerald-dark, #15803d);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.16);
}

.coupon-applied-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--emerald-soft, #ecfdf5);
  border: 1px solid rgba(22, 163, 74, 0.28);
  color: var(--emerald-dark, #15803d);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- 15.4 Live Courier Tracking Map & Reorder Actions ---------- */
.order-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
}

.live-track-box {
  margin-top: 12px;
  padding: 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: drawerIn 0.2s var(--ease);
}

.live-track-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  font-size: 0.8rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.live-track-meta strong {
  color: var(--ink);
  font-weight: 800;
}

.live-track-plate,
.plate-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.live-track-map {
  height: 230px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  z-index: 1;
  border: 1px solid var(--line-strong);
  background: #e5e7eb;
}

.track-emoji-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--brand);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.25);
  font-size: 1rem;
  line-height: 1;
}

.courier-gps-card {
  background: linear-gradient(135deg, var(--obsidian) 0%, #1e293b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 16px 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  font-variant-numeric: tabular-nums;
}

.courier-gps-card h2,
.courier-gps-card h3,
.courier-gps-card h4,
.courier-gps-card strong {
  color: #ffffff;
  margin: 0;
}

.courier-gps-card .text-muted,
.courier-gps-card small {
  color: rgba(255, 255, 255, 0.76);
}

.courier-gps-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.courier-gps-card .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
}

.courier-gps-card .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---------- 15.5 Restaurant Panel Waiter Calls & Menu Quick Edit ---------- */
.table-calls-banner {
  background: linear-gradient(135deg, #fffbeb 0%, #fff2ef 100%);
  border: 1.5px solid #f59e0b;
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px -8px rgba(245, 158, 11, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.table-calls-head,
.table-calls-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #92400e;
}

.table-call-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.24);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow-xs);
  font-size: 0.83rem;
  font-variant-numeric: tabular-nums;
}

.table-call-row strong {
  color: var(--ink);
  font-weight: 800;
}

.table-call-note {
  color: var(--ink-2);
  font-size: 0.79rem;
}

.table-call-time {
  color: var(--muted);
  font-size: 0.73rem;
}

.menu-manage-item:has(.menu-quick-edit) {
  flex-wrap: wrap;
}

.menu-quick-edit {
  flex: 1 0 100%;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  animation: drawerIn 0.18s var(--ease);
}

.menu-quick-edit .field-group,
.menu-quick-edit label {
  flex: 1 1 110px;
  min-width: 95px;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ink-2);
}

.menu-quick-edit .input,
.menu-quick-edit input {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 0.82rem;
  margin-top: 3px;
}

.menu-quick-edit .btn {
  min-height: 36px;
  flex-shrink: 0;
}

/* ==========================================================================
   16. ACIKTIM v8.0 — SMS PASSWORD RESET & SUPER ADMIN OPS SUITE
   ========================================================================== */

/* ---------- 16.1 Doodle Auth Password Reset Flow ---------- */
.bk-forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
  margin-bottom: 2px;
}

.bk-forgot-link {
  background: none;
  border: none;
  padding: 2px 4px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.bk-forgot-link:hover {
  color: var(--brand-hover);
  background: var(--brand-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bk-reset-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.bk-back-auth-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-subtle);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bk-back-auth-link:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.bk-phone-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.bk-phone-row .bk-phone-group {
  flex: 1 1 auto;
  min-width: 0;
}

.bk-phone-row .bk-code-btn {
  height: 48px;
  margin-right: 0;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
}

.bk-phone-row .bk-code-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

@media (max-width: 420px) {
  .bk-phone-row {
    flex-wrap: wrap;
  }
  .bk-phone-row .bk-phone-group {
    flex: 1 1 100%;
  }
  .bk-phone-row .bk-code-btn {
    width: 100%;
    height: 44px;
  }
}

/* ---------- 16.2 Super Admin SMS & Server Readiness Tab ---------- */
.ops-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ops-kpi-val {
  font-size: 1.15rem;
  line-height: 1.25;
  margin-top: 8px;
}

.ops-provider-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ops-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ops-phone-input {
  flex: 1 1 240px;
  min-width: 200px;
}

@media (max-width: 640px) {
  .ops-action-row .btn {
    flex: 1 1 100%;
  }
}

/* ---------- 16.3 Group B: Dynamic Campaigns, Full Menu Editor & Web Push ---------- */
.bk-campaign-card.is-dynamic {
  min-width: 278px;
}

.bk-campaign-coupon-pill {
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.65);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.cat-manage-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.cat-manage-row.is-hidden {
  opacity: 0.72;
  background: var(--surface-subtle);
}

.cat-sort-inp {
  width: 74px !important;
  flex: 0 0 74px;
  text-align: center;
  font-weight: 700;
}

.menu-full-edit {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.camp-admin-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.camp-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.camp-color-picker {
  width: 44px;
  height: 38px;
  padding: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.color-swatch-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.color-swatch-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  padding: 0;
}

.color-swatch-btn:hover {
  transform: scale(1.12);
}

.push-status-card {
  border-left: 4px solid var(--brand);
}

/* ---------- Group D: Address Book, Cover Settings & Table QR Stickers ---------- */
.addr-book-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.addr-book-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
}

.addr-book-item.is-default {
  border-color: rgba(230, 57, 29, 0.35);
  background: #fff;
}

.addr-book-main {
  flex: 1 1 240px;
  min-width: 0;
}

.addr-book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.addr-edit-form {
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rest-cover-settings-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg);
}

.rest-cover-preview {
  width: 128px;
  height: 82px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}

.qr-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.qr-mini-card {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 10px;
  background: #fff;
  text-align: center;
}

.qr-mini-svg svg {
  width: 112px;
  height: 112px;
  display: block;
  margin: 0 auto;
}

/* ---------- Super Admin SMS Entegrasyonu (AHSU XML API) ---------- */
.sms-split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 16px;
}

.sms-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.sms-toggle-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.sms-toggle-card:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.sms-toggle-card input[type="checkbox"] {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
  flex-shrink: 0;
}

.sms-toggle-title {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.sms-toggle-desc {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.35;
}

.sms-originator-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.sms-originator-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.sms-originator-chip:hover,
.sms-originator-chip.active {
  border-color: var(--brand);
  background: rgba(230, 57, 29, 0.08);
  color: var(--brand);
}

.sms-report-box {
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg);
}

/* ---------- 19. SANAL POS 3D SECURE MODAL & KUMBARA +%10 YÜKLEME ---------- */
.payment-3d-box {
  max-width: 500px;
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
}

.payment-3d-head {
  padding: 16px 20px;
  margin-bottom: 0 !important;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.payment-3d-frame-wrap {
  width: 100%;
  flex: 1;
  min-height: 540px;
  background: #f8fafc;
}

.payment-3d-frame {
  width: 100%;
  height: 560px;
  border: 0;
  display: block;
}

@media (max-width: 639px) {
  .payment-3d-frame-wrap { min-height: 500px; }
  .payment-3d-frame { height: 510px; }
}

.pos-test-tag,
.pos-live-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-left: 4px;
}

.pos-test-tag {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.pos-live-tag {
  background: rgba(16, 185, 129, 0.18);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.kumbara-topup-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.13) 0%, rgba(230, 57, 29, 0.07) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.82rem;
}

.kumbara-topup-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 14px;
}

.topup-preset-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 8px 0;
}

@media (max-width: 480px) {
  .topup-preset-row { grid-template-columns: repeat(2, 1fr); }
}

.topup-preset-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 12px;
  padding: 8px 6px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.15s ease;
}

.topup-preset-chip small {
  font-size: 0.68rem;
  color: #fde68a;
  font-weight: 700;
}

.topup-preset-chip:hover,
.topup-preset-chip.active {
  background: rgba(251, 191, 36, 0.24);
  border-color: #fbbf24;
  transform: translateY(-1px);
}

.kumbara-topup-preview {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #fef3c7;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(110, 231, 183, 0.3);
  border-radius: 10px;
  padding: 8px 10px;
  line-height: 1.4;
}






