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

/* Varsayilan tema: Onyx. Diger temalar dosyanin sonunda [data-theme] bloklariyla
   bu degiskenleri ezer - body'ye data-theme konunca butun sayfa otomatik degisir. */
:root {
  --bg: #0a0e14;
  --surface: #11151f;
  --surface-2: #161b28;
  --input-bg: #0d1119;
  --line: #1e2740;
  --money: #22c55e;
  --time: #ef4444;
  --text: #e8eaf0;
  --text-muted: #8b93a7;
  --accent: #22c55e;
  --accent-2: #06b6d4;
  --accent-rgb: 34, 197, 94;
  --surface-rgb: 17, 21, 31;
  --radius-lg: 14px;
  --radius-md: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(var(--accent-rgb), 0.07), transparent 45%),
    radial-gradient(circle at 85% 100%, rgba(var(--accent-rgb), 0.05), transparent 40%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

a { transition: color 0.15s ease, opacity 0.15s ease; }
button, .tab, .link-btn { transition: all 0.18s ease; }
button:active { transform: scale(0.97); }

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card h1 { margin: 0 0 8px; font-size: 1.4rem; }
.card label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--text-muted); }
.card input {
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--text);
  font-size: 1rem;
}
.card button {
  background: var(--money);
  color: #04140a;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 6px;
}
.card .error { color: var(--time); font-size: 0.9rem; margin: 0; }
.card .muted { color: var(--text-muted); font-size: 0.85rem; text-align: center; margin: 0; }
.card a { color: var(--money); }
.btn-link {
  display: inline-block; background: var(--money); color: #04140a; text-decoration: none;
  border-radius: var(--radius-md); padding: 12px; font-weight: 700; margin-top: 6px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand { font-weight: 700; }
.staff-badge {
  background: var(--time); color: #1a0505; font-size: 0.65rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle;
}
.tabs { display: flex; gap: 14px; flex-wrap: wrap; flex: 1; }
.tab { color: var(--text-muted); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: 0.9rem; }
.tab.active { color: var(--text); background: var(--line); }
.tab.disabled { opacity: 0.4; cursor: default; }
.tab.disabled small { display: block; font-size: 0.7rem; }
.link-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem; }

