/* ==========================================================
   TD Admin — ana sitedeki tasarım dili (Inter, #0f172a, cam header)
   Açık / Koyu / Sistem tema: html[data-theme] + .is-dark
   ========================================================== */
:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --bg-grad: linear-gradient(180deg, #f1f5f9 0%, #e8ecf2 100%);
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e2e8f0;
  --border-2: #cbd5e1;
  --text: #0f172a;
  --text-2: #334155;
  --text-3: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --faintest: #cbd5e1;
  --primary: #0f172a;
  --on-primary: #ffffff;
  --primary-shadow: 0 4px 16px rgba(15,23,42,0.2);
  --hover: rgba(15,23,42,0.05);
  --hover-2: rgba(15,23,42,0.03);
  --header-bg: rgba(255,255,255,0.78);
  --header-border: rgba(203,213,225,0.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.07);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.04);
  --overlay: rgba(15,23,42,.35);
  --row-hover: #fafbfc;
  --focus: #3b82f6;
  --focus-ring: 0 4px 20px rgba(59,130,246,0.08);
  --ok-bg: #f0fdf4;   --ok-bd: #dcfce7;  --ok-tx: #15803d;
  --err-bg: #fef2f2;  --err-bd: #fee2e2; --err-tx: #b91c1c;
  --info-bg: #eff6ff; --info-bd: #dbeafe; --info-tx: #1d4ed8;
  --danger-bg: #fef2f2; --danger-bg-h: #fee2e2; --danger: #ef4444;
  --toast-bg: #0f172a; --toast-tx: #fff;
}
/* Koyu tema — hem manuel "dark" hem de sistem koyu iken */
html.is-dark {
  color-scheme: dark;
  --bg: #0b1120;
  --bg-grad: linear-gradient(180deg, #0b1120 0%, #0f172a 100%);
  --surface: #111a2e;
  --surface-2: #0f1729;
  --surface-3: #1e293b;
  --border: #1e293b;
  --border-2: #334155;
  --text: #f1f5f9;
  --text-2: #cbd5e1;
  --text-3: #94a3b8;
  --muted: #94a3b8;
  --faint: #64748b;
  --faintest: #475569;
  --primary: #f1f5f9;
  --on-primary: #0f172a;
  --primary-shadow: 0 4px 16px rgba(241,245,249,0.12);
  --hover: rgba(255,255,255,0.06);
  --hover-2: rgba(255,255,255,0.04);
  --header-bg: rgba(11,17,32,0.78);
  --header-border: rgba(51,65,85,0.5);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.45);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.3);
  --overlay: rgba(2,6,23,.6);
  --row-hover: #131e35;
  --focus: #60a5fa;
  --focus-ring: 0 4px 20px rgba(96,165,250,0.12);
  --ok-bg: rgba(34,197,94,.1);   --ok-bd: rgba(34,197,94,.2);  --ok-tx: #4ade80;
  --err-bg: rgba(239,68,68,.1);  --err-bd: rgba(239,68,68,.2); --err-tx: #f87171;
  --info-bg: rgba(59,130,246,.1); --info-bd: rgba(59,130,246,.2); --info-tx: #60a5fa;
  --danger-bg: rgba(239,68,68,.12); --danger-bg-h: rgba(239,68,68,.2); --danger: #f87171;
  --toast-bg: #f1f5f9; --toast-tx: #0f172a;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg); }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; transition: background .25s, color .25s; }
a { color: inherit; }
button, input, select, textarea { font-family: 'Inter', sans-serif; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.container { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== LOGO (sitedekiyle aynı) ===== */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-icon { width: 34px; height: 34px; border-radius: 10px; background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: var(--on-primary); flex-shrink: 0; }
.logo-text { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.logo-text span { font-weight: 300; }
.logo-tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--primary); color: var(--on-primary); margin-left: 2px; }

/* ===== SIDEBAR ===== */
:root { --sb-w: 264px; --sb-w-mini: 76px; --top-h: 70px; }
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sb-w); z-index: 1100;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: width .22s ease, transform .22s ease;
}
.sb-head { height: var(--top-h); display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.sb-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 14px 12px; scrollbar-width: thin; }
.sb-section + .sb-section { margin-top: 18px; }
.sb-title { font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 0 12px 8px; white-space: nowrap; }
.sb-link {
  position: relative; display: flex; align-items: center; gap: 12px;
  height: 42px; padding: 0 12px; margin-bottom: 2px;
  font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: none;
  border-radius: 10px; cursor: pointer; white-space: nowrap; width: 100%; background: none; border: none; text-align: left;
  transition: color .18s, background .18s;
}
.sb-link > .ti:first-child { font-size: 19px; flex-shrink: 0; width: 20px; text-align: center; }
.sb-link .sb-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sb-link .sb-badge { font-size: 10.5px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 20px; background: var(--surface-3); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.sb-link .sb-badge.live { background: var(--ok-bd); color: var(--ok-tx); }
.sb-link .sb-arrow { font-size: 14px; transition: transform .2s; }
.sb-link:hover { color: var(--text); background: var(--hover); }
.sb-link.active { color: var(--on-primary); background: var(--primary); font-weight: 600; }
.sb-link.active .sb-badge { background: rgba(127,127,127,.25); color: var(--on-primary); }
.sb-group.open > .sb-link .sb-arrow { transform: rotate(90deg); }
.sb-group.child-active > .sb-link { color: var(--text); }
.sb-sub { display: none; padding: 2px 0 6px 22px; position: relative; }
.sb-sub::before { content: ''; position: absolute; left: 21px; top: 4px; bottom: 10px; width: 1px; background: var(--border); }
.sb-group.open > .sb-sub { display: block; }
.sb-sub a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px 0 18px; font-size: 13px; color: var(--muted); text-decoration: none; border-radius: 9px; white-space: nowrap; position: relative; }
.sb-sub a .ti { font-size: 16px; color: var(--faint); }
.sb-sub a:hover { color: var(--text); background: var(--hover); }
.sb-sub a.active { color: var(--text); font-weight: 600; background: var(--hover); }
.sb-sub a.active::before { content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--focus); }
.sb-collapse { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; transition: background .18s, color .18s; }
.sb-collapse:hover { color: var(--text); background: var(--hover); }
.sb-overlay { display: none; }

