/* Hızlı Dönüştür — arayüz stilleri */

/* ---------- Tasarım jetonları (açık tema) ---------- */
:root {
  --bg: #f3f4f8;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --surface-3: #eef1f8;
  --line: #e8eaf1;
  --line-strong: #d8dce6;
  --text: #1b1d24;
  --text-2: #5a6070;
  --text-3: #8b91a0;
  --primary: #0b5fef;
  --primary-hover: #0a52d1;
  --primary-soft: #ebf2ff;
  --primary-line: #5d93f5;
  --on-primary: #ffffff;
  --ink: #26252b;
  --ink-hover: #111015;
  --on-ink: #ffffff;
  --success: #1f8f55;
  --success-soft: #e3f5eb;
  --danger: #d33a47;
  --danger-soft: #fdecee;
  --warn: #b77400;
  --focus: #0b5fef;
  --shadow-pop: 0 12px 32px rgba(22, 28, 45, .14), 0 2px 6px rgba(22, 28, 45, .06);

  --t-blue-bg: #e3edfd; --t-blue-fg: #2c69e2;
  --t-yellow-bg: #fcf0c8; --t-yellow-fg: #b18300;
  --t-green-bg: #dff3e7; --t-green-fg: #23905a;
  --t-purple-bg: #ece7fd; --t-purple-fg: #7152e8;
  --t-red-bg: #fde4e4; --t-red-fg: #d83e49;
  --t-orange-bg: #fee9db; --t-orange-fg: #d8661f;
  --t-teal-bg: #dbf2f1; --t-teal-fg: #13837f;
  --t-pink-bg: #fce5f0; --t-pink-fg: #c43a82;
  --t-gray-bg: #eceef3; --t-gray-fg: #5c6475;
  --t-indigo-bg: #e7e9fd; --t-indigo-fg: #4a53d4;

  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 9px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1016;
    --surface: #161920;
    --surface-2: #1c2029;
    --surface-3: #242a36;
    --line: #262b36;
    --line-strong: #353c4a;
    --text: #eceef4;
    --text-2: #a8aebc;
    --text-3: #747b8b;
    --primary: #4c8dff;
    --primary-hover: #6aa0ff;
    --primary-soft: #16233d;
    --primary-line: #4c8dffb0;
    --on-primary: #ffffff;
    --ink: #eceef4;
    --ink-hover: #ffffff;
    --on-ink: #121318;
    --success: #43c97f;
    --success-soft: #16301f;
    --danger: #ff6b76;
    --danger-soft: #3a1a1e;
    --warn: #f0b34a;
    --focus: #6aa0ff;
    --shadow-pop: 0 14px 36px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3);
    --t-blue-bg: #1b2a47; --t-blue-fg: #7eaaff;
    --t-yellow-bg: #332b12; --t-yellow-fg: #f0c552;
    --t-green-bg: #16301f; --t-green-fg: #5fd394;
    --t-purple-bg: #292347; --t-purple-fg: #b3a0ff;
    --t-red-bg: #3a1d21; --t-red-fg: #ff8a93;
    --t-orange-bg: #38241a; --t-orange-fg: #ffa46b;
    --t-teal-bg: #123030; --t-teal-fg: #5fd0c9;
    --t-pink-bg: #37192b; --t-pink-fg: #ff8cc6;
    --t-gray-bg: #242933; --t-gray-fg: #aab1c0;
    --t-indigo-bg: #22264a; --t-indigo-fg: #9ea5ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1016;
  --surface: #161920;
  --surface-2: #1c2029;
  --surface-3: #242a36;
  --line: #262b36;
  --line-strong: #353c4a;
  --text: #eceef4;
  --text-2: #a8aebc;
  --text-3: #747b8b;
  --primary: #4c8dff;
  --primary-hover: #6aa0ff;
  --primary-soft: #16233d;
  --primary-line: #4c8dffb0;
  --on-primary: #ffffff;
  --ink: #eceef4;
  --ink-hover: #ffffff;
  --on-ink: #121318;
  --success: #43c97f;
  --success-soft: #16301f;
  --danger: #ff6b76;
  --danger-soft: #3a1a1e;
  --warn: #f0b34a;
  --focus: #6aa0ff;
  --shadow-pop: 0 14px 36px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .3);
  --t-blue-bg: #1b2a47; --t-blue-fg: #7eaaff;
  --t-yellow-bg: #332b12; --t-yellow-fg: #f0c552;
  --t-green-bg: #16301f; --t-green-fg: #5fd394;
  --t-purple-bg: #292347; --t-purple-fg: #b3a0ff;
  --t-red-bg: #3a1d21; --t-red-fg: #ff8a93;
  --t-orange-bg: #38241a; --t-orange-fg: #ffa46b;
  --t-teal-bg: #123030; --t-teal-fg: #5fd0c9;
  --t-pink-bg: #37192b; --t-pink-fg: #ff8cc6;
  --t-gray-bg: #242933; --t-gray-fg: #aab1c0;
  --t-indigo-bg: #22264a; --t-indigo-fg: #9ea5ff;
  color-scheme: dark;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ic {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.muted { color: var(--text-3); }
kbd { font-family: inherit; font-size: 12px; padding: 1px 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); }

