/* ============================================================
   SMS Bank — tasarım sistemi
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e6e9f0;
  --border-strong: #d4d9e3;
  --text: #0f172a;
  --text-2: #475569;
  --muted: #7c8799;
  --primary: #5b5bf6;
  --primary-600: #4f46e5;
  --primary-700: #4338ca;
  --primary-soft: #eef0ff;
  --violet: #8b5cf6;
  --green: #10b981;
  --green-soft: #ecfdf5;
  --red: #ef4444;
  --red-soft: #fef2f2;
  --amber: #f59e0b;
  --amber-soft: #fffbeb;
  --blue: #3b82f6;
  --blue-soft: #eff6ff;
  --indigo-soft: #eef2ff;
  --gray-soft: #f1f5f9;
  --sidebar-bg: #0b1020;
  --sidebar-text: #aab3c5;
  --sidebar-active: rgba(99, 102, 241, .18);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 20px 50px -20px rgba(15, 23, 42, .25);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--primary-600); text-decoration: none; }
a:hover { color: var(--primary-700); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0 0 8px; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
td.mono, td.num, td.small { white-space: nowrap; }
pre { background: #0b1020; color: #cbd5e1; padding: 14px 16px; border-radius: var(--radius-sm); overflow: auto; margin: 8px 0; line-height: 1.55; }
code { background: var(--gray-soft); padding: 2px 6px; border-radius: 6px; }
pre code { background: none; padding: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.xs { font-size: 11.5px; }
.strong { font-weight: 600; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-amber { color: #b45309; }
.text-primary { color: var(--primary-600); }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .wrap { flex-wrap: wrap; }
.grow { flex: 1; }

/* ---------- Uygulama iskeleti ---------- */
.app { display: grid; grid-template-columns: 256px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--sidebar-bg); color: var(--sidebar-text); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background-image: radial-gradient(1200px 400px at -20% -10%, rgba(99, 102, 241, .25), transparent 60%), radial-gradient(800px 300px at 120% 110%, rgba(139, 92, 246, .18), transparent 60%);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; color: #fff; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--violet)); box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .8);
}
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand-sub { font-size: 11px; color: var(--sidebar-text); font-weight: 500; display: block; margin-top: -2px; }
.nav-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #5b6578; padding: 14px 12px 6px; font-weight: 600; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: var(--sidebar-text); font-weight: 500; font-size: 13.5px;
  transition: background .15s, color .15s;
}
.nav-link svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.nav-link:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav-link.active { background: var(--sidebar-active); color: #fff; }
.nav-link.active svg { opacity: 1; color: #a5b4fc; }
.nav-badge { margin-left: auto; background: rgba(255, 255, 255, .1); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 999px; font-weight: 600; }
.sidebar-footer { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid rgba(255, 255, 255, .07); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #312e81, #4c1d95); color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.user-chip .name { color: #fff; font-weight: 600; font-size: 13px; line-height: 1.2; }
.user-chip .email { color: var(--sidebar-text); font-size: 11.5px; }
.credit-pill { margin: 10px 10px 4px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(99, 102, 241, .35), rgba(139, 92, 246, .25)); border: 1px solid rgba(165, 180, 252, .25); }
.credit-pill .label { font-size: 11px; color: #c7d2fe; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.credit-pill .value { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -.02em; line-height: 1.2; }
.credit-pill .value small { font-size: 12px; font-weight: 600; color: #c7d2fe; margin-left: 4px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 28px; background: rgba(243, 245, 250, .85); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent;
}
.topbar .title { display: flex; flex-direction: column; }
.topbar .title h1 { font-size: 20px; }
.topbar .crumb { font-size: 12px; color: var(--muted); }
.topbar .actions { display: flex; gap: 8px; align-items: center; }
.content { padding: 8px 28px 40px; display: flex; flex-direction: column; gap: 20px; }
.menu-toggle { display: none; }

/* ---------- Kartlar ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { font-size: 15px; }
.card-head .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }
.card-foot { padding: 12px 20px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.cols-2-1 { grid-template-columns: 2fr 1fr; }
.cols-1-2 { grid-template-columns: 1fr 2fr; }

.stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.stat .label { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat .value small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.stat .delta { font-size: 12.5px; color: var(--text-2); }
.stat .icon { position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-600); }
.stat .icon svg { width: 20px; height: 20px; }
.stat.green .icon { background: var(--green-soft); color: var(--green); }
.stat.red .icon { background: var(--red-soft); color: var(--red); }
.stat.amber .icon { background: var(--amber-soft); color: var(--amber); }
.stat.blue .icon { background: var(--blue-soft); color: var(--blue); }
.stat.gradient { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; border: none; }
.stat.gradient .label, .stat.gradient .delta, .stat.gradient .value small { color: rgba(255, 255, 255, .8); }
.stat.gradient .icon { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer; font-family: inherit; line-height: 1.3;
  transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { background: var(--surface-2); border-color: #c3cad6; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary-600); border-color: var(--primary-600); color: #fff; box-shadow: 0 6px 16px -8px rgba(79, 70, 229, .7); }
.btn-primary:hover { background: var(--primary-700); border-color: var(--primary-700); color: #fff; }
.btn-danger { background: var(--red-soft); border-color: #fecaca; color: #b91c1c; }
.btn-danger:hover { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.btn-success { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: #059669; border-color: #059669; color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--gray-soft); border-color: transparent; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { padding: 12px 20px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { padding: 7px; }

/* ---------- Rozetler ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.badge-gray { background: var(--gray-soft); color: #475569; }
.badge-green { background: var(--green-soft); color: #047857; }
.badge-red { background: var(--red-soft); color: #b91c1c; }
.badge-amber { background: var(--amber-soft); color: #b45309; }
.badge-blue { background: var(--blue-soft); color: #1d4ed8; }
.badge-indigo { background: var(--indigo-soft); color: #4338ca; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.pulse .dot { animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #fafbfe; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table th.num { text-align: right; }
.table a.row-link { color: var(--text); font-weight: 600; }
.table a.row-link:hover { color: var(--primary-600); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.table tfoot td { font-weight: 700; background: var(--surface-2); border-top: 2px solid var(--border); }

.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; margin-bottom: 10px; opacity: .4; }
.empty h3 { color: var(--text-2); margin-bottom: 4px; }

/* ---------- Formlar ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .hint, .hint { font-size: 12px; color: var(--muted); }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=datetime-local], input[type=date], input[type=url], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); }
textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; }
.input-group { display: flex; }
.input-group input { border-radius: 10px 0 0 10px; }
.input-group .addon { padding: 9px 12px; border: 1px solid var(--border-strong); border-left: none; border-radius: 0 10px 10px 0; background: var(--surface-2); color: var(--muted); font-size: 13px; white-space: nowrap; display: flex; align-items: center; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--primary-600); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + .track { background: var(--primary-600); }
.switch input:checked + .track::after { transform: translateX(16px); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.filters .field { min-width: 160px; }
.filters input, .filters select { padding: 7px 11px; font-size: 13.5px; }

/* ---------- Uyarılar ---------- */
.alert { padding: 12px 16px; border-radius: 12px; border: 1px solid; font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; }
.alert > svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.impersonate-bar svg, .group-item > svg { width: 16px; height: 16px; flex: none; vertical-align: -3px; }
.alert-success { background: var(--green-soft); border-color: #a7f3d0; color: #065f46; }
.alert-error { background: var(--red-soft); border-color: #fecaca; color: #991b1b; }
.alert-warning { background: var(--amber-soft); border-color: #fde68a; color: #92400e; }
.alert-info { background: var(--blue-soft); border-color: #bfdbfe; color: #1e40af; }
.flashes { position: fixed; top: 16px; right: 16px; z-index: 100; display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.flashes .alert { box-shadow: var(--shadow-lg); animation: slideIn .25s ease-out; background-color: #fff; }
.flashes .alert-success { background: #fff; } .flashes .alert-error { background: #fff; }
.flashes .alert .close { margin-left: auto; background: none; border: none; cursor: pointer; color: inherit; opacity: .6; font-size: 16px; line-height: 1; padding: 0 2px; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- İlerleme ---------- */
.progress { height: 10px; background: var(--gray-soft); border-radius: 999px; overflow: hidden; display: flex; }
.progress .bar { height: 100%; transition: width .4s ease; }
.progress .bar.delivered { background: var(--green); }
.progress .bar.sent { background: var(--primary); }
.progress .bar.undelivered { background: var(--amber); }
.progress .bar.failed { background: var(--red); }
.progress .bar.cancelled { background: #94a3b8; }
.progress.lg { height: 14px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.legend .delivered::before { background: var(--green); }
.legend .sent::before { background: var(--primary); }
.legend .undelivered::before { background: var(--amber); }
.legend .failed::before { background: var(--red); }
.legend .pending::before { background: #cbd5e1; }
.legend .cancelled::before { background: #94a3b8; }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; gap: 4px; align-items: center; justify-content: flex-end; padding: 12px 16px; font-size: 13px; }
.pagination a, .pagination span { padding: 5px 10px; border-radius: 8px; color: var(--text-2); border: 1px solid transparent; }
.pagination a:hover { background: var(--gray-soft); }
.pagination .current { background: var(--primary-600); color: #fff; font-weight: 600; }
.pagination .info { margin-right: auto; color: var(--muted); }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 16px; overflow-x: auto; }
.tabs a { padding: 11px 12px; font-weight: 600; font-size: 13.5px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--primary-600); border-color: var(--primary-600); }
.tabs a .n { background: var(--gray-soft); padding: 0 6px; border-radius: 6px; font-size: 11px; margin-left: 4px; color: var(--text-2); }

/* ---------- Dropzone / gönderim ---------- */
.dropzone { border: 2px dashed var(--border-strong); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-700); }
.dropzone svg { width: 28px; height: 28px; margin-bottom: 6px; }
.dropzone input { display: none; }
.file-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.file-chip .remove { margin-left: auto; }
.counter { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.counter b { color: var(--text); }
.summary-box { border-radius: 12px; background: linear-gradient(135deg, #0f172a, #1e1b4b); color: #fff; padding: 18px 20px; }
.summary-box .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.summary-box .row:last-child { border-bottom: none; }
.summary-box .row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.summary-box .total { font-size: 22px; font-weight: 800; }
.summary-box .ok { color: #6ee7b7; } .summary-box .bad { color: #fca5a5; }
.sms-preview { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.bubble { background: #fff; border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; padding: 10px 14px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; box-shadow: var(--shadow); max-width: 100%; }
.bubble-sender { font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.group-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.group-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.group-item:hover { background: var(--surface-2); }
.group-item .n { margin-left: auto; color: var(--muted); font-size: 12px; }

/* ---------- Diğer ---------- */
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.timeline li:last-child { border-bottom: none; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.health { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px; }
.health .dot { width: 8px; height: 8px; border-radius: 50%; }
.health.ok .dot { background: var(--green); box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.health.degraded .dot { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.health.down .dot { background: var(--red); box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
.log-box { background: #0b1020; color: #a5b4fc; font-family: var(--mono); font-size: 12px; padding: 14px; border-radius: 12px; max-height: 360px; overflow: auto; white-space: pre-wrap; line-height: 1.55; }
.log-box .warn { color: #fcd34d; } .log-box .error { color: #fca5a5; }
.chart-box { position: relative; height: 260px; }
.copy { cursor: pointer; }
details.collapse summary { cursor: pointer; font-weight: 600; color: var(--text-2); list-style: none; display: flex; align-items: center; gap: 6px; }
details.collapse summary::-webkit-details-marker { display: none; }
details.collapse summary::before { content: '▸'; font-size: 11px; transition: transform .15s; }
details.collapse[open] summary::before { transform: rotate(90deg); }
.tooltip { position: relative; }
.impersonate-bar { background: #fde68a; color: #78350f; padding: 8px 28px; font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Giriş ---------- */
.auth-body { background: var(--bg); min-height: 100vh; margin: 0; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side {
  background: #0b1020; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden;
  background-image: radial-gradient(900px 500px at 10% 0%, rgba(99, 102, 241, .45), transparent 60%), radial-gradient(700px 500px at 100% 100%, rgba(139, 92, 246, .35), transparent 60%);
}
.auth-side h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; max-width: 480px; margin: 0 0 14px; }
.auth-side p { color: #c7d2fe; font-size: 15px; max-width: 460px; }
.auth-side .features { display: grid; gap: 12px; margin-top: 28px; }
.auth-side .feature { display: flex; gap: 12px; align-items: flex-start; color: #e0e7ff; font-size: 14px; }
.auth-side .feature svg { width: 20px; height: 20px; color: #a5b4fc; flex: none; margin-top: 1px; }
.auth-side .fine { color: #6b7280; font-size: 12px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 24px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .btn { margin-top: 8px; }
.auth-card .switch-link { margin-top: 22px; text-align: center; font-size: 13px; color: var(--muted); }

/* ---------- Kurulum ---------- */
.install-wrap { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 40px 20px; }
.install-card { width: 100%; max-width: 760px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 32px 36px; }
.install-head { margin-bottom: 20px; }
.install-head .brand { color: var(--text); padding: 0 0 12px; }
.install-head h1 { font-size: 24px; }
.install-section { padding: 18px 0; border-top: 1px solid var(--border); }
.install-section h3 { margin-bottom: 12px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.install-section .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.install-section label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.install-form .btn { margin-top: 10px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 13.5px; }
.check-list li { display: flex; align-items: center; gap: 8px; }
.check-list .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.check-list .fail .dot { background: var(--red); }
.check-list .fail { color: var(--red); font-weight: 600; }
.steps { padding-left: 20px; font-size: 13.5px; line-height: 1.7; }
.steps li { margin-bottom: 8px; }

/* ---------- Hata ---------- */
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px; }
.error-page .code { font-size: 72px; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-2-1, .cols-1-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .menu-toggle { display: inline-flex; }
  .topbar, .content, .impersonate-bar { padding-left: 16px; padding-right: 16px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .grid-2, .grid-3, .form-row, .install-section .grid-2, .check-list { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: span 1; }
  .flashes { left: 16px; right: 16px; max-width: none; }
}
@media (max-width: 600px) {
  .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .stat .value { font-size: 22px; }
}
.overlay { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 40; }
.overlay.open { display: block; }