/* mini (daraltılmış) sidebar */
html.sb-mini .sidebar { width: var(--sb-w-mini); }
html.sb-mini .sb-head { padding: 0; justify-content: center; }
html.sb-mini .sb-head .logo-text, html.sb-mini .sb-head .logo-tag, html.sb-mini .sb-head .sb-collapse { display: none; }
html.sb-mini .sb-title { text-align: center; padding: 0 0 8px; font-size: 0; }
html.sb-mini .sb-title::after { content: '•••'; font-size: 10px; letter-spacing: 2px; }
html.sb-mini .sb-link { justify-content: center; padding: 0; }
html.sb-mini .sb-link .sb-text, html.sb-mini .sb-link .sb-badge, html.sb-mini .sb-link .sb-arrow, html.sb-mini .sb-link .live-dot { display: none; }
html.sb-mini .sb-sub { display: none !important; }
html.sb-mini .sb-link[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  background: var(--toast-bg); color: var(--toast-tx); font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; z-index: 5; pointer-events: none;
}

/* ===== ANA ALAN & TOPBAR ===== */
.app-main { margin-left: var(--sb-w); min-height: 100vh; transition: margin-left .22s ease; }
html.sb-mini .app-main { margin-left: var(--sb-w-mini); }
.topbar {
  position: sticky; top: 0; z-index: 1000; height: var(--top-h);
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--header-border);
}
.topbar-inner { height: var(--top-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tb-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tb-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); min-width: 0; white-space: nowrap; }
.crumbs .ti { font-size: 14px; }
.crumbs strong { color: var(--text); font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }

.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(6px);
  margin-top: 6px; min-width: 210px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 20;
  opacity: 0; visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.dropdown::before { content: ''; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.dropdown.open { opacity: 1; visibility: visible; }
.dropdown-right { right: 0; left: auto; transform: translateX(0) translateY(6px); }
.dropdown-right.open { transform: translateX(0) translateY(0); }
.dropdown .divider { border-top: 1px solid var(--border); margin: 4px 0; }
.dropdown h6.dd-title { font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; padding: 8px 12px 4px; }
.dropdown-item { position: relative; }
.dropdown-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; font-size: 13px; font-weight: 500;
  color: var(--text-2); text-decoration: none; border-radius: 9px;
  transition: background 0.18s, color 0.18s; cursor: pointer;
  width: 100%; background: none; border: none; text-align: left;
}
.dropdown-item:hover > .dropdown-link { background: var(--hover); color: var(--text); }
.dropdown-link .ti { font-size: 16px; color: var(--faint); }
.dropdown-item:hover > .dropdown-link .ti { color: var(--text); }
.dropdown-link .check-ic { margin-left: auto; color: var(--text) !important; opacity: 0; }
.dropdown-link.selected { color: var(--text); font-weight: 600; }
.dropdown-link.selected .check-ic { opacity: 1; }
.dropdown-link .lang-code { width: 26px; height: 20px; border-radius: 5px; background: var(--surface-3); color: var(--text-3); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; letter-spacing: .03em; }
.dropdown-link.danger, .dropdown-link.danger .ti { color: var(--danger); }

