/* ==========================================================================
   RENT11 — Yönetim Paneli Stil Dosyası (admin/assets/admin.css)
   --------------------------------------------------------------------------
   TEMA
     Varsayılan koyu tema; <html data-theme="light"> açık tema. Tercih localStorage
     'r11_admin_theme' anahtarında tutulur. Ana renk: --primary / --primary-rgb / --primary-2
     (header.php theme_color() ile üzerine yazar). Durum renkleri: --success --warning --danger --info
     (+ -rgb). Yüzeyler: --bg --surface --surface-2 --surface-3 --border --text --text-2 --muted.

   YERLEŞİM
     .admin-layout > aside.sidebar + .admin-main > header.topbar + main.admin-content
     html.sidebar-collapsed (masaüstü dar menü) · html.sidebar-open (mobil çekmece)
     .page-header > (.page-heading > .breadcrumb + h1.page-title + .page-subtitle) + .page-actions
       (header.php otomatik basar: $pageTitle, $pageSubtitle, $breadcrumbs, $pageActions; $hidePageHeader = true ile gizlenir)

   KARTLAR
     .card > .card-header (h3.card-title [+ i ikon] + .card-tools) + .card-body (+ .card-footer)
     .card-body.p-0 / .flush → dolgusuz (tablo için). .card > .table-wrap doğrudan da kullanılabilir.
     .stat-card[.is-primary|.is-success|.is-warning|.is-danger|.is-info] > .stat-icon + .stat-body(.stat-label .stat-value .stat-trend[.up|.down])
       .stat-value[data-count="1250"][data-suffix=" ₺"] → admin.js sayar.

   GRID / DİZİLİM
     .grid (gap 20px) · .grid-2 .grid-3 .grid-4 (mobilde otomatik tek/iki sütun) · .grid-2-1 .grid-1-2 (asimetrik)
     .col-span-2 · .row-between (iki uç, ortalı) · .stack (dikey boşluk) .stack-sm .stack-lg · .d-flex .gap-1 .gap-2 .gap-3 .wrap

   BUTONLAR
     .btn + .btn-primary .btn-secondary .btn-light .btn-success .btn-danger .btn-warning .btn-info .btn-outline
     boyut .btn-sm .btn-lg · .btn-icon (kare, sadece ikon) · .btn-block · .is-loading (döner)

   TABLOLAR
     .table-wrap (yatay kaydırma) > table.table (thead th, tbody td) · .table-sm · td.actions / th.actions (sağa hizalı)
     .thumb (48px) .thumb-lg · .cell-media (görsel + metin) .cell-title .cell-sub · tr.is-unread · .drag-handle
     tbody[data-sortable="tablo"] > tr[data-id] → SortableJS · .table-wrap.no-min (min genişlik yok)

   ROZETLER
     .badge + .badge-success .badge-warning .badge-danger .badge-info .badge-primary .badge-muted · .badge-dot (nokta)

   FORMLAR
     .form-grid (2 sütun, mobilde 1) > .span-2 (tam genişlik) · .form-group > label.form-label(.required) + .form-control
     .form-hint · .invalid-feedback · .form-control.is-invalid · .input-group > i.input-icon + .form-control (+ .input-addon)
     label.switch > input[type=checkbox] + span.slider (.switch-sm) · .switch-field + .switch-label · label.check > input + span
     select.js-select (Tom Select) · select.js-icon-select (ikonlu) · input.js-date (flatpickr Y-m-d) · input.js-datetime · input.js-time
     .color-input > input[type=color] + input.form-control (hex) · .form-actions (.sticky) · [data-maxlength] → karakter sayacı
     .upload-box[data-preview] > input[type=file] + img.upload-preview (+ .upload-placeholder) — admin_image_field() üretir
     input[data-slug-source="#alan"] → otomatik slug · [data-password-toggle] · [data-check-all="ids[]"]

   FİLTRELER / SEKME / MODAL
     .toolbar (esnek filtre satırı) · .search-input (> i + input) · .pill-nav > a.pill(.active) > .pill-count
     .tabs > .tab-nav > button.tab-btn[data-tab="x"] ; .tab-pane#x (.active)   (location.hash ile hatırlanır)
     .modal#id > .modal-dialog(.modal-sm|.modal-lg|.modal-xl) > .modal-header(.modal-title + [data-modal-close]) / .modal-body / .modal-footer
       aç: [data-modal-open="id"] (+ data-fill='{"alan":"değer"}', data-modal-title="Başlık") · kapat: [data-modal-close]
       data-fill: name="alan" / name="alan[]" alanlarını doldurur (checkbox, radio, select, Tom Select, flatpickr dahil);
         [data-fill-text="alan"] metin, [data-fill-src="alan"] img src (admin_image_field önizlemesi: "{name}_src"),
         [data-fill-href="alan"] link (boşsa gizlenir). data-fill olmadan açılırsa modal ilk haline döner (yeni kayıt).
       Sayfa yüklenince açmak: .modal[data-open-on-load] veya URL ?modal=id  · PHP: data-fill="<?= admin_fill($row) ?>"
     Onay: form[data-confirm="Mesaj"] veya button[type=submit][data-confirm] (+ data-confirm-button, data-confirm-title,
       data-confirm-type="primary" → kırmızı yerine ana renk) · a[data-confirm]
     Toplu seçim: input[data-check-all="ids[]"] + [data-bulk-count="ids[]"] + [data-bulk-show="ids[]"] + [data-bulk-requires="ids[]"]
     Diğer: select[data-autosubmit] (+ data-confirm-map='{"deger":"Onay mesajı"}') · [data-copy="metin"] · textarea[data-embed-preview="#iframe"] · input[data-password-meter="#meter"]
     .dropdown > [data-dropdown-toggle] + .dropdown-menu > .dropdown-item
     .alert .alert-success/.alert-error/.alert-warning/.alert-info · .empty-state · .pagination-wrap (.pagination .page-link)

   YARDIMCILAR
     .text-muted .text-primary .text-success .text-danger .text-warning .text-right .text-center .fw-bold .small .nowrap .truncate
     .mt-0..4 .mb-0..4 .w-100 .hide-mobile .show-mobile .no-print .avatar .info-list > .info-row(.info-label + .info-value)
     .timeline > .timeline-item · .progress > .progress-bar · .divider · .kbd · .dot
   ========================================================================== */

/* ---------- 1. Tasarım belirteçleri ---------- */
:root {
    --primary: #ff5a1f;
    --primary-rgb: 255, 90, 31;
    --primary-2: #ff9a3c;
    --success: #22c55e;  --success-rgb: 34, 197, 94;
    --warning: #f59e0b;  --warning-rgb: 245, 158, 11;
    --danger: #ef4444;   --danger-rgb: 239, 68, 68;
    --info: #38bdf8;     --info-rgb: 56, 189, 248;
    --violet: #a78bfa;   --violet-rgb: 167, 139, 250;
    --muted-rgb: 139, 147, 167;

    --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;

    --sidebar-w: 276px;
    --sidebar-w-c: 86px;
    --topbar-h: 72px;
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 16px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);

    color-scheme: dark;
    --bg: #07080c;
    --bg-soft: #0b0d13;
    --surface: #0f121a;
    --surface-2: #151923;
    --surface-3: #1c2130;
    --surface-glass: rgba(15, 18, 26, .72);
    --border: rgba(255, 255, 255, .07);
    --border-strong: rgba(255, 255, 255, .12);
    --text: #eef0f5;
    --text-2: #c5cad6;
    --muted: #8b93a7;
    --muted-2: #5f677b;
    --input-bg: rgba(255, 255, 255, .035);
    --input-bg-focus: rgba(255, 255, 255, .06);
    --hover: rgba(255, 255, 255, .045);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .25);
    --shadow: 0 14px 36px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .75);
    --glow: 0 10px 28px -8px rgba(var(--primary-rgb), .6);
    --sidebar-bg: rgba(11, 13, 19, .82);
    --topbar-bg: rgba(7, 8, 12, .7);
    --overlay: rgba(3, 4, 7, .68);
    --grid-line: rgba(255, 255, 255, .028);
    --ambient: .14;
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #f2f4f9;
    --bg-soft: #eceff6;
    --surface: #ffffff;
    --surface-2: #f7f8fc;
    --surface-3: #eef1f7;
    --surface-glass: rgba(255, 255, 255, .8);
    --border: rgba(15, 23, 42, .08);
    --border-strong: rgba(15, 23, 42, .15);
    --text: #0f172a;
    --text-2: #334155;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --input-bg: #ffffff;
    --input-bg-focus: #ffffff;
    --hover: rgba(15, 23, 42, .045);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
    --shadow: 0 14px 34px -14px rgba(15, 23, 42, .2);
    --shadow-lg: 0 30px 70px -20px rgba(15, 23, 42, .3);
    --glow: 0 10px 26px -10px rgba(var(--primary-rgb), .55);
    --sidebar-bg: rgba(255, 255, 255, .86);
    --topbar-bg: rgba(242, 244, 249, .78);
    --overlay: rgba(15, 23, 42, .45);
    --grid-line: rgba(15, 23, 42, .035);
    --ambient: .1;
}

