/* =========================================================
   VK Dashboard Kit — vk.css
   Sade, açık tonlu yönetim paneli stili. Bağımlılık yok.
   Renkleri değiştirmek için sadece :root değişkenlerini düzenle.
   ========================================================= */

/* ---------- 1. Tasarım değişkenleri (tokens) ---------- */
:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #ffffff;
  --bg-subtle: #f8f9fb;
  --bg-muted: #f1f2f5;
  --surface: #ffffff;
  --border: #e8e9ee;
  --border-strong: #d8dae1;

  --text: #0f1115;
  --text-2: #2f343d;
  --text-muted: #6b7280;
  --text-faint: #9ca3af;

  --primary: #5b5bf6;
  --primary-hover: #4b4be8;
  --primary-2: #6d6dff;
  --primary-soft: #eef0ff;
  --primary-soft-2: #e4e6ff;
  --primary-ring: rgba(91, 91, 246, .18);
  --on-primary: #ffffff;

  --link: #2563eb;

  --success: #16a34a; --success-bg: #f0fdf4; --success-border: #bbf7d0;
  --info: #2563eb;    --info-bg: #eff6ff;    --info-border: #bfdbfe;
  --warning: #c2410c; --warning-bg: #fff7ed; --warning-border: #fed7aa;
  --danger: #dc2626;  --danger-bg: #fef2f2;  --danger-border: #fecaca;
  --neutral: #52525b; --neutral-bg: #fafafa; --neutral-border: #e4e4e7;
  --dot: #fb923c;

  --chart-bar: #eeeffe;
  --chart-grid: #eef0f3;

  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-pop: 0 12px 32px -8px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .06);

  --sidebar-w: 264px;
  --topbar-h: 68px;

  --gradient-brand: linear-gradient(135deg, #c4b5fd 0%, #818cf8 35%, #a78bfa 65%, #f0abfc 100%);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0c0d10;
  --bg-subtle: #121318;
  --bg-muted: #1a1c22;
  --surface: #111216;
  --border: #23252d;
  --border-strong: #30333d;

  --text: #f3f4f6;
  --text-2: #d6d8de;
  --text-muted: #9298a3;
  --text-faint: #6b7280;

  --primary: #7272ff;
  --primary-hover: #8484ff;
  --primary-2: #8a8aff;
  --primary-soft: #1d1e3a;
  --primary-soft-2: #26284d;
  --primary-ring: rgba(114, 114, 255, .28);

  --link: #7aa2ff;

  --success: #4ade80; --success-bg: rgba(74, 222, 128, .08); --success-border: rgba(74, 222, 128, .25);
  --info: #7aa2ff;    --info-bg: rgba(122, 162, 255, .08);   --info-border: rgba(122, 162, 255, .28);
  --warning: #fb923c; --warning-bg: rgba(251, 146, 60, .08); --warning-border: rgba(251, 146, 60, .28);
  --danger: #f87171;  --danger-bg: rgba(248, 113, 113, .08); --danger-border: rgba(248, 113, 113, .28);
  --neutral: #c4c6cc; --neutral-bg: rgba(255, 255, 255, .03); --neutral-border: #30333d;

  --chart-bar: #1c1d33;
  --chart-grid: #1f2128;

  --shadow-pop: 0 12px 32px -8px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

/* ---------- 2. Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 600; }
h4 { font-size: 14px; font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
::selection { background: var(--primary-soft-2); }
[data-lucide], .lucide { width: 18px; height: 18px; stroke-width: 1.75; flex-shrink: 0; }

/* ---------- 3. Uygulama iskeleti ---------- */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns .2s ease;
}

