/* ==================================================================
   duenor — Aurora Lab Design System  (MERKEZ / SÜPER ADMİN paneli)
   "Linear + Vercel + OpenAI" premium minimalist. Koyu mod varsayılan.
   Mor + cyan aksan, magenta alt aksan, subtle glassmorphism, Geist font.
   Bu dosya merkeze ÖZELdir; müşteri panelini etkilemez.
   ================================================================== */

/* ----------------------------- TOKENLAR ----------------------------- */
:root {
    /* Mor / aksan */
    --primary:        #8B5CF6;
    --primary-light:  #A78BFA;
    --primary-dark:   #7C3AED;
    --secondary:      #83155D;
    --cyan:           #06B6D4;

    /* Koyu mod yüzeyleri (Aurora spec) */
    --bg:             #0A0A0F;
    --surface:        #1A1646;
    --surface-elev:   #262262;
    --surface-muted:  rgba(255,255,255,0.02);

    --border:         rgba(255,255,255,0.06);
    --border-strong:  rgba(139,92,246,0.20);

    --text:           rgba(255,255,255,0.95);
    --text-2:         rgba(255,255,255,0.60);
    --text-muted:     rgba(255,255,255,0.40);
    --text-subtle:    rgba(255,255,255,0.30);

    --success:        #10B981;
    --warning:        #F59E0B;
    --error:          #EF4444;
    --info:           #06B6D4;

    /* Yarıçaplar (Aurora spec) */
    --r-sm:   6px;
    --r-md:   8px;
    --r-lg:   12px;
    --r-xl:   16px;
    --r-2xl:  24px;
    --radius:    var(--r-lg);
    --radius-sm: var(--r-md);

    --sidebar-w:      256px;

    --shadow:         0 8px 30px rgba(0,0,0,0.35);
    --shadow-lg:      0 24px 60px rgba(0,0,0,0.5);
    --ring:           0 0 0 3px rgba(139,92,246,0.20);

    --font:  "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ----------------------------- AÇIK MOD ----------------------------- */
[data-theme="light"] {
    --bg:            #FAFAFA;
    --surface:       #FFFFFF;
    --surface-elev:  #FFFFFF;
    --surface-muted: rgba(38,34,98,0.02);
    --border:        rgba(38,34,98,0.08);
    --border-strong: rgba(139,92,246,0.28);
    --secondary:     #262262;
    --text:          #1A1646;
    --text-2:        rgba(38,34,98,0.62);
    --text-muted:    rgba(38,34,98,0.45);
    --text-subtle:   rgba(38,34,98,0.32);
    --shadow:        0 8px 30px rgba(38,34,98,0.08);
    --shadow-lg:     0 24px 60px rgba(38,34,98,0.14);
}

* { box-sizing: border-box; }

html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }

/* Ortak mono etiket yardımcıları */
.mono { font-family: var(--mono); }
.label-mono { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }

/* ------------------------- AURORA ARKA PLAN ------------------------- */
.aurora-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora-bg .blob { position: absolute; border-radius: 50%; filter: blur(130px); opacity: .9; will-change: transform; }
.aurora-bg .blob-1 { width: 620px; height: 620px; top: -180px; left: -160px;
    background: radial-gradient(circle, rgba(139,92,246,0.40), transparent 65%); animation: floatA 24s ease-in-out infinite; }
.aurora-bg .blob-2 { width: 680px; height: 680px; bottom: -220px; right: -180px;
    background: radial-gradient(circle, rgba(131,21,93,0.30), transparent 65%); animation: floatB 27s ease-in-out infinite; }
.aurora-bg .blob-3 { width: 520px; height: 520px; top: 35%; left: 45%;
    background: radial-gradient(circle, rgba(124,58,237,0.15), transparent 60%); animation: pulse 20s ease-in-out infinite; }
.aurora-bg::after { content: ""; position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
    mix-blend-mode: overlay; }
[data-theme="light"] .aurora-bg .blob { opacity: .5; }

@keyframes floatA { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(70px,50px) scale(1.08); } }
@keyframes floatB { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px,-45px) scale(1.1); } }
@keyframes pulse  { 0%,100% { transform: translate(-50%,-50%) scale(1); opacity: .45; } 50% { transform: translate(-50%,-50%) scale(1.18); opacity: .75; } }