/* ---------- 2. Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    overflow-x: clip;
    transition: background-color .35s var(--ease), color .35s var(--ease);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(900px 520px at 88% -12%, rgba(var(--primary-rgb), var(--ambient)), transparent 62%),
        radial-gradient(760px 520px at -8% 108%, rgba(var(--primary-rgb), calc(var(--ambient) * .6)), transparent 62%),
        radial-gradient(600px 400px at 50% 50%, rgba(var(--violet-rgb), calc(var(--ambient) * .25)), transparent 70%);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 60% 0%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 60% 0%, #000 30%, transparent 75%);
}
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-2); }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.25; color: var(--text); font-weight: 700; }
p { margin: 0 0 1em; }
hr, .divider { border: 0; height: 1px; background: var(--border); margin: 20px 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(var(--primary-rgb), .35); color: var(--text); }
:focus-visible { outline: 2px solid rgba(var(--primary-rgb), .7); outline-offset: 2px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); width: 18px; height: 18px; cursor: pointer; }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--muted-2); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes r11FadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes r11Fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes r11Spin { to { transform: rotate(360deg); } }
@keyframes r11Pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), .55); } 70% { box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); } }
@keyframes r11Float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes r11Shine { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(220%) skewX(-18deg); } }
@keyframes r11Gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ---------- 3. Yerleşim ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-main {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left .4s var(--ease-out);
}
.admin-content {
    flex: 1;
    width: 100%;
    max-width: 1640px;
    margin: 0 auto;
    padding: 28px 30px 40px;
}
.admin-content > *:not(.modal):not(script) { animation: r11FadeUp .55s var(--ease-out) both; }
.admin-content > *:nth-child(2) { animation-delay: .05s; }
.admin-content > *:nth-child(3) { animation-delay: .1s; }
.admin-content > *:nth-child(4) { animation-delay: .15s; }
.admin-content > *:nth-child(5) { animation-delay: .2s; }
.admin-content > *:nth-child(n+6) { animation-delay: .25s; }
.admin-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
    padding: 18px 30px 24px;
    color: var(--muted);
    font-size: 12.5px;
    border-top: 1px solid var(--border);
}
.admin-footer a { color: var(--muted); }
.admin-footer a:hover { color: var(--primary); }

/* ---------- 4. Kenar menüsü ---------- */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    width: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    background: var(--sidebar-bg);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border-right: 1px solid var(--border);
    transition: width .4s var(--ease-out), transform .45s var(--ease-out), background-color .35s;
}
.sidebar::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 260px;
    pointer-events: none;
    background: radial-gradient(280px 220px at 0 0, rgba(var(--primary-rgb), .2), transparent 70%);
}
.sidebar-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: var(--topbar-h);
    padding: 0 16px 0 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text); }
.sidebar-brand:hover { color: var(--text); }
.brand-mark {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 21px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35);
    overflow: hidden;
}
.brand-mark::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
    animation: r11Shine 4.5s var(--ease) infinite 1.5s;
}
.brand-mark svg { width: 24px; height: 24px; position: relative; z-index: 1; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text b { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: .02em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; white-space: nowrap; }
.brand-logo { max-height: 38px; max-width: 160px; width: auto; object-fit: contain; display: block; }
.sidebar-close { display: none; }
.sidebar-nav {
    position: relative;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 14px 12px 18px;
    overscroll-behavior: contain;
}
.nav-group + .nav-group { margin-top: 12px; }
.nav-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-2);
    padding: 10px 12px 6px;
    white-space: nowrap;
    overflow: hidden;
}
.nav-group button.nav-group-title { border: 0; background: transparent; cursor: pointer; text-align: left; }
.nav-group button.nav-group-title:hover { color: var(--text); }
.nav-group-title > i { flex: none; font-size: 16px; transition: transform .3s var(--ease-out), color .2s; }
.nav-group.is-open .nav-group-title > i { transform: rotate(180deg); color: var(--primary); }
.nav-group.is-collapsible .nav-group-items { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease-out), opacity .25s ease; }
.nav-group.is-collapsible.is-open .nav-group-items { max-height: 320px; opacity: 1; }
.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    margin: 2px 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text-2);
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
    transition: background-color .2s, color .2s, box-shadow .2s;
}
.nav-link > i, .nav-link .nav-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    color: var(--muted);
    transition: color .2s, transform .35s var(--ease-out);
}
.nav-link:hover { background: var(--hover); color: var(--text); }
.nav-link:hover > i { color: var(--text); transform: scale(1.12) rotate(-4deg); }
.nav-link.active {
    color: var(--text);
    background: linear-gradient(90deg, rgba(var(--primary-rgb), .2), rgba(var(--primary-rgb), .04));
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), .2);
}
.nav-link.active > i { color: var(--primary); }
.nav-link.active::before {
    content: "";
    position: absolute;
    left: -12px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--primary);
    box-shadow: 0 0 16px rgba(var(--primary-rgb), .9);
}
.nav-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nav-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 4px 12px -2px rgba(var(--primary-rgb), .6);
}
.nav-badge.badge-warning { background: var(--warning); color: #1c1302; box-shadow: 0 4px 12px -2px rgba(var(--warning-rgb), .6); }
.nav-badge.is-zero { display: none; }
.sidebar-footer { position: relative; padding: 12px; border-top: 1px solid var(--border); flex-shrink: 0; }
.sidebar-footer form { margin: 0; }
.nav-logout:hover { color: var(--danger); background: rgba(var(--danger-rgb), .1); }
.nav-logout:hover > i { color: var(--danger); }
.sidebar-card {
    position: relative;
    overflow: hidden;
    margin: 0 0 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(var(--primary-rgb), .22);
    background: linear-gradient(140deg, rgba(var(--primary-rgb), .18), rgba(var(--primary-rgb), .02) 70%);
}
.sidebar-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), .35), transparent 70%);
}
.sidebar-card-title { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.sidebar-card-title i { color: var(--primary); font-size: 14px; }
.sidebar-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: relative; z-index: 1; }
.sidebar-stats div { background: rgba(0, 0, 0, .12); border-radius: 10px; padding: 8px 10px; }
html[data-theme="light"] .sidebar-stats div { background: rgba(255, 255, 255, .7); }
.sidebar-stats b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); }
.sidebar-stats span { font-size: 11px; color: var(--muted); font-weight: 600; }
.sidebar-overlay { display: none; }
.nav-tooltip {
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text);
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    pointer-events: none;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .15s, transform .2s var(--ease-out);
    white-space: nowrap;
}
.nav-tooltip.show { opacity: 1; transform: none; }

@media (min-width: 992px) {
    html.sidebar-collapsed .sidebar { width: var(--sidebar-w-c); }
    html.sidebar-collapsed .admin-main { margin-left: var(--sidebar-w-c); }
    html.sidebar-collapsed .brand-text,
    html.sidebar-collapsed .brand-logo,
    html.sidebar-collapsed .nav-text,
    html.sidebar-collapsed .sidebar-card { display: none; }
    html.sidebar-collapsed .sidebar-head { justify-content: center; padding: 0; }
    html.sidebar-collapsed .nav-group-title { font-size: 0; height: 1px; padding: 0; margin: 12px 16px; background: var(--border); }
    html.sidebar-collapsed .nav-group-title > i { display: none; }
    html.sidebar-collapsed .nav-group.is-collapsible .nav-group-items { max-height: 320px; opacity: 1; }
    html.sidebar-collapsed .nav-link { justify-content: center; padding: 0; }
    html.sidebar-collapsed .nav-link.active::before { left: -12px; }
    html.sidebar-collapsed .nav-badge { position: absolute; top: 7px; right: 12px; min-width: 10px; width: 10px; height: 10px; padding: 0; font-size: 0; }
}

/* ---------- 5. Üst çubuk ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 30px;
    background: var(--topbar-bg);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border);
    transition: background-color .35s;
}
.topbar-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.topbar-title small { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-title b { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-search { position: relative; flex: 0 1 400px; margin-left: auto; }
.topbar-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; pointer-events: none; }
.topbar-search input {
    width: 100%;
    height: 44px;
    padding: 0 48px 0 42px;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.topbar-search input::placeholder { color: var(--muted); }
.topbar-search input:focus { border-color: rgba(var(--primary-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .14); background: var(--input-bg-focus); }
.topbar-search .kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-search + .topbar-actions { margin-left: 0; }
.icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text-2);
    font-size: 19px;
    line-height: 1;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--hover); }
.icon-btn:active { transform: scale(.95); }
.icon-btn .count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 10.5px;
    font-weight: 800;
    color: #fff;
    background: var(--primary);
    border: 2px solid var(--bg);
    animation: r11Pulse 2.2s infinite;
}
.icon-btn .count.is-zero { display: none; }
.theme-toggle .ri-sun-line { display: none; }
html[data-theme="light"] .theme-toggle .ri-sun-line { display: inline-block; }
html[data-theme="light"] .theme-toggle .ri-moon-clear-line { display: none; }
.search-toggle { display: none; }
.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 12px 0 4px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    transition: border-color .2s, background-color .2s;
}
.user-btn:hover { border-color: var(--border-strong); background: var(--hover); }
.user-btn .avatar { width: 34px; height: 34px; font-size: 12px; border-radius: 10px; }
.user-meta { display: flex; flex-direction: column; text-align: left; line-height: 1.2; max-width: 140px; }
.user-meta b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { font-size: 11px; color: var(--muted); }
.user-btn > .ri-arrow-down-s-line { color: var(--muted); }

/* ---------- 6. Açılır menüler ---------- */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 90;
    min-width: 240px;
    padding: 8px;
    border-radius: 18px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top right;
    transition: opacity .2s var(--ease), transform .25s var(--ease-out), visibility 0s linear .25s;
}
.dropdown-menu.left { right: auto; left: 0; transform-origin: top left; }
.dropdown.open > .dropdown-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .25s var(--ease-out), visibility 0s; }
.dropdown-header { padding: 10px 12px 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dropdown-header b { font-size: 14px; }
.dropdown-header small { color: var(--muted); display: block; font-size: 12px; }
.dropdown-label { padding: 10px 12px 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--text-2);
    font-weight: 600;
    font-size: 13.5px;
    text-align: left;
    transition: background-color .15s, color .15s;
}
.dropdown-item > i { font-size: 18px; color: var(--muted); width: 20px; text-align: center; }
.dropdown-item:hover { background: var(--hover); color: var(--text); }
.dropdown-item:hover > i { color: var(--primary); }
.dropdown-item.danger:hover { background: rgba(var(--danger-rgb), .1); color: var(--danger); }
.dropdown-item.danger:hover > i { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 4px; }
.dropdown-menu form { margin: 0; }
.notif-menu { width: 380px; max-width: calc(100vw - 24px); padding: 0; overflow: hidden; }
.notif-menu .dropdown-header { padding: 16px 18px 12px; border-bottom: 1px solid var(--border); }
.notif-scroll { max-height: min(420px, 60vh); overflow-y: auto; padding: 6px; }
.notif-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 12px; color: var(--text-2); }
.notif-item:hover { background: var(--hover); color: var(--text); }
.notif-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; font-size: 18px; }
.notif-icon.is-warning { background: rgba(var(--warning-rgb), .14); color: var(--warning); }
.notif-icon.is-primary { background: rgba(var(--primary-rgb), .14); color: var(--primary); }
.notif-body { min-width: 0; flex: 1; line-height: 1.35; }
.notif-body b { display: block; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-body span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-time { font-size: 11px; color: var(--muted-2); white-space: nowrap; font-weight: 600; }
.notif-empty { padding: 34px 20px; text-align: center; color: var(--muted); }
.notif-empty i { font-size: 34px; color: var(--success); display: block; margin-bottom: 8px; }
.notif-footer { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.notif-footer a { padding: 13px; text-align: center; font-weight: 700; font-size: 13px; color: var(--text-2); }
.notif-footer a + a { border-left: 1px solid var(--border); }
.notif-footer a:hover { color: var(--primary); background: var(--hover); }
.user-menu { width: 260px; }
.user-menu-head { display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 4px; border-radius: 14px; background: linear-gradient(135deg, rgba(var(--primary-rgb), .16), transparent); }
.user-menu-head b { display: block; font-size: 14px; }
.user-menu-head small { color: var(--muted); font-size: 12px; display: block; word-break: break-all; }

/* ---------- 7. Sayfa başlığı ---------- */
.page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 26px;
}
.page-heading { min-width: 0; flex: 1 1 320px; }
.page-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(22px, 2.3vw, 30px);
    letter-spacing: -.015em;
    line-height: 1.15;
    color: var(--text);
}
.page-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 760px; }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.breadcrumb a { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: 14px; }
.breadcrumb .sep { opacity: .6; }
.breadcrumb span:last-child { color: var(--text-2); }