.grid-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  padding: 20px;
}
.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.table-card.occupied { border-color: var(--time); }
.table-card.empty { border-color: var(--line); }
.table-number { font-weight: 700; font-size: 1.1rem; }
.table-status { font-size: 0.85rem; color: var(--text-muted); }
.table-card.occupied .table-status { color: var(--time); }
.table-card.empty .table-status { color: var(--money); }
.qr-img { width: 140px; height: 140px; background: #fff; border-radius: var(--radius-md); padding: 6px; }
.download { color: var(--money); font-size: 0.85rem; text-decoration: none; }
.table-name-form { display: flex; gap: 6px; width: 100%; margin-top: 4px; }
.table-name-form input {
  flex: 1; min-width: 0; background: var(--input-bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 8px; color: var(--text); font-size: 0.8rem;
}
.table-name-form button {
  background: var(--line); color: var(--text); border: none; border-radius: 6px;
  padding: 6px 10px; cursor: pointer; font-size: 0.75rem;
}
.merge-form { display: flex; gap: 6px; width: 100%; margin-top: 4px; }
.merge-form select {
  flex: 1; min-width: 0; background: var(--input-bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 6px 8px; color: var(--text); font-size: 0.75rem;
}
.merge-form button {
  background: var(--time); color: #fff; border: none; border-radius: 6px;
  padding: 6px 10px; cursor: pointer; font-size: 0.75rem; font-weight: 700;
}
.masalar-toolbar { padding: 12px 20px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.add-table-form input[type="number"] { width: 64px; padding: 8px 10px; margin: 0; }
.btn-link-sm {
  display: inline-block; color: var(--money); border: 1px solid var(--money); border-radius: var(--radius-md);
  padding: 8px 14px; font-size: 0.85rem; text-decoration: none;
}

.money { color: var(--money); font-weight: 700; }
.timer { color: var(--time); font-weight: 700; font-variant-numeric: tabular-nums; }
.daily-total { color: var(--text-muted); font-size: 0.9rem; white-space: nowrap; }
.push-toggle-btn {
  background: transparent; border: 1px solid var(--line); color: var(--text-muted);
  border-radius: 999px; padding: 6px 12px; font-size: 0.8rem; cursor: pointer; white-space: nowrap;
}
.push-toggle-btn.push-on { border-color: var(--money); color: var(--money); }
.empty-state { padding: 40px 20px; text-align: center; color: var(--text-muted); }
.error { color: var(--time); }

/* Siparişler */
.orders-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 20px;
}
.order-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.order-card.delivered { border-color: var(--money); opacity: 0.85; }
.order-card.order-warning { border-color: #eab308; box-shadow: 0 0 0 1px #eab308 inset; }
.order-card.order-warning .timer { color: #eab308; }
.order-card.order-danger { border-color: var(--time); box-shadow: 0 0 0 1px var(--time) inset; animation: pulse-danger 1.5s ease-in-out infinite; }
.order-card.order-danger .timer { color: var(--time); }
@keyframes pulse-danger {
  0%, 100% { box-shadow: 0 0 0 1px var(--time) inset; }
  50% { box-shadow: 0 0 0 3px var(--time) inset; }
}
.order-head { display: flex; justify-content: space-between; align-items: center; }
.order-table { font-weight: 700; }
.order-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; }
.order-items li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.order-items .note { color: var(--text-muted); font-size: 0.8rem; }
.item-adjust { display: flex; gap: 4px; flex-shrink: 0; }
.item-adjust .inline-form { display: inline; }
.qty-btn-sm {
  width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--input-bg); color: var(--text); font-size: 0.85rem; cursor: pointer; line-height: 1;
}
.order-total { text-align: right; font-size: 1rem; }
.order-actions { display: flex; gap: 8px; }
.order-actions form { flex: 1; }
.deliver-btn {
  background: var(--money); color: #04140a; border: none; border-radius: var(--radius-md);
  padding: 10px; font-weight: 700; cursor: pointer; width: 100%;
}
.cancel-btn {
  background: transparent; color: var(--time); border: 1px solid var(--time); border-radius: var(--radius-md);
  padding: 10px; font-weight: 700; cursor: pointer; width: 100%;
}
.delivered-badge { text-align: center; color: var(--money); font-size: 0.85rem; font-weight: 700; flex: 1; }

.call-bar { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px 0; }
.call-chip {
  display: flex; align-items: center; gap: 10px; background: var(--time); color: #1a0505;
  padding: 8px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700;
}
.call-chip form { display: inline; }
.call-chip button {
  background: #1a0505; color: #fff; border: none; border-radius: 999px;
  padding: 4px 10px; font-size: 0.78rem; cursor: pointer;
}
.call-waiter-btn {
  display: block; width: calc(100% - 32px); margin: 0 16px 16px; padding: 12px;
  background: transparent; border: 1px solid var(--time); color: var(--time);
  border-radius: var(--radius-md); font-weight: 700; cursor: pointer; font-size: 0.9rem;
}

/* Ödemeler */
.payments-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px;
}
.payment-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.payment-table { font-weight: 700; font-size: 1.1rem; }
.payment-total { font-size: 1.4rem; }
.pay-btn {
  background: var(--money); color: #04140a; border: none; border-radius: var(--radius-md);
  padding: 10px 20px; font-weight: 700; cursor: pointer;
}
.pay-form { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.pay-method {
  background: var(--input-bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 8px 10px; color: var(--text); font-size: 0.9rem;
}

/* Menü yönetimi */
.menu-admin { padding: 20px; display: flex; flex-direction: column; gap: 28px; max-width: 720px; }
.menu-admin-block h2 { font-size: 1.05rem; margin: 0 0 12px; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }
.inline-form input {
  background: var(--input-bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 8px 10px; color: var(--text); font-size: 0.9rem;
}
.inline-form button {
  background: var(--line); color: var(--text); border: none; border-radius: var(--radius-md);
  padding: 8px 12px; cursor: pointer; font-size: 0.85rem;
}
.category-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.category-list li {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 8px 12px;
  cursor: grab;
}
.category-list li.dragging { opacity: 0.4; }
.category-list .drag-handle { color: var(--text-muted); font-size: 1rem; }
.category-list .cat-name { flex: 1; }
.category-hint { font-size: 0.78rem; margin: 8px 0; }
.item-form { display: flex; flex-wrap: wrap; gap: 8px; }
.item-form input, .item-form select {
  background: var(--input-bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 8px 10px; color: var(--text); font-size: 0.9rem;
}
.item-form button {
  background: var(--money); color: #04140a; border: none; border-radius: var(--radius-md);
  padding: 8px 16px; font-weight: 700; cursor: pointer;
}
.item-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.item-table th, .item-table td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.item-table .inactive-row { opacity: 0.5; }
.row-actions { display: flex; gap: 8px; }
.row-actions form { display: inline; }
.row-actions button {
  background: var(--line); color: var(--text); border: none; border-radius: 6px;
  padding: 6px 10px; cursor: pointer; font-size: 0.8rem;
}
.danger-link { background: transparent !important; color: var(--time) !important; }
.options-details { font-size: 0.85rem; }
.options-details summary { color: var(--text-muted); cursor: pointer; padding: 4px 0; }
.option-group-block {
  background: var(--input-bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 10px 12px; margin: 8px 0; display: flex; flex-direction: column; gap: 8px;
}
.option-group-head { display: flex; align-items: center; gap: 8px; }
.option-value-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.option-value-list li { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-bottom: 1px solid var(--line); }
.new-group-form { margin-top: 10px; }
.item-options-list { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.item-option-tag {
  font-size: 0.7rem; color: var(--text-muted); background: var(--input-bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 8px;
}
.file-label { display: flex; flex-direction: column; gap: 4px; font-size: 0.8rem; color: var(--text-muted); }
.file-label input { font-size: 0.8rem; }
.file-form { display: inline-flex; align-items: center; }
.link-btn {
  color: var(--money); font-size: 0.8rem; cursor: pointer; text-decoration: underline;
}
.item-thumb {
  width: 40px; height: 40px; border-radius: var(--radius-md); object-fit: cover;
  border: 1px solid var(--line); display: block;
}
.item-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); background: var(--input-bg);
}

/* Hata sayfalari (404/500) */
.error-page { text-align: center; align-items: center; }
.error-code {
  font-size: 3.5rem; font-weight: 800; color: var(--money); line-height: 1;
}
.error-code.time { color: var(--time); }

/* Üyelik */
.subscription-wrap { padding: 20px; display: flex; flex-direction: column; gap: 20px; max-width: 480px; }
.sub-status { font-size: 1rem; padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--line); }
.sub-status.ok { color: var(--money); border-color: var(--money); }
.sub-status.expired { color: var(--time); border-color: var(--time); }
.success-msg { color: var(--money); background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.3); border-radius: var(--radius-md); padding: 12px 16px; font-weight: 600; font-size: 0.88rem; }

/* --- PayTR odeme sayfasi --- */
.paytr-payment-wrap { padding: 20px; display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.paytr-payment-wrap iframe { border-radius: var(--radius-lg); min-height: 480px; }

/* --- Abonelik plan karti --- */
.plan-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 16px;
  position: relative; overflow: hidden;
}
.plan-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.plan-card-head { display: flex; flex-direction: column; gap: 6px; }
.plan-card-head h2 { margin: 0; font-size: 1.1rem; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price-amount { font-size: 2.1rem; font-weight: 800; color: var(--text); }
.plan-price-unit { color: var(--text-muted); font-size: 0.85rem; }
.plan-features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plan-features li { font-size: 0.85rem; color: var(--text-muted); padding-left: 22px; position: relative; }
.plan-features li::before { content: '✓'; position: absolute; left: 0; color: var(--money); font-weight: 800; }
.plan-footnote { font-size: 0.74rem; margin: 0; }

/* Müşteri menü sayfası */
body.customer { padding-bottom: 90px; }
.customer-header {
  padding: 20px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.customer-header h1 { margin: 0; font-size: 1.2rem; }
.table-badge {
  background: var(--line); color: var(--text); padding: 6px 12px;
  border-radius: 999px; font-size: 0.85rem; font-weight: 700;
}
.header-right { display: flex; align-items: center; gap: 8px; }
.menu-list { padding: 16px; display: flex; flex-direction: column; gap: 24px; }
.menu-category h2 { font-size: 1rem; color: var(--text-muted); margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.menu-items { display: flex; flex-direction: column; gap: 10px; }
.menu-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.menu-item-configurable { align-items: flex-start; flex-direction: column; }
.menu-item-configurable .menu-item-info { width: 100%; }
.item-option-groups { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.option-group-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.option-value-choice {
  display: flex; align-items: center; gap: 6px; font-size: 0.85rem; padding: 4px 0; cursor: pointer;
}
.add-configurable-btn {
  margin-top: 12px; width: 100%; background: var(--money); color: #04140a; border: none;
  border-radius: var(--radius-md); padding: 10px; font-weight: 700; cursor: pointer;
}
.menu-item-img {
  width: 64px; height: 64px; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--line); flex-shrink: 0;
}
.menu-item-name { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.menu-item-soldout { opacity: 0.55; }
.menu-item-soldout .menu-item-img { filter: grayscale(1); }
.soldout-badge {
  background: var(--time); color: #fff; font-size: 0.65rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em;
}
.menu-item-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.menu-item-price { margin-top: 6px; }
.item-note {
  margin-top: 8px; width: 100%; background: var(--input-bg); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 8px; color: var(--text); font-size: 0.8rem;
}
.qty-control { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.qty-btn {
  width: 32px; height: 32px; border-radius: var(--radius-md); border: 1px solid var(--line);
  background: var(--input-bg); color: var(--text); font-size: 1.1rem; cursor: pointer;
}
.qty-value { min-width: 18px; text-align: center; font-weight: 700; }

.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 14px 20px; display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.cart-summary { font-size: 0.9rem; }
.order-btn {
  background: var(--money); color: #04140a; border: none; border-radius: var(--radius-md);
  padding: 12px 22px; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-block; font-size: 0.95rem;
}
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--time); color: #fff; padding: 10px 18px; border-radius: var(--radius-md); font-size: 0.85rem;
}

.confirm-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.confirm-card { text-align: center; align-items: center; }
.confirm-card h1 { font-size: 1.3rem; }

/* Yasal sayfalar */
.legal-page { max-width: 680px; margin: 0 auto; padding: 32px 20px 60px; line-height: 1.6; }
.legal-page h1 { font-size: 1.5rem; margin-bottom: 4px; }
.legal-page h2 { font-size: 1.1rem; margin-top: 28px; color: var(--text); }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 0.92rem; }
.legal-page a { color: var(--money); }
.legal-page .back-link { display: inline-block; margin-bottom: 16px; color: var(--money); text-decoration: none; font-size: 0.9rem; }
.legal-notice {
  background: var(--surface); border: 1px solid var(--time); border-radius: var(--radius-md);
  padding: 10px 14px; color: var(--time) !important; font-size: 0.82rem !important;
}

.checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 0.82rem; color: var(--text-muted); flex-direction: row; }
.checkbox-row input { width: auto; margin-top: 2px; }
.checkbox-row a { color: var(--money); }

.legal-footer {
  padding: 20px; text-align: center; font-size: 0.78rem; color: var(--text-muted);
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.legal-footer a { color: var(--text-muted); text-decoration: underline; }

.payment-history { margin-top: 32px; }
.payment-history h2 { font-size: 1.05rem; margin-bottom: 12px; }

.receipt-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.receipt-card { max-width: 460px; align-items: stretch; }
.receipt-header { display: flex; justify-content: space-between; align-items: center; }
.receipt-header h1 { font-size: 1.2rem; margin: 0; }
.receipt-status { font-size: 0.78rem; padding: 4px 10px; border-radius: 999px; background: var(--line); }
.receipt-status.success { color: var(--money); }
.receipt-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.receipt-table td { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; color: var(--text-muted); }
.receipt-table td:last-child { text-align: right; color: var(--text); }
.receipt-total-label { font-weight: 700; color: var(--text) !important; }
.receipt-total-amount { font-size: 1.15rem; font-weight: 700; }

/* Raporlar */
.reports-wrap { padding: 20px; max-width: 820px; margin: 0 auto; }
.range-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.range-tab {
  color: var(--text-muted); text-decoration: none; padding: 8px 14px; border-radius: var(--radius-md);
  border: 1px solid var(--line); font-size: 0.85rem;
}
.range-tab.active { color: var(--text); background: var(--line); }
.gun-sonu-link { margin-left: auto; color: var(--money); border-color: var(--money); }

/* Gun sonu (Z raporu) - yazdirmaya hazir */
.zrapor-wrap { padding: 24px; max-width: 480px; margin: 0 auto; font-size: 0.95rem; }
.zrapor-header { text-align: center; margin-bottom: 20px; }
.zrapor-header h1 { margin: 0 0 4px; font-size: 1.3rem; }
.zrapor-header .zrapor-date { color: var(--text-muted); font-size: 0.85rem; }
.zrapor-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.zrapor-row.total { font-weight: 700; font-size: 1.1rem; border-bottom: none; border-top: 2px solid var(--line); margin-top: 6px; padding-top: 12px; }
.zrapor-section-title { margin: 20px 0 8px; font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.zrapor-print-btn {
  display: block; width: 100%; margin-top: 24px; background: var(--money); color: #04140a;
  border: none; border-radius: var(--radius-md); padding: 12px; font-weight: 700; cursor: pointer; font-size: 1rem;
}
@media print {
  .zrapor-print-btn { display: none; }
  body { background: #fff; color: #000; }
  .zrapor-row, .zrapor-row.total { border-color: #ccc; }
}
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.stat-label { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 6px; }
.stat-value { font-size: 1.5rem; font-weight: 700; }
.bar-chart {
  display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px;
  overflow-x: auto;
}
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 22px; flex: 1; }
.bar { width: 100%; background: var(--money); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar-label { font-size: 0.62rem; color: var(--text-muted); margin-top: 6px; white-space: nowrap; }

@media (max-width: 480px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .item-form { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   MODERN GORSEL KATMAN - animasyon, derinlik, gradient vurgular
   Butun kurallar mevcut secicilere ek ozellik katiyor, taban stilleri bozmuyor.
   ========================================================================== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, 3%) scale(1.05); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Kaydirma cubugu */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Odak durumu - erisilebilirlik + marka rengiyle tutarli glow */
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.5);
  outline-offset: 1px;
}

/* Giris/kayit karti: cam efekti + arka planda yumusak isik lekesi */
.auth-wrap { position: relative; overflow: hidden; }
.auth-wrap::before, .auth-wrap::after {
  content: ''; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  filter: blur(90px); opacity: 0.22; z-index: 0; pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite;
}
.auth-wrap::before { background: var(--accent); top: -180px; left: -140px; }
.auth-wrap::after { background: var(--accent-2); bottom: -180px; right: -140px; animation-delay: -6s; }
.auth-wrap .card { position: relative; z-index: 1; }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  animation: fadeInUp 0.5s ease both;
  backdrop-filter: blur(6px);
}
.card h1 {
  background: linear-gradient(135deg, var(--text), var(--text-muted));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card input, .inline-form input, .item-form input, .item-form select,
.table-name-form input, .merge-form select, .pay-method {
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.card input:focus, .inline-form input:focus, .item-form input:focus, .item-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}
.card button, .btn-link, .item-form button, .pay-btn, .deliver-btn, .order-btn,
.add-configurable-btn, .zrapor-print-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px -8px rgba(var(--accent-rgb), 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.card button:hover, .btn-link:hover, .item-form button:hover, .pay-btn:hover,
.deliver-btn:hover, .order-btn:hover, .add-configurable-btn:hover, .zrapor-print-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 12px 28px -8px rgba(var(--accent-rgb), 0.75);
  transform: translateY(-1px);
}
.card button:active, .btn-link:active, .pay-btn:active, .deliver-btn:active, .order-btn:active {
  transform: translateY(0) scale(0.97);
}

/* Ust bar: yapiskan + cam efekti */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(var(--surface-rgb), 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 12px 24px -16px rgba(0, 0, 0, 0.5);
}
.brand {
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: 1.05rem;
}
.tab { position: relative; }
.tab.active {
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.08));
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35) inset;
}
.tab:hover:not(.active) { color: var(--text); background: var(--line); }
.push-toggle-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Kart gridleri: giris animasyonu + hover kaldirma */
.table-card, .order-card, .payment-card, .stat-card, .option-group-block, .menu-item {
  animation: fadeInUp 0.45s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.7);
}
.table-card:hover, .order-card:hover, .payment-card:hover, .stat-card:hover, .menu-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(var(--accent-rgb), 0.25);
}
.table-card.occupied { box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.35), 0 12px 30px -18px rgba(239, 68, 68, 0.25); }
.table-card.empty:hover { box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35), 0 18px 40px -18px rgba(0, 0, 0, 0.8); }
.grid-wrap > *:nth-child(2), .orders-wrap > *:nth-child(2), .payments-wrap > *:nth-child(2) { animation-delay: 0.04s; }
.grid-wrap > *:nth-child(3), .orders-wrap > *:nth-child(3), .payments-wrap > *:nth-child(3) { animation-delay: 0.08s; }
.grid-wrap > *:nth-child(4), .orders-wrap > *:nth-child(4), .payments-wrap > *:nth-child(4) { animation-delay: 0.12s; }
.grid-wrap > *:nth-child(5), .orders-wrap > *:nth-child(5), .payments-wrap > *:nth-child(5) { animation-delay: 0.16s; }
.grid-wrap > *:nth-child(n+6), .orders-wrap > *:nth-child(n+6), .payments-wrap > *:nth-child(n+6) { animation-delay: 0.2s; }

.stat-value {
  background: linear-gradient(135deg, var(--text), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bar { background: linear-gradient(180deg, var(--accent-2), var(--money)); transition: opacity 0.15s ease; }
.bar-col:hover .bar { opacity: 0.85; }

/* Musteri menusu: gradient basliginin altina hafif isik */
.customer-header {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.14), transparent 65%);
}
.customer-header h1 {
  background: linear-gradient(135deg, var(--text), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.menu-category { animation: fadeInUp 0.4s ease both; }
.qty-btn, .qty-btn-sm { transition: transform 0.12s ease, border-color 0.12s ease; }
.qty-btn:hover, .qty-btn-sm:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.qty-btn:active, .qty-btn-sm:active { transform: scale(0.9); }
.cart-bar {
  background: rgba(var(--surface-rgb), 0.92); backdrop-filter: blur(14px);
  box-shadow: 0 -12px 30px -12px rgba(0, 0, 0, 0.5);
}
.toast { animation: fadeInUp 0.25s ease both; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5); }

/* Tema secici (Gorunum sayfasi) */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.theme-card {
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; border: 2px solid transparent;
  background: var(--surface); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  animation: fadeInUp 0.4s ease both;
}
.theme-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.7); }
.theme-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25); }
.theme-preview { height: 90px; display: flex; align-items: flex-end; gap: 6px; padding: 12px; }
.theme-swatch { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.theme-info { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.theme-name { font-weight: 700; font-size: 0.95rem; }
.theme-check { color: var(--accent); font-weight: 700; font-size: 0.85rem; opacity: 0; transition: opacity 0.2s ease; }
.theme-card.selected .theme-check { opacity: 1; }

/* ==========================================================================
   MENU YONETIM SAYFASI - Urun Ekle formu, kategori satirlari, urun kartlari.
   Amac: cok sayida alani gruplandirip gizli/acilir paneller altina almak,
   metin-link aksiyonlari tutarli hap-butonlara cevirmek.
   ========================================================================== */

/* --- Ortak hap/chip butonlar --- */
.btn-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-muted);
  padding: 7px 13px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; transition: all 0.15s ease;
}
.btn-chip:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.btn-chip-danger { color: var(--time); border-color: rgba(239, 68, 68, 0.25); background: rgba(239, 68, 68, 0.06); }
.btn-chip-danger:hover { border-color: var(--time); background: rgba(239, 68, 68, 0.12); color: var(--time); }
.btn-chip-xs { padding: 4px 10px; font-size: 0.72rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0e14; border: none; font-weight: 700; padding: 10px 20px;
  border-radius: 999px; cursor: pointer; font-size: 0.85rem; transition: all 0.15s ease;
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(var(--accent-rgb), 0.6); }
.btn-block { width: 100%; margin-top: 16px; padding: 12px 20px; }

