/* ════════════════════════════════════════════════════════════════════════════
   Doğa Creative OS — Ortak Tasarım Sistemi
   Tüm panel sayfaları (layouts/app, layouts/client, layouts/auth) bu dosyayı kullanır.
   Tailwind yardımcı sınıfları bu dosyadan SONRA yüklendiği için sayfa içi
   özelleştirmeler (p-5, text-xs …) her zaman önceliklidir.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e6e9f2;
    --line-2: #eef1f7;
    --bg: #f4f6fb;
    --surface: #ffffff;

    --brand: #2563eb;
    --brand-600: #1d4ed8;
    --brand-2: #4f46e5;
    --brand-soft: #eef2ff;
    --grad: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);

    --side-1: #11142d;
    --side-2: #090d1e;

    --ok: #059669;
    --warn: #d97706;
    --bad: #dc2626;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 26px -14px rgba(15, 23, 42, .14);
    --shadow-md: 0 2px 4px rgba(15, 23, 42, .04), 0 22px 44px -20px rgba(15, 23, 42, .24);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

[x-cloak] { display: none !important; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.ui {
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background:
        radial-gradient(1100px 380px at 92% -140px, rgba(99, 102, 241, .13), transparent 70%),
        radial-gradient(900px 340px at 30% -180px, rgba(37, 99, 235, .09), transparent 70%),
        var(--bg);
    background-repeat: no-repeat;
    color: var(--ink);
    letter-spacing: -.005em;
}
body.ui h1, body.ui h2, body.ui h3 { letter-spacing: -.02em; }
.tnum { font-variant-numeric: tabular-nums; }

/* ─── Kaydırma çubuğu ─── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cfd6e4; border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #a9b3c7; background-clip: padding-box; border: 2px solid transparent; }

/* ════════════════════════════════════════════════════════════════════════════
   YAN MENÜ (koyu)
   ════════════════════════════════════════════════════════════════════════════ */
.ui-sidebar {
    background: linear-gradient(180deg, var(--side-1) 0%, var(--side-2) 72%);
    border-right: 1px solid rgba(255, 255, 255, .07);
}
.ui-sidebar nav::-webkit-scrollbar { width: 6px; }
.ui-sidebar nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border: 0; }
.ui-sidebar nav::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .22); }