/* ---------- 8. Kartlar ---------- */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: border-color .3s, box-shadow .3s, background-color .35s;
    min-width: 0;
}
.card + .card { margin-top: 20px; }
.grid > .card + .card, .stack > .card + .card { margin-top: 0; }
.card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}
.card-title { margin: 0; font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 10px; color: var(--text); letter-spacing: -.005em; }
.card-title > i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    font-size: 17px;
    color: var(--primary);
    background: rgba(var(--primary-rgb), .12);
    flex-shrink: 0;
}
.card-title small { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.card-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.card-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card-body { padding: 22px; }
.card-body.p-0, .card-body.flush { padding: 0; }
.card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
    border-top: 1px solid var(--border);
    background: linear-gradient(0deg, var(--hover), transparent);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.card > .table-wrap:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.card > .table-wrap:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card > .table-wrap:only-child { border-radius: var(--radius-lg); }
.card-hover:hover { border-color: rgba(var(--primary-rgb), .3); box-shadow: var(--shadow); }
.card-glass { background: var(--surface-glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.card-accent { border-color: rgba(var(--primary-rgb), .3); background: linear-gradient(160deg, rgba(var(--primary-rgb), .1), var(--surface) 55%); }

/* İstatistik kartı */
.stat-card {
    --c: var(--primary);
    --c-rgb: var(--primary-rgb);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.stat-card > :not(.stat-icon) { grid-column: 2; }
.stat-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 190px;
    height: 190px;
    right: -70px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--c-rgb), .24), transparent 70%);
    transition: transform .7s var(--ease-out);
}
.stat-card::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--c-rgb), .8), transparent);
    opacity: 0;
    transition: opacity .4s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(var(--c-rgb), .32); color: var(--text); }