/* ---------- Yerleşim ---------- */
.app {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  min-height: 100%;
}
.topbar { display: none; }
.sidebar {
  position: sticky; top: 24px;
  height: calc(100vh - 48px);
  min-height: 520px;
  display: flex; flex-direction: column; gap: 16px;
}
.main { min-width: 0; outline: none; }
.page-convert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.col-center, .col-right { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* ---------- Kartlar ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head.compact { align-items: center; margin-bottom: 14px; }
.card-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.card-title.sm { font-size: 15px; }
.card-sub { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.link { font-weight: 600; font-size: 13px; color: var(--text); }
.link:hover { color: var(--primary); }
.link-btn { background: none; border: 0; padding: 0; font-weight: 600; font-size: 13px; color: var(--primary); }
.link-btn:hover { text-decoration: underline; }

/* ---------- Marka ve gezinme ---------- */
.nav-card { flex: 1; display: flex; flex-direction: column; gap: 22px; padding: 18px 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; padding: 2px 6px; letter-spacing: -.01em; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--primary); color: #fff;
}
.brand-mark .ic { width: 19px; height: 19px; stroke-width: 2.1; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 11px;
  color: var(--text-2); font-weight: 500;
  transition: background-color .15s, color .15s;
}
.nav-item .ic { width: 19px; height: 19px; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item[aria-current="page"] { background: var(--surface-3); color: var(--primary); font-weight: 600; }
.nav-count {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 99px;
  background: var(--surface-3); color: var(--text-2); font-size: 11.5px; font-weight: 600; text-align: center;
  font-variant-numeric: tabular-nums;
}
.nav-item[aria-current="page"] .nav-count { background: var(--surface); }

.privacy-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 20px 16px 16px; }
.privacy-mark {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--t-green-bg); color: var(--t-green-fg);
  margin-bottom: 4px;
}
.privacy-mark .ic { width: 24px; height: 24px; }
.privacy-title { font-size: 14.5px; font-weight: 700; }
.privacy-text { font-size: 12.5px; color: var(--text-3); line-height: 1.45; }
.privacy-stat { font-size: 13px; font-weight: 600; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: 13.5px; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, opacity .15s;
}
.btn .ic { width: 18px; height: 18px; }
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-hover); }
.btn-light { background: #ffffff; color: #1b1d24; }
.btn-light:hover { background: #eef3ff; }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.icon-btn {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--text-2);
  transition: background-color .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.outline { border-color: var(--line); background: var(--surface); }
.icon-btn.filled { background: var(--surface); border-color: var(--line); color: var(--text); }
.icon-btn.filled:hover { border-color: var(--line-strong); }
.icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.icon-btn .ic { width: 19px; height: 19px; }

/* ---------- Bırakma alanı ---------- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 8px;
  min-height: 190px; padding: 28px 20px;
  border: 1.5px dashed var(--primary-line);
  border-radius: var(--radius);
  background: var(--primary-soft);
  cursor: pointer;
  transition: background-color .15s, border-color .15s, min-height .2s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--primary); background: color-mix(in srgb, var(--primary-soft) 70%, var(--primary) 8%); }
.dropzone.compact { min-height: 0; padding: 14px 16px; flex-direction: row; gap: 12px; }
.dropzone.compact .dz-hint { display: none; }
.dropzone.compact .dz-icon { width: 34px; height: 34px; }
.dropzone.compact .dz-icon .ic { width: 20px; height: 20px; }
.dz-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
}
.dz-icon .ic { width: 30px; height: 30px; stroke-width: 1.5; }
.dz-title { font-size: 14.5px; color: var(--text); }
.dz-strong { font-weight: 600; }
.dz-link { color: var(--primary); font-weight: 600; }
.dz-hint { font-size: 12.5px; color: var(--text-3); max-width: 46ch; }

.preset-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 9px 12px; margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 13px;
}
.preset-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.preset-label .ic { width: 17px; height: 17px; color: var(--primary); }

/* ---------- Dosya listesi ---------- */
.file-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.file-list:empty { display: none; }
.file-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 176px 138px 86px;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 10px;
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}
.file-row .progress {
  position: absolute; left: 0; bottom: 0; height: 3px;
  background: var(--primary);
  width: 0; transition: width .25s ease;
}
.tile {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--t-gray-bg); color: var(--t-gray-fg);
  flex: none;
}
.tile .ic { width: 20px; height: 20px; }
.tile.sm { width: 34px; height: 34px; border-radius: 9px; }
.tile.sm .ic { width: 17px; height: 17px; }
.hue-blue { background: var(--t-blue-bg); color: var(--t-blue-fg); }
.hue-yellow { background: var(--t-yellow-bg); color: var(--t-yellow-fg); }
.hue-green { background: var(--t-green-bg); color: var(--t-green-fg); }
.hue-purple { background: var(--t-purple-bg); color: var(--t-purple-fg); }
.hue-red { background: var(--t-red-bg); color: var(--t-red-fg); }
.hue-orange { background: var(--t-orange-bg); color: var(--t-orange-fg); }
.hue-teal { background: var(--t-teal-bg); color: var(--t-teal-fg); }
.hue-pink { background: var(--t-pink-bg); color: var(--t-pink-fg); }
.hue-gray { background: var(--t-gray-bg); color: var(--t-gray-fg); }
.hue-indigo { background: var(--t-indigo-bg); color: var(--t-indigo-fg); }
.file-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.file-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta.error { color: var(--danger); white-space: normal; }
.file-meta.note { color: var(--warn); white-space: normal; }
.file-target { display: flex; align-items: center; gap: 6px; color: var(--text-3); min-width: 0; }
.file-target .select-pill { flex: 1; min-width: 0; }
.file-target .select-pill select { width: 100%; max-width: none; }
.file-target .ic { width: 16px; height: 16px; }
.select-pill {
  position: relative; display: inline-flex; align-items: center;
}
.select-pill select {
  appearance: none; -webkit-appearance: none;
  height: 32px; padding: 0 28px 0 11px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface); color: var(--text);
  font-weight: 700; font-size: 12.5px; letter-spacing: .02em;
  cursor: pointer; max-width: 170px;
}
.select-pill select:hover { border-color: var(--primary-line); }
.select-pill select:disabled { opacity: .6; cursor: default; }
.select-pill .chev { position: absolute; right: 8px; width: 14px; height: 14px; pointer-events: none; color: var(--text-3); }
.file-status { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--text-3); min-width: 0; }
.file-status .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.st-done { color: var(--success); }
.st-error { color: var(--danger); }
.st-work { color: var(--text-2); font-variant-numeric: tabular-nums; }
.spinner {
  width: 15px; height: 15px; flex: none;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  border-top-color: var(--primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.file-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.file-actions .icon-btn.filled { width: 38px; height: 38px; }

.merge-row { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui {
  position: relative; flex: none;
  width: 38px; height: 22px; border-radius: 99px;
  background: var(--line-strong);
  transition: background-color .2s;
  margin-top: 1px;
}
.switch-ui::after {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: transform .2s;
}
.switch input:checked + .switch-ui { background: var(--primary); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch-text { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; }
.switch-text .muted { font-size: 12.5px; }

.result-bar {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding: 12px;
  border-radius: var(--radius);
  background: var(--success-soft);
}
.result-bar .file-main { flex: 1; }

/* ---------- Seçenekler ---------- */
.options { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.options > summary {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 13.5px;
}
.options > summary::-webkit-details-marker { display: none; }
.options > summary .ic { width: 18px; height: 18px; color: var(--text-3); }
.options > summary .chev { margin-left: auto; transition: transform .2s; }
.options[open] > summary .chev { transform: rotate(180deg); }
.options-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 18px; padding: 4px 14px 16px; }
.options-body.static { padding: 0; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); display: flex; justify-content: space-between; gap: 8px; }
.field-label output { color: var(--text); font-variant-numeric: tabular-nums; }
.field select, .field input[type="search"], .field input[type="text"] {
  height: 38px; width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--text);
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input[type="range"] { width: 100%; accent-color: var(--primary); }

/* ---------- Alt çubuk ---------- */
.card-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 18px;
}
.foot-total { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.foot-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.zip-note { margin-top: 12px; font-size: 12.5px; color: var(--text-3); }

/* ---------- Popüler araçlar ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.tool {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-align: left;
  transition: border-color .15s, background-color .15s;
}
.tool:hover { border-color: var(--primary-line); background: var(--surface-2); }
.tool-ico { position: relative; width: 40px; height: 40px; flex: none; }
.tool-ico .mini { position: absolute; width: 23px; height: 23px; border-radius: 7px; display: grid; place-items: center; }
.tool-ico .mini .ic { width: 14px; height: 14px; stroke-width: 2; }
.tool-ico .mini.from { left: 0; bottom: 0; }
.tool-ico .mini.to { right: 0; top: 0; }
.tool-ico .curve { position: absolute; left: 1px; top: 1px; width: 15px; height: 15px; color: var(--text-3); }
.tool-ico .curve2 { position: absolute; right: 2px; bottom: 1px; width: 15px; height: 15px; color: var(--text-3); transform: rotate(180deg); }
.tool-body { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.tool-name { font-weight: 700; font-size: 14.5px; }
.tool-desc { font-size: 12.5px; color: var(--text-3); line-height: 1.35; }

/* ---------- Öne çıkan kart ---------- */
.feature-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 18px 18px;
  border-radius: var(--radius-lg);
  color: #fff;
  min-height: 236px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(122, 214, 222, .75) 0%, rgba(122, 214, 222, 0) 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(36, 30, 140, .9) 0%, rgba(36, 30, 140, 0) 60%),
    linear-gradient(155deg, #2a2fa8 0%, #3552d4 42%, #4f8ae9 70%, #5eb4e6 100%);
}
.feature-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.feature-card > * { position: relative; }
.badge {
  align-self: flex-start;
  padding: 4px 10px; border-radius: 99px;
  background: #fff; color: #1b1d24;
  font-size: 11.5px; font-weight: 700;
  margin-bottom: auto;
}
.feature-title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-top: 30px; }
.feature-text { font-size: 13px; color: rgba(255, 255, 255, .86); line-height: 1.45; }
.feature-card .btn { margin-top: 10px; }

/* ---------- Geçmiş ---------- */
.history-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.history-list:empty { display: none; }
.h-item { display: flex; align-items: center; gap: 12px; padding: 11px 8px 11px 12px; }
.h-item + .h-item { border-top: 1px solid var(--line); }
.h-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 1px; }
.h-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-meta { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-list.full .h-item { padding: 13px 10px 13px 14px; }
.h-actions { display: flex; gap: 2px; }
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 26px 12px; color: var(--text-3); font-size: 13px;
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
}
.empty .ic { width: 26px; height: 26px; color: var(--text-3); }

