/* ══════════════════════════════════════════════════════════
   PDF Düzenleyici — Premium Design System v2.0
   Senior-level production CSS · Accessible · Fast CWV
   ══════════════════════════════════════════════════════════ */

/* ── Custom Properties ──────────────────────────────────── */
:root {
  --bg:            #f8fafc;
  --bg-alt:        #f1f5f9;
  --bg-glass:      rgba(255,255,255,.72);
  --card:          #ffffff;
  --card-hover:    #fafbfc;
  --text:          #0f172a;
  --text-sec:      #475569;
  --muted:         #94a3b8;
  --border:        #e2e8f0;
  --border-light:  #f1f5f9;
  --accent:        #2563eb;
  --accent-hover:  #1d4ed8;
  --accent-soft:   rgba(37,99,235,.08);
  --accent2:       #7c3aed;
  --accent2-hover: #6d28d9;
  --success:       #059669;
  --success-soft:  rgba(5,150,105,.08);
  --warning:       #d97706;
  --warning-soft:  rgba(217,119,6,.08);
  --danger:        #dc2626;
  --danger-hover:  #b91c1c;
  --danger-soft:   rgba(220,38,38,.08);
  --gradient:      linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #db2777 100%);
  --gradient-soft: linear-gradient(135deg, rgba(37,99,235,.12), rgba(124,58,237,.12));
  --gradient-text: linear-gradient(135deg, #2563eb, #7c3aed);
  --radius-xs:     6px;
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-full:   9999px;
  --shadow-xs:     0 1px 2px rgba(0,0,0,.05);
  --shadow:        0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:     0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg:     0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
  --shadow-xl:     0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-glow:   0 0 40px rgba(37,99,235,.15);
  --font:          'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:          "SF Mono", "Fira Code", "Cascadia Code", monospace;
  --ease:          cubic-bezier(.4, 0, .2, 1);
  --ease-bounce:   cubic-bezier(.34, 1.56, .64, 1);
  --dur:           .2s;
  --dur-md:        .3s;
  --max-w:         1200px;
  --max-w-narrow:  800px;
  --header-h:      72px;
  --z-header:      100;
  --z-overlay:     200;
  --z-modal:       300;
}

[data-theme="dark"] {
  --bg:            #0c1222;
  --bg-alt:        #131c31;
  --bg-glass:      rgba(12,18,34,.8);
  --card:          #162032;
  --card-hover:    #1c2a42;
  --text:          #f1f5f9;
  --text-sec:      #94a3b8;
  --muted:         #64748b;
  --border:        #1e3050;
  --border-light:  #1a2744;
  --accent-soft:   rgba(37,99,235,.15);
  --success-soft:  rgba(5,150,105,.15);
  --warning-soft:  rgba(217,119,6,.15);
  --danger-soft:   rgba(220,38,38,.15);
  --gradient-soft: linear-gradient(135deg, rgba(37,99,235,.2), rgba(124,58,237,.2));
  --shadow-xs:     0 1px 2px rgba(0,0,0,.2);
  --shadow:        0 1px 3px rgba(0,0,0,.25);
  --shadow-md:     0 4px 6px rgba(0,0,0,.3);
  --shadow-lg:     0 10px 15px rgba(0,0,0,.35);
  --shadow-xl:     0 20px 25px rgba(0,0,0,.4);
  --shadow-glow:   0 0 60px rgba(37,99,235,.2);
}

/* ── 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.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--dur) 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; }
h1,h2,h3,h4,h5,h6 { line-height: 1.25; font-weight: 700; color: var(--text); text-wrap: balance; }

/* ── Utilities ──────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; width: 100%; }
.container--narrow { max-width: var(--max-w-narrow); }
.main { flex: 1; padding: 40px 0 80px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.text-gradient { background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-center { text-align: center; }

/* ── Animated Background Blob (hero) ────────────────────── */
.blob-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.blob-bg::before, .blob-bg::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .18; animation: blobFloat 20s ease-in-out infinite;
}
.blob-bg::before {
  width: 600px; height: 600px; top: -200px; left: -100px;
  background: var(--accent);
}
.blob-bg::after {
  width: 500px; height: 500px; bottom: -150px; right: -100px;
  background: var(--accent2); animation-delay: -10s; animation-direction: reverse;
}
[data-theme="dark"] .blob-bg::before, [data-theme="dark"] .blob-bg::after { opacity: .1; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(.95); }
}