.stat-card:hover::after { transform: scale(1.3); }
.stat-card:hover::before { opacity: 1; }
.stat-card.is-success { --c: var(--success); --c-rgb: var(--success-rgb); }
.stat-card.is-warning { --c: var(--warning); --c-rgb: var(--warning-rgb); }
.stat-card.is-danger { --c: var(--danger); --c-rgb: var(--danger-rgb); }
.stat-card.is-info { --c: var(--info); --c-rgb: var(--info-rgb); }
.stat-card.is-violet { --c: var(--violet); --c-rgb: var(--violet-rgb); }
.stat-icon {
    grid-row: 1 / span 4;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: var(--c);
    background: rgba(var(--c-rgb), .14);
    box-shadow: inset 0 0 0 1px rgba(var(--c-rgb), .24);
    transition: transform .5s var(--ease-out);
}
.stat-card:hover .stat-icon { transform: rotate(-8deg) scale(1.06); }
.stat-body { min-width: 0; }
.stat-label { display: block; color: var(--muted); font-weight: 700; font-size: 13px; }
.stat-value {
    display: block;
    margin: 4px 0 8px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    background: var(--hover);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-trend.up { color: var(--success); background: rgba(var(--success-rgb), .12); }
.stat-trend.down { color: var(--danger); background: rgba(var(--danger-rgb), .12); }
.stat-trend.warn { color: var(--warning); background: rgba(var(--warning-rgb), .12); }
a.stat-card { text-decoration: none; }

/* ---------- 9. Grid ---------- */
.grid { display: grid; gap: 20px; }
.grid + .grid, .grid + .card, .card + .grid { margin-top: 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-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.grid > * { min-width: 0; }
.col-span-2 { grid-column: span 2; }
.col-full { grid-column: 1 / -1; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; min-width: 0; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 10px; }
.gap-3 { gap: 16px; }

/* ---------- 10. Butonlar ---------- */
.btn {
    --btn-bg: var(--surface-3);
    --btn-color: var(--text);
    --btn-border: transparent;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-color);
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    isolation: isolate;
    transition: transform .2s var(--ease), box-shadow .25s, background-color .2s, border-color .2s, color .2s, filter .2s;
}
.btn > i { font-size: 17px; line-height: 1; }
.btn:hover { color: var(--btn-color); transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0) scale(.97); }
.btn:disabled, .btn.disabled { opacity: .55; pointer-events: none; }
.btn-primary {
    --btn-color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 45%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: translateX(-120%) skewX(-18deg);
}
.btn-primary:hover::after { animation: r11Shine .9s var(--ease); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(var(--primary-rgb), .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-secondary { --btn-bg: var(--surface-3); --btn-color: var(--text); --btn-border: var(--border); }
.btn-light { --btn-bg: var(--hover); --btn-color: var(--text-2); --btn-border: var(--border); }
.btn-light:hover { --btn-color: var(--text); --btn-border: var(--border-strong); }
.btn-success { --btn-bg: var(--success); --btn-color: #fff; box-shadow: 0 10px 24px -10px rgba(var(--success-rgb), .7); }
.btn-danger { --btn-bg: var(--danger); --btn-color: #fff; box-shadow: 0 10px 24px -10px rgba(var(--danger-rgb), .7); }
.btn-warning { --btn-bg: var(--warning); --btn-color: #1c1302; box-shadow: 0 10px 24px -10px rgba(var(--warning-rgb), .7); }
.btn-info { --btn-bg: var(--info); --btn-color: #04121c; box-shadow: 0 10px 24px -10px rgba(var(--info-rgb), .7); }
.btn-outline { --btn-bg: transparent; --btn-color: var(--text-2); --btn-border: var(--border-strong); }
.btn-outline:hover { --btn-color: var(--primary); --btn-border: rgba(var(--primary-rgb), .6); background: rgba(var(--primary-rgb), .06); }
.btn-soft-primary { --btn-bg: rgba(var(--primary-rgb), .13); --btn-color: var(--primary); }
.btn-soft-danger { --btn-bg: rgba(var(--danger-rgb), .12); --btn-color: var(--danger); }
.btn-soft-success { --btn-bg: rgba(var(--success-rgb), .12); --btn-color: var(--success); }
.btn-soft-danger:hover { --btn-bg: var(--danger); --btn-color: #fff; }
.btn-soft-success:hover { --btn-bg: var(--success); --btn-color: #fff; }
.btn-soft-primary:hover { --btn-bg: var(--primary); --btn-color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; gap: 6px; }
.btn-sm > i { font-size: 15px; }
.btn-lg { height: 52px; padding: 0 26px; border-radius: 15px; font-size: 15.5px; }
.btn-lg > i { font-size: 19px; }
.btn-icon { width: 42px; padding: 0; flex-shrink: 0; }
.btn-icon.btn-sm { width: 34px; }
.btn-icon.btn-lg { width: 52px; }
.btn-block { display: flex; width: 100%; }
.btn.is-loading { pointer-events: none; color: transparent !important; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border-radius: 50%;
    border: 2px solid var(--btn-color);
    border-right-color: transparent;
    animation: r11Spin .7s linear infinite;
    color: var(--btn-color);
    visibility: visible;
}
.btn-primary.is-loading::before { border-color: #fff; border-right-color: transparent; }
.btn-group { display: inline-flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 11. Tablolar ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; color: var(--text-2); }
.table-wrap > .table { min-width: 680px; }
.table-wrap.no-min > .table { min-width: 0; }
.table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.table th:first-child { padding-left: 22px; }
.table th:last-child { padding-right: 22px; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; transition: background-color .2s; }
.table td:first-child { padding-left: 22px; }
.table td:last-child { padding-right: 22px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--hover); }
.table th a { color: inherit; }
.table th a:hover { color: var(--primary); }
.table .actions { text-align: right; white-space: nowrap; width: 1%; }
.table .actions > *, .table .actions form { display: inline-flex; vertical-align: middle; margin: 0; }
.table .actions > * + * { margin-left: 6px; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .nowrap { white-space: nowrap; }
.table .check-col { width: 44px; }
.table-sm td { padding-top: 10px; padding-bottom: 10px; }
.table-sm th { padding-top: 10px; padding-bottom: 10px; }
.table tr.is-unread td { background: rgba(var(--primary-rgb), .05); }
.table tr.is-unread .cell-title { color: var(--text); font-weight: 800; }
.table tr.is-muted td { opacity: .6; }
.thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    background: var(--surface-3);
    border: 1px solid var(--border);
}
.thumb-lg { width: 96px; height: 64px; border-radius: 14px; }
.thumb-sm { width: 36px; height: 36px; border-radius: 10px; }
.cell-media { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-media > div { min-width: 0; }
.cell-title { display: block; font-weight: 700; color: var(--text); line-height: 1.35; }
a.cell-title:hover { color: var(--primary); }
.cell-sub { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.drag-handle {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    color: var(--muted);
    cursor: grab;
    font-size: 18px;
    touch-action: none;
    transition: background-color .2s, color .2s;
}
.drag-handle:hover { background: var(--hover); color: var(--text); }
.drag-handle:active { cursor: grabbing; }
.sortable-ghost, .sortable-ghost td { opacity: .5; background: rgba(var(--primary-rgb), .12) !important; }
.sortable-chosen td { background: var(--hover); }
.sortable-drag { box-shadow: var(--shadow-lg); }
.table-empty td { text-align: center; padding: 40px 16px !important; color: var(--muted); }

/* ---------- 12. Rozetler ---------- */
.badge {
    --b-rgb: var(--muted-rgb);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    color: rgb(var(--b-rgb));
    background: rgba(var(--b-rgb), .14);
    box-shadow: inset 0 0 0 1px rgba(var(--b-rgb), .2);
}
.badge > i { font-size: 13px; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge-success { --b-rgb: var(--success-rgb); }
.badge-warning { --b-rgb: var(--warning-rgb); }
.badge-danger, .badge-error { --b-rgb: var(--danger-rgb); }
.badge-info { --b-rgb: var(--info-rgb); }
.badge-primary { --b-rgb: var(--primary-rgb); }
.badge-violet { --b-rgb: var(--violet-rgb); }
.badge-muted { --b-rgb: var(--muted-rgb); }
html[data-theme="light"] .badge-warning { color: #b45309; }
html[data-theme="light"] .badge-success { color: #15803d; }
html[data-theme="light"] .badge-info { color: #0369a1; }
html[data-theme="light"] .badge-muted { color: #475569; }
/* Açık temada sarı/yeşil/mavi metinlerin okunabilirliği (beyaz zeminde kontrast) */
html[data-theme="light"] .text-warning { color: #b45309 !important; }
html[data-theme="light"] .text-success { color: #15803d !important; }
html[data-theme="light"] .text-info { color: #0369a1 !important; }
html[data-theme="light"] .stat-trend.up { color: #15803d; }
html[data-theme="light"] .stat-trend.warn { color: #b45309; }
html[data-theme="light"] .stat-trend.down { color: #b91c1c; }
html[data-theme="light"] .price-cell .disc { color: #15803d; }
html[data-theme="light"] .badge-primary { color: color-mix(in srgb, var(--primary) 78%, #000); }
.badge-solid { color: #fff; background: rgb(var(--b-rgb)); box-shadow: none; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px rgba(var(--primary-rgb), .8); flex-shrink: 0; }
.dot.success { background: var(--success); box-shadow: 0 0 10px rgba(var(--success-rgb), .8); }
.dot.muted { background: var(--muted-2); box-shadow: none; }
.dot.warning { background: var(--warning); box-shadow: 0 0 10px rgba(var(--warning-rgb), .8); }
.dot.info { background: var(--info); box-shadow: 0 0 10px rgba(var(--info-rgb), .8); }
.dot.danger { background: var(--danger); box-shadow: 0 0 10px rgba(var(--danger-rgb), .8); }
.dot.primary { background: var(--primary); }

/* ---------- 13. Formlar ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid > * { min-width: 0; }
.form-grid .span-2, .form-grid .span-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.form-group + .form-group { margin-top: 18px; }
.form-grid > .form-group + .form-group { margin-top: 0; }
.form-section-title {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 -4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.form-section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.form-section-title i { color: var(--primary); font-size: 16px; }
.form-label { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); margin: 0; }
.form-label.required::after, .form-label .req { content: "*"; color: var(--danger); font-weight: 800; }
.form-label small { font-weight: 600; color: var(--muted); }
.form-control {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--input-bg);
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.45;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
    -webkit-appearance: none;
    appearance: none;
}
.form-control::placeholder { color: var(--muted-2); opacity: 1; }
html[data-theme="light"] .form-control::placeholder { color: #9aa4b5; }
.form-control:hover { border-color: rgba(var(--muted-rgb), .45); }
.form-control:focus { border-color: rgba(var(--primary-rgb), .75); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .15); background: var(--input-bg-focus); }
.form-control:disabled, .form-control[readonly] { opacity: .7; cursor: not-allowed; }
textarea.form-control { min-height: 120px; resize: vertical; }
textarea.form-control.code, .form-control.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
select.form-control {
    padding-right: 42px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b93a7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
}
select.form-control option { background: var(--surface-2); color: var(--text); }
select.form-control[multiple] { background-image: none; padding-right: 14px; }
.form-control-sm { min-height: 38px; padding: 7px 12px; font-size: 13.5px; border-radius: 10px; }
.form-control.is-invalid { border-color: rgba(var(--danger-rgb), .8); box-shadow: 0 0 0 4px rgba(var(--danger-rgb), .12); }
.invalid-feedback { color: var(--danger); font-size: 12.5px; font-weight: 600; }
.form-hint { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.form-hint i { color: var(--primary); }
.form-hint.highlight {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-2);
    background: rgba(var(--primary-rgb), .08);
    border: 1px dashed rgba(var(--primary-rgb), .35);
}
.char-counter { align-self: flex-end; margin-top: -4px; font-size: 11.5px; font-weight: 700; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.char-counter.warn { color: var(--warning); }
.char-counter.over { color: var(--danger); }
.input-group { position: relative; display: flex; align-items: stretch; width: 100%; }
.input-group > .form-control { flex: 1; min-width: 0; }
.input-group > .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 18px;
    color: var(--muted);
    pointer-events: none;
    transition: color .2s;
}
.input-group > .input-icon ~ .form-control { padding-left: 42px; }
.input-group:focus-within > .input-icon { color: var(--primary); }
.input-group > .input-addon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    height: 34px;
    min-width: 34px;
    padding: 0 8px;
    border: 0;
    border-radius: 9px;
    display: inline-grid;
    place-items: center;
    background: transparent;
    color: var(--muted);
    font-size: 18px;
    font-weight: 700;
}
.input-group > .input-addon:hover { color: var(--text); background: var(--hover); }
.input-group.has-addon > .form-control { padding-right: 46px; }
.input-group > .form-control:has(~ .input-addon) { padding-right: 46px; }
.input-group > .input-text {
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    white-space: nowrap;
}
.input-group > .input-text:first-child { border-radius: 12px 0 0 12px; border-right: 0; }
.input-group > .input-text:last-child { border-radius: 0 12px 12px 0; border-left: 0; }
.input-group > .input-text:first-child + .form-control { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > .form-control:not(:last-child):has(+ .input-text) { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* Anahtar (switch) */
.switch { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; width: 46px; height: 26px; cursor: pointer; margin: 0; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 2; }
.switch .slider {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: var(--surface-3);
    box-shadow: inset 0 0 0 1px var(--border-strong);
    transition: background-color .25s, box-shadow .25s;
}
.switch .slider::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
    transition: transform .3s var(--ease-out);
}
.switch input:checked + .slider { background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: 0 4px 14px -4px rgba(var(--primary-rgb), .7); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 2px solid rgba(var(--primary-rgb), .7); outline-offset: 2px; }
.switch input:disabled + .slider { opacity: .5; }
.switch.is-busy .slider { opacity: .6; }
.switch-sm { width: 38px; height: 22px; }
.switch-sm .slider::before { width: 16px; height: 16px; }
.switch-sm input:checked + .slider::before { transform: translateX(16px); }
.switch-field { display: flex; align-items: center; gap: 12px; min-height: 46px; }
.switch-label { display: flex; flex-direction: column; cursor: pointer; line-height: 1.35; }
.switch-label b { font-size: 14px; color: var(--text); }
.switch-label small { font-size: 12.5px; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--text-2); user-select: none; margin: 0; }
.check input { margin: 0; flex-shrink: 0; }
.check:hover { color: var(--text); }
.check-danger input { accent-color: var(--danger); }
.check-list { display: flex; flex-wrap: wrap; gap: 10px 20px; }

/* Renk seçici */
.color-input { display: flex; align-items: center; gap: 10px; }
.color-input input[type="color"] {
    width: 52px;
    height: 46px;
    flex-shrink: 0;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--input-bg);
    cursor: pointer;
}
.color-input input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-input input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 8px; }
.color-input input[type="color"]::-moz-color-swatch { border: 0; border-radius: 8px; }
.color-input .form-control { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; max-width: 160px; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 2px solid transparent;
    background: var(--sw);
    box-shadow: 0 4px 12px -4px var(--sw);
    cursor: pointer;
    transition: transform .2s var(--ease-out), border-color .2s;
    padding: 0;
}
.color-swatch:hover { transform: translateY(-2px) scale(1.08); }
.color-swatch.active { border-color: var(--text); }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.form-actions.between { justify-content: space-between; }
.form-actions.sticky {
    position: sticky;
    bottom: 14px;
    z-index: 30;
    padding: 14px 18px;
    border-radius: 18px;
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
}
.form-actions .form-hint { margin-right: auto; }

/* Görsel yükleme */
.upload-field { gap: 10px; }
.upload-box {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 150px;
    overflow: hidden;
    border-radius: 16px;
    border: 2px dashed var(--border-strong);
    background:
        linear-gradient(135deg, rgba(var(--primary-rgb), .05), transparent 60%),
        var(--input-bg);
    transition: border-color .25s, background-color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.upload-box.upload-square { aspect-ratio: 1 / 1; max-width: 260px; }
.upload-box.upload-logo { aspect-ratio: 3 / 1; min-height: 110px; max-width: 420px; background-color: #0b0d12; }
.upload-box.upload-banner { aspect-ratio: 21 / 8; }
.upload-box.upload-mini { aspect-ratio: 1 / 1; max-width: 150px; min-height: 120px; background-color: #0b0d12; }
.upload-mini .upload-placeholder b, .upload-mini .upload-placeholder small { display: none; }
.upload-mini .upload-filename { display: none; }
.upload-box:hover, .upload-box.is-dragover { border-color: rgba(var(--primary-rgb), .7); background-color: rgba(var(--primary-rgb), .05); }
.upload-box.is-dragover { transform: scale(1.01); box-shadow: 0 0 0 6px rgba(var(--primary-rgb), .1); }
.upload-box input[type="file"] { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.upload-logo .upload-preview, .upload-mini .upload-preview { object-fit: contain; padding: 14px; }
.upload-box.has-image { border-style: solid; border-color: var(--border); }
.upload-box.has-image .upload-preview { display: block; animation: r11Fade .4s var(--ease); }
.upload-box.has-image .upload-placeholder { display: none; }
.upload-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px;
    text-align: center;
    color: var(--muted);
}
.upload-placeholder b { font-size: 13.5px; color: var(--text-2); }
.upload-placeholder small { font-size: 12px; }
.upload-icon-wrap, .upload-placeholder .upload-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 6px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 24px;
    color: var(--primary);
    background: rgba(var(--primary-rgb), .12);
    transition: transform .4s var(--ease-out);
}
.upload-box:hover .upload-placeholder .upload-icon { transform: translateY(-4px) scale(1.06); }
.upload-hover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .15));
    color: #fff;
    font-weight: 700;
    font-size: 13.5px;
    opacity: 0;
    transition: opacity .25s;
    pointer-events: none;
}
.upload-hover span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.upload-box.has-image:hover .upload-hover { opacity: 1; }
.upload-filename {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 4;
    max-width: calc(100% - 20px);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, .6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}
.upload-filename:empty { display: none; }
.upload-extra { display: flex; flex-direction: column; gap: 10px; }
.upload-box.is-removing { opacity: .4; filter: grayscale(1); }

/* ---------- 14. Filtre çubuğu ---------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar > * { flex: 0 1 auto; }
.toolbar > .search-input, .toolbar > .grow { flex: 1 1 240px; }
.toolbar .form-control { min-height: 42px; padding-top: 8px; padding-bottom: 8px; width: auto; min-width: 150px; }
.toolbar .search-input .form-control, .toolbar .grow .form-control { width: 100%; }
.toolbar .ts-wrapper { min-width: 170px; }
.toolbar .btn { height: 42px; }
.card-header .toolbar { flex: 1 1 auto; justify-content: flex-end; }
.search-input { position: relative; min-width: 0; }
.search-input > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 17px; pointer-events: none; z-index: 1; }
.search-input > .form-control, .search-input > input { padding-left: 42px; width: 100%; }
input.search-input {
    padding-left: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238b93a7' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 17px;
}
.pill-nav { display: flex; gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding: 4px; border-radius: 14px; background: var(--input-bg); border: 1px solid var(--border); max-width: 100%; }
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
    transition: background-color .2s, color .2s;
}
button.pill { border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 700; font-size: 13px; }
.pill:hover { color: var(--text); background: var(--hover); }
.pill.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: var(--glow); }
.pill-count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-size: 11px; background: var(--hover); color: inherit; }
.pill.active .pill-count { background: rgba(255, 255, 255, .22); }
.bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border-bottom: 1px solid var(--border);
    background: rgba(var(--primary-rgb), .06);
}
.bulk-bar .bulk-count { font-weight: 700; font-size: 13px; color: var(--text-2); margin-right: auto; }

/* ---------- 15. Sekmeler ---------- */
.tabs { min-width: 0; }
.tab-nav {
    position: relative;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    padding: 5px;
    margin-bottom: 22px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    font-size: 13.5px;
    white-space: nowrap;
    transition: color .2s, background-color .25s, box-shadow .25s;
}
.tab-btn > i { font-size: 17px; }
.tab-btn:hover { color: var(--text); background: var(--hover); }
.tab-btn.active { color: var(--text); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong), 0 6px 16px -8px rgba(0, 0, 0, .5); }
.tab-btn.active > i { color: var(--primary); }
.tab-btn.has-error::after { content: ""; position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: r11FadeUp .4s var(--ease-out) both; }
html:not(.js) .tab-pane, html.no-admin-js .tab-pane { display: block; margin-bottom: 20px; }
.tabs-line .tab-nav { background: transparent; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none; padding: 0; }
.tabs-line .tab-btn { border-radius: 0; height: 46px; }
.tabs-line .tab-btn.active { background: transparent; box-shadow: inset 0 -2px 0 var(--primary); }

/* ---------- 16. Modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--overlay);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s var(--ease), visibility 0s linear .3s;
    overflow-y: auto;
}
.modal.open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s var(--ease), visibility 0s; }
.modal-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 580px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    margin: auto;
    border-radius: var(--radius-xl);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    transform: translateY(24px) scale(.97);
    opacity: 0;
    transition: transform .4s var(--ease-out), opacity .3s var(--ease);
}
.modal-dialog > form { display: flex; flex-direction: column; min-height: 0; max-height: inherit; }
.modal.open .modal-dialog { transform: none; opacity: 1; }
.modal-sm .modal-dialog, .modal-dialog.modal-sm { max-width: 420px; }
.modal-lg .modal-dialog, .modal-dialog.modal-lg { max-width: 820px; }
.modal-xl .modal-dialog, .modal-dialog.modal-xl { max-width: 1120px; }
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.modal-title { margin: 0; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.modal-title > i { width: 36px; height: 36px; border-radius: 11px; display: inline-grid; place-items: center; font-size: 18px; color: var(--primary); background: rgba(var(--primary-rgb), .12); }
.modal-close, .modal-header [data-modal-close] {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--hover);
    color: var(--text-2);
    font-size: 19px;
    transition: transform .3s var(--ease-out), background-color .2s, color .2s;
}
.modal-close:hover, .modal-header [data-modal-close]:hover { transform: rotate(90deg); color: var(--text); background: rgba(var(--danger-rgb), .14); }
.modal-body { padding: 22px 24px; overflow-y: auto; min-height: 0; flex: 1 1 auto; }
.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
html.modal-open, html.modal-open body { overflow: hidden; }

/* ---------- 17. Uyarı / boş durum / sayfalama ---------- */
.flash-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.flash-stack:empty { display: none; }
.alert {
    --a-rgb: var(--info-rgb);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: rgba(var(--a-rgb), .1);
    border: 1px solid rgba(var(--a-rgb), .28);
}
.alert > i { font-size: 20px; color: rgb(var(--a-rgb)); flex-shrink: 0; line-height: 1.2; }
.alert > div { flex: 1; min-width: 0; }
.alert-success { --a-rgb: var(--success-rgb); }
.alert-error, .alert-danger { --a-rgb: var(--danger-rgb); }
.alert-warning { --a-rgb: var(--warning-rgb); }
.alert-info { --a-rgb: var(--info-rgb); }
.alert-primary { --a-rgb: var(--primary-rgb); }
.alert-close { border: 0; background: transparent; color: var(--muted); font-size: 18px; padding: 0 2px; line-height: 1; }
.alert-close:hover { color: var(--text); }
.empty-state { text-align: center; padding: 52px 20px; color: var(--muted); }
.empty-icon {
    position: relative;
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    font-size: 36px;
    color: var(--primary);
    background: linear-gradient(145deg, rgba(var(--primary-rgb), .2), rgba(var(--primary-rgb), .04));
    box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb), .25), 0 20px 40px -20px rgba(var(--primary-rgb), .6);
    animation: r11Float 5s var(--ease) infinite;
}
.empty-state h4 { font-size: 17px; margin-bottom: 6px; }
.empty-state p { max-width: 420px; margin: 0 auto 18px; font-size: 14px; }
.pagination-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 22px; border-top: 1px solid var(--border); }
.pagination-info { font-size: 13px; color: var(--muted); }
.pagination-info b { color: var(--text-2); }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    display: inline-grid;
    place-items: center;
    border-radius: 11px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text-2);
    font-weight: 700;
    font-size: 13.5px;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
a.page-link:hover { color: var(--text); border-color: rgba(var(--primary-rgb), .5); transform: translateY(-1px); }
.page-link.active { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: var(--glow); }
.page-dots { color: var(--muted); padding: 0 4px; }

/* Basit toast (SweetAlert2 yoksa) */
.r11-toasts { position: fixed; z-index: 3000; top: 18px; right: 18px; display: flex; flex-direction: column; gap: 10px; max-width: calc(100vw - 36px); }
.r11-toast {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    max-width: 420px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    animation: r11FadeUp .35s var(--ease-out) both;
}
.r11-toast i { font-size: 20px; }
.r11-toast.success i { color: var(--success); }
.r11-toast.error i { color: var(--danger); }
.r11-toast.warning i { color: var(--warning); }
.r11-toast.info i { color: var(--info); }
.r11-toast.hide { opacity: 0; transform: translateX(20px); transition: opacity .3s, transform .3s; }

/* ---------- 18. Yardımcı bileşenler ---------- */
.avatar {
    --av-h: 20;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .02em;
    color: #fff;
    background: linear-gradient(135deg, hsl(var(--av-h), 75%, 55%), hsl(calc(var(--av-h) + 40), 80%, 45%));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.avatar-lg { width: 72px; height: 72px; border-radius: 22px; font-size: 24px; }
.avatar-sm { width: 32px; height: 32px; border-radius: 10px; font-size: 11px; }
.avatar-round { border-radius: 50%; }
.kbd {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 800;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--muted);
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    box-shadow: 0 2px 0 var(--border-strong);
}
code, .code-inline { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); color: var(--primary-2); }
.info-list { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
a.info-row { color: inherit; border-radius: 8px; transition: background-color .2s, padding .2s; }
a.info-row:hover { background: var(--hover); padding-left: 8px; padding-right: 8px; color: inherit; }
.info-label { color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.info-label i { color: var(--primary); font-size: 16px; }
.info-value { color: var(--text); font-weight: 700; text-align: right; min-width: 0; word-break: break-word; }
.info-row.total { border-top: 1px solid var(--border-strong); border-bottom: 0; margin-top: 4px; padding-top: 14px; }
.info-row.total .info-value { font-family: var(--font-display); font-size: 20px; color: var(--primary); }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); border-radius: 2px; }
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
    content: "";
    position: absolute;
    left: -24px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--muted-2);
}
.timeline-item.active::before { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .18); }
.timeline-item.done::before { border-color: var(--success); background: var(--success); }
.timeline-item b { display: block; font-size: 14px; color: var(--text); }
.timeline-item small { color: var(--muted); font-size: 12.5px; }
.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--primary-2)); transition: width 1s var(--ease-out); }
.list-clean { list-style: none; margin: 0; padding: 0; }
.mini-list { display: flex; flex-direction: column; }
.mini-item { display: flex; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--border); color: var(--text-2); transition: background-color .2s; min-width: 0; }
.mini-item:last-child { border-bottom: 0; }
a.mini-item:hover { background: var(--hover); color: var(--text); }
.mini-body { flex: 1; min-width: 0; }
.mini-body b { display: block; color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-body span { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta { text-align: right; flex-shrink: 0; font-size: 12px; color: var(--muted); }
.mini-meta b { display: block; color: var(--text); font-size: 13.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: var(--text-2); background: var(--hover); border: 1px solid var(--border); }
.chip i { color: var(--primary); }
.icon-box { width: 44px; height: 44px; border-radius: 13px; display: inline-grid; place-items: center; font-size: 20px; flex-shrink: 0; color: var(--primary); background: rgba(var(--primary-rgb), .12); }

/* Metin & boşluk yardımcıları */
.text-muted { color: var(--muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }
.text-body { color: var(--text) !important; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.fw-bold { font-weight: 800; }
.fw-600 { font-weight: 600; }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.display-font { font-family: var(--font-display); }
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 6px !important; } .mt-2 { margin-top: 12px !important; } .mt-3 { margin-top: 20px !important; } .mt-4 { margin-top: 30px !important; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 6px !important; } .mb-2 { margin-bottom: 12px !important; } .mb-3 { margin-bottom: 20px !important; } .mb-4 { margin-bottom: 30px !important; }
.ms-auto { margin-left: auto !important; }
.p-0 { padding: 0 !important; }
.w-100 { width: 100% !important; }
.show-mobile { display: none !important; }

/* ---------- 19. Kütüphane temaları ---------- */
/* Tom Select */
.ts-wrapper { width: 100%; min-width: 0; }
.ts-wrapper.form-control, .ts-wrapper.form-control:focus { padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; min-height: 0; height: auto; }
.ts-wrapper .ts-control, .ts-wrapper.single .ts-control, .ts-wrapper.single.input-active .ts-control {
    min-height: 46px;
    padding: 9px 40px 9px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--input-bg);
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.45;
    box-shadow: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}
.toolbar .ts-wrapper .ts-control { min-height: 42px; padding-top: 7px; padding-bottom: 7px; }
.input-group > .input-icon ~ .ts-wrapper .ts-control { padding-left: 42px; }
.input-group > .ts-wrapper { flex: 1; min-width: 0; }
.ts-wrapper.focus .ts-control { border-color: rgba(var(--primary-rgb), .75); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .15); }
.ts-wrapper .ts-control > input { color: var(--text); font-size: 14.5px; min-width: 60px; }
.ts-wrapper .ts-control > input::placeholder { color: var(--muted-2); }
.ts-wrapper.single .ts-control::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border: solid var(--muted);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform .25s var(--ease-out);
}
.ts-wrapper.single.dropdown-active .ts-control::after { transform: rotate(-135deg); margin-top: -1px; }
.ts-wrapper.multi .ts-control > .item {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 3px 4px 3px 9px;
    border: 0;
    border-radius: 8px;
    color: var(--text);
    background: rgba(var(--primary-rgb), .16);
    font-size: 13px;
    font-weight: 600;
}
.ts-wrapper.multi .ts-control > .item.active { background: rgba(var(--primary-rgb), .3); color: var(--text); }
.ts-wrapper.plugin-remove_button .item .remove { border-left: 0 !important; margin-left: 4px; border-radius: 6px; padding: 0 6px; color: var(--muted); }
.ts-wrapper.plugin-remove_button .item .remove:hover { background: rgba(var(--danger-rgb), .2); color: var(--danger); }
.ts-dropdown {
    z-index: 1200;
    margin-top: 6px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text-2);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    font-size: 14px;
}
.ts-dropdown .ts-dropdown-content { max-height: 280px; padding: 6px; }
.ts-dropdown .option, .ts-dropdown .no-results, .ts-dropdown .create { padding: 9px 12px; border-radius: 9px; }
.ts-dropdown .option.active, .ts-dropdown .create.active { background: rgba(var(--primary-rgb), .14); color: var(--text); }
.ts-dropdown .option.selected { color: var(--primary); font-weight: 700; }
.ts-dropdown .optgroup-header { background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 10px 12px 4px; }
.ts-dropdown .dropdown-input-wrap { padding: 8px; }
.ts-dropdown .dropdown-input { background: var(--input-bg); border: 1px solid var(--border-strong); border-radius: 10px; color: var(--text); padding: 8px 12px; }
.ts-opt-icon { display: inline-flex; align-items: center; gap: 10px; }
.ts-opt-icon i { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 15px; color: var(--primary); background: rgba(var(--primary-rgb), .12); }
.ts-opt-icon small { color: var(--muted); font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ts-wrapper.disabled .ts-control { opacity: .6; }

/* Flatpickr */
.flatpickr-calendar {
    background: var(--surface-2) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 18px !important;
    box-shadow: var(--shadow-lg) !important;
    color: var(--text) !important;
    font-family: var(--font-body) !important;
    padding: 6px;
    width: auto !important;
}
.flatpickr-calendar::before, .flatpickr-calendar::after { display: none !important; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year { color: var(--text) !important; fill: var(--text) !important; background: transparent !important; font-weight: 800 !important; }
.flatpickr-current-month { font-size: 15px !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months option { background: var(--surface-2); color: var(--text); }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { color: var(--muted) !important; fill: var(--muted) !important; border-radius: 10px; }
.flatpickr-months .flatpickr-prev-month:hover svg, .flatpickr-months .flatpickr-next-month:hover svg { fill: var(--primary) !important; }
span.flatpickr-weekday { color: var(--muted) !important; font-weight: 800 !important; font-size: 11.5px !important; background: transparent !important; }
.flatpickr-day { color: var(--text-2) !important; border-radius: 11px !important; border-color: transparent !important; font-weight: 600; }
.flatpickr-day:hover, .flatpickr-day:focus { background: var(--hover) !important; color: var(--text) !important; }
.flatpickr-day.today { border-color: rgba(var(--primary-rgb), .6) !important; color: var(--primary) !important; }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: var(--glow) !important;
}
.flatpickr-day.inRange { background: rgba(var(--primary-rgb), .14) !important; box-shadow: none !important; }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay { color: var(--muted-2) !important; opacity: .6; }
.flatpickr-time { border-top: 1px solid var(--border) !important; }
.flatpickr-time input, .flatpickr-time .flatpickr-am-pm, .flatpickr-time .flatpickr-time-separator { color: var(--text) !important; background: transparent !important; }
.flatpickr-time input:hover, .flatpickr-time input:focus { background: var(--hover) !important; }
.numInputWrapper span.arrowUp::after { border-bottom-color: var(--muted) !important; }
.numInputWrapper span.arrowDown::after { border-top-color: var(--muted) !important; }
.flatpickr-input[readonly] { cursor: pointer; opacity: 1; }
.flatpickr-input.form-control[readonly] { opacity: 1; cursor: pointer; }

/* SweetAlert2 */
.swal2-container { z-index: 5000 !important; }
.swal2-container.swal2-backdrop-show { background: var(--overlay) !important; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
/* Bildirimlerde (toast) karartma/bulanıklık olmamalı: sadece kutunun kendisi görünür */
body.swal2-toast-shown .swal2-container,
.swal2-container:has(> .swal2-toast) { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.swal2-popup:not(.swal2-toast) {
    background: var(--surface) !important;
    color: var(--text) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 26px !important;
    box-shadow: var(--shadow-lg) !important;
    font-family: var(--font-body) !important;
    padding: 28px 24px 24px !important;
}
.swal2-popup .swal2-title { color: var(--text) !important; font-size: 20px !important; font-weight: 800 !important; font-family: var(--font-body) !important; }
.swal2-popup .swal2-html-container { color: var(--text-2) !important; font-size: 14.5px !important; }
.swal2-actions { gap: 10px; margin-top: 22px !important; }
.swal2-actions .btn { min-width: 120px; }
.swal2-icon { border-width: 3px !important; }
.swal2-icon.swal2-warning { border-color: rgba(var(--warning-rgb), .6) !important; color: var(--warning) !important; }
.swal2-icon.swal2-question { border-color: rgba(var(--primary-rgb), .6) !important; color: var(--primary) !important; }
.swal2-popup.swal2-toast {
    background: var(--surface-2) !important;
    color: var(--text) !important;
    border: 1px solid var(--border-strong) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-lg) !important;
    padding: 12px 16px !important;
    font-family: var(--font-body) !important;
}
.swal2-popup.swal2-toast .swal2-title { color: var(--text) !important; font-size: 14px !important; font-weight: 700 !important; margin: 0 6px !important; font-family: var(--font-body) !important; }
.swal2-popup.swal2-toast .swal2-timer-progress-bar { background: rgba(var(--primary-rgb), .75) !important; }
.swal2-popup .swal2-input, .swal2-popup .swal2-textarea { background: var(--input-bg) !important; color: var(--text) !important; border: 1px solid var(--border-strong) !important; border-radius: 12px !important; box-shadow: none !important; }
div:where(.swal2-container) .swal2-popup.swal2-toast .swal2-success-circular-line-left,
div:where(.swal2-container) .swal2-popup.swal2-toast .swal2-success-circular-line-right,
div:where(.swal2-container) .swal2-popup.swal2-toast .swal2-success-fix,
.swal2-icon.swal2-success [class^="swal2-success-circular-line"], .swal2-icon.swal2-success .swal2-success-fix { background-color: transparent !important; }

/* Chart kutusu */
.chart-box { position: relative; width: 100%; height: 320px; }
.chart-box.sm { height: 240px; }
.chart-box canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 13px; color: var(--text-2); font-weight: 600; }
.chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.chart-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--primary)); display: inline-block; }

/* ---------- 20. Kontrol paneli (dashboard) ---------- */
.welcome-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    min-height: 230px;
    padding: 32px 34px;
    margin-bottom: 22px;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(var(--primary-rgb), .28);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(var(--primary-rgb), .35), transparent 65%),
        radial-gradient(420px 260px at 0% 100%, rgba(var(--violet-rgb), .16), transparent 70%),
        linear-gradient(135deg, var(--surface-2), var(--surface));
    box-shadow: var(--shadow);
}
.welcome-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 22px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
    mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.welcome-date { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--text-2); background: var(--hover); border: 1px solid var(--border); margin-bottom: 16px; }
.welcome-date i { color: var(--primary); }
.welcome-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.8vw, 34px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 10px; }
.welcome-title span { background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--primary)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: r11Gradient 6s linear infinite; }
.welcome-text { color: var(--text-2); max-width: 560px; margin-bottom: 20px; }
.welcome-text b { color: var(--text); }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.welcome-visual { position: relative; align-self: stretch; min-height: 180px; }
.welcome-visual img {
    position: absolute;
    right: -20px;
    bottom: -40px;
    width: 118%;
    max-width: none;
    height: auto;
    border-radius: 22px;
    object-fit: cover;
    aspect-ratio: 16 / 10;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 55%, #000 45%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 60% 55%, #000 45%, transparent 75%);
    animation: r11Float 7s var(--ease) infinite;
}
.welcome-chips { position: absolute; left: 0; top: 10px; z-index: 2; display: flex; flex-direction: column; gap: 10px; }
.welcome-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--surface-glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    font-size: 12.5px;
    color: var(--muted);
    font-weight: 600;
    width: max-content;
    animation: r11Float 6s var(--ease) infinite;
}
.welcome-chip:nth-child(2) { animation-delay: -2s; margin-left: 30px; }
.welcome-chip b { display: block; font-size: 15px; color: var(--text); font-family: var(--font-display); font-weight: 600; }
.welcome-chip i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; color: var(--primary); background: rgba(var(--primary-rgb), .14); }
.quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-action {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    transition: transform .35s var(--ease-out), border-color .3s, box-shadow .3s;
}
.quick-action:hover { transform: translateY(-4px); border-color: rgba(var(--primary-rgb), .4); box-shadow: var(--shadow); color: var(--text); }
.quick-action i { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: var(--glow); transition: transform .4s var(--ease-out); }
.quick-action:hover i { transform: rotate(-10deg) scale(1.08); }
.quick-action b { font-size: 14px; }
.quick-action small { color: var(--muted); font-size: 12.5px; display: block; margin-top: -8px; }
.quick-action::after { content: "\2192"; position: absolute; right: 16px; top: 16px; color: var(--muted-2); font-weight: 800; transition: transform .3s var(--ease-out), color .3s; }
.quick-action:hover::after { transform: translateX(4px); color: var(--primary); }
.rank-num { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--muted); background: var(--hover); flex-shrink: 0; }
.mini-item:nth-child(1) .rank-num { color: #1c1302; background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.mini-item:nth-child(2) .rank-num { color: #0f172a; background: linear-gradient(135deg, #e2e8f0, #94a3b8); }
.mini-item:nth-child(3) .rank-num { color: #fff; background: linear-gradient(135deg, #f0a36b, #b4632e); }
.date-box { width: 50px; flex-shrink: 0; text-align: center; border-radius: 13px; overflow: hidden; border: 1px solid var(--border); background: var(--surface-2); }
.date-box b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); padding: 5px 0 2px; }
.date-box span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); padding: 2px 0; }
.date-box.today span { background: linear-gradient(135deg, var(--success), #16a34a); }

/* Mesaj görüntüleme */
.message-view { display: flex; flex-direction: column; gap: 18px; }
.message-head { display: flex; align-items: center; gap: 14px; }
.message-head b { display: block; font-size: 16px; }
.message-head small { color: var(--muted); display: block; }
.message-subject { font-size: 16px; font-weight: 800; color: var(--text); margin: 0; }
.message-text {
    padding: 18px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.7;
    max-height: 46vh;
    overflow-y: auto;
}
.reply-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.reply-actions .btn { width: 100%; }
.btn-whatsapp { --btn-bg: #25d366; --btn-color: #fff; box-shadow: 0 10px 24px -10px rgba(37, 211, 102, .7); }
.msg-excerpt { display: block; color: var(--muted); font-size: 12.5px; max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ayarlar */
.settings-layout .card + .card { margin-top: 20px; }
.map-preview { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); aspect-ratio: 16 / 7; min-height: 220px; }
.map-preview iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-preview .map-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }
.map-preview .map-empty i { font-size: 34px; color: var(--primary); display: block; margin-bottom: 6px; }
.phone-callout {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(var(--primary-rgb), .35);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), .16), rgba(var(--primary-rgb), .03));
}
.phone-callout .icon-box { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: var(--glow); animation: r11Pulse 2.4s infinite; }
.phone-callout b { display: block; color: var(--text); }
.phone-callout small { color: var(--muted); }
.seo-preview { padding: 18px; border-radius: 16px; background: #ffffff; border: 1px solid rgba(15, 23, 42, .1); font-family: Arial, sans-serif; color: #202124; box-shadow: var(--shadow-sm); }
.seo-url { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #3c4043; margin-bottom: 6px; word-break: break-all; }
.seo-url i { color: #5f6368; }
.seo-title { font-size: 19px; line-height: 1.3; color: #1a0dab; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-desc { font-size: 13.5px; line-height: 1.55; color: #4d5156; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.theme-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; border: 1px dashed var(--border-strong); }
.profile-card { text-align: center; }
.profile-card .avatar-lg { margin: 0 auto 14px; box-shadow: 0 20px 40px -18px rgba(var(--primary-rgb), .7); }
.profile-card h3 { margin-bottom: 2px; }
.profile-cover { height: 90px; margin: -22px -22px 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: linear-gradient(135deg, var(--primary), var(--primary-2)); position: relative; overflow: hidden; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 18px); }
.profile-card .avatar-lg { margin-top: -36px; position: relative; border: 4px solid var(--surface); }
.password-meter { display: flex; gap: 4px; margin-top: 2px; }
.password-meter span { flex: 1; height: 5px; border-radius: 4px; background: var(--surface-3); transition: background-color .3s; }
.password-meter[data-score="1"] span:nth-child(-n+1) { background: var(--danger); }
.password-meter[data-score="2"] span:nth-child(-n+2) { background: var(--warning); }
.password-meter[data-score="3"] span:nth-child(-n+3) { background: var(--info); }
.password-meter[data-score="4"] span:nth-child(-n+4) { background: var(--success); }

/* ---------- 21. Giriş sayfası ---------- */
.auth-page { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.auth-page::before, .auth-page::after { display: none; }
.auth-visual {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 48px;
    color: #fff;
    background: #07080c;
}
.auth-bg { position: absolute; inset: 0; z-index: -3; }
.auth-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: r11KenBurns 24s var(--ease) infinite alternate; }
@keyframes r11KenBurns { from { transform: scale(1.08) translate(0, 0); } to { transform: scale(1.22) translate(-2%, -1%); } }
.auth-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(7, 8, 12, .55) 0%, rgba(7, 8, 12, .15) 40%, rgba(7, 8, 12, .92) 100%),
        linear-gradient(90deg, rgba(7, 8, 12, .7), transparent 60%),
        radial-gradient(700px 400px at 20% 110%, rgba(var(--primary-rgb), .45), transparent 70%);
}
.auth-lines { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.auth-lines span {
    position: absolute;
    height: 2px;
    width: 38%;
    left: -40%;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), .95), #fff);
    box-shadow: 0 0 18px rgba(var(--primary-rgb), .9);
    animation: r11Streak 3.8s linear infinite;
    opacity: .85;
}
.auth-lines span:nth-child(1) { top: 62%; animation-delay: 0s; }
.auth-lines span:nth-child(2) { top: 70%; animation-delay: 1.2s; width: 26%; animation-duration: 3s; }
.auth-lines span:nth-child(3) { top: 78%; animation-delay: 2.1s; width: 45%; animation-duration: 4.4s; }
.auth-lines span:nth-child(4) { top: 86%; animation-delay: .6s; width: 30%; animation-duration: 3.4s; }
.auth-lines span:nth-child(5) { top: 55%; animation-delay: 2.8s; width: 20%; animation-duration: 5s; opacity: .5; }
@keyframes r11Streak { from { transform: translateX(0); } to { transform: translateX(420%); } }
.auth-orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(60px); opacity: .55; pointer-events: none; animation: r11Float 9s var(--ease) infinite; }
.auth-orb.o1 { width: 340px; height: 340px; right: -80px; top: -60px; background: rgba(var(--primary-rgb), .55); }
.auth-orb.o2 { width: 260px; height: 260px; left: 10%; bottom: 8%; background: rgba(var(--violet-rgb), .35); animation-delay: -4s; }
.auth-brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.auth-brand:hover { color: #fff; }
.auth-brand .brand-text b { font-size: 20px; color: #fff; }
.auth-brand .brand-text small { color: rgba(255, 255, 255, .65); }
.auth-brand .brand-logo { max-height: 44px; }
.auth-hero { max-width: 560px; }
.auth-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); margin-bottom: 20px; }
.auth-eyebrow i { color: var(--primary-2); }
.auth-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -.025em; color: #fff; margin: 0 0 16px; }
.auth-hero h1 span { background: linear-gradient(90deg, var(--primary), var(--primary-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { color: rgba(255, 255, 255, .72); font-size: 15.5px; max-width: 460px; margin: 0; }
.auth-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.auth-stat { padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); min-width: 120px; }
.auth-stat b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #fff; }
.auth-stat span { font-size: 12px; color: rgba(255, 255, 255, .65); font-weight: 600; }
.auth-foot { font-size: 12.5px; color: rgba(255, 255, 255, .55); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.auth-foot a { color: rgba(255, 255, 255, .75); }
.auth-foot a:hover { color: #fff; }
.auth-panel { position: relative; display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: var(--bg); isolation: isolate; overflow: hidden; }
.auth-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 360px at 100% 0%, rgba(var(--primary-rgb), .12), transparent 70%), radial-gradient(400px 300px at 0% 100%, rgba(var(--violet-rgb), .08), transparent 70%); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card-head { margin-bottom: 28px; }
.auth-card-head .brand-mark { width: 54px; height: 54px; border-radius: 17px; font-size: 26px; margin-bottom: 22px; }
.auth-card-head .brand-mark svg { width: 30px; height: 30px; }
.auth-card-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; margin: 0 0 8px; }
.auth-card-head p { color: var(--muted); margin: 0; }
.auth-form .form-group + .form-group { margin-top: 18px; }
.auth-form .form-control { min-height: 52px; border-radius: 14px; }
.auth-form .btn-lg { width: 100%; margin-top: 24px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.auth-lock { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(var(--danger-rgb), .1); border: 1px solid rgba(var(--danger-rgb), .3); color: var(--text); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.auth-lock i { font-size: 22px; color: var(--danger); }
.auth-lock b { font-family: var(--font-display); color: var(--danger); }
.auth-theme { position: absolute; top: 20px; right: 20px; }
.auth-back { position: absolute; top: 20px; left: 24px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; color: var(--muted); }
.auth-back:hover { color: var(--primary); }
.auth-secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; font-size: 12.5px; color: var(--muted); }
.auth-secure i { color: var(--success); }
.shake { animation: r11Shake .5s var(--ease); }
@keyframes r11Shake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-7px); } 40%, 60% { transform: translateX(7px); } }

