/* ==========================================================================
   AKBEL — Ortak bileşenler (panel + ön yüz)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: var(--lh);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, h5 { margin: 0; line-height: var(--lh-tight); font-weight: 700; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } h3 { font-size: var(--fs-lg); } h4 { font-size: var(--fs-md); }
p { margin: 0 0 var(--s-3); }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-6) 0; }
small, .text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.text-2 { color: var(--text-2); } .text-3 { color: var(--text-3); }
.text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warning { color: var(--warning); }
.mono, code, kbd { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.fw-600 { font-weight: 600; } .fw-800 { font-weight: 800; }
.fw-700 { font-weight: 700; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
::selection { background: var(--brand-200); color: var(--brand-950); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
[hidden] { display: none !important; }

.icon { display: inline-block; vertical-align: -0.2em; width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.9; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }
.icon-xl { width: 28px; height: 28px; }

/* ── Yerleşim yardımcıları ─────────────────────────────────────────────── */
.stack { display: flex; flex-direction: column; gap: var(--s-4); }
.row { display: flex; align-items: center; gap: var(--s-3); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-4 { gap: var(--s-4); } .gap-6 { gap: var(--s-6); }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: var(--s-2); } .mb-4 { margin-bottom: var(--s-4); } .mb-6 { margin-bottom: var(--s-6); }
.grid { display: grid; gap: var(--s-4); }
.grid-2 { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: var(--s-4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { display: grid; gap: var(--s-4); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px)  { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } .span-2 { grid-column: auto; } .stat { padding: var(--s-4); } .stat-value { font-size: var(--fs-xl); } .stat-foot { font-size: var(--fs-xs); } }

/* ── Butonlar ──────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-strong); --btn-hover: var(--surface-3);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 40px; padding: 0 var(--s-4);
  font: 600 var(--fs-base)/1 var(--font);
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: var(--r);
  cursor: pointer; white-space: nowrap; user-select: none; text-decoration: none !important;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur-fast) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { --btn-bg: var(--primary); --btn-fg: #fff; --btn-bd: var(--primary); --btn-hover: var(--primary-hover); box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 1px 2px rgba(60, 0, 80, .25); }
.btn-primary:hover { box-shadow: var(--shadow-brand); }
.btn-soft { --btn-bg: var(--primary-soft); --btn-fg: var(--primary-text); --btn-bd: transparent; --btn-hover: var(--primary-soft-2); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--text-2); --btn-hover: var(--surface-3); }
.btn-ghost:hover { color: var(--text); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); --btn-hover: #a32016; }
.btn-danger-soft { --btn-bg: var(--danger-soft); --btn-fg: var(--danger); --btn-bd: transparent; --btn-hover: var(--danger-line); }
.btn-success { --btn-bg: var(--success); --btn-fg: #fff; --btn-bd: var(--success); --btn-hover: #0b6545; }
.btn-sm { height: 32px; padding: 0 var(--s-3); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn-lg { height: 48px; padding: 0 var(--s-6); font-size: var(--fs-md); border-radius: var(--r); }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-block { width: 100%; }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--btn-fg) transparent var(--btn-fg) transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-group { display: inline-flex; gap: var(--s-2); flex-wrap: wrap; }

/* ── Formlar ───────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: var(--fs-sm); font-weight: 600; color: var(--text); display: flex; align-items: center; gap: var(--s-1); }
.label .req { color: var(--danger); }
.hint { font-size: var(--fs-xs); color: var(--text-3); }
.field-error { font-size: var(--fs-xs); color: var(--danger); font-weight: 500; display: flex; align-items: center; gap: 4px; }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 var(--s-3);
  font: 500 var(--fs-base)/1.4 var(--font); color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-3); font-weight: 400; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--gray-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--focus-ring); }
.textarea { height: auto; min-height: 104px; padding: var(--s-3); resize: vertical; }
.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='%23776f82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea, .input.is-invalid { border-color: var(--danger); }
.is-invalid .input:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
.input-sm { height: 34px; font-size: var(--fs-sm); }
.input-group { position: relative; display: flex; align-items: center; }
.input-group > .icon { position: absolute; left: 12px; color: var(--text-3); pointer-events: none; }
.input-group > .input { padding-left: 38px; }
.input-group > .input-action { position: absolute; right: 4px; height: 34px; width: 34px; display: grid; place-items: center; border: 0; background: transparent; color: var(--text-3); border-radius: var(--r-sm); cursor: pointer; }
.input-group > .input-action:hover { color: var(--text); background: var(--surface-3); }
.input:disabled, .select:disabled { background: var(--surface-3); color: var(--text-3); cursor: not-allowed; }

.check { display: inline-flex; align-items: flex-start; gap: var(--s-2); cursor: pointer; font-size: var(--fs-base); user-select: none; }
.check input { appearance: none; flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; border: 1.5px solid var(--border-strong); border-radius: 5px; background: var(--surface); display: grid; place-items: center; cursor: pointer; transition: all var(--dur) var(--ease); }
.check input[type="radio"] { border-radius: 50%; }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.check input:checked::after { content: ""; width: 10px; height: 10px; background: #fff; clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); }
.check input[type="radio"]:checked::after { clip-path: none; border-radius: 50%; width: 8px; height: 8px; }
.check input:disabled { opacity: .5; cursor: not-allowed; }
.check input:focus-visible { box-shadow: var(--focus-ring); }
.check-text { display: flex; flex-direction: column; gap: 2px; }
.check-text small { color: var(--text-3); }

.switch { display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer; user-select: none; }
.switch input { appearance: none; width: 40px; height: 24px; border-radius: var(--r-full); background: var(--gray-300); position: relative; cursor: pointer; transition: background var(--dur) var(--ease); flex-shrink: 0; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease); }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(16px); }
.switch input:disabled { opacity: .5; cursor: not-allowed; }
[data-theme="dark"] .switch input { background: var(--border-strong); }
[data-theme="dark"] .switch input:checked { background: var(--primary); }

.form-grid { display: grid; gap: var(--s-5) var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; justify-content: flex-end; gap: var(--s-2); padding-top: var(--s-5); border-top: 1px solid var(--border); margin-top: var(--s-6); flex-wrap: wrap; }

/* ── Kart ──────────────────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); min-width: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-title { font-size: var(--fs-md); font-weight: 700; display: flex; align-items: center; gap: var(--s-2); }
.card-title .icon { color: var(--primary-text); }
.card-sub { font-size: var(--fs-sm); color: var(--text-3); margin-top: 2px; }
.card-body { padding: var(--s-5); }
.card-footer { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card-flush .card-body { padding: 0; }
.card-hover { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-200); text-decoration: none; }
[data-theme="dark"] .card-hover:hover { border-color: var(--border-strong); }

/* ── Rozet ─────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--r-full); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; background: var(--surface-3); color: var(--text-2); border: 1px solid transparent; }
.badge .icon { width: 13px; height: 13px; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-brand   { background: var(--primary-soft); color: var(--primary-text); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger  { background: var(--danger-soft);  color: var(--danger); }
.badge-info    { background: var(--info-soft);    color: var(--info); }
.badge-neutral { background: var(--surface-3); color: var(--text-2); }
.badge-outline { background: transparent; border-color: var(--border-strong); }
.badge-lg { height: 28px; padding: 0 12px; font-size: 13px; }

/* ── Uyarı kutusu ──────────────────────────────────────────────────────── */
.alert { display: flex; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r); border: 1px solid; font-size: var(--fs-base); align-items: flex-start; }
.alert .icon { margin-top: 2px; }
.alert-title { font-weight: 700; margin-bottom: 2px; }
.alert-info    { background: var(--info-soft);    border-color: var(--info-line);    color: var(--info); }
.alert-success { background: var(--success-soft); border-color: var(--success-line); color: var(--success); }
.alert-warning { background: var(--warning-soft); border-color: var(--warning-line); color: var(--warning); }
.alert-danger  { background: var(--danger-soft);  border-color: var(--danger-line);  color: var(--danger); }
.alert-brand   { background: var(--primary-soft); border-color: var(--brand-200);    color: var(--primary-text); }
[data-theme="dark"] .alert-brand { border-color: var(--primary-soft-2); }
.alert p { color: var(--text-2); margin: 0; }

