/* =========================================================
   Moyka+ — ortaq dizayn sistemi
   ========================================================= */

:root {
  --bg: #0B0D11;
  --surface: #13161C;
  --surface-2: #1A1E25;
  --surface-3: #222731;
  --border: #262B34;
  --border-strong: #353C48;

  --text: #ECEEF2;
  --text-2: #B3BAC5;
  --text-dim: #7E8796;

  --accent: #FF6B47;
  --accent-hover: #FF8566;
  --accent-ink: #1C0F09;
  --accent-soft: rgba(255, 107, 71, 0.12);

  --ok: #3FD9B8;
  --ok-soft: rgba(63, 217, 184, 0.12);
  --warn: #F0AC3C;
  --warn-soft: rgba(240, 172, 60, 0.12);
  --danger: #F2555A;
  --danger-soft: rgba(242, 85, 90, 0.12);

  --radius: 14px;
  --radius-sm: 9px;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0; }

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

button, input, select, textarea { font: inherit; color: inherit; }

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

.is-hidden { display: none !important; }
.muted { color: var(--text-dim); }
.text-2 { color: var(--text-2); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }

/* ---------- boot screen ---------- */

.boot {
  position: fixed; inset: 0;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
body:not(.is-booting) .boot { display: none; }

.spinner {
  width: 22px; height: 22px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- header ---------- */

.app-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 17, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.app-header-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--text); }
.brand-mark b { color: var(--accent); font-weight: 700; }
.brand-role {
  font-size: 12px; font-weight: 500; color: var(--text-2);
  border: 1px solid var(--border-strong); border-radius: 999px; padding: 2px 10px;
}

.header-user { display: flex; align-items: center; gap: 14px; }
.header-email { font-size: 13px; color: var(--text-dim); }

/* ---------- layout ---------- */

.container { max-width: 1240px; margin: 0 auto; padding: 32px 28px 80px; }

.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 28px;
}
.page-head p { color: var(--text-dim); margin-top: 6px; }

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.stat-label { font-size: 12.5px; color: var(--text-dim); }
.stat-value { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin-top: 6px; line-height: 1.1; }
.stat-value small { font-size: 14px; font-weight: 500; color: var(--text-dim); margin-left: 4px; }
.stat-hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }

/* ---------- card ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.search {
  position: relative;
  display: flex; align-items: center;
}
.search svg { position: absolute; left: 11px; color: var(--text-dim); pointer-events: none; }
.search input { padding-left: 34px; width: 260px; }

.segmented {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.segmented button {
  border: none; background: transparent; color: var(--text-dim);
  font-size: 13px; font-weight: 500;
  padding: 5px 12px; border-radius: 6px; cursor: pointer;
}
.segmented button.is-active { background: var(--surface-3); color: var(--text); }

/* ---------- table ---------- */

.table-wrap { overflow-x: auto; }

table.data { width: 100%; border-collapse: collapse; }
table.data th {
  text-align: left;
  font-size: 12px; font-weight: 500; color: var(--text-dim);
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { cursor: pointer; transition: background .12s ease; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }

.cell-title { font-weight: 600; color: var(--text); }
.cell-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }

.empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--text-dim);
}
.empty h3 { color: var(--text); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ---------- badges ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  background: var(--surface-3); color: var(--text-2);
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-secondary { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(242,85,90,.25); }
.btn-danger:hover:not(:disabled) { background: rgba(242,85,90,.2); }
.btn-sm { padding: 6px 11px; font-size: 12.5px; }
.btn-icon { padding: 7px; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute;
  width: 14px; height: 14px;
  border: 2px solid currentColor; border-color: var(--accent-ink) transparent var(--accent-ink) transparent;
  border-radius: 50%; animation: spin .7s linear infinite;
}
.btn-secondary.is-loading::after, .btn-danger.is-loading::after { border-color: var(--text) transparent var(--text) transparent; }

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-dim); }

.input, .select, .textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-size: 14px;
  color: var(--text);
  transition: border-color .12s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input:hover, .select:hover, .textarea:hover { border-color: #434B59; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); }
.input[readonly] { color: var(--text-2); background: var(--surface); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237E8796' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; }
.input-sm { padding: 6px 9px; font-size: 13px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }

.form-section + .form-section { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); }
.form-section-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; }

.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

.form-error {
  font-size: 13px; color: var(--danger);
  background: var(--danger-soft);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}

/* ---------- toggle ---------- */

.toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track {
  position: relative; flex-shrink: 0;
  width: 36px; height: 21px; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--border-strong);
  transition: background .15s ease, border-color .15s ease;
}
.toggle-track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--text-dim);
  transition: transform .15s ease, background .15s ease;
}
.toggle input:checked + .toggle-track { background: var(--ok-soft); border-color: var(--ok); }
.toggle input:checked + .toggle-track::after { transform: translateX(15px); background: var(--ok); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle-text { font-size: 13px; color: var(--text-2); }

/* ---------- modal ---------- */

.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(5, 6, 9, 0.72);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 7vh 20px 20px;
  overflow-y: auto;
}
.modal {
  width: 100%; max-width: 600px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.modal-sm { max-width: 420px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.modal-head p { color: var(--text-dim); margin-top: 4px; font-size: 13px; }
.modal-body { padding: 20px 24px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.modal-foot .fee-preview { margin-right: auto; align-self: center; font-size: 13px; color: var(--text-2); }
.modal-foot .fee-preview b { color: var(--text); font-family: var(--font-display); }

/* ---------- drawer ---------- */

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(5, 6, 9, 0.6);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160;
  width: min(680px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border-strong);
  display: flex; flex-direction: column;
  box-shadow: -20px 0 60px rgba(0,0,0,.35);
}
.drawer-head { padding: 22px 24px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.drawer-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.drawer-sub { color: var(--text-dim); margin-top: 4px; font-size: 13px; }

.tabs { display: flex; gap: 4px; padding: 18px 24px 0; border-bottom: 1px solid var(--border); }
.tab {
  border: none; background: transparent;
  padding: 10px 12px;
  font-size: 13.5px; font-weight: 500; color: var(--text-dim);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); border-bottom-color: var(--accent); }

.drawer-body { flex: 1; overflow-y: auto; padding: 22px 24px 40px; }
.drawer-foot { padding: 14px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.panel-head p { color: var(--text-dim); font-size: 13px; margin-top: 3px; }

/* ---------- editable rows ---------- */

.rows { display: flex; flex-direction: column; gap: 10px; }
.row-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 10px;
  align-items: center;
  transition: border-color .12s ease;
}
.row-item.is-dirty { border-color: var(--accent); }
.row-box { grid-template-columns: 38px minmax(0, 1fr) auto auto; }
.row-box .row-extra { grid-column: 1 / -1; }
.row-box .row-label .badge { margin-left: 6px; vertical-align: middle; }
.row-service { grid-template-columns: minmax(0, 1.4fr) 90px 90px auto auto; }
.row-service .row-extra { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.row-num {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
}
.row-actions { display: flex; gap: 6px; }
.row-label { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; display: block; }

/* ---------- info list ---------- */

.info-list { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: 13.5px; }
.info-list dt { color: var(--text-dim); }
.info-list dd { margin: 0; color: var(--text); word-break: break-word; }

.callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-2);
}
.callout.danger { border-color: rgba(242,85,90,.3); background: rgba(242,85,90,.06); }
.callout-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.callout h4 { font-size: 14px; color: var(--text); margin-bottom: 3px; }

.cred-box {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 16px;
  display: grid; grid-template-columns: 90px 1fr; gap: 10px 14px;
  font-size: 14px;
}
.cred-box dt { color: var(--text-dim); }
.cred-box dd { margin: 0; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; color: var(--text); word-break: break-all; }

/* ---------- toast ---------- */

.toasts {
  position: fixed; right: 20px; bottom: 20px; z-index: 500;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 260px; max-width: 380px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--ok);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13.5px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  animation: toast-in .18s ease-out;
}
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--accent); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- login ---------- */

.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
}
.auth-card .brand-mark { font-size: 24px; }
.auth-card h1 { font-size: 20px; margin-top: 22px; }
.auth-card > p { color: var(--text-dim); margin-top: 6px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.auth-form .btn { width: 100%; padding: 11px 16px; margin-top: 4px; }
.auth-links { margin-top: 16px; text-align: center; font-size: 13px; }
.auth-links button { background: none; border: none; color: var(--accent); cursor: pointer; font-weight: 500; }

/* ---------- page tabs ---------- */

.page-tabs { padding: 0; margin-bottom: 22px; }
table.data.static tbody tr { cursor: default; }
.plate { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; }
.plate-input { text-transform: uppercase; font-family: var(--font-display); letter-spacing: 0.05em; }

/* ---------- owner box grid ---------- */

.bx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.bx {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 260px;
  position: relative;
  overflow: hidden;
}
.bx::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--ok);
}
.bx-busy::before { background: var(--warn); }
.bx-reserved::before { background: var(--accent); }
.bx.is-overdue { border-color: rgba(242,85,90,.45); }
.bx.is-overdue::before { background: var(--danger); }

.bx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bx-head h3 { font-size: 16px; }

.bx-idle {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-dim); text-align: center; font-size: 13px;
}
.bx-idle svg { color: #3A4150; }

.bx-timer { display: flex; align-items: baseline; gap: 10px; }
.bx-countdown {
  font-family: var(--font-display);
  font-size: 38px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.bx.is-overdue .bx-countdown { color: var(--danger); }
.bx-timer-label { color: var(--text-dim); font-size: 13px; }

.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--warn); border-radius: 999px; transition: width .9s linear; }
.bx.is-overdue .progress > span { background: var(--danger); }