/* ---------- 22. Duyarlı düzen ---------- */
@media (max-width: 1399.98px) {
    .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1199.98px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-2-1, .grid-1-2 { grid-template-columns: minmax(0, 1fr); }
    .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .user-meta { display: none; }
    .user-btn { padding-right: 8px; }
}
@media (max-width: 991.98px) {
    .sidebar { width: min(300px, 86vw); transform: translateX(-104%); box-shadow: none; }
    html.sidebar-open .sidebar, .sidebar:target { transform: none; box-shadow: var(--shadow-lg); }
    .sidebar-close { display: inline-grid; width: 38px; height: 38px; font-size: 19px; }
    .sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 65;
        background: var(--overlay);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s var(--ease), visibility 0s linear .3s;
    }
    html.sidebar-open .sidebar-overlay { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s; }
    html.sidebar-open, html.sidebar-open body { overflow: hidden; }
    .admin-main { margin-left: 0 !important; }
    .topbar { padding: 0 18px; gap: 10px; }
    .admin-content { padding: 22px 18px 32px; }
    .admin-footer { padding: 16px 18px 22px; }
    .auth-page { grid-template-columns: minmax(0, 1fr); }
    .auth-visual { min-height: 300px; padding: 28px 24px; }
    .auth-hero h1 { font-size: clamp(26px, 6vw, 38px); }
    .auth-stats, .auth-foot { display: none; }
    .auth-panel { padding: 36px 20px 48px; align-items: flex-start; }
    .auth-theme { top: 16px; right: 16px; }
    .welcome-card { grid-template-columns: minmax(0, 1fr); padding: 26px 24px; }
    .welcome-visual { display: none; }
}
@media (max-width: 767.98px) {
    .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid, .form-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
    .col-span-2 { grid-column: auto; }
    .topbar-title small { display: none; }
    .topbar-search {
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc(100% + 8px);
        margin: 0;
        flex: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .2s, transform .25s var(--ease-out), visibility 0s linear .25s;
        z-index: 60;
    }
    .topbar-search input { height: 50px; background: var(--surface-2); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
    .topbar-search .kbd { display: none; }
    html.search-open .topbar-search { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease-out), visibility 0s; }
    .search-toggle { display: inline-grid; }
    .topbar .dropdown { position: static; }
    .topbar .dropdown-menu, .topbar .notif-menu, .topbar .user-menu { left: 10px; right: 10px; top: calc(100% + 6px); width: auto; max-width: none; transform-origin: top center; }
    .topbar-actions { margin-left: auto; gap: 6px; }
    .icon-btn { width: 42px; height: 42px; }
    .user-btn { height: 42px; padding: 0 4px; }
    .user-btn > .ri-arrow-down-s-line { display: none; }
    .page-header { margin-bottom: 20px; align-items: stretch; }
    .page-actions { width: 100%; }
    .page-actions > .btn, .page-actions > a.btn { flex: 1 1 auto; }
    .card-header { padding: 16px 18px; }
    .card-body { padding: 18px; }
    .card-footer { padding: 14px 18px; }
    .table th:first-child, .table td:first-child { padding-left: 18px; }
    .table th:last-child, .table td:last-child { padding-right: 18px; }
    .pagination-wrap { padding: 14px 18px; justify-content: center; }
    .pagination-info { width: 100%; text-align: center; }
    .toolbar > * { flex: 1 1 100%; }
    .toolbar .form-control, .toolbar .ts-wrapper { width: 100%; min-width: 0; }
    .toolbar .btn { flex: 1 1 auto; }
    .card-header .toolbar { justify-content: stretch; }
    .modal { padding: 0; align-items: flex-end; }
    .modal-dialog, .modal-sm .modal-dialog, .modal-lg .modal-dialog, .modal-xl .modal-dialog {
        max-width: 100%;
        margin: 0;
        max-height: 92vh;
        max-height: 92dvh;
        border-radius: 26px 26px 0 0;
        transform: translateY(100%);
        border-bottom: 0;
    }
    .modal.open .modal-dialog { transform: none; }
    .modal-header { padding: 18px 18px 14px; }
    .modal-header::before { content: ""; position: absolute; top: 8px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: var(--border-strong); }
    .modal-body { padding: 18px; }
    .modal-footer { padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
    .modal-footer .btn { flex: 1 1 auto; }
    .modal-footer > form { flex: 1 1 auto; display: flex; }
    .modal-footer > form .btn { width: 100%; }
    .profile-cover { margin: -18px -18px 0; }
    .form-actions { justify-content: stretch; }
    .form-actions .btn { flex: 1 1 auto; }
    .form-actions .form-hint { width: 100%; }
    .form-actions.sticky { bottom: 8px; padding: 10px; gap: 8px; }
    .form-actions.sticky > .form-hint { display: none; }
    .form-actions.sticky .btn { height: 44px; padding: 0 14px; font-size: 14px; }
    .welcome-card { padding: 22px 20px; min-height: 0; }
    .welcome-actions .btn { flex: 1 1 auto; }
    .reply-actions { grid-template-columns: minmax(0, 1fr); }
    .hide-mobile { display: none !important; }
    .show-mobile { display: initial !important; }
    .stat-card { padding: 18px; }
    .stat-icon { width: 46px; height: 46px; font-size: 21px; border-radius: 14px; }
    .tab-nav { margin-bottom: 18px; }
    .mini-item { padding: 12px 18px; }
    .upload-box.upload-logo { max-width: 100%; }
    .auth-visual { min-height: 260px; }
    .auth-hero p { font-size: 14px; }
    .auth-back { display: none; }
    .r11-toasts { left: 12px; right: 12px; top: 12px; }
    .r11-toast { min-width: 0; max-width: none; }
}
@media (max-width: 479.98px) {
    .grid-4, .grid-5 { grid-template-columns: minmax(0, 1fr); }
    .quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .quick-action { padding: 14px; }
    .topbar { padding: 0 12px; gap: 8px; }
    .topbar-title b { font-size: 14px; }
    .topbar-title { display: none; }
    .admin-content { padding: 18px 14px 28px; }
    .admin-footer { flex-direction: column; text-align: center; align-items: center; }
    .btn { padding: 0 14px; }
    .btn-icon { padding: 0; }
    .info-row { flex-direction: column; gap: 2px; }
    .info-value { text-align: left; }
    .auth-visual { padding: 24px 18px; min-height: 230px; }
    .auth-card-head h2 { font-size: 22px; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (hover: none) {
    .btn:hover, .stat-card:hover, .quick-action:hover { transform: none; }
}

/* Logo / favicon simge seçici */
.logo-icon-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}
.logo-icon-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .025);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .25s, background .25s, box-shadow .25s, transform .25s;
}
.logo-icon-choice:hover { border-color: rgba(var(--primary-rgb), .48); transform: translateY(-2px); }
.logo-icon-choice:focus-within { outline: 2px solid rgba(var(--primary-rgb), .55); outline-offset: 2px; }
.logo-icon-choice input { position: absolute; opacity: 0; pointer-events: none; }
.logo-icon-choice__visual { width: 44px; height: 44px; flex: none; }
.logo-icon-choice__visual .logo-mark { display: block; width: 100%; height: 100%; }
.logo-icon-choice > span:nth-of-type(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-icon-choice > i { margin-left: auto; color: var(--primary); font-size: 18px; opacity: 0; transform: scale(.65); transition: opacity .2s, transform .2s; }
.logo-icon-choice:has(input:checked) {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), .1);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .08), 0 10px 28px rgba(var(--primary-rgb), .1);
    color: var(--text);
}
.logo-icon-choice:has(input:checked) > i { opacity: 1; transform: scale(1); }
@media (max-width: 639.98px) { .logo-icon-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 23. Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .auth-lines, .auth-orb { display: none; }
}

