/* =============================================
   Görsel Sıkıştırıcı — Premium Design System
   Senior-level static site CSS
   ============================================= */

/* ── Design Tokens ── */
:root {
  --bg: #f6f8fb;
  --bg-alt: #edf0f7;
  --bg-glass: rgba(255,255,255,.72);
  --card: #ffffff;
  --card-hover: #fafbff;
  --text: #111827;
  --text-secondary: #4b5563;
  --muted: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-light: #eef2ff;
  --accent-glow: rgba(79,70,229,.18);
  --accent2: #7c3aed;
  --accent2-hover: #6d28d9;
  --success: #059669;
  --success-light: #ecfdf5;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,.15);
  --shadow-accent: 0 4px 14px rgba(79,70,229,.25);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --max-w: 1200px;
  --header-h: 64px;
  --gradient: linear-gradient(135deg, var(--accent), var(--accent2));
  --gradient-subtle: linear-gradient(135deg, #eef2ff, #faf5ff);
}

[data-theme="dark"] {
  --bg: #0b0f19;
  --bg-alt: #111827;
  --bg-glass: rgba(17,24,39,.78);
  --card: #1f2937;
  --card-hover: #243044;
  --text: #f3f4f6;
  --text-secondary: #9ca3af;
  --muted: #6b7280;
  --border: #374151;
  --border-light: #1f2937;
  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --accent-light: rgba(129,140,248,.12);
  --accent-glow: rgba(129,140,248,.2);
  --accent2: #a78bfa;
  --accent2-hover: #c4b5fd;
  --success: #34d399;
  --success-light: rgba(52,211,153,.1);
  --warning: #fbbf24;
  --warning-light: rgba(251,191,36,.1);
  --danger: #f87171;
  --danger-light: rgba(248,113,113,.1);
  --shadow-xs: 0 1px 2px rgba(0,0,0,.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow: 0 4px 6px rgba(0,0,0,.25);
  --shadow-md: 0 10px 15px rgba(0,0,0,.3);
  --shadow-lg: 0 20px 25px rgba(0,0,0,.35);
  --shadow-xl: 0 25px 50px rgba(0,0,0,.5);
  --shadow-accent: 0 4px 14px rgba(129,140,248,.2);
  --gradient-subtle: linear-gradient(135deg, rgba(79,70,229,.08), rgba(124,58,237,.08));
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; border: none; background: none; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── Layout ── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }
main { flex: 1; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px) saturate(1.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.8);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .6rem;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo svg { width: 30px; height: 30px; stroke: var(--accent); }
.logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  color: var(--text-secondary);
  font-size: .875rem;
  font-weight: 500;
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  transition: all .15s var(--ease);
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-links a.active { color: var(--accent); background: var(--accent-light); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.theme-toggle {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s var(--ease);
  color: var(--text-secondary);
}
.theme-toggle:hover { background: var(--border); color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; }

.hamburger {
  display: none;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all .15s var(--ease);
}
.hamburger:hover { background: var(--border); }
.hamburger svg { width: 20px; height: 20px; }

/* ── Mobile Nav ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: var(--card);
  z-index: 99;
  padding: 1rem;
  flex-direction: column;
  gap: .25rem;
  overflow-y: auto;
  animation: slideDown .2s var(--ease-out);
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  transition: background .15s var(--ease);
}
.mobile-nav a:hover { background: var(--bg-alt); }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 4.5rem 0 3rem;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem .4rem .5rem;
  border-radius: 100px;
  background: var(--accent-light);
  border: 1px solid rgba(79,70,229,.15);
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
[data-theme="dark"] .hero-eyebrow { border-color: rgba(129,140,248,.2); }
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}
.hero h1 .gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero > p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero .badge-row {
  display: flex;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .9rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
}
.badge svg { width: 14px; height: 14px; }
.badge--green { background: var(--success-light); color: var(--success); border-color: rgba(5,150,105,.2); }

/* ── Stats ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2.5rem 0;
}
.stat-item {
  background: var(--card);
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat-val {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
}
.stat-label { font-size: .8rem; color: var(--muted); font-weight: 500; margin-top: .15rem; }

/* ── How It Works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 3rem;
}
.step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-accent);
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.step p { font-size: .88rem; color: var(--text-secondary); line-height: 1.6; }

/* ── Ad Block ── */
.ad-block { margin: 1.5rem 0; text-align: center; min-height: 90px; }

/* ── Drop Zone ── */
.dropzone-wrap { margin: 2rem 0; }
.dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s var(--ease);
  background: var(--card);
  position: relative;
  overflow: hidden;
}
.dropzone::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: 0;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.dropzone.drag-over::before { opacity: .04; }
.dropzone > * { position: relative; z-index: 1; }
.dropzone .dz-icon {
  width: 52px; height: 52px;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dropzone .dz-icon svg { width: 26px; height: 26px; color: var(--accent); }
.dropzone h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.dropzone p { color: var(--muted); font-size: .88rem; }
.dropzone input[type="file"] { display: none; }
.dropzone .btn-browse {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.25rem;
  padding: .7rem 1.75rem;
  border-radius: var(--radius);
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s var(--ease);
  box-shadow: var(--shadow-accent);
}
.dropzone .btn-browse:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,.3); }

/* ── Settings Panel ── */
.settings-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-xs);
}
.settings-panel h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
}
.settings-panel h3 svg { width: 18px; height: 18px; color: var(--accent); }
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-group select,
.form-group input[type="number"],
.form-group input[type="text"] {
  padding: .6rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: .875rem;
  transition: all .15s var(--ease);
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2rem;
}
.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.quality-wrap { display: flex; align-items: center; gap: .75rem; }
.quality-wrap input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 6px;
  border-radius: 100px;
  background: var(--border);
  outline: none;
}
.quality-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: transform .15s var(--ease-spring);
}
.quality-wrap input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.quality-val {
  min-width: 3.2em;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  font-family: var(--font-mono);
  color: var(--accent);
}
.quality-label { font-size: .75rem; color: var(--muted); font-weight: 500; }
.bg-color-wrap { display: flex; align-items: center; gap: .5rem; }
.bg-color-wrap input[type="color"] {
  width: 36px; height: 36px;
  padding: 2px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* ── Action Bar ── */
.action-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,.3); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--card);
  color: var(--text-secondary);
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { background: var(--bg-alt); color: var(--text); border-color: var(--accent); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #047857; box-shadow: 0 4px 12px rgba(5,150,105,.25); }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--border); }
.btn-danger:hover { background: var(--danger-light); border-color: var(--danger); }
.btn-sm { padding: .35rem .75rem; font-size: .8rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ── Privacy Notice ── */
.privacy-notice {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--success-light);
  border: 1px solid rgba(5,150,105,.15);
  color: var(--success);
  font-size: .84rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.privacy-notice svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── File List ── */
.file-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.file-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 1rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .875rem 1rem;
  transition: all .15s var(--ease);
}
.file-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.file-thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-alt);
}
.file-info { min-width: 0; }
.file-name {
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .25rem;
  font-size: .78rem;
  color: var(--muted);
}
.file-meta span { display: inline-flex; align-items: center; gap: .2rem; }
.file-savings { font-weight: 700; color: var(--success); }
.file-savings.negative { color: var(--danger); }
.file-actions { display: flex; gap: .35rem; flex-shrink: 0; }