/* ── Header ─────────────────────────────────────────────── */
.header {
  height: var(--header-h);
  background: var(--bg-glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: var(--z-header);
  transition: box-shadow var(--dur-md) var(--ease);
}
.header--scrolled { box-shadow: var(--shadow-md); }
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 16px;
}
.header__logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; color: var(--text);
  text-decoration: none; letter-spacing: -.02em; flex-shrink: 0;
}
.header__logo:hover { color: var(--accent); text-decoration: none; }
.header__logo svg { width: 34px; height: 34px; }
.header__nav { display: flex; align-items: center; gap: 4px; }
.header__link {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 500; color: var(--text-sec);
  transition: all var(--dur) var(--ease); text-decoration: none;
}
.header__link:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.header__link--active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Mobile Nav */
.header__mobile-btn {
  display: none; cursor: pointer; padding: 8px;
  color: var(--text); border-radius: var(--radius-sm);
  transition: background var(--dur);
}
.header__mobile-btn:hover { background: var(--bg-alt); }
.mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: var(--z-overlay);
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity var(--dur-md);
}
.mobile-overlay--open { display: block; opacity: 1; }
.mobile-nav {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100%;
  background: var(--card); z-index: var(--z-modal);
  padding: 24px; transition: right var(--dur-md) var(--ease);
  box-shadow: var(--shadow-xl); overflow-y: auto;
}
.mobile-nav--open { right: 0; }
.mobile-nav__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted); transition: all var(--dur);
}
.mobile-nav__close:hover { background: var(--bg-alt); color: var(--text); }
.mobile-nav__links { display: flex; flex-direction: column; gap: 4px; margin-top: 48px; }
.mobile-nav__link {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-weight: 500; color: var(--text); font-size: .95rem;
  transition: all var(--dur); text-decoration: none;
}
.mobile-nav__link:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }

/* ── Theme Toggle ───────────────────────────────────────── */
.theme-toggle {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-sec); flex-shrink: 0;
  transition: all var(--dur) var(--ease);
}
.theme-toggle:hover { background: var(--accent-soft); color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; text-align: center;
  padding: 60px 0 48px; overflow: hidden;
}
.hero__content { position: relative; z-index: 1; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: var(--radius-full);
  background: var(--accent-soft); color: var(--accent);
  font-size: .82rem; font-weight: 600; margin-bottom: 20px;
  border: 1px solid rgba(37,99,235,.15);
  animation: fadeUp .6s var(--ease) both;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800; letter-spacing: -.03em;
  margin-bottom: 16px;
  animation: fadeUp .6s var(--ease) .1s both;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-sec); max-width: 600px;
  margin: 0 auto 28px; line-height: 1.6;
  animation: fadeUp .6s var(--ease) .2s both;
}
.hero__actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .6s var(--ease) .3s both;
}
.hero__privacy {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-full);
  background: var(--success-soft); color: var(--success);
  font-size: .85rem; font-weight: 600;
  border: 1px solid rgba(5,150,105,.2);
  margin-top: 24px;
  animation: fadeUp .6s var(--ease) .4s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Stat Counter Row ───────────────────────────────────── */
.stats-row {
  display: flex; justify-content: center; gap: 48px;
  margin: 40px 0 0; flex-wrap: wrap;
  animation: fadeUp .6s var(--ease) .5s both;
}
.stat-item { text-align: center; }
.stat-item__num {
  font-size: 2rem; font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item__label { font-size: .82rem; color: var(--muted); font-weight: 500; }

/* ── Tool Cards Grid ────────────────────────────────────── */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.tool-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: var(--text);
  box-shadow: var(--shadow);
  transition: all var(--dur-md) var(--ease);
  overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient); opacity: 0;
  transition: opacity var(--dur-md);
}
.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
  text-decoration: none;
}
.tool-card:hover::before { opacity: 1; }
.tool-card__icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.tool-card__icon--merge { background: var(--accent-soft); }
.tool-card__icon--split { background: rgba(124,58,237,.08); }
.tool-card__icon--reorder { background: var(--warning-soft); }
.tool-card__icon--delete { background: var(--danger-soft); }
.tool-card__icon--extract { background: var(--success-soft); }
.tool-card h3 { font-size: 1.15rem; font-weight: 700; }
.tool-card p { font-size: .9rem; color: var(--text-sec); flex: 1; line-height: 1.6; }
.tool-card__cta {
  font-size: .85rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--dur) var(--ease);
}
.tool-card:hover .tool-card__cta { gap: 10px; }

