/* ==========================================================================
   Checker — tasarım sistemi
   ========================================================================== */
:root {
  --bg: #0a0c11;
  --surface: #10131a;
  --surface-2: #161a23;
  --surface-3: #1c2130;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .12);
  --text: #e8eaf0;
  --text-2: #b4bac8;
  --muted: #7c8599;

  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --primary-soft: rgba(99, 102, 241, .14);
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, .12);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, .12);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, .12);
  --info: #38bdf8;
  --info-soft: rgba(56, 189, 248, .12);

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
  --gradient: linear-gradient(135deg, var(--primary), var(--primary-2));
  --sidebar-w: 252px;
  --font: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
* { scrollbar-width: thin; scrollbar-color: #2a3040 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a3040; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: #3a4256; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.55;
  color: var(--text); background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 110% -10%, rgba(139, 92, 246, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(99, 102, 241, .07), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: #a5b4fc; text-decoration: none; }
a:hover { color: #c7d2fe; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--surface-3); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border); }
strong { font-weight: 600; color: var(--text); }
::selection { background: rgba(99, 102, 241, .35); }
[x-cloak] { display: none !important; }

.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ Yerleşim ------------------------------ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; width: var(--sidebar-w); flex-shrink: 0;
  display: flex; flex-direction: column; gap: 6px; padding: 18px 14px;
  background: rgba(16, 19, 26, .85); backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 18px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--gradient); color: #fff; box-shadow: 0 8px 22px -8px rgba(99, 102, 241, .8);
}
.brand-name { font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; }
.brand-sub { font-size: 11.5px; color: var(--muted); margin-top: -2px; }

.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 10px 6px; font-weight: 600; }
.nav-link {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px;
  color: var(--text-2); font-weight: 500; transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: var(--primary-soft); color: #fff; box-shadow: inset 2px 0 0 var(--primary); }
.nav-link.active .icon { color: #a5b4fc; }
.nav-link .count { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--warning-soft); color: #fcd34d; }

.sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.engine-card {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 13px;
}
.engine-card .meta { color: var(--muted); font-size: 12px; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.user-card:hover { background: var(--surface-2); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, #312e81, #4c1d95); color: #e0e7ff; font-weight: 700; font-size: 13px;
  border: 1px solid var(--border-strong);
}
.user-card .name { font-weight: 600; font-size: 13.5px; color: var(--text); line-height: 1.2; }
.user-card .handle { font-size: 12px; color: var(--muted); }
.user-card .grow { flex: 1; min-width: 0; }
.user-card form { margin: 0; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface);
  position: sticky; top: 0; z-index: 30;
}
.content { width: 100%; max-width: 1240px; margin: 0 auto; padding: 32px 36px 72px; }

.sidebar-backdrop { display: none; }

@media (max-width: 960px) {
  .topbar { display: flex; }
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%);
    transition: transform .2s ease; box-shadow: 20px 0 60px rgba(0, 0, 0, .5);
  }
  .sidebar.open { transform: none; }
  .sidebar-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 40; }
  .content { padding: 22px 16px 56px; }
}