/* --- Durum rozeti --- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.badge-active { background: rgba(var(--accent-rgb), 0.15); color: var(--money); border: 1px solid rgba(var(--accent-rgb), 0.35); }
.badge-inactive { background: rgba(239, 68, 68, 0.12); color: var(--time); border: 1px solid rgba(239, 68, 68, 0.3); }
.count-badge, .count-badge-sm { background: var(--surface-2); color: var(--text-muted); border-radius: 999px; padding: 2px 9px; font-size: 0.72rem; font-weight: 700; margin-left: 6px; vertical-align: middle; }
.count-badge-sm { padding: 1px 7px; font-size: 0.68rem; }
.optional-tag { font-size: 0.7rem; color: var(--text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }

/* --- Kategori satirlari --- */
.category-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 10px 14px;
}
.category-row .cat-name { flex: 1; font-weight: 600; }
.category-actions { display: flex; align-items: center; gap: 6px; }
.empty-inline { list-style: none; color: var(--text-muted); font-size: 0.85rem; padding: 10px 0; }

/* --- Acilir mini duzenleme (kategori ceviri) --- */
.inline-edit summary.panel-trigger-sm {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 0.74rem; color: var(--text-muted); transition: all 0.15s ease;
}
.inline-edit summary.panel-trigger-sm::-webkit-details-marker { display: none; }
.inline-edit summary.panel-trigger-sm:hover { border-color: var(--accent); color: var(--text); }
.inline-edit-form { display: flex; gap: 6px; margin-top: 8px; align-items: center; }