.notif-wrap { width: 360px; padding: 0; overflow: hidden; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 0; }
.notif-head h6 { font-size: 15px; font-weight: 700; color: var(--text); }
.notif-head button { font-size: 12px; font-weight: 600; color: var(--text); background: none; border: none; cursor: pointer; }
.notif-scroll { max-height: 340px; overflow-y: auto; padding: 8px 10px 10px; }
.notif-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px; margin-bottom: 6px; background: var(--surface-2); border-radius: 12px; border: 1px solid transparent; text-decoration: none; transition: background 0.18s; }
.notif-card:hover { background: var(--surface-3); }
.nc-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.notif-card .nc-body p { font-size: 13px; color: var(--text-2); line-height: 1.4; }
.nc-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.nc-meta span { font-size: 11px; color: var(--faint); }
.nc-meta .nc-badge { font-size: 10px; font-weight: 600; padding: 1px 8px; border-radius: 20px; background: var(--border); color: var(--text-3); }
.notif-card.unread { background: var(--surface); border-color: var(--border); }
.notif-card.unread .nc-body p { font-weight: 600; color: var(--text); }
.notif-empty { padding: 30px 12px; text-align: center; color: var(--faint); font-size: 13px; }
.notif-empty .ti { display: block; font-size: 34px; color: var(--faintest); margin-bottom: 8px; }