.sidebar {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 10px;
  overflow: hidden;
  z-index: 40;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 12px 22px;
  font-weight: 700; font-size: 18px; letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-mark {
  width: 30px; height: 30px; flex-shrink: 0; position: relative;
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; border-radius: 50%;
}
.brand-mark::before { inset: 0 6px 6px 0; background: linear-gradient(140deg, #93c5fd, #818cf8); }
.brand-mark::after  { inset: 4px 0 0 7px; background: linear-gradient(140deg, #f9a8d4, #c084fc); opacity: .9; mix-blend-mode: multiply; }
:root[data-theme="dark"] .brand-mark::after { mix-blend-mode: screen; }

.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.nav-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-faint); padding: 16px 12px 6px; white-space: nowrap;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  height: 38px; padding: 0 12px;
  border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 14.5px;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--bg-muted); color: var(--text); }
.nav-item.active { background: var(--bg-muted); color: var(--text); font-weight: 500; }
.nav-item .nav-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.nav-item .nav-count {
  margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--text-muted);
  background: var(--bg-muted); border-radius: 999px; padding: 1px 8px;
}
.nav-item.active .nav-count { background: var(--surface); }

.sidebar-footer {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 4px; margin-top: 8px;
  border-top: 1px solid transparent;
  white-space: nowrap;
}
.sidebar-footer .name { font-size: 14.5px; color: var(--text-2); }
.sidebar-footer .icon-btn { margin-left: auto; border: 0; width: 30px; height: 30px; }

/* Daraltılmış kenar çubuğu (masaüstü) */
@media (min-width: 961px) {
.app.is-collapsed { grid-template-columns: 72px minmax(0, 1fr); }
.app.is-collapsed .brand span,
.app.is-collapsed .nav-item span,
.app.is-collapsed .nav-label,
.app.is-collapsed .nav-dot,
.app.is-collapsed .nav-count,
.app.is-collapsed .sidebar-footer .name,
.app.is-collapsed .sidebar-footer .icon-btn { display: none; }
.app.is-collapsed .nav-item { justify-content: center; padding: 0; }
.app.is-collapsed .brand { justify-content: center; padding-left: 0; padding-right: 0; }
.app.is-collapsed .sidebar-footer { justify-content: center; padding-left: 0; padding-right: 0; }
}

.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 30px 0 22px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 15px; font-weight: 500; white-space: nowrap; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.search {
  position: relative; display: flex; align-items: center;
  width: min(420px, 38vw);
}
.search > [data-lucide], .search > .lucide {
  position: absolute; left: 12px; width: 16px; height: 16px; color: var(--text-muted); pointer-events: none;
}
.search input {
  width: 100%; height: 38px;
  padding: 0 54px 0 36px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); outline: none;
  font-size: 13.5px;
  transition: border-color .12s, box-shadow .12s;
}
.search input::placeholder { color: var(--text-muted); }
.search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.search .kbd { position: absolute; right: 8px; }

.kbd {
  display: inline-flex; align-items: center; gap: 2px;
  height: 22px; padding: 0 7px;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg-subtle); color: var(--text-2);
  font-size: 11.5px; font-weight: 500; font-family: var(--font);
}