/* ── Progress ── */
.progress-bar-wrap { grid-column: 1 / -1; margin-top: .4rem; }
.progress-bar {
  height: 3px;
  border-radius: 100px;
  background: var(--bg-alt);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 100px;
  width: 0;
  transition: width .3s var(--ease);
}

/* ── Results Summary ── */
.results-summary {
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: none;
  box-shadow: var(--shadow-accent);
}
.results-summary.visible { display: block; animation: fadeUp .3s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.results-summary h3 { font-size: 1rem; margin-bottom: .75rem; font-weight: 600; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}
.result-stat { text-align: center; }
.result-stat .val { font-size: 1.5rem; font-weight: 800; }
.result-stat .label { font-size: .75rem; opacity: .8; }

/* ── Toast ── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  z-index: 1000;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: .7rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: .85rem;
  font-weight: 500;
  animation: toastIn .3s var(--ease-out);
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 360px;
}
.toast--success { border-left: 3px solid var(--success); }
.toast--error { border-left: 3px solid var(--danger); }
.toast--info { border-left: 3px solid var(--accent); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
.toast.hide { animation: toastOut .25s var(--ease) forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ── Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all .2s var(--ease);
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon svg { width: 22px; height: 22px; color: var(--accent); }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.card p { color: var(--text-secondary); font-size: .875rem; margin-bottom: 1rem; flex: 1; line-height: 1.6; }
.card .card-link {
  font-size: .84rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: auto;
  color: var(--accent);
}
.card .card-link:hover { gap: .5rem; }

/* ── Section ── */
.section { padding: 2.5rem 0; }
.section-header { text-align: center; margin-bottom: 2rem; }
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: .4rem;
  letter-spacing: -.02em;
}
.section-sub {
  color: var(--text-secondary);
  font-size: .95rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Preset Links ── */
.preset-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .5rem;
  margin: 1.5rem 0;
}
.preset-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: .84rem;
  font-weight: 500;
  color: var(--text);
  transition: all .15s var(--ease);
}
.preset-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.preset-link .preset-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem;
  padding: 1.25rem 0;
  font-size: .82rem;
}
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border); }
.breadcrumb .current { color: var(--text-secondary); font-weight: 500; }