.action-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: none; background: transparent; border-radius: 10px; cursor: pointer; color: var(--muted); font-size: 21px; transition: background 0.2s, color 0.2s; flex-shrink: 0; }
.action-btn:hover { background: var(--hover); color: var(--text); }
.action-btn .badge { position: absolute; top: 2px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; background: var(--primary); color: var(--on-primary); font-size: 9.5px; font-weight: 700; border-radius: 20px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--surface); }
.action-btn .badge[data-count="0"] { display: none; }
.action-btn .lang-txt { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; }
.acc-trigger { position: relative; }
.acc-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 6px; border: 1.5px solid var(--border); background: transparent; border-radius: 12px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); transition: border-color 0.2s, background 0.2s; }
.acc-btn:hover { border-color: var(--border-2); background: var(--hover-2); }
.acc-btn .ti { font-size: 15px; color: var(--muted); }
.avatar { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.avatar.md { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
.avatar.lg { width: 44px; height: 44px; border-radius: 12px; font-size: 15px; }
.acc-dropdown { min-width: 240px; }
.acc-dropdown .dropdown-link .ti { width: 18px; text-align: center; }
.acc-profile { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.acc-profile h6 { font-size: 14px; font-weight: 600; color: var(--text); }
.acc-profile p { font-size: 12px; color: var(--muted); }

/* ===== BUTONLAR ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 20px;
  font-size: 13px; font-weight: 600;
  border-radius: 10px; text-decoration: none; cursor: pointer; border: none; white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s, opacity .2s;
}
.btn .ti { font-size: 16px; }
.btn-outline { background: transparent; color: var(--text-3); border: 1.5px solid var(--border-2); }
.btn-outline:hover { border-color: var(--text); color: var(--text); background: var(--hover); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { box-shadow: var(--primary-shadow); }
.btn-danger { background: var(--danger-bg); color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg-h); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--hover); color: var(--text); }
.btn-lg { height: 48px; padding: 0 32px; font-size: 14.5px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; border: none; background: transparent; cursor: pointer; color: var(--faint); font-size: 16px; display: inline-flex; align-items: center; justify-content: center; transition: background .18s, color .18s; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.danger:hover { background: var(--danger-bg-h); color: var(--danger); }
.icon-btn.selected { background: var(--primary); color: var(--on-primary); }

/* ===== SAYFA ===== */
.main { padding: 28px 0 56px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; }
.page-head p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.hl { background: linear-gradient(135deg, #3b82f6, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
html.is-dark .hl { background-image: linear-gradient(135deg, #60a5fa, #a78bfa); }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px 5px 8px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 40px; font-size: 12px; font-weight: 500; color: var(--text-3); margin-bottom: 14px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; display: inline-block; }
.pill .dot.warn { background: #eab308; }

/* ===== KART ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
/* Ardisik kartlar birbirine yapismasin (tek karti sayfalarda bosluk olmaz) */
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 22px 0; }
.card-head h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-head h3 .ti { font-size: 18px; color: var(--faint); }
.card-head small { font-size: 12px; color: var(--faint); }
.card-body { padding: 18px 22px 22px; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-dash { grid-template-columns: 1.65fr 1fr; align-items: start; }

/* stat kartları (hero'daki .ac) */
.stat { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: transform .2s, box-shadow .2s; text-decoration: none; display: block; }
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat .s-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.stat .s-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.stat .s-trend { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px; background: var(--surface-3); color: var(--muted); }
.stat .s-trend.up { background: var(--ok-bd); color: var(--ok-tx); }
.stat .s-trend.down { background: var(--err-bd); color: var(--err-tx); }
.stat strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.stat span { font-size: 12.5px; color: var(--faint); }


/* liste */
.list { display: flex; flex-direction: column; gap: 6px; }
.list-row { display: flex; gap: 12px; align-items: center; padding: 11px 12px; background: var(--surface-2); border-radius: 12px; }
.list-row .lr-body { flex: 1; min-width: 0; }
.list-row .lr-body p { font-size: 13px; color: var(--text-2); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; }
.list-row .lr-body small { font-size: 11px; color: var(--faint); }
.list-row .lr-side { font-size: 11px; color: var(--faint); white-space: nowrap; }
.empty { text-align: center; padding: 28px 10px; color: var(--faint); font-size: 13px; }
.empty .ti { display: block; font-size: 34px; color: var(--faintest); margin-bottom: 8px; }

/* hızlı anahtarlar */
.quick { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface-2); }
.quick + .quick { margin-top: 8px; }
.quick .q-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.quick h6 { font-size: 13px; font-weight: 600; }
.quick p { font-size: 11.5px; color: var(--faint); }

.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--muted); }
.kv strong { font-weight: 600; text-align: right; word-break: break-all; }
.swatch { width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--border); display: inline-block; }

/* ===== FORM ===== */
.form-group { margin-bottom: 18px; }
.form-label { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.form-label code { font-size: 10.5px; font-weight: 500; color: var(--faint); background: var(--surface-3); padding: 2px 6px; border-radius: 5px; }
.form-help { font-size: 11.5px; color: var(--faint); margin-top: 6px; }
.form-control {
  width: 100%; height: 44px; padding: 0 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  font-size: 13.5px; color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea.form-control { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.55; }
select.form-control { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
select.form-control option { background: var(--surface); color: var(--text); }
.form-control::placeholder { color: var(--faint); }
.form-control:focus { border-color: var(--focus); background: var(--surface); box-shadow: var(--focus-ring); }
.input-icon { position: relative; }
.input-icon > .ti { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--faint); pointer-events: none; }
.input-icon .form-control { padding-left: 42px; }
.input-icon .toggle-pass { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.color-field { display: flex; gap: 8px; }
.color-field input[type=color] { width: 44px; height: 44px; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; flex-shrink: 0; }
.color-field input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type=color]::-webkit-color-swatch { border: none; border-radius: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch .slider { position: absolute; inset: 0; background: var(--border-2); border-radius: 24px; cursor: pointer; transition: background .2s; }
.switch .slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.switch input:checked + .slider { background: var(--primary); }
html.is-dark .switch input:checked + .slider::before { background: #0f172a; }
.switch input:checked + .slider::before { transform: translateX(18px); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 44px; padding: 0 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; font-size: 13px; color: var(--text-3); }

/* ===== TEMA & DİL SEÇİCİ KARTLARI ===== */
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .ch-box { display: block; border: 1.5px solid var(--border); border-radius: 14px; padding: 10px; background: var(--surface-2); transition: border-color .18s, box-shadow .18s; }
.choice:hover .ch-box { border-color: var(--border-2); }
.choice input:checked + .ch-box { border-color: var(--focus); box-shadow: var(--focus-ring); }
.choice input:focus-visible + .ch-box { outline: 2px solid var(--focus); outline-offset: 2px; }
.ch-prev { display: block; height: 74px; border-radius: 9px; overflow: hidden; position: relative; border: 1px solid rgba(148,163,184,.25); }
.ch-prev.light { background: #f4f6fa; }
.ch-prev.dark { background: #0b1120; }
.ch-prev.system { display: flex; }
.ch-prev .half { flex: 1; position: relative; overflow: hidden; }
.ch-prev .half.light { background: #f4f6fa; }
.ch-prev .half.dark { background: #0b1120; }
.ch-prev i { position: absolute; left: 8px; right: 8px; height: 8px; border-radius: 3px; }
.ch-prev .p1 { top: 8px; }
.ch-prev .p2 { top: 24px; right: 40%; }
.ch-prev .p3 { top: 40px; height: 24px; }
.ch-prev.light i, .half.light i { background: #fff; border: 1px solid #e2e8f0; }
.ch-prev.light .p1, .half.light .p1 { background: #0f172a; border: none; }
.ch-prev.dark i, .half.dark i { background: #111a2e; border: 1px solid #1e293b; }
.ch-prev.dark .p1, .half.dark .p1 { background: #f1f5f9; border: none; }
.ch-label { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.ch-label .ti { font-size: 16px; color: var(--faint); }
.choice input:checked + .ch-box .ch-label, .choice input:checked + .ch-box .ch-label .ti { color: var(--text); }

.lang-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.lang-list .ch-box { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.lang-list .lc { width: 34px; height: 26px; border-radius: 7px; background: var(--surface-3); color: var(--text-3); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.lang-list input:checked + .ch-box .lc { background: var(--primary); color: var(--on-primary); }
.lang-list strong { font-size: 13px; font-weight: 600; display: block; }
.lang-list small { font-size: 11px; color: var(--faint); }

.corner-tools { position: fixed; top: 16px; right: 16px; display: flex; gap: 6px; z-index: 50; }
.corner-tools .acc-trigger .dropdown { top: calc(100% + 2px); }

/* ===== AYARLAR ===== */
.pane { display: none; }
.pane.active { display: block; animation: hFade .3s ease; }
@keyframes hFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pane-head .ph-l { display: flex; align-items: center; gap: 14px; }
.pane-head .ph-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.pane-head h3 { font-size: 16px; font-weight: 700; }
.pane-head p { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.pane-body { padding: 24px; }
.pane-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 20px 20px; }
.pane-foot small { font-size: 12px; color: var(--faint); }
.field-actions { display: inline-flex; align-items: center; gap: 2px; }
.field-actions .icon-btn { width: 24px; height: 24px; font-size: 14px; }
.stack > * + * { margin-top: 18px; }
.sub-title { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }

.tag { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.tag-dark { background: var(--primary); color: var(--on-primary); }
.tag-muted { background: var(--surface-3); color: var(--muted); }
.tag-ok { background: var(--ok-bd); color: var(--ok-tx); }
.tag-info { background: var(--info-bd); color: var(--info-tx); }

/* tablo */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 11px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; padding: 0 12px 10px; }
.table td { padding: 12px; border-top: 1px solid var(--surface-3); vertical-align: middle; }
.table tr:hover td { background: var(--row-hover); }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell strong { font-size: 13px; font-weight: 600; display: block; }
.user-cell small { font-size: 11.5px; color: var(--faint); }
.table-wrap { overflow-x: auto; }

/* ===== ALERT / TOAST / MODAL ===== */
.alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 13px; font-weight: 500; margin-bottom: 18px; }
.alert .ti { font-size: 18px; flex-shrink: 0; }
.alert-error { background: var(--err-bg); color: var(--err-tx); border: 1px solid var(--err-bd); }
.alert-success { background: var(--ok-bg); color: var(--ok-tx); border: 1px solid var(--ok-bd); }
.alert-info { background: var(--info-bg); color: var(--info-tx); border: 1px solid var(--info-bd); }

.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 360px; padding: 12px 16px; background: var(--toast-bg); color: var(--toast-tx); border-radius: 12px; font-size: 13px; font-weight: 500; box-shadow: 0 16px 40px rgba(15,23,42,.25); animation: tIn .25s ease; }
.toast .ti { font-size: 18px; }
.toast.success .ti { color: #22c55e; }
.toast.error .ti { color: #ef4444; }
.toast.info .ti { color: #3b82f6; }
.toast.hide { opacity: 0; transform: translateY(8px); transition: all .25s; }
@keyframes tIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px; background: var(--overlay); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal.open { display: flex; }
.modal-box { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 24px 64px rgba(0,0,0,.2); animation: hFade .25s ease; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
.modal-head h3 { font-size: 16px; font-weight: 700; }
.modal-body { padding: 18px 22px 4px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 20px; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick .icon-btn { width: 38px; height: 38px; font-size: 18px; border: 1px solid var(--border); }

/* ===== GİRİŞ ===== */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--bg-grad); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 8px 36px rgba(0,0,0,0.04); padding: 34px 32px 28px; }
.auth-card .qa-icon { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, #3b82f6, #8b5cf6); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 22px; color: #fff; }
.auth-card .qa-icon.ok { background: linear-gradient(135deg, #22c55e, #16a34a); }
.auth-card h3 { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.auth-card > p { font-size: 13.5px; color: var(--muted); text-align: center; margin-bottom: 24px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 12px; color: var(--faint); }
.auth .logo { justify-content: center; margin-bottom: 22px; }



/* ===== SEKME ÇUBUĞU (hero-switcher tarzı) ===== */
.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; border-radius: 10px; border: none; background: transparent; cursor: pointer; white-space: nowrap; transition: background .18s, color .18s; flex-shrink: 0; }
.tabs a .ti, .tabs button .ti { font-size: 16px; }
.tabs a:hover, .tabs button:hover { color: var(--text); background: var(--hover); }
.tabs a.active, .tabs button.active { background: var(--primary); color: var(--on-primary); }
.tabs .cnt { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 20px; background: var(--surface-3); color: var(--faint); }
.tabs .active .cnt { background: rgba(127,127,127,.25); color: var(--on-primary); }
.tabs .tab-add { color: var(--faint); border: 1.5px dashed var(--border); }

/* ===== ARAMALI SEÇİM KUTUSU (div tabanlı) ===== */
.tsel { position: relative; }
.tsel-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; }
.tsel-val { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tsel-val span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsel-val .ti { font-size: 16px; color: var(--muted); }
.tsel-caret { font-size: 16px; color: var(--faint); flex-shrink: 0; }
.tsel.open .tsel-btn { border-color: var(--focus); background: var(--surface); box-shadow: var(--focus-ring); }
.tsel-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 6px; display: none; min-width: 200px;
}
.tsel.open .tsel-panel { display: block; animation: hFade .15s ease; }
.tsel.up .tsel-panel { top: auto; bottom: calc(100% + 6px); }
.tsel-search { position: relative; margin-bottom: 6px; }
.tsel-search .ti { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 15px; color: var(--faint); pointer-events: none; }
.tsel-search input { width: 100%; height: 36px; padding: 0 12px 0 34px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 13px; outline: none; }
.tsel-search input:focus { border-color: var(--focus); background: var(--surface); }
.tsel-list { max-height: 240px; overflow-y: auto; scrollbar-width: thin; }
.tsel-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 13px; color: var(--text-2); border-radius: 9px; cursor: pointer; user-select: none; }
.tsel-opt > .ti:first-child { font-size: 16px; color: var(--faint); }
.tsel-opt .tsel-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tsel-opt small { font-size: 11px; color: var(--faint); }
.tsel-opt .tsel-check { font-size: 15px; color: var(--text); opacity: 0; }
.tsel-opt:hover, .tsel-opt.kb { background: var(--hover); color: var(--text); }
.tsel-opt.selected { font-weight: 600; color: var(--text); }
.tsel-opt.selected .tsel-check { opacity: 1; }
.tsel-opt.hide { display: none; }
.tsel-opt mark { background: rgba(59,130,246,.18); color: inherit; border-radius: 3px; }
.tsel-empty { display: none; padding: 14px; text-align: center; font-size: 12.5px; color: var(--faint); }
.tsel.no-res .tsel-empty { display: block; }
.tsel[data-sm] .tsel-btn { height: 36px; font-size: 12.5px; border-radius: 10px; }

/* ===== METRE / GAUGE ===== */
.meter { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #3b82f6, #8b5cf6); width: 0; transition: width .6s cubic-bezier(.2,.8,.2,1), background .3s; }
.meter.warn > span { background: linear-gradient(90deg, #f59e0b, #eab308); }
.meter.crit > span { background: linear-gradient(90deg, #ef4444, #dc2626); }
.meter.sm { height: 6px; }
.gauge { position: relative; width: 116px; height: 116px; flex-shrink: 0; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .g-track { stroke: var(--surface-3); }
.gauge .g-val { stroke: url(#gGrad); stroke-linecap: round; transition: stroke-dashoffset .7s cubic-bezier(.2,.8,.2,1); }
.gauge.warn .g-val { stroke: #eab308; }
.gauge.crit .g-val { stroke: #ef4444; }
.gauge .g-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge .g-center strong { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.gauge .g-center span { font-size: 11px; color: var(--faint); font-weight: 500; }
.res-card { display: flex; align-items: center; gap: 18px; }
.res-card .rc-body { flex: 1; min-width: 0; }
.res-card h4 { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.res-card h4 .ti { font-size: 18px; color: var(--faint); }
.res-card p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.res-card .spark { margin-top: 10px; height: 34px; width: 100%; display: block; }
.spark path.line { fill: none; stroke: #3b82f6; stroke-width: 1.6; }
.spark path.area { fill: rgba(59,130,246,.12); stroke: none; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; position: relative; flex-shrink: 0; }
.live-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22c55e; opacity: .5; animation: pulse 1.8s ease-out infinite; }
.live-dot.off { background: var(--faint); }
.live-dot.off::after { display: none; }
@keyframes pulse { from { transform: scale(.6); opacity: .6; } to { transform: scale(1.6); opacity: 0; } }
.cores { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.core { padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 11px; color: var(--faint); }
.core strong { display: block; font-size: 13px; color: var(--text); margin-bottom: 4px; }
.disk-row + .disk-row { margin-top: 14px; }
.disk-row .dr-top { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; margin-bottom: 6px; }
.disk-row .dr-top strong { font-weight: 600; }
.disk-row .dr-top span { color: var(--muted); }
.net-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.net-box { padding: 14px; border-radius: 12px; background: var(--surface-2); }
.net-box small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint); }
.net-box strong { display: block; font-size: 18px; font-weight: 800; margin-top: 4px; }
.net-box span { font-size: 11px; color: var(--faint); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }

/* ===== 2FA ===== */
.qr-box { width: 196px; height: 196px; padding: 12px; background: #fff; border-radius: 16px; border: 1px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.qr-box img, .qr-box svg { width: 100%; height: 100%; image-rendering: pixelated; }
.twofa-setup { display: flex; gap: 24px; align-items: flex-start; }
.steps { list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding-left: 34px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); color: var(--text); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.secret { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--border-2); }
.secret code { flex: 1; font-size: 12.5px; letter-spacing: .08em; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.codes code { padding: 10px; text-align: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; letter-spacing: .06em; }
.otp { display: flex; gap: 8px; justify-content: center; }
.otp input { width: 46px; height: 54px; text-align: center; font-size: 22px; font-weight: 700; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
.otp input:focus { border-color: var(--focus); background: var(--surface); box-shadow: var(--focus-ring); }
.status-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: var(--surface-2); }
.status-row .sr-body { flex: 1; min-width: 0; }
.status-row h6 { font-size: 14px; font-weight: 700; }
.status-row p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.link-btn { background: none; border: none; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }

/* ===== LİSTE / FİLTRE / SAYFALAMA ===== */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .input-icon { flex: 1; min-width: 200px; }
.toolbar .tsel { min-width: 170px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.pager .pg-btns { display: flex; gap: 4px; }
.pager button { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.pager button:hover:not([disabled]) { background: var(--hover); }
.pager button.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.pager button[disabled] { opacity: .4; cursor: default; }
.msg-preview { max-width: 520px; font-size: 12.5px; color: var(--text-2); white-space: pre-line; line-height: 1.45; max-height: 3.2em; overflow: hidden; }
.chk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.chk { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); cursor: pointer; transition: border-color .18s; }
.chk:hover { border-color: var(--border-2); }
.chk .nc-icon { width: 34px; height: 34px; font-size: 16px; }
.chk .chk-body { flex: 1; min-width: 0; }
.chk .chk-body strong { display: block; font-size: 13px; font-weight: 600; }
.chk .chk-body small { font-size: 11px; color: var(--faint); }
.bot-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; background: linear-gradient(135deg, rgba(59,130,246,.08), rgba(139,92,246,.08)); border: 1px solid var(--border); }
.bot-card .bot-ic { width: 46px; height: 46px; border-radius: 14px; background: #229ED9; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.chat-pick { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.chat-pick button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; text-align: left; font-size: 13px; }
.chat-pick button:hover { border-color: var(--focus); }
.chat-pick button small { margin-left: auto; color: var(--faint); font-size: 11px; }

/* ===== KLASÖRLER ===== */
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 14px; }
.folder-card { display: flex; align-items: center; gap: 12px; padding: 16px 14px 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; transition: border-color .18s, box-shadow .18s, transform .18s; }
.folder-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.fc-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.fc-icon { width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #eab308; background: rgba(234,179,8,.12); }
.fc-icon.lg { width: 54px; height: 54px; font-size: 26px; border-radius: 16px; }
.fc-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fc-body strong { font-size: 14.5px; font-weight: 700; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; line-height: 1.3; }
.fc-body .mono { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.fc-body small { font-size: 11px; color: var(--faint); }
.fc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; position: relative; padding-right: 34px; }
.fc-side .acc-trigger { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.fc-acc { font-size: 11px; color: var(--faint); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; }
.fc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.fc-meta .ti { font-size: 13px; }
.fc-meta .bot-on { color: var(--ok-tx); }
.fc-meta .bot-off { color: var(--err-tx); }
.folder-card.is-passive { background: var(--surface-2); }
.folder-card.is-passive .fc-icon { filter: grayscale(1); opacity: .6; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.f-chip { display: inline-flex; padding: 4px 4px 4px 10px; gap: 8px; }
.f-chip small { color: var(--faint); font-size: 11px; font-weight: 600; white-space: nowrap; }
.f-chip code { flex: none; }
.f-chip .icon-btn { width: 26px; height: 26px; font-size: 14px; }
.f-head-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Giriş Bilgileri — ortalanmış form */
.login-center { max-width: 480px; margin: 0 auto; text-align: center; }
.login-center .status-row { text-align: left; }
.login-center .form-label { justify-content: center; }
.login-center .form-control { text-align: center; }
.login-center .input-icon .form-control { padding-left: 42px; padding-right: 42px; }
.login-center .otp { justify-content: center; }
.login-center .form-help { text-align: center; }
.login-center .kv { text-align: left; }
.lc-actions { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.lc-actions .btn { min-width: 220px; }
/* Sabitleme */
.pin-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--faint); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; transition: all .18s; }
.pin-btn:hover { color: var(--text); border-color: var(--border-2); }
.pin-btn.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.table tr.row-pinned td { background: var(--surface-2); }
/* Kayıt temizleme seçenekleri + checkbox */
.clear-opts { display: flex; flex-direction: column; gap: 8px; }
.clear-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: border-color .18s; }
.clear-opt:hover { border-color: var(--border-2); }
.clear-opt input { accent-color: var(--danger); width: 16px; height: 16px; }
.clear-opt:has(input:checked) { border-color: var(--danger); background: var(--danger-bg); }
.clear-opt.disabled { opacity: .5; cursor: not-allowed; }
.clear-opt .co-body { flex: 1; min-width: 0; }
.clear-opt .co-body strong { display: block; font-size: 13px; font-weight: 600; }
.clear-opt .co-body small { font-size: 11.5px; color: var(--faint); }
.clear-opt .co-count { font-size: 12px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.cb { display: inline-flex; cursor: pointer; }
.cb input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.cb span { display: none; }
.sess { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); }
.sess .live-dot { width: 7px; height: 7px; }
.sess-connected { background: var(--ok-bg); border-color: var(--ok-bd); color: var(--ok-tx); }
.sess-error { background: var(--err-bg); border-color: var(--err-bd); color: var(--err-tx); }
.sess.lg { height: 36px; padding: 0 16px 0 14px; font-size: 13px; }
.api-doc { margin-top: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.api-doc summary { cursor: pointer; padding: 10px 14px; font-size: 12.5px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.api-doc pre { margin: 0; padding: 0 14px 14px; font-size: 11.5px; line-height: 1.6; color: var(--text-2); overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-dash { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); width: var(--sb-w) !important; box-shadow: var(--shadow-lg); }
  html.sb-open .sidebar { transform: none; }
  html.sb-open .sb-overlay { display: block; position: fixed; inset: 0; background: var(--overlay); z-index: 1090; }
  .app-main, html.sb-mini .app-main { margin-left: 0; }
  .sb-collapse { display: none; }
  html.sb-mini .sb-head { padding: 0 16px 0 20px; justify-content: space-between; }
  html.sb-mini .sb-head .logo-text, html.sb-mini .sb-head .logo-tag { display: inline; }
  html.sb-mini .sb-title { font-size: 11px; text-align: left; padding: 0 12px 8px; }
  html.sb-mini .sb-title::after { content: none; }
  html.sb-mini .sb-link { justify-content: flex-start; padding: 0 12px; }
  html.sb-mini .sb-link .sb-text, html.sb-mini .sb-link .sb-badge, html.sb-mini .sb-link .sb-arrow { display: inline; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .crumbs .crumb-parent, .crumbs .crumb-sep { display: none; }
  .acc-btn .acc-name, .acc-btn .ti { display: none; }
  .acc-btn { padding: 0 6px; }
  .tb-right { gap: 2px; }
  .topbar .dropdown.dropdown-right { position: fixed; top: var(--top-h); left: 12px; right: 12px; width: auto; min-width: 0; }
  .form-row, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 24px; }
  .twofa-setup { flex-direction: column; align-items: center; }
  .folder-grid { grid-template-columns: 1fr; }
  .net-grid { grid-template-columns: 1fr 1fr; }
  .table-wrap .table { min-width: 620px; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 16px; }
  .stat strong { font-size: 22px; }
  .pane-body, .pane-head, .pane-foot { padding-left: 16px; padding-right: 16px; }
  .pane-foot { flex-direction: column; align-items: stretch; }
  .auth-card { padding: 28px 20px 22px; }
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: 0; max-width: none; }
  .choice-grid { gap: 8px; }
  .ch-prev { height: 56px; }
  .res-card { flex-direction: column; text-align: center; }
  .gauge { width: 104px; height: 104px; }
  .otp input { width: 40px; height: 48px; font-size: 19px; }
  .otp { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ===== ROL HARİTASI — "Banka Bildirim Grupları" kartı ===== */
.rmap { display: flex; flex-direction: column; gap: 8px; }
.rmap-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color .2s, background .2s, opacity .2s;
}
.rmap-row:hover { border-color: var(--border-2); }
.rmap-row.rmap-off { background: var(--surface); border-style: dashed; }
.rmap-row.rmap-off .rmap-ico { opacity: .5; }
.rmap-row.rmap-busy { opacity: .55; pointer-events: none; }
.rmap-ico {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.rmap-body { flex: 1; min-width: 0; }
.rmap-t { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--text); }
.rmap-t .tag { flex: none; }
.rmap-d { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.rmap-ctl { flex: none; width: 248px; }
.rmap-ctl .form-control { height: 38px; font-size: 13px; }
.rmap-warn {
  display: flex; align-items: center; gap: 6px; margin-top: 7px;
  padding: 5px 9px; border-radius: 9px;
  font-size: 11.5px; font-weight: 500;
  background: var(--err-bg); color: var(--err-tx); border: 1px solid var(--err-bd);
}
.rmap-warn .ti { font-size: 14px; flex: none; }
.rmap-warn code { font-size: 10.5px; background: rgba(0,0,0,.05); padding: 1px 5px; border-radius: 5px; }
.rmap-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 11.5px; color: var(--faint); }
.rmap-foot .ti { font-size: 15px; flex: none; }
.rmap-backfill { margin-top: 9px; align-self: flex-start; }
.rmap-backfill .ti { font-size: 14px; }
.rmap-backfill:disabled { opacity: .6; cursor: progress; }
.rmap-backfill:disabled .ti { animation: rmapSpin 1s linear infinite; }
.rmap-backfill .rmap-bf-caret { font-size: 10px; margin-left: 2px; opacity: .55; }
.rmap-bf { position: relative; display: inline-block; }
.rmap-bf-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 272px;
  background: var(--card, #fff); border: 1px solid var(--bd, #e2e8f0); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .16); padding: 12px;
}
.rmap-bf-q { font-size: 12px; font-weight: 600; color: var(--tx, #0f172a); margin-bottom: 9px; }
.rmap-bf-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.rmap-bf-opt {
  border: 1px solid var(--bd, #e2e8f0); background: var(--bg-2, #f8fafc); color: var(--tx, #0f172a);
  border-radius: 7px; padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.rmap-bf-opt:hover { background: #229ED9; border-color: #229ED9; color: #fff; }
.rmap-bf-opt.is-all { background: rgba(34, 158, 217, .12); border-color: rgba(34, 158, 217, .45); color: #1676a8; }
.rmap-bf-opt.is-all:hover { background: #229ED9; color: #fff; }
.rmap-bf-custom { display: flex; gap: 6px; margin-top: 9px; padding-top: 9px; border-top: 1px dashed var(--bd, #e2e8f0); }
.rmap-bf-custom .form-control { height: 32px; font-size: 12px; }
@keyframes rmapSpin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .rmap-row { flex-wrap: wrap; }
  .rmap-ctl { width: 100%; }
  .rmap-bf-panel { position: static; width: 100%; min-width: 0; margin-top: 8px; box-shadow: none; }
}