.content { padding: 30px; display: flex; flex-direction: column; gap: 22px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head p { color: var(--text-muted); margin-top: 4px; }

.sidebar-overlay { display: none; }

/* ---------- 4. Izgara yardımcıları ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-4 { grid-column: span 4; } .col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; } .col-12 { grid-column: span 12; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.between { justify-content: space-between; }
.ml-auto { margin-left: auto; }
.muted { color: var(--text-muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 600; }
.mono { font-variant-numeric: tabular-nums; }
.w-full { width: 100%; }

/* ---------- 5. Kart ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.card-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  min-height: 64px;
  border-bottom: 1px solid var(--border);
}
.card-title { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 500; }
.card-title [data-lucide], .card-title .lucide { color: var(--text-2); }
.card-sub { color: var(--text-muted); font-size: 13px; }
.card-body { padding: 24px 28px; }
.card-footer {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 28px; border-top: 1px solid var(--border);
}
.card-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  color: var(--link); font-size: 15px; font-weight: 500;
}
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-link [data-lucide], .card-link .lucide { width: 17px; height: 17px; }
.card-flush .card-body { padding: 0; }

/* İstatistik kartı */
.stat { padding: 24px 28px 22px; }
.stat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stat-label { font-size: 15px; color: var(--text-2); }
.stat-top [data-lucide], .stat-top .lucide { color: var(--text-2); margin-top: 3px; }
.stat-value { font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 22px; font-variant-numeric: tabular-nums; }
.stat-meta { font-size: 13.5px; color: var(--text-2); margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 12.5px; }
.trend [data-lucide], .trend .lucide { width: 14px; height: 14px; }
.trend.up { color: var(--success); }
.trend.down { color: var(--danger); }

/* ---------- 6. Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; line-height: 1;
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--primary-ring); }
.btn [data-lucide], .btn .lucide { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(180deg, var(--primary-2), var(--primary));
  color: var(--on-primary);
  border-color: var(--primary);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--bg-subtle); border-color: var(--border-strong); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: var(--primary-soft-2); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-muted); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { filter: brightness(.94); }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-link { background: none; border: 0; color: var(--link); padding: 0; height: auto; }
.btn-link:hover { text-decoration: underline; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .5; pointer-events: none; }
.btn.is-loading { pointer-events: none; color: transparent !important; position: relative; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff;
  animation: vk-spin .7s linear infinite;
}
.btn-secondary.is-loading::after { border-color: var(--border-strong); border-top-color: var(--text); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); color: var(--text-2);
  cursor: pointer; position: relative;
  transition: background .12s, color .12s;
}
.icon-btn:hover { background: var(--bg-muted); color: var(--text); }
.icon-btn.square { border-radius: var(--radius-sm); }
.icon-btn.plain { border-color: transparent; background: transparent; }
.icon-btn.plain:hover { background: var(--bg-muted); }
.icon-btn .ping {
  position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--dot); box-shadow: 0 0 0 2px var(--surface);
}

.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.btn-group .btn.active { background: var(--bg-muted); }

/* ---------- 7. Rozetler (badge) ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 26px; padding: 0 11px;
  border: 1px solid var(--neutral-border); border-radius: 999px;
  background: var(--neutral-bg); color: var(--neutral);
  font-size: 13.5px; font-weight: 450; white-space: nowrap;
}
.badge-sm { height: 21px; padding: 0 8px; font-size: 12px; }
.badge-success { color: var(--success); background: var(--success-bg); border-color: var(--success-border); }
.badge-info    { color: var(--info);    background: var(--info-bg);    border-color: var(--info-border); }
.badge-warning { color: var(--warning); background: var(--warning-bg); border-color: var(--warning-border); }
.badge-danger  { color: var(--danger);  background: var(--danger-bg);  border-color: var(--danger-border); }
.badge-primary { color: var(--primary); background: var(--primary-soft); border-color: var(--primary-soft-2); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- 8. Tablo ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th {
  text-align: left; white-space: nowrap;
  font-size: 14.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .01em;
  color: var(--text-2);
  background: var(--bg-subtle);
  padding: 13px 28px;
  border-bottom: 1px solid var(--border);
}
.table th + th { border-left: 1px solid var(--border); }
.table td {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  white-space: nowrap;
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .1s; }
.table tbody tr:hover { background: var(--bg-subtle); }
.table .text-right { text-align: right; }
.table .text-center { text-align: center; }
.table-sm td { padding: 12px 20px; font-size: 14px; }
.table-sm th { padding: 10px 20px; font-size: 12px; }
.table .cell-user { display: flex; align-items: center; gap: 12px; }
.table .cell-user .meta { line-height: 1.3; }
.table .cell-user .meta small { display: block; color: var(--text-muted); font-size: 12.5px; }
.table tr.is-selected { background: var(--primary-soft); }
.table th.check, .table td.check { width: 44px; padding-right: 0; }

.table-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
}

/* ---------- 9. Liste (son mesajlar vb.) ---------- */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 16px; padding: 22px 28px; }
.feed-item + .feed-item { padding-top: 10px; }
.feed-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.feed-icon [data-lucide], .feed-icon .lucide { width: 18px; height: 18px; }
.feed-body { flex: 1; min-width: 0; }
.feed-head { display: flex; align-items: center; gap: 12px; }
.feed-head .name { font-size: 15.5px; font-weight: 500; }
.feed-head time { margin-left: auto; color: var(--text-muted); font-size: 13.5px; white-space: nowrap; }
.feed-body p { color: var(--text-2); font-size: 15px; margin-top: 8px; }
.feed-body p + p { margin-top: 4px; }
.c-blue { color: #3b82f6; } .c-orange { color: #f97316; } .c-green { color: #10b981; }
.c-violet { color: #8b5cf6; } .c-pink { color: #ec4899; } .c-red { color: #ef4444; }

.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 14px 28px; }
.list-item + .list-item { border-top: 1px solid var(--border); }

/* ---------- 10. Avatar ---------- */
.avatar {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--primary-soft); color: var(--primary);
  font-size: 13px; font-weight: 600;
  overflow: hidden; border: 1px solid var(--border);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 26px; height: 26px; font-size: 11px; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.avatar-xl { width: 72px; height: 72px; font-size: 22px; }
.avatar-group { display: flex; }
.avatar-group .avatar { box-shadow: 0 0 0 2px var(--surface); margin-left: -8px; }
.avatar-group .avatar:first-child { margin-left: 0; }
.av-1 { background: #e0e7ff; color: #4338ca; } .av-2 { background: #fce7f3; color: #be185d; }
.av-3 { background: #dcfce7; color: #15803d; } .av-4 { background: #ffedd5; color: #c2410c; }
.av-5 { background: #e0f2fe; color: #0369a1; }
:root[data-theme="dark"] .av-1, :root[data-theme="dark"] .av-2, :root[data-theme="dark"] .av-3,
:root[data-theme="dark"] .av-4, :root[data-theme="dark"] .av-5 { background: var(--bg-muted); }

/* ---------- 11. Form elemanları ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.label { font-size: 13.5px; font-weight: 500; color: var(--text); }
.label .req { color: var(--danger); margin-left: 2px; }
.hint { font-size: 12.5px; color: var(--text-muted); }
.error-text { font-size: 12.5px; color: var(--danger); display: none; }

.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 13px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font-size: 14px; outline: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .12s, box-shadow .12s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--border-strong) 60%, var(--text-muted)); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }
.input:disabled, .select:disabled, .textarea:disabled { background: var(--bg-muted); color: var(--text-muted); cursor: not-allowed; }
.textarea { height: auto; min-height: 110px; padding: 10px 13px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.input-sm, .select-sm { height: 34px; font-size: 13px; }

.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--danger); }
.field.is-invalid .input:focus, .field.is-invalid .textarea:focus { box-shadow: 0 0 0 4px var(--danger-bg); }
.field.is-invalid .error-text { display: block; }
.field.is-valid .input { border-color: var(--success); }

.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > [data-lucide], .input-icon > .lucide {
  position: absolute; left: 12px; width: 16px; height: 16px; color: var(--text-muted); pointer-events: none;
}
.input-icon .input { padding-left: 38px; }
.input-icon .input-action {
  position: absolute; right: 6px; display: grid; place-items: center;
  width: 30px; height: 30px; border: 0; background: none; color: var(--text-muted); cursor: pointer; border-radius: 6px;
}
.input-icon .input-action:hover { background: var(--bg-muted); color: var(--text); }

.input-group { display: flex; }
.input-group .addon {
  display: flex; align-items: center; padding: 0 12px;
  border: 1px solid var(--border-strong); background: var(--bg-subtle); color: var(--text-muted);
  font-size: 13.5px; white-space: nowrap;
}
.input-group .addon:first-child { border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .addon:last-child { border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-group .input { border-radius: 0; }
.input-group .input:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .input:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; height: 40px; }

/* Checkbox & radio */
.check-label { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-2); }
.check-label .hint { display: block; }
.checkbox, .radio {
  appearance: none; flex-shrink: 0; margin: 1px 0 0;
  width: 18px; height: 18px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface);
  display: inline-grid; place-items: center;
  transition: background .12s, border-color .12s;
}
.checkbox { border-radius: 5px; }
.radio { border-radius: 50%; }
.checkbox:checked, .checkbox:indeterminate, .radio:checked { background: var(--primary); border-color: var(--primary); }
.checkbox:checked::after {
  content: ""; width: 10px; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.checkbox:indeterminate::after { content: ""; width: 8px; height: 2px; background: #fff; border-radius: 2px; }
.radio:checked::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.checkbox:focus-visible, .radio:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--primary-ring); }

/* Switch */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--text-2); }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track {
  width: 36px; height: 20px; border-radius: 999px; background: var(--border-strong);
  position: relative; transition: background .15s; flex-shrink: 0;
}
.switch .track::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;
}
.switch input:checked + .track { background: var(--primary); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px var(--primary-ring); }