/* ── Section ────────────────────────────────────────────── */
.section { margin: 56px 0; }
.section__header { text-align: center; margin-bottom: 36px; }
.section__title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 800; letter-spacing: -.02em;
  margin-bottom: 8px;
}
.section__desc { color: var(--text-sec); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* ── Feature Cards (why us) ─────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 28px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); transition: all var(--dur-md) var(--ease);
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-card__icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
  background: var(--gradient-soft);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--text-sec); line-height: 1.6; }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px; overflow-x: auto;
  padding: 4px; background: var(--bg-alt); border-radius: var(--radius);
  margin-bottom: 24px; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn {
  padding: 10px 20px; border-radius: var(--radius-sm);
  cursor: pointer; font-weight: 600; font-size: .875rem;
  color: var(--muted); white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.tabs__btn:hover { color: var(--text); background: var(--card); }
.tabs__btn--active {
  background: var(--card); color: var(--accent);
  box-shadow: var(--shadow);
}
.tab-panel { display: none; animation: fadeUp .3s var(--ease); }
.tab-panel--active { display: block; }

/* ── Drop Zone ──────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 24px;
  text-align: center;
  cursor: pointer;
  background: var(--card);
  transition: all var(--dur-md) var(--ease);
  position: relative;
}
.drop-zone:hover, .drop-zone--active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-glow);
}
.drop-zone__icon {
  font-size: 3rem; margin-bottom: 14px;
  filter: grayscale(.3); transition: filter var(--dur);
}
.drop-zone:hover .drop-zone__icon { filter: grayscale(0); }
.drop-zone__text { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.drop-zone__hint { font-size: .82rem; color: var(--muted); }
.drop-zone input[type="file"] { display: none; }

/* ── File List ──────────────────────────────────────────── */
.file-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.file-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--dur) var(--ease);
  animation: fadeUp .3s var(--ease);
}
.file-item:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.file-item--dragging { opacity: .5; transform: scale(.98); }
.file-item__grip { cursor: grab; color: var(--muted); user-select: none; padding: 2px; font-size: 1.1rem; }
.file-item__grip:active { cursor: grabbing; }
.file-item__icon { color: var(--danger); font-size: 1.3rem; flex-shrink: 0; }
.file-item__info { flex: 1; min-width: 0; }
.file-item__name {
  font-weight: 600; font-size: .9rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-item__meta { font-size: .78rem; color: var(--muted); }
.file-item__remove {
  cursor: pointer; color: var(--muted); padding: 6px;
  border-radius: var(--radius-full); transition: all var(--dur);
}
.file-item__remove:hover { color: var(--danger); background: var(--danger-soft); }

/* ── Page Chips ─────────────────────────────────────────── */
.page-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 20px; background: var(--bg-alt);
  border-radius: var(--radius-lg); margin: 16px 0;
  min-height: 68px; border: 1px solid var(--border);
}
.page-chip {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-weight: 700;
  font-size: .9rem; cursor: grab; user-select: none;
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-xs);
}
.page-chip:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.page-chip--selected {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.page-chip--dragging { opacity: .4; transform: scale(.9); }
.page-chip:active { cursor: grabbing; }

/* ── Options Panel ──────────────────────────────────────── */
.options-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  margin: 16px 0; box-shadow: var(--shadow);
}
.options-panel__title {
  font-size: 1rem; font-weight: 700; margin-bottom: 18px;
  display: flex; align-items: center; gap: 8px;
}
.form-group { margin-bottom: 18px; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  display: block; font-size: .85rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text-sec);
}
.form-input, .form-select {
  width: 100%; padding: 11px 16px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .9rem;
  transition: all var(--dur) var(--ease);
}
.form-input:focus, .form-select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-hint { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.toggle-group { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle-btn {
  padding: 9px 18px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg);
  cursor: pointer; font-size: .85rem; font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.toggle-btn--active {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: all var(--dur) var(--ease);
  text-decoration: none; position: relative; overflow: hidden;
}
.btn:hover { text-decoration: none; }
.btn--primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(37,99,235,.35); }
.btn--secondary {
  background: var(--card); color: var(--text);
  border: 1.5px solid var(--border); box-shadow: var(--shadow);
}
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-md); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: var(--danger-hover); transform: translateY(-2px); }
.btn--ghost { color: var(--accent); padding: 8px 16px; }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--sm { padding: 8px 18px; font-size: .85rem; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── Progress ───────────────────────────────────────────── */
.progress-wrap { margin: 16px 0; display: none; }
.progress-wrap--visible { display: block; animation: fadeUp .3s var(--ease); }
.progress-bar {
  height: 6px; background: var(--bg-alt);
  border-radius: var(--radius-full); overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: var(--gradient);
  border-radius: var(--radius-full);
  width: 0; transition: width .4s var(--ease);
}
.progress-text { font-size: .82rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* ── Result List ────────────────────────────────────────── */
.result-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.result-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-xs); animation: fadeUp .3s var(--ease);
}
.result-item__info { flex: 1; min-width: 0; }
.result-item__name { font-weight: 600; font-size: .9rem; word-break: break-all; }
.result-item__size { font-size: .78rem; color: var(--muted); margin-top: 2px; }