.ui-brand-mark {
    width: 40px; height: 40px; border-radius: 13px; flex-shrink: 0;
    display: grid; place-items: center;
    background: linear-gradient(145deg, #5b7cff, #4f46e5);
    box-shadow: 0 12px 26px -8px rgba(79, 70, 229, .7), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.nav-icon {
    width: 28px; height: 28px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform .2s var(--ease), box-shadow .2s ease;
}
.nav-icon i { font-size: 11px; color: #fff; }
.nav-badge {
    display: inline-flex; align-items: center;
    padding: 1px 7px; border-radius: 999px;
    font-size: 10px; font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.sidebar-link {
    display: flex; align-items: center; gap: 11px;
    padding: 6px 10px;
    min-height: 40px;
    border-radius: 14px;
    color: #9aa3b8;
    font-size: 13px; font-weight: 500;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
    border: 1px solid transparent;
    margin-bottom: 2px;
}
.sidebar-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.sidebar-link:hover .nav-icon { transform: scale(1.08); }
.sidebar-link.active {
    color: #111830;
    background: #fff;
    font-weight: 500;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .6);
}
.sidebar-link.active span[style*="color"] { color: inherit !important; }
.sidebar-section {
    display: block;
    font-size: 10px; font-weight: 500;
    color: #5d6787;
    letter-spacing: .14em; text-transform: uppercase;
    padding: 14px 10px 6px;
}
.ai-submenu-link {
    display: flex; align-items: center; gap: 8px;
    padding: 7px 10px 7px 14px;
    border-radius: 10px;
    color: #8892aa;
    font-size: 12px; font-weight: 500;
    text-decoration: none;
    transition: all .15s ease;
    margin-bottom: 1px;
}
.ai-submenu-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.ai-submenu-link.active { color: #fff; background: rgba(99, 102, 241, .28); }
.ai-submenu-link i { font-size: 10px; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════════════════════
   ÜST BAR
   ════════════════════════════════════════════════════════════════════════════ */
.ui-topbar {
    background: rgba(249, 250, 255, .86);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
}
.ui-search {
    display: flex; align-items: center; gap: 10px;
    height: 40px; width: 300px; max-width: 34vw;
    padding: 0 12px;
    border: 1px solid var(--line); border-radius: 12px;
    background: #fff; color: var(--faint);
    transition: border-color .15s, box-shadow .15s;
}
.ui-search:focus-within { border-color: #93b4fd; box-shadow: 0 0 0 4px rgba(37, 99, 235, .1); }
.ui-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 13px; color: var(--ink); }
.ui-search kbd { font: 500 10px/1 ui-sans-serif, system-ui; color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 3px 5px; background: #f8fafc; }
.ui-search-pop {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 340px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-md); overflow: hidden; z-index: 60;
}
.ui-search-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; text-decoration: none; color: var(--ink); font-size: 13px; }
.ui-search-item:hover, .ui-search-item.is-active { background: #f5f7ff; }
.ui-search-item small { display: block; color: var(--faint); font-size: 11px; }

/* ════════════════════════════════════════════════════════════════════════════
   KARTLAR
   ════════════════════════════════════════════════════════════════════════════ */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition: box-shadow .25s ease, transform .25s var(--ease), border-color .25s ease;
}
.card:hover { box-shadow: var(--shadow-sm); }
.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition: box-shadow .25s ease, transform .25s var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* Bölüm başlığı */
.ui-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ui-eyebrow { font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 6px; }
.ui-title { font-size: 26px; font-weight: 500; letter-spacing: -.03em; color: var(--ink); line-height: 1.15; margin: 0; }
.ui-sub { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }

/* ─── Modül içi sekmeler ──────────────────────────────────────────────────── */
.subnav {
    display: flex; gap: 4px; padding: 5px; margin-bottom: 22px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-xs); overflow-x: auto; scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
    display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
    height: 38px; padding: 0 14px; border-radius: 11px;
    font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap;
    transition: background .18s, color .18s;
}
.subnav a i { font-size: 12px; opacity: .75; }
.subnav a:hover { background: #f1f4fa; color: var(--ink); }
.subnav a.is-active { background: var(--side-1); color: #fff; box-shadow: 0 10px 20px -12px rgba(17, 20, 45, .8); }
.subnav a.is-active i { opacity: 1; color: #a5b4fc; }
.subnav-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #fee2e2; color: #dc2626; font-size: 10.5px; font-weight: 500; font-variant-numeric: tabular-nums; }
.subnav a.is-active .subnav-badge { background: rgba(255, 255, 255, .18); color: #fff; }

/* ─── Gösterge karosu ─────────────────────────────────────────────────────── */
.stat {
    --s-fg: #4f46e5;
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: center; gap: 15px; padding: 18px 20px;
    background: linear-gradient(135deg, #fff 0%, color-mix(in srgb, var(--s-fg) 7%, #fff) 100%);
    border: 1px solid color-mix(in srgb, var(--s-fg) 16%, var(--line));
    border-radius: 22px; text-decoration: none; min-width: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 30px -22px color-mix(in srgb, var(--s-fg) 70%, transparent);
    transition: box-shadow .25s, transform .25s var(--ease), border-color .25s;
}
.stat::after {
    content: ""; position: absolute; z-index: -1; right: -36px; top: -42px; width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--s-fg) 20%, transparent), transparent 68%);
    transition: transform .5s var(--ease);
}
a.stat:hover, .stat[data-href]:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--s-fg) 40%, var(--line)); box-shadow: 0 2px 4px rgba(15, 23, 42, .05), 0 24px 40px -22px color-mix(in srgb, var(--s-fg) 80%, transparent); }
a.stat:hover::after { transform: scale(1.25); }
.stat-ico {
    display: grid; place-items: center; flex: 0 0 50px; width: 50px; height: 50px; border-radius: 16px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--s-fg) 82%, #fff), var(--s-fg));
    color: #fff; font-size: 18px;
    box-shadow: 0 12px 22px -10px var(--s-fg), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.stat-k { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: color-mix(in srgb, var(--s-fg) 55%, #64748b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-v { display: block; font-size: 26px; font-weight: 500; letter-spacing: -.04em; color: var(--ink); line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-v em { font-style: normal; font-size: 13px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.stat-d { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1200px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .stat-grid.is-3 { grid-template-columns: 1fr; } }
@media (max-width: 520px)  { .stat-grid { grid-template-columns: 1fr; } }

/* ─── Araç çubuğu (arama + filtreler) ─────────────────────────────────────── */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0 16px; }
.toolbar-search { display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 13px; border: 1px solid #dbe0ea; border-radius: 13px; background: #fff; color: var(--faint); flex: 1 1 220px; max-width: 340px; transition: border-color .15s, box-shadow .15s; }
.toolbar-search:focus-within { border-color: #6c8ef5; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.toolbar-search input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; font-size: 13px; color: var(--ink); }
.toolbar select.form-input { height: 42px; width: auto; font-size: 12.5px; font-weight: 500; color: var(--ink-2); border-radius: 13px; padding-top: 0; padding-bottom: 0; }
.toolbar .spacer { flex: 1; }

/* Filtre hapları */
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: all .15s; }
.pills a:hover { border-color: #c3cad9; color: var(--ink); }
.pills a.is-active { background: var(--side-1); border-color: var(--side-1); color: #fff; }
.pills a b { font-weight: 500; font-variant-numeric: tabular-nums; opacity: .7; }

/* İlerleme çubuğu */
.bar { height: 8px; border-radius: 999px; background: #eef1f7; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--b, var(--brand)); min-width: 2px; }

/* Açılır eylem menüsü */
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 210px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 0; background: transparent; border-radius: 10px; font-size: 13px; font-weight: 500; color: var(--ink-2); text-align: left; text-decoration: none; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: #f4f6fb; color: var(--ink); }
.menu-pop i { width: 16px; text-align: center; font-size: 12px; color: var(--faint); }
.menu-pop .is-danger, .menu-pop .is-danger i { color: #dc2626; }
.menu-pop hr { border: 0; border-top: 1px solid var(--line-2); margin: 5px 4px; }

/* ─── Tıklanabilir kart / satır ───────────────────────────────────────────── */
[data-href] { cursor: pointer; }
[data-href]:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
main tbody tr[data-rn="1"] { cursor: pointer; transition: background .15s, box-shadow .15s; }
main tbody tr[data-rn="1"]:hover { background: #f5f7ff !important; box-shadow: inset 3px 0 0 var(--brand-2); }
main tbody tr[data-rn="1"] td:last-child { position: relative; }

/* ─── KPI kartı (gradyan) ─────────────────────────────────────────────────── */
@property --kpi-pos { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes kpiFlow  { 0% { --kpi-pos: 0%; } 50% { --kpi-pos: 100%; } 100% { --kpi-pos: 0%; } }
@keyframes kpiFloat { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-18px, 14px, 0) scale(1.12); } }
@keyframes kpiDraw  { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes kpiRise  { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

.kpi-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1280px) { .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Telefonda iki sütun, sıkı kart — ekranı kaydırmadan özet görünsün */
@media (max-width: 560px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .kpi-grid .kpi { min-height: 140px; padding: 14px; border-radius: 18px; }
    .kpi-grid .kpi-top { min-height: 34px; gap: 8px; }
    .kpi-grid .kpi-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 10px; }
    .kpi-grid .kpi-icon i { font-size: 13px; }
    .kpi-grid .kpi-title { font-size: 12px; }
    .kpi-grid .kpi-chip { display: none; }
    .kpi-grid .kpi-body { padding-top: 10px; }
    .kpi-grid .kpi-label { font-size: 9px; }
    .kpi-grid .kpi-value { font-size: 23px; }
    .kpi-grid .kpi-value em { font-size: 11.5px; }
    .kpi-grid .kpi-detail { font-size: 10.5px; margin-top: 5px; }
    .hero { padding: 22px 20px; border-radius: 22px; }
}

.kpi {
    --c1: #312e81; --c2: #4338ca; --c3: #6366f1;
    position: relative; isolation: isolate;
    display: flex; flex-direction: column;
    min-height: 196px;
    padding: 22px 22px 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    background: linear-gradient(125deg, var(--c1) 0%, var(--c2) 50%, var(--c3) 100%);
    background-size: 240% 240%;
    background-position: var(--kpi-pos) 50%;
    color: #fff; text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 1px 2px rgba(15, 23, 42, .08), 0 14px 30px -18px rgba(15, 23, 42, .45);
    animation: kpiFlow 11s ease-in-out infinite, kpiRise .6s var(--ease) both;
    animation-delay: calc(var(--i, 0) * -0.9s), calc(var(--i, 0) * .06s);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
a.kpi { cursor: pointer; }
.kpi:hover {
    transform: translateY(-6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 2px 4px rgba(15, 23, 42, .08), 0 24px 40px -22px rgba(15, 23, 42, .5);
}
.kpi::before {
    content: ""; position: absolute; z-index: -1; top: -60px; right: -50px;
    width: 190px; height: 190px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 68%);
    animation: kpiFloat 9s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -0.7s);
}
.kpi-top { display: flex; align-items: center; gap: 10px; min-height: 46px; min-width: 0; }
:where(.kpi) .kpi-icon {
    display: grid; place-items: center; flex: 0 0 46px;
    width: 46px; height: 46px;
    border: 1px solid rgba(255, 255, 255, .28); border-radius: 13px;
    background: rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: transform .45s var(--ease);
}
/* :where → özgüllük değişmez; beyaz cam ikon yalnızca gradyan gösterge kartının (.kpi) içinde geçerli.
   Başka sayfalardaki .kpi-icon (ör. reklam hesabı detayı) kendi zemin ve ikon rengini korur. */
:where(.kpi) .kpi-icon i { font-size: 18px; color: #fff; }
.kpi:hover .kpi-icon { transform: rotate(-8deg) scale(1.08); }
.kpi-title { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 500; line-height: 1.22; color: #fff; }
.kpi-chip {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    padding: 4px 9px; border-radius: 999px;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .2);
    font-size: 10.5px; font-weight: 500; color: #fff; white-space: nowrap;
}
.kpi-chip.is-live { padding: 6px; }
.kpi-chip.is-live i { width: 7px; height: 7px; border-radius: 50%; background: #86efac; box-shadow: 0 0 0 4px rgba(134, 239, 172, .22); animation: uiPulse 2s infinite; }
.kpi-body { margin-top: auto; padding-top: 16px; min-width: 0; }
.kpi-label { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.kpi-value {
    display: block; margin: 4px 0 0;
    font-size: 34px; font-weight: 500; line-height: 1.05; letter-spacing: -.04em;
    color: #fff; font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .12);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kpi-value em { font-size: 16px; font-style: normal; font-weight: 500; letter-spacing: -.01em; color: rgba(255, 255, 255, .62); }
.kpi-detail { display: block; margin-top: 8px; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-wave { position: absolute; z-index: -1; right: 0; bottom: 0; width: 58%; height: 80px; opacity: .3; pointer-events: none; }
.kpi-wave .line { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 420; animation: kpiDraw 1.8s var(--ease) both; animation-delay: calc(.2s + var(--i, 0) * .06s); }
.kpi-wave .fill { fill: rgba(255, 255, 255, .22); stroke: none; }
.kpi.is-compact { min-height: 150px; padding: 18px; border-radius: 20px; }
.kpi.is-compact .kpi-value { font-size: 28px; }
.kpi.is-compact .kpi-icon { width: 40px; height: 40px; flex-basis: 40px; }

.kpi[data-tone="indigo"]  { --c1: #312e81; --c2: #4338ca; --c3: #6366f1; }
.kpi[data-tone="blue"]    { --c1: #1e3a8a; --c2: #2563eb; --c3: #60a5fa; }
.kpi[data-tone="violet"]  { --c1: #4c1d95; --c2: #7c3aed; --c3: #a78bfa; }
.kpi[data-tone="emerald"] { --c1: #064e3b; --c2: #059669; --c3: #34d399; }
.kpi[data-tone="teal"]    { --c1: #134e4a; --c2: #0f766e; --c3: #2dd4bf; }
.kpi[data-tone="rose"]    { --c1: #9f1239; --c2: #e11d48; --c3: #fb7185; }
.kpi[data-tone="red"]     { --c1: #7f1d1d; --c2: #dc2626; --c3: #f97316; }
.kpi[data-tone="orange"]  { --c1: #9a3412; --c2: #ea580c; --c3: #fb923c; }
.kpi[data-tone="amber"]   { --c1: #78350f; --c2: #d97706; --c3: #fbbf24; }
.kpi[data-tone="slate"]   { --c1: #0f172a; --c2: #1e293b; --c3: #475569; }
.kpi[data-tone="sky"]     { --c1: #0c4a6e; --c2: #0284c7; --c3: #38bdf8; }
.kpi[data-tone="green"]   { --c1: #14532d; --c2: #16a34a; --c3: #84cc16; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    padding: 30px 32px;
    border-radius: 28px;
    background:
        radial-gradient(900px 340px at 88% -10%, rgba(99, 102, 241, .55), transparent 60%),
        radial-gradient(700px 300px at 0% 120%, rgba(37, 99, 235, .45), transparent 60%),
        linear-gradient(135deg, #0d1230 0%, #131a45 55%, #1b1f5c 100%);
    color: #fff;
    box-shadow: 0 30px 60px -34px rgba(13, 18, 48, .8);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 0%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 0%, #000 10%, transparent 70%);
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hero-pills span, .hero-pills a {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 11px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .1);
    font-size: 11px; font-weight: 500; color: #dbe1f5;
}
.hero-pills span > i.dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); animation: uiPulse 2s infinite; }
.hero-eyebrow { font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #a5b4fc; margin: 0 0 8px; }
.hero h1 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 500; line-height: 1.1; letter-spacing: -.035em; margin: 0; color: #fff; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #93c5fd, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.hero-text { margin: 10px 0 0; max-width: 560px; font-size: 14px; line-height: 1.55; color: #b9c2de; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 42px; padding: 0 16px; border-radius: 13px;
    font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .09); color: #fff;
    transition: transform .2s var(--ease), background .2s, box-shadow .2s;
}
.hero-btn:hover { background: rgba(255, 255, 255, .16); transform: translateY(-1px); }
.hero-btn.is-primary { background: #fff; color: #1e1b4b; border-color: #fff; box-shadow: 0 14px 28px -14px rgba(255, 255, 255, .55); }
.hero-btn.is-primary:hover { background: #f1f5ff; }

/* ─── Hızlı işlemler ──────────────────────────────────────────────────────── */
.quick { display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1280px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.quick-item {
    position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px;
    min-width: 0; min-height: 108px; padding: 16px;
    border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink);
    box-shadow: var(--shadow-xs); text-align: left; text-decoration: none; cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease);
}
.quick-item:hover { border-color: rgba(79, 70, 229, .32); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.quick-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--q-bg, rgba(79, 70, 229, .1)); color: var(--q-fg, #4f46e5); font-size: 15px; }
.quick-copy b { display: block; font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.25; }
.quick-copy small { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.quick-arrow { position: absolute; top: 16px; right: 16px; font-size: 11px; color: #c3cadb; transition: transform .2s var(--ease), color .2s; }
.quick-item:hover .quick-arrow { color: var(--brand-2); transform: translate(2px, -2px); }

/* ─── Paneller (başlıklı kart) ────────────────────────────────────────────── */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 40px -30px rgba(15, 23, 42, .28); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink); margin: 0; letter-spacing: -.015em; }
.panel-title .ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-2); font-size: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 8px 16px -10px currentColor; }
.panel-sub { font-size: 12px; color: var(--faint); margin: 2px 0 0; font-weight: 500; }
.panel-link { font-size: 12px; font-weight: 500; color: var(--brand); text-decoration: none; white-space: nowrap; }
.panel-link:hover { color: var(--brand-600); }
.panel-body { padding: 0 20px 20px; }

/* ════════════════════════════════════════════════════════════════════════════
   BUTONLAR
   ════════════════════════════════════════════════════════════════════════════ */
.btn-primary, .btn-secondary, .btn-danger, .btn-success, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 16px;
    font-size: 13.5px; font-weight: 500; line-height: 1.3;
    border-radius: var(--radius-sm);
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform .18s var(--ease), box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--grad); color: #fff; border: none; box-shadow: 0 8px 18px -10px rgba(37, 99, 235, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(37, 99, 235, .85), inset 0 1px 0 rgba(255, 255, 255, .22); filter: brightness(1.05); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled, .btn-primary[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.btn-secondary { background: #fff; color: var(--ink-2); border: 1px solid #dbe0ea; font-weight: 500; box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: #f8fafc; border-color: #c3cad9; transform: translateY(-1px); }
.btn-secondary:active { transform: translateY(0); }

.btn-ghost { background: transparent; color: var(--muted); border: 1px solid transparent; font-weight: 500; }
.btn-ghost:hover { background: #eef1f7; color: var(--ink); }

.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; border: none; box-shadow: 0 8px 18px -10px rgba(220, 38, 38, .8); }
.btn-danger:hover { transform: translateY(-1px); filter: brightness(1.05); }

.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; border: none; box-shadow: 0 8px 18px -10px rgba(5, 150, 105, .8); }
.btn-success:hover { transform: translateY(-1px); filter: brightness(1.05); }

.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 10px; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 11px; }

/* ════════════════════════════════════════════════════════════════════════════
   FORM
   ════════════════════════════════════════════════════════════════════════════ */
.form-input {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid #dbe0ea;
    padding: 9px 13px;
    font-size: 14px; color: var(--ink); background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
    -webkit-appearance: none; appearance: none;
}
.form-input:hover { border-color: #c3cad9; }
.form-input:focus { border-color: #6c8ef5; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); outline: none; }
.form-input::placeholder { color: #a3adc2; }
select.form-input {
    cursor: pointer; padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M6 8l4 4 4-4' stroke='%2394a3b8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 18px;
}
textarea.form-input { resize: vertical; min-height: 80px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.form-hint { font-size: 11.5px; color: var(--faint); margin-top: 5px; }

/* ════════════════════════════════════════════════════════════════════════════
   ROZET / ÇİP
   ════════════════════════════════════════════════════════════════════════════ */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: 9999px; font-size: 12px; font-weight: 500; }
.badge-blue   { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.badge-green  { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.badge-yellow { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.badge-orange { background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; }
.badge-red    { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge-purple { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.badge-pink   { background: #fdf2f8; color: #be185d; border: 1px solid #fbcfe8; }
.badge-gray   { background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0; }
.badge-amber  { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.badge-indigo { background: #eef2ff; color: #4f46e5; border: 1px solid #c7d2fe; }
.badge-teal   { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    height: 26px; padding: 0 10px; border-radius: 999px;
    background: var(--chip-bg, #f1f5f9); color: var(--chip-fg, #475569);
    font-size: 11.5px; font-weight: 500; white-space: nowrap;
}
.chip > i.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Segment (sekme) kontrolü */
.seg { display: inline-flex; padding: 4px; gap: 2px; background: #eaeef6; border-radius: 13px; }
.seg a, .seg button {
    display: inline-flex; align-items: center; gap: 7px;
    height: 34px; padding: 0 13px; border-radius: 10px; border: 0; background: transparent;
    font-size: 12.5px; font-weight: 500; color: var(--muted); text-decoration: none; cursor: pointer;
    transition: background .18s, color .18s, box-shadow .18s;
}
.seg a:hover, .seg button:hover { color: var(--ink); }
.seg .is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .08), 0 6px 14px -8px rgba(15, 23, 42, .25); }

/* Avatar (baş harf) */
.avatar {
    display: inline-grid; place-items: center; flex-shrink: 0;
    width: 38px; height: 38px; border-radius: 12px;
    font-size: 13px; font-weight: 500; color: #fff; letter-spacing: -.02em;
    background: var(--av, linear-gradient(135deg, #6366f1, #8b5cf6));
}
.avatar.is-sm { width: 30px; height: 30px; border-radius: 10px; font-size: 11px; }
.avatar.is-lg { width: 54px; height: 54px; border-radius: 16px; font-size: 18px; }

/* Boş durum */
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 44px 20px; color: var(--faint); }
.empty .empty-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: #f1f5f9; color: #94a3b8; font-size: 20px; margin-bottom: 14px; }
.empty b { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.empty span { font-size: 12.5px; margin-top: 4px; max-width: 340px; }

/* ════════════════════════════════════════════════════════════════════════════
   TABLO
   ════════════════════════════════════════════════════════════════════════════ */
.ui-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.ui-table thead th {
    text-align: left; padding: 11px 16px;
    font-size: 10.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--faint);
    background: #f8fafd; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.ui-table tbody td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; color: var(--ink-2); }
.ui-table tbody tr { transition: background .15s; }
.ui-table tbody tr:hover { background: #f8faff; }
.ui-table tbody tr:last-child td { border-bottom: 0; }

/* ════════════════════════════════════════════════════════════════════════════
   MODAL / ÇEKMECE
   ════════════════════════════════════════════════════════════════════════════ */
.ui-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(9, 13, 30, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.ui-modal {
    width: 100%; max-width: 640px; max-height: calc(100vh - 48px);
    display: flex; flex-direction: column;
    background: #fff; border-radius: 24px; overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(9, 13, 30, .6);
    animation: uiPop .32s var(--ease) both;
}
.ui-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.ui-modal-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: var(--ink); margin: 0; letter-spacing: -.02em; }
.ui-modal-body { padding: 20px 22px; overflow-y: auto; }
.ui-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line-2); background: #fafbfe; }
.ui-close { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; border: 0; background: #f1f5f9; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.ui-close:hover { background: #e2e8f0; color: var(--ink); }

.ui-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 81;
    width: 560px; max-width: 100vw;
    display: flex; flex-direction: column;
    background: #fff; box-shadow: -30px 0 60px -30px rgba(9, 13, 30, .5);
    animation: uiSlide .34s var(--ease) both;
}
@keyframes uiPop   { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes uiSlide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes uiPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* Bildirim (toast) */
.ui-toast {
    position: fixed; top: 84px; right: 18px; z-index: 90;
    display: flex; align-items: flex-start; gap: 12px;
    max-width: 440px; padding: 13px 14px 13px 13px;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-md);
    font-size: 13px; font-weight: 500; color: var(--ink-2); line-height: 1.45;
    animation: uiPop .35s var(--ease) both;
}
.ui-toast .t-ico { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px; font-size: 14px; }
.ui-toast.is-success .t-ico { background: #dcfce7; color: #16a34a; }
.ui-toast.is-error   .t-ico { background: #fee2e2; color: #dc2626; }
.ui-toast.is-warning .t-ico { background: #fef3c7; color: #d97706; }
.ui-toast button { margin-left: auto; color: var(--faint); background: none; border: 0; cursor: pointer; padding: 2px; }
.ui-toast button:hover { color: var(--ink); }

/* ════════════════════════════════════════════════════════════════════════════
   ESKİ BİLEŞENLER (mevcut sayfalarla uyum)
   ════════════════════════════════════════════════════════════════════════════ */
.metric-card {
    border-radius: 22px; border: 1px solid var(--line); overflow: hidden; background: #fff; padding: 0;
    transition: all .32s var(--ease); box-shadow: var(--shadow-xs); display: flex; flex-direction: column;
}
.metric-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.metric-card .mc-deco { display: none; }
.metric-card::before { display: none; }
.mc-top { padding: 18px 20px 16px; position: relative; overflow: hidden; display: flex; align-items: flex-start; justify-content: space-between; }
.mc-top-orb1 { position: absolute; top: -22px; right: -22px; width: 88px; height: 88px; border-radius: 50%; background: rgba(255, 255, 255, .16); pointer-events: none; }
.mc-top-orb2 { position: absolute; bottom: -30px; left: 22%; width: 66px; height: 66px; border-radius: 50%; background: rgba(255, 255, 255, .1); pointer-events: none; }
.mc-top-left { position: relative; z-index: 1; }
.mc-top-label { font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; color: rgba(255, 255, 255, .8); }
.mc-top-icon { width: 46px; height: 46px; border-radius: 13px; background: rgba(255, 255, 255, .2); border: 1.5px solid rgba(255, 255, 255, .28); display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; z-index: 1; transition: transform .28s var(--ease); }
.mc-top-icon i { font-size: 18px; color: #fff; }
.metric-card:hover .mc-top-icon { transform: scale(1.12) rotate(-6deg); }
.mc-body { padding: 16px 20px 18px; flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.mc-num { font-size: 38px; font-weight: 500; line-height: 1; color: var(--ink); letter-spacing: -1.5px; }
.mc-sub { font-size: 11.5px; color: var(--faint); margin-top: 5px; font-weight: 500; }
.mc-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; text-decoration: none; margin-top: auto; padding-top: 8px; transition: gap .15s; }
.mc-link:hover { gap: 7px; }
.metric-card-blue   .mc-top { background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%); }
.metric-card-green  .mc-top { background: linear-gradient(135deg, #047857 0%, #10b981 100%); }
.metric-card-red    .mc-top { background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%); }
.metric-card-amber  .mc-top { background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%); }
.metric-card-violet .mc-top { background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%); }
.metric-card-teal   .mc-top { background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); }
.metric-card-orange .mc-top { background: linear-gradient(135deg, #c2410c 0%, #f97316 100%); }
.metric-card-indigo .mc-top { background: linear-gradient(135deg, #3730a3 0%, #6366f1 100%); }

.icon-box { width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .25s var(--ease); }
.icon-box i { font-size: 17px; }
.icon-box-blue   { background: linear-gradient(135deg, #1d4ed8, #60a5fa); box-shadow: 0 6px 16px rgba(37, 99, 235, .38); }
.icon-box-green  { background: linear-gradient(135deg, #059669, #34d399); box-shadow: 0 6px 16px rgba(5, 150, 105, .38); }
.icon-box-red    { background: linear-gradient(135deg, #dc2626, #f87171); box-shadow: 0 6px 16px rgba(220, 38, 38, .38); }
.icon-box-amber  { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 6px 16px rgba(217, 119, 6, .38); }
.icon-box-violet { background: linear-gradient(135deg, #6d28d9, #a78bfa); box-shadow: 0 6px 16px rgba(109, 40, 217, .38); }
.icon-box-teal   { background: linear-gradient(135deg, #0d9488, #2dd4bf); box-shadow: 0 6px 16px rgba(13, 148, 136, .38); }
.icon-box-orange { background: linear-gradient(135deg, #ea580c, #fb923c); box-shadow: 0 6px 16px rgba(234, 88, 12, .38); }
.icon-box-indigo { background: linear-gradient(135deg, #4338ca, #818cf8); box-shadow: 0 6px 16px rgba(67, 56, 202, .38); }

/* ─── Animasyonlar ─── */
@keyframes float-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes count-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-right { from { width: 0; } to { width: var(--w); } }
@keyframes scale-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
@keyframes shimmer-card { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }

.animate-float-up   { animation: float-up .5s var(--ease) both; }
.animate-float-up-1 { animation: float-up .5s var(--ease) .08s both; }
.animate-float-up-2 { animation: float-up .5s var(--ease) .16s both; }
.animate-float-up-3 { animation: float-up .5s var(--ease) .24s both; }
.animate-float-up-4 { animation: float-up .5s var(--ease) .32s both; }
.animate-float-up-5 { animation: float-up .5s var(--ease) .40s both; }
.animate-float-up-6 { animation: float-up .5s var(--ease) .48s both; }
.animate-float-up-7 { animation: float-up .5s var(--ease) .56s both; }
.count-anim   { animation: count-up .65s var(--ease) .25s both; }
.progress-bar { animation: slide-right .9s var(--ease) .45s both; }
.scale-in     { animation: scale-in .35s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ─── Hero içi cam göstergeler ────────────────────────────────────────────── */
.hero.is-stack { display: block; }
.hero-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero-figure { font-size: clamp(34px, 4vw, 54px); font-weight: 500; letter-spacing: -.05em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.hero-figure small { font-size: .42em; font-weight: 500; letter-spacing: 0; color: #a5b4fc; margin-left: 4px; }
.hero-trend { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: rgba(74, 222, 128, .16); color: #86efac; }
.hero-trend.is-down { background: rgba(248, 113, 113, .16); color: #fca5a5; }
.hero-trend.is-flat { background: rgba(255, 255, 255, .1); color: #cbd5f5; }
.hero-chart { flex: 1 1 380px; max-width: 620px; min-width: 0; height: 150px; padding: 12px 14px 8px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px); }
.hero-chart-k { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: #a5b4fc; margin-bottom: 4px; }
.hero-stats { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; }
@media (max-width: 1100px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px)  { .hero-stats { grid-template-columns: 1fr; } }
.hero-stat {
    display: flex; align-items: center; gap: 13px; min-width: 0; padding: 14px 16px; border-radius: 18px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(10px);
    color: #fff; text-decoration: none; transition: background .2s, transform .25s var(--ease), border-color .2s;
}
a.hero-stat:hover, .hero-stat[data-href]:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .22); transform: translateY(-2px); }
.hero-stat > i { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 14px; background: var(--hs, linear-gradient(135deg, #6366f1, #3b82f6)); font-size: 15px; box-shadow: 0 12px 22px -12px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .3); }
.hero-stat > span { min-width: 0; display: block; }
.hero-stat .k { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: #a5b4fc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stat b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.035em; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-stat b em { font-style: normal; font-size: 12px; font-weight: 500; color: #a5b4fc; letter-spacing: 0; }
.hero-stat .d { display: block; font-size: 11.5px; font-weight: 500; color: #b9c2de; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Kayıt kartı (zengin, tamamı tıklanır) ───────────────────────────────── */
.rc-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
@media (max-width: 420px) { .rc-grid { grid-template-columns: 1fr; } }
.rc {
    --rc: #4f46e5;
    position: relative; display: flex; flex-direction: column; min-width: 0;
    background: #fff; border: 1px solid var(--line); border-radius: 26px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 20px 40px -30px rgba(15, 23, 42, .3);
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.rc[data-href]:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--rc) 38%, var(--line)); box-shadow: 0 2px 4px rgba(15, 23, 42, .05), 0 38px 60px -32px color-mix(in srgb, var(--rc) 80%, transparent); }
.rc.is-open { z-index: 30; }
.rc.is-dashed { border-style: dashed; border-color: #cbd5e1; box-shadow: none; }
.rc-head {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; align-items: center; gap: 13px; padding: 18px 60px 18px 18px;
    border-radius: 25px 25px 0 0; color: #fff;
    background:
        radial-gradient(240px 150px at 100% 0%, rgba(255, 255, 255, .3), transparent 62%),
        linear-gradient(135deg, color-mix(in srgb, var(--rc) 48%, #0b1026) 0%, var(--rc) 100%);
}
.rc-head::before { content: ""; position: absolute; z-index: -1; left: -30px; bottom: -70px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.rc-head::after { content: ""; position: absolute; z-index: -1; right: 46px; bottom: -34px; width: 90px; height: 90px; border-radius: 50%; border: 14px solid rgba(255, 255, 255, .07); transition: transform .6s var(--ease); }
.rc:hover .rc-head::after { transform: scale(1.35); }
.rc-ico { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 15px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .26); font-size: 17px; font-weight: 500; letter-spacing: -.02em; backdrop-filter: blur(6px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3); }
.rc-name { display: block; font-size: 15.5px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-sub { display: block; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.rc-sub a { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(255, 255, 255, .45); }
.rc-sub a:hover { color: #fff; border-bottom-style: solid; }
.rc-tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .2); font-size: 10.5px; font-weight: 500; letter-spacing: .02em; color: #fff; white-space: nowrap; }
.rc-menu { position: absolute; top: 20px; right: 16px; z-index: 6; }
.rc-menu > button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; transition: background .2s; }
.rc-menu > button:hover { background: rgba(255, 255, 255, .28); }
.rc-body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 18px; min-width: 0; }
.rc-k { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.rc-big { display: block; font-size: 31px; font-weight: 500; letter-spacing: -.045em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-big small { font-size: 14px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.rc-d { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.rc-tile { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 14px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--rc) 10%, #fff), color-mix(in srgb, var(--rc) 4%, #fff)); border: 1px solid color-mix(in srgb, var(--rc) 18%, #fff); }
.rc-tile-ico { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--rc) 78%, #fff), var(--rc)); color: #fff; font-size: 15px; box-shadow: 0 12px 20px -12px var(--rc), inset 0 1px 0 rgba(255, 255, 255, .35); }
.rc-tile b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-tile b small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.rc-tile .rc-d { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-badge { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 9px; font-size: 11.5px; font-weight: 500; white-space: nowrap; background: #dcfce7; color: #15803d; }
.rc-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rc-mini > div { min-width: 0; padding: 10px 12px; border-radius: 14px; background: #f6f8fc; border: 1px solid #eef1f7; }
.rc-mini b { display: block; font-size: 15px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-mini b small { font-size: 11px; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.rc-mini > div > span { display: block; font-size: 10.5px; font-weight: 500; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-foot { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 18px; border-top: 1px solid var(--line-2); border-radius: 0 0 25px 25px; background: #fafbfe; font-size: 12px; font-weight: 500; color: var(--muted); }
.rc-go { display: grid; place-items: center; flex: 0 0 32px; height: 32px; margin-left: auto; border-radius: 11px; background: color-mix(in srgb, var(--rc) 10%, #fff); color: var(--rc); font-size: 12px; transition: transform .25s var(--ease), background .25s, color .25s; }
.rc[data-href]:hover .rc-go { background: var(--rc); color: #fff; transform: translateX(4px); }
.rc-warn { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 8px; background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 500; white-space: nowrap; }
.rc-warn.is-bad { background: #fee2e2; color: #b91c1c; }
.rc-ok { display: inline-flex; align-items: center; gap: 6px; color: #059669; font-weight: 500; }
.hring { position: relative; flex: 0 0 auto; width: var(--rs, 40px); height: var(--rs, 40px); }
.hring svg { display: block; transform: rotate(-90deg); }
.hring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11.5px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ─── Zengin satır (tamamı tıklanır) ──────────────────────────────────────── */
.rowx { --rc: var(--brand-2); display: flex; align-items: center; gap: 14px; min-width: 0; padding: 13px 14px; border-radius: 18px; border: 1px solid transparent; text-decoration: none; color: inherit; transition: background .2s, border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.rowx + .rowx { margin-top: 2px; }
.rowx[data-href]:hover, a.rowx:hover { background: #fff; border-color: #dfe5f3; box-shadow: 0 16px 32px -24px rgba(15, 23, 42, .45); transform: translateX(4px); }
.rowx:hover .rc-go { background: var(--rc); color: #fff; }
.lead-card[data-href] { cursor: grab; }

/* ══════════════════════════════════════════════════════════════════════════════
   KURUMSAL KATMAN — tüm sayfalar
   ══════════════════════════════════════════════════════════════════════════════ */

/* ─── Sayfa başlığı bandı ─────────────────────────────────────────────────── */
.ui .page-head, .ui .ui-head {
    padding: 20px 24px 20px 30px; margin-bottom: 22px;
    border-radius: 24px; border: 1px solid var(--line);
    background:
        linear-gradient(180deg, #4f46e5, #2563eb) 0 0 / 5px 100% no-repeat,
        radial-gradient(640px 240px at 100% -30%, rgba(99, 102, 241, .17), transparent 66%),
        radial-gradient(420px 220px at 56% 150%, rgba(14, 165, 233, .09), transparent 70%),
        linear-gradient(180deg, #fff, #fbfcff);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 26px 48px -38px rgba(15, 23, 42, .45);
}
.ui .page-head { gap: 14px; flex-wrap: wrap; }
.ui h1.page-head { display: block; }
.ui .page-head h1, .ui h1.page-head { font-size: 24px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; color: var(--ink); }
.ui .page-head h1 ~ p, .ui .page-head h1 + div > p { color: var(--muted); }
.ui .page-head a[class~="hover:text-white"]:not([class*="bg-"]):hover { color: var(--ink) !important; }
@media (max-width: 640px) { .ui .page-head, .ui .ui-head { padding: 16px 16px 16px 22px; border-radius: 20px; } .ui .page-head h1 { font-size: 20px; } }

/* ─── Açık zeminde kalan açık renkli yazılar (koyu temadan kalma) ─────────── */
.ui .ink-fix      { color: var(--ink) !important; }
.ui .ink-fix-soft { color: var(--ink-2) !important; }
.ui-content [class*="border-slate-7"], .ui-content [class*="border-slate-6"], .ui-content [class*="border-slate-8"],
.ui-content [class*="border-gray-7"], .ui-content [class*="border-gray-6"], .ui-content [class*="border-gray-8"] { border-color: var(--line) !important; }
.ui-content [class*="divide-slate-7"] > * + *, .ui-content [class*="divide-slate-6"] > * + *, .ui-content [class*="divide-gray-7"] > * + * { border-color: var(--line-2) !important; }
.ui-content a[class~="hover:text-white"]:not([class*="bg-"]):not([class*="hover:bg-"]):hover { color: var(--ink) !important; }

/* ─── Eski tablolar ───────────────────────────────────────────────────────── */
.ui-content table:not(.ui-table) thead th { font-size: 10.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--faint) !important; background: #f8fafd; border-bottom: 1px solid var(--line) !important; white-space: nowrap; }
.ui-content table:not(.ui-table) thead tr { border-color: var(--line) !important; }
.ui-content table:not(.ui-table) tbody tr { border-color: var(--line-2) !important; transition: background .15s; }
.ui-content table:not(.ui-table) tbody tr:hover { background: #f7f9ff; }

/* ─── Açılış hareketi ─────────────────────────────────────────────────────── */
@keyframes uiRise { from { opacity: 0; transform: translateY(14px); } }
.ui .page-head, .ui .ui-head, .ui .hero { animation: uiRise .5s var(--ease) backwards; }
.rc-grid > *, .stat-grid > *, .hero-stats > * { animation: uiRise .55s var(--ease) backwards; }
.rc-grid > :nth-child(2), .stat-grid > :nth-child(2), .hero-stats > :nth-child(2) { animation-delay: .05s; }
.rc-grid > :nth-child(3), .stat-grid > :nth-child(3), .hero-stats > :nth-child(3) { animation-delay: .10s; }
.rc-grid > :nth-child(4), .stat-grid > :nth-child(4), .hero-stats > :nth-child(4) { animation-delay: .15s; }
.rc-grid > :nth-child(5) { animation-delay: .20s; }
.rc-grid > :nth-child(6) { animation-delay: .25s; }
.rc-grid > :nth-child(n+7) { animation-delay: .30s; }

.hero-pills a { text-decoration: none; transition: background .2s; }
.hero-pills a:hover { background: rgba(255, 255, 255, .18); }
.hero-pills a > i.dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); animation: uiPulse 2s infinite; }


/* ══════════════════════════════════════════════════════════════════════════════
   DESTEK360 ÖLÇÜ VE GÖRÜNÜM DİLİ
   Kaynak: destek360 arayüzü — gövde 14px, yardımcı metin 12px, etiket 10–11px,
   en kalın yazı Medium (500), kart köşesi 20px, yumuşak gölge, mor ana renk, sade koyu menü.
   Bu blok yukarıdaki tanımların üzerine yazar.
   ══════════════════════════════════════════════════════════════════════════════ */
@font-face { font-family: "CRM Sans"; font-style: normal; font-weight: 400; font-display: swap;
    src: local("Aktiv Grotesk Regular"), local("AktivGrotesk-Regular"), local("HelveticaNeue"), local("Helvetica Neue"), local("Segoe UI"), local("Roboto"), local("Roboto-Regular"), local("Arial"); }
/* 500–900 arası her kalınlık Medium yüzüne bağlanır: sayfa hiçbir yerde "kapkalın" görünmez */
@font-face { font-family: "CRM Sans"; font-style: normal; font-weight: 500 599; font-display: swap;
    src: local("Aktiv Grotesk Medium"), local("AktivGrotesk-Medium"), local("HelveticaNeue-Medium"), local("Helvetica Neue Medium"), local("Segoe UI Semibold"), local("Roboto Medium"), local("Roboto-Medium"), local("Arial"); }

:root {
    --ink: #111827; --ink-2: #30384a; --muted: #717c8f; --faint: #8a94a5;
    --line: #e1e6ee; --line-2: #edf0f5; --bg: #f5f7fb;
    --brand: #6f56ee; --brand-600: #5b42e8; --brand-2: #6f56ee; --brand-soft: #f1efff;
    --grad: linear-gradient(135deg, #866cff 0%, #5b42e8 100%);
    --side-1: #11142d; --side-2: #090d1e;
    --radius: 14px; --radius-sm: 12px;
    --shadow-xs: 0 1px 2px rgba(31, 41, 68, .04);
    --shadow-sm: 0 12px 34px rgba(31, 41, 68, .055);
    --shadow-md: 0 18px 44px rgba(31, 41, 68, .12);
}
body.ui {
    font-family: "CRM Sans", "Aktiv Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px; font-weight: 400; font-synthesis: none; text-rendering: optimizeLegibility;
    letter-spacing: -.012em; background: var(--bg); color: var(--ink);
}
body.ui :where(button, input, select, textarea) { font-family: inherit; }
body.ui :where(.font-medium, .font-semibold, .font-bold, .font-extrabold, .font-black) { font-weight: 500 !important; }
body.ui :where(h1, h2, h3, h4, h5, b, strong, th) { font-weight: 500; }
body.ui [style*="font-weight:6"], body.ui [style*="font-weight:7"], body.ui [style*="font-weight:8"], body.ui [style*="font-weight:9"],
body.ui [style*="font-weight: 6"], body.ui [style*="font-weight: 7"], body.ui [style*="font-weight: 8"], body.ui [style*="font-weight: 9"] { font-weight: 500 !important; }

/* ─── Üst çubuk ─── */
.ui-topbar { height: 72px; background: rgba(248, 249, 252, .88); border-bottom: 1px solid #e5e9f1; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.ui-search { height: 40px; border-radius: 12px; border-color: var(--line); }
.ui-search:focus-within { border-color: #b9aef6; box-shadow: 0 0 0 4px rgba(111, 86, 238, .12); }

/* ─── Sayfa başlığı ─── */
.ui-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .13em; color: var(--brand); margin-bottom: 8px; }
.ui-title { font-size: 28px; font-weight: 500; letter-spacing: -.04em; color: #151d2f; line-height: 1.15; }
.ui-sub { font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: 4px; max-width: 760px; }
.ui .page-head, .ui .ui-head {
    padding: 0 0 2px; margin-bottom: 22px; border: 0; border-radius: 0; background: none; box-shadow: none; animation: none;
}
.ui .page-head h1, .ui h1.page-head { font-size: 28px; font-weight: 500; letter-spacing: -.04em; color: #151d2f; }
@media (max-width: 640px) { .ui-title, .ui .page-head h1 { font-size: 24px; } .ui .page-head, .ui .ui-head { padding: 0; } }

/* ─── Kartlar / paneller ─── */
.panel, .card { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.panel-head { padding: 18px 20px 14px; }
.panel-title { font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); }
.panel-title .ico { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; box-shadow: none; }
.panel-sub { font-size: 12px; color: var(--faint); }
.panel-link { font-size: 12px; font-weight: 500; color: var(--brand); }
.panel-link:hover { color: var(--brand-600); }

.stat { border-radius: 20px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stat::after { display: none; }
.stat-ico { flex-basis: 44px; width: 44px; height: 44px; border-radius: 12px; font-size: 16px; background: color-mix(in srgb, var(--s-fg) 12%, #fff); color: var(--s-fg); box-shadow: none; }
.stat-k { font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--faint); }
.stat-v { font-size: 24px; font-weight: 500; letter-spacing: -.04em; }
.stat-d { font-size: 12px; font-weight: 400; color: var(--faint); }
a.stat:hover, .stat[data-href]:hover { transform: translateY(-2px); border-color: #c7bff2; box-shadow: 0 16px 40px rgba(56, 40, 135, .1); }

.kpi { border-radius: 24px; box-shadow: 0 16px 38px rgba(26, 32, 55, .16); }
.kpi-title { font-size: 14px; font-weight: 500; }
.kpi-value { font-size: 34px; font-weight: 500; letter-spacing: -.05em; }
.kpi-value em { font-size: 15px; font-weight: 500; }
.kpi-label { font-size: 10.5px; font-weight: 500; }
.kpi-detail { font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .7); }

/* ─── Koyu üst bant ─── */
.hero {
    padding: 24px 26px; border-radius: 24px; border: 1px solid #26385b;
    background: radial-gradient(circle at 90% 0%, rgba(83, 117, 220, .28), transparent 34%), linear-gradient(135deg, #101a2f, #13233e);
    box-shadow: 0 18px 44px rgba(16, 26, 47, .2);
}
.hero::after { opacity: .25; }
.hero-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .14em; color: rgba(255, 255, 255, .5); }
.hero h1 { font-size: clamp(22px, 2vw, 30px); font-weight: 500; letter-spacing: -.045em; line-height: 1.15; }
.hero h1 em { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #9b8aff; }
.hero p.hero-text { font-size: 14px; color: rgba(255, 255, 255, .55); }
.hero-figure { font-size: 32px; font-weight: 500; letter-spacing: -.05em; }
.hero-figure small { font-size: .5em; color: rgba(255, 255, 255, .5); }
.hero-pills { gap: 6px; margin-bottom: 14px; }
.hero-pills span, .hero-pills a { padding: 5px 10px; font-size: 11px; font-weight: 500; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .78); }
.hero-trend { height: 24px; padding: 0 9px; font-size: 11px; font-weight: 500; }
.hero-btn { height: 40px; padding: 0 14px; border-radius: 12px; font-size: 13px; font-weight: 500; }
.hero-btn.is-primary { background: #fff; color: #111827; box-shadow: none; }
.hero-chart { border-radius: 16px; background: rgba(255, 255, 255, .055); border-color: rgba(255, 255, 255, .1); }
.hero-chart-k { font-size: 10.5px; font-weight: 500; letter-spacing: .1em; color: rgba(255, 255, 255, .45); }
.hero-stats { gap: 10px; margin-top: 18px; }
.hero-stat { gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.hero-stat > i { flex-basis: 38px; height: 38px; border-radius: 12px; font-size: 14px; box-shadow: none; }
.hero-stat .k { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: rgba(255, 255, 255, .5); }
.hero-stat b { font-size: 20px; font-weight: 500; letter-spacing: -.04em; }
.hero-stat b em { font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .5); }
.hero-stat .d { font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .5); }

/* ─── Kayıt kartı ─── */
.rc-grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.rc { border-radius: 20px; border-color: var(--line); box-shadow: var(--shadow-sm); }
.rc[data-href]:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(26, 32, 55, .14); }
.rc-head { padding: 16px 56px 16px 16px; border-radius: 19px 19px 0 0; gap: 12px; }
.rc-ico { flex-basis: 42px; height: 42px; border-radius: 13px; font-size: 15px; font-weight: 500; }
.rc-name { font-size: 15px; font-weight: 500; letter-spacing: -.02em; }
.rc-sub { font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .72); }
.rc-tag { height: 22px; font-size: 10.5px; font-weight: 500; }
.rc-menu { top: 18px; right: 14px; }
.rc-body { gap: 12px; padding: 16px; }
.rc-k { font-size: 10.5px; font-weight: 500; letter-spacing: .08em; }
.rc-big { font-size: 26px; font-weight: 500; letter-spacing: -.045em; }
.rc-big small { font-size: 13px; font-weight: 400; }
.rc-d { font-size: 12px; font-weight: 400; color: var(--faint); }
.rc-tile { padding: 12px; border-radius: 14px; }
.rc-tile-ico { flex-basis: 38px; height: 38px; border-radius: 12px; font-size: 14px; box-shadow: none; }
.rc-tile b { font-size: 16px; font-weight: 500; letter-spacing: -.02em; }
.rc-tile b small { font-size: 12px; font-weight: 400; }
.rc-mini > div { padding: 9px 11px; border-radius: 12px; background: #f7f8fb; border-color: var(--line-2); }
.rc-mini b { font-size: 14px; font-weight: 500; }
.rc-mini > div > span { font-size: 10.5px; font-weight: 400; color: var(--faint); }
.rc-foot { padding: 11px 16px; border-radius: 0 0 19px 19px; background: #fafbfd; font-size: 12px; font-weight: 400; }
.rc-go { flex-basis: 30px; height: 30px; border-radius: 10px; }
.rc-badge, .rc-warn { font-weight: 500; }
.rowx { padding: 11px 12px; border-radius: 14px; gap: 12px; }

/* ─── Butonlar / form / sekmeler / tablo ─── */
.btn-primary, .btn-secondary, .btn-danger, .btn-success, .btn-ghost { padding: 10px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 500; }
.btn-primary { box-shadow: 0 8px 20px rgba(111, 86, 238, .24); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(111, 86, 238, .3); }
.btn-sm { font-size: 12.5px; }
.form-input { border-radius: 12px; font-size: 14px; border-color: var(--line); }
.form-input:focus { border-color: #b9aef6; box-shadow: 0 0 0 4px rgba(111, 86, 238, .12); }
.form-label { font-size: 13px; font-weight: 500; }
.seg { padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.seg a, .seg button { border-radius: 8px; font-size: 12px; font-weight: 500; }
.seg .is-active { background: #151d2f; color: #fff; box-shadow: none; }
.pills a { height: 34px; font-size: 12.5px; font-weight: 500; border-color: var(--line); }
.pills a.is-active { background: #151d2f; border-color: #151d2f; color: #fff; }
.pills a b { font-weight: 500; }
.subnav a.is-active, .subnav .is-active { background: #151d2f; }
.chip { font-weight: 500; }
.toolbar-search { border-radius: 12px; border-color: var(--line); }
.ui-table { font-size: 14px; }
.ui-table thead th { font-size: 12px; font-weight: 500; letter-spacing: .035em; text-transform: none; color: var(--muted); background: #f7f8fb; }
.ui-table tbody td { padding: 12px 16px; line-height: 1.35rem; }
.ui-table tbody tr:hover, main tbody tr[data-rn="1"]:hover { background: #f8f7ff !important; box-shadow: none; }
.ui-content table:not(.ui-table) thead th { font-size: 12px; font-weight: 500; letter-spacing: .035em; text-transform: none; color: var(--muted) !important; background: #f7f8fb; }
.ui-content table:not(.ui-table) tbody tr:hover { background: #f8f7ff; }
.empty b { font-weight: 500; }
.quick-item { border-radius: 16px; }
.quick-copy b { font-weight: 500; }

/* ─── Küçük durum rozeti (grafik başlıklarında) ─── */
.ins-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 500; white-space: nowrap; background: #e9f8f4; color: #087a69; }
.ins-chip.is-down { background: #ffeaed; color: #c8364a; }
.ins-chip.is-flat { background: #f3f5f8; color: #596579; }

/* ─── Rakamlar: iri ve kaba durmasın (tüm sayfalar) ─────────────────────────── */
.rc-big { font-size: 20px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; color: var(--ink); }
.rc-big small { font-size: 12px; font-weight: 400; color: var(--faint); }
.rc-tile b { font-size: 15px; }
.stat-v { font-size: 22px; letter-spacing: -.035em; }
.kpi-value { font-size: 30px; letter-spacing: -.04em; }
.kpi-value em { font-size: 14px; }
.hero-figure { font-size: 28px; letter-spacing: -.04em; }
.hero-stat b { font-size: 18px; }
/* Tutar + durum satırı: rakam sade, durum küçük rozet */
.amt { display: inline-flex; align-items: baseline; gap: 4px; font-size: 18px; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt small { font-size: 12px; font-weight: 400; color: var(--faint); letter-spacing: 0; }
.amt.is-late { color: #c8364a; }
.amt.is-wait { color: #9a5b12; }
.state-pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: #e9f8f4; color: #087a69; }
.state-pill i { font-size: 10px; }
.state-pill.is-muted { background: #f3f5f8; color: #717c8f; }

/* ─── Rakamlar ve tutarlar: ince değil, belirgin (tüm sistem) ───────────────
   600+ kalınlık Bold yüzüne bağlanır; yazıların geri kalanı Medium kalır. */
@font-face { font-family: "CRM Sans"; font-style: normal; font-weight: 600 900; font-display: swap;
    src: local("Aktiv Grotesk Bold"), local("AktivGrotesk-Bold"), local("HelveticaNeue-Bold"), local("Helvetica Neue Bold"), local("Segoe UI Bold"), local("Roboto Bold"), local("Roboto-Bold"), local("Arial Bold"), local("Arial-BoldMT"); }
body.ui .num-b, body.ui .tnum, body.ui .amt, body.ui .rc-big, body.ui .stat-v, body.ui .kpi-value, body.ui .hero-figure, body.ui .hero-stat b,
body.ui .rc-tile b, body.ui .rc-mini b, body.ui .fin-amt, body.ui .fin-big, body.ui .fin-age b, body.ui .adx-big, body.ui .ads-fig b, body.ui .ads-kpi b,
body.ui .dash-rev b, body.ui .dash-tasks b, body.ui .rd-sum b, body.ui .ad-facts b, body.ui .col-count, body.ui .lead-offer b, body.ui .fnl-v, body.ui .fnl-bar i,
body.ui .pk-price, body.ui .sv-price, body.ui .ins-num b, body.ui .lb-v, body.ui .lb-grid b, body.ui .dw b, body.ui .src-list b, body.ui .rd-page b { font-weight: 700 !important; }

/* ════════════════════════════════════════════════════════════════════
   MOBİL KATMAN — telefon ve dar ekran (≤ 767px)
   Amaç: hiçbir sayfada yatay taşma / kayma olmasın; üst çubuk, açılır
   pencereler, sekmeler, tablolar ve pencereler ekrana tam otursun.
   ════════════════════════════════════════════════════════════════════ */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body.ui { max-width: 100%; overflow-x: clip; }
.ui-topbar-title { min-width: 0; font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Geniş tabloyu saran kaydırma kabı (sayfa düzenindeki betik ekler) */
.tbl-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 767px) {
    .tbl-scroll > table { width: max-content !important; min-width: 100%; max-width: none; }
    .tbl-scroll th { white-space: nowrap; }
    .tbl-scroll td { max-width: 260px; }
    .tbl-scroll { scrollbar-width: thin; }
}

@media (max-width: 767px) {
    /* ── Çerçeve ── */
    .ui .ui-content { padding: 14px 14px 132px; overflow-wrap: break-word; }
    .ui-topbar { height: 60px !important; padding: 0 12px !important; gap: 8px !important; }
    .ui-topbar .ui-burger { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink-2); font-size: 16px; box-shadow: var(--shadow-sm); }
    .ui-topbar > div { gap: 8px; }
    .ui-topbar button, .ui-topbar a { -webkit-tap-highlight-color: transparent; }
    /* Bildirim ve profil pencereleri ekrana sabitlenir: çapası nerede olursa olsun taşmaz */
    .ui-topbar .ui-pop { position: fixed !important; top: 66px !important; left: 10px !important; right: 10px !important; width: auto !important; max-width: none !important; margin: 0 !important;
                         max-height: calc(100dvh - 82px); overflow-y: auto !important; border-radius: 18px !important; }
    .ui-topbar .ui-pop .max-h-80 { max-height: none; }
    .ui-sidebar { width: min(84vw, 300px) !important; }

    /* ── Yüzen düğmeler: sağ altta, küçük, etiketsiz ── */
    .ui-fab-label { display: none !important; }
    .ui-fab > button { width: 46px !important; height: 46px !important; box-shadow: 0 10px 22px -8px rgba(15, 23, 42, .5) !important; }
    .ui-fab > button i { font-size: 16px !important; }
    .ui-fab-ai { right: 12px !important; bottom: 16px !important; }

    /* ── Başlık, sekme, düğme sıraları ── */
    .ui .page-head, .ui .ui-head { margin-bottom: 16px; gap: 12px; }
    .ui-title, .ui .page-head h1 { font-size: 22px !important; line-height: 1.2; overflow-wrap: anywhere; }
    .ui-sub { font-size: 13px; }
    .ui-head > div:last-child { width: 100%; }
    .ui-head > div:last-child > .btn-primary, .ui-head > div:last-child > .btn-secondary { flex: 1 1 auto; justify-content: center; }
    .pills, .subnav, .seg { max-width: 100%; overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .pills::-webkit-scrollbar, .subnav::-webkit-scrollbar, .seg::-webkit-scrollbar { display: none; }
    .pills > *, .subnav > *, .seg > * { flex: 0 0 auto; white-space: nowrap; }
    .seg { display: flex; }

    /* ── Kart ve ızgaralar ── */
    .panel, .card { border-radius: 18px; }
    .panel-head { padding: 14px 14px 10px; flex-wrap: wrap; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .kpi { min-width: 0; padding: 14px !important; }
    .kpi-value { font-size: 22px !important; }
    .kpi-title { font-size: 12px; }
    .kpi-top { gap: 8px; }
    .kpi .kpi-icon { width: 34px !important; height: 34px !important; flex-basis: 34px !important; border-radius: 10px; }
    .kpi .kpi-icon i { font-size: 13px !important; }
    .kpi-chip { display: none; }
    .stat-grid, .stat-grid.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    /* Gösterge kutusu: ikon üstte, yazılar kesilmeden alt alta */
    .stat { flex-direction: column; align-items: flex-start !important; gap: 10px !important; padding: 14px !important; border-radius: 18px !important; min-width: 0; }
    .stat > * { min-width: 0; max-width: 100%; }
    .stat-ico { flex: none !important; width: 36px !important; height: 36px !important; border-radius: 11px !important; font-size: 14px !important; }
    .stat-k, .stat-d { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
    .stat-k { font-size: 10.5px !important; letter-spacing: .06em !important; line-height: 1.3; }
    .stat-v { font-size: 19px !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; overflow-wrap: anywhere; }
    .stat-d { font-size: 11.5px !important; line-height: 1.35; }
    /* Araç çubuğu: arama tam satır, seçimler yan yana */
    .toolbar { gap: 8px !important; }
    .toolbar > .toolbar-search, .toolbar > form, .toolbar > .ui-search { flex: 1 1 100% !important; width: 100% !important; max-width: none !important; }
    .toolbar select, .toolbar .form-input { flex: 1 1 calc(50% - 8px); min-width: 0; width: auto; }
    .amt { font-size: 16px; }
    .rc-grid { grid-template-columns: 1fr !important; }
    .hero { padding: 18px !important; border-radius: 22px !important; }
    .hero-figure { font-size: 30px !important; }
    .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    /* Duyarlı öneki olmayan eski çok sütunlu ızgaralar telefonda sıkışmasın */
    .ui-content .grid[class~="grid-cols-4"]:not([class*="sm:grid-cols"]):not([class*="md:grid-cols"]):not([class*="lg:grid-cols"]),
    .ui-content .grid[class~="grid-cols-5"]:not([class*="sm:grid-cols"]):not([class*="md:grid-cols"]):not([class*="lg:grid-cols"]),
    .ui-content .grid[class~="grid-cols-6"]:not([class*="sm:grid-cols"]):not([class*="md:grid-cols"]):not([class*="lg:grid-cols"]) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .ui-content .grid > *, .ui-content .flex > * { min-width: 0; }

    /* ── Medya ve uzun metin ── */
    .ui-content img, .ui-content video, .ui-content iframe, .ui-content canvas, .ui-content pre { max-width: 100%; }
    .ui-content pre, .ui-content code { white-space: pre-wrap; word-break: break-word; }
    .ui-content input, .ui-content select, .ui-content textarea { max-width: 100%; }
    /* iOS: 16px altı yazıda odaklanınca sayfa yakınlaşıp kayar */
    .ui input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .ui select, .ui textarea { font-size: 16px !important; }

    /* ── Pencereler ── */
    .ui-backdrop { padding: 10px !important; align-items: flex-end !important; }
    .ui-modal { max-width: 100% !important; max-height: calc(100dvh - 20px); border-radius: 22px; }
    .ui-modal-head { padding: 14px 16px; }
    .ui-modal-body { padding: 16px; }
    .ui-modal-foot { padding: 12px 16px; flex-wrap: wrap; }
    .ui-modal-foot > *, .ui-modal-foot > div > * { flex: 1 1 auto; justify-content: center; }
    .ui-drawer { width: 100% !important; max-width: 100% !important; }
    .ui-toast { left: 10px !important; right: 10px !important; max-width: none !important; }
    .menu-pop { max-width: calc(100vw - 24px); }
}
@media (max-width: 360px) {
    .ui .ui-content { padding-left: 12px; padding-right: 12px; }
    .kpi-value { font-size: 19px !important; }
    .kpi { padding: 12px !important; }
}
@media (max-width: 767px) {
    .fin-month { margin: 8px 12px 14px !important; }
    .fin-month-head { gap: 4px 12px !important; font-size: 12px !important; }
    .fin-month-head > * { min-width: 0; white-space: normal !important; }
    .fin-month-grid a { grid-template-columns: minmax(0, 1fr) 46px auto !important; gap: 8px !important; }
    .fin-ledger-head { flex-wrap: wrap; }
    .fin-age > div { grid-template-columns: 10px minmax(0, 1fr) auto !important; }
    .fin-age .p { display: none; }
}