/* ── Lead / Prose / Disclaimer ── */
.lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 640px;
}
.prose { max-width: 700px; }
.prose p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.prose p:last-child { margin-bottom: 0; }
.prose code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--bg-alt);
  padding: .12em .35em;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}
.disclaimer {
  font-size: .88rem;
  color: var(--muted);
  font-style: italic;
  margin: 1.5rem 0;
}

/* ── Article ── */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 1.5rem 0 3rem; }
.article-meta { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.article-wrap h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.article-wrap h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 2.5rem 0 .75rem;
  letter-spacing: -.01em;
}
.article-wrap h3 { font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.article-wrap p { margin-bottom: 1rem; color: var(--text-secondary); line-height: 1.8; }
.article-wrap ul, .article-wrap ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-wrap li { margin-bottom: .5rem; color: var(--text-secondary); list-style: disc; line-height: 1.7; }
.article-wrap ol li { list-style: decimal; }
.article-wrap strong { color: var(--text); font-weight: 600; }
.article-wrap a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-wrap a:hover { text-decoration-color: var(--accent-hover); }
.article-wrap code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: var(--bg-alt);
  padding: .15em .4em;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}
.article-wrap .cta-box {
  background: var(--gradient);
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  margin: 2.5rem 0;
  text-align: center;
  box-shadow: var(--shadow-accent);
}
.article-wrap .cta-box p { color: rgba(255,255,255,.9); }
.article-wrap .cta-box a { color: #fff; font-weight: 700; }
.article-wrap .info-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: #1e40af;
  font-size: .9rem;
  line-height: 1.7;
}
[data-theme="dark"] .article-wrap .info-box { background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.2); color: #93c5fd; }
.article-wrap .warning-box {
  background: var(--warning-light);
  border: 1px solid rgba(217,119,6,.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: #92400e;
  font-size: .9rem;
  line-height: 1.7;
}
[data-theme="dark"] .article-wrap .warning-box { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.2); color: #fcd34d; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .5rem;
  background: var(--card);
  overflow: hidden;
  transition: border-color .15s var(--ease);
}
.faq-item:hover { border-color: var(--accent); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .92rem;
  user-select: none;
  transition: background .15s var(--ease);
  gap: 1rem;
}
.faq-q:hover { background: var(--bg-alt); }
.faq-q svg {
  width: 18px; height: 18px;
  color: var(--muted);
  transition: transform .2s var(--ease);
  flex-shrink: 0;
}
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-item.open { border-color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: .9rem;
  line-height: 1.75;
}