/* --- Genel acilir panel (Secenekler / Ingilizce Ceviri) --- */
.inline-edit summary.panel-trigger {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 0.78rem; color: var(--text-muted); font-weight: 600; transition: all 0.15s ease;
}
.inline-edit summary.panel-trigger::-webkit-details-marker { display: none; }
.inline-edit summary.panel-trigger::after { content: '⌄'; margin-left: 2px; transition: transform 0.2s ease; }
.inline-edit[open] > summary.panel-trigger::after { transform: rotate(180deg); }
.inline-edit summary.panel-trigger:hover { border-color: var(--accent); color: var(--text); }
.panel-body {
  margin-top: 10px; padding: 14px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  animation: fadeInUp 0.2s ease both;
}

/* --- Urun Ekle formu --- */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px;
}
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.76rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.field input, .field select { width: 100%; margin: 0; }
.field-full { grid-column: 1 / -1; }
input[type="file"]::file-selector-button {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
  padding: 8px 14px; border-radius: var(--radius-md); cursor: pointer; margin-right: 10px;
  font-size: 0.78rem; font-weight: 600; transition: all 0.15s ease;
}
input[type="file"]::file-selector-button:hover { border-color: var(--accent); color: var(--accent); }

/* --- Urun kartlari (tablo yerine) --- */
.product-list { display: flex; flex-direction: column; gap: 12px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px; transition: border-color 0.15s ease;
}
.product-card.inactive-card { opacity: 0.55; }
.product-card:hover { border-color: rgba(var(--accent-rgb), 0.3); }
.product-head { display: flex; align-items: center; gap: 14px; }
.product-thumb { width: 52px; height: 52px; border-radius: var(--radius-md); object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; }
.product-thumb-empty { display: flex; align-items: center; justify-content: center; color: var(--text-muted); background: var(--surface-2); font-size: 0.9rem; }
.product-info { flex: 1; min-width: 0; }
.product-name { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-sub { color: var(--text-muted); font-size: 0.82rem; margin-top: 3px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.product-price { font-weight: 700; }
.product-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.product-panels { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   VITRIN SAYFASI (/) - girissiz ziyaretcinin gordugu tanitim sayfasi.
   Ayni tema degiskenlerini kullanir, kendi tema attribute'u yok - onyx varsayilan.
   ========================================================================== */

.btn-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  padding: 10px 20px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center;
  transition: all 0.15s ease;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { text-decoration: none; }
.btn-lg { padding: 13px 26px; font-size: 0.92rem; }

.landing-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 40px; max-width: 1100px; margin: 0 auto;
}
.landing-logo-group {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.landing-logo-mark { height: 30px; width: auto; display: block; }
.landing-logo {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-weight: 700; font-size: 1.28rem; letter-spacing: -0.01em;
  color: var(--text);
}
.landing-nav-actions { display: flex; gap: 10px; align-items: center; }

/* --- Tema degistirme butonu (acik/koyu) --- */
.theme-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  cursor: pointer; font-size: 1rem; line-height: 1; flex-shrink: 0;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.theme-toggle-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.theme-toggle-btn .icon-moon { display: none; }
html[data-landing-theme="light"] body.landing-page .theme-toggle-btn .icon-sun { display: none; }
html[data-landing-theme="light"] body.landing-page .theme-toggle-btn .icon-moon { display: inline; }

/* --- Auth sayfalari (login/register) logo basligi --- */
.auth-logo {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  text-decoration: none; margin-bottom: 4px;
}
.auth-logo img { height: 26px; width: auto; display: block; }
.auth-logo span {
  font-family: 'Space Grotesk', 'Manrope', sans-serif; font-weight: 700;
  font-size: 1.12rem; color: var(--text);
}

.landing-hero-grid {
  max-width: 1040px; margin: 0 auto; padding: 50px 24px 70px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
}
.landing-hero-content { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; text-align: left; }
.hero-eyebrow {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.3); padding: 6px 16px; border-radius: 999px;
}
.landing-hero-content h1 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  font-size: 2.6rem; margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em;
}
.accent-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.03rem; color: var(--text-muted); max-width: 480px; margin: 0; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero-note { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

/* --- Hero telefon mockup: gercek musteri menusunun kucultulmus onizlemesi --- */
.phone-mockup { justify-self: center; }
.phone-frame {
  width: 250px; border-radius: 30px; background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); padding: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  animation: floatGlow 6s ease-in-out infinite;
}
.phone-screen { background: var(--bg); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.mockup-header {
  background: var(--surface); padding: 14px 16px; display: flex; justify-content: space-between;
  align-items: center; border-bottom: 1px solid var(--line);
}
.mockup-header strong { font-size: 0.85rem; }
.mockup-table-badge { background: var(--line); color: var(--text); font-size: 0.66rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.mockup-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.mockup-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
}
.mockup-item-name { font-size: 0.8rem; font-weight: 600; }
.mockup-item-price { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.mockup-add-btn {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0a0e14;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.9rem;
}
.mockup-cart-bar {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface-2); padding: 12px 14px; border-top: 1px solid var(--line);
}
.mockup-cart-info { font-size: 0.7rem; color: var(--text-muted); }
.mockup-cart-btn { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #0a0e14; font-size: 0.72rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; }

.landing-steps, .landing-features, .landing-pricing, .landing-compare, .landing-faq {
  max-width: 1040px; margin: 0 auto; padding: 56px 24px;
}
.landing-steps h2, .landing-features h2, .landing-pricing h2, .landing-compare h2, .landing-faq h2 {
  font-family: 'Space Grotesk', 'Manrope', sans-serif;
  text-align: center; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 34px;
}

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 22px; text-align: center; animation: fadeInUp 0.4s ease both;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0e14; font-weight: 800; margin-bottom: 14px;
}
.step-card h3 { margin: 0 0 8px; font-size: 1.03rem; }
.step-card p { margin: 0; color: var(--text-muted); font-size: 0.87rem; line-height: 1.55; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.15s ease, transform 0.15s ease; animation: fadeInUp 0.4s ease both;
}
.feature-card:hover { border-color: rgba(var(--accent-rgb), 0.35); transform: translateY(-2px); }
.feature-icon { font-size: 1.4rem; }
.feature-card h3 { margin: 0; font-size: 0.97rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.85rem; line-height: 1.55; }
.feature-grid .feature-card:nth-child(2) { animation-delay: 0.05s; }
.feature-grid .feature-card:nth-child(3) { animation-delay: 0.1s; }
.feature-grid .feature-card:nth-child(4) { animation-delay: 0.15s; }
.feature-grid .feature-card:nth-child(5) { animation-delay: 0.2s; }
.feature-grid .feature-card:nth-child(6) { animation-delay: 0.25s; }
.feature-grid .feature-card:nth-child(7) { animation-delay: 0.3s; }
.feature-grid .feature-card:nth-child(8) { animation-delay: 0.35s; }

.landing-pricing .plan-card { max-width: 420px; margin: 0 auto; }

/* --- Kagit-kalem vs Qarson karsilastirma --- */
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.compare-card { border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); }
.compare-card.old { background: var(--surface); opacity: 0.8; }
.compare-card.new { background: var(--surface); border-color: rgba(var(--accent-rgb), 0.4); position: relative; overflow: hidden; }
.compare-card.new::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.compare-card h3 { margin: 0 0 16px; font-size: 1rem; }
.compare-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.compare-list li { font-size: 0.86rem; padding-left: 26px; position: relative; color: var(--text-muted); line-height: 1.5; }
.compare-list.bad li::before { content: '✕'; position: absolute; left: 0; color: var(--time); font-weight: 800; }
.compare-list.good li::before { content: '✓'; position: absolute; left: 0; color: var(--money); font-weight: 800; }
.compare-list.good li { color: var(--text); }

/* --- SSS akordiyon --- */
.landing-faq { max-width: 760px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 4px 18px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 0.92rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '⌄'; color: var(--text-muted); transition: transform 0.2s ease; font-weight: 400; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-answer { margin: 0; padding: 0 0 16px; color: var(--text-muted); font-size: 0.86rem; line-height: 1.6; }

/* --- Kapanis CTA --- */
.landing-final-cta {
  max-width: 640px; margin: 0 auto; padding: 50px 24px 60px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.landing-final-cta h2 { font-size: 1.5rem; margin: 0; }
.landing-final-cta p { color: var(--text-muted); margin: 0; }

.landing-footer {
  text-align: center; padding: 40px 24px 90px; color: var(--text-muted); font-size: 0.8rem;
  display: flex; flex-direction: column; gap: 10px;
}
.landing-footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.landing-footer-links a { color: var(--text-muted); }

/* --- Mobilde ekrana yapisik CTA - masaustunde gizli, nav zaten CTA tasiyor --- */
.mobile-sticky-cta { display: none; }

@media (max-width: 820px) {
  .landing-hero-grid { grid-template-columns: 1fr; text-align: center; padding: 40px 20px 50px; }
  .landing-hero-content { align-items: center; text-align: center; }
  .hero-cta { justify-content: center; }
  .phone-mockup { order: -1; }
}

@media (max-width: 640px) {
  .landing-nav { padding: 18px 20px; flex-wrap: wrap; gap: 10px; }
  .landing-hero-content h1 { font-size: 2rem; }
  .landing-nav-actions .btn-lg { display: none; }
  body.landing-page { padding-bottom: 76px; }
  .mobile-sticky-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
    padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .mobile-sticky-cta a { flex: 1; text-align: center; }
}

/* ==========================================================================
   PLATFORM ADMIN PANELI - gizli slug uzerinden erisilen, isletmelerden tamamen
   izole operator arayuzu. Ayni tema degiskenlerini kullanir, sabit onyx.
   ========================================================================== */

.totp-setup-card { max-width: 420px; align-items: center; text-align: center; }
.totp-qr { border-radius: var(--radius-md); background: #fff; padding: 10px; }
.totp-secret-fallback { font-size: 0.78rem; color: var(--text-muted); word-break: break-all; }
.totp-secret-fallback code { background: var(--surface-2); padding: 2px 8px; border-radius: 6px; color: var(--text); }

.admin-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 12px;
}
.admin-logo { font-weight: 800; font-size: 1.15rem; }
.admin-logo-tag {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent); background: rgba(var(--accent-rgb), 0.12); padding: 2px 8px;
  border-radius: 999px; margin-left: 6px; vertical-align: middle;
}
.admin-nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; transition: all 0.15s ease;
}
.admin-nav-links a:hover { color: var(--text); background: var(--surface-2); }
.admin-nav-links a.active { color: var(--text); background: var(--surface-2); border: 1px solid var(--line); }

.admin-shell { padding: 24px 28px 60px; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.admin-page-title { font-size: 1.3rem; margin: 0; }

.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.admin-stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
  animation: fadeInUp 0.35s ease both; transition: transform 0.15s ease, border-color 0.15s ease;
}
.admin-stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: 0.7;
}
.admin-stat-card:hover { transform: translateY(-2px); border-color: rgba(var(--accent-rgb), 0.35); }
.admin-stat-grid .admin-stat-card:nth-child(2) { animation-delay: 0.05s; }
.admin-stat-grid .admin-stat-card:nth-child(3) { animation-delay: 0.1s; }
.admin-stat-grid .admin-stat-card:nth-child(4) { animation-delay: 0.15s; }
.admin-stat-icon { font-size: 1.3rem; line-height: 1; }
.admin-stat-label { font-size: 0.76rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-stat-value { font-size: 1.7rem; font-weight: 800; }
.admin-stat-value-sm { font-size: 1rem; font-weight: 700; }

.admin-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.admin-section {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.15s ease;
}
.admin-section:hover { border-color: rgba(var(--accent-rgb), 0.2); }
.admin-section h2 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.admin-table-wrap { overflow-x: auto; }
.admin-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; font-size: 0.88rem; }
.admin-actions { display: flex; gap: 10px; }