/* Mouse-follow gradient (auth) */
.mouse-grad { position: fixed; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: .5;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(139,92,246,0.06), transparent 60%); transition: background .12s linear; }

/* ------------------------- MİKRO ANİMASYON ------------------------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn  { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

.anim-in { animation: fadeUp .4s cubic-bezier(.16,.84,.44,1) both; }
/* Stagger: çocukları sırayla aç */
.stagger > * { animation: fadeUp .45s cubic-bezier(.16,.84,.44,1) both; }
.stagger > *:nth-child(1){animation-delay:.02s}.stagger > *:nth-child(2){animation-delay:.07s}
.stagger > *:nth-child(3){animation-delay:.12s}.stagger > *:nth-child(4){animation-delay:.17s}
.stagger > *:nth-child(5){animation-delay:.22s}.stagger > *:nth-child(6){animation-delay:.27s}
.stagger > *:nth-child(7){animation-delay:.32s}.stagger > *:nth-child(8){animation-delay:.37s}
.stagger > *:nth-child(n+9){animation-delay:.4s}

@media (prefers-reduced-motion: reduce) {
    .aurora-bg .blob { animation: none; }
    .anim-in, .stagger > * { animation: none; }
    .mouse-grad { display: none; }
}

/* ----------------------------- DÜZEN ----------------------------- */
.app { position: relative; z-index: 1; display: flex; min-height: 100vh; }

/* ---- SIDEBAR ---- */
.sidebar {
    width: var(--sidebar-w); flex: none; position: sticky; top: 0; align-self: flex-start;
    height: 100vh; display: flex; flex-direction: column;
    background: rgba(10,10,15,0.6);
    backdrop-filter: blur(18px) saturate(140%);
    border-right: 1px solid var(--border);
    padding: 18px 12px;
}
[data-theme="light"] .sidebar { background: rgba(255,255,255,0.75); }

.brand { display: flex; align-items: center; gap: 11px; padding: 8px 10px 18px; }
.brand-mark {
    width: 34px; height: 34px; border-radius: var(--r-md); flex: none;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 17px;
    box-shadow: 0 6px 18px rgba(139,92,246,0.45);
}
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); line-height: 1.1; }
.brand-name b { color: var(--primary-light); font-weight: 700; }
.brand-img { max-height: 36px; width: auto; max-width: 180px; display: block; filter: brightness(0) invert(1); }
html[data-theme="light"] .brand-img { filter: none; }
.ab-logo .brand-img-lg { max-height: 60px; max-width: 260px; }
.brand-sub { font-size: 10px; color: var(--text-subtle); font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; }

.nav-section { margin: 16px 0 6px; padding: 0 12px; font-family: var(--mono);
    font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-subtle); }

.nav-link {
    display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 12px; margin: 2px 0;
    border-radius: var(--r-md); color: var(--text-2); font-weight: 500; font-size: 14px;
    position: relative; transition: color .18s, background .18s; border: 1px solid transparent;
}
.nav-link svg { width: 16px; height: 16px; flex: none; opacity: .85; }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
[data-theme="light"] .nav-link:hover { background: rgba(38,34,98,0.04); }
.nav-link.active { color: #fff; background: rgba(139,92,246,0.10); border-color: rgba(139,92,246,0.20); }
[data-theme="light"] .nav-link.active { color: var(--primary-dark); }
.nav-link.active svg { opacity: 1; color: var(--primary-light); }
/* Aktif sağ-dot göstergesi */
.nav-link .nav-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px var(--primary); opacity: 0; transition: opacity .18s; }
.nav-link.active .nav-dot { opacity: 1; }

.sidebar-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-md); transition: background .18s; }
.user-chip:hover { background: rgba(255,255,255,0.03); }
.user-ava { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary)); color: #fff; font-weight: 600; font-size: 13px; }
.user-chip .u-name { font-size: 13.5px; font-weight: 600; }
.user-chip .u-role { font-size: 11px; color: var(--text-muted); font-family: var(--mono); }

