:root {
  --brand: #9a3412;
  --on-brand: #fff;
  --brand-soft: color-mix(in srgb, var(--brand) 11%, transparent);
  --brand-ink: var(--brand);
  --bg: #f5f5f4;
  --surface: #ffffff;
  --surface-2: #f4f3f1;
  --surface-3: #ebe9e6;
  --text: #1c1917;
  --muted: #736d67;
  --line: #e7e5e2;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --info: #2563eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 1px 3px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.22);
  --r: 14px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e0d; --surface: #1a1918; --surface-2: #222120; --surface-3: #2c2a28; --text: #f5f3f0; --muted: #a29c95; --line: #2e2c29;
    --brand-ink: color-mix(in srgb, var(--brand) 40%, #fff); --brand-soft: color-mix(in srgb, var(--brand-ink) 15%, transparent);
    --shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0e0d; --surface: #1a1918; --surface-2: #222120; --surface-3: #2c2a28; --text: #f5f3f0; --muted: #a29c95; --line: #2e2c29;
  --brand-ink: color-mix(in srgb, var(--brand) 40%, #fff); --brand-soft: color-mix(in srgb, var(--brand-ink) 15%, transparent);
  --shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
svg { flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.boot { position: fixed; inset: 0; display: grid; place-items: center; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Giriş ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 600px at 10% -10%, var(--brand-soft), transparent), var(--bg); }
.login-card { width: 100%; max-width: 380px; background: var(--surface); padding: 32px 28px; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.login-logo { width: 48px; height: 48px; margin-bottom: 16px; }
.login-card h1 { margin: 0 0 4px; font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 26px; letter-spacing: -.015em; }
.login-card p { margin: 0 0 22px; }
.login-error { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; font-weight: 600; font-size: 13px; }

/* ---------- İskelet ---------- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 250px; flex: none; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; z-index: 40;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; text-decoration: none; }
.side-brand img { width: 34px; height: 34px; border-radius: 10px; }
.side-brand b { display: block; font-size: 15px; letter-spacing: -.01em; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-brand small { color: var(--muted); font-size: 12px; }
.nav { flex: 1; overflow-y: auto; padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 600;
  transition: background .15s, color .15s;
}
.nav a svg { width: 18px; height: 18px; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--text); }
.nav a.active svg { color: var(--brand-ink); }
.nav .nav-lic { margin-left: auto; }
.nav .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--brand); color: var(--on-brand); font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }
.nav .sep { height: 1px; background: var(--line); margin: 8px 12px; }
.side-foot { border-top: 1px solid var(--line); padding: 12px; display: flex; align-items: center; gap: 8px; }
.user-chip { flex: 1; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 10px; text-align: left; min-width: 0; }
.user-chip:hover { background: var(--surface-2); }
.user-chip b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; }
.user-chip small { color: var(--muted); font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 14px 28px; min-height: 64px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { margin: 0; font-size: 19px; letter-spacing: -.015em; flex: 1; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 6px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live.on i { background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.view { padding: 24px 28px 60px; max-width: 1400px; width: 100%; }
#alerts:empty { display: none; }
#alerts { padding: 16px 28px 0; }
.topbar .only-mobile { display: none; }
.scrim { display: none; }

@media (max-width: 900px) {
  .side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .shell.nav-open .side { transform: none; }
  .shell.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; }
  .topbar .only-mobile { display: inline-grid; }
  .topbar { padding: 10px 16px; }
  .view { padding: 16px 16px 60px; }
  #alerts { padding: 12px 16px 0; }
  .live span, #viewMenu span, #installBtn span { display: none; }
  .topbar h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---------- Temel bileşenler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 10px;
  font-weight: 700; font-size: 13.5px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); white-space: nowrap;
  text-decoration: none; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.btn.primary:hover { background: color-mix(in srgb, var(--brand) 88%, #000); }
.btn.danger { background: var(--danger); color: #fff; border-color: transparent; }
.btn.ok { background: var(--ok); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn.lg { height: 46px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: inline-grid; place-items: center; color: var(--muted); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.danger:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn.sm svg { width: 16px; height: 16px; }

.inp {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
textarea.inp { height: auto; padding: 10px 12px; resize: vertical; min-height: 70px; }
select.inp { padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
input[type="color"].inp { padding: 4px; width: 56px; cursor: pointer; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.fld > span { font-weight: 700; font-size: 13px; }
.fld > span em { font-style: normal; font-weight: 500; color: var(--muted); }
.fld .hint { font-size: 12px; color: var(--muted); }
.row { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.row-3 { display: grid; gap: 0 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.inline { display: flex; gap: 8px; align-items: center; }
.search-inp { position: relative; }
.search-inp svg { position: absolute; left: 11px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--muted); }
.search-inp .inp { padding-left: 34px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { width: 38px; height: 22px; border-radius: 11px; background: var(--surface-3); position: relative; transition: background .2s; flex: none; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + i { background: var(--ok); }
.switch input:checked + i::after { transform: translateX(16px); }
.switch input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 600; font-size: 13px; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-check { position: relative; }
.pill-check input { position: absolute; opacity: 0; }
.pill-check span { display: inline-flex; gap: 5px; align-items: center; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; font-weight: 600; font-size: 12.5px; background: var(--surface); transition: all .15s; }
.pill-check input:checked + span { background: var(--brand-soft); border-color: var(--brand); }
.pill-check input:focus-visible + span { outline: 2px solid var(--brand); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 15px; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.section-title { font-size: 15px; margin: 0 0 4px; }
.section-sub { color: var(--muted); margin: 0 0 18px; font-size: 13px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar .grow { flex: 1; min-width: 200px; }
.toolbar select.inp { width: auto; min-width: 160px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.badge.danger { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }
.badge.info { background: color-mix(in srgb, var(--info) 12%, transparent); color: var(--info); }
.badge.brand { background: var(--brand-soft); color: var(--brand-ink); }

.alert { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; border: 1px solid; font-weight: 600; font-size: 13.5px; margin-bottom: 12px; }
.alert.warn { background: color-mix(in srgb, var(--warn) 9%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.alert.danger { background: color-mix(in srgb, var(--danger) 9%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); }
.alert.info { background: color-mix(in srgb, var(--info) 7%, var(--surface)); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert > span { flex: 1; }
.alert > svg { width: 18px; height: 18px; flex: none; color: var(--info); }
.alert.warn > svg { color: var(--warn); }
.alert code { font-size: 12.5px; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .em { font-size: 40px; margin-bottom: 6px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* ---------- Genel bakış ---------- */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; }
.stat { padding: 18px 20px; }
.stat .lbl { color: var(--muted); font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.stat .lbl i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-style: normal; }
.stat .lbl i svg { width: 16px; height: 16px; }
.stat .val { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--muted); font-size: 12.5px; }
.dash-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1fr); } }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 200px; padding: 20px 20px 0; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart .bar { width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--brand) 75%, transparent); min-height: 3px; transition: height .4s ease; position: relative; }
.chart .col:last-child .bar { background: var(--brand); }
.chart .col:hover .bar { background: var(--brand); }
.chart .v { font-size: 10.5px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.chart-x { display: flex; gap: 6px; padding: 8px 20px 16px; }
.chart-x span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); min-width: 0; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { padding: 5px 11px; border-radius: 8px; font-weight: 700; font-size: 12.5px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.list-rows > div { display: flex; align-items: center; gap: 12px; padding: 11px 20px; border-top: 1px solid var(--line); }
.list-rows > div:first-child { border-top: 0; }
.list-rows .rank { width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: var(--muted); flex: none; }
.list-rows .nm { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-rows .num { font-weight: 700; font-variant-numeric: tabular-nums; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.stars .off { color: var(--surface-3); }

/* ---------- Siparişler ---------- */
.calls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.call {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--surface);
  border: 1.5px solid color-mix(in srgb, var(--warn) 50%, transparent); box-shadow: var(--shadow-sm); animation: glow 1.8s ease-in-out infinite;
}
.call.bill { border-color: color-mix(in srgb, var(--info) 50%, transparent); }
.call .ic { font-size: 22px; }
.call b { display: block; font-size: 14px; }
.call small { color: var(--muted); font-size: 12px; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 14%, transparent); } }
.board { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
@media (max-width: 1100px) { .board { grid-template-columns: 1fr; } }
.lane { background: var(--surface-2); border-radius: 16px; padding: 12px; min-height: 180px; }
.lane-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; font-weight: 800; }
.lane-head .dot { width: 9px; height: 9px; border-radius: 50%; }
.lane-head .n { margin-left: auto; font-size: 12px; color: var(--muted); background: var(--surface); padding: 1px 9px; border-radius: 10px; }
.lane .empty { padding: 30px 10px; font-size: 13px; }
.ocard { background: var(--surface); border-radius: 13px; border: 1px solid var(--line); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.ocard.fresh { animation: flash 1.2s ease 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 3px var(--brand); } }
.ocard-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ocard-head b { font-size: 15px; }
.ocard-head .tbl { font-weight: 800; padding: 3px 9px; border-radius: 7px; background: var(--text); color: var(--bg); font-size: 12.5px; }
.ocard-head .ago { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.ocard-head .ago.late { color: var(--danger); }
.oitems { list-style: none; margin: 0; padding: 0; }
.oitems li { padding: 5px 0; border-top: 1px dashed var(--line); }
.oitems li:first-child { border-top: 0; }
.oitems .q { display: inline-block; min-width: 28px; font-weight: 800; color: var(--brand-ink); }
.oitems small { display: block; color: var(--muted); padding-left: 28px; font-size: 12px; }
.oitems em { display: block; padding-left: 28px; font-size: 12px; color: var(--warn); font-style: normal; font-weight: 600; }
.onote { margin-top: 8px; padding: 8px 10px; border-radius: 9px; background: color-mix(in srgb, var(--warn) 10%, transparent); font-size: 12.5px; font-weight: 600; }
.ocard-foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ocard-foot .total { font-weight: 800; font-size: 15px; margin-right: auto; }

/* ---------- Tablolar & listeler ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }

.group { margin-bottom: 22px; }
.group-head { display: flex; align-items: center; gap: 10px; margin: 0 4px 10px; }
.group-head h3 { margin: 0; font-size: 15px; }
.group-head .badge { margin-left: 2px; }
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.prow { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.prow:first-child { border-top: 0; }
.prow.dragging { opacity: .5; background: var(--surface-2); }
.prow.off .pmain, .prow.off .pthumb { opacity: .5; }
.grip { color: var(--muted); cursor: grab; display: grid; place-items: center; width: 20px; }
.grip svg { width: 16px; height: 16px; }
.pthumb { width: 52px; height: 52px; border-radius: 11px; object-fit: cover; background: var(--surface-2); flex: none; display: grid; place-items: center; font-size: 24px; }
.pmain { flex: 1; min-width: 0; }
.pmain b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pmain .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; align-items: center; }
.pmain .desc { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pprice { font-weight: 800; min-width: 80px; text-align: right; font-variant-numeric: tabular-nums; }
.pprice s { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.ptoggles { display: flex; gap: 16px; }
.ptoggles .switch { font-size: 12px; color: var(--muted); }
.pacts { display: flex; gap: 2px; }
@media (max-width: 760px) {
  .prow { flex-wrap: wrap; }
  .pmain { flex-basis: calc(100% - 140px); }
  .ptoggles { order: 5; width: 100%; padding-left: 34px; }
  .pacts { order: 6; margin-left: auto; }
  .grip { display: none; }
}

/* ---------- Masalar ---------- */
.qr-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.qr-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.qr-card .qr { background: #fff; border-radius: 12px; padding: 12px; border: 1px solid var(--line); aspect-ratio: 1; }
.qr-card .qr img { width: 100%; height: 100%; }
.qr-card.off .qr { opacity: .4; }
.qr-card .nm { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qr-card .nm b { font-size: 16px; }
.qr-card .url { font-size: 12px; color: var(--muted); word-break: break-all; font-family: ui-monospace, monospace; }
.qr-card .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.qr-card.main-qr { grid-column: span 1; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------- Ayarlar ---------- */
.settings { display: grid; gap: 20px; max-width: 920px; }
.save-bar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; gap: 10px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.toggle-list { display: grid; gap: 4px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.toggle-row:first-child { border-top: 0; }
.toggle-row b { display: block; }
.toggle-row small { color: var(--muted); }

.img-field { display: flex; gap: 14px; align-items: center; }
.img-field .prev { width: 88px; height: 88px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line); flex: none; display: grid; place-items: center; color: var(--muted); overflow: hidden; background-size: cover; background-position: center; }
.img-field .prev.wide { width: 160px; }
.img-field .prev svg { width: 24px; height: 24px; }
.img-field .ctrls { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.img-field input[type="file"] { display: none; }
.img-field.busy .prev { background-image: none !important; }
.img-field.busy .prev::after { content: ''; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }

/* Diller & çeviri */
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.lang-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.lang-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.lang-opt input { width: 16px; height: 16px; accent-color: var(--brand); }
.lang-opt span { flex: 1; min-width: 0; }
.lang-opt b { display: block; font-size: 13.5px; }
.lang-opt small { color: var(--muted); font-size: 12px; }
.lang-opt code { font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .05em; }
details.adv { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
details.adv summary { cursor: pointer; font-weight: 700; font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
details.adv p { margin: 10px 0; }
.pbar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; flex: 1; min-width: 80px; }
.pbar i { display: block; height: 100%; background: var(--brand); border-radius: 3px; transition: width .4s ease; }
.pbar.full i { background: var(--ok); }
.lang-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.lang-stat { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px; }
.num { font-variant-numeric: tabular-nums; font-weight: 700; }
.tr-list { padding: 8px 0; }
.tr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 130px; gap: 14px; align-items: start; padding: 12px 20px; border-top: 1px solid var(--line); }
.tr-row:first-child { border-top: 0; }
.tr-src small { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 3px; }
.tr-src div { font-size: 13.5px; white-space: pre-wrap; }
.tr-row textarea.inp { min-height: 38px; resize: none; overflow: hidden; font-size: 13.5px; line-height: 1.45; padding: 8px 10px; }
.tr-meta { display: flex; align-items: center; gap: 4px; padding-top: 6px; flex-wrap: wrap; }
@media (max-width: 800px) { .tr-row { grid-template-columns: 1fr; gap: 6px; } }

/* Kapak galerisi */
.gal-items { display: flex; flex-wrap: wrap; gap: 10px; }
.gal-item, .gal-add { width: 150px; height: 96px; border-radius: 12px; flex: none; }
.gal-item { position: relative; background: var(--surface-2) center / cover; border: 1px solid var(--line); cursor: grab; }
.gal-item:first-child::after { content: 'İlk'; position: absolute; left: 6px; bottom: 6px; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; }
.gal-item.dragging { opacity: .4; }
.gal-item.busy { display: grid; place-items: center; cursor: default; }
.gal-item.busy::before { content: ''; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
.gal-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; }
.gal-del svg { width: 14px; height: 14px; }
.gal-item.vid { overflow: hidden; background: #111; }
.gal-item.vid video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 11px; pointer-events: none; }
.vid-badge { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 10.5px; font-weight: 800; }
.gal-item.busy .vid-badge { position: static; background: none; color: var(--muted); }
.vid-badge svg { width: 10px; height: 10px; fill: currentColor; }
.gal-add { border: 1.5px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-weight: 700; font-size: 12.5px; background: var(--surface); }
.gal-add:hover { border-color: var(--brand); color: var(--text); }
.gal-add svg { width: 20px; height: 20px; }
.pthumb.wide { width: 84px; }
.pstats { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); text-align: right; min-width: 110px; }
.pstats b { color: var(--text); }
@media (max-width: 760px) { .pstats { order: 4; text-align: left; flex-direction: row; gap: 10px; padding-left: 34px; } }

/* Seçenek düzenleyici */
.og { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.og-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.og-head .inp { flex: 1; min-width: 130px; height: 36px; }
.oc { display: flex; gap: 6px; margin-bottom: 6px; align-items: center; }
.oc .inp { height: 34px; }
.oc .inp.price { width: 100px; flex: none; }
.link-btn { color: var(--brand-ink); font-weight: 700; font-size: 13px; padding: 4px 2px; }

/* ---------- Modal ---------- */
#modal-root .overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,10,.45); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; animation: fade .15s ease; }
.modal { width: 100%; max-width: 520px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); animation: up .2s ease; display: flex; flex-direction: column; margin: auto 0; }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-head h2 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.modal-body { padding: 18px 22px 8px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 18px; border-top: 1px solid var(--line); }
.modal-foot .left { margin-right: auto; }
.form-section { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 10px; }
.form-section:first-child { margin-top: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(12px); opacity: 0; } }

#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { background: var(--text); color: var(--bg); padding: 11px 16px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-lg); animation: up .2s ease; max-width: 360px; display: flex; gap: 8px; align-items: center; }
.toast.error { background: var(--danger); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }
@media (max-width: 600px) { #toasts { left: 16px; right: 16px; align-items: stretch; } .toast { max-width: none; } }

.fb-item { padding: 16px 20px; border-top: 1px solid var(--line); display: flex; gap: 14px; }
.fb-item:first-child { border-top: 0; }
.fb-item .body { flex: 1; min-width: 0; }
.fb-item p { margin: 6px 0 0; white-space: pre-wrap; word-break: break-word; }
.dist { display: grid; gap: 6px; }
.dist div { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; }
.dist .track { flex: 1; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.dist .fill { height: 100%; background: #f59e0b; border-radius: 4px; }

/* Menü teması seçici */
.skin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.skin-opt { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; background: var(--surface); }
.skin-opt:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.skin-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.skin-opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.skin-opt:has(input:checked)::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.skin-opt:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.skin-prev { height: 168px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.sp-hero { height: 62px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.sp-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.sp-h { font-size: 15px; line-height: 1; }
.sp-row { display: flex; align-items: center; gap: 6px; height: 14px; }
.sp-row b { width: 46px; height: 5px; border-radius: 2px; opacity: .85; flex: none; }
.sp-row em { width: 18px; height: 5px; border-radius: 2px; flex: none; }
.sp-row s { width: 16px; height: 16px; flex: none; opacity: .45; }
.sp-dots { flex: 1; border-bottom: 1.5px dotted; opacity: .6; transform: translateY(1px); }
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 1; }
.sp-grid i { display: block; }
.skin-meta { padding: 10px 12px 12px; display: grid; gap: 3px; }
.skin-meta b { font-size: 14px; }
.skin-meta small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.skin-meta a { font-size: 12px; }

/* Yeni sipariş popup'ı */
#order-alert { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 16px; }
.oa-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .2s ease; }
.oa-card {
  position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; background: var(--surface); border-radius: 20px;
  border-top: 5px solid var(--brand); box-shadow: var(--shadow-lg); padding: 22px; animation: oaIn .4s cubic-bezier(.2, 1.3, .4, 1);
}
.oa-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.oa-bell { width: 52px; height: 52px; flex: none; border-radius: 15px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; animation: oaRing 1.4s ease-in-out infinite; }
.oa-bell svg { width: 26px; height: 26px; }
.oa-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oa-title small { color: var(--brand-ink); font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; }
.oa-title b { font-size: 22px; letter-spacing: -.01em; line-height: 1.2; }
.oa-total { font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.oa-items { background: var(--surface-2); border-radius: 12px; padding: 8px 14px; max-height: 40vh; overflow-y: auto; }
.oa-more { margin-top: 12px; font-weight: 700; color: var(--brand-ink); }
.oa-actions { display: flex; gap: 10px; margin-top: 18px; }
.oa-actions .btn { flex: 1; }
@keyframes oaIn { from { transform: translateY(16px) scale(.94); opacity: 0; } }
@keyframes oaRing { 0%, 60%, 100% { transform: rotate(0); } 10% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 30% { transform: rotate(9deg); } 40% { transform: rotate(-6deg); } }

/* Sipariş kartları tıklanabilir, detay penceresi */
.ocard { cursor: pointer; transition: box-shadow .2s, transform .1s; }
@media (hover: hover) { .ocard:hover { box-shadow: var(--shadow); } }
.ocard.focus { box-shadow: 0 0 0 3px var(--brand); }
tr[data-oid] { cursor: pointer; }
@media (hover: hover) { tr[data-oid]:hover td { background: var(--surface-2); } }
.od-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.od-meta > div { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.od-meta small { color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.od-big { font-size: 20px; letter-spacing: -.01em; }
.od-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 16px; }
.od-steps span { padding-top: 8px; border-top: 4px solid var(--surface-3); font-size: 12px; font-weight: 700; color: var(--muted); }
.od-steps span.on { border-color: var(--ok); color: var(--text); }
.od-items td { vertical-align: top; }
.od-items tfoot td { border-top: 2px solid var(--line); border-bottom: 0; }
.od-qty { color: var(--brand-ink); font-size: 15px; }
.od-note { color: var(--warn); font-weight: 600; font-size: 12.5px; margin-top: 3px; }

/* Masalar: tek menü QR'ı + masa listesi */
.tables-wrap { display: grid; gap: 20px; }
.menu-qr-card { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.mq-qr { width: 200px; height: 200px; flex: none; background: #fff; border-radius: 16px; padding: 12px; border: 1px solid var(--line); }
.mq-qr img { width: 100%; height: 100%; display: block; }
.mq-info { flex: 1; min-width: 260px; }
.mq-url { font-family: ui-monospace, 'SF Mono', Consolas, monospace; font-size: 13px; background: var(--surface-2); padding: 9px 12px; border-radius: 9px; margin-bottom: 14px; word-break: break-all; }
.tchips { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 20px 20px; }
.tchip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tchip b { margin-right: 6px; }
.tchip.off { opacity: .6; }
@media (max-width: 600px) { .menu-qr-card { justify-content: center; text-align: center; } .mq-qr { width: 180px; height: 180px; } .mq-info .inline { justify-content: center; } }

.modal-foot .left { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.toast-action { gap: 12px; }
.toast-action button { flex: none; padding: 6px 12px; border-radius: 8px; background: rgba(255, 255, 255, .22); color: inherit; font-weight: 700; font-size: 13px; }
.toast-action button:hover { background: rgba(255, 255, 255, .32); }

/* Ürün türü seçimi ve fix menü düzenleyici */
.kind-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.kind-seg label { position: relative; cursor: pointer; }
.kind-seg input { position: absolute; opacity: 0; pointer-events: none; }
.kind-seg span { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; transition: all .15s; }
.kind-seg b { font-size: 14.5px; }
.kind-seg small { color: var(--muted); font-size: 12.5px; }
.kind-seg input:checked + span { border-color: var(--brand); background: var(--brand-soft); }
.kind-seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.course { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.course-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.course-head .inp { font-weight: 700; height: 38px; }
.ci { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.ci select.inp { flex: 1; min-width: 0; height: 36px; }
.ci .inp.price { width: 110px; flex: none; height: 36px; }
.set-value { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--brand-soft); font-size: 13.5px; }
.set-value:empty { display: none; }
.set-value svg { width: 18px; height: 18px; color: var(--brand-ink); flex: none; }
.set-value .save { color: var(--ok); }
.badge.brand { background: var(--brand-soft); color: var(--brand-ink); }
@media (max-width: 560px) { .ci .inp.price { width: 72px; } .kind-seg small { display: none; } }

/* ---------- Yapay zeka ---------- */
.section-title svg { width: 17px; height: 17px; vertical-align: -3px; color: var(--brand-ink); }
.badge svg { width: 12px; height: 12px; }
.fld-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ai-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: 12.5px; }
.ai-btn svg { width: 14px; height: 14px; }
.ai-btn[disabled] { opacity: .7; pointer-events: none; }
.spinner.sm { width: 13px; height: 13px; border-width: 2px; display: inline-block; vertical-align: -2px; }
.ai-hint { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--info) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--info) 22%, transparent); font-size: 12.5px; display: grid; gap: 4px; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 16px; border: 2px dashed var(--line); border-radius: 14px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.dropzone:hover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone svg { width: 28px; height: 28px; color: var(--brand-ink); }
.dropzone small { color: var(--muted); }
.dropzone[hidden] { display: none; }
.dz-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.dz-files .badge { font-size: 12px; padding: 4px 4px 4px 9px; }
.ai-wait { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; background: var(--surface-2); }
.ai-wait[hidden] { display: none; }
.ai-wait small { display: block; color: var(--muted); margin-top: 2px; }
.imp-cat { border: 1px solid var(--line); border-radius: 12px; margin-top: 14px; overflow: hidden; }
.imp-cat-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--surface-2); flex-wrap: wrap; }
.imp-cat-head .inp { height: 34px; font-weight: 700; }
.imp-cat-head .inp:not(.imp-icon) { flex: 1; min-width: 140px; }
.imp-icon { width: 48px; text-align: center; padding: 0; }
.imp-cat input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.imp-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); }
.imp-row > input[type=checkbox] { margin-top: 9px; }
.imp-row:has(> input:not(:checked)) .imp-main, .imp-row:has(> input:not(:checked)) .imp-price { opacity: .4; }
.imp-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.imp-main .inp { height: 34px; }
.imp-main .imp-desc { font-size: 12.5px; height: 30px; }
.imp-price { display: flex; align-items: center; gap: 4px; flex: none; }
.imp-price .inp { width: 96px; height: 34px; text-align: right; font-weight: 700; }
.imp-price.need .inp { border-color: var(--warn); }
.list-rows .num.low { color: var(--danger); }

/* ---------- Geri al bildirimi ---------- */
.undo-toast { gap: 12px; }
.undo-toast button { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 8px; background: rgba(255,255,255,.22); color: inherit; font-weight: 700; font-size: 13px; }
.undo-toast button svg { width: 14px; height: 14px; }
.undo-toast button:hover { background: rgba(255,255,255,.32); }

/* ---------- Menü sağlığı & Aksiyon Merkezi ---------- */
.health { margin-bottom: 20px; }
.health-body { display: grid; grid-template-columns: 300px 1fr; }
.health-left { padding: 20px; border-right: 1px solid var(--line); display: grid; gap: 14px; align-content: start; justify-items: center; }
.health-ring { position: relative; width: 132px; height: 132px; }
.health-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.health-ring circle { fill: none; stroke-width: 3.2; }
.health-ring .trk { stroke: var(--surface-2); }
.health-ring .val { stroke-linecap: round; transition: stroke-dasharray .6s ease; }
.health-ring.ok .val { stroke: var(--ok); } .health-ring.warn .val { stroke: var(--warn); } .health-ring.danger .val { stroke: var(--danger); }
.health-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.health-ring b { font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.health-ring small { color: var(--muted); font-weight: 600; }
.health-verdict { font-weight: 700; font-size: 14px; }
.health-parts { width: 100%; display: grid; gap: 8px; }
.health-parts > div { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; }
.health-parts .track { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.health-parts .fill { height: 100%; border-radius: 4px; }
.health-parts .fill.ok { background: var(--ok); } .health-parts .fill.warn { background: var(--warn); } .health-parts .fill.danger { background: var(--danger); }
.health-parts b { text-align: right; font-variant-numeric: tabular-nums; }
.health-actions { padding: 14px 20px 18px; min-width: 0; }
.ha-title { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 0 8px; display: flex; gap: 8px; align-items: center; }
.hact { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.hact:last-child { border-bottom: 0; }
.hact > i { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--muted); }
.hact.high > i { background: var(--danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--danger) 15%, transparent); }
.hact.medium > i { background: var(--warn); }
.hact.low > i { background: var(--info); }
.hact > div { flex: 1; min-width: 0; }
.hact b { display: block; font-size: 13.5px; }
.hact small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hact .btn { flex: none; }
@media (max-width: 860px) { .health-body { grid-template-columns: 1fr; } .health-left { border-right: 0; border-bottom: 1px solid var(--line); } .hact small { white-space: normal; } }

/* ---------- Açılır işlem menüsü ---------- */
.dd-wrap { position: relative; }
.dd { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: 300px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.dd[hidden] { display: none; }
.dd button { width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 10px; text-align: left; }
.dd button:hover { background: var(--surface-2); }
.dd button > svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--brand-ink); }
.dd b { display: block; font-size: 13.5px; }
.dd small { display: block; color: var(--muted); font-size: 12px; }
.bp-table { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.bp-table .tbl { margin: 0; }
.bp-table td.up { color: var(--danger); } .bp-table td.down { color: var(--ok); }
.err-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }

/* ---------- Happy Hour ---------- */
.disc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.disc { padding: 16px 18px; display: grid; gap: 12px; }
.disc.live { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 10%, transparent); }
.disc.off { opacity: .6; }
.disc-top { display: flex; align-items: center; gap: 14px; }
.disc-top .grow, .disc-foot .grow { flex: 1; min-width: 0; }
.disc-top b { display: block; font-size: 15px; }
.disc-top small { display: block; color: var(--muted); font-size: 12.5px; }
.disc-pct { flex: none; min-width: 64px; height: 52px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: 20px; }
.disc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.disc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.disc-meta svg { width: 14px; height: 14px; }
.disc-foot { display: flex; align-items: center; gap: 6px; }
.seg-radio { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-radio label { position: relative; }
.seg-radio input { position: absolute; opacity: 0; }
.seg-radio span { display: inline-block; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); font-weight: 600; font-size: 13px; cursor: pointer; }
.seg-radio input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.disc-products { max-height: 260px; overflow: auto; display: grid; gap: 10px; padding: 2px; }
.dp-group small { display: block; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
[data-scope] { margin: -4px 0 14px; }
[data-scope][hidden], .dp-group[hidden], .pill-check[hidden] { display: none; }

/* ---------- Yedekler ---------- */
.bk-list .bp-table { max-height: 280px; }
.bk-list td { vertical-align: middle; }

/* ---------- Otto ---------- */
.otto-fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 14px; border-radius: 24px; background: var(--text); color: var(--bg); font-weight: 800; box-shadow: var(--shadow-lg); transition: transform .15s; }
.otto-fab:hover { transform: translateY(-2px); }
.otto-fab svg { width: 20px; height: 20px; color: var(--brand-ink); }
.otto-fab[hidden] { display: none; }
.otto { position: fixed; right: 22px; bottom: 22px; z-index: 95; width: 400px; height: min(620px, calc(100vh - 44px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; animation: up .2s ease; }
.otto[hidden] { display: none; }
.otto-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--line); }
.otto-head b { display: block; }
.otto-head small { display: block; color: var(--muted); font-size: 12px; }
.otto-badge { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); flex: none; }
.otto-badge svg { width: 19px; height: 19px; }
.otto-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.otto-msg { max-width: 92%; padding: 10px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.otto-msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 5px; }
.otto-msg.me { align-self: flex-end; background: var(--text); color: var(--bg); border-bottom-right-radius: 5px; }
.otto-msg.typing { display: flex; gap: 4px; }
.otto-msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: ottoDot 1.2s infinite; }
.otto-msg.typing i:nth-child(2) { animation-delay: .15s; } .otto-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ottoDot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.otto-acts { display: grid; gap: 5px; margin-top: 10px; }
.otto-act { display: flex; align-items: flex-start; gap: 8px; padding: 7px 10px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.otto-act svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--brand-ink); }
.otto-skip { margin-top: 8px; font-size: 12px; color: var(--warn); }
.otto-btns { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.otto-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.otto-sugg button { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; text-align: left; }
.otto-sugg button:hover { border-color: var(--brand); color: var(--brand-ink); }
.otto-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.otto-form .inp { flex: 1; resize: none; min-height: 42px; padding: 10px 12px; line-height: 1.4; }
.otto-form .btn { width: 44px; height: 42px; padding: 0; display: grid; place-items: center; flex: none; }
.otto-form .btn svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .otto { right: 0; bottom: 0; width: 100%; height: 85vh; border-radius: 20px 20px 0 0; } .otto-fab { right: 16px; bottom: 16px; } }
#installBtn svg { width: 16px; height: 16px; }

/* ---------- Abonelik satın alma ---------- */
.buy { margin-bottom: 20px; }
.buy .card-head h3 svg { width: 16px; height: 16px; vertical-align: -2px; color: var(--brand-ink); }
.buy-step { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 12px; }
.buy-step:not(:first-child) { margin-top: 26px; }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.plan-opt, .pay-opt { position: relative; cursor: pointer; }
.plan-opt input, .pay-opt input { position: absolute; opacity: 0; }
.po-body { display: grid; gap: 4px; height: 100%; padding: 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.plan-opt input:checked + .po-body { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.plan-opt input:focus-visible + .po-body, .pay-opt input:focus-visible + span { outline: 2px solid var(--brand); }
.po-body b { font-size: 16px; }
.po-tag { justify-self: start; font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: var(--brand); color: var(--on-brand); }
.po-price { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.po-price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.po-body ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 5px; }
.po-body li { display: flex; gap: 7px; font-size: 13px; }
.po-body li svg { width: 15px; height: 15px; color: var(--ok); flex: none; margin-top: 2px; }
.plan-feats { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.plan-feats li { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.plan-feats li svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
.plan-feats li.off { color: var(--muted); }
.plan-feats li.off svg { color: var(--muted); }
.pay-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pay-opt > span { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); }
.pay-opt > span svg { grid-row: span 2; width: 26px; height: 26px; color: var(--brand-ink); }
.pay-opt > span small { color: var(--muted); font-size: 12.5px; }
.pay-opt input:checked + span { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.pay-opt .test { font-style: normal; font-weight: 800; color: var(--warn); }
.bank-box { margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.bank-box[hidden], #transferFields[hidden] { display: none; }
.bank-acc { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.bank-acc small { display: block; color: var(--muted); }
.bank-acc code { display: block; margin-top: 4px; font-size: 14.5px; font-weight: 700; letter-spacing: .02em; }
.bill-form .row { margin-bottom: 0; }
.buy-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.buy-foot b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }

/* =================================================================== */
/*                          ACENTA PANELİ                               */
/* =================================================================== */
.side-brand img.custom { object-fit: contain; background: #fff; padding: 3px; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.quick .btn .badge { margin-left: 2px; }
a.stat.link { text-decoration: none; transition: box-shadow .15s, transform .15s; }
a.stat.link:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.list-rows a.nm { text-decoration: none; }
.list-rows a.nm:hover { color: var(--brand-ink); }
.inp.sm { height: 32px; font-size: 12.5px; border-radius: 9px; padding: 0 10px; }
select.inp.sm { padding-right: 26px; background-position: right 7px center; }
.inp.big { height: 46px; font-size: 18px; font-weight: 700; }
.inline .grow, .iq-foot .grow { flex: 1; min-width: 160px; }
.badge.scope-abroad { background: color-mix(in srgb, var(--info) 12%, transparent); color: var(--info); }
.badge.scope-domestic { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
.badge .x { display: inline-grid; place-items: center; margin-left: 2px; color: inherit; }
.badge .x svg { width: 12px; height: 12px; }
.icon-btn.on { color: #f59e0b; }
.icon-btn.on svg { fill: currentColor; }
.hint-line { display: flex; gap: 7px; align-items: flex-start; margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.hint-line svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--info); }

/* İlan listesi */
.lrow .pthumb.wide { width: 96px; height: 68px; border-radius: 10px; object-fit: cover; }
.lrow .pthumb.wide svg { width: 22px; height: 22px; color: var(--muted); }
.lrow .ltitle { text-decoration: none; }
.lrow .ltitle:hover b { color: var(--brand-ink); }
.lrow .desc { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; white-space: normal; }
.lrow .desc svg { width: 13px; height: 13px; }
.lrow .pstats { min-width: 150px; }
.lrow .pstats b { font-size: 15px; }
.lrow .pstats svg { width: 12px; height: 12px; vertical-align: -1px; }
.status-sel { width: 118px; flex: none; }
.prow.off .pmain, .prow.off .pthumb { opacity: .62; }
@media (max-width: 760px) {
  .lrow .pmain { flex-basis: calc(100% - 120px); }
  .lrow .pstats { order: 4; flex: 1; text-align: left; padding-left: 0; flex-direction: column; }
  .status-sel { order: 5; }
  .lrow .pacts { order: 6; width: 100%; justify-content: flex-end; }
}

/* İlan formu */
.lform { display: grid; gap: 18px; max-width: 980px; }
.lform-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lform .section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.step-n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 800; flex: none; }
.tiles { display: grid; gap: 10px; margin-bottom: 14px; }
.scope-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cat-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tiles label { position: relative; cursor: pointer; }
.tiles input { position: absolute; opacity: 0; pointer-events: none; }
.tiles span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px; border-radius: 12px; border: 1.5px solid var(--line); font-weight: 700; text-align: center; transition: all .15s; background: var(--surface); }
.cat-tiles span { flex-direction: column; min-height: 78px; }
.tiles span svg { width: 22px; height: 22px; color: var(--muted); }
.tiles input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft); }
.tiles input:checked + span svg { color: var(--brand-ink); }
.tiles input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 640px) { .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.toggle-list.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 24px; }
.map-row .map-state { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: -4px; }
.map-row .badge svg { width: 12px; height: 12px; }
details.fgroup { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin-bottom: 10px; }
details.fgroup summary { cursor: pointer; padding: 12px 0; display: flex; align-items: center; gap: 8px; list-style: none; }
details.fgroup summary::-webkit-details-marker { display: none; }
details.fgroup summary::after { content: '+'; margin-left: auto; font-weight: 800; color: var(--muted); font-size: 18px; }
details.fgroup[open] summary::after { content: '–'; }
details.fgroup .badge:empty { display: none; }
details.fgroup .pills { padding-bottom: 14px; }
.card.private { border-style: dashed; background: color-mix(in srgb, var(--warn) 4%, var(--surface)); }
.card.private .section-title svg { width: 17px; height: 17px; color: var(--warn); }
.gallery.big .gal-item, .gallery.big .gal-add { width: 168px; height: 118px; }
.gal-add small { font-weight: 500; font-size: 11px; }
.gallery.drop .gal-items { outline: 2px dashed var(--brand); outline-offset: 6px; border-radius: 12px; }
@media (max-width: 560px) { .gallery.big .gal-item, .gallery.big .gal-add { width: calc(50% - 5px); height: 104px; } }
.lform .save-bar { position: sticky; bottom: 12px; z-index: 20; }

/* Talepler */
.iq { padding: 16px 18px; margin-bottom: 12px; display: grid; gap: 10px; }
.iq.new { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 0 0 3px var(--brand-soft); }
.iq-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.iq-name { font-size: 15.5px; }
.iq-head .muted { margin-left: auto; }
.iq-listing, .iq-extra { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.iq-listing svg, .iq-extra svg { width: 15px; height: 15px; color: var(--brand-ink); flex: none; }
.iq-listing a { color: inherit; }
.iq-msg { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); white-space: pre-wrap; word-break: break-word; }
.iq-contact { display: flex; gap: 8px; flex-wrap: wrap; }
.iq-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.iq-foot select.inp.sm { width: auto; }
.btn.wa { background: #25d366; color: #fff; border-color: transparent; }
.btn.wa:hover { background: #1ebe5b; }

/* Müşteriler */
.tbl tr.off td { opacity: .55; }
.clip { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.match-row { cursor: pointer; }
.match-row input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.match-row .pthumb.wide { width: 84px; height: 58px; border-radius: 9px; object-fit: cover; }

/* Danışmanlar */
.agent-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.agent-card { padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: grab; }
.agent-card.off { opacity: .55; }
.agent-card.dragging { opacity: .4; }
.agent-card .small svg { width: 13px; height: 13px; vertical-align: -2px; }
.agent-card .badge { text-decoration: none; margin: 4px 0; }
.ag-photo { width: 88px; height: 88px; border-radius: 50%; background: var(--brand-soft) center / cover; color: var(--brand-ink); display: grid; place-items: center; font-size: 32px; font-weight: 800; margin-bottom: 6px; }

/* Ayarlar */
.site-addr { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-addr > div:first-child { flex: 1; min-width: 260px; }
code.addr { font-size: 13.5px; padding: 8px 12px; background: var(--surface-2); border-radius: 10px; word-break: break-all; }
.qr-mini { width: 112px; height: 112px; background: #fff; border-radius: 12px; padding: 6px; border: 1px solid var(--line); flex: none; }
.qr-mini svg { width: 100%; height: 100%; display: block; }
/* QR Menü & Kodlar sayfası (#/qr) */
.qr-gen { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; margin-bottom: 16px; }
.qr-out { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.qr-prev { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 200px; display: grid; place-items: center; }
.qr-prev svg { width: 100%; height: auto; display: block; }
.qr-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.qr-t { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.qr-t > svg { width: 110px; height: 110px; background: #fff; border-radius: 8px; }
.qr-t .btn.sm { padding: 4px 8px; }
.btn.disabled { opacity: .55; pointer-events: none; }
@media (max-width: 760px) { .qr-gen { grid-template-columns: 1fr; } .qr-out { max-width: 340px; margin: 0 auto; width: 100%; } }
.theme-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.theme-opt { position: relative; cursor: pointer; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); transition: box-shadow .15s, border-color .15s; }
.theme-opt input { position: absolute; opacity: 0; }
.theme-opt:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.theme-opt:has(input:checked)::after { content: '✓'; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.tp { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 12px; height: 96px; }
.tp i { border-radius: 6px; }
.tp i.acc { grid-column: span 2; height: 10px; background: var(--brand); border-radius: 4px; align-self: end; }
.tp b { display: none; }
.tm { display: grid; gap: 2px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.tm small { color: var(--muted); font-size: 12px; }
.swatch { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.swatch:hover { transform: scale(1.08); }
.share-url { display: flex; gap: 8px; align-items: center; }
.share-url code { flex: 1; min-width: 0; font-size: 13px; padding: 9px 12px; background: var(--surface-2); border-radius: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onote svg { width: 15px; height: 15px; vertical-align: -3px; }

/* Diller & çeviri */
details.adv summary svg { width: 16px; height: 16px; color: var(--brand-ink); }
#trMsg svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--ok); }
.tr-row textarea.inp { resize: vertical; }
.lang-stat { min-width: 0; }
.lang-stat .inline { flex-wrap: wrap; gap: 2px 8px; }
.lang-stat a { font-size: 12px; color: var(--muted); word-break: break-all; }

/* İlan videosu */
.vfield .vseg { margin-bottom: 10px; align-self: flex-start; }
.vfield .vseg button { display: inline-flex; align-items: center; gap: 6px; }
.vfield .vseg svg { width: 14px; height: 14px; }
.vbox { display: grid; gap: 10px; border-radius: 12px; }
.vbox video { width: 100%; max-width: 560px; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }
.vbox.drop .vdrop { border-color: var(--brand); background: var(--brand-soft); }
.vdrop { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 560px; padding: 30px 16px; border: 2px dashed var(--line); border-radius: 14px; color: var(--muted); }
.vdrop:hover { border-color: var(--brand); color: var(--text); }
.vdrop svg { width: 26px; height: 26px; color: var(--brand-ink); }
.vdrop b { color: var(--text); }
.vprog { display: grid; gap: 8px; max-width: 560px; padding: 16px; border-radius: 12px; background: var(--surface-2); }

/* Kategoriler sayfası */
.cat-list { display: grid; gap: 14px; }
.cat-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cat-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-ink); }
.cat-ic svg { width: 20px; height: 20px; }
.cat-card-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; }
.chip em { font-style: normal; font-size: 11px; color: var(--muted); }
.chip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.chip button:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.chip button:disabled { opacity: .35; cursor: not-allowed; }
.chip button svg { width: 12px; height: 12px; }

/* ---------- Tur formu: tarih ve program düzenleyicileri ---------- */
[data-bases][hidden], [data-scopes][hidden] { display: none !important; }
.dates-ed { display: grid; gap: 8px; }
.de-head, .de-row { display: grid; grid-template-columns: 150px 130px 80px 130px 1fr auto; gap: 8px; align-items: center; }
.de-head { padding: 0 2px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.de-rows { display: grid; gap: 6px; }
.de-row { padding: 6px; border-radius: 10px; background: var(--surface-2, color-mix(in srgb, var(--line) 35%, transparent)); }
.de-row.past { opacity: .55; }
.de-row.soldout .de-info { color: var(--danger, #dc2626); font-weight: 600; }
.de-row .inp { height: 38px; }
.de-info { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.de-empty { margin: 4px 0; }
.de-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.de-tools .inp { width: auto; height: 36px; }
@media (max-width: 760px) {
  .de-head { display: none; }
  .de-row { grid-template-columns: 1fr 1fr auto; }
  .de-row [data-f=s] { grid-column: 2 / 4; }
  .de-info { grid-column: 1 / -1; order: 5; }
}
.prog-ed { display: grid; gap: 10px; }
.pe-rows { display: grid; gap: 10px; }
.pe-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.pe-n { font-weight: 800; color: var(--brand-ink); padding-top: 10px; font-size: 13px; }
.pe-body { display: grid; gap: 8px; }
.pe-body .inp[data-f=t] { font-weight: 600; }
.pe-acts { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 640px) { .pe-row { grid-template-columns: 1fr auto; } .pe-n { grid-column: 1 / -1; padding: 0; } }
.hint-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-add { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; border: 1px dashed var(--line); background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.chip-add svg { width: 12px; height: 12px; }
.chip-add:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip-add.used { opacity: .45; }
.dep-date { display: inline-flex; flex-direction: column; align-items: center; min-width: 52px; padding: 4px 6px; border-radius: 8px; background: var(--brand-soft, color-mix(in srgb, var(--brand) 10%, transparent)); line-height: 1.15; }
.dep-date b { font-size: 13px; color: var(--brand-ink); white-space: nowrap; }
.dep-date small { font-size: 11px; color: var(--muted); }
.lform .row-3 { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

/* ---------- Rezervasyonlar ve ödeme ayarları ---------- */
.bank-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.bank-row { display: grid; grid-template-columns: 1fr 1.2fr 1.8fr 90px auto; gap: 8px; align-items: center; }
@media (max-width: 760px) { .bank-row { grid-template-columns: 1fr 1fr; } .bank-row [data-b=iban] { grid-column: 1 / -1; } }
.bk-money { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-money div { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); min-width: 120px; }
.bk-money small { display: block; font-size: 11.5px; color: var(--muted); }
.bk-money b { font-size: 15px; }
.bk-money em { font-style: normal; font-size: 11px; color: var(--warn); margin-left: 6px; font-weight: 700; }
.card.iq.bk.paid { border-left: 3px solid var(--ok); }
.card.iq.bk.pending { border-left: 3px solid var(--warn); }

/* ---------- Otel: dönem fiyatları ve çocuk politikası ---------- */
.pp-head, .pp-row { display: grid; grid-template-columns: 160px 160px 170px 1fr auto; gap: 8px; align-items: center; }
.pp-head { padding: 0 2px 4px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.pp-rows, .cp-rows { display: grid; gap: 6px; }
.pp-row, .cp-row { padding: 6px; border-radius: 10px; background: var(--surface-2); }
.pp-row.past { opacity: .55; }
.pp-row .inp, .cp-row .inp { height: 38px; }
.cp-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cp-row select { width: 76px; } .cp-row [data-f=r] { width: 80px; }
.cp-row em { font-style: normal; color: var(--ok); font-weight: 700; }
.inline-fld { flex-direction: row; align-items: center; gap: 8px; margin: 0 0 0 auto; }
.inline-fld .inp { width: auto; }
@media (max-width: 760px) { .pp-head { display: none; } .pp-row { grid-template-columns: 1fr 1fr auto; } .pp-row [data-f=p] { grid-column: 1 / 3; } .pp-info { grid-column: 1 / -1; } .inline-fld { margin-left: 0; } }

/* ---------- İndirim kuponları ---------- */
.kc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kc { padding: 16px; display: flex; flex-direction: column; gap: 10px; position: relative; border-style: dashed; }
.kc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kc-code { font: 800 17px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; padding: 7px 10px; border-radius: 8px; border: 1px dashed var(--line); background: var(--surface-2, transparent); color: inherit; cursor: copy; }
.kc-val { font-size: 28px; font-weight: 800; line-height: 1; }
.kc-val small { font-size: 13px; font-weight: 600; color: var(--muted); margin-inline-start: 6px; }
.kc-use { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.kc-acts { display: flex; gap: 8px; justify-content: space-between; margin-top: auto; }

/* ---------- Yorumlar ---------- */
.rv-stars { color: #f59e0b; letter-spacing: 1px; font-size: 15px; }
.card.rv-pending { border-inline-start: 3px solid #f59e0b; }

/* ---------- Yolcu listesi ---------- */
.mf-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; align-items: flex-end; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.mf-head > div:first-child { display: grid; gap: 2px; }
.mf-head > div:first-child span { color: var(--muted); font-size: 13px; }
.mf-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.mf-stats b { color: var(--text); font-size: 16px; }
.mf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mf-table th, .mf-table td { padding: 8px 10px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.mf-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mf-table small { display: block; color: var(--muted); margin-top: 2px; }
.mf-table tr.mf-first:not(:first-child) td { border-top: 2px solid var(--line); }
.modal-body:has(.mf-table) { overflow-x: auto; }
@media (max-width: 700px) { .hide-sm { display: none; } }

/* ================= Yatay kaydırma alanları (dokunmatik) ================= */
/* Şerit sonuna gelince sayfa / tarayıcı "geri" hareketi tetiklenmesin, iOS'ta akıcı kaysın */
.tbl-wrap { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
