/* ==========================================================================
   Inferno Link — tasarım sistemi
   ========================================================================== */

:root {
  --bg: #0a0b10;
  --bg-grad: radial-gradient(1200px 600px at 85% -10%, rgba(255, 90, 31, .10), transparent 60%),
             radial-gradient(900px 500px at -10% 110%, rgba(255, 45, 85, .07), transparent 60%);
  --surface: #12141b;
  --surface-2: #181b24;
  --surface-3: #1f2330;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .13);
  --text: #eceef4;
  --text-2: #b9bfcd;
  --muted: #7d8598;
  --accent: #ff5a1f;
  --accent-2: #ff2d55;
  --accent-3: #ffb020;
  --accent-grad: linear-gradient(135deg, #ff2d55 0%, #ff5a1f 55%, #ffb020 100%);
  --accent-soft: rgba(255, 90, 31, .12);
  --accent-ring: rgba(255, 90, 31, .35);
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, .12);
  --warning: #f5a524;
  --warning-soft: rgba(245, 165, 36, .12);
  --danger: #f43f5e;
  --danger-soft: rgba(244, 63, 94, .12);
  --info: #3b82f6;
  --info-soft: rgba(59, 130, 246, .12);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, .75);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --sidebar: 264px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f6fa;
  --bg-grad: radial-gradient(1200px 600px at 85% -10%, rgba(255, 90, 31, .08), transparent 60%),
             radial-gradient(900px 500px at -10% 110%, rgba(255, 45, 85, .05), transparent 60%);
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --surface-3: #eef0f5;
  --border: rgba(16, 19, 30, .08);
  --border-strong: rgba(16, 19, 30, .15);
  --text: #11131a;
  --text-2: #3c4254;
  --muted: #6b7386;
  --accent-soft: rgba(255, 90, 31, .09);
  --shadow: 0 1px 2px rgba(16, 19, 30, .04), 0 8px 24px -12px rgba(16, 19, 30, .12);
  --shadow-lg: 0 30px 80px -20px rgba(16, 19, 30, .25);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-grad), var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { display: block; }
::selection { background: var(--accent-ring); color: #fff; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.015em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
[hidden] { display: none !important; }

.i { width: 18px; height: 18px; flex: none; }
.i-sm { width: 15px; height: 15px; }
.i-lg { width: 22px; height: 22px; }
.i-xl { width: 30px; height: 30px; }

/* ---------- Scrollbar ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 2px solid var(--bg); }

/* ==========================================================================
   Uygulama iskeleti
   ========================================================================== */
.app { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 18px 14px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(16px);
  z-index: 40;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 22px; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 20px -6px rgba(255, 90, 31, .6); }
.brand b { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.brand small { display: block; color: var(--muted); font-size: 11.5px; margin-top: -2px; }

.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.nav-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 16px 12px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500;
  transition: background .15s, color .15s;
  position: relative;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--text); }
.nav a.active::before {
  content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent-grad);
}
.nav a.active .i { color: var(--accent); }

.quota-card {
  margin-top: 14px; padding: 14px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--border);
}
.quota-card .row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-bottom: 9px; }
.quota-card b { color: var(--text); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 32px;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar .search { flex: 0 1 440px; min-width: 200px; position: relative; }
.topbar .search .i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.topbar .search input { padding-left: 38px; background: var(--surface); }
.topbar .spacer { flex: 1 1 0; }
.topbar .menu-btn { display: none; }

.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 6px 5px 5px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-grad); color: #fff; font-weight: 700; font-size: 12.5px;
  flex: none;
}
.user-chip .meta { line-height: 1.2; padding-right: 4px; }
.user-chip .meta b { font-size: 13px; display: block; }
.user-chip .meta small { color: var(--muted); font-size: 11.5px; }

.content { padding: 28px 32px 60px; max-width: 1400px; width: 100%; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 700; }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.crumbs a:hover { color: var(--text); }

