/* LinkBot Panel — tek dosya stil. Renkler :root değişkenlerinde; koyu tema otomatik. */

:root {
  --bg: #f4f6fb;
  --bg-grad: radial-gradient(1200px 600px at 10% -10%, #e0e7ff 0%, transparent 60%),
             radial-gradient(900px 500px at 110% 0%, #fce7f3 0%, transparent 55%);
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;

  --primary: #4f46e5;
  --primary-2: #7c3aed;
  --primary-ink: #ffffff;
  --success: #059669;
  --success-soft: #d1fae5;
  --danger: #e11d48;
  --danger-soft: #ffe4e6;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --info: #0284c7;
  --info-soft: #e0f2fe;
  --violet-soft: #ede9fe;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);

  /* Telegram önizleme renkleri */
  --tg-bg: linear-gradient(180deg, #c9d9e8 0%, #b4c9dc 100%);
  --tg-bubble: #ffffff;
  --tg-text: #0f172a;
  --tg-link: #2563eb;
  --tg-btn: #ffffff;
  --tg-btn-border: #cbd5e1;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020;
    --bg-grad: radial-gradient(1200px 600px at 10% -10%, #1e1b4b 0%, transparent 60%),
               radial-gradient(900px 500px at 110% 0%, #3b0764 0%, transparent 55%);
    --surface: #111827;
    --surface-2: #0f172a;
    --border: #1f2a44;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --success-soft: #064e3b;
    --danger-soft: #4c0519;
    --warn-soft: #451a03;
    --info-soft: #082f49;
    --violet-soft: #2e1065;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    --tg-bg: linear-gradient(180deg, #0e1621 0%, #17212b 100%);
    --tg-bubble: #182533;
    --tg-text: #e6edf3;
    --tg-link: #6ab3f3;
    --tg-btn: #22303f;
    --tg-btn-border: #2d3e52;
  }
}

:root[data-theme="dark"] {
  --bg: #0b1020;
  --bg-grad: radial-gradient(1200px 600px at 10% -10%, #1e1b4b 0%, transparent 60%),
             radial-gradient(900px 500px at 110% 0%, #3b0764 0%, transparent 55%);
  --surface: #111827;
  --surface-2: #0f172a;
  --border: #1f2a44;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --success-soft: #064e3b;
  --danger-soft: #4c0519;
  --warn-soft: #451a03;
  --info-soft: #082f49;
  --violet-soft: #2e1065;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  --tg-bg: linear-gradient(180deg, #0e1621 0%, #17212b 100%);
  --tg-bubble: #182533;
  --tg-text: #e6edf3;
  --tg-link: #6ab3f3;
  --tg-btn: #22303f;
  --tg-btn-border: #2d3e52;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-grad), var(--bg);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.hidden { display: none !important; }
.muted { color: var(--muted); }
.error { color: var(--danger); font-weight: 600; margin: 8px 0; }
small { color: var(--muted); }
code, .mono { font-family: ui-monospace, Consolas, "Courier New", monospace; font-size: .85em; }

/* ── BUTONLAR ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 12px; padding: 10px 16px;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
  text-decoration: none; white-space: nowrap; user-select: none;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 6px 16px rgba(79, 70, 229, .3); }
.btn-success { color: #fff; background: linear-gradient(135deg, #10b981, var(--success)); box-shadow: 0 6px 16px rgba(5, 150, 105, .25); }
.btn-danger  { color: #fff; background: linear-gradient(135deg, #fb7185, var(--danger)); box-shadow: 0 6px 16px rgba(225, 29, 72, .25); }
.btn-warn    { color: #fff; background: linear-gradient(135deg, #fbbf24, var(--warn)); box-shadow: 0 6px 16px rgba(217, 119, 6, .25); }
.btn-info    { color: #fff; background: linear-gradient(135deg, #38bdf8, var(--info)); box-shadow: 0 6px 16px rgba(2, 132, 199, .25); }
.btn-ghost   { color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.btn-soft    { color: var(--primary); background: var(--violet-soft); }
.icon-btn {
  border: 0; background: transparent; color: var(--muted); font-size: 1.1rem;
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ── FORM ─────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--muted); }
input[type="text"], input[type="password"], input[type="url"], input:not([type]), textarea, select {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 120px; resize: vertical; font-family: ui-monospace, Consolas, monospace; }
input:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(79, 70, 229, .15); }
input[type="file"] { font: inherit; color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row > input { flex: 1 1 200px; }
.stack > * + * { margin-top: 12px; }

/* ── KART / BAŞLIK ────────────────────────────────────── */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 8px 0 20px; }
.page-head h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px;
}
.card h3 { margin: 0 0 12px; font-size: 1.05rem; }
.grid { display: grid; gap: 16px; }
.grid-stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.grid-sites { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.stat {
  border-radius: var(--radius); padding: 18px; color: #fff; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.stat .num { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.stat .lbl { opacity: .9; font-size: .9rem; font-weight: 600; }
.stat::after { content: ""; position: absolute; right: -20px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.15); }
.stat-indigo { background: linear-gradient(135deg, #6366f1, #4338ca); }
.stat-emerald { background: linear-gradient(135deg, #34d399, #059669); }
.stat-amber { background: linear-gradient(135deg, #fbbf24, #d97706); }
.stat-rose { background: linear-gradient(135deg, #fb7185, #e11d48); }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar input { flex: 1 1 240px; max-width: 420px; }
.toolbar .spacer { flex: 1; }

/* ── SİTE KARTI ───────────────────────────────────────── */
.site-card {
  cursor: pointer; text-align: left; font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, border-color .2s, box-shadow .2s;
}
.site-card:hover { transform: translateY(-2px); border-color: var(--primary); }
.site-card .name { font-weight: 800; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.site-card .link { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: .75rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.badge-img { background: var(--info-soft); color: var(--info); }
.badge-btn { background: var(--violet-soft); color: #7c3aed; }
.badge-ok { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

.empty { text-align: center; padding: 36px 16px; color: var(--muted); border: 2px dashed var(--border); border-radius: var(--radius); }
.empty .big { font-size: 2.2rem; }

/* ── TABLO / LİSTE ────────────────────────────────────── */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1 1 200px; min-width: 0; }
.list-item .title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.list-item .sub { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; }

.chip-toggle {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
  padding: 7px 14px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer;
  transition: all .2s;
}
.chip-toggle.on-admin { background: linear-gradient(135deg, #fbbf24, #f59e0b); border-color: transparent; color: #422006; box-shadow: 0 4px 12px rgba(245, 158, 11, .35); }
.chip-toggle.on-member { background: linear-gradient(135deg, #34d399, #10b981); border-color: transparent; color: #022c22; box-shadow: 0 4px 12px rgba(16, 185, 129, .35); }
.chip-toggle:hover { filter: brightness(1.05); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* ── ÜST ÇUBUK ────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px; padding: 12px 20px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: -.01em; }
.brand small { display: block; margin-top: -2px; }
.logo {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem;
  background: linear-gradient(135deg, #6366f1, #d946ef); box-shadow: 0 6px 16px rgba(99, 102, 241, .4);
}
.nav { display: flex; gap: 6px; flex: 1; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 700; font-size: .9rem;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap; transition: all .2s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 6px 14px rgba(79, 70, 229, .3); }

.container { max-width: 1240px; margin: 0 auto; padding: 22px 18px 60px; }

/* ── GİRİŞ ────────────────────────────────────────────── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-card {
  width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 32px 28px; box-shadow: var(--shadow); text-align: center;
}
.login-logo {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; font-size: 1.8rem;
  background: linear-gradient(135deg, #6366f1, #d946ef); box-shadow: 0 10px 24px rgba(99, 102, 241, .4);
}
.login-card h1 { margin: 0 0 6px; font-size: 1.4rem; }
.login-card .field { text-align: left; }

/* ── YAN PANEL / MODAL ────────────────────────────────── */
.drawer, .modal { position: fixed; inset: 0; z-index: 50; }
.drawer-backdrop, .modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, .55); backdrop-filter: blur(3px); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(960px, 100%);
  background: var(--bg); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.drawer-head h2 { margin: 0; font-size: 1.15rem; }
.drawer-body { overflow-y: auto; padding: 20px; flex: 1; }
.modal { display: grid; place-items: center; padding: 16px; }
.modal-card {
  position: relative; width: min(520px, 100%); background: var(--surface);
  border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35);
  overflow: hidden; animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-card > div:last-child { padding: 18px 20px 20px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }

.drawer-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .drawer-grid { grid-template-columns: 1fr; } }
.section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.section h3 { margin: 0 0 10px; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.section h3 .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-indigo { background: #6366f1; } .dot-emerald { background: #10b981; } .dot-amber { background: #f59e0b; } .dot-rose { background: #f43f5e; } .dot-sky { background: #0ea5e9; }
.preview-sticky { position: sticky; top: 0; }

/* ── TELEGRAM ÖNİZLEME ────────────────────────────────── */
.phone {
  border-radius: 28px; padding: 12px; background: #0b0f14; box-shadow: 0 20px 50px rgba(15,23,42,.35);
}
.phone-screen { border-radius: 18px; background: var(--tg-bg); padding: 14px 12px 18px; min-height: 280px; }
.phone-top { font-size: .75rem; color: #64748b; text-align: center; margin-bottom: 10px; }
.tg-bubble {
  background: var(--tg-bubble); color: var(--tg-text); border-radius: 14px 14px 14px 4px;
  padding: 6px; max-width: 100%; box-shadow: 0 1px 2px rgba(0,0,0,.12); overflow: hidden;
}
.tg-photo { display: block; width: 100%; height: auto; border-radius: 10px; max-height: 260px; object-fit: cover; background: #0f172a22; }
.tg-photo-empty { height: 130px; border-radius: 10px; display: grid; place-items: center; background: rgba(100,116,139,.15); color: var(--muted); font-size: .8rem; }
.tg-text { padding: 6px 8px 4px; font-size: .95rem; line-height: 1.4; word-break: break-word; }
.tg-text b { font-weight: 700; }
.tg-link { color: var(--tg-link); word-break: break-all; font-size: .9rem; margin-top: 2px; }
.tg-card {
  margin: 4px 2px 6px; border-left: 3px solid var(--tg-link); background: rgba(100,116,139,.08);
  border-radius: 8px; padding: 8px 10px;
}
.tg-card .site { color: var(--tg-link); font-size: .8rem; font-weight: 600; }
.tg-card .ttl { font-weight: 700; font-size: .92rem; margin-top: 2px; }
.tg-card .dsc { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.tg-kb { display: flex; flex-direction: column; gap: 5px; margin-top: 6px; }
.tg-row { display: flex; gap: 5px; }
.tg-row > * { flex: 1 1 0; min-width: 0; }
.tg-btn {
  display: block; text-align: center; padding: 9px 10px; border-radius: 9px;
  background: var(--tg-btn); border: 1px solid var(--tg-btn-border); color: var(--tg-link);
  font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Telegram buton renkleri: primary=mavi, success=yeşil, danger=kırmızı */
.tg-btn.st-primary, .mini-btn.st-primary { background: #3b82f6; color: #fff; border-color: transparent; }
.tg-btn.st-success, .mini-btn.st-success { background: #22c55e; color: #fff; border-color: transparent; }
.tg-btn.st-danger,  .mini-btn.st-danger  { background: #ef4444; color: #fff; border-color: transparent; }
.tg-time { font-size: .7rem; color: var(--muted); text-align: right; padding: 4px 6px 0; }
.preview-note { font-size: .78rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }

/* ── RENK / SEÇİM BİLEŞENLERİ ─────────────────────────── */
.sw-default { --sw: #94a3b8; }
.sw-primary { --sw: #3b82f6; }
.sw-success { --sw: #22c55e; }
.sw-danger  { --sw: #ef4444; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .88rem;
  background: var(--surface-2); color: var(--text); border: 2px solid var(--border); transition: all .15s;
}
.swatch .sw-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.swatch.sel { border-color: var(--sw); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sw) 25%, transparent); }
.cdot { width: 14px; height: 14px; border-radius: 50%; background: var(--sw); flex: none; }

.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.radio-card {
  display: flex; align-items: flex-start; gap: 10px; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 14px; font: inherit; color: var(--text);
  background: var(--surface-2); border: 2px solid var(--border); transition: all .15s;
}
.radio-card:hover { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.radio-card .rc-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); flex: none; margin-top: 2px; }
.radio-card .rc-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.radio-card small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radio-card.sel { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.radio-card.sel .rc-dot { border-color: var(--primary); background: radial-gradient(circle, var(--primary) 45%, transparent 50%); }
.link-wrap { margin-top: 8px; }

.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.preset {
  cursor: pointer; font: inherit; font-weight: 700; font-size: .88rem; text-align: left;
  padding: 11px 12px; border-radius: 12px; color: var(--text);
  background: var(--surface-2); border: 2px solid var(--border); border-left: 6px solid var(--sw, var(--border));
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: all .15s;
}
.preset:hover { transform: translateY(-1px); }
.preset.sel { border-color: var(--primary); border-left-color: var(--sw, var(--primary)); background: color-mix(in srgb, var(--primary) 8%, var(--surface)); }
.preset-custom { border-left-color: var(--primary); border-style: dashed; border-left-style: solid; }

.form-box { border: 2px dashed color-mix(in srgb, var(--primary) 40%, var(--border)); border-radius: 16px; padding: 16px; background: var(--surface); margin: 8px 0; }
.big-input { font-size: 1.1rem !important; padding: 14px 16px !important; }
.btn-lg { padding: 13px 22px; font-size: 1rem; border-radius: 14px; }
.small { font-size: .82rem; }
.mt { margin-top: 12px; }

/* ── RESİM SEÇME ──────────────────────────────────────── */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 22px 16px; margin: 10px 0; text-align: center; cursor: pointer;
  border: 2px dashed var(--border); border-radius: 16px; background: var(--surface-2); transition: all .15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.dz-icon { font-size: 2rem; }
.thumb-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.thumb { width: 120px; height: 90px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); }
.big-thumb { display: block; max-width: 100%; max-height: 300px; border-radius: 14px; border: 1px solid var(--border); }
details.more { margin-top: 4px; }
details.more summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: .88rem; padding: 6px 0; }
details.more > *:not(summary) { margin-top: 8px; }

/* ── BUTON LİSTESİ ────────────────────────────────────── */
.btn-item { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--border); }
.btn-item:last-of-type { border-bottom: 0; }
.btn-item .grow { flex: 1; min-width: 0; }
.btn-item .title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-item .sub { color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acts { display: flex; gap: 4px; flex: none; }
.icon-act {
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: .9rem;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
}
.icon-act:hover:not(:disabled) { border-color: var(--primary); }
.icon-act:disabled { opacity: .35; cursor: not-allowed; }
.icon-act.danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.section-danger { border-color: rgba(225, 29, 72, .35); }

/* ── SİTE KARTI (mini önizleme) ───────────────────────── */
.card-top { display: flex; gap: 12px; align-items: center; }
.card-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; border: 1px solid var(--border); }
.empty-thumb { display: grid; place-items: center; background: var(--surface-2); font-size: 1.3rem; }
.card-info { min-width: 0; }
.card-info .cmd { font-family: ui-monospace, Consolas, monospace; font-size: .82rem; color: var(--primary); font-weight: 700; }
.mini-kb { display: flex; flex-direction: column; gap: 4px; }
.mini-btn {
  display: block; text-align: center; padding: 6px 8px; border-radius: 8px; font-size: .78rem; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-foot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.edit-hint { margin-left: auto; color: var(--primary); font-weight: 700; font-size: .85rem; }

/* ── YARDIM ŞERİDİ ────────────────────────────────────── */
.helper { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.helper-step { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.helper-step .num {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none;
  color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.helper-step b { display: block; }
.bulk-area { margin-top: 34px; padding-top: 22px; border-top: 2px dashed var(--border); }
.bulk-title { margin: 0 0 4px; font-size: 1.25rem; }
.bulk-area > p { margin: 0 0 14px; }

/* ── SİHİRBAZ ─────────────────────────────────────────── */
.modal-card.wide { width: min(1040px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.modal-card.wide > div:last-child { overflow-y: auto; }
.wiz { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
.wiz-side { position: sticky; top: 0; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.step-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .88rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border); cursor: default;
}
.step-pill .sn { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--border); color: var(--text); font-size: .8rem; }
.step-pill.active { color: var(--text); border-color: var(--primary); }
.step-pill.active .sn { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.step-pill.done { cursor: pointer; color: var(--success); }
.step-pill.done .sn { background: var(--success); color: #fff; }
.wiz-q { margin: 0; font-size: 1.3rem; letter-spacing: -.01em; }
.wiz-body { min-height: 260px; }
.wiz-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.hint { background: var(--info-soft); color: var(--text); border-radius: 12px; padding: 12px 14px; font-size: .9rem; }
.cmd-demo { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.cmd-demo code { background: var(--surface); border: 1px solid var(--border); padding: 5px 10px; border-radius: 8px; font-weight: 700; color: var(--primary); }
@media (max-width: 900px) {
  .wiz { grid-template-columns: 1fr; }
  .wiz-side { position: static; }
}

/* ── BOT DURUMU ───────────────────────────────────────── */
.bot-chip {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--border);
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }
.bot-chip.ok { color: var(--success); border-color: color-mix(in srgb, var(--success) 40%, var(--border)); }
.bot-chip.ok .status-dot { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); animation: pulse 2s infinite; }
.bot-chip.warn { color: var(--warn); }
.bot-chip.warn .status-dot { background: #f59e0b; }
.bot-chip.off { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.bot-chip.off .status-dot { background: #ef4444; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
.bot-hero {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 22px;
  border-radius: var(--radius); background: var(--surface); border: 2px solid var(--border); box-shadow: var(--shadow);
}
.bot-hero.ok { border-color: color-mix(in srgb, #22c55e 55%, var(--border)); }
.bot-hero.off { border-color: color-mix(in srgb, #ef4444 55%, var(--border)); }
.bot-hero.warn { border-color: color-mix(in srgb, #f59e0b 55%, var(--border)); }
.bot-hero .grow { flex: 1 1 240px; }
.bot-hero-icon { font-size: 2.4rem; }
.bot-hero-title { font-size: 1.4rem; font-weight: 800; }
.bot-facts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; font-size: .85rem; color: var(--muted); }
.warn-hint { background: var(--warn-soft); }
.log-box {
  margin: 0; max-height: 360px; overflow: auto; padding: 14px; border-radius: 12px;
  background: #0b1020; color: #cbd5e1; font-size: .78rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
@media (max-width: 720px) { .bot-chip .chip-text { display: none; } }

/* ── DİĞER ────────────────────────────────────────────── */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }
.toasts { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: calc(100% - 36px); }
.toast-item {
  padding: 12px 16px; border-radius: 12px; color: #fff; font-weight: 600; box-shadow: 0 12px 30px rgba(0,0,0,.25);
  animation: pop .2s ease; max-width: 420px;
}
.toast-ok { background: linear-gradient(135deg, #10b981, #059669); }
.toast-err { background: linear-gradient(135deg, #fb7185, #e11d48); }
.result-list { font-size: .88rem; max-height: 160px; overflow: auto; color: var(--danger); }

/* ── MOBİL ────────────────────────────────────────────── */
@media (max-width: 720px) {
  .topbar { flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .topbar .nav { order: 3; width: 100%; flex: none; }
  .container { padding: 16px 14px 60px; }
  .page-head h1 { font-size: 1.35rem; }
  .drawer-panel { width: 100%; }
  .btn { padding: 11px 14px; }
}