/* Deneme/askidaki/donen abonelikler icin ucuncu renk - aktif(yesil)/pasif(kirmizi)
   ikilisinin disinda, notr sarimsi bir "beklemede" tonu. */
.badge-trial { background: rgba(251, 191, 36, 0.12); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }

.admin-alert-section { border-color: rgba(251, 191, 36, 0.3); }
.admin-alert-section h2 { color: #fbbf24; }
.days-left-tag { font-size: 0.76rem; font-weight: 700; color: #fbbf24; background: rgba(251, 191, 36, 0.12); padding: 3px 9px; border-radius: 999px; }

.admin-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-search-input {
  flex: 1; min-width: 200px; background: var(--input-bg); border: 1px solid var(--line);
  color: var(--text); border-radius: var(--radius-md); padding: 10px 14px; font-size: 0.88rem;
}
.admin-filter-select {
  background: var(--input-bg); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-md); padding: 10px 14px; font-size: 0.88rem;
}
.admin-filter-count { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }

.admin-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-quick-label { font-size: 0.8rem; }
.admin-subscription-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.admin-subscription-form .field { min-width: 160px; }
.admin-subscription-form select, .admin-subscription-form input[type="date"] { width: 100%; }

@media (max-width: 640px) {
  .admin-topbar { padding: 14px 18px; }
  .admin-shell { padding: 18px 16px 50px; }
  .admin-filter-bar { flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   TEMALAR - body[data-theme="..."] ile ana renk paletini degistirir.
   Para (yesil) ve zaman/uyari (kirmizi) anlamlari her temada sabit kalir,
   sadece marka rengi/arka plan/yuzey tonlari degisir.
   ========================================================================== */

body[data-theme="ember"] {
  --bg: #150e08; --surface: #1f150d; --surface-2: #291b10; --input-bg: #120c07;
  --line: #3d2a18; --text: #f5ede2; --text-muted: #b8a184;
  --accent: #f97316; --accent-2: #fbbf24;
  --accent-rgb: 249, 115, 22; --surface-rgb: 31, 21, 13;
  --money: #4ade80; --time: #f43f5e;
  --radius-lg: 16px; --radius-md: 10px;
}

body[data-theme="ocean"] {
  --bg: #050f16; --surface: #0b1c29; --surface-2: #0f2536; --input-bg: #081521;
  --line: #1c3a4f; --text: #e6f4f9; --text-muted: #8fb0bd;
  --accent: #22d3ee; --accent-2: #3b82f6;
  --accent-rgb: 34, 211, 238; --surface-rgb: 11, 28, 41;
  --money: #34d399; --time: #fb7185;
  --radius-lg: 10px; --radius-md: 8px;
}

body[data-theme="emerald"] {
  --bg: #05120c; --surface: #0b1f15; --surface-2: #10291d; --input-bg: #081a11;
  --line: #1e3d2c; --text: #e8f6ee; --text-muted: #8fb5a0;
  --accent: #10b981; --accent-2: #84cc16;
  --accent-rgb: 16, 185, 129; --surface-rgb: 11, 31, 21;
  --money: #4ade80; --time: #f87171;
  --radius-lg: 18px; --radius-md: 12px;
}

body[data-theme="royal"] {
  --bg: #0f0a15; --surface: #1a1220; --surface-2: #221a2c; --input-bg: #150e1c;
  --line: #382a44; --text: #f2ebf6; --text-muted: #ac99ba;
  --accent: #a855f7; --accent-2: #eab308;
  --accent-rgb: 168, 85, 247; --surface-rgb: 26, 18, 32;
  --money: #4ade80; --time: #fb7185;
  --radius-lg: 20px; --radius-md: 12px;
}

body[data-theme="mono"] {
  --bg: #0a0a0a; --surface: #141414; --surface-2: #1c1c1c; --input-bg: #101010;
  --line: #2c2c2c; --text: #f2f2f2; --text-muted: #9a9a9a;
  --accent: #e5e5e5; --accent-2: #a3a3a3;
  --accent-rgb: 229, 229, 229; --surface-rgb: 20, 20, 20;
  --money: #22c55e; --time: #ef4444;
  --radius-lg: 8px; --radius-md: 6px;
}
body[data-theme="mono"] .card button, body[data-theme="mono"] .btn-link,
body[data-theme="mono"] .item-form button, body[data-theme="mono"] .pay-btn,
body[data-theme="mono"] .deliver-btn, body[data-theme="mono"] .order-btn,
body[data-theme="mono"] .add-configurable-btn, body[data-theme="mono"] .zrapor-print-btn {
  color: #0a0a0a;
}

/* Cafe/restoran temalari */

body[data-theme="espresso"] {
  --bg: #140d09; --surface: #1f150e; --surface-2: #291c11; --input-bg: #100a06;
  --line: #3d2a1a; --text: #f3e9de; --text-muted: #b8a48c;
  --accent: #d4a574; --accent-2: #a0522d;
  --accent-rgb: 212, 165, 116; --surface-rgb: 31, 21, 14;
  --money: #4ade80; --time: #f87171;
  --radius-lg: 14px; --radius-md: 10px;
}

body[data-theme="bistro"] {
  --bg: #150609; --surface: #210a10; --surface-2: #2b0e15; --input-bg: #120507;
  --line: #4a1622; --text: #f5e6ea; --text-muted: #b98d98;
  --accent: #d4af37; --accent-2: #8b1e3f;
  --accent-rgb: 212, 175, 55; --surface-rgb: 33, 10, 16;
  --money: #4ade80; --time: #fb7185;
  --radius-lg: 8px; --radius-md: 6px;
}

body[data-theme="zeytin"] {
  --bg: #12100a; --surface: #1c1811; --surface-2: #262015; --input-bg: #0f0d09;
  --line: #3a3220; --text: #f0ecdf; --text-muted: #b3ab93;
  --accent: #d2691e; --accent-2: #8a9a5b;
  --accent-rgb: 210, 105, 30; --surface-rgb: 28, 24, 17;
  --money: #4ade80; --time: #f87171;
  --radius-lg: 16px; --radius-md: 10px;
}

body[data-theme="firin"] {
  --bg: #180f10; --surface: #241619; --surface-2: #301c20; --input-bg: #140d0e;
  --line: #472a30; --text: #f7e9ec; --text-muted: #c2a0a8;
  --accent: #f4a6c1; --accent-2: #e8a33d;
  --accent-rgb: 244, 166, 193; --surface-rgb: 36, 22, 25;
  --money: #4ade80; --time: #fb7185;
  --radius-lg: 22px; --radius-md: 14px;
}

/* --- Fotograftan menu aktarma --- */
.photo-import-cta {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface-2); border: 1px dashed var(--accent);
  border-radius: var(--radius-lg); padding: 16px 18px; margin-bottom: 18px;
  text-decoration: none; color: var(--text); transition: border-style 0.15s ease, transform 0.15s ease;
}
.photo-import-cta:hover { border-style: solid; transform: translateY(-1px); }
.photo-import-cta strong { display: block; font-size: 0.95rem; }
.photo-import-cta .muted { font-size: 0.78rem; display: block; margin-top: 2px; }
.photo-import-icon { font-size: 1.8rem; line-height: 1; }

.photo-scan-block { max-width: 480px; }
.photo-upload-form { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.photo-drop-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; cursor: pointer;
  background: var(--input-bg); border: 2px dashed var(--line); border-radius: var(--radius-lg);
  padding: 32px 16px; min-height: 160px; transition: border-color 0.15s ease;
}
.photo-drop-zone:hover { border-color: var(--accent); }
.photo-drop-icon { font-size: 2.2rem; display: block; margin-bottom: 4px; }
.photo-preview { max-width: 100%; max-height: 320px; border-radius: var(--radius-md); object-fit: contain; }
.photo-scan-hint { text-align: center; }

.photo-review-list { display: flex; flex-direction: column; gap: 12px; }
.photo-review-row {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 14px;
}
.photo-review-row .form-grid { flex: 1; }
.photo-review-check { padding-top: 10px; }
.photo-review-check input { width: 18px; height: 18px; cursor: pointer; }
.photo-review-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; }

/* ==========================================================================
   VITRIN (LANDING) SAYFASI - acik/koyu tema
   Dashboard/musteri menusundeki 10 renkli temadan tamamen ayri, sadece
   body.landing-page kapsaminda calisir. Varsayilan koyu, data-landing-theme
   ile aciga geciyor (localStorage'da saklanir, bkz. landing.ejs script).
   Daha ciddi/kurumsal bir görünüm icin marka rengi tek bir bakir/altin
   tonuna indirgendi, koseler biraz sivriltildi, baslik fontu Space Grotesk.
   ========================================================================== */

body.landing-page {
  --bg: #0a0b0d; --surface: #131417; --surface-2: #191b1f; --input-bg: #0d0e11;
  --line: #24262b; --text: #f2f1ed; --text-muted: #94918a;
  --accent: #c9a35f; --accent-2: #93744a;
  --accent-rgb: 201, 163, 95; --surface-rgb: 19, 20, 23;
  --radius-lg: 12px; --radius-md: 8px;
}

html[data-landing-theme="light"] body.landing-page {
  --bg: #f7f6f2; --surface: #ffffff; --surface-2: #f0eee7; --input-bg: #ffffff;
  --line: #e1ddd2; --text: #17181b; --text-muted: #5e5b53;
  --accent: #9c7a3f; --accent-2: #7a5f31;
  --accent-rgb: 156, 122, 63; --surface-rgb: 255, 255, 255;
  --radius-lg: 12px; --radius-md: 8px;
}

html[data-landing-theme="light"] body.landing-page .phone-frame { box-shadow: 0 30px 60px -25px rgba(23, 24, 27, 0.18); }
html[data-landing-theme="light"] body.landing-page .mockup-add-btn,
html[data-landing-theme="light"] body.landing-page .mockup-cart-btn,
html[data-landing-theme="light"] body.landing-page .step-num { color: #ffffff; }

.landing-logo-mark[data-mark="dark"] { display: none; }
html[data-landing-theme="light"] body.landing-page .landing-logo-mark[data-mark="light"] { display: none; }
html[data-landing-theme="light"] body.landing-page .landing-logo-mark[data-mark="dark"] { display: block; }