.bx-meta { display: grid; grid-template-columns: 70px 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.bx-meta dt { color: var(--text-dim); }
.bx-meta dd { margin: 0; color: var(--text); }

.bx-actions { display: flex; gap: 8px; margin-top: auto; }
.bx-actions .btn { flex: 1; }

/* ---------- service picker (check-in) ---------- */

.svc-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.svc-option {
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 3px;
  transition: border-color .12s ease, background .12s ease;
}
.svc-option:hover { border-color: #434B59; }
.svc-option.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.svc-name { font-weight: 600; font-size: 14px; }
.svc-price { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.svc-meta { font-size: 12px; color: var(--text-dim); }

.qr-wrap {
  display: flex; justify-content: center;
  background: #FFFFFF;
  border-radius: 14px;
  padding: 18px;
}
.qr-wrap img, .qr-wrap canvas { display: block; }

/* ---------- customer watch page ---------- */

.watch-body { background: var(--bg); }
.watch {
  max-width: 480px; margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px max(32px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 18px;
}
.watch-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0; }
.head-links { display: flex; gap: 14px; align-items: center; }
.watch-title h1 { font-size: 24px; margin-top: 2px; }
#w-content { display: flex; flex-direction: column; gap: 18px; }
#w-content.is-hidden { display: none; }

.live-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.live-video {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
}
.live-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.live-frame.is-hidden { display: none; }
.live-badge { z-index: 2; }
.live-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-dim); font-size: 13px; text-align: center; padding: 0 24px; }
.live-placeholder svg { color: #3A4150; }
.live-badge {
  position: absolute; top: 12px; left: 12px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(11,13,17,.72);
  padding: 5px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
}
.live-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.live-body { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.live-status { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.live-status-title { font-size: 17px; font-weight: 600; }
.live-countdown {
  font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--warn);
}
.live-countdown.is-overdue { font-size: 14px; color: var(--text-2); }
.is-done .live-status-title { color: var(--ok); }
.is-done .progress > span { background: var(--ok); }

.other-boxes { padding: 16px 18px; }
.other-head { font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
.other-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.other-row:last-child { border-bottom: none; }

/* ---------- admin: istifadəçilər, jurnal ---------- */

.stats.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chart-card { padding: 18px 20px 12px; }
.chart-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.chart svg { display: block; max-height: 190px; }

.log-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto 120px; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--border); }
.log-row:last-child { border-bottom: none; }
.log-time { display: flex; flex-direction: column; line-height: 1.25; }
.log-time b { font-family: var(--font-display); font-size: 15px; }
.log-time span { font-size: 11.5px; color: var(--text-dim); }

.ud-line { display: flex; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.ud-line:last-child { border-bottom: none; }
.ud-line b { color: var(--text); min-width: 120px; font-weight: 500; }

/* ---------- admin: xəritə seçicisi ---------- */

.geo-picker { height: 260px; border-radius: 14px; overflow: hidden; border: 1px solid var(--border-strong); background: #0F1318; }
.geo-picker .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.93) contrast(.88) saturate(.5); }
.geo-picker .leaflet-control-attribution { background: rgba(11,13,17,.75); color: var(--text-dim); font-size: 10px; }
.geo-picker .leaflet-control-attribution a { color: var(--text-2); }

/* ---------- rezervasiya ---------- */

.tab-count {
  display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px;
  border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.tab-count.is-hidden { display: none; }

.bx-next { font-size: 12.5px; color: var(--text-2); background: var(--accent-soft); border-radius: 8px; padding: 6px 10px; }
.bx-next b { color: var(--accent); }

.res-link-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.res-link-card h4 { font-size: 14px; margin-bottom: 3px; }

.res-day { padding: 12px 16px 6px; font-size: 12px; font-weight: 600; color: var(--text-dim); text-transform: capitalize; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.res-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.res-row:last-child { border-bottom: none; }
.res-row.is-past { opacity: .55; }
.res-time { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.res-name { font-weight: 600; }
.res-name a { font-weight: 400; font-size: 13px; margin-left: 6px; }
.res-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.res-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.reserve .step { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.reserve .step + .step { margin-top: 16px; }
.reserve .step h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.reserve .step .btn { width: 100%; }
.reserve .step .segmented { align-self: flex-start; }
.reserve .step .segmented button { padding: 7px 16px; }
.step-num { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.reserve section + section { margin-top: 0; }
.reserve #r-book { display: flex; flex-direction: column; }
.reserve #r-book > .step { margin-top: 16px; }
.reserve #r-book > .watch-title { margin-bottom: 2px; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.time-btn {
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 10px 0; font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--text); cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.time-btn:hover { border-color: #434B59; }
.time-btn.is-selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.pick-summary { display: flex; flex-direction: column; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font-size: 14px; }

.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats.six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .log-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .log-row > .muted { display: none; }
  .res-row { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .res-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .container { padding: 22px 16px 60px; }
  .app-header-inner { padding: 12px 16px; }
  .header-email { display: none; }
  .page-head { flex-direction: column; align-items: stretch; }
  .card-toolbar { flex-direction: column; align-items: stretch; }
  .search input { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .row-box { grid-template-columns: 38px 1fr; }
  .row-box > *:nth-child(n+3) { grid-column: 1 / -1; }
  .row-service { grid-template-columns: 1fr 1fr; }
  .row-service > *:first-child { grid-column: 1 / -1; }
  .info-list { grid-template-columns: 1fr; gap: 2px; }
  .info-list dd { margin-bottom: 10px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 22px; }
  .bx-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- loqo ---------- */
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: block; }