/* ── Alerts ─────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius);
  font-size: .9rem; margin: 12px 0;
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.5; border: 1px solid transparent;
}
.alert--info    { background: var(--accent-soft);  color: var(--accent);  border-color: rgba(37,99,235,.15); }
.alert--success { background: var(--success-soft); color: var(--success); border-color: rgba(5,150,105,.15); }
.alert--warning { background: var(--warning-soft); color: var(--warning); border-color: rgba(217,119,6,.15); }
.alert--error   { background: var(--danger-soft);  color: var(--danger);  border-color: rgba(220,38,38,.15); }

/* ── Breadcrumb ─────────────────────────────────────────── */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 4px;
  font-size: .82rem; color: var(--muted); margin-bottom: 28px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb__sep { margin: 0 4px; opacity: .5; }

/* ── Content (article prose) ────────────────────────────── */
.content { max-width: var(--max-w-narrow); }
.content h2 { font-size: 1.5rem; margin: 36px 0 14px; letter-spacing: -.02em; }
.content h3 { font-size: 1.2rem; margin: 28px 0 10px; }
.content p { margin-bottom: 16px; color: var(--text-sec); line-height: 1.8; }
.content ul, .content ol { margin: 0 0 16px 24px; }
.content li { margin-bottom: 8px; color: var(--text-sec); list-style: disc; line-height: 1.7; }
.content ol li { list-style: decimal; }
.content strong { color: var(--text); font-weight: 600; }
.content a { font-weight: 500; text-decoration: underline; text-decoration-color: rgba(37,99,235,.3); text-underline-offset: 2px; }
.content a:hover { text-decoration-color: var(--accent); }
.content blockquote {
  border-left: 4px solid var(--accent); padding: 14px 20px;
  background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0; font-style: italic; color: var(--text-sec);
}
.content code {
  background: var(--bg-alt); padding: 2px 7px;
  border-radius: 4px; font-family: var(--mono); font-size: .85em;
}

/* ── FAQ Accordion ──────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur);
}
.faq-item:hover { box-shadow: var(--shadow-md); }
.faq-item__q {
  width: 100%; padding: 18px 22px;
  cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  font-weight: 600; font-size: .95rem;
  text-align: left; color: var(--text);
  transition: color var(--dur);
}
.faq-item__q:hover { color: var(--accent); }
.faq-item__q-icon {
  width: 24px; height: 24px; border-radius: var(--radius-full);
  background: var(--bg-alt); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: .9rem;
  color: var(--muted); transition: all var(--dur-md);
}
.faq-item--open .faq-item__q-icon { background: var(--accent); color: #fff; transform: rotate(45deg); }
.faq-item__a {
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur-md) var(--ease);
}
.faq-item--open .faq-item__a { max-height: 600px; }
.faq-item__a-inner {
  padding: 0 22px 20px; font-size: .9rem;
  color: var(--text-sec); line-height: 1.7;
}

/* ── Search ─────────────────────────────────────────────── */
.search-box { position: relative; margin-bottom: 24px; }
.search-box__input {
  width: 100%; padding: 16px 20px 16px 52px;
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius-lg); font-size: 1rem;
  transition: all var(--dur) var(--ease); box-shadow: var(--shadow);
}
.search-box__input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}
.search-box__icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 1.1rem;
}
.search-filters { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.search-filter {
  padding: 7px 16px; border-radius: var(--radius-full);
  background: var(--card); border: 1px solid var(--border);
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all var(--dur); box-shadow: var(--shadow-xs);
}
.search-filter:hover, .search-filter--active {
  background: var(--accent); color: #fff;
  border-color: var(--accent); box-shadow: 0 2px 8px rgba(37,99,235,.25);
}
.search-results { display: flex; flex-direction: column; gap: 12px; }
.search-result {
  padding: 18px 22px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--dur); box-shadow: var(--shadow-xs);
  text-decoration: none; display: block; color: var(--text);
}
.search-result:hover { border-color: var(--accent); box-shadow: var(--shadow-md); text-decoration: none; }
.search-result__cat {
  font-size: .72rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px;
}
.search-result__title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; color: var(--text); }
.search-result__desc { font-size: .85rem; color: var(--text-sec); }