/* ---- ANA ALAN ---- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    position: sticky; top: 0; z-index: 30; height: 56px;
    display: flex; align-items: center; gap: 14px;
    padding: 0 24px; border-bottom: 1px solid var(--border);
    background: rgba(10,10,15,0.80); backdrop-filter: blur(16px);
}
[data-theme="light"] .topbar { background: rgba(250,250,250,0.8); }
.topbar .tb-titlewrap { min-width: 0; }
.topbar .tb-title { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.topbar .tb-crumb { font-size: 11px; color: var(--text-muted); font-family: var(--mono); }
.topbar .tb-crumb a:hover { color: var(--text-2); }
.tb-spacer { flex: 1; }
.tb-right { display: flex; align-items: center; gap: 8px; }

/* Cmd+K arama tetikleyici */
.searchbox { display: inline-flex; align-items: center; gap: 8px; width: 256px; height: 36px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: var(--r-md); background: rgba(255,255,255,0.03);
    color: var(--text-muted); font-size: 13px; cursor: pointer; transition: border-color .18s, color .18s; }
.searchbox:hover { border-color: var(--border-strong); color: var(--text-2); }
.searchbox svg { width: 15px; height: 15px; flex: none; }
.searchbox .sb-text { flex: 1; text-align: left; }
.searchbox kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 5px;
    background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text-muted); }
[data-theme="light"] .searchbox kbd { background: rgba(38,34,98,0.06); }

.icon-btn { position: relative; width: 36px; height: 36px; border-radius: var(--r-md); border: 1px solid var(--border);
    background: rgba(255,255,255,0.02); color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: .18s; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: rgba(255,255,255,0.04); }
