/* =====================================================================
   IVA Platform — Yönetim Konsolu tasarım sistemi.
   Kontrol paneli düzeni (Stripe / Vercel / Linear konsollarındaki kalıplar):
   koyu sol menü, ince üst çubuk, özet kartları, segment filtreler, kurulum adımları,
   bölüm gezinmeli detay sayfası. Durum her zaman metin + renkle verilir, yalnız renkle değil.
   ===================================================================== */
[hidden] { display:none !important; }
:root {
  --bg:#f5f6f8; --surface:#ffffff; --surface-2:#f9fafb; --ink:#0f172a; --ink-2:#334155; --muted:#64748b;
  --line:#e5e7eb; --line-2:#eef0f3;
  --brand:#4338ca; --brand-600:#3730a3; --brand-ink:#ffffff; --brand-bg:#eef2ff; --brand-line:#c7d2fe;
  --ok:#047857; --ok-bg:#ecfdf5; --ok-line:#a7f3d0;
  --warn:#b45309; --warn-bg:#fffbeb; --warn-line:#fde68a;
  --danger:#b91c1c; --danger-bg:#fef2f2; --danger-line:#fecaca;
  --side:#0b1020; --side-2:#141a2e; --side-ink:#cbd5e1; --side-muted:#7c8aa5;
  --radius:12px; --radius-sm:8px;
  --shadow-sm:0 1px 2px rgba(15,23,42,.06);
  --shadow:0 1px 2px rgba(15,23,42,.05), 0 4px 16px rgba(15,23,42,.06);
  --focus:0 0 0 3px rgba(67,56,202,.25);
  --side-w:248px; --top-h:60px;
  --font:"Inter","Segoe UI",system-ui,-apple-system,Arial,sans-serif;
  --mono:ui-monospace,"SFMono-Regular",Consolas,monospace;
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; font-family:var(--font); background:var(--bg); color:var(--ink); font-size:14px; line-height:1.5;
  -webkit-font-smoothing:antialiased; }
a { color:var(--brand); text-decoration:none; }
a:hover { text-decoration:underline; }
:focus-visible { outline:none; box-shadow:var(--focus); border-radius:6px; }
h1, h2, h3 { color:var(--ink); }
code, .mono { font-family:var(--mono); font-size:12.5px; }
.mono { color:var(--muted); }
.muted { color:var(--muted); }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- Shell: sol menü + ana alan ---------- */
.pf-shell { min-height:100vh; }
.pf-side { position:fixed; inset:0 auto 0 0; width:var(--side-w); background:var(--side); color:var(--side-ink);
  display:flex; flex-direction:column; z-index:40; border-right:1px solid rgba(255,255,255,.04); }