/* ── Tablo ─────────────────────────────────────────────────────────────── */
.table-wrap { position: relative; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-base); }
.table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); padding: 10px var(--s-4); background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px var(--s-4); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background var(--dur-fast) var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .col-actions { text-align: right; width: 1%; white-space: nowrap; }
.table tr.is-muted td { opacity: .6; }
.table-clickable tbody tr { cursor: pointer; }
.cell-user { display: flex; align-items: center; gap: var(--s-3); min-width: 200px; }
.cell-user .meta { display: flex; flex-direction: column; min-width: 0; }
.cell-user .meta strong { font-weight: 600; }
.cell-user .meta span { font-size: var(--fs-sm); color: var(--text-3); }

/* ── Avatar ────────────────────────────────────────────────────────────── */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--brand-800); background: linear-gradient(135deg, var(--brand-100), var(--brand-200)); flex-shrink: 0; letter-spacing: .02em; }
[data-theme="dark"] .avatar { color: var(--brand-100); background: linear-gradient(135deg, var(--brand-800), var(--brand-600)); }
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 52px; height: 52px; font-size: 17px; }

/* ── Sekmeler ──────────────────────────────────────────────────────────── */
.tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: var(--s-2); padding: 10px var(--s-3); font-weight: 600; color: var(--text-3); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; font: inherit; font-weight: 600; text-decoration: none !important; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--primary-text); border-bottom-color: var(--primary); }
.tab-panel { padding-top: var(--s-5); }
.segmented { display: inline-flex; padding: 3px; background: var(--surface-3); border-radius: var(--r); gap: 2px; }
.segmented button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font: 600 var(--fs-sm) var(--font); color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.segmented button.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ── Açılır menü ───────────────────────────────────────────────────────── */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-lg); z-index: 60; opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.dropdown.is-open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-menu.align-left { right: auto; left: 0; transform-origin: top left; }
.dropdown-item { display: flex; align-items: center; gap: var(--s-2); width: 100%; padding: 8px 10px; border-radius: 7px; color: var(--text); font: 500 var(--fs-base) var(--font); background: none; border: 0; cursor: pointer; text-align: left; text-decoration: none !important; }
.dropdown-item .icon { color: var(--text-3); width: 16px; height: 16px; }
.dropdown-item:hover { background: var(--surface-3); }
.dropdown-item.is-danger { color: var(--danger); }
.dropdown-item.is-danger .icon { color: var(--danger); }
.dropdown-sep { height: 1px; background: var(--border); margin: 6px 0; }
.dropdown-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }

/* ── Modal ─────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--s-4); background: var(--overlay); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal-dialog { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); transform: translateY(8px) scale(.98); transition: transform var(--dur-slow) var(--ease); }
.modal.is-open .modal-dialog { transform: none; }
.modal-lg .modal-dialog { max-width: 760px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border); }
.modal-title { font-size: var(--fs-md); font-weight: 700; }
.modal-body { padding: var(--s-5); overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: var(--s-2); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.confirm-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--danger-soft); color: var(--danger); margin-bottom: var(--s-4); }
.confirm-icon.is-brand { background: var(--primary-soft); color: var(--primary-text); }

/* ── Toast ─────────────────────────────────────────────────────────────── */
.toasts { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: var(--s-2); width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); background: var(--gray-900); color: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg); font-weight: 500; animation: toast-in var(--dur-slow) var(--ease); border-left: 4px solid var(--brand-400); }
[data-theme="dark"] .toast { background: var(--surface-3); border: 1px solid var(--border-strong); border-left-width: 4px; color: var(--text); }
.toast .icon { margin-top: 1px; }
.toast-success { border-left-color: #34c38f; } .toast-success .icon { color: #34c38f; }
.toast-error { border-left-color: #f46a6a; } .toast-error .icon { color: #f46a6a; }
.toast-warning { border-left-color: #f1b44c; } .toast-warning .icon { color: #f1b44c; }
.toast-info { border-left-color: #50a5f1; } .toast-info .icon { color: #50a5f1; }
.toast-close { margin-left: auto; background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 0; }
.toast-close:hover { opacity: 1; }
.toast.is-leaving { animation: toast-out var(--dur) var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px); } }
@media (max-width: 680px) { .toasts { right: 16px; left: 16px; bottom: 16px; width: auto; } }

/* ── İskelet yükleyici ─────────────────────────────────────────────────── */
.skeleton { position: relative; overflow: hidden; background: var(--surface-3); border-radius: var(--r-sm); min-height: 12px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: shimmer 1.4s infinite; }
[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ── Boş durum ─────────────────────────────────────────────────────────── */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s-12) var(--s-6); gap: var(--s-2); }
.empty-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: var(--primary-text); background: var(--primary-soft); margin-bottom: var(--s-2); position: relative; }
.empty-icon::before { content: ""; position: absolute; inset: -8px; border-radius: 26px; border: 1px dashed var(--brand-200); }
[data-theme="dark"] .empty-icon::before { border-color: var(--primary-soft-2); }
.empty-icon .icon { width: 28px; height: 28px; }
.empty h3 { font-size: var(--fs-md); }
.empty p { color: var(--text-3); max-width: 380px; margin: 0; }

