/* STK-360 — çekirdek tasarım sistemi (panel, yönetim, site, portal ortak) */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/lib/inter/inter-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/lib/inter/inter-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand: #16a34a;
  --brand-600: #15803d;
  --brand-700: #166534;
  --brand-50: #f0fdf4;
  --brand-100: #dcfce7;
  --lime: #84cc16;
  --navy: #0f1b2d;
  --navy-2: #16243a;

  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f1f5f9;
  --border: #e3e8ee;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --muted: #94a3b8;

  --blue: #2563eb; --blue-bg: #eff6ff;
  --amber: #b45309; --amber-bg: #fffbeb;
  --red: #dc2626; --red-bg: #fef2f2;
  --violet: #7c3aed; --violet-bg: #f5f3ff;
  --cyan: #0891b2; --cyan-bg: #ecfeff;
  --green: #15803d; --green-bg: #f0fdf4;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .05);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .06);
  --ring: 0 0 0 3px rgba(22, 163, 74, .25);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]).theme-auto {
    --bg: #0b1220; --surface: #111a2b; --surface-2: #0f1828; --surface-3: #1a2539; --border: #22304a; --border-strong: #33435f;
    --text: #e6edf6; --text-2: #b4c0d3; --text-3: #8d9ab0; --muted: #64748b;
    --brand-50: rgba(22, 163, 74, .12); --brand-100: rgba(22, 163, 74, .2);
    --blue-bg: rgba(37, 99, 235, .15); --amber-bg: rgba(180, 83, 9, .18); --red-bg: rgba(220, 38, 38, .15);
    --violet-bg: rgba(124, 58, 237, .16); --cyan-bg: rgba(8, 145, 178, .16); --green-bg: rgba(22, 163, 74, .14);
    --blue: #60a5fa; --amber: #fbbf24; --red: #f87171; --violet: #a78bfa; --cyan: #22d3ee; --green: #4ade80;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4); --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #111a2b; --surface-2: #0f1828; --surface-3: #1a2539; --border: #22304a; --border-strong: #33435f;
  --text: #e6edf6; --text-2: #b4c0d3; --text-3: #8d9ab0; --muted: #64748b;
  --brand-50: rgba(22, 163, 74, .12); --brand-100: rgba(22, 163, 74, .2);
  --blue-bg: rgba(37, 99, 235, .15); --amber-bg: rgba(180, 83, 9, .18); --red-bg: rgba(220, 38, 38, .15);
  --violet-bg: rgba(124, 58, 237, .16); --cyan-bg: rgba(8, 145, 178, .16); --green-bg: rgba(22, 163, 74, .14);
  --blue: #60a5fa; --amber: #fbbf24; --red: #f87171; --violet: #a78bfa; --cyan: #22d3ee; --green: #4ade80;
  --shadow: 0 1px 3px rgba(0, 0, 0, .4); --shadow-lg: 0 10px 30px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; color: var(--text); }
