/* TUFAN 101 — Tasarım Sistemi
   Dökümandaki renk paleti ve tipografiye birebir uygundur. */

:root {
  /* Yüzeyler */
  --bg-app: #FFFFFF;
  --bg-page: #F8FAFC;
  --bg-card: #FFFFFF;
  --border: #E2E8F0;

  /* Metin */
  --text-title: #0F172A;
  --text-body: #334155;
  --text-muted: #94A3B8;

  /* Aksiyonlar */
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;

  /* Sidebar */
  --sidebar-bg: #FFFFFF;
  --sidebar-active-bg: #EFF6FF;
  --sidebar-active-fg: #2563EB;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .14);

  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Poppins", var(--font-ui);
  --font-alt: "Manrope", var(--font-ui);

  --touch: 52px;          /* dokunmatik minimum hedef */
  --scale: 1;             /* erişilebilirlik: yazı büyütme (mod-19) */
}

/* Koyu tema (mod-01) */
:root[data-theme="dark"] {
  --bg-app: #0B1220;
  --bg-page: #0F172A;
  --bg-card: #111C31;
  --border: #1E293B;
  --text-title: #F1F5F9;
  --text-body: #CBD5E1;
  --text-muted: #64748B;
  --sidebar-bg: #0B1220;
  --sidebar-active-bg: #16233d;
  --sidebar-active-fg: #60A5FA;
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: calc(15px * var(--scale));
  color: var(--text-body);
  background: var(--bg-page);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
h1, h2, h3, .head { font-family: var(--font-head); color: var(--text-title); margin: 0; }
.price, .num { font-family: var(--font-head); font-variant-numeric: tabular-nums; }
.alt { font-family: var(--font-alt); }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--primary); text-decoration: none; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--touch); padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--primary); color: #fff; font-weight: 600;
  transition: transform .05s ease, background .15s ease, box-shadow .15s ease;
  user-select: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:hover { background: var(--primary-hover); }
.btn.success { background: var(--success); } .btn.success:hover { background: #16A34A; }
.btn.warning { background: var(--warning); } .btn.warning:hover { background: #D97706; }
.btn.danger  { background: var(--danger); }  .btn.danger:hover  { background: #DC2626; }
.btn.ghost {
  background: transparent; color: var(--text-body); border-color: var(--border);
}
.btn.ghost:hover { background: var(--bg-page); }
.btn.lg { min-height: 64px; font-size: calc(17px * var(--scale)); padding: 0 26px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.input, select.input, textarea.input {
  width: 100%; min-height: var(--touch);
  padding: 10px 14px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  outline: none; transition: border .15s, box-shadow .15s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }

/* ---------- Kartlar ---------- */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
}
.card h3 { margin-bottom: 12px; font-size: 16px; }
.grid { display: grid; gap: 16px; }
.muted { color: var(--text-muted); }
.pill { display:inline-flex; align-items:center; gap:6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.green { background: rgba(34,197,94,.14); color: #15803D; }
.pill.red   { background: rgba(239,68,68,.14); color: #B91C1C; }
.pill.amber { background: rgba(245,158,11,.16); color: #B45309; }
.pill.blue  { background: rgba(37,99,235,.12); color: var(--primary); }
.pill.violet { background: rgba(139,92,246,.18); color: #6D28D9; }
.pill.slate { background: rgba(148,163,184,.18); color: var(--text-muted); }
.pill.lock  { background: rgba(148,163,184,.18); color: var(--text-muted); }

/* ---------- Uygulama düzeni ---------- */
#app { display: grid; grid-template-columns: 264px 1fr; height: 100vh; }
.sidebar {
  background: var(--sidebar-bg); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 12px; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--primary); color: #fff; font-family: var(--font-head); font-weight: 700;
}
/* Logo/marka yazı tipi — logodaki teknolojik görünüm (Orbitron) */
.brand .wordmark { font-family: "Orbitron", var(--font-head); font-weight: 800; letter-spacing: 1px; color: var(--text-title); font-size: 18px; }
.brand b { font-family: var(--font-head); color: var(--text-title); font-size: 18px; letter-spacing: .3px; }

/* Büyük marka (sidebar) */
.brand-lg .logo {
  width: 52px; height: 52px; border-radius: 14px; font-size: 26px;
  background: linear-gradient(135deg, #7c3aed, #2563eb 55%, #22d3ee);
  box-shadow: 0 6px 18px rgba(37,99,235,.35);
}
.brand-lg .wordmark { font-size: 24px; }

/* Ekstra büyük marka (giriş ekranı) */
.brand-xl { flex-direction: column; gap: 12px; }
.brand-xl .logo {
  width: 96px; height: 96px; border-radius: 24px; font-size: 52px;
  background: linear-gradient(135deg, #7c3aed, #2563eb 55%, #22d3ee);
  box-shadow: 0 12px 34px rgba(37,99,235,.4);
}
.brand-xl .wordmark { font-size: 34px; letter-spacing: 2px; }

/* Sahiplik imzası (yazılımın en sonu) */
.owner-sign { text-align: center; font-size: 11px; letter-spacing: .4px; color: var(--text-muted); opacity: .7; }
.nav { padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.nav .group-label { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); padding: 14px 14px 6px; font-weight: 700; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
  color: var(--text-body); font-weight: 600; min-height: var(--touch);
}
.nav a .ic { font-size: 20px; width: 22px; text-align: center; }
.nav a:hover { background: var(--bg-page); }
.nav a.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-fg); }
.nav a .lock-ic { margin-left: auto; opacity: .7; font-size: 14px; }

.main { display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  height: 64px; flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 0 20px; border-bottom: 1px solid var(--border); background: var(--bg-app);
}
.topbar .title { font-family: var(--font-head); font-size: 18px; color: var(--text-title); }
.topbar .spacer { flex: 1; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-card); display: grid; place-items: center; font-size: 18px;
}
.iconbtn:hover { background: var(--bg-page); }

/* ---------- Bildirim zili (masa çağrı/sipariş) ---------- */
.bell-wrap { position: relative; }
.bell-btn { position: relative; }
.bell-btn.has-alert { border-color: #f59e0b; animation: bell-pulse 1.6s ease-in-out infinite; }
@keyframes bell-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,.5); } 50% { box-shadow: 0 0 0 6px rgba(245,158,11,0); } }
.bell-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
}
.bell-panel {
  position: fixed; top: 66px; right: 16px; width: 360px; max-width: calc(100vw - 32px); max-height: 78vh; overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.30); z-index: 1000; padding: 8px;
}
@media (max-width: 520px) { .bell-panel { right: 8px; left: 8px; width: auto; max-width: none; } }
.bell-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px 10px; border-bottom: 1px solid var(--border); }
.bell-empty { padding: 22px 12px; text-align: center; font-size: 14px; }
.bell-list { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.bell-item { border: 1px solid var(--border); border-radius: 12px; padding: 10px; background: var(--bg-page); }
.bell-item.unseen { border-color: #f59e0b; background: rgba(245,158,11,.06); }
.bell-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bell-body { font-size: 13px; color: var(--text); margin: 4px 0; }
.bell-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.btn.tiny { padding: 5px 10px; font-size: 12px; border-radius: 8px; }

/* ---- Masa durumu (dolu/boş) ---- */
.tables-box { padding: 10px; margin: 8px 0; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-page); }
.tables-legend { display: flex; gap: 14px; font-size: 12px; font-weight: 700; margin-bottom: 8px; align-items: center; }
.tables-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tables-legend .table-dot { width: 14px; height: 14px; font-size: 0; }
.tables-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; }
.table-dot {
  position: relative; display: inline-grid; place-items: center; min-width: 38px; height: 38px; border-radius: 10px;
  font-size: 13px; font-weight: 800; border: 1.5px solid transparent; cursor: pointer;
  font-family: inherit; transition: transform .12s, box-shadow .15s, filter .15s;
}
button.table-dot:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(15,23,42,.16); }
button.table-dot:active { transform: scale(.94); }
.table-dot.free { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.table-dot.busy { background: #fef2f2; color: #dc2626; border-color: #fecaca; animation: tableBusyPulse 2.2s ease-in-out infinite; }
.table-dot.sel { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 40%, transparent); filter: brightness(1.03); }
.table-badge {
  position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center; border-radius: 999px; font-size: 10.5px; font-weight: 800;
  background: #dc2626; color: #fff; box-shadow: 0 2px 6px rgba(220,38,38,.5);
}
.tables-clear {
  margin-left: auto; cursor: pointer; border: 0; border-radius: 999px; font-weight: 700; font-size: 11.5px;
  padding: 5px 11px; background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary);
}
.tables-clear:hover { background: color-mix(in srgb, var(--primary) 20%, #fff); }
@keyframes tableBusyPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.28); } 50% { box-shadow: 0 0 0 5px rgba(220,38,38,0); } }