/* ---------- Açılır menü ---------- */
.menu-pop {
  position: fixed; z-index: 60;
  min-width: 190px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-pop);
}
.menu-pop button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 8px;
  background: transparent; text-align: left; font-size: 13.5px; font-weight: 500;
}
.menu-pop button:hover, .menu-pop button:focus-visible { background: var(--surface-2); outline: none; }
.menu-pop button .ic { width: 17px; height: 17px; color: var(--text-3); }
.menu-pop button.danger { color: var(--danger); }
.menu-pop button.danger .ic { color: var(--danger); }
.menu-pop button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Sayfalar ---------- */
.page-card { padding: 24px; }
.page-head { margin-bottom: 20px; }
.page-head.row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 800; letter-spacing: -.015em; }
.page-sub { color: var(--text-3); margin-top: 4px; max-width: 62ch; }
.page-tools, .page-history, .page-settings, .page-help { display: flex; flex-direction: column; gap: 16px; max-width: 1080px; }

.pair-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 16px; }
.pair-arrow { height: 38px; display: grid; place-items: center; color: var(--text-3); }
.search {
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface-2);
}
.search .ic { width: 18px; height: 18px; color: var(--text-3); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 100%; }
.search:focus-within { border-color: var(--primary); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; gap: 12px; }
.cat-head { display: flex; align-items: center; gap: 12px; }
.cat-name { font-size: 15px; font-weight: 700; }
.cat-count { font-size: 12px; color: var(--text-3); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 30px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface-2);
  font-size: 12.5px; font-weight: 600; color: var(--text);
  transition: border-color .15s, background-color .15s, color .15s;
}
button.chip:hover { border-color: var(--primary-line); color: var(--primary); background: var(--surface); }
.chip .ic { width: 13px; height: 13px; color: var(--text-3); }
.chip.muted-chip { background: transparent; color: var(--text-2); font-weight: 500; }
.cat-sub { font-size: 12px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.empty-note { color: var(--text-3); text-align: center; padding: 24px; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; }
.set-group { display: flex; flex-direction: column; gap: 12px; }
.set-group.wide { grid-column: 1 / -1; }
.set-title { font-size: 12px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; }
.segmented { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface-2); align-self: flex-start; }
.segmented button { border: 0; background: transparent; padding: 7px 16px; border-radius: 9px; font-weight: 600; font-size: 13px; color: var(--text-2); }
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(20, 24, 40, .12); }
.set-group .btn { align-self: flex-start; }