/* ------------------------------ Başlık ------------------------------ */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-header h1 { font-size: 24px; line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-header p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.eyebrow a { color: var(--muted); }
.eyebrow a:hover { color: var(--text); }

/* ------------------------------ Kart ------------------------------ */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent), var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.card-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin: 0; }
.card-title .icon { color: var(--muted); }
.card-desc { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
.card-body { padding: 20px; }
.card-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: rgba(255, 255, 255, .01); border-radius: 0 0 var(--radius) var(--radius); }
.card-flush .card-body { padding: 0; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; }
.grid-settings { grid-template-columns: 220px minmax(0, 1fr); align-items: start; }
.grid .card { margin-bottom: 0; }
.grid > div > .card + .card { margin-top: 20px; }
.mb { margin-bottom: 20px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-aside { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .grid-2, .grid-3, .grid-aside, .grid-settings { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }

/* Özet kutucukları */
.tile { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; }
.tile-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border);
}
.tile-icon.primary { background: var(--primary-soft); color: #a5b4fc; border-color: rgba(99, 102, 241, .25); }
.tile-icon.success { background: var(--success-soft); color: #4ade80; border-color: rgba(34, 197, 94, .25); }
.tile-icon.danger { background: var(--danger-soft); color: #f87171; border-color: rgba(239, 68, 68, .25); }
.tile-icon.warning { background: var(--warning-soft); color: #fbbf24; border-color: rgba(245, 158, 11, .25); }
.tile-icon.info { background: var(--info-soft); color: #7dd3fc; border-color: rgba(56, 189, 248, .25); }
.tile-label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.tile-value { font-size: 18px; font-weight: 650; margin-top: 2px; display: flex; align-items: center; gap: 8px; }
.tile-meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tile-action { margin-top: 12px; }

/* İstatistikler */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat {
  position: relative; overflow: hidden; padding: 14px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent, var(--border-strong)); }
.stat-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat.primary { --accent: var(--primary); }
.stat.success { --accent: var(--success); }
.stat.danger { --accent: var(--danger); }
.stat.warning { --accent: var(--warning); }
.stat.info { --accent: var(--info); }

/* ------------------------------ Butonlar ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none;
  transition: filter .15s, background .15s, border-color .15s, transform .05s, box-shadow .15s;
  color: #fff; background: var(--gradient); box-shadow: 0 6px 18px -8px rgba(99, 102, 241, .9);
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; }
.btn:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 2px; }
.btn-secondary { background: var(--surface-3); border-color: var(--border-strong); color: var(--text); box-shadow: none; }
.btn-secondary:hover { background: #232838; color: var(--text); }
.btn-ghost { background: transparent; color: var(--text-2); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: #fca5a5; border-color: rgba(239, 68, 68, .3); box-shadow: none; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-success { background: linear-gradient(135deg, #16a34a, #22c55e); box-shadow: 0 6px 18px -8px rgba(34, 197, 94, .9); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-icon { width: 34px; padding: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------ Formlar ------------------------------ */
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.label { display: block; font-size: 13px; font-weight: 550; color: var(--text-2); margin-bottom: 7px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.error { font-size: 12.5px; color: #fca5a5; margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 13px; border-radius: 10px; font: inherit; font-size: 14px;
  color: var(--text); background: var(--bg); border: 1px solid var(--border-strong);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; padding: 11px 13px; resize: vertical; min-height: 110px; line-height: 1.5; }
.textarea.mono { font-family: var(--mono); font-size: 12.5px; }
.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='%237c8599' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' 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 12px center; padding-right: 36px; }
.input::placeholder, .textarea::placeholder { color: #565e70; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, .2); }
.input.is-invalid, .textarea.is-invalid { border-color: rgba(239, 68, 68, .6); }
.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 38px; }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px; }
.form-row:last-child { margin-bottom: 0; }
.form-row > .field { margin-bottom: 0; }
.input-sm { max-width: 140px; }

/* Anahtar (switch) */
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 12px 0; }
.switch + .switch { border-top: 1px solid var(--border); }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track {
  position: relative; width: 38px; height: 22px; border-radius: 999px; flex-shrink: 0; margin-top: 1px;
  background: var(--surface-3); border: 1px solid var(--border-strong); transition: background .2s, border-color .2s;
}
.switch .track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #cbd2de; transition: transform .2s, background .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.switch input:checked + .track { background: var(--primary); border-color: var(--primary); }
.switch input:checked + .track::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(99, 102, 241, .3); }
.switch .text { font-weight: 550; color: var(--text); }
.switch .desc { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 2px; }

/* Seçim kartları (radio) */
.choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-box {
  display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 14px 15px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border-strong); transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice-box .icon { color: var(--muted); margin-top: 1px; }
.choice-title { font-weight: 600; color: var(--text); }
.choice-desc { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.choice:hover .choice-box { border-color: rgba(99, 102, 241, .45); }
.choice input:checked + .choice-box { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
.choice input:checked + .choice-box .icon { color: #a5b4fc; }
.choice input:focus-visible + .choice-box { box-shadow: 0 0 0 3px rgba(99, 102, 241, .35); }

/* Dosya alanı */
.dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 150px; padding: 22px; text-align: center; cursor: pointer; border-radius: 12px;
  border: 1.5px dashed var(--border-strong); background: var(--bg); transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.dragging { border-color: var(--primary); background: rgba(99, 102, 241, .05); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: #a5b4fc; }
.dropzone .dz-title { font-weight: 600; }
.dropzone .dz-sub { color: var(--muted); font-size: 12.5px; }
.dropzone.has-file { border-style: solid; border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .04); }
.dropzone.has-file .dz-icon { background: var(--success-soft); color: #4ade80; }

/* ------------------------------ Rozet ------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent;
  background: var(--surface-3); color: var(--text-2);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.success { background: var(--success-soft); color: #4ade80; border-color: rgba(34, 197, 94, .2); }
.badge.danger { background: var(--danger-soft); color: #f87171; border-color: rgba(239, 68, 68, .2); }
.badge.warning { background: var(--warning-soft); color: #fbbf24; border-color: rgba(245, 158, 11, .2); }
.badge.info { background: var(--info-soft); color: #7dd3fc; border-color: rgba(56, 189, 248, .2); }
.badge.primary { background: var(--primary-soft); color: #a5b4fc; border-color: rgba(99, 102, 241, .25); }
.badge.gray { color: var(--muted); }
.badge.pulse .dot { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.status-dot.on { background: var(--success); box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
.status-dot.off { background: var(--danger); box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); }

/* ------------------------------ Uyarı ------------------------------ */
.alert {
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; margin-bottom: 18px;
  border: 1px solid; font-size: 13.5px;
}
.alert .icon { margin-top: 1px; }
.alert .grow { flex: 1; min-width: 0; }
.alert.info { background: var(--primary-soft); border-color: rgba(99, 102, 241, .3); color: #c7d2fe; }
.alert.success { background: var(--success-soft); border-color: rgba(34, 197, 94, .3); color: #bbf7d0; }
.alert.error { background: var(--danger-soft); border-color: rgba(239, 68, 68, .3); color: #fecaca; }
.alert.warn { background: var(--warning-soft); border-color: rgba(245, 158, 11, .3); color: #fde68a; }
.alert-close { background: none; border: 0; color: inherit; opacity: .6; cursor: pointer; padding: 0; }
.alert-close:hover { opacity: 1; }

/* ------------------------------ Tablo ------------------------------ */
.table-wrap { overflow: auto; }
.table-wrap.scroll { max-height: 62vh; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th {
  position: sticky; top: 0; z-index: 1; text-align: left; font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  padding: 11px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { font-variant-numeric: tabular-nums; }
.table .right { text-align: right; }
.table a.row-link { color: var(--text); font-weight: 600; }
.table a.row-link:hover { color: #c7d2fe; }
.cell-sub { display: block; font-size: 12px; color: var(--muted); }
.table .cell-main { min-width: 210px; }
.table .nowrap { white-space: nowrap; }

.mini-progress { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.mini-progress .bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.mini-progress .bar > span { display: block; height: 100%; background: var(--gradient); border-radius: inherit; }
.mini-progress .txt { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }

/* ------------------------------ İlerleme ------------------------------ */
.progress { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; border: 1px solid var(--border); }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--gradient); transition: width .5s ease; }
.progress.running > span {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, .16) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, .16) 75%, transparent 75%), var(--gradient);
  background-size: 22px 22px, 100% 100%; animation: stripes 1s linear infinite;
}
@keyframes stripes { to { background-position: 22px 0, 0 0; } }
.progress-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.progress-meta strong { font-size: 13px; }

/* ------------------------------ Sekmeler ------------------------------ */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 11px; background: var(--bg); border: 1px solid var(--border); }
.tab {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 8px; border: 0;
  background: transparent; color: var(--muted); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.tab .n { font-size: 11.5px; padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .06); }

/* ------------------------------ Boş durum ------------------------------ */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .empty-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.empty h3 { margin: 0 0 4px; color: var(--text); font-size: 15px; }
.empty p { margin: 0 0 16px; }

/* ------------------------------ Diğer ------------------------------ */
.muted { color: var(--muted); }
.text-sm { font-size: 12.5px; }
.flex { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.mt { margin-top: 16px; }
.divider { height: 1px; background: var(--border); margin: 20px 0; border: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.pairing-code { font-family: var(--mono); font-size: 15px; font-weight: 700; letter-spacing: .12em; padding: 4px 10px; border-radius: 8px; background: var(--warning-soft); color: #fcd34d; border: 1px solid rgba(245, 158, 11, .3); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; white-space: nowrap; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.danger-zone { border-color: rgba(239, 68, 68, .25); }

/* ------------------------------ Giriş ekranı ------------------------------ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-hero {
  position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(600px 400px at 20% 10%, rgba(139, 92, 246, .45), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(99, 102, 241, .40), transparent 60%),
    #0d0f1a;
  border-right: 1px solid var(--border);
}
.auth-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-hero h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.03em; margin: 0 0 14px; max-width: 460px; }
.auth-hero p { color: var(--text-2); max-width: 440px; margin: 0; font-size: 15px; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: center; color: var(--text-2); }
.feature-list .tile-icon { width: 34px; height: 34px; border-radius: 10px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 390px; }
.auth-card h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-card .lead { color: var(--muted); margin: 0 0 26px; }
.auth-foot { color: var(--muted); font-size: 12.5px; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
}