/* ── Sayfalama ─────────────────────────────────────────────────────────── */
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--border); flex-wrap: wrap; }
.pager-info { font-size: var(--fs-sm); color: var(--text-3); }
.pager-links { display: flex; gap: 4px; align-items: center; }
.pager-btn { min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; border-radius: var(--r-sm); font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); border: 1px solid var(--border); background: var(--surface); text-decoration: none !important; }
.pager-btn:hover { background: var(--surface-3); color: var(--text); }
.pager-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager-btn.is-disabled { opacity: .4; }
.pager-btn .icon { width: 16px; height: 16px; }
.pager-gap { color: var(--text-3); padding: 0 4px; }

/* ── KBD / ipucu / ilerleme ────────────────────────────────────────────── */
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 6px; }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 6px 9px; font: 500 12px/1.3 var(--font); color: #fff; background: var(--gray-900); border-radius: 6px; white-space: nowrap; z-index: 80; pointer-events: none; box-shadow: var(--shadow-md); }
.progress { height: 8px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-600), var(--accent)); transition: width var(--dur-slow) var(--ease); }

/* ── İstatistik kartı ──────────────────────────────────────────────────── */
.stat { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); position: relative; overflow: hidden; }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); }
.stat-icon.is-success { background: var(--success-soft); color: var(--success); }
.stat-icon.is-warning { background: var(--warning-soft); color: var(--warning); }
.stat-icon.is-danger { background: var(--danger-soft); color: var(--danger); }
.stat-icon.is-info { background: var(--info-soft); color: var(--info); }
.stat-value { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-foot { font-size: var(--fs-sm); color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.trend { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: 12px; padding: 2px 6px; border-radius: var(--r-full); }
.trend-up { color: var(--success); background: var(--success-soft); }
.trend-down { color: var(--danger); background: var(--danger-soft); }

/* ── Liste / açıklama ──────────────────────────────────────────────────── */
.dl { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 10px var(--s-4); margin: 0; }
.dl dt { color: var(--text-3); font-size: var(--fs-sm); }
.dl dd { margin: 0; font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: var(--s-3); padding: 12px var(--s-5); border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list li .icon { color: var(--success); margin-top: 2px; width: 17px; height: 17px; }

/* ── Diff görünümü (denetim kaydı) ─────────────────────────────────────── */
.diff { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.diff th, .diff td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.diff th { color: var(--text-3); font-weight: 600; font-size: 12px; }
.diff .old { color: var(--danger); background: var(--danger-soft); border-radius: 4px; padding: 1px 6px; text-decoration: line-through; text-decoration-color: rgba(192, 40, 28, .4); word-break: break-word; }
.diff .new { color: var(--success); background: var(--success-soft); border-radius: 4px; padding: 1px 6px; word-break: break-word; }
.diff code { font-size: 12px; }