.pf-side-brand { height:var(--top-h); display:flex; align-items:center; gap:11px; padding:0 18px;
  border-bottom:1px solid rgba(255,255,255,.06); color:#fff; }
.pf-side-brand:hover { text-decoration:none; }
.pf-mark { width:32px; height:32px; border-radius:9px; display:grid; place-items:center; flex:0 0 auto;
  background:linear-gradient(135deg,#6366f1 0%,#4338ca 60%,#312e81 100%); color:#fff; font-weight:800; font-size:12px;
  letter-spacing:.5px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.18); }
.pf-side-brand b { display:block; font-size:14px; font-weight:700; letter-spacing:-.1px; }
.pf-side-brand small { display:block; font-size:11.5px; color:var(--side-muted); font-weight:500; }
.pf-nav { padding:16px 12px; flex:1; overflow-y:auto; }
.pf-nav-label { font-size:10.5px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; color:var(--side-muted);
  padding:0 10px; margin:6px 0 8px; }
.pf-nav a { display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:8px; color:var(--side-ink);
  font-weight:500; font-size:13.5px; margin-bottom:2px; }
.pf-nav a i { font-size:16px; width:18px; text-align:center; color:var(--side-muted); }
.pf-nav a:hover { background:var(--side-2); color:#fff; text-decoration:none; }
.pf-nav a:hover i { color:#fff; }
.pf-nav a.active { background:rgba(99,102,241,.16); color:#fff; box-shadow:inset 2px 0 0 #818cf8; }
.pf-nav a.active i { color:#a5b4fc; }
.pf-nav .count { margin-left:auto; font-size:11px; font-weight:700; padding:1px 7px; border-radius:999px;
  background:rgba(255,255,255,.08); color:var(--side-ink); }
.pf-side-foot { padding:14px 18px; border-top:1px solid rgba(255,255,255,.06); font-size:11.5px; color:var(--side-muted); }
.pf-side-foot .env { display:flex; align-items:center; gap:8px; }
.pf-side-foot .env .dot { width:7px; height:7px; border-radius:50%; background:#34d399; box-shadow:0 0 0 3px rgba(52,211,153,.15); }
.pf-side-foot .host { display:block; margin-top:3px; font-family:var(--mono); font-size:11px; color:#94a3b8;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.pf-main { margin-left:var(--side-w); min-height:100vh; display:flex; flex-direction:column; }
.pf-topbar { position:sticky; top:0; z-index:30; height:var(--top-h); background:rgba(255,255,255,.88);
  backdrop-filter:saturate(180%) blur(10px); border-bottom:1px solid var(--line); display:flex; align-items:center;
  gap:12px; padding:0 28px; }
.pf-menu-btn { display:none; width:38px; height:38px; border-radius:9px; border:1px solid var(--line); background:var(--surface);
  color:var(--ink); font-size:18px; cursor:pointer; place-items:center; }
.pf-crumbs { display:flex; align-items:center; gap:7px; font-size:13px; color:var(--muted); min-width:0; }
.pf-crumbs a { color:var(--muted); }
.pf-crumbs a:hover { color:var(--ink); text-decoration:none; }
.pf-crumbs .sep { color:#cbd5e1; }
.pf-crumbs .current { color:var(--ink); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pf-topbar .spacer { flex:1; }
.pf-user { display:flex; align-items:center; gap:10px; }
.pf-user-chip { display:flex; align-items:center; gap:9px; padding:4px 10px 4px 4px; border:1px solid var(--line);
  border-radius:999px; background:var(--surface); max-width:280px; }
.pf-user-chip .avatar { width:28px; height:28px; font-size:11px; }
.pf-user-chip span { font-size:12.5px; color:var(--ink-2); font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pf-content { flex:1; width:100%; max-width:1200px; margin:0 auto; padding:28px 28px 72px; }
.pf-backdrop { display:none; }

/* ---------- Sayfa başlığı ---------- */
.pf-head { display:flex; align-items:flex-end; gap:16px; flex-wrap:wrap; margin-bottom:22px; }
.pf-head h1 { margin:0; font-size:24px; font-weight:700; letter-spacing:-.4px; }
.pf-head .sub { margin:6px 0 0; color:var(--muted); font-size:13.5px; max-width:680px; }
.pf-head .spacer { flex:1; }
.eyebrow { color:var(--brand); font-size:11px; line-height:1.3; font-weight:700; letter-spacing:.7px; text-transform:uppercase; }

/* ---------- Düğmeler ---------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:8px 14px; min-height:36px;
  border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:var(--radius-sm);
  font:600 13.5px/1.2 var(--font); cursor:pointer; transition:background .12s, border-color .12s, box-shadow .12s;
  box-shadow:var(--shadow-sm); white-space:nowrap; }
.btn i { font-size:15px; }
.btn:hover { text-decoration:none; background:var(--surface-2); border-color:#d1d5db; }
.btn-primary { background:var(--brand); color:var(--brand-ink); border-color:var(--brand); }
.btn-primary:hover { background:var(--brand-600); border-color:var(--brand-600); }
.btn-ghost { background:transparent; box-shadow:none; border-color:transparent; color:var(--ink-2); }
.btn-ghost:hover { background:#f1f5f9; border-color:transparent; }
.btn-danger { background:var(--surface); color:var(--danger); border-color:var(--danger-line); }
.btn-danger:hover { background:var(--danger-bg); border-color:#fca5a5; }
.btn-danger-solid { background:var(--danger); color:#fff; border-color:var(--danger); }
.btn-danger-solid:hover { background:#991b1b; border-color:#991b1b; }
.btn-warn { background:var(--surface); color:var(--warn); border-color:var(--warn-line); }
.btn-warn:hover { background:var(--warn-bg); }
.btn-sm { padding:5px 10px; min-height:30px; font-size:12.5px; }
.btn-sm i { font-size:13px; }
.btn-icon { width:32px; height:32px; min-height:32px; padding:0; }
.btn[disabled], .btn.disabled { opacity:.5; pointer-events:none; }

/* ---------- Kartlar ---------- */
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm);
  margin-bottom:18px; }
.card-h { padding:16px 20px; border-bottom:1px solid var(--line-2); display:flex; align-items:flex-start; gap:14px; }
.card-h > div:first-child { min-width:0; }
.card-h h2 { margin:0; font-size:15px; font-weight:650; letter-spacing:-.1px; display:flex; align-items:center; gap:8px; }
.card-h h2 i { color:var(--muted); font-size:16px; }
.card-h .sub { font-size:12.5px; color:var(--muted); margin-top:3px; }
.card-h .spacer { flex:1; }
.card-b { padding:20px; }
.card-f { padding:12px 20px; border-top:1px solid var(--line-2); background:var(--surface-2);
  border-radius:0 0 var(--radius) var(--radius); display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.card-f .hint { margin:0; flex:1; min-width:200px; }
.card.danger { border-color:var(--danger-line); }
.card.danger .card-h h2, .card.danger .card-h h2 i { color:var(--danger); }

/* ---------- Özet (KPI) kartları ---------- */
.kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:22px; }
.kpi { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px;
  box-shadow:var(--shadow-sm); display:flex; align-items:flex-start; gap:14px; color:inherit; }
a.kpi:hover { text-decoration:none; border-color:var(--brand-line); box-shadow:var(--shadow); }
.kpi .ico { width:38px; height:38px; border-radius:10px; display:grid; place-items:center; font-size:18px; flex:0 0 auto;
  background:var(--brand-bg); color:var(--brand); }
.kpi.ok .ico { background:var(--ok-bg); color:var(--ok); }
.kpi.muted .ico { background:#f1f5f9; color:var(--muted); }
.kpi.warn .ico { background:var(--warn-bg); color:var(--warn); }
.kpi .label { font-size:12.5px; color:var(--muted); font-weight:500; }
.kpi .value { font-size:24px; font-weight:700; letter-spacing:-.5px; line-height:1.2; margin-top:2px; font-variant-numeric:tabular-nums; }

/* ---------- Araç çubuğu: segment filtre + arama ---------- */
.toolbar { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:14px 16px; border-bottom:1px solid var(--line-2); }
.toolbar .spacer { flex:1; }
.segmented { display:inline-flex; padding:3px; background:#f1f5f9; border-radius:9px; gap:2px; }
.segmented a { padding:6px 12px; border-radius:7px; font-size:13px; font-weight:600; color:var(--muted); display:inline-flex; gap:7px; align-items:center; }
.segmented a:hover { color:var(--ink); text-decoration:none; }
.segmented a.active { background:var(--surface); color:var(--ink); box-shadow:var(--shadow-sm); }
.segmented .n { font-size:11px; padding:0 6px; border-radius:999px; background:rgba(15,23,42,.06); color:var(--ink-2); }
.search { position:relative; min-width:260px; }
.search i { position:absolute; left:11px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:14px; pointer-events:none; }
.search input { padding-left:34px !important; }

/* ---------- Formlar ---------- */
label.f { display:block; font-size:12.5px; font-weight:600; color:var(--ink-2); margin-bottom:6px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], select, textarea {
  width:100%; padding:8px 11px; min-height:38px; border:1px solid #d1d5db; border-radius:var(--radius-sm); font:400 13.5px/1.4 var(--font);
  background:#fff; color:var(--ink); box-shadow:var(--shadow-sm); transition:border-color .12s, box-shadow .12s; }
textarea { resize:vertical; min-height:64px; }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--brand); box-shadow:var(--focus); }
input::placeholder, textarea::placeholder { color:#9ca3af; }
input[type=checkbox], input[type=radio] { accent-color:var(--brand); width:16px; height:16px; margin:0; }
.field { margin-bottom:16px; }
.field:last-child { margin-bottom:0; }
.hint, .field .hint { font-size:12px; color:var(--muted); margin-top:6px; }
.field .err { font-size:12px; color:var(--danger); margin-top:6px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.grid3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.check { display:flex; align-items:flex-start; gap:9px; font-size:13px; color:var(--ink-2); cursor:pointer; line-height:1.45; }
.check input { margin-top:2px; flex:0 0 auto; }
.input-row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.input-row input { flex:1; min-width:220px; max-width:420px; }
.input-medium { max-width:360px; }
.prefix-input { display:flex; align-items:stretch; }
.prefix-input span { display:flex; align-items:center; padding:0 10px; border:1px solid #d1d5db; border-right:0;
  border-radius:var(--radius-sm) 0 0 var(--radius-sm); background:var(--surface-2); color:var(--muted); font-family:var(--mono); font-size:12.5px; }
.prefix-input input { border-radius:0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- Tablo ---------- */
.table { width:100%; border-collapse:collapse; }
.table th, .table td { text-align:left; padding:12px 14px; border-bottom:1px solid var(--line-2); vertical-align:middle; }
.table th { font-size:11.5px; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); font-weight:600; background:var(--surface-2); }
.table tbody tr { transition:background .1s; }
.table tbody tr:hover { background:#fafbfc; }
.table tbody tr:last-child td { border-bottom:none; }
.table-actions { display:flex; justify-content:flex-end; gap:6px; }
.table-foot { padding:11px 16px; border-top:1px solid var(--line-2); font-size:12.5px; color:var(--muted); }

.entity { display:flex; align-items:center; gap:12px; min-width:0; }
.entity > div { min-width:0; }
.entity .name { font-weight:600; color:var(--ink); display:block; }
.entity .name:hover { color:var(--brand); }
.entity .meta { font-size:12px; color:var(--muted); font-family:var(--mono); }
.avatar { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; flex:0 0 auto;
  font-weight:700; font-size:13px; color:#fff; background:var(--brand); letter-spacing:.3px; }
.avatar.lg { width:56px; height:56px; border-radius:14px; font-size:19px; }
.avatar.c0 { background:linear-gradient(135deg,#6366f1,#4338ca); }
.avatar.c1 { background:linear-gradient(135deg,#14b8a6,#0f766e); }
.avatar.c2 { background:linear-gradient(135deg,#f59e0b,#c2410c); }
.avatar.c3 { background:linear-gradient(135deg,#ec4899,#be185d); }
.avatar.c4 { background:linear-gradient(135deg,#0ea5e9,#0369a1); }
.avatar.c5 { background:linear-gradient(135deg,#8b5cf6,#6d28d9); }
.domain { display:flex; align-items:center; gap:8px; min-width:0; }
.domain .host { font-family:var(--mono); font-size:12.5px; color:var(--ink-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.domain .state { font-size:11.5px; color:var(--muted); }

/* ---------- Rozetler ve durum noktaları ---------- */
.badge { display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:600; padding:2px 9px;
  border-radius:999px; white-space:nowrap; border:1px solid transparent; line-height:1.6; }
.badge .dot, .sdot { width:7px; height:7px; border-radius:50%; background:currentColor; flex:0 0 auto; }
.badge.ok { background:var(--ok-bg); color:var(--ok); border-color:var(--ok-line); }
.badge.warn { background:var(--warn-bg); color:var(--warn); border-color:var(--warn-line); }
.badge.danger { background:var(--danger-bg); color:var(--danger); border-color:var(--danger-line); }
.badge.muted { background:#f1f5f9; color:var(--muted); border-color:var(--line); }
.badge.brand { background:var(--brand-bg); color:var(--brand); border-color:var(--brand-line); }
.pill { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:500; padding:2px 9px; border-radius:6px;
  background:#f1f5f9; color:var(--ink-2); border:1px solid var(--line); }
.sdot.ok { color:#10b981; } .sdot.warn { color:#f59e0b; } .sdot.muted { color:#cbd5e1; }

/* ---------- Uyarılar ---------- */
.alert { display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border-radius:10px; font-size:13.5px;
  margin-bottom:18px; border:1px solid transparent; }
.alert > i { font-size:16px; margin-top:1px; flex:0 0 auto; }
.alert > div { min-width:0; }
.alert.ok { background:var(--ok-bg); color:#065f46; border-color:var(--ok-line); }
.alert.err { background:var(--danger-bg); color:#991b1b; border-color:var(--danger-line); }
.alert.info { background:var(--brand-bg); color:#3730a3; border-color:var(--brand-line); }
.alert.warn { background:var(--warn-bg); color:#92400e; border-color:var(--warn-line); }
.alert ul { margin:6px 0 0 18px; padding:0; }

/* ---------- Boş durum ---------- */
.empty { text-align:center; color:var(--muted); padding:56px 20px; }
.empty .ico { width:52px; height:52px; border-radius:14px; display:grid; place-items:center; margin:0 auto 14px;
  background:var(--brand-bg); color:var(--brand); font-size:22px; }
.empty .big { font-size:15.5px; color:var(--ink); font-weight:650; margin-bottom:4px; }
.empty .btn { margin-top:16px; }

/* ---------- Detay: başlık ---------- */
.entity-head { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm);
  margin-bottom:20px; overflow:hidden; }
.entity-head-main { padding:22px 24px; display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.entity-head-main .title { min-width:0; flex:1; }
.entity-head h1 { margin:0 0 6px; font-size:22px; font-weight:700; letter-spacing:-.4px; }
.entity-head .meta { display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:var(--muted); font-size:12.5px; }
.entity-head .actions { display:flex; gap:8px; flex-wrap:wrap; }
.facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid var(--line-2); background:var(--surface-2); }
.facts > div { padding:12px 24px; border-right:1px solid var(--line-2); min-width:0; }
.facts > div:last-child { border-right:0; }
.facts dt { font-size:11.5px; color:var(--muted); font-weight:500; margin:0; }
.facts dd { margin:2px 0 0; font-size:13.5px; font-weight:600; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.facts dd.none { color:var(--muted); font-weight:500; }

/* ---------- Detay: iki sütun (bölüm menüsü + içerik) ---------- */
.detail-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:24px; align-items:start; }
.section-nav { position:sticky; top:calc(var(--top-h) + 20px); }
.section-nav a { display:flex; align-items:center; gap:9px; padding:7px 10px; border-radius:8px; color:var(--ink-2);
  font-size:13px; font-weight:500; }
.section-nav a i { color:var(--muted); font-size:14px; width:16px; text-align:center; }
.section-nav a:hover { background:#eef0f4; text-decoration:none; }
.section-nav a.active { background:var(--surface); color:var(--ink); box-shadow:var(--shadow-sm); font-weight:600; }
.section-nav a.active i { color:var(--brand); }
.section-nav .label { font-size:10.5px; font-weight:700; letter-spacing:.8px; text-transform:uppercase; color:var(--muted); padding:0 10px; margin:0 0 8px; }
.section { scroll-margin-top:calc(var(--top-h) + 20px); }

/* ---------- Kurulum adımları ---------- */
.setup { padding:18px 20px; }
.setup-head { display:flex; align-items:center; gap:12px; margin-bottom:12px; }
.setup-head h2 { margin:0; font-size:15px; font-weight:650; }
.setup-head .spacer { flex:1; }
.progress { height:6px; border-radius:999px; background:#eef0f4; overflow:hidden; margin-bottom:14px; }
.progress span { display:block; height:100%; background:linear-gradient(90deg,#6366f1,#4338ca); border-radius:inherit; }
.steps { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.steps li { display:flex; gap:9px; align-items:flex-start; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.steps li .n { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:11px; font-weight:700;
  flex:0 0 auto; border:1.5px solid #cbd5e1; color:var(--muted); }
.steps li.done .n { background:var(--ok); border-color:var(--ok); color:#fff; }
.steps li.current { border-color:var(--brand-line); background:var(--brand-bg); }
.steps li.current .n { border-color:var(--brand); color:var(--brand); }
.steps li b { display:block; font-size:12.5px; font-weight:600; color:var(--ink); }
.steps li small { display:block; font-size:11.5px; color:var(--muted); line-height:1.35; }

/* ---------- Detay yardımcıları ---------- */
.kv-list { display:grid; gap:0; margin:0; }
.kv-list > div { display:grid; grid-template-columns:160px minmax(0,1fr); gap:12px; padding:10px 0; border-bottom:1px solid var(--line-2); align-items:center; }
.kv-list > div:first-child { padding-top:0; }
.kv-list > div:last-child { border-bottom:0; padding-bottom:0; }
.kv-list dt { font-size:12.5px; color:var(--muted); margin:0; }
.kv-list dd { margin:0; font-size:13.5px; display:flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0; }
.divider { height:1px; background:var(--line-2); margin:18px 0; }
.actions-row { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
form.inline { display:inline; margin:0; }
details.disclosure > summary { list-style:none; cursor:pointer; }
details.disclosure > summary::-webkit-details-marker { display:none; }
details.disclosure[open] > summary { margin-bottom:14px; }
.subpanel { padding:16px; border:1px solid var(--line); border-radius:10px; background:var(--surface-2); }

/* ---------- Modüller ---------- */
.module-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.module-option { display:flex; align-items:center; gap:11px; padding:11px 13px; border:1px solid var(--line); border-radius:10px;
  background:var(--surface); cursor:pointer; transition:border-color .12s, background .12s; font-weight:500; }
.module-option:hover { border-color:var(--brand-line); }
.module-option:has(input:checked) { border-color:var(--brand); background:var(--brand-bg); }
.module-option .switch { position:relative; width:34px; height:20px; flex:0 0 auto; }
.module-option .switch input { position:absolute; opacity:0; inset:0; width:100%; height:100%; cursor:pointer; margin:0; }
.module-option .switch span { position:absolute; inset:0; border-radius:999px; background:#cbd5e1; transition:background .15s; pointer-events:none; }
.module-option .switch span::after { content:""; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%;
  background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.2); transition:transform .15s; }
.module-option .switch input:checked + span { background:var(--brand); }
.module-option .switch input:checked + span::after { transform:translateX(14px); }
.module-option .switch input:focus-visible + span { box-shadow:var(--focus); }

/* ---------- Entegrasyonlar ---------- */
.integration-head { display:flex; align-items:flex-start; gap:14px; }
.integration-logo { width:40px; height:40px; border-radius:10px; display:grid; place-items:center; font-size:19px; flex:0 0 auto;
  background:var(--brand-bg); color:var(--brand); }
.integration-head h3 { margin:0 0 3px; font-size:15px; font-weight:650; }
.integration-head p { margin:0; color:var(--muted); font-size:12.5px; max-width:640px; }
.integration-head .spacer { flex:1; }
.callback-row { display:grid; grid-template-columns:90px minmax(0,1fr); gap:10px; align-items:start;
  padding:10px 12px; margin-top:14px; background:var(--surface-2); border:1px solid var(--line); border-radius:9px; }
.callback-row > span { color:var(--muted); font-size:12px; font-weight:600; }
.callback-row code { overflow-wrap:anywhere; color:var(--ink-2); }
.integration-actions { margin-top:16px; }
.channel-card { border:1px solid var(--line); border-radius:10px; margin-top:14px; background:var(--surface); }
.channel-card:first-of-type { margin-top:0; }
.channel-card-h { display:flex; align-items:center; gap:12px; padding:13px 16px; flex-wrap:wrap; }
.channel-card-h b { font-size:13.5px; }
.channel-card-h .spacer { flex:1; }
.channel-card-b { padding:0 16px 16px; display:grid; gap:12px; }
.channel-card-b details.disclosure { border-top:1px solid var(--line-2); padding-top:12px; }
.channel-card-b details.disclosure > summary { font-size:13px; font-weight:600; color:var(--ink-2); display:flex; align-items:center; gap:7px; }
.channel-card-b details.disclosure > summary::before { content:"\F285"; font-family:"bootstrap-icons"; font-size:11px; transition:transform .15s; color:var(--muted); }
.channel-card-b details.disclosure[open] > summary::before { transform:rotate(90deg); }
.binding { font-size:12.5px; color:var(--ink-2); padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:var(--surface-2); }

/* ---------- Yeni otel ---------- */
.form-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:22px; align-items:start; }
.aside-card { position:sticky; top:calc(var(--top-h) + 20px); }
.next-steps { list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.next-steps li { display:flex; gap:11px; }
.next-steps .n { width:24px; height:24px; border-radius:50%; display:grid; place-items:center; flex:0 0 auto; font-size:11.5px;
  font-weight:700; background:var(--brand-bg); color:var(--brand); }
.next-steps b { display:block; font-size:13px; }
.next-steps small { display:block; font-size:12px; color:var(--muted); line-height:1.4; }
.form-section-title { font-size:13px; font-weight:650; color:var(--ink); margin:0 0 4px; display:flex; align-items:center; gap:8px; }
.form-section-title i { color:var(--brand); }
.form-section-sub { font-size:12.5px; color:var(--muted); margin:0 0 16px; }

/* ---------- Duyarlı ---------- */
@media (max-width:1100px){
  .steps { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .facts > div:nth-child(2) { border-right:0; }
  .facts > div:nth-child(-n+2) { border-bottom:1px solid var(--line-2); }
  .form-layout { grid-template-columns:1fr; }
  .aside-card { position:static; }
}
@media (max-width:991px){
  .pf-side { transform:translateX(-100%); transition:transform .2s ease; box-shadow:none; }
  body.nav-open .pf-side { transform:none; box-shadow:0 0 40px rgba(0,0,0,.35); }
  body.nav-open .pf-backdrop { display:block; position:fixed; inset:0; background:rgba(15,23,42,.45); z-index:35; }
  .pf-main { margin-left:0; }
  .pf-menu-btn { display:grid; }
  .pf-topbar { padding:0 16px; }
  .pf-content { padding:20px 16px 64px; }
  .kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .detail-layout { grid-template-columns:1fr; }
  .section-nav { position:sticky; top:var(--top-h); z-index:20; display:flex; gap:4px; overflow-x:auto; margin:0 -16px;
    padding:8px 16px; background:rgba(245,246,248,.94); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
  .section-nav .label { display:none; }
  .section-nav a { white-space:nowrap; flex:0 0 auto; }
  .section { scroll-margin-top:calc(var(--top-h) + 76px); } /* yapışkan bölüm şeridinin altında kalmasın */
  .pf-user-chip > span:not(.avatar) { display:none; }
  .pf-user-chip { padding:4px; }
}
@media (max-width:720px){
  .grid2, .grid3 { grid-template-columns:1fr; }
  .module-grid { grid-template-columns:1fr; }
  .steps { grid-template-columns:1fr; }
  .entity-head-main { padding:18px; }
  .entity-head .actions { width:100%; }
  .entity-head .actions .btn, .entity-head .actions form { flex:1; }
  .entity-head .actions form .btn { width:100%; }
  .facts > div { padding:11px 18px; }
  .kv-list > div { grid-template-columns:1fr; gap:3px; }
  .toolbar { padding:12px; }
  .search { min-width:0; width:100%; }
  .segmented { width:100%; }
  .segmented a { flex:1; justify-content:center; padding:6px 8px; }
  .callback-row { grid-template-columns:1fr; gap:3px; }
  .card-h, .card-b { padding-left:16px; padding-right:16px; }
  .integration-head { flex-wrap:wrap; }
  /* Otel tablosu kart listesine döner */
  .table thead { display:none; }
  .table, .table tbody, .table tr, .table td { display:block; width:100%; }
  .table tr { border-bottom:1px solid var(--line-2); padding:12px 4px; }
  .table tbody tr:last-child { border-bottom:0; }
  .table td { border:none; padding:5px 12px; display:flex; justify-content:space-between; align-items:center; gap:12px; }
  .table td::before { content:attr(data-label); font-size:11.5px; color:var(--muted); font-weight:600; flex:0 0 auto; }
  .table td.cell-main::before, .table td.cell-actions::before { content:none; }
  .table td.cell-actions { justify-content:stretch; padding-top:10px; }
  .table td.cell-actions .table-actions { width:100%; }
  .table td.cell-actions .btn { flex:1; }
}

/* ---------- Platform girişi ---------- */
body.auth { background:var(--surface); }
.auth-shell { min-height:100vh; display:grid; }
.auth-brand { display:flex; align-items:center; gap:11px; margin-bottom:28px; }
.auth-brand b { display:block; font-size:15px; color:var(--ink); }
.auth-brand small { display:block; font-size:12px; color:var(--muted); }
.auth-main { display:grid; place-items:center; padding:40px 24px; background:var(--bg); }
.auth-card { width:100%; max-width:400px; }
.auth-card h1 { font-size:24px; letter-spacing:-.5px; margin:0 0 26px; font-weight:700; }
.auth-card .alert ul { margin:0; padding-left:18px; }
.auth-card .search { min-width:0; }
.auth-card input[type=email], .auth-card input[type=password], .auth-card input[type=text] { min-height:42px; font-size:14px; }
.auth-submit { width:100%; min-height:44px; font-size:14.5px; margin-top:4px; }
@media (max-width:900px){
  .auth-main { align-items:start; padding-top:56px; }
}

/* ---------- Otel tablosu: sütun sığdırma ---------- */
/* position: gizli başlık metni (.sr-only, absolute) kaydırma kutusundan taşıp sayfayı genişletmesin. */
.table-wrap { overflow-x:auto; position:relative; }
.table .entity .name, .table .entity .meta { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:220px; }
.table .domain .host { max-width:200px; }
.table .owner { display:block; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ink-2); }
.table td.cell-actions { width:1%; white-space:nowrap; }
/* Orta genişlikte tablo karta sığsın: ikincil sütunlar gizlenir (otel detayında görünür). */
@media (min-width:721px) and (max-width:1359px){
  .table th, .table td { padding-left:10px; padding-right:10px; }
  .table .col-pkg { display:none; }
  .table .entity .name, .table .entity .meta { max-width:170px; }
  .table .domain .host { max-width:170px; }
  .table .owner { max-width:160px; }
}
@media (min-width:721px) and (max-width:1199px){
  .table .col-owner { display:none; }
  .table .domain .host { max-width:150px; }
}
@media (max-width:720px){
  .table-wrap { overflow:visible; }
  .table .entity .name, .table .entity .meta, .table .owner, .table .domain .host { max-width:none; }
  .table .btn-icon { width:auto; padding:0 10px; }
  .table .btn-icon .lbl { display:inline; }
}
.btn-icon .lbl { display:none; }

/* ---------- Mobil ince ayar ---------- */
@media (max-width:720px){
  .toolbar .spacer { display:none; }
  .toolbar > form { width:100%; flex-wrap:nowrap; }
  .toolbar > form .search { flex:1; width:auto; }
  .toolbar > form .search input { min-width:0; max-width:none; }
  .segmented { overflow-x:auto; }
  .segmented a { white-space:nowrap; }
  .kpis { gap:10px; }
  .kpi { padding:13px 14px; gap:11px; }
  .kpi .ico { width:32px; height:32px; font-size:15px; }
  .kpi .value { font-size:21px; }
  .pf-head .btn-primary { width:100%; }
  .table td.cell-actions { width:100%; white-space:normal; }
  .facts { grid-template-columns:1fr; }
  .facts > div, .facts > div:nth-child(2) { border-right:0; border-bottom:1px solid var(--line-2); }
  .facts > div:last-child { border-bottom:0; }
  .facts dd { white-space:normal; overflow-wrap:anywhere; }
}

/* ---------- Paket seçimi ---------- */
.pkg-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.pkg-option { position:relative; display:flex; flex-direction:column; gap:4px; padding:16px 18px; border:1px solid var(--line); border-radius:var(--radius);
  background:var(--surface); cursor:pointer; transition:border-color .12s, background .12s, box-shadow .12s; }
.pkg-option:hover { border-color:var(--brand-line); }
.pkg-option > input { position:absolute; opacity:0; width:1px; height:1px; }
.pkg-option:has(input:checked) { border-color:var(--brand); background:var(--brand-bg); box-shadow:inset 0 0 0 1px var(--brand); }
.pkg-option:has(input:focus-visible) { box-shadow:var(--focus); }
.pkg-head { display:flex; align-items:center; gap:8px; }
.pkg-head b { font-size:15px; font-weight:650; }
.pkg-tick { margin-left:auto; color:var(--brand); font-size:17px; visibility:hidden; }
.pkg-option:has(input:checked) .pkg-tick { visibility:visible; }
.pkg-option small { color:var(--muted); font-size:12.5px; }
.pkg-list { list-style:none; margin:10px 0 0; padding:0; display:grid; gap:6px; font-size:13px; color:var(--ink-2); }
.pkg-list li { display:flex; align-items:center; gap:8px; }
.pkg-list i { color:var(--ok); font-size:14px; flex:0 0 auto; }
.pkg-features { display:none; margin-top:18px; padding-top:18px; border-top:1px solid var(--line-2); }
.pkg-features > .f { display:block; font-size:12.5px; font-weight:600; color:var(--ink-2); margin-bottom:8px; }
#packageForm:has(#packagePremium:checked) .pkg-features { display:block; }
.module-option.is-soon { cursor:not-allowed; color:var(--muted); background:var(--surface-2); }
.module-option.is-soon:hover { border-color:var(--line); }
.module-option.is-soon .badge { margin-left:auto; }
.module-option.is-soon .switch input { cursor:not-allowed; }

/* ---------- Lisans ve tahsilat ---------- */
.lic-tabs { margin-bottom:18px; }
.lic-message { margin:0 0 14px; color:var(--ink-2); }
.kpis-3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.kpi .value.value-sm { font-size:18px; letter-spacing:-.2px; line-height:1.3; }
.validation-summary-valid { display:none; }
.validation-summary-errors ul { margin:0; padding-left:18px; }
.rule-list .n i { font-size:12px; }
.kv-stack > div { grid-template-columns:1fr; gap:2px; }
.timeline { list-style:none; margin:0; padding:8px 20px; }
.timeline li { position:relative; display:flex; gap:14px; padding:12px 0; }
.timeline li:not(:last-child)::before { content:""; position:absolute; left:4px; top:26px; bottom:-12px; width:1px; background:var(--line); }
.timeline-dot { width:9px; height:9px; margin-top:6px; border-radius:50%; background:var(--brand); box-shadow:0 0 0 3px var(--brand-bg); flex:0 0 auto; }
.timeline-body { min-width:0; flex:1; }
.timeline-head { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.timeline-head b { font-weight:600; overflow-wrap:anywhere; }
.timeline-diff { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:4px 0; font-size:12.5px; color:var(--muted); }
.timeline-diff .to { color:var(--ink); font-weight:500; }
.timeline-body small { color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.ledger .num { text-align:right; font-variant-numeric:tabular-nums; font-weight:600; white-space:nowrap; }
.ledger .num.neg { color:var(--danger); }
.ledger td small { display:block; font-size:11.5px; color:var(--muted); margin-top:2px; }
.ledger .ledger-note { min-width:220px; overflow-wrap:anywhere; }
.ledger .ledger-state { min-width:180px; }
.ledger .reverse { margin-top:6px; }
.ledger .reverse summary { cursor:pointer; font-size:12.5px; font-weight:600; color:var(--ink-2); }
.ledger .reverse form { margin-top:8px; display:grid; gap:6px; justify-items:start; white-space:normal; }
.ledger .reverse textarea { width:100%; }
.pager { display:flex; align-items:center; gap:8px; }
.pager .spacer { flex:1; }
@media (max-width:720px){
  .pkg-grid, .kpis-3 { grid-template-columns:1fr; }
  .ledger td.num { text-align:right; }
  .ledger td.ledger-note, .ledger td.ledger-state { display:block; }
  .ledger td.ledger-note::before, .ledger td.ledger-state::before { display:block; margin-bottom:3px; }
}

/* İletişim talepleri */
.lead-text { white-space:pre-wrap; overflow-wrap:anywhere; margin:0; font-size:13.5px; line-height:1.55; }
.lead-msg-preview { display:block; max-width:420px; color:var(--muted); font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