.confirm-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--danger-soft); }

.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 2px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 14.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--text-3); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > p, .faq details > div, .faq details > ul { padding: 0 2px 16px; color: var(--text-2); max-width: 70ch; }
.fmt-lines { display: flex; flex-direction: column; gap: 8px; }
.fmt-lines strong { color: var(--text); }
.caps { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.caps li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.caps .ok { color: var(--success); }
.caps .no { color: var(--danger); }
.caps .ic { width: 16px; height: 16px; stroke-width: 2.2; }

/* ---------- Bırakma katmanı ve bildirimler ---------- */
.drop-overlay {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--bg) 75%, transparent);
  backdrop-filter: blur(3px);
  padding: 16px;
}
.drop-overlay-inner {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 40px 48px; max-width: 100%;
  border: 2px dashed var(--primary); border-radius: 22px;
  background: var(--primary-soft); color: var(--text);
  font-size: 16px; font-weight: 700; text-align: center;
}
.drop-overlay-inner .ic { width: 38px; height: 38px; color: var(--primary); }
.toasts {
  position: fixed; z-index: 90; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: max-content; max-width: calc(100vw - 32px);
  pointer-events: none;
}
.toast {
  padding: 10px 16px; border-radius: 11px;
  background: var(--ink); color: var(--on-ink);
  font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow-pop);
  animation: toast-in .2s ease-out;
}
.toast.error { background: var(--danger); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.scrim { display: none; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1240px) {
  .page-convert { grid-template-columns: minmax(0, 1fr); }
  .col-right { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); padding: 0 16px 24px; gap: 14px; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
    margin: 0 -16px; padding: 10px 16px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
  }
  .sidebar {
    position: fixed; z-index: 50; top: 0; bottom: 0; left: 0;
    width: min(300px, 86vw); height: auto; min-height: 0;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    transform: translateX(-102%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .sidebar.open { transform: none; box-shadow: var(--shadow-pop); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(10, 12, 20, .35); }
  .settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .col-right { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 16px; border-radius: 16px; }
  .page-card { padding: 18px 16px; }
  .file-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas: "tile main actions" "target target status";
    row-gap: 10px;
  }
  .file-row .tile { grid-area: tile; }
  .file-row .file-main { grid-area: main; }
  .file-row .file-actions { grid-area: actions; }
  .file-row .file-target { grid-area: target; max-width: 230px; }
  .file-row .file-status { grid-area: status; justify-content: flex-end; }
  .pair-picker { grid-template-columns: minmax(0, 1fr); }
  .pair-arrow { display: none; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .foot-actions { justify-content: stretch; }
  .foot-actions .btn { flex: 1; }
  .dropzone { min-height: 150px; }
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .spinner { animation: spin 1.6s linear infinite !important; animation-iteration-count: infinite !important; animation-duration: 1.6s !important; }
}