/* Dosya yükleme alanı */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 28px; text-align: center;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--bg-subtle); color: var(--text-muted); cursor: pointer;
  transition: border-color .12s, background .12s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--primary); background: var(--primary-soft); }
.dropzone .feed-icon { margin-bottom: 4px; }
.dropzone strong { color: var(--primary); font-weight: 500; }
.dropzone input { display: none; }

/* Segment seçici */
.segmented { display: inline-flex; padding: 3px; background: var(--bg-muted); border-radius: 9px; gap: 2px; }
.segmented button {
  border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
}
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* ---------- 12. Uyarılar ---------- */
.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius);
  border: 1px solid var(--neutral-border); background: var(--neutral-bg); color: var(--text-2);
  font-size: 14px;
}
.alert [data-lucide], .alert .lucide { margin-top: 1px; }
.alert .alert-title { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.alert-info    { background: var(--info-bg);    border-color: var(--info-border); }
.alert-info > .lucide { color: var(--info); }
.alert-success { background: var(--success-bg); border-color: var(--success-border); }
.alert-success > .lucide { color: var(--success); }
.alert-warning { background: var(--warning-bg); border-color: var(--warning-border); }
.alert-warning > .lucide { color: var(--warning); }
.alert-danger  { background: var(--danger-bg);  border-color: var(--danger-border); }
.alert-danger > .lucide { color: var(--danger); }
.alert .alert-close { margin-left: auto; border: 0; background: none; cursor: pointer; color: var(--text-muted); padding: 0; }

/* ---------- 13. Sekmeler ---------- */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab {
  border: 0; background: none; cursor: pointer;
  padding: 12px 0; margin-bottom: -1px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  border-bottom: 2px solid transparent; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- 14. Açılır menü ---------- */
.dropdown { position: relative; display: inline-flex; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 190px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(-4px) scale(.98); pointer-events: none;
  transition: opacity .12s, transform .12s;
  transform-origin: top right;
}
.dropdown-menu.left { right: auto; left: 0; transform-origin: top left; }
.dropdown.open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; background: none; border-radius: 6px;
  font-size: 13.5px; color: var(--text-2); cursor: pointer; text-align: left;
}
.dropdown-item:hover { background: var(--bg-muted); color: var(--text); }
.dropdown-item [data-lucide], .dropdown-item .lucide { width: 16px; height: 16px; color: var(--text-muted); }
.dropdown-item.danger, .dropdown-item.danger .lucide { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px -6px; }
.dropdown-header { padding: 8px 10px 6px; font-size: 12px; color: var(--text-muted); }

/* ---------- 15. Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 16px;
  background: rgba(15, 17, 21, .38); backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-dialog {
  width: min(500px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  transform: translateY(8px) scale(.98); transition: transform .15s;
}
.modal.open .modal-dialog { transform: none; }
.modal-lg .modal-dialog { width: min(760px, 100%); }
.modal-header { display: flex; align-items: center; gap: 12px; padding: 20px 24px 0; }
.modal-header h3 { font-size: 17px; }
.modal-header .icon-btn { margin-left: auto; }
.modal-body { padding: 16px 24px 20px; color: var(--text-2); }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--border); background: var(--bg-subtle); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* ---------- 16. Bildirim (toast) ---------- */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  min-width: 280px; max-width: 380px; padding: 13px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); font-size: 14px;
  animation: vk-toast-in .2s ease;
}
.toast.hide { animation: vk-toast-out .2s ease forwards; }
.toast .lucide { color: var(--text-muted); }
.toast.success .lucide { color: var(--success); }
.toast.danger .lucide { color: var(--danger); }
.toast.warning .lucide { color: var(--warning); }
.toast.info .lucide { color: var(--info); }