/* ==========================================================================
   Bileşenler
   ========================================================================== */
.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: 18px 20px 0; }
.card-head h2, .card-head h3 { font-size: 15px; font-weight: 650; }
.card-head p { color: var(--muted); font-size: 13px; }
.card-body { padding: 18px 20px 20px; }
.card + .card { margin-top: 18px; }
.grid > .card, .stack > .card, .grid > .stack > .card { margin-top: 0; }

.grid { display: grid; gap: 18px; }
.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-main { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 26px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; }
.w-full { width: 100%; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- Stat kartları ---------- */
.stat { padding: 18px 20px; position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.stat .value { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-top: 8px; }
.stat .sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.stat .glyph {
  position: absolute; right: 16px; top: 16px; width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}

/* ---------- Butonlar ---------- */
.btn {
  --b-bg: var(--surface-2); --b-fg: var(--text); --b-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 15px; border-radius: var(--radius-sm);
  background: var(--b-bg); color: var(--b-fg); border: 1px solid var(--b-bd);
  font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: transform .08s, filter .15s, background .15s, border-color .15s, box-shadow .15s;
  user-select: none;
}
.btn:hover { color: var(--b-fg); filter: brightness(1.12); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { --b-bg: var(--accent-grad); --b-fg: #fff; --b-bd: transparent; box-shadow: 0 8px 24px -10px rgba(255, 90, 31, .7); }
.btn-primary:hover { filter: brightness(1.08) saturate(1.1); }
.btn-ghost { --b-bg: transparent; --b-bd: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { --b-bg: var(--danger-soft); --b-fg: var(--danger); --b-bd: transparent; }
.btn-success { --b-bg: var(--success-soft); --b-fg: var(--success); --b-bd: transparent; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-icon { width: 38px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.btn-block { width: 100%; }

/* ---------- Form ---------- */
label.label, .label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.field { margin-bottom: 16px; }
.field .hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.input, input:not([type]), input[type=text], input[type=password], input[type=email], input[type=number], input[type=search],
input[type=datetime-local], input[type=url], select, textarea {
  width: 100%; height: 40px; padding: 0 13px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { height: auto; min-height: 92px; padding: 10px 13px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); background: var(--surface); }
input::placeholder, textarea::placeholder { color: var(--muted); }
input[type=datetime-local] { color-scheme: inherit; }
.input-group { display: flex; }
.input-group input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; height: 40px; }
.otp-input { text-align: center; font-family: var(--mono); font-size: 26px !important; letter-spacing: .45em; height: 58px !important; font-weight: 600; }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; padding: 4px 0; }
.check input { appearance: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--border-strong); background: var(--surface-2); flex: none; margin-top: 1px; cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s; }
.check input:checked { background: var(--accent-grad); border-color: transparent; }
.check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check span b { display: block; font-weight: 600; }
.check span small { color: var(--muted); font-size: 12.5px; }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 23px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.switch input:checked { background: var(--accent-grad); border-color: transparent; }
.switch input:checked::after { transform: translateX(17px); }

.segmented { display: inline-flex; padding: 3px; gap: 3px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); flex-wrap: wrap; }
.segmented a, .segmented label { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 550; color: var(--text-2); cursor: pointer; }
.segmented a.active, .segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.segmented input { display: none; }
.segmented label span { display: block; padding: 0; }
.segmented label:has(input:checked) { background: var(--surface-3); color: var(--text); }

/* ---------- Rozetler ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.plain::before { display: none; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-family: var(--mono); }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .actions { display: flex; gap: 4px; justify-content: flex-end; }

/* ---------- Dosya satırı ---------- */
.file-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.file-cell .name { font-weight: 600; display: block; }
.file-cell .meta { color: var(--muted); font-size: 12px; }
.ficon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-2); }
.ficon.image { background: rgba(168, 85, 247, .14); color: #c084fc; }
.ficon.video { background: rgba(244, 63, 94, .14); color: #fb7185; }
.ficon.audio { background: rgba(236, 72, 153, .14); color: #f472b6; }
.ficon.pdf { background: rgba(239, 68, 68, .14); color: #f87171; }
.ficon.archive { background: rgba(245, 158, 11, .14); color: #fbbf24; }
.ficon.doc { background: rgba(59, 130, 246, .14); color: #60a5fa; }
.ficon.sheet { background: rgba(34, 197, 94, .14); color: #4ade80; }
.ficon.slides { background: rgba(249, 115, 22, .14); color: #fb923c; }
.ficon.code { background: rgba(20, 184, 166, .14); color: #2dd4bf; }
.ficon.binary { background: rgba(100, 116, 139, .2); color: #94a3b8; }
.ficon.lg { width: 64px; height: 64px; border-radius: 18px; }
.ficon.lg .i { width: 30px; height: 30px; }

/* ---------- İlerleme ---------- */
.progress { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent-grad); transition: width .3s ease; }
.progress.warn > span { background: linear-gradient(90deg, #f5a524, #f97316); }
.progress.full > span { background: linear-gradient(90deg, #f43f5e, #e11d48); }
.progress.thin { height: 5px; }

/* ---------- Yükleme alanı ---------- */
.dropzone {
  position: relative; border: 1.5px dashed var(--border-strong); border-radius: var(--radius);
  padding: 34px 20px; text-align: center; cursor: pointer;
  background: linear-gradient(180deg, var(--surface-2), transparent);
  transition: border-color .2s, background .2s, transform .2s;
}
.dropzone:hover { border-color: var(--accent); }
.dropzone.drag { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.005); }
.dropzone .glyph { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-grad); color: #fff; box-shadow: 0 14px 30px -12px rgba(255, 90, 31, .8); }
.dropzone h3 { font-size: 16px; }
.dropzone p { color: var(--muted); margin-top: 4px; font-size: 13px; }
.dropzone input[type=file] { display: none; }

.queue { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.qitem { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.qitem .name { font-weight: 600; }
.qitem .stats { display: flex; gap: 12px; color: var(--muted); font-size: 12px; margin-top: 6px; flex-wrap: wrap; }
.qitem .progress { margin-top: 8px; }
.qitem.done .progress > span { background: linear-gradient(90deg, #22c55e, #16a34a); }
.qitem.error { border-color: rgba(244, 63, 94, .4); }
.qitem.error .stats { color: var(--danger); }

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

/* ---------- Uyarı kutuları ---------- */
.alert { display: flex; gap: 12px; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid; font-size: 13.5px; }
.alert .i { margin-top: 1px; }
.alert-info { background: var(--info-soft); border-color: rgba(59, 130, 246, .25); color: color-mix(in srgb, var(--info) 70%, var(--text)); }
.alert-warning { background: var(--warning-soft); border-color: rgba(245, 165, 36, .25); color: color-mix(in srgb, var(--warning) 70%, var(--text)); }
.alert-danger { background: var(--danger-soft); border-color: rgba(244, 63, 94, .25); color: color-mix(in srgb, var(--danger) 75%, var(--text)); }
.alert-success { background: var(--success-soft); border-color: rgba(34, 197, 94, .25); color: color-mix(in srgb, var(--success) 70%, var(--text)); }

/* ---------- Kopyalanabilir alan ---------- */
.copybox { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 13px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border-strong); }
.copybox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.copybox.hero { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Tanım listesi ---------- */
.dl { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 13.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Grafik ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 10px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar span { width: 100%; max-width: 30px; min-height: 3px; border-radius: 6px 6px 3px 3px; background: var(--accent-grad); opacity: .85; transition: height .5s cubic-bezier(.2, .8, .2, 1); }
.bars .bar:hover span { opacity: 1; }
.bars .bar small { font-size: 10.5px; color: var(--muted); }

/* ---------- Kota halkası ---------- */
.ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--surface); }
.ring > div { position: relative; text-align: center; }
.ring b { font-size: 22px; display: block; letter-spacing: -.03em; }
.ring small { color: var(--muted); font-size: 11.5px; }

/* ---------- Liste ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .2s ease; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 10, .65); backdrop-filter: blur(6px); animation: fade .15s ease; }
.modal-dialog { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: var(--shadow-lg); animation: pop .2s cubic-bezier(.2, .9, .3, 1.2); }
.modal-dialog.lg { max-width: 720px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 0; }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 18px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 22px 20px; }

/* ---------- Açılır panel ---------- */
details.adv { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
details.adv summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
details.adv summary::-webkit-details-marker { display: none; }
details.adv summary .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
details.adv[open] summary .chev { transform: rotate(180deg); }
details.adv .inner { padding: 4px 14px 14px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); animation: slide .3s cubic-bezier(.2, .9, .3, 1.2); font-size: 13.5px; }
.toast .dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.toast.success .dot { background: var(--success-soft); color: var(--success); }
.toast.error .dot { background: var(--danger-soft); color: var(--danger); }
.toast.info .dot { background: var(--info-soft); color: var(--info); }
.toast.hide { opacity: 0; transform: translateY(10px); transition: all .3s; }

/* ---------- Sayfalama ---------- */
.pager { display: flex; gap: 4px; justify-content: center; padding: 16px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px; display: grid; place-items: center; font-weight: 600; font-size: 13px; color: var(--text-2); border: 1px solid var(--border); background: var(--surface-2); }
.pager .active { background: var(--accent-grad); color: #fff; border-color: transparent; }
.pager a:hover { color: var(--text); border-color: var(--border-strong); }

/* ---------- Yetki ızgarası ---------- */
.perm-group { margin-bottom: 18px; }
.perm-group h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.perm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.perm-grid .check { padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); }
.perm-grid .check:has(input:checked) { border-color: var(--accent-ring); background: var(--accent-soft); }
.perm-grid code { color: var(--muted); font-size: 11px; }

/* ==========================================================================
   Kimlik doğrulama ekranları
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art {
  position: relative; overflow: hidden; padding: 48px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #07080c;
  border-right: 1px solid var(--border);
  color: #eceef4;
}
.auth-art::before {
  content: ""; position: absolute; inset: -20%;
  background: radial-gradient(500px 400px at 30% 70%, rgba(255, 45, 85, .35), transparent 60%),
              radial-gradient(500px 420px at 70% 30%, rgba(255, 90, 31, .35), transparent 60%),
              radial-gradient(300px 300px at 60% 80%, rgba(255, 176, 32, .25), transparent 60%);
  filter: blur(30px); animation: drift 18s ease-in-out infinite alternate;
}
.auth-art::after { content: ""; position: absolute; inset: 0; 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-art > * { position: relative; z-index: 1; }
.auth-art h2 { font-size: 40px; font-weight: 750; letter-spacing: -.035em; line-height: 1.1; max-width: 480px; }
.auth-art h2 em { font-style: normal; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-art p { color: #a5adbf; max-width: 440px; margin-top: 14px; font-size: 15px; }
.auth-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.auth-feats div { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); font-size: 13px; color: #cfd4df; backdrop-filter: blur(6px); }
.auth-feats .i { color: #ff8a4c; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 400px; }
.auth-box h1 { font-size: 26px; font-weight: 700; }
.auth-box .lead { color: var(--muted); margin: 6px 0 26px; }
.auth-box .brand { padding: 0 0 30px; }
.secure-note { display: flex; align-items: center; gap: 8px; justify-content: center; color: var(--muted); font-size: 12px; margin-top: 22px; }
.qr { width: 200px; height: 200px; margin: 0 auto; padding: 12px; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px -20px rgba(255, 90, 31, .5); }
.qr img { width: 100%; height: 100%; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.codes code { text-align: center; padding: 10px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); font-size: 14px; letter-spacing: .06em; }
.steps { display: flex; gap: 8px; margin-bottom: 22px; }
.steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-3); }
.steps span.on { background: var(--accent-grad); }

/* ==========================================================================
   CDN paylaşım sayfası
   ========================================================================== */
.share-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; }
.share-card { width: 100%; max-width: 560px; padding: 34px; border-radius: 22px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); backdrop-filter: blur(20px); }
.share-card.wide { max-width: 900px; }
.share-card .head { display: flex; gap: 18px; align-items: center; }
.share-card h1 { font-size: 21px; font-weight: 700; overflow-wrap: anywhere; }
.share-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.share-meta .chip { display: inline-flex; gap: 7px; align-items: center; padding: 7px 11px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); }
.share-meta .chip .i { color: var(--muted); }
.preview { margin: 0 0 22px; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--border); }
.preview img, .preview video { width: 100%; max-height: 520px; object-fit: contain; display: block; margin: 0 auto; }
.preview audio { width: 100%; display: block; }
.preview iframe { width: 100%; height: 560px; border: 0; background: #fff; display: block; }
.share-foot { margin-top: 26px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.share-foot img { width: 22px; height: 22px; border-radius: 7px; }
.big-icon { width: 76px; height: 76px; border-radius: 22px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); }
.big-icon.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.big-icon.accent { background: var(--accent-grad); color: #fff; border-color: transparent; }

/* ==========================================================================
   Animasyonlar
   ========================================================================== */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes slide { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translate(-3%, -2%) rotate(0deg); } to { transform: translate(3%, 3%) rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }
.fade-in { animation: pop .35s ease both; }

/* ==========================================================================
   Duyarlı tasarım
   ========================================================================== */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar); transform: translateX(-100%); transition: transform .25s ease; background: var(--surface); }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .topbar .menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .content { padding: 20px 16px 50px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .user-chip .meta { display: none; }
  .perm-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none !important; }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .share-card { padding: 22px; }
  .dl { grid-template-columns: 1fr; gap: 2px 0; }
  .dl dd { margin-bottom: 10px; }
  .topbar .search { display: none; }
}

.confirm-body { padding-top: 24px; }
.confirm-row { display: flex; align-items: flex-start; gap: 14px; }
.confirm-row h3 { font-size: 16px; }
.minw0 { min-width: 0; }
.text-center { text-align: center; }
.row[data-gap] { gap: 22px; align-items: center; }
.dl-compact { grid-template-columns: auto 1fr; gap: 6px 14px; }
.w-auto { width: auto; min-width: 160px; }
.i.inline { display: inline-block; vertical-align: -3px; margin-right: 3px; }
.preview-panel { margin: 0; }
.preview-panel .empty { background: var(--surface-2); }
.narrow { max-width: 560px; }
.mw-260 { max-width: 260px; }
.mw-220 { min-width: 180px; max-width: 220px; }
.group-card { display: block; transition: border-color .15s, transform .15s; }
.group-card:hover { border-color: var(--accent-ring); transform: translateY(-2px); color: inherit; }
.perm-grid .check code { display: block; }
.stat .value.value-sm { font-size: 16px; letter-spacing: -.01em; }
.grow-1 { flex: 1 1 160px; width: auto; }
.grow-2 { flex: 2 1 220px; width: auto; }
.span-2 { grid-column: span 2; }
input.w-auto, select.w-auto { width: auto; min-width: 170px; }
input.grow-1 { flex: 1 1 160px; width: auto; }
input.grow-2 { flex: 2 1 220px; width: auto; }

/* ---------- Dil seçici ---------- */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.lang-switch a { padding: 4px 9px; border-radius: 7px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { background: var(--accent-soft); color: var(--accent); }
.auth-form { position: relative; }
.auth-lang { position: absolute; top: 22px; right: 24px; }