/* ---------- 24. Yazdırma ---------- */
@media print {
    html, body { background: #fff !important; color: #000 !important; }
    body::before, body::after { display: none !important; }
    .sidebar, .sidebar-overlay, .topbar, .admin-footer, .page-actions, .no-print, .flash-stack, .modal, .btn, .card-tools, .toolbar, .pagination-wrap, .nav-tooltip, .r11-toasts, .swal2-container { display: none !important; }
    .admin-main { margin: 0 !important; }
    .admin-content { padding: 0 !important; max-width: none; }
    .admin-content > * { animation: none !important; }
    .card, .stat-card { background: #fff !important; border: 1px solid #ccc !important; box-shadow: none !important; break-inside: avoid; color: #000 !important; }
    .card-header, .card-footer { border-color: #ddd !important; background: none !important; }
    .table th { background: #f3f3f3 !important; color: #333 !important; }
    .table td, .table th { border-color: #ddd !important; color: #000 !important; }
    .table-wrap { overflow: visible !important; }
    .table-wrap > .table { min-width: 0 !important; }
    .badge { box-shadow: none !important; border: 1px solid #999; color: #000 !important; background: none !important; }
    .page-title, .card-title, .cell-title, .info-value, h1, h2, h3, h4 { color: #000 !important; }
    .text-muted, .cell-sub, .info-label { color: #555 !important; }
    a { color: #000 !important; text-decoration: none !important; }
    .grid-2-1, .grid-1-2 { grid-template-columns: 1fr !important; }
}