/* ── Search ── */
.search-wrap { max-width: 600px; margin: 2rem auto; }
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: .5rem 1rem;
  transition: all .15s var(--ease);
  box-shadow: var(--shadow-xs);
}
.search-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.search-input-wrap svg { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  padding: .5rem 0;
}
.search-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.chip {
  padding: .4rem .9rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  transition: all .15s var(--ease);
}
.chip:hover, .chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.search-results { margin-top: 1.5rem; }
.search-result-item {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
  background: var(--card);
  transition: all .15s var(--ease);
}
.search-result-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.search-result-item h3 { font-size: .95rem; font-weight: 600; margin-bottom: .2rem; }
.search-result-item h3 a { color: var(--text); }
.search-result-item p { font-size: .82rem; color: var(--muted); }
.search-result-item .tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--accent);
  margin-top: .35rem;
}

/* ── 404 ── */
.error-404 { text-align: center; max-width: 500px; margin: 0 auto; padding: 4rem 0; }
.error-code {
  font-size: clamp(5rem, 15vw, 8rem);
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: .5rem;
}
.error-message { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.error-desc { color: var(--text-secondary); margin-bottom: 2rem; }
.error-home {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.75rem;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-bottom: 2.5rem;
  transition: all .2s var(--ease);
  box-shadow: var(--shadow-accent);
}
.error-home:hover { transform: translateY(-2px); color: #fff; }
.error-search { display: flex; gap: .5rem; max-width: 360px; margin: 0 auto 1.5rem; }
.error-search input { flex: 1; padding: .6rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--card); font-size: .9rem; }
.error-search input:focus { outline: none; border-color: var(--accent); }
.error-search button { padding: .6rem 1.25rem; background: var(--accent); color: #fff; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer; }
.error-popular { text-align: left; padding-top: 2rem; border-top: 1px solid var(--border); }
.error-popular h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; text-align: center; }
.error-popular ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .35rem; }
.error-popular li { list-style: none; }
.error-popular a { display: block; padding: .5rem .75rem; border-radius: var(--radius-sm); color: var(--text-secondary); font-size: .88rem; }
.error-popular a:hover { background: var(--bg-alt); color: var(--accent); }

/* ── Contact Form ── */
.contact-form { max-width: 560px; margin: 2rem auto; }
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form textarea,
.contact-form input[type="text"],
.contact-form input[type="email"] {
  padding: .6rem .85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: .9rem;
  width: 100%;
  transition: all .15s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ── Footer ── */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text);
  margin-bottom: .75rem;
}
.footer-col a {
  display: block;
  padding: .2rem 0;
  font-size: .85rem;
  color: var(--text-secondary);
  transition: color .15s var(--ease);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .8rem;
  color: var(--muted);
}

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: border-color .2s var(--ease);
}
.faq-item:hover { border-color: var(--accent); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text);
  gap: 1rem;
  user-select: none;
}
.faq-q svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .25s var(--ease), color .2s;
}
.faq-item.open .faq-q svg {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner {
  padding: 0 1.25rem 1rem;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}
.faq-a-inner a { color: var(--accent); text-decoration: underline; }

/* ── Article Meta ── */
.article-meta {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 3rem 0 2rem; }
  .hero::before { width: 300px; height: 300px; }
  .stats-bar { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: .5rem; }
  .settings-grid { grid-template-columns: 1fr; }
  .file-item { grid-template-columns: 48px 1fr; }
  .file-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cards-grid { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .preset-links { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .dropzone { padding: 2rem 1.25rem; }
  .results-grid { grid-template-columns: 1fr; }
  .action-bar { flex-direction: column; }
  .action-bar .btn { width: 100%; }
}

/* ── Cookie Consent Banner ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,.15);
  transform: translateY(100%);
  transition: transform .35s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cookie-banner-inner p {
  flex: 1;
  min-width: 200px;
  font-size: .875rem;
  line-height: 1.5;
  margin: 0;
  color: var(--text-secondary);
}
.cookie-banner-inner a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }

/* ── Ad Blocks Enhanced ── */
.ad-in-article { margin: 2rem 0; min-height: 100px; }
.ad-multiplex { margin: 2.5rem 0; min-height: 200px; }
.ad-sidebar { min-height: 250px; }
.ad-block { min-height: 90px; }

/* ── Print ── */
@media print {
  .site-header, .site-footer, .ad-block, .ad-in-article, .ad-multiplex, .ad-sidebar, .cookie-banner, .dropzone-wrap, .settings-panel, .action-bar, .toast-container, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .file-item { break-inside: avoid; }
}