.view { padding: 22px; overflow-y: auto; flex: 1; }
.view-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.view-head h1 { font-size: 22px; }
.view-head .spacer { flex: 1; }

/* ---------- Tablo ---------- */
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.tbl tr:hover td { background: var(--bg-page); }

/* ---------- Ürün ızgarası (POS) ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.prod {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; text-align: left; min-height: 104px; display: flex; flex-direction: column; gap: 6px;
  transition: transform .05s, box-shadow .15s, border-color .15s;
}
.prod:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.prod:active { transform: scale(.97); }
.prod { min-height: 190px; }
.prod .emoji { font-size: 54px; text-align: center; height: 140px; display: grid; place-items: center; }
.prod .pimg { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; background: var(--bg-page); display: block; }
.prod .pname { font-weight: 700; color: var(--text-title); line-height: 1.2; font-size: 15px; }
.prod .pprice { margin-top: auto; font-family: var(--font-head); color: var(--primary); font-weight: 700; font-size: 17px; }
.prod .pstock { font-size: 11px; color: var(--text-muted); }

/* Ürün tablosu / menü küçük görseli — büyütüldü */
.prod-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; background: var(--bg-page); display: block; }
.prod-thumb-emoji { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 10px; background: var(--bg-page); font-size: 30px; }

/* ---- Kategori + ürün satırı (menü) — temel ---- */
.menu-cat {
  font-weight: 800; font-size: 16px; color: var(--primary);
  border-left: 5px solid var(--primary); padding: 5px 0 5px 12px; margin: 16px 0 6px;
}
.menu-row {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border: 1px solid var(--border); border-radius: 14px; margin: 8px 0;
  background: var(--card); transition: transform .12s, box-shadow .12s;
}
.menu-name { font-weight: 700; font-size: 15px; line-height: 1.25; flex: 1; }
.menu-desc { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.menu-price { color: var(--primary); font-weight: 800; font-size: 16px; white-space: nowrap; }
.menu-add {
  width: 38px; height: 38px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 22px; line-height: 1;
  display: grid; place-items: center; flex-shrink: 0;
}
.menu-add:active { transform: scale(.92); }

/* ---- Müşteri QR menüsü: modern, şık, ferah ---- */
.public-menu { --pm-tint: color-mix(in srgb, var(--primary) 8%, #fff); }
.public-menu .card { border-radius: 24px; box-shadow: 0 18px 50px rgba(15,23,42,.12); border: 0; }

/* Kategori başlığı — vurgulu şerit + hafif alt çizgi, ferah boşluk */
.public-menu .menu-cat {
  position: relative; font-size: 15px; font-weight: 800; letter-spacing: .4px;
  text-transform: uppercase; color: var(--primary);
  border-left: 0; padding: 0 0 10px 0; margin: 26px 2px 12px;
  border-bottom: 2px solid color-mix(in srgb, var(--primary) 18%, transparent);
  display: flex; align-items: center; gap: 9px;
}
.public-menu .menu-cat::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}
.public-menu .menu-cat:first-child { margin-top: 6px; }

/* Ürün kartı — yumuşak, tıklanabilir his, hover'da yükselir */
.public-menu .menu-row {
  padding: 12px 14px; border-radius: 20px; margin: 12px 0;
  border: 1px solid color-mix(in srgb, var(--primary) 10%, #e7ebf1);
  background: linear-gradient(180deg, #fff, var(--pm-tint));
  box-shadow: 0 3px 10px rgba(15,23,42,.05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.public-menu .menu-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15,23,42,.12);
  border-color: color-mix(in srgb, var(--primary) 34%, transparent);
}
.public-menu .menu-row:active { transform: translateY(0); }

/* Ürün görseli — köşeleri yuvarlak, hafif iç halka */
.public-menu .prod-thumb,
.public-menu .prod-thumb-emoji {
  width: 84px; height: 84px; border-radius: 18px; font-size: 40px;
  box-shadow: 0 6px 16px rgba(15,23,42,.14), inset 0 0 0 2px rgba(255,255,255,.5);
}
.public-menu .prod-thumb-emoji {
  background: radial-gradient(circle at 30% 25%, #fff, var(--pm-tint));
}

.public-menu .menu-name { font-size: 16.5px; font-weight: 800; color: #0f172a; }
.public-menu .menu-desc { font-size: 12.5px; line-height: 1.45; margin-top: 3px; }

/* Fiyat — vurgu renginde yumuşak etiket (pill) */
.public-menu .menu-price {
  font-size: 15px; font-weight: 800; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, #fff);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}

/* Ekle butonu — gradyan, yuvarlak, gölgeli, dokunuşta canlı */
.public-menu .menu-add {
  width: 46px; height: 46px; border-radius: 15px; font-size: 24px; font-weight: 700;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 62%, #000));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 40%, transparent);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.public-menu .menu-add:hover { filter: brightness(1.08); box-shadow: 0 10px 22px color-mix(in srgb, var(--primary) 52%, transparent); }
.public-menu .menu-add:active { transform: scale(.9); }

@media (max-width: 480px) {
  .public-menu .prod-thumb,
  .public-menu .prod-thumb-emoji { width: 72px; height: 72px; border-radius: 16px; font-size: 34px; }
  .public-menu .menu-name { font-size: 15.5px; }
  .public-menu .menu-add { width: 42px; height: 42px; }
}

/* ============ QrAll tarzı: kategori çipleri + açılır kategoriler ============ */
/* Üst yatay kategori çipleri (kaydırmalı) */
.menu-chips {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px;
  margin: 6px -2px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.menu-chips::-webkit-scrollbar { display: none; }
.menu-chip {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--primary) 32%, transparent);
  background: #fff; color: var(--primary); font-weight: 800; font-size: 13.5px;
  padding: 7px 14px 7px 8px; border-radius: 999px; white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s, transform .12s;
}
.menu-chip .menu-chip-img {
  width: 30px; height: 30px; border-radius: 999px; object-fit: cover; display: block;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.6);
}
.menu-chip.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 40%, transparent);
}
.menu-chip:active { transform: scale(.96); }

/* Açılır-kapanır kategori bölümü (accordion) — "kategori indirme" */
.menu-sections { display: grid; gap: 12px; }
.menu-acc {
  border: 1px solid color-mix(in srgb, var(--primary) 12%, #e7ebf1);
  border-radius: 20px; overflow: hidden; background: #fff;
  box-shadow: 0 3px 10px rgba(15,23,42,.05);
}
.menu-acc-head {
  width: 100%; display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 0; border-left: 5px solid var(--primary); background: transparent;
  padding: 15px 16px; font-family: inherit; text-align: left;
  font-weight: 800; font-size: 16px; letter-spacing: .3px; color: #0f172a;
}
.menu-acc-title { flex: 1; text-transform: uppercase; }
.menu-acc-count {
  font-size: 12px; font-weight: 800; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, #fff);
  padding: 3px 10px; border-radius: 999px;
}
.menu-acc-chev { display: inline-grid; place-items: center; color: var(--primary); transition: transform .22s ease; }
.menu-acc.open .menu-acc-chev { transform: rotate(180deg); }
/* İçerik: kapalıyken gizli, açıkken görünür */
.menu-acc-body { display: none; padding: 0 12px 10px; }
.menu-acc.open .menu-acc-body { display: block; animation: menuAccIn .22s ease; }
@keyframes menuAccIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* Satır sonundaki chevron (sipariş kapalı görünümde) */
.menu-row-chev { display: inline-grid; place-items: center; color: color-mix(in srgb, var(--primary) 55%, #94a3b8); flex-shrink: 0; }

/* ============ Büyük fotoğraflı ürün kartı (menuBigPhotos) ============ */
.menu-row--big { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.menu-photo-big {
  width: 100%; height: 200px; object-fit: cover; display: block; background: var(--bg-page);
}
.menu-photo-big--emoji { display: grid; place-items: center; font-size: 72px; background: radial-gradient(circle at 30% 25%, #fff, var(--pm-tint, #f1f5f9)); }
.menu-big-body { padding: 14px 16px 16px; display: grid; gap: 8px; }
.menu-big-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu-big-top .menu-name { font-size: 18px; }
.menu-add--wide {
  width: 100%; height: auto; border-radius: 14px; padding: 12px; font-size: 16px; font-weight: 800;
  letter-spacing: .3px; margin-top: 2px;
}
.public-menu .menu-add--wide { width: 100%; }
@media (max-width: 480px) { .menu-photo-big { height: 168px; } }

/* ============ Besin değeri rozetleri (kalori/gram/porsiyon/alerjen) ============ */
.menu-nutri { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.menu-nutri-badge {
  font-size: 11.5px; font-weight: 700; color: #475569;
  background: color-mix(in srgb, var(--primary) 8%, #f1f5f9);
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}

/* ============ PDF menü tam ekran görüntüleyici ============ */
.pdfmenu-overlay {
  position: fixed; inset: 0; z-index: 4000; background: rgba(15,23,42,.72);
  display: flex; flex-direction: column; backdrop-filter: blur(3px);
}
.pdfmenu-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: #0f172a; color: #fff;
}
.pdfmenu-name { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdfmenu-btn {
  border: 0; cursor: pointer; background: rgba(255,255,255,.14); color: #fff;
  font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 10px; text-decoration: none;
}
.pdfmenu-btn:hover { background: rgba(255,255,255,.24); }
.pdfmenu-frame { flex: 1; width: 100%; border: 0; background: #525659; }

/* ================================================================= */
/*  QrAll tarzı müşteri menüsü — renkli başlık, çipler, kapak,        */
/*  liste/ızgara, "Tümünü Gör" sayfası, yüzen yukarı-çık düğmesi.     */
/* ================================================================= */
.qmenu {
  --qm-ink: #0f172a;
  min-height: 100vh; padding: 0 0 96px; max-width: 680px; margin: 0 auto;
  position: relative; color: var(--qm-ink);
}
.qmenu .card { background: transparent; box-shadow: none; }

/* ---- Renkli başlık çubuğu (yapışkan) ---- */
.qmenu-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px calc(14px + env(safe-area-inset-top, 0px));
  padding-top: max(14px, env(safe-area-inset-top, 0px));
  color: var(--qm-head-ink, #fff);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 8px 24px rgba(15,23,42,.18);
}
.qmenu-back {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer;
  display: grid; place-items: center; color: inherit;
  background: color-mix(in srgb, currentColor 16%, transparent);
  transition: background .15s, transform .12s;
}
.qmenu-back:hover { background: color-mix(in srgb, currentColor 26%, transparent); }
.qmenu-back:active { transform: scale(.92); }
.qmenu-titlewrap {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.qmenu-logo {
  width: 54px; height: 54px; border-radius: 15px; object-fit: cover; display: block;
  background: rgba(255,255,255,.9); padding: 3px;
  box-shadow: 0 6px 16px rgba(0,0,0,.22), inset 0 0 0 2px rgba(255,255,255,.5);
  animation: qmLogoIn .5s cubic-bezier(.22,1.2,.36,1) both;
}
.qmenu-title {
  max-width: 100%; text-align: center; font-family: var(--font-head, inherit);
  font-weight: 800; font-size: 20px; letter-spacing: .3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,.12);
}
@keyframes qmLogoIn { from { opacity: 0; transform: translateY(-8px) scale(.7) rotate(-8deg); } to { opacity: 1; transform: none; } }

/* ---- Gövde ---- */
.qmenu-body { padding: 16px 16px 0; }

/* Masa no + garson çağır */
.qmenu-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.qmenu-toolbar .input {
  border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--primary) 26%, #e2e8f0);
  background: #fff; padding: 11px 14px; font-weight: 600;
}
.qmenu-toolbar .btn { border-radius: 12px; }

/* Hızlı butonlar (PDF / anket) */
.qmenu-quick { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 12px; }
.qmenu-quickbtn {
  flex: 1 1 auto; min-width: 140px; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--primary) 30%, transparent);
  background: #fff; color: var(--primary); font-weight: 800; font-size: 14px;
  padding: 12px 16px; border-radius: 14px; text-align: center;
  box-shadow: 0 3px 10px rgba(15,23,42,.05); transition: transform .12s, box-shadow .15s;
}
.qmenu-quickbtn:hover { box-shadow: 0 8px 18px rgba(15,23,42,.12); }
.qmenu-quickbtn:active { transform: scale(.97); }

/* Değerlendirme şeridi (pil) */
.qmenu-ratebanner {
  width: 100%; display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: left;
  border: 0; border-radius: 18px; padding: 13px 16px; margin: 4px 0 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 92%, #000), var(--primary));
  color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 38%, transparent);
  transition: transform .12s, box-shadow .15s;
}
.qmenu-ratebanner:hover { box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 50%, transparent); }
.qmenu-ratebanner:active { transform: scale(.99); }
.qmenu-ratestar {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255,255,255,.22); font-size: 22px; color: #ffd54a;
}
.qmenu-ratetext { display: flex; flex-direction: column; line-height: 1.3; }
.qmenu-ratetext b { font-size: 15px; }
.qmenu-ratecta { font-size: 12.5px; opacity: .9; font-weight: 700; }

/* "Kategoriler" başlığı + "Tümünü Gör" */
.qmenu-cathead { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 8px; }
.qmenu-cathead-t { font-family: var(--font-head, inherit); font-weight: 800; font-size: 18px; color: var(--qm-ink); }
.qmenu-seeall {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer; border: 0; background: transparent;
  color: var(--primary); font-weight: 800; font-size: 13.5px; padding: 4px 2px;
}
.qmenu-seeall .ico { display: inline-grid; place-items: center; }
.qmenu-seeall:active { transform: scale(.96); }

/* Kapak görseli (seçili kategori) */
.qmenu-hero { margin: 4px 0 14px; }
.qmenu-hero-img {
  width: 100%; height: 180px; object-fit: cover; display: block; border-radius: 20px;
  box-shadow: 0 12px 30px rgba(15,23,42,.16);
}

/* Bölüm başlığı + liste/ızgara düğmesi */
.qmenu-sechead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 2px 4px; }
.qmenu-sectitle { font-family: var(--font-head, inherit); font-weight: 800; font-size: 19px; color: var(--qm-ink); text-transform: capitalize; }
.qmenu-viewtoggle {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 13px; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--primary) 26%, transparent);
  background: #fff; color: var(--primary); display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(15,23,42,.05); transition: transform .12s;
}
.qmenu-viewtoggle:active { transform: scale(.92); }

.qmenu-list { display: block; }

/* Izgara (2 sütun) görünümü */
.qmenu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0; }
.qmenu-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--primary) 10%, #e7ebf1);
  background: linear-gradient(180deg, #fff, var(--pm-tint));
  box-shadow: 0 3px 10px rgba(15,23,42,.05); transition: transform .16s, box-shadow .16s;
}
.qmenu-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,23,42,.12); }
.qmenu-card-img { width: 100%; height: 130px; object-fit: cover; display: block; background: var(--pm-tint); }
.qmenu-card-img--emoji { display: grid; place-items: center; font-size: 52px; background: radial-gradient(circle at 30% 25%, #fff, var(--pm-tint)); }
.qmenu-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.qmenu-card-name { font-weight: 800; font-size: 14.5px; color: var(--qm-ink); line-height: 1.25; }
.qmenu-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }

/* "Tümünü Gör" tam kategori listesi */
.qmenu-full { margin-top: 6px; }
.qmenu-full-back {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; border: 0;
  background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary);
  font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 999px; margin-bottom: 14px;
}
.qmenu-full-back .ico { display: inline-grid; place-items: center; }
.qmenu-full-back:active { transform: scale(.97); }
.qmenu-full-row {
  width: 100%; display: flex; align-items: center; gap: 14px; cursor: pointer; text-align: left;
  border: 1px solid color-mix(in srgb, var(--primary) 10%, #e7ebf1); border-radius: 20px;
  background: linear-gradient(180deg, #fff, var(--pm-tint)); padding: 10px 14px; margin-bottom: 12px;
  box-shadow: 0 3px 10px rgba(15,23,42,.05); transition: transform .16s, box-shadow .16s;
}
.qmenu-full-row:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,23,42,.12); }
.qmenu-full-img { width: 72px; height: 72px; flex: 0 0 auto; object-fit: cover; border-radius: 16px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
.qmenu-full-img--ph { display: grid; place-items: center; font-size: 34px; background: radial-gradient(circle at 30% 25%, #fff, var(--pm-tint)); }
.qmenu-full-name { flex: 1; font-weight: 800; font-size: 16px; color: var(--qm-ink); }
.qmenu-full-count {
  flex: 0 0 auto; font-size: 12px; font-weight: 800; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, #fff); padding: 5px 11px; border-radius: 999px;
}

/* Yapışkan sipariş sepeti */
.qmenu-cart {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 60;
  width: min(660px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px;
  padding: 12px 14px 12px 18px; border-radius: 18px;
  background: var(--qm-ink); color: #fff; box-shadow: 0 16px 40px rgba(15,23,42,.34);
  animation: pop .2s ease;
}
.qmenu-cart .btn { border-radius: 12px; white-space: nowrap; }

/* Yüzen yukarı-çık düğmesi */
.qmenu-top {
  position: fixed; right: 18px; bottom: 84px; z-index: 55;
  width: 48px; height: 48px; border-radius: 999px; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #000));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 46%, transparent);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.9);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.qmenu-top.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.qmenu-top:active { transform: scale(.9); }

@media (max-width: 400px) {
  .qmenu-grid { gap: 10px; }
  .qmenu-card-img { height: 112px; }
  .qmenu-hero-img { height: 150px; }
  .qmenu-title { font-size: 18px; }
}

/* ---- QR menü animasyonları (bol hareket) ---- */
@keyframes qmFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes qmFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes qmPop { 0% { opacity: 0; transform: scale(.82); } 60% { transform: scale(1.04); } 100% { opacity: 1; transform: scale(1); } }
@keyframes qmChipIn { from { opacity: 0; transform: translateY(-6px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes qmHeroZoom { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: scale(1); } }
@keyframes qmShine { 0% { background-position: -160% 0; } 100% { background-position: 160% 0; } }

.qmenu-header { animation: qmFadeIn .4s ease both; }
.qmenu-toolbar, .qmenu-quick { animation: qmFadeUp .45s ease both; }
.qmenu-ratebanner { animation: qmPop .5s cubic-bezier(.22,1.2,.36,1) both; }
/* Değerlendirme şeridinde hafif ışık geçişi */
.qmenu-ratebanner::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%);
  background-size: 220% 100%; animation: qmShine 3.4s ease-in-out infinite;
}
.qmenu-ratebanner { position: relative; overflow: hidden; }
.qmenu-cathead { animation: qmFadeUp .4s ease both; }
.menu-chips .menu-chip { animation: qmChipIn .4s ease both; }
.menu-chips .menu-chip:nth-child(1){animation-delay:.02s}
.menu-chips .menu-chip:nth-child(2){animation-delay:.06s}
.menu-chips .menu-chip:nth-child(3){animation-delay:.10s}
.menu-chips .menu-chip:nth-child(4){animation-delay:.14s}
.menu-chips .menu-chip:nth-child(5){animation-delay:.18s}
.menu-chips .menu-chip:nth-child(6){animation-delay:.22s}
.menu-chips .menu-chip:nth-child(n+7){animation-delay:.26s}
.qmenu-hero-img { animation: qmHeroZoom .55s ease both; }
.qmenu-sechead { animation: qmFadeUp .4s ease both; }
/* Liste satırları ve ızgara kartları kademeli belirsin */
.qmenu-list .menu-row, .qmenu-card, .qmenu-full-row { animation: qmFadeUp .42s ease both; }
.qmenu-list .menu-row:nth-child(1),.qmenu-grid .qmenu-card:nth-child(1),.qmenu-full-row:nth-child(1){animation-delay:.03s}
.qmenu-list .menu-row:nth-child(2),.qmenu-grid .qmenu-card:nth-child(2),.qmenu-full-row:nth-child(2){animation-delay:.07s}
.qmenu-list .menu-row:nth-child(3),.qmenu-grid .qmenu-card:nth-child(3),.qmenu-full-row:nth-child(3){animation-delay:.11s}
.qmenu-list .menu-row:nth-child(4),.qmenu-grid .qmenu-card:nth-child(4),.qmenu-full-row:nth-child(4){animation-delay:.15s}
.qmenu-list .menu-row:nth-child(5),.qmenu-grid .qmenu-card:nth-child(5),.qmenu-full-row:nth-child(5){animation-delay:.19s}
.qmenu-list .menu-row:nth-child(n+6),.qmenu-grid .qmenu-card:nth-child(n+6),.qmenu-full-row:nth-child(n+6){animation-delay:.23s}
/* Sepet butonu dokunuşta zıplasın */
.qmenu-cart .btn:active { transform: scale(.96); }
/* "+" ekle butonuna sürekli hafif nabız */
@keyframes qmAddPulse { 0%,100% { box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 40%, transparent); } 50% { box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 62%, transparent); } }
.qmenu .menu-add { animation: qmAddPulse 2.6s ease-in-out infinite; }
/* Erişilebilirlik: hareketi azalt tercihine saygı */
@media (prefers-reduced-motion: reduce) {
  .qmenu *, .qmenu-header, .qmenu-ratebanner::after { animation: none !important; }
}

/* ---- Renk uyumu: açık temalarda beyaz üstü metinleri okunur kıl ---- */
.qmenu .menu-chip { color: var(--qm-accent-ink, var(--primary)); border-color: color-mix(in srgb, var(--qm-accent-ink, var(--primary)) 32%, transparent); }
.qmenu-quickbtn { color: var(--qm-accent-ink, var(--primary)); border-color: color-mix(in srgb, var(--qm-accent-ink, var(--primary)) 30%, transparent); }
.qmenu-seeall { color: var(--qm-accent-ink, var(--primary)); }
.qmenu-viewtoggle { color: var(--qm-accent-ink, var(--primary)); border-color: color-mix(in srgb, var(--qm-accent-ink, var(--primary)) 26%, transparent); }
.qmenu .menu-price { color: var(--qm-accent-ink, var(--primary)); background: color-mix(in srgb, var(--qm-accent-ink, var(--primary)) 12%, #fff); }
.qmenu-full-back { color: var(--qm-accent-ink, var(--primary)); background: color-mix(in srgb, var(--qm-accent-ink, var(--primary)) 12%, #fff); }
.qmenu-full-count { color: var(--qm-accent-ink, var(--primary)); background: color-mix(in srgb, var(--qm-accent-ink, var(--primary)) 12%, #fff); }

/* Nav "YAKINDA" rozeti (yapay zekâ bakımda) */
.navlink .soon-ic {
  margin-left: auto; font-size: 9.5px; font-weight: 800; letter-spacing: .5px;
  color: #92400e; background: linear-gradient(90deg,#fde68a,#fbbf24);
  padding: 2px 7px; border-radius: 999px; box-shadow: 0 2px 6px rgba(245,158,11,.35);
  animation: qmPop .5s ease both;
}

/* Ürün düzenleme — görsel seçici + büyük önizleme */
.prod-img-picker { display: flex; gap: 14px; align-items: flex-start; }
.prod-img-box { width: 150px; height: 150px; flex: none; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--bg-page); display: grid; place-items: center; }
.prod-img-preview { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-img-ph { font-size: 54px; opacity: .5; }

/* ---------- Sepet ---------- */
.cart { display: flex; flex-direction: column; height: 100%; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.cart-row .qty { display: flex; align-items: center; gap: 6px; }
.qbtn { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-card); font-size: 18px; }
.cart-total { font-family: var(--font-head); font-size: 30px; color: var(--text-title); }

/* ---------- Toast / ses ---------- */
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 9999; }
.toast { background: var(--text-title); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; animation: pop .2s ease; max-width: 340px; }
.toast.success { background: var(--success); } .toast.error { background: var(--danger); } .toast.warn { background: var(--warning); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Veri yedekleme hatırlatıcı (5 dk) */
.backup-reminder { display: flex; align-items: center; gap: 12px; max-width: 420px; padding: 14px 16px; border-radius: 14px; background: #1e293b; color: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); animation: pop .25s ease; transition: opacity .25s ease; }
.backup-reminder-ic { font-size: 26px; line-height: 1; }
.backup-reminder-txt { flex: 1; min-width: 0; }
.backup-reminder .btn.tiny { padding: 6px 12px; white-space: nowrap; }

/* Gün Sonu Raporu — işlem zaman çizelgesi */
.eod-timeline { display: flex; flex-direction: column; gap: 2px; }
.eod-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; border-left: 3px solid transparent; }
.eod-row:nth-child(odd) { background: rgba(0,0,0,.03); }
.eod-row.eod-sale { border-left-color: #22C55E; }
.eod-row.eod-income { border-left-color: #2563EB; }
.eod-row.eod-expense { border-left-color: #F59E0B; }
.eod-row.eod-void { border-left-color: #EF4444; }
.eod-time { min-width: 46px; font-size: 13px; color: var(--text-title); font-weight: 700; }
.eod-ico { font-size: 16px; }
.eod-label { flex: 1; min-width: 0; }
.eod-amt { margin-left: auto; white-space: nowrap; }

/* Şube kartları */
.branch-card { transition: box-shadow .2s ease, border-color .2s ease; }
.branch-active { border: 2px solid var(--success); box-shadow: 0 0 0 3px rgba(34,197,94,.12); }
.btn.tiny { padding: 5px 10px; font-size: 13px; }

/* Kurye — aşama ilerleme */
.courier-card { transition: box-shadow .2s ease; }
.courier-steps { display: flex; align-items: center; gap: 4px; margin: 12px 0 4px; }
.courier-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; opacity: .4; transition: opacity .2s ease; }
.courier-step.done { opacity: 1; }
.courier-step-dot { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-soft, #f1f5f9); border: 2px solid var(--border); font-size: 15px; }
.courier-step.done .courier-step-dot { background: var(--success); border-color: var(--success); }
.courier-step-lbl { font-size: 11px; font-weight: 600; color: var(--text-title); text-align: center; }
.courier-step:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: 62%; width: 76%; height: 2px; background: var(--border); z-index: 0; }
.courier-step.done:not(:last-child)::after { background: var(--success); }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); display: grid; place-items: center; z-index: 9000; padding: 16px; animation: pop .15s ease; }
.modal { background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: min(520px, 100%); max-height: 90vh; overflow: auto; padding: 22px; }
.modal h3 { margin-bottom: 14px; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.modal-actions .btn { flex: 1; }

/* ---------- Giriş ekranı ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; background:
  radial-gradient(1200px 500px at 50% -10%, rgba(37,99,235,.12), transparent), var(--bg-page); padding: 20px; }
.auth-card { width: min(420px, 100%); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.pinpad button { height: 68px; font-size: 24px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-card); font-family: var(--font-head); }
.pinpad button:active { background: var(--sidebar-active-bg); }
.pin-dots { display: flex; gap: 12px; justify-content: center; margin: 12px 0; }
.pin-dots i { width: 14px; height: 14px; border-radius: 999px; background: var(--border); display: block; }
.pin-dots i.on { background: var(--primary); }

/* ---------- Basit grafikler ---------- */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.bars .bar { flex: 1; background: linear-gradient(var(--primary), #60A5FA); border-radius: 8px 8px 0 0; min-height: 4px; position: relative; }
.bars .bar span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--text-muted); }
.bars .bar em { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--text-muted); font-style: normal; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat .label { color: var(--text-muted); font-size: 13px; font-weight: 600; }
.stat .value { font-family: var(--font-head); font-size: 28px; color: var(--text-title); margin-top: 6px; }

/* ============ DASHBOARD (yeniden tasarım) ============ */
.dash-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 24px 26px; margin-bottom: 18px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, #2563EB 0%, #4F46E5 55%, #7C3AED 100%);
  box-shadow: 0 12px 34px rgba(79,70,229,.32); position: relative; overflow: hidden;
}
.dash-hero::after {
  content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%); pointer-events: none;
}
.dash-hero-greet { font-size: 14px; opacity: .9; font-weight: 600; }
.dash-hero-title { color: #fff; font-size: 30px; line-height: 1.1; margin: 4px 0; }
.dash-hero-date { font-size: 13px; opacity: .82; text-transform: capitalize; }
.dash-hero-badge {
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px; padding: 14px 20px; min-width: 200px; text-align: right;
}
.dash-hero-badge-lbl { font-size: 11px; letter-spacing: .8px; opacity: .85; font-weight: 700; }
.dash-hero-badge-val { font-size: 30px; font-weight: 800; line-height: 1.2; }
.dash-trend { font-size: 13px; font-weight: 700; margin-top: 2px; }
.dash-trend.up { color: #bbf7d0; }
.dash-trend.down { color: #fecaca; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow);
  position: relative; overflow: hidden; transition: transform .12s ease, box-shadow .12s ease;
}
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.kpi-ico {
  width: 50px; height: 50px; flex: 0 0 50px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px;
}
.kpi-lbl { color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.kpi-val { font-size: 24px; font-weight: 800; color: var(--text-title); line-height: 1.15; margin: 2px 0; }
.kpi-sub { font-size: 11.5px; color: var(--text-muted); }
.kpi-blue::before   { background: var(--primary); } .kpi-blue   .kpi-ico { background: rgba(37,99,235,.12);  color: #2563EB; }
.kpi-green::before  { background: #22C55E; }        .kpi-green  .kpi-ico { background: rgba(34,197,94,.14);  color: #16A34A; }
.kpi-violet::before { background: #7C3AED; }        .kpi-violet .kpi-ico { background: rgba(124,58,237,.12); color: #7C3AED; }
.kpi-amber::before  { background: #F59E0B; }        .kpi-amber  .kpi-ico { background: rgba(245,158,11,.15); color: #D97706; }
.kpi-red::before    { background: #EF4444; }        .kpi-red    .kpi-ico { background: rgba(239,68,68,.14);  color: #DC2626; }
.kpi-slate::before  { background: #94A3B8; }        .kpi-slate  .kpi-ico { background: rgba(148,163,184,.16);color: #64748B; }

.quick-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.quick-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
  background: var(--bg-card); border: 1px solid var(--border); font-weight: 600; font-size: 14px;
  color: var(--text-body); cursor: pointer; transition: .12s;
}
.quick-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--sidebar-active-bg); transform: translateY(-2px); }
.quick-ico { font-size: 18px; }

.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 17px; }

.dash-chart { margin-bottom: 18px; }
.dash-chart .bars { height: auto; align-items: flex-end; gap: 6px; padding: 0; }
.dash-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dash-chart .bar-val { font-size: 11px; color: var(--text-muted); font-weight: 700; min-height: 14px; }
.dash-chart .bar {
  width: 100%; max-width: 46px; border-radius: 8px 8px 0 0; position: static;
  background: linear-gradient(180deg, #60A5FA, #2563EB); min-height: 4px; transition: filter .12s;
}
.dash-chart .bar:hover { filter: brightness(1.08); }
.dash-chart .bar-today { background: linear-gradient(180deg, #34D399, #059669); box-shadow: 0 4px 14px rgba(5,150,105,.35); }
.dash-chart .bar-lbl { font-size: 11.5px; color: var(--text-muted); text-transform: capitalize; }

.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.mini-list { display: flex; flex-direction: column; }
.mini-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--border); }
.mini-row:last-child { border-bottom: 0; }
.mini-name { flex: 1; min-width: 0; font-weight: 600; }
.mini-name > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-ico { font-size: 18px; }
.rank { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: rgba(148,163,184,.16); color: var(--text-muted); }
.rank-1 { background: linear-gradient(135deg,#FBBF24,#F59E0B); color: #fff; }
.rank-2 { background: linear-gradient(135deg,#CBD5E1,#94A3B8); color: #fff; }
.rank-3 { background: linear-gradient(135deg,#FDBA74,#EA580C); color: #fff; }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 30px 10px; text-align: center; }

.dash-lowstock .chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.stock-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); font-size: 13px; font-weight: 600; }
.stock-chip b { color: #DC2626; }
.chip-thumb { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }

@media (max-width: 720px) {
  .dash-hero { padding: 20px; }
  .dash-hero-title { font-size: 24px; }
  .dash-hero-badge { min-width: 0; flex: 1; text-align: left; }
  .dash-hero-badge-val { font-size: 24px; }
  .dash-cols { grid-template-columns: 1fr; }
}

.locked-note { text-align: center; padding: 40px 20px; }
.locked-note .big { font-size: 46px; }

/* ---------- Mobil / dokunmatik ---------- */
@media (max-width: 880px) {
  #app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 500; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 400; }
  .menu-toggle { display: grid !important; }
  /* QR Menü yönetim ekranı: dar ekranda tek sütuna in */
  .qr-layout { grid-template-columns: 1fr !important; }
}
.menu-toggle { display: none; }

/* Kilitli menü öğesi */
.nav a.locked { opacity: .6; }

/* ================================================================
   Marka / Logo — daha premium "T" rozeti (giriş, kenar çubuğu, hero)
   ================================================================ */
.brand .logo,
.brand-lg .logo,
.brand-xl .logo {
  position: relative;
  background: linear-gradient(145deg, #22d3ee 0%, #3b82f6 48%, #6d28d9 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.28);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,.42),
    inset 0 -5px 12px rgba(0,0,0,.22),
    0 8px 22px rgba(59,130,246,.4);
}
/* Küçük marka logosunun düz zeminini de premium yap */
.brand .logo { border-radius: 11px; }
/* Wordmark: modern marka gradyanı (destekleyen tarayıcılarda) */
.brand .wordmark,
.brand-lg .wordmark,
.brand-xl .wordmark { color: var(--text-title); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .brand .wordmark,
  .brand-lg .wordmark,
  .brand-xl .wordmark {
    background: linear-gradient(92deg, #3b82f6, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* ================================================================
   QR Tıklama Ekranı (bio-link) — müşteri QR okutunca açılır
   ================================================================ */
.bio-loading {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #34d399, #22d3ee 50%, #3b82f6);
}
.bio-spin {
  width: 46px; height: 46px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: bio-spin 0.8s linear infinite;
}
@keyframes bio-spin { to { transform: rotate(360deg); } }

.bio-page {
  --bio-ink: #0f172a;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: 34px 18px 20px; color: var(--bio-ink);
  position: relative;
}
.bio-page::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 60% at 50% -5%, rgba(255,255,255,.28), transparent 55%);
}
.bio-head { text-align: center; width: 100%; max-width: 560px; position: relative; z-index: 1; }
.bio-logo {
  width: 96px; height: 96px; border-radius: 26px; object-fit: cover;
  border: 4px solid rgba(255,255,255,.55);
  box-shadow: 0 12px 34px rgba(0,0,0,.28); margin-bottom: 14px;
}
.bio-title {
  color: var(--bio-ink); font-size: 34px; font-weight: 800; letter-spacing: .3px;
  margin: 0; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.bio-owner { color: var(--bio-ink); opacity: .78; font-size: 15px; margin-top: 6px; font-weight: 600; }
.bio-rule {
  width: 220px; max-width: 70%; height: 0; margin: 20px auto 4px;
  border-top: 2px solid var(--bio-ink); opacity: .55;
}

.bio-grid {
  width: 100%; max-width: 620px; margin: auto 0; position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 12px;
  padding: 30px 4px;
}
.bio-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: transparent; border: 0; cursor: pointer; color: var(--bio-ink);
  padding: 6px 2px; transition: transform .12s ease;
}
.bio-btn:active { transform: scale(.94); }
.bio-btn:hover .bio-ico { transform: translateY(-3px); }
.bio-ico {
  width: 76px; height: 76px; display: grid; place-items: center;
  transition: transform .15s ease;
}
.bio-ico svg { width: 100%; height: 100%; }
.bio-lbl { font-size: 17px; font-weight: 800; letter-spacing: .2px; text-align: center; line-height: 1.15; }
.bio-footer { width: 100%; text-align: center; position: relative; z-index: 1; padding-top: 14px; }
.bio-sign { color: var(--bio-ink); opacity: .62; font-size: 12px; letter-spacing: .5px; font-weight: 600; }

/* Menü ekranı geri butonu */
.bio-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px 8px 12px; font-weight: 700; color: var(--text-body);
  margin-bottom: 12px; box-shadow: var(--shadow);
}
.bio-back svg { display: block; }
.bio-back:hover { background: var(--bg-page); }

/* Modal içi büyük bağlantılar (Sosyal Medya / İletişim) */
.biglink-list { display: grid; gap: 10px; }
.biglink {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  border: 1px solid var(--border); border-left: 5px solid var(--bl, var(--primary));
  border-radius: 14px; padding: 12px 14px; background: var(--bg-card); color: var(--text-title);
}
.biglink:hover { background: var(--bg-page); }
.biglink-ic { font-size: 26px; width: 38px; text-align: center; }
.biglink-tx { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.biglink-tx b { font-size: 15px; }
.biglink-tx .muted { font-size: 12.5px; word-break: break-all; }
.biglink-go { font-size: 26px; color: var(--bl, var(--primary)); font-weight: 700; }

@media (max-width: 480px) {
  .bio-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; max-width: 380px; }
  .bio-title { font-size: 28px; }
  .bio-ico { width: 66px; height: 66px; }
}

/* ================================================================
   Dashboard — daha okunur 7 günlük grafik + ödeme dağılımı
   ================================================================ */
.tchart-plot {
  position: relative; display: flex; align-items: flex-end; gap: 6px;
  padding-top: 4px;
}
.tchart-col {
  flex: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px;
}
.tchart-val { font-size: 11px; color: var(--text-muted); font-weight: 700; min-height: 14px; }
.tchart-bar {
  width: 66%; max-width: 46px; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #93C5FD, var(--primary));
  transition: filter .15s ease; position: relative;
}
.tchart-bar:hover { filter: brightness(1.08); }
.tchart-bar.is-best { background: linear-gradient(180deg, #FBBF24, #F59E0B); box-shadow: 0 4px 14px rgba(245,158,11,.35); }
.tchart-bar.is-today { background: linear-gradient(180deg, #34D399, #059669); box-shadow: 0 4px 14px rgba(5,150,105,.35); }
.tchart-lbl { font-size: 11.5px; color: var(--text-muted); text-transform: capitalize; height: 16px; }
.tchart-avg {
  position: absolute; left: 0; right: 0; height: 0;
  border-top: 2px dashed rgba(148,163,184,.85); z-index: 2; pointer-events: none;
}
.tchart-avg-tag {
  position: absolute; right: 0; top: -9px;
  background: #64748B; color: #fff; font-size: 10px; font-weight: 800;
  padding: 1px 7px; border-radius: 999px;
}
.tchart-legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px;
  font-size: 12.5px; color: var(--text-body);
}
.tchart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg-avg { background: #64748B; border-radius: 2px; height: 0; border-top: 2px dashed #64748B; width: 16px; }
.lg-best { background: linear-gradient(180deg, #FBBF24, #F59E0B); }
.lg-today { background: linear-gradient(180deg, #34D399, #059669); }

.paybar-list { display: grid; gap: 14px; }
.paybar-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.paybar-track { height: 14px; background: var(--bg-page); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.paybar-fill { height: 100%; border-radius: 999px; transition: width .4s ease; min-width: 6px; }

/* ================================================================
   Kasa & Banka — hesap kartları
   ================================================================ */
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.acc-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.acc-card-top { display: flex; align-items: flex-start; gap: 10px; }
.acc-ico { font-size: 26px; }
.acc-name { font-weight: 800; font-size: 15px; color: var(--text-title); }
.acc-bal { font-size: 26px; font-weight: 800; letter-spacing: .3px; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.acc-actions .btn.tiny { flex: 1; min-height: 34px; }

/* ═══════════════ GİRİŞ EKRANI — sade beyaz (karanlık mod yok) ═══════════════ */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: #ffffff;
  padding: 24px;
}
.login-box {
  width: min(400px, 100%);
  background: #ffffff;
  border: 1px solid #eceff3;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, .08);
  padding: 34px 28px 26px;
  text-align: center;
}
.login-logo {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563EB, #1d4ed8);
  color: #fff;
  font-family: var(--font-head, sans-serif);
  font-weight: 800;
  font-size: 34px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(37, 99, 235, .32);
}
.login-title {
  margin: 0 0 4px;
  font-family: var(--font-head, sans-serif);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .5px;
  color: #0f172a;
}
.login-sub {
  margin: 0 0 22px;
  font-size: 14px;
  color: #64748b;
}
.login-field { text-align: left; margin-bottom: 14px; }
.login-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}
.login-box .input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 15px;
  color: #0f172a;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-box .input:focus {
  outline: none;
  background: #fff;
  border-color: #2563EB;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}
.login-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 8px;
  opacity: .7;
  transition: opacity .15s, background .15s;
}
.login-eye:hover { opacity: 1; background: rgba(15, 23, 42, .06); }
.login-remember { color: #475569; user-select: none; }
.login-remember input { width: 17px; height: 17px; accent-color: #2563EB; cursor: pointer; }
.login-btn {
  width: 100%;
  margin-top: 6px;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563EB, #1d4ed8);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .28);
  transition: transform .08s, box-shadow .15s, opacity .15s;
}
.login-btn:hover { box-shadow: 0 10px 26px rgba(37, 99, 235, .36); }
.login-btn:active { transform: translateY(1px); }
.login-btn:disabled { opacity: .6; cursor: default; }
.login-box .owner-sign {
  margin-top: 20px;
  font-size: 12px;
  color: #94a3b8;
  user-select: none;
}

/* ---- Şu An Çalışan Personel (dashboard vardiya kartı) ---- */
.dash-onshift .card-head { align-items: center; }
.dash-onshift .btn.sm { padding: 6px 12px; font-size: 13px; }
.shift-people {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px;
}
.shift-person {
  display: flex; align-items: center; gap: 10px;
  background: #f8fafc; border: 1px solid #e5e9f0; border-radius: 14px;
  padding: 10px 14px 10px 10px; min-width: 190px;
}
.shift-avatar {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.shift-meta { line-height: 1.25; }
.shift-name { font-weight: 700; color: #0f172a; }
.shift-role { font-size: 12.5px; color: #64748b; }
.shift-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: #16a34a; text-transform: uppercase;
  letter-spacing: .3px;
}
.shift-live i {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: shiftPulse 1.6s infinite;
}
@keyframes shiftPulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.shift-pick { display: flex; flex-direction: column; gap: 4px; max-height: 340px; overflow: auto; }
.shift-pick-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 8px;
  border-radius: 10px; cursor: pointer;
}
.shift-pick-row:hover { background: #f1f5f9; }
.shift-pick-row input { width: 18px; height: 18px; accent-color: #2563eb; }
.shift-pick-name { font-weight: 600; color: #0f172a; }

/* ---- İlk giriş karşılama akışı (onboarding) ---- */
.onb-spinner {
  width: 46px; height: 46px; margin: 6px auto 0;
  border: 4px solid #e5e9f0; border-top-color: #2563eb;
  border-radius: 50%; animation: onbSpin 0.9s linear infinite;
}
@keyframes onbSpin { to { transform: rotate(360deg); } }

/* ---- Giriş: "TUFAN 101 Hakkında" linki + Hakkında sayfası ---- */
.login-about-link {
  display: block; width: 100%; margin-top: 14px; padding: 10px;
  background: transparent; border: 1px dashed #cbd5e1; border-radius: 12px;
  color: #2563eb; font-weight: 600; font-size: 13.5px; cursor: pointer;
}
.login-about-link:hover { background: #f1f5ff; border-color: #2563eb; }

.about-wrap { max-width: 640px; }
.about-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.about-logo {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 26px; color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.about-title { margin: 0; font-size: 24px; letter-spacing: .5px; }
.about-tagline { margin: 2px 0 0; color: #64748b; font-size: 13.5px; }
.about-lead { color: #334155; line-height: 1.6; font-size: 14px; }
.about-qr {
  display: flex; gap: 12px; align-items: flex-start;
  background: #f0f7ff; border: 1px solid #dbeafe; border-radius: 14px;
  padding: 14px; margin: 14px 0;
}
.about-qr-ico { font-size: 30px; line-height: 1; }
.about-h { margin: 18px 0 2px; }
.about-feats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px; margin-top: 10px;
}
.about-feat-group { break-inside: avoid; }
.about-feat-letter {
  font-weight: 800; color: #2563eb; font-size: 15px;
  border-bottom: 2px solid #e5e9f0; margin-bottom: 4px; padding-bottom: 2px;
}
.about-feat-list { margin: 0; padding-left: 18px; }
.about-feat-list li { font-size: 13px; color: #334155; margin: 3px 0; line-height: 1.35; }
.about-contact {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid #e5e9f0;
}
.about-contact-row { display: flex; flex-wrap: wrap; gap: 8px; }
.about-cbtn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 10px; text-decoration: none;
  background: #2563eb; color: #fff; font-weight: 600; font-size: 13.5px;
}
.about-cbtn:hover { background: #1d4ed8; }

/* ============ Kampanyalar (mod: campaigns) ============ */
.camp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.camp-card { background: var(--card, #fff); border: 1px solid var(--border); border-radius: 14px; padding: 14px; transition: box-shadow .15s, border-color .15s; }
.camp-card.camp-on { border-color: var(--success); box-shadow: 0 0 0 1px var(--success) inset; }
.camp-card h3 { font-size: 16px; }
.camp-badge { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; background: var(--bg-soft, #f1f5f9); color: var(--muted); }

/* ============ Mutfak Ekranı (mod: kitchen / KDS) ============ */
.kds-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.kds-ticket { border: 2px solid var(--border); border-radius: 14px; padding: 12px; background: var(--card, #fff); display: flex; flex-direction: column; gap: 8px; }
.kds-ticket.kds-new { border-color: #f59e0b; }
.kds-ticket.kds-cooking { border-color: #3b82f6; }
.kds-ticket.kds-ready { border-color: var(--success); opacity: .9; }
.kds-top { display: flex; justify-content: space-between; align-items: center; }
.kds-masa { font-size: 18px; font-weight: 800; }
.kds-time { font-size: 12px; color: var(--muted); }
.kds-state { font-size: 12px; font-weight: 800; letter-spacing: .5px; }
.kds-new .kds-state { color: #d97706; }
.kds-cooking .kds-state { color: #2563eb; }
.kds-ready .kds-state { color: var(--success); }
.kds-items { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.kds-item { display: flex; gap: 8px; font-size: 15px; }
.kds-qty { min-width: 30px; color: var(--primary, #2563eb); }
.kds-note { font-size: 12px; color: var(--muted); }
.kds-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* ============ Akıllı Patron Paneli (mod: smart) ============ */
.smart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.smart-kpi { background: var(--card, #fff); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.smart-label { font-size: 13px; color: var(--muted); }
.smart-val { font-size: 24px; font-weight: 800; margin-top: 2px; }
.smart-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 720px) { .smart-cols { grid-template-columns: 1fr; } }
.smart-bar-row { margin-bottom: 12px; }
.smart-bar-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 3px; }
.smart-bar { height: 8px; background: var(--bg-soft, #f1f5f9); border-radius: 6px; overflow: hidden; }
.smart-bar-fill { height: 100%; background: linear-gradient(90deg, #2563eb, #60a5fa); border-radius: 6px; }
.smart-hours { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 8px; }
.smart-hour { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.smart-hour-bar { width: 100%; min-height: 2px; background: #93c5fd; border-radius: 3px 3px 0 0; }
.smart-hour-lbl { font-size: 10px; color: var(--muted); margin-top: 3px; }
.smart-list-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.smart-list-row:last-child { border-bottom: none; }

/* ============ Kasa Açılış/Kapanış (mod: cashsession) ============ */
.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 8px; }
.cs-stat { text-align: center; padding: 10px; border: 1px solid var(--border); border-radius: 12px; }

/* ============ Hedef Sistemi (mod: targets) ============ */
.tgt-bar { height: 12px; background: var(--bg-soft, #f1f5f9); border-radius: 8px; overflow: hidden; }
.tgt-fill { height: 100%; background: linear-gradient(90deg, #f59e0b, #fbbf24); border-radius: 8px; transition: width .4s; }
.tgt-fill.tgt-done { background: linear-gradient(90deg, #16a34a, #4ade80); }

/* ===== Denetim Modu (audit) ===== */
.audit-row{display:grid;grid-template-columns:180px 140px 160px 1fr;gap:12px;align-items:center;padding:10px 14px;border-bottom:1px solid var(--border)}
.audit-row:last-child{border-bottom:0}
.audit-head{position:sticky;top:0;background:var(--card,#fff);font-weight:700;font-size:13px;color:var(--muted)}
@media(max-width:640px){.audit-row{grid-template-columns:1fr;gap:4px}.audit-head{display:none}}

/* ===== Anlık Alarm Merkezi ===== */
.alarm-ok{text-align:center;padding:48px 20px}
.alarm-summary{display:flex;gap:10px;margin-bottom:14px}
.alarm-list{display:flex;flex-direction:column;gap:12px}
.alarm-card{display:flex;gap:14px;align-items:center;padding:16px 18px;border-radius:16px;border:1px solid var(--border);background:var(--card,#fff);box-shadow:0 2px 8px rgba(0,0,0,.05)}
.alarm-icon{font-size:34px;line-height:1;flex:0 0 auto}
.alarm-title{font-weight:800;font-size:18px}
.alarm-desc{color:var(--muted);font-size:14px;margin-top:2px}
.alarm-crit{border-color:#ef4444;background:linear-gradient(90deg,rgba(239,68,68,.12),transparent)}
.alarm-crit .alarm-title{color:#dc2626}
.alarm-warn{border-color:#f59e0b;background:linear-gradient(90deg,rgba(245,158,11,.12),transparent)}
.alarm-warn .alarm-title{color:#b45309}

/* ===== Karlılık Haritası (profit) ===== */
.prof-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-top:14px}
.prof-card{border-radius:14px;padding:14px;cursor:pointer;border:1px solid var(--border);transition:transform .1s,box-shadow .1s}
.prof-card:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(0,0,0,.1)}
.prof-name{font-weight:700;font-size:15px;margin-bottom:6px}
.prof-margin{font-size:30px;font-weight:800;line-height:1}
.prof-meta{font-size:12px;color:var(--muted);margin-top:4px}
.prof-band{font-size:12px;font-weight:700;margin-top:6px}
.prof-hi{background:linear-gradient(135deg,rgba(34,197,94,.16),rgba(34,197,94,.04));border-color:#22c55e}
.prof-mid{background:linear-gradient(135deg,rgba(245,158,11,.16),rgba(245,158,11,.04));border-color:#f59e0b}
.prof-lo{background:linear-gradient(135deg,rgba(239,68,68,.16),rgba(239,68,68,.04));border-color:#ef4444}
.prof-none{background:var(--card,#fff);border-style:dashed;opacity:.75}

/* ===== Dashboard TV Modu ===== */
.tv-wrap{background:radial-gradient(1200px 600px at 50% -10%,#1e3a8a,#0b1220);color:#fff;border-radius:20px;padding:32px 40px;min-height:70vh;display:flex;flex-direction:column;gap:28px}
.tv-wrap:fullscreen{border-radius:0;justify-content:center}
.tv-header{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1px solid rgba(255,255,255,.15);padding-bottom:16px}
.tv-biz{font-size:32px;font-weight:800;letter-spacing:.5px}
.tv-clock{font-size:20px;opacity:.85}
.tv-hero{text-align:center;padding:20px 0}
.tv-hero-label{font-size:20px;letter-spacing:3px;opacity:.7}
.tv-hero-val{font-size:clamp(56px,12vw,140px);font-weight:900;line-height:1;color:#4ade80}
.tv-target{max-width:640px;margin:18px auto 0}
.tv-bar{height:18px;border-radius:99px;background:rgba(255,255,255,.15);overflow:hidden}
.tv-bar-fill{height:100%;background:linear-gradient(90deg,#38bdf8,#4ade80);transition:width .6s}
.tv-bar-fill.tv-done{background:linear-gradient(90deg,#22c55e,#a3e635)}
.tv-target-txt{margin-top:10px;font-size:18px;opacity:.9}
.tv-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.tv-card{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:22px;text-align:center}
.tv-card-label{font-size:16px;opacity:.75;margin-bottom:8px}
.tv-card-val{font-size:44px;font-weight:800;line-height:1}
@media(max-width:640px){.tv-cards{grid-template-columns:1fr}.tv-header{flex-direction:column;gap:6px}}

/* ===== Personel Skoru ===== */
.score-card{display:flex;gap:16px;align-items:center}
.score-rank{font-size:32px;min-width:44px;text-align:center}
.score-bar{height:10px;border-radius:99px;background:var(--bg-soft,#f1f5f9);overflow:hidden;margin:8px 0}
.score-fill{height:100%;background:linear-gradient(90deg,#38bdf8,#4ade80)}
.score-stats{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;color:var(--muted)}

/* ===== Otomasyon Kuralları ===== */
.auto-rule{display:flex;gap:14px;align-items:flex-start}
.auto-icon{font-size:30px;flex:0 0 auto}

/* ===== Takvim Analizi ===== */
.cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.cal-wd{text-align:center;font-weight:700;font-size:12px;color:var(--muted);padding:4px 0}
.cal-cell{border:1px solid var(--border);border-radius:10px;min-height:56px;padding:6px;display:flex;flex-direction:column;justify-content:space-between}
.cal-empty{border:0;background:transparent}
.cal-today{outline:2px solid var(--primary,#2563eb);outline-offset:-2px}
.cal-day{font-size:12px;font-weight:700;opacity:.8}
.cal-rev{font-size:13px;font-weight:800;text-align:right}
@media(max-width:640px){.cal-cell{min-height:44px;padding:3px}.cal-rev{font-size:11px}}

/* ===== Isı Haritası ===== */
.heat-wrap{display:inline-flex;flex-direction:column;gap:3px;min-width:100%}
.heat-row{display:flex;gap:3px;align-items:center}
.heat-corner{width:38px;flex:0 0 auto}
.heat-wlbl{width:38px;flex:0 0 auto;font-size:12px;font-weight:700;color:var(--muted)}
.heat-hlbl{flex:1;min-width:18px;text-align:center;font-size:10px;color:var(--muted)}
.heat-cell{flex:1;min-width:18px;height:26px;border-radius:4px}
.heat-legend{display:flex;align-items:center;gap:8px;margin-top:10px;justify-content:flex-end}
.heat-legend-bar{width:140px;height:12px;border-radius:99px;background:linear-gradient(90deg,rgba(239,68,68,.12),rgba(239,68,68,1))}

/* ===== Üretim / Reçete ===== */
.rec-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px;margin-top:14px}
.rec-ings{margin-top:10px;display:flex;flex-direction:column;gap:4px}
.rec-ing{display:flex;justify-content:space-between;padding:6px 10px;background:var(--bg-soft,#f1f5f9);border-radius:8px;font-size:13px}

/* ===== Fiyat Etiketi seçim ===== */
.tag-pick{margin-top:14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.tag-pick-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;cursor:pointer}
.tag-pick-row.on{border-color:var(--primary,#2563eb);background:rgba(37,99,235,.08)}

/* ===== Yönetici Mobil Panel ===== */
.mp-wrap{max-width:520px;margin:0 auto}
.mp-hero{background:linear-gradient(135deg,#2563eb,#1e40af);color:#fff;border-radius:20px;padding:24px;text-align:center;box-shadow:0 8px 24px rgba(37,99,235,.3)}
.mp-hero-label{font-size:13px;letter-spacing:2px;opacity:.85}
.mp-hero-val{font-size:clamp(40px,11vw,58px);font-weight:900;line-height:1.1;margin:6px 0}
.mp-hero-sub{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.mp-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:14px}
.mp-card{background:var(--card,#fff);border:1px solid var(--border);border-radius:16px;padding:16px;text-align:center}
.mp-card.warn{border-color:#f59e0b;background:linear-gradient(180deg,rgba(245,158,11,.1),transparent)}
.mp-card.bad{border-color:#ef4444;background:linear-gradient(180deg,rgba(239,68,68,.1),transparent)}
.mp-ic{font-size:26px}
.mp-val{font-size:24px;font-weight:800;line-height:1.15;margin:4px 0;word-break:break-word}
.mp-lbl{font-size:12px;color:var(--muted)}

/* ===== Envanter Sayımı ===== */
.stk-row{display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid var(--border)}
.stk-row:last-child{border-bottom:0}

/* ===== Depo Haritası ===== */
.wh-hit{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid var(--border);cursor:pointer}
.wh-hit:last-child{border-bottom:0}
.wh-map{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-top:14px}
.wh-zone{border:1px solid var(--border);border-radius:14px;padding:12px;background:var(--card,#fff)}
.wh-zone.wh-none{border-style:dashed;opacity:.8}
.wh-zone.wh-hl{border-color:var(--primary,#2563eb);box-shadow:0 0 0 3px rgba(37,99,235,.2)}
.wh-zone-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;font-size:15px}
.wh-chips{display:flex;flex-wrap:wrap;gap:6px}
.wh-chip{border:1px solid var(--border);background:var(--bg-soft,#f1f5f9);border-radius:8px;padding:5px 9px;font-size:12px;cursor:pointer}
.wh-chip:hover{border-color:var(--primary,#2563eb)}

/* ===== WhatsApp Pazarlama ===== */
.wa-pick{margin-top:14px;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}
.wa-pick-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;cursor:pointer}
.wa-pick-row.on{border-color:#22c55e;background:rgba(34,197,94,.08)}
.wa-link-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid var(--border)}
.wa-link-row:last-child{border-bottom:0}

/* ── Masa / Adisyon (tables.js) ── */
.tbl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;margin-top:14px}
.tbl-cell{border:1px solid var(--border);border-radius:14px;padding:14px;min-height:96px;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;background:var(--card,#fff);transition:transform .08s,box-shadow .12s}
.tbl-cell:hover{transform:translateY(-2px);box-shadow:0 6px 18px rgba(0,0,0,.08)}
.tbl-cell.busy{border-color:#f59e0b;background:rgba(245,158,11,.08)}
.tbl-cell.ready{border-color:#16a34a;background:rgba(22,163,74,.10);animation:tblReadyPulse 1.6s ease-in-out infinite}
@keyframes tblReadyPulse{0%,100%{box-shadow:0 0 0 0 rgba(22,163,74,.35)}50%{box-shadow:0 0 0 6px rgba(22,163,74,0)}}
.tbl-kds{margin-top:6px;font-size:11px;font-weight:800;padding:2px 8px;border-radius:999px;align-self:flex-start}
.tbl-kds.ready{background:#16a34a;color:#fff}
.tbl-kds.cooking{background:rgba(245,158,11,.18);color:#b45309}
.tbl-no{font-weight:700;font-size:15px}
.tbl-tot{font-size:18px;font-weight:800;color:#16a34a}
.tbl-items{max-height:38vh;overflow:auto;margin-bottom:6px}
.tbl-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;max-height:34vh;overflow:auto;margin-top:8px}
.tbl-pick-btn{text-align:left;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--card,#fff);cursor:pointer;font-weight:600;font-size:13px}
.tbl-pick-btn:hover{border-color:#2563EB;background:rgba(37,99,235,.06)}

/* ── Gider Bütçesi (budget.js) ── */
.bud-list{display:grid;gap:10px;margin-top:14px}
.bud-row{border:1px solid var(--border);border-radius:12px;padding:12px 14px;cursor:pointer;background:var(--card,#fff)}
.bud-row.over{border-color:#dc2626;background:rgba(220,38,38,.05)}
.bud-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px}
.bud-name{font-weight:700}
.bud-nums{font-size:13px;color:var(--muted,#666)}
.bud-bar{height:8px;border-radius:6px;background:rgba(0,0,0,.07);overflow:hidden}
.bud-fill{height:100%;border-radius:6px;transition:width .3s}
.bud-fill.ok{background:#16a34a}
.bud-fill.warn{background:#f59e0b}
.bud-fill.over{background:#dc2626}
.bud-foot{display:flex;justify-content:space-between;margin-top:6px}

/* ── Kâr/Zarar (pnl.js) ── */
.pnl-table{margin-top:16px;border:1px solid var(--border);border-radius:14px;overflow:hidden}
.pnl-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px 16px;border-bottom:1px solid var(--border)}
.pnl-row:last-child{border-bottom:0}
.pnl-row.sub{background:rgba(0,0,0,.03);font-weight:700}
.pnl-row.total{background:rgba(37,99,235,.06);font-weight:800;font-size:16px;border-top:2px solid var(--border)}
.pnl-lbl{color:var(--fg,#111)}
.pnl-amt{font-weight:700;white-space:nowrap}
.pnl-margins{margin-top:10px;text-align:right}

/* ── Menü arama çubuğu (sidebar) ── */
.nav-search{width:calc(100% - 24px);margin:8px 12px 4px;padding:9px 12px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.06);color:inherit;font-size:14px;outline:none}
.nav-search::placeholder{color:var(--muted,#94a3b8);opacity:.9}
.nav-search:focus{border-color:#2563EB;background:rgba(37,99,235,.08)}
.nav-empty{padding:14px 16px;color:var(--muted,#94a3b8);font-size:13px;text-align:center}