/* ---------- 17. Diğer bileşenler ---------- */
.progress { height: 8px; background: var(--bg-muted); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary-2), var(--primary)); }
.progress.success > span { background: var(--success); }
.progress.warning > span { background: var(--warning); }
.progress.danger > span { background: var(--danger); }

.pagination { display: flex; align-items: center; gap: 4px; }
.page-btn {
  min-width: 34px; height: 34px; padding: 0 8px;
  display: inline-grid; place-items: center;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: none; color: var(--text-2); font-size: 13.5px; cursor: pointer;
}
.page-btn:hover { background: var(--bg-muted); }
.page-btn.active { border-color: var(--border); background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }
.page-btn .lucide { width: 16px; height: 16px; }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .lucide { width: 14px; height: 14px; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 24px; }
.empty .feed-icon { width: 52px; height: 52px; margin-bottom: 6px; }
.empty p { color: var(--text-muted); max-width: 340px; }

.skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--bg-muted) 25%, var(--bg-subtle) 50%, var(--bg-muted) 75%);
  background-size: 200% 100%; animation: vk-shimmer 1.3s infinite;
}

[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(3px);
  padding: 5px 9px; border-radius: 6px; white-space: nowrap;
  background: #111318; color: #fff; font-size: 12px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .12s, transform .12s; z-index: 70;
}
[data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%); }

.divider-text { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 12.5px; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 14px; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; color: var(--text); }