/* ── Hub Grid ───────────────────────────────────────────── */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.hub-card {
  padding: 24px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  transition: all var(--dur-md) var(--ease);
  box-shadow: var(--shadow-xs);
}
.hub-card:hover {
  border-color: var(--accent); box-shadow: var(--shadow-lg);
  transform: translateY(-2px); text-decoration: none;
}
.hub-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.hub-card p { font-size: .88rem; color: var(--text-sec); line-height: 1.6; }

/* ── Link List / Link Card ──────────────────────────────── */
.link-list { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.link-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text);
  transition: all var(--dur) var(--ease);
  box-shadow: var(--shadow-xs);
}
.link-card:hover {
  border-color: var(--accent); transform: translateX(6px);
  box-shadow: var(--shadow-md); text-decoration: none;
}
.link-card__arrow { color: var(--accent); font-weight: 700; transition: transform var(--dur); }
.link-card:hover .link-card__arrow { transform: translateX(4px); }

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  background: var(--gradient); color: #fff;
  padding: 40px 32px; border-radius: var(--radius-xl);
  text-align: center; margin: 40px 0;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h3 { color: #fff; font-size: 1.4rem; margin-bottom: 10px; }
.cta-banner p { opacity: .9; margin-bottom: 20px; font-size: 1rem; }
.cta-banner .btn { background: #fff; color: var(--accent); font-weight: 700; }
.cta-banner .btn:hover { background: rgba(255,255,255,.9); box-shadow: 0 4px 16px rgba(0,0,0,.15); }

/* ── Tool Section Title ─────────────────────────────────── */
.section-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; letter-spacing: -.02em; }

/* ── Guide Links ────────────────────────────────────────── */
.guides-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.guide-link {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  font-weight: 600; color: var(--text); text-decoration: none;
  transition: all var(--dur) var(--ease); box-shadow: var(--shadow-xs);
}
.guide-link:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none;
}
.guide-link__icon { font-size: 1.2rem; flex-shrink: 0; }

/* ── How-it-works Steps ─────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; margin: 32px 0; }
.step {
  display: flex; gap: 20px; padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step__num {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.step__content { flex: 1; }
.step__title { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.step__desc { font-size: .88rem; color: var(--text-sec); line-height: 1.6; }

/* ── Contact Form ───────────────────────────────────────── */
.contact-form { max-width: 600px; }
.contact-form textarea.form-input { min-height: 150px; resize: vertical; }

/* ── Ad Slots ───────────────────────────────────────────── */
.ad-slot { text-align: center; padding: 8px 0; min-height: 90px; overflow: hidden; }
.ad-slot--top { margin-bottom: 24px; }
.ad-slot--mid { margin: 32px 0; }
.ad-slot--bottom { margin-top: 32px; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--card); border-top: 1px solid var(--border);
  padding: 48px 0 24px; margin-top: auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px; margin-bottom: 36px;
}
.footer__col-title { font-weight: 700; font-size: .9rem; margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a {
  color: var(--muted); font-size: .85rem;
  text-decoration: none; transition: all var(--dur);
}
.footer__links a:hover { color: var(--accent); transform: translateX(2px); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  font-size: .8rem; color: var(--muted);
}
.footer__bottom-links { display: flex; gap: 16px; }
.footer__bottom-links a { color: var(--muted); text-decoration: none; }
.footer__bottom-links a:hover { color: var(--accent); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__mobile-btn { display: flex; }
  .hero h1 { font-size: 1.7rem; }
  .hero { padding: 40px 0 32px; }
  .tool-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 24px; }
  .stat-item__num { font-size: 1.5rem; }
  .section { margin: 40px 0; }
  .step { gap: 14px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  :root { --header-h: 60px; }
  .container { padding: 0 16px; }
  .drop-zone { padding: 36px 16px; }
  .btn { padding: 11px 22px; font-size: .9rem; }
  .page-chip { width: 42px; height: 42px; font-size: .8rem; }
  .cta-banner { padding: 28px 20px; }
}

/* ── Print ──────────────────────────────────────────────── */
@media print {
  .header, .footer, .ad-slot, .drop-zone,
  .theme-toggle, .btn, .tabs, .page-chips,
  .header__mobile-btn, .mobile-nav, .mobile-overlay,
  .blob-bg { display: none !important; }
  body { background: #fff; color: #000; }
  .content { max-width: 100%; }
  .hero { padding: 20px 0; }
}