.icon-btn svg { width: 17px; height: 17px; }
/* Bildirim rozeti */
.icon-btn .notif-badge { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px; background: linear-gradient(135deg, var(--error), #f0506a); color: #fff;
    font-size: 10px; font-family: var(--mono); font-weight: 600; display: grid; place-items: center; border: 2px solid var(--bg); }

/* Üst bar avatar (gradient ring) */
.avatar-ring { width: 34px; height: 34px; border-radius: 50%; padding: 2px; flex: none;
    background: linear-gradient(135deg, var(--primary), var(--cyan)); cursor: pointer; }
.avatar-ring .av-inner { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center;
    background: var(--surface); color: var(--text); font-weight: 600; font-size: 13px; }

.content { padding: 28px 28px 48px; max-width: 1280px; width: 100%; }

/* Sayfa başlığı bloğu */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .ph-left { min-width: 0; }
.page-title { margin: 0 0 4px; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.page-sub { color: var(--text-muted); font-size: 13.5px; margin: 0; }
.page-head .ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ----------------------------- KARTLAR ----------------------------- */
.card {
    background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--r-xl);
    padding: 22px; margin-bottom: 20px; box-shadow: none;
    transition: border-color .2s, background .2s;
}
[data-theme="light"] .card { background: var(--surface); box-shadow: var(--shadow); }
.card:hover { border-color: var(--border-strong); }
.card h3 { margin-top: 0; font-weight: 600; letter-spacing: -0.02em; font-size: 18px; }
.card-flush { padding: 0; overflow: hidden; }

/* ----------------------------- FORMLAR ----------------------------- */
label { display: block; margin: 14px 0 7px; font-weight: 500; font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted); font-family: var(--mono); }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=url], input[type=date], textarea, select {
    width: 100%; padding: 0 14px; height: 46px; font-family: inherit; font-size: 14px;
    background: rgba(255,255,255,0.03); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--r-md); transition: border-color .18s, box-shadow .18s;
}
textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
[data-theme="light"] input, [data-theme="light"] textarea, [data-theme="light"] select { background: #fff; }
input:focus, textarea:focus, select:focus { outline: none; border-color: rgba(139,92,246,0.40); box-shadow: var(--ring); }
::placeholder { color: var(--text-subtle); }
.field-hint { display: block; margin-top: 6px; color: var(--text-muted); font-size: 12px; text-transform: none; letter-spacing: 0; font-family: var(--font); }
code { font-family: var(--mono); font-size: 12.5px; background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 5px; }
[data-theme="light"] code { background: rgba(38,34,98,0.06); }

/* ----------------------------- BUTONLAR ----------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 0 18px; height: 44px; border: 1px solid transparent;
    border-radius: var(--r-md); font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
    color: #fff; background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 6px 18px rgba(139,92,246,0.30); transition: transform .15s, box-shadow .2s, filter .2s, color .2s, border-color .2s, background .2s;
    text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 26px rgba(139,92,246,0.45); }
.btn svg { width: 16px; height: 16px; }
.btn-secondary { background: rgba(255,255,255,0.02); color: var(--text); border-color: var(--border); box-shadow: none; }
.btn-secondary:hover { border-color: var(--border-strong); color: var(--text); background: rgba(255,255,255,0.05); filter: none; }
[data-theme="light"] .btn-secondary:hover { background: rgba(38,34,98,0.04); }
.btn-ghost { background: transparent; color: var(--text-2); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: var(--text); filter: none; }
.btn-danger { background: rgba(239,68,68,0.10); color: #fca5a5; border-color: rgba(239,68,68,0.20); box-shadow: none; }
.btn-danger:hover { background: rgba(239,68,68,0.18); color: #fff; filter: none; box-shadow: 0 8px 20px rgba(239,68,68,0.25); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: var(--r-sm); box-shadow: none; }

/* ----------------------------- TABLO ----------------------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { background: rgba(255,255,255,0.03); }
[data-theme="light"] thead th { background: rgba(38,34,98,0.03); }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
th { color: var(--text-muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 500; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255,255,255,0.04); }
[data-theme="light"] tbody tr:hover { background: rgba(38,34,98,0.03); }
tbody tr:last-child td { border-bottom: none; }

/* ----------------------------- BİLDİRİMLER ----------------------------- */
.alert { padding: 12px 15px; border-radius: var(--r-md); margin-bottom: 16px; font-size: 13.5px; border: 1px solid; display: flex; gap: 9px; }
.alert-success { background: rgba(16,185,129,0.10); border-color: rgba(16,185,129,0.20); color: #6ee7b7; }
.alert-error   { background: rgba(239,68,68,0.10);  border-color: rgba(239,68,68,0.20);  color: #fca5a5; }
.alert-info    { background: rgba(6,182,212,0.10);  border-color: rgba(6,182,212,0.20);  color: #67e8f9; }
.alert-warning { background: rgba(245,158,11,0.10); border-color: rgba(245,158,11,0.20); color: #fcd34d; }
[data-theme="light"] .alert-success { color: #047857; }
[data-theme="light"] .alert-error { color: #b91c1c; }
[data-theme="light"] .alert-info { color: #0e7490; }
[data-theme="light"] .alert-warning { color: #b45309; }

/* ----------------------------- ROZETLER ----------------------------- */
.muted { color: var(--text-muted); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; font-family: var(--mono); border: 1px solid transparent; }
.badge-on   { background: rgba(16,185,129,0.10); color: #6ee7b7; border-color: rgba(16,185,129,0.20); }
.badge-off  { background: rgba(255,255,255,0.04); color: var(--text-muted); border-color: var(--border); }
.badge-new  { background: rgba(239,68,68,0.10); color: #fca5a5; border-color: rgba(239,68,68,0.20); }
.badge-warn { background: rgba(245,158,11,0.10); color: #fcd34d; border-color: rgba(245,158,11,0.20); }
.badge-info { background: rgba(6,182,212,0.10); color: #67e8f9; border-color: rgba(6,182,212,0.20); }

/* ===================== KPI KARTLARI (dashboard) ===================== */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
.kpi { position: relative; overflow: hidden; background: rgba(255,255,255,0.02); border: 1px solid var(--border);
    border-radius: var(--r-xl); padding: 18px 20px; transition: background .2s, border-color .2s; }
[data-theme="light"] .kpi { background: var(--surface); box-shadow: var(--shadow); }
.kpi::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .25s; pointer-events: none;
    background: radial-gradient(420px circle at 100% 0%, rgba(139,92,246,0.10), transparent 60%); }
.kpi:hover { border-color: var(--border-strong); background: rgba(255,255,255,0.04); }
.kpi:hover::after { opacity: 1; }
.kpi.kpi-warn:hover::after { background: radial-gradient(420px circle at 100% 0%, rgba(245,158,11,0.12), transparent 60%); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kpi-title { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.kpi-ico { width: 30px; height: 30px; border-radius: var(--r-md); display: grid; place-items: center;
    background: rgba(139,92,246,0.12); color: var(--primary-light); }
.kpi-ico svg { width: 16px; height: 16px; }
.kpi-ico.warn { background: rgba(245,158,11,0.12); color: #fcd34d; }
.kpi-ico.cyan { background: rgba(6,182,212,0.12); color: #67e8f9; }
.kpi-ico.green { background: rgba(16,185,129,0.12); color: #6ee7b7; }
.kpi-value { font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); }
.kpi-value .of { color: var(--text-subtle); font-size: 20px; }
.kpi-change { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; font-family: var(--mono); }
.kpi-change svg { width: 13px; height: 13px; }
.kpi-change.up { color: #6ee7b7; }
.kpi-change.down { color: #fca5a5; }
.kpi-change.flat { color: var(--text-muted); }

/* ===================== MÜŞTERİ KARTLARI ===================== */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
.client-card { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--r-xl);
    padding: 20px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s, background .2s; }
[data-theme="light"] .client-card { background: var(--surface); box-shadow: var(--shadow); }
.client-card:hover { border-color: var(--border-strong); transform: translateY(-2px); background: rgba(255,255,255,0.035); }
.client-card.is-down { border-color: rgba(239,68,68,0.25); }
.client-card.is-passive { opacity: .55; }

.cc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cc-name { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.cc-url { font-size: 11.5px; color: var(--text-muted); font-family: var(--mono); word-break: break-all; }

.status-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-family: var(--mono); white-space: nowrap; }
.status-dot .d { width: 8px; height: 8px; border-radius: 50%; flex: none; position: relative; }
.status-dot.up   .d { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-dot.up   .d::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--success); opacity: .5; animation: ping 2s ease-out infinite; }
.status-dot.down .d { background: var(--error);   box-shadow: 0 0 8px var(--error); }
.status-dot.passive .d { background: var(--text-muted); }
.status-dot.up { color: #6ee7b7; } .status-dot.down { color: #fca5a5; } .status-dot.passive { color: var(--text-muted); }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce){ .status-dot.up .d::after { animation: none; } }

.cc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cc-metric { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; }
[data-theme="light"] .cc-metric { background: rgba(38,34,98,0.02); }
.cc-metric .m-num { font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--text); }
.cc-metric .m-lbl { font-size: 11px; color: var(--text-muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.cc-metric.alert-num .m-num { color: #fca5a5; }

.cc-meta { font-size: 12.5px; color: var(--text-2); display: flex; flex-direction: column; gap: 5px; }
.cc-meta .row { display: flex; justify-content: space-between; gap: 8px; }
.cc-meta .k { color: var(--text-muted); }

.lic-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-family: var(--mono); }
.lic-ok      { background: rgba(16,185,129,0.12); color: #6ee7b7; }
.lic-warn    { background: rgba(245,158,11,0.14); color: #fcd34d; }
.lic-expired { background: rgba(239,68,68,0.14);  color: #fca5a5; }
.lic-none    { background: rgba(255,255,255,0.04); color: var(--text-muted); }

.cc-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.cc-actions .btn { flex: 1; justify-content: center; }
.cc-actions .cc-edit { flex-basis: 100%; }
.key-mono { font-family: var(--mono); font-size: 12px; color: var(--text-2); }

/* ===================== COMMAND PALETTE (Cmd+K) ===================== */
.cmdk-overlay { position: fixed; inset: 0; z-index: 100; display: none; background: rgba(0,0,0,0.40);
    backdrop-filter: blur(4px); align-items: flex-start; justify-content: center; padding: 14vh 16px 16px; }
.cmdk-overlay.open { display: flex; }
.cmdk { width: 100%; max-width: 640px; background: rgba(15,13,40,0.96); backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.10); border-radius: var(--r-2xl); box-shadow: var(--shadow-lg); overflow: hidden;
    animation: popIn .16s ease-out both; }
[data-theme="light"] .cmdk { background: rgba(255,255,255,0.98); border-color: rgba(38,34,98,0.12); }
.cmdk-search { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 56px; border-bottom: 1px solid var(--border); }
.cmdk-search svg { width: 18px; height: 18px; color: var(--text-muted); flex: none; }
.cmdk-search input { border: none; background: transparent; height: 100%; padding: 0; font-size: 15px; box-shadow: none !important; }
.cmdk-search input:focus { box-shadow: none; }
.cmdk-list { max-height: 52vh; overflow-y: auto; padding: 8px; }
.cmdk-group-label { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em;
    color: var(--text-subtle); padding: 12px 10px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--r-md);
    color: var(--text-2); cursor: pointer; font-size: 14px; }
.cmdk-item .ci-ico { width: 30px; height: 30px; flex: none; border-radius: var(--r-md); display: grid; place-items: center;
    background: rgba(255,255,255,0.04); color: var(--text-muted); }
.cmdk-item .ci-ico svg { width: 16px; height: 16px; }
.cmdk-item .ci-main { flex: 1; min-width: 0; }
.cmdk-item .ci-title { color: var(--text); }
.cmdk-item .ci-sub { font-size: 11.5px; color: var(--text-muted); font-family: var(--mono); }
.cmdk-item .ci-hint { font-size: 11px; color: var(--text-subtle); font-family: var(--mono); }
.cmdk-item.active, .cmdk-item:hover { background: rgba(139,92,246,0.12); color: var(--text); }
.cmdk-item.active .ci-ico { background: rgba(139,92,246,0.20); color: var(--primary-light); }
.cmdk-empty { padding: 28px; text-align: center; color: var(--text-muted); font-size: 13.5px; }
.cmdk-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--border); }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-subtle); font-family: var(--mono); }
.cmdk-foot kbd { font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; border-radius: 5px;
    background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: var(--text-muted); }

/* ===================== AUTH (2 kolon) ===================== */
.auth-split { position: relative; z-index: 3; min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr; }
.auth-brand { display: flex; flex-direction: column; justify-content: center; padding: 64px; gap: 22px; }
.auth-brand .ab-logo { display: flex; align-items: center; gap: 14px; }
.auth-brand .ab-logo .brand-mark { width: 52px; height: 52px; border-radius: var(--r-lg); font-size: 26px; }
.auth-brand h1 { font-size: 64px; line-height: .95; font-weight: 700; letter-spacing: -0.04em; margin: 0;
    background: linear-gradient(135deg, #fff 30%, var(--primary-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .auth-brand h1 { background: linear-gradient(135deg, var(--text), var(--primary)); -webkit-background-clip: text; background-clip: text; }
.auth-brand .ab-tag { font-size: 17px; color: var(--text-2); max-width: 440px; }
.auth-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.auth-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); font-family: var(--mono); }
.auth-chip .d { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px 32px; }
.auth-card { width: 100%; max-width: 420px; background: rgba(255,255,255,0.02); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08); border-radius: var(--r-2xl); padding: 36px 32px; box-shadow: var(--shadow-lg); }
[data-theme="light"] .auth-card { background: rgba(255,255,255,0.9); border-color: rgba(38,34,98,0.10); }
.auth-card h2 { margin: 0 0 4px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.auth-card .ac-sub { color: var(--text-muted); font-size: 13.5px; margin: 0 0 22px; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 22px; height: 48px; font-size: 14.5px; }

.status-bar { position: fixed; bottom: 16px; left: 0; right: 0; z-index: 4; display: flex; justify-content: center; gap: 18px;
    font-size: 11px; color: var(--text-muted); font-family: var(--mono); pointer-events: none; flex-wrap: wrap; padding: 0 16px; }
.status-bar .s-online { display: inline-flex; align-items: center; gap: 6px; color: #6ee7b7; }
.status-bar .s-online .d { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }

/* ----------------------------- MOBİL ----------------------------- */
.sb-toggle { display: none; }
.sb-backdrop { display: none; }
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 920px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .searchbox { width: 44px; padding: 0; justify-content: center; }
    .searchbox .sb-text, .searchbox kbd { display: none; }
}
@media (max-width: 860px) {
    .sidebar { position: fixed; left: 0; top: 0; z-index: 60; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
    #sb-check:checked ~ .app .sidebar { transform: translateX(0); }
    #sb-check:checked ~ .app .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.5); }
    .sb-toggle { display: grid; }
    .grid2 { grid-template-columns: 1fr; }
    .content { padding: 20px 16px 40px; }
    .page-title { font-size: 24px; }
}
@media (max-width: 560px) { .kpi-grid { grid-template-columns: 1fr; } }