h1 { font-size: 1.75rem; } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; } h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
small, .small { font-size: .85em; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--surface-3); padding: .1em .35em; border-radius: 4px; }
::selection { background: var(--brand-100); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
[hidden] { display: none !important; }
.bi { line-height: 1; vertical-align: -.125em; }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; text-decoration: none !important; background: var(--surface); color: var(--text); user-select: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.disabled { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(22, 163, 74, .3); }
.btn-primary:hover { background: var(--brand-600); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.btn-outline:hover { background: var(--surface-3); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { filter: brightness(.92); }
.btn-soft { background: var(--brand-50); color: var(--brand-700); }
.btn-soft:hover { background: var(--brand-100); }
:root[data-theme="dark"] .btn-soft { color: var(--green); }
.btn-sm { height: 32px; padding: 0 11px; font-size: .84rem; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 1rem; border-radius: 12px; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; }
.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Formlar ---------- */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-size: .86rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field .hint { font-size: .8rem; color: var(--text-3); margin-top: 5px; }
.req::after { content: " *"; color: var(--red); }
.input, select.input, textarea.input { width: 100%; height: 42px; padding: 0 12px; font: inherit; font-size: .95rem; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none; }
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.input { padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M1.6 5.1a.75.75 0 0 1 1.06 0L8 10.4l5.34-5.3a.75.75 0 1 1 1.06 1.06l-5.87 5.87a.75.75 0 0 1-1.06 0L1.6 6.16a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
select.input[multiple] { height: auto; padding: 6px; background-image: none; }
.input:hover { border-color: var(--muted); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input::placeholder { color: var(--muted); }
.input.is-invalid, .input-validation-error { border-color: var(--red) !important; }
.field-error, .field-validation-error { display: block; color: var(--red); font-size: .82rem; margin-top: 5px; font-weight: 500; }
.validation-summary-errors ul { margin: 0; padding-left: 18px; }
.input-sm { height: 34px; font-size: .88rem; border-radius: 8px; }
.input-group { display: flex; align-items: stretch; }
.input-group > .input { border-radius: 0; flex: 1; min-width: 0; }
.input-group > :first-child { border-radius: 10px 0 0 10px; }
.input-group > :last-child { border-radius: 0 10px 10px 0; }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text-2); font-size: .9rem; white-space: nowrap; }
.input-group .addon:first-child { border-right: 0; } .input-group .addon:last-child { border-left: 0; }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .input { padding-left: 36px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .93rem; color: var(--text); line-height: 1.4; margin-bottom: 8px; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; cursor: pointer; }
.check small { display: block; color: var(--text-3); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .93rem; }
.switch input { appearance: none; -webkit-appearance: none; width: 40px; height: 22px; border-radius: 99px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(18px); }
.chips-input { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: 99px; font-size: .86rem; cursor: pointer; transition: all .15s; background: var(--surface); color: var(--text-2); user-select: none; }
.chip-check input:checked + span { background: var(--brand-50); border-color: var(--brand); color: var(--brand-700); font-weight: 600; }
:root[data-theme="dark"] .chip-check input:checked + span { color: var(--green); }
.chip-check input:focus-visible + span { box-shadow: var(--ring); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 720px) { .form-grid, .form-grid-3 { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; padding-top: 8px; flex-wrap: wrap; }
.form-section { padding: 20px 0; border-top: 1px solid var(--border); }
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-section-title { font-size: .95rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.form-section-title .bi { color: var(--brand); }
.color-input { width: 46px; height: 42px; padding: 4px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); cursor: pointer; }

/* ---------- Kartlar ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad, .card-body { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.card-head .sub { font-size: .82rem; color: var(--text-3); font-weight: 400; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card + .card { margin-top: 16px; }
.card-link { display: block; color: inherit; text-decoration: none !important; transition: box-shadow .15s, border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 600; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .1s; }
.table-hover tbody tr:hover { background: var(--surface-2); }
.table tr.clickable { cursor: pointer; }
.table .num, .table .text-end { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; width: 1%; }
.table .check-col { width: 36px; }
.table .check-col input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }
.table-compact td { padding: 8px 12px; }
.table tfoot td { font-weight: 700; background: var(--surface-2); border-top: 1px solid var(--border); }
@media (max-width: 720px) {
  .table-stack thead { display: none; }
  .table-stack tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--border); }
  .table-stack td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
  .table-stack td::before { content: attr(data-label); font-weight: 600; color: var(--text-3); font-size: .82rem; text-align: left; }
  .table-stack td.primary-cell { display: block; text-align: left; padding-bottom: 6px; }
  .table-stack td.primary-cell::before, .table-stack td.actions::before, .table-stack td.check-col::before { content: none; }
  .table-stack td.check-col { display: none; }
  .table-stack td.actions { justify-content: flex-end; width: auto; }
}

/* ---------- Rozet & etiket ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: .76rem; font-weight: 600; line-height: 1.4; white-space: nowrap; background: var(--surface-3); color: var(--text-2); }
.badge-green { background: var(--green-bg); color: var(--green); }
.badge-blue { background: var(--blue-bg); color: var(--blue); }
.badge-amber { background: var(--amber-bg); color: var(--amber); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-violet { background: var(--violet-bg); color: var(--violet); }
.badge-cyan { background: var(--cyan-bg); color: var(--cyan); }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: .78rem; font-weight: 500; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); }

/* ---------- Avatar ---------- */
.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; color: #fff; background: linear-gradient(135deg, #16a34a, #0d9488); flex-shrink: 0; overflow: hidden; object-fit: cover; letter-spacing: .02em; }
.avatar-sm { width: 30px; height: 30px; font-size: .72rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar-xl { width: 104px; height: 104px; font-size: 2rem; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.c1 { background: linear-gradient(135deg, #2563eb, #7c3aed); } .avatar.c2 { background: linear-gradient(135deg, #ea580c, #db2777); }
.avatar.c3 { background: linear-gradient(135deg, #0891b2, #2563eb); } .avatar.c4 { background: linear-gradient(135deg, #ca8a04, #ea580c); }
.avatar.c5 { background: linear-gradient(135deg, #7c3aed, #db2777); } .avatar.c6 { background: linear-gradient(135deg, #059669, #65a30d); }
.person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.person .meta { min-width: 0; }
.person .name { font-weight: 600; color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .sub { font-size: .8rem; color: var(--text-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.person:hover { text-decoration: none; } a.person:hover .name { color: var(--brand-600); }

/* ---------- İlerleme ---------- */
.progress { height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--lime)); border-radius: 99px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.progress.thin { height: 6px; }
.progress.blue > span { background: linear-gradient(90deg, #2563eb, #06b6d4); }

/* ---------- Uyarı kutuları ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); font-size: .92rem; border: 1px solid transparent; margin-bottom: 16px; }
.alert > .bi { font-size: 1.15rem; margin-top: 1px; flex-shrink: 0; }
.alert-info { background: var(--blue-bg); color: var(--blue); border-color: rgba(37, 99, 235, .15); }
.alert-success { background: var(--green-bg); color: var(--green); border-color: rgba(22, 163, 74, .18); }
.alert-warning { background: var(--amber-bg); color: var(--amber); border-color: rgba(180, 83, 9, .18); }
.alert-danger { background: var(--red-bg); color: var(--red); border-color: rgba(220, 38, 38, .18); }
.alert p:last-child { margin: 0; }
.alert a { color: inherit; font-weight: 600; text-decoration: underline; }
.alert .alert-body { flex: 1; min-width: 0; }

/* ---------- Boş durum ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--text-3); }
.empty .empty-icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand); font-size: 1.7rem; }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.empty p { max-width: 420px; margin: 0 auto 18px; }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; color: var(--text-3); font-weight: 600; font-size: .9rem; border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; text-decoration: none !important; font-family: inherit; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs a.active, .tabs button.active { color: var(--brand-600); border-bottom-color: var(--brand); }
.tabs .count { background: var(--surface-3); color: var(--text-2); font-size: .74rem; padding: 1px 7px; border-radius: 99px; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 2px; }
.seg a, .seg button, .seg label { padding: 6px 12px; border-radius: 8px; font-size: .85rem; font-weight: 600; color: var(--text-2); border: 0; background: none; cursor: pointer; text-decoration: none !important; font-family: inherit; }
.seg .active, .seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg label input { display: none; } .seg label span { display: block; padding: 0; }

/* ---------- Açılır menü ---------- */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; display: none; animation: pop .12s ease-out; }
.dropdown-menu.left { right: auto; left: 0; }
.dropdown.open > .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px; color: var(--text); font-size: .9rem; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; text-decoration: none !important; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-3); }
.dropdown-menu .bi { color: var(--text-3); width: 18px; text-align: center; }
.dropdown-menu .danger, .dropdown-menu .danger .bi { color: var(--red); }
.dropdown-menu hr { margin: 6px 0; }
.dropdown-menu .menu-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 11px 4px; font-weight: 700; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(2px); animation: fade .15s; }
.modal-box { position: relative; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .15s ease-out; }
.modal-box.lg { max-width: 760px; } .modal-box.sm { max-width: 420px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 10px; }
.modal-head h3 { margin: 0; font-size: 1.1rem; }
.modal-body { padding: 8px 20px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal-box { border-radius: 18px 18px 0 0; max-height: 92vh; animation: slideup .2s ease-out; }
}
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Bildirim (toast) ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; background: var(--navy); color: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .92rem; animation: toastin .25s cubic-bezier(.2, .8, .2, 1); }
.toast .bi { font-size: 1.1rem; margin-top: 1px; }
.toast.success .bi { color: #4ade80; } .toast.error .bi { color: #f87171; } .toast.info .bi { color: #60a5fa; } .toast.warning .bi { color: #fbbf24; }
.toast .close { margin-left: auto; background: none; border: 0; color: rgba(255,255,255,.6); cursor: pointer; padding: 0 0 0 6px; font-size: 1rem; }
.toast.hide { animation: toastout .2s forwards; }
@keyframes toastin { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toastout { to { transform: translateX(30px); opacity: 0; } }
@media (max-width: 600px) { .toasts { left: 16px; right: 16px; bottom: 80px; max-width: none; } }

/* ---------- İstatistik kutuları ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 18px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow-sm); color: inherit; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
a.stat:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.stat .icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; background: var(--brand-50); color: var(--brand); }
.stat .icon.blue { background: var(--blue-bg); color: var(--blue); } .stat .icon.amber { background: var(--amber-bg); color: var(--amber); }
.stat .icon.red { background: var(--red-bg); color: var(--red); } .stat .icon.violet { background: var(--violet-bg); color: var(--violet); }
.stat .icon.cyan { background: var(--cyan-bg); color: var(--cyan); }
.stat .label { font-size: .82rem; color: var(--text-3); font-weight: 500; }
.stat .value { font-size: 1.45rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .delta { font-size: .78rem; color: var(--text-3); margin-top: 2px; }
.stat .delta.up { color: var(--green); } .stat .delta.down { color: var(--red); }

/* ---------- Liste ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.list .sub { font-size: .82rem; color: var(--text-3); }
.list a.row-link { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; flex: 1; min-width: 0; }
.list a.row-link:hover .title { color: var(--brand-600); }
.icon-box { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--text-2); flex-shrink: 0; font-size: 1.05rem; }
.icon-box.green { background: var(--green-bg); color: var(--green); } .icon-box.blue { background: var(--blue-bg); color: var(--blue); }
.icon-box.amber { background: var(--amber-bg); color: var(--amber); } .icon-box.red { background: var(--red-bg); color: var(--red); }
.icon-box.violet { background: var(--violet-bg); color: var(--violet); } .icon-box.cyan { background: var(--cyan-bg); color: var(--cyan); }
.date-box { width: 50px; text-align: center; border-radius: 10px; border: 1px solid var(--border); overflow: hidden; flex-shrink: 0; background: var(--surface); }
.date-box .m { background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; padding: 2px 0; letter-spacing: .04em; }
.date-box .d { font-size: 1.2rem; font-weight: 800; padding: 3px 0 4px; line-height: 1.1; }

/* ---------- Tanım listesi ---------- */
.dl { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 10px 16px; margin: 0; font-size: .92rem; }
.dl dt { color: var(--text-3); font-weight: 500; }
.dl dd { margin: 0; font-weight: 500; word-break: break-word; }

/* ---------- Yardımcılar ---------- */
.row { display: flex; gap: 12px; align-items: center; }
.row-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.grid-main-l { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main, .grid-main-l { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.muted { color: var(--text-3); } .text-2 { color: var(--text-2); }
.text-green { color: var(--green); } .text-red { color: var(--red); } .text-amber { color: var(--amber); } .text-blue { color: var(--blue); }
.fw-6 { font-weight: 600; } .fw-7 { font-weight: 700; }
.nowrap { white-space: nowrap; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.center { text-align: center; } .right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.p-0 { padding: 0 !important; }
.w-100 { width: 100%; }
.tnum { font-variant-numeric: tabular-nums; }
.divider-text { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 18px 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.spinner { width: 20px; height: 20px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 50%, var(--surface-3) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.kbd { font-family: inherit; font-size: .75rem; padding: 1px 6px; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; color: var(--text-3); background: var(--surface); }
.prose { line-height: 1.75; font-size: 1rem; color: var(--text); }
.prose img { border-radius: 12px; margin: 1em 0; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote { border-left: 3px solid var(--brand); margin: 1em 0; padding: .2em 1em; color: var(--text-2); }
.prose a { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 16px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: .88rem; font-weight: 600; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); text-decoration: none !important; }
.pagination a:hover { border-color: var(--border-strong); color: var(--text); }
.pagination .active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .info { border: 0; background: none; color: var(--text-3); font-weight: 500; }
.qr-img { width: 100%; max-width: 240px; image-rendering: pixelated; background: #fff; border-radius: 12px; padding: 10px; }
.color-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.drop-zone { border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; color: var(--text-3); cursor: pointer; transition: border-color .15s, background .15s; background: var(--surface-2); display: block; }
.drop-zone:hover, .drop-zone.drag { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.drop-zone .bi { font-size: 1.8rem; display: block; margin-bottom: 6px; color: var(--brand); }
.drop-zone input[type=file] { display: none; }
.img-preview { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border); }
.img-picker { position: relative; display: block; cursor: pointer; }
.img-picker input { display: none; }
.img-picker .ph { width: 100%; aspect-ratio: 16/9; border-radius: 12px; border: 2px dashed var(--border-strong); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-3); background: var(--surface-2); gap: 6px; font-size: .88rem; }
.img-picker .ph .bi { font-size: 1.6rem; color: var(--brand); }
.img-picker.square .ph, .img-picker.square img { aspect-ratio: 1; }
.img-picker img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.img-picker .change { position: absolute; right: 8px; bottom: 8px; }

/* Tema uyumlu logo */
.logo-on-dark { display: none !important; }
:root[data-theme="dark"] .logo-on-light { display: none !important; }
:root[data-theme="dark"] .logo-on-dark { display: inline-block !important; }
@media (prefers-color-scheme: dark) {
  :root.theme-auto .logo-on-light { display: none !important; }
  :root.theme-auto .logo-on-dark { display: inline-block !important; }
}