.swatch { height: 56px; border-radius: var(--radius-sm); border: 1px solid var(--border); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* ---------- 18. Grafikler ---------- */
.chart { position: relative; width: 100%; }
.chart svg { overflow: visible; }
.chart text { fill: var(--text-muted); font-family: var(--font); }
.chart .axis-label { font-size: 13px; }
.chart .x-name { font-size: 14px; fill: var(--text-2); }
.chart .x-val { font-size: 13.5px; }
.chart .grid-line { stroke: var(--chart-grid); stroke-width: 1; }
.chart .bar { fill: var(--chart-bar); transition: fill .15s; }
.chart .bar-frame { fill: var(--surface); stroke: var(--border); }
.chart-tooltip {
  position: absolute; pointer-events: none; z-index: 5;
  padding: 8px 11px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-pop);
  font-size: 12.5px; white-space: nowrap; opacity: 0; transition: opacity .1s;
}
.chart-tooltip.show { opacity: 1; }
.chart-tooltip .t-title { color: var(--text-muted); margin-bottom: 4px; }
.chart-tooltip .t-row { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.chart-tooltip .t-row i { width: 8px; height: 8px; border-radius: 50%; }
.donut-wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.donut-center { font-size: 24px; font-weight: 700; fill: var(--text) !important; }
.donut-sub { font-size: 12px; }

/* ---------- 19. Giriş / Kayıt sayfaları ---------- */
.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 32px 16px;
  background:
    radial-gradient(60% 50% at 10% 0%, rgba(196, 181, 253, .85), transparent 70%),
    radial-gradient(50% 50% at 90% 10%, rgba(240, 171, 252, .7), transparent 70%),
    radial-gradient(60% 60% at 50% 100%, rgba(165, 180, 252, .8), transparent 70%),
    radial-gradient(40% 40% at 0% 80%, rgba(129, 140, 248, .7), transparent 70%),
    #e9e7fb;
}
:root[data-theme="dark"] .auth {
  background:
    radial-gradient(60% 50% at 10% 0%, rgba(99, 70, 200, .45), transparent 70%),
    radial-gradient(50% 50% at 90% 10%, rgba(170, 70, 190, .35), transparent 70%),
    radial-gradient(60% 60% at 50% 100%, rgba(70, 80, 200, .4), transparent 70%),
    #0c0d10;
}
.auth-card {
  width: min(430px, 100%);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: 0 30px 80px -20px rgba(60, 40, 140, .35);
  padding: 36px 34px 30px;
}
.auth-card .brand { padding: 0 0 26px; }
.auth-card h1 { font-size: 22px; }
.auth-card .lead { color: var(--text-muted); margin-top: 6px; margin-bottom: 24px; }
.auth-foot { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 13.5px; }
.auth-foot a, .link { color: var(--link); font-weight: 500; }
.auth-foot a:hover, .link:hover { text-decoration: underline; }
.social-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-corner { position: fixed; top: 16px; right: 16px; }

.otp { display: flex; gap: 8px; justify-content: space-between; }
.otp .input { width: 48px; height: 52px; padding: 0; text-align: center; font-size: 20px; font-weight: 600; }

/* 404 */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.error-code {
  font-size: clamp(96px, 18vw, 168px); font-weight: 800; letter-spacing: -.05em; line-height: 1;
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 20. Animasyonlar ---------- */
@keyframes vk-spin { to { transform: rotate(360deg); } }
@keyframes vk-shimmer { to { background-position: -200% 0; } }
@keyframes vk-toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes vk-toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- 21. Duyarlı tasarım ---------- */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 12; }
}
@media (max-width: 960px) {
  .app, .app.is-collapsed { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w);
    transform: translateX(-100%); transition: transform .2s ease;
  }
  .app.sidebar-open .sidebar { transform: none; box-shadow: var(--shadow-pop); }
  .app.sidebar-open .sidebar-overlay {
    display: block; position: fixed; inset: 0; z-index: 35; background: rgba(15, 17, 21, .35);
  }
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .search { display: none; }
}
@media (max-width: 640px) {
  .content { padding: 16px; gap: 16px; }
  .topbar { padding: 0 16px; gap: 10px; }
  .grid-4, .form-row { grid-template-columns: minmax(0, 1fr); }
  .card-header, .card-body, .stat, .feed-item, .list-item, .card-footer { padding-left: 18px; padding-right: 18px; }
  .table th, .table td { padding-left: 18px; padding-right: 18px; }
  .topbar-actions .btn span { display: none; }
  .topbar-actions .btn { padding: 0 11px; }
  .auth-card { padding: 28px 22px 24px; }
  .social-btns { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
}
