@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ─── Variables ───────────────────────────────────────────────────────────── */
:root {
  --bg:           #0c110f;
  --surface:      #121a17;
  --surface-2:    #18221e;
  --border:       #22302a;
  --border-bright:#31453c;
  --text:         #e7efe9;
  --text-muted:   #8ca69a;
  --primary:      #3ce8a4;
  --primary-dk:   #2bd190;
  --primary-dim:  rgba(60,232,164,.12);
  --primary-ink:  #052e1f;
  --accent:       #ffc857;
  --success:      #3ce8a4;
  --success-bg:   rgba(60,232,164,.10);
  --warn:         #ffc857;
  --warn-bg:      rgba(255,200,87,.12);
  --error:        #ff7575;
  --dark:         #080d0b;
  --radius:       10px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.4);
  --shadow-md:    0 12px 36px rgba(0,0,0,.5), 0 2px 8px rgba(0,0,0,.35);
  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(60,232,164,.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60,232,164,.022) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
img { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  background: rgba(8,13,11,.88);
  border-bottom: 1px solid rgba(60,232,164,.12);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  max-width: 960px;
  margin: 0 auto;
  min-height: 52px;
  flex-wrap: wrap;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.01em;
  padding: 12px 0;
  white-space: nowrap;
}
.nav__brand:hover { text-decoration: none; color: var(--primary); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  flex-wrap: wrap;
  padding: 8px 0;
}

.nav__links a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .1s, color .1s;
}
.nav__links a:hover { color: var(--primary); background: rgba(60,232,164,.07); text-decoration: none; }
.nav__links a.active { color: var(--primary); background: rgba(60,232,164,.11); }

.nav__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(60,232,164,.08);
  border: 1px solid rgba(60,232,164,.22);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.07em;
}

/* ─── Landing Hero ────────────────────────────────────────────────────────── */
.landing-hero {
  background:
    radial-gradient(ellipse 80% 60% at 18% 45%, rgba(60,232,164,.13) 0%, transparent 58%),
    radial-gradient(ellipse 60% 80% at 82% 38%, rgba(255,200,87,.06) 0%, transparent 58%),
    radial-gradient(rgba(60,232,164,.05) 1px, transparent 1px),
    var(--dark);
  background-size: auto, auto, 28px 28px, auto;
  color: var(--text);
  padding: 76px 0 80px;
  text-align: center;
}

.landing-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
  background: rgba(60,232,164,.07);
  border: 1px solid rgba(60,232,164,.2);
  padding: 5px 14px 5px 10px;
  border-radius: 999px;
}

.landing-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 22px;
}

.landing-hero__headline::after {
  content: '_';
  color: var(--primary);
  animation: caretBlink 1.1s steps(1) infinite;
}

@keyframes caretBlink { 50% { opacity: 0; } }

.landing-hero__sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.landing-hero__sub strong { color: var(--text); }

.landing-hero__cta { margin-bottom: 36px; }

/* ─── Trust Bar ───────────────────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(60,232,164,.05);
  border: 1px solid rgba(60,232,164,.16);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 7px 14px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.trust-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px rgba(60,232,164,.8);
  flex-shrink: 0;
}

.trust-badge svg { display: none; }

/* ─── Tool Cards (landing page) ───────────────────────────────────────────── */
.tools-section { padding: 56px 0; }

.tools-section .section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.tool-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 640px) {
  .tool-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .tool-cards > .tool-card {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}

@media (max-width: 639px) {
  .nav__links { display: none; }
  .nav__badge { margin-left: auto; }
  .landing-hero { padding: 48px 0 52px; }
  .landing-hero__sub { font-size: 1rem; }
  .tools-section { padding: 36px 0; }
  .tool-header { padding: 24px 0 28px; }
  .main { padding: 24px 0 40px; }
  .dropzone { padding: 32px 16px; }
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s, border-color .22s;
}

.tool-card:hover {
  box-shadow: 0 16px 48px rgba(60,232,164,.09), 0 4px 12px rgba(0,0,0,.35);
  transform: translateY(-4px);
  border-color: rgba(60,232,164,.32);
}

.tool-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform .22s cubic-bezier(.22,.68,0,1.2);
}

.tool-card:hover .tool-card__icon {
  transform: scale(1.1) rotate(-4deg);
}

.tool-card__icon--metadata { background: rgba(60,232,164,.12);  color: var(--primary); }
.tool-card__icon--convert  { background: rgba(184,166,250,.12); color: #b8a6fa; }
.tool-card__icon--pdf      { background: rgba(255,158,100,.12); color: #ff9e64; }
.tool-card__icon--images   { background: rgba(122,162,247,.12); color: #7aa2f7; }
.tool-card__icon--bg       { background: rgba(244,114,182,.12); color: #f472b6; }
.tool-card__icon--map      { background: rgba(255,200,87,.12);  color: var(--accent); }
.tool-card__icon--office   { background: rgba(94,210,255,.12);  color: #5ed2ff; }
.tool-card__icon--redact   { background: rgba(255,117,117,.12); color: var(--error); }

.tool-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.tool-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.tool-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  transition: transform .22s, gap .22s;
}

.tool-card__link:hover { text-decoration: none; }

.tool-card:hover .tool-card__link {
  transform: translateX(5px);
  gap: 10px;
}

/* ─── Why Privacy Section ─────────────────────────────────────────────────── */
.why-section {
  background: var(--dark);
  color: #fff;
  padding: 56px 0;
}

.why-section .section-title { color: var(--text); margin-bottom: 12px; }
.why-sub { color: var(--text-muted); font-size: 1rem; margin-bottom: 40px; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-item {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(255,255,255,.03);
  transition: background .2s, border-color .2s;
}

.why-item:hover {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.13);
}

.why-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: rgba(60,232,164,.09);
  color: var(--primary);
}
.why-item__title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.why-item__body  { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; }

/* ─── Tool Page Header ────────────────────────────────────────────────────── */
.tool-header {
  background:
    radial-gradient(ellipse 70% 90% at 22% 20%, rgba(60,232,164,.08) 0%, transparent 60%),
    var(--dark);
  color: var(--text);
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--border);
}

.tool-header__headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.tool-header__sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.tool-header__sub strong { color: var(--text); }

/* ─── Main ────────────────────────────────────────────────────────────────── */
.main { padding: 40px 0 60px; }

/* ─── Drop Zone ───────────────────────────────────────────────────────────── */
.dropzone {
  position: relative;
  background: linear-gradient(180deg, rgba(60,232,164,.035), transparent 65%), var(--surface);
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.dropzone::before {
  content: '';
  position: absolute;
  inset: 9px;
  pointer-events: none;
  background:
    linear-gradient(var(--primary), var(--primary)) left 0 top 0 / 16px 2px,
    linear-gradient(var(--primary), var(--primary)) left 0 top 0 / 2px 16px,
    linear-gradient(var(--primary), var(--primary)) right 0 top 0 / 16px 2px,
    linear-gradient(var(--primary), var(--primary)) right 0 top 0 / 2px 16px,
    linear-gradient(var(--primary), var(--primary)) left 0 bottom 0 / 16px 2px,
    linear-gradient(var(--primary), var(--primary)) left 0 bottom 0 / 2px 16px,
    linear-gradient(var(--primary), var(--primary)) right 0 bottom 0 / 16px 2px,
    linear-gradient(var(--primary), var(--primary)) right 0 bottom 0 / 2px 16px;
  background-repeat: no-repeat;
  opacity: .45;
  transition: opacity .15s, inset .15s;
}

.dropzone:hover, .dropzone--over {
  border-color: rgba(60,232,164,.55);
  background: linear-gradient(180deg, rgba(60,232,164,.07), transparent 70%), var(--surface);
  box-shadow: 0 0 0 4px rgba(60,232,164,.07), 0 0 36px rgba(60,232,164,.05);
}

.dropzone:hover::before, .dropzone--over::before { opacity: 1; inset: 6px; }

.dropzone__inner { pointer-events: none; }
.dropzone__inner .btn { pointer-events: auto; }
.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; opacity: 0; }
.dropzone__icon { color: var(--text-muted); margin: 0 auto 16px; }
.dropzone--over .dropzone__icon { color: var(--primary); }
.dropzone__primary { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.dropzone__secondary { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }
.dropzone__hint { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.74rem; margin-top: 14px; }

.dropzone__privacy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
  margin-top: 10px;
  background: var(--success-bg);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ─── Compress Controls ───────────────────────────────────────────────────── */
.controls-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
}

.control-group { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }

.control-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.control-group label span { color: var(--primary); }

.slider {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  width: 100%;
  display: block;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(60,232,164,.18);
}

.select {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  outline: none;
  width: 100%;
  display: block;
}
.select:focus { border-color: var(--primary); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
label.btn, button.btn, .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  padding: 9px 18px;
  border-radius: 9px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .14s, box-shadow .14s, transform .1s, border-color .14s, color .14s;
  pointer-events: auto;
  white-space: nowrap;
  user-select: none;
}
label.btn:active, button.btn:active, .btn:active { transform: translateY(1px); }
button.btn:disabled, .btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; transform: none !important; }

.btn--primary   { background: var(--primary); color: var(--primary-ink); box-shadow: 0 2px 14px rgba(60,232,164,.3); border-color: rgba(0,0,0,.25); }
.btn--primary:hover { background: #5ff0b7; color: var(--primary-ink); text-decoration: none; box-shadow: 0 4px 22px rgba(60,232,164,.45); }
.btn--secondary { background: var(--surface-2); color: var(--text); border-color: var(--border-bright); box-shadow: var(--shadow-sm); }
.btn--secondary:hover { background: var(--border); text-decoration: none; }
.btn--ghost     { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn--ghost:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.btn--download  { background: var(--success-bg); color: var(--success); border-color: rgba(60,232,164,.35); font-size: 0.85rem; padding: 9px 18px; }
.btn--download:hover { background: var(--primary); color: var(--primary-ink); text-decoration: none; }

/* ─── Results ─────────────────────────────────────────────────────────────── */
.results-section { margin-bottom: 48px; }

.results-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.results-header h2 { font-size: 1.1rem; font-weight: 700; flex: 1; }
.results-actions { display: flex; gap: 8px; }

/* ─── File Cards ──────────────────────────────────────────────────────────── */
.file-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .file-list { grid-template-columns: 1fr 1fr; }
}

.file-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

.file-card--processing { opacity: .65; }

.file-card__thumb {
  width: 68px; height: 68px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.file-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.thumb-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.file-card__body { flex: 1; min-width: 0; }

.file-card__name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.file-card__sizes { font-family: var(--font-mono); font-size: 0.71rem; color: var(--text-muted); margin-bottom: 8px; }
.file-card__note { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; opacity: 0.75; }

.meta-list { display: flex; flex-direction: column; gap: 3px; }

.meta-item {
  font-size: 0.77rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.4;
}

.meta-item::before { content: '–'; flex-shrink: 0; color: var(--border); }
.meta-item--gps { color: var(--warn); font-weight: 600; }
.meta-item--gps::before { content: '⚑'; color: var(--warn); }

.no-meta { font-size: 0.77rem; color: var(--text-muted); margin-top: 6px; }

.file-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--gps     { background: var(--warn-bg);    color: var(--warn); }
.badge--clean   { background: var(--success-bg); color: var(--success); }
.badge--savings { background: rgba(122,162,247,.14); color: #7aa2f7; }
.badge--none    { background: var(--surface-2);  color: var(--text-muted); }

/* ─── Steps ───────────────────────────────────────────────────────────────── */
.steps-section { margin-bottom: 48px; }
.section-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 24px; }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.step__num {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-ink);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step__title { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.step__body  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.step__body strong { color: var(--text); }

/* ─── Info Section ────────────────────────────────────────────────────────── */
.info-section { margin-bottom: 16px; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 720px) { .info-grid { grid-template-columns: 1fr 280px; } }

.info-main h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.info-main h3 { font-size: 0.95rem; font-weight: 700; margin: 22px 0 12px; }
.info-main p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; }
.info-main p strong { color: var(--text); }

.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }

.tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  padding: 4px 11px;
  border-radius: 6px;
}

/* Privacy card */
.privacy-card {
  background: var(--dark);
  border: 1px solid rgba(60,232,164,.18);
  color: var(--text);
  border-radius: var(--radius);
  padding: 26px 22px;
  align-self: start;
}

.privacy-card svg { color: var(--primary); margin-bottom: 14px; }
.privacy-card h3  { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.privacy-card ul  { display: flex; flex-direction: column; gap: 9px; }

.privacy-card li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.privacy-card li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 44px 0;
  font-size: 0.84rem;
}

.footer__inner { display: flex; flex-direction: column; gap: 10px; }

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.footer__statement { color: var(--text-muted); line-height: 1.6; }
.footer__statement strong { color: var(--text); }
.footer__nav { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.76rem; }
.footer__nav a { color: var(--primary); }
.footer__nav a:hover { color: #7df3c4; }
.footer__tech { font-size: 0.76rem; color: #3d524a; line-height: 1.6; }

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-section { margin-bottom: 48px; }

.faq-section details {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq-section details:first-of-type { border-top: 1px solid var(--border); }

.faq-section summary {
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-section summary::-webkit-details-marker { display: none; }

.faq-section summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1;
}

.faq-section details[open] summary::after { content: '−'; }

.faq-section details p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  padding-top: 12px;
}

.faq-section details p strong { color: var(--text); }

/* ─── Merge Tool ──────────────────────────────────────────────────────────── */
.merge-list { display: flex; flex-direction: column; gap: 10px; }

.merge-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.merge-item__num {
  width: 26px; height: 26px;
  background: var(--primary);
  color: var(--primary-ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.merge-item__name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.merge-item__size { font-size: 0.77rem; color: var(--text-muted); flex-shrink: 0; }
.merge-item__actions { display: flex; gap: 4px; flex-shrink: 0; }

.merge-btn {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
  font-family: inherit;
}

.merge-btn:hover:not(:disabled) { background: var(--border); }
.merge-btn:disabled { opacity: 0.3; cursor: default; }
.merge-btn--remove { color: var(--error); }

/* ─── Tool Header Breadcrumb ──────────────────────────────────────────────── */
.tool-header__breadcrumb {
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.tool-header__breadcrumb a { color: var(--text-muted); }
.tool-header__breadcrumb a:hover { color: var(--primary); text-decoration: none; }

/* ─── Generic Inputs ──────────────────────────────────────────────────────── */
.input {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}
.input:focus { border-color: var(--primary); }
.input--num  { width: 100px; }
.input--text { width: 180px; }

/* ─── Aspect Ratio / Checkbox Label ──────────────────────────────────────── */
.ar-lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  user-select: none;
}
.ar-lock input[type="checkbox"] { cursor: pointer; width: 15px; height: 15px; }

.control-group--check { justify-content: flex-end; }

.controls-row--sub {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ─── Transform Buttons (rotate tool) ────────────────────────────────────── */
.transform-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.transform-btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background .1s, border-color .1s, color .1s;
  line-height: 1;
}
.transform-btn:hover  { background: var(--surface-2); border-color: var(--primary); }
.transform-btn.active { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

/* ─── Crop Tool ───────────────────────────────────────────────────────────── */
.crop-stage-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  overflow: auto;
  margin-bottom: 16px;
}

.crop-stage {
  position: relative;
  display: inline-block;
  cursor: crosshair;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

#cropImg {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  border-radius: 4px;
}

.crop-box {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.45);
  cursor: move;
  touch-action: none;
}

.crop-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.25);
  border-radius: 2px;
}
.crop-handle[data-handle="nw"] { top: -5px;  left: -5px;            cursor: nw-resize; }
.crop-handle[data-handle="n"]  { top: -5px;  left: calc(50% - 5px); cursor: n-resize;  }
.crop-handle[data-handle="ne"] { top: -5px;  right: -5px;           cursor: ne-resize; }
.crop-handle[data-handle="e"]  { top: calc(50% - 5px); right: -5px; cursor: e-resize;  }
.crop-handle[data-handle="se"] { bottom: -5px; right: -5px;         cursor: se-resize; }
.crop-handle[data-handle="s"]  { bottom: -5px; left: calc(50% - 5px); cursor: s-resize; }
.crop-handle[data-handle="sw"] { bottom: -5px; left: -5px;          cursor: sw-resize; }
.crop-handle[data-handle="w"]  { top: calc(50% - 5px); left: -5px;  cursor: w-resize;  }

.crop-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.crop-dims {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.crop-controls__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── Rename Tool ─────────────────────────────────────────────────────────── */
.rename-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rename-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  gap: 10px 14px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  min-width: 0;
}

.rename-item__orig {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
  min-width: 0;
}

.rename-item__arrow {
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

.rename-item__new {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  min-width: 0;
}

.rename-item__actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}

@media (max-width: 600px) {
  .rename-item {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .rename-item__orig { grid-column: 1; color: var(--text-muted); font-size: 0.8rem; }
  .rename-item__arrow { display: none; }
  .rename-item__new  { grid-column: 1; }
  .rename-item__actions { grid-column: 2; grid-row: 1 / 3; }
}

/* ─── Photo Studio Editor ─────────────────────────────────────────────────── */

#studioSection:not([hidden]) {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 52px);
  overflow: hidden;
}

.editor-wrap {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* Sidebar */
.editor-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.editor-tab-bar {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.editor-tab-bar::-webkit-scrollbar { display: none; }

.editor-tab-btn {
  padding: 11px 14px;
  font-size: 0.79rem;
  font-weight: 600;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  flex-shrink: 0;
  font-family: inherit;
  transition: color .15s;
}
.editor-tab-btn--active { color: var(--primary); border-bottom-color: var(--primary); }
.editor-tab-btn:hover:not(.editor-tab-btn--active) { color: var(--text); }

.editor-panels { flex: 1; overflow-y: auto; }

.editor-panel { padding: 16px; }
.editor-panel:not([hidden]) { display: block; }

.editor-panel__hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.editor-panel h3 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 16px 0 10px;
}
.editor-panel h3:first-child { margin-top: 0; }

/* Canvas area */
.editor-canvas-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #060a08;
  min-width: 0;
  overflow: hidden;
}

.editor-canvas-inner {
  flex: 1;
  overflow: hidden;
  display: flex;
  min-height: 0;
}

/* CropperJS zone — :not([hidden]) prevents display:flex from beating [hidden]{display:none} */
.cropper-zone:not([hidden]) {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* Preview canvas zone */
.preview-wrap:not([hidden]) {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
#previewCanvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 3px;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
  transform-origin: 50% 50%;
  cursor: default;
}
.preview-wrap--zoomed #previewCanvas { cursor: grab; }
.preview-wrap--zoomed #previewCanvas:active { cursor: grabbing; }

/* Bottom actions bar */
.editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  gap: 10px;
}
.editor-actions__filename {
  font-size: 0.78rem;
  color: rgba(255,255,255,.4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.editor-actions__right { display: flex; gap: 8px; flex-shrink: 0; }

/* Edit panel compact controls */
.edit-btn-group { margin-bottom: 10px; }
.edit-btn-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.edit-btn-row { display: flex; gap: 6px; }
.edit-btn {
  flex: 1;
  font-size: 0.78rem;
  padding: 7px 4px;
  justify-content: center;
  min-width: 0;
}

/* Resize inputs */
.resize-row {
  display: grid;
  grid-template-columns: 1fr 28px 1fr;
  align-items: end;
  gap: 6px;
  margin-bottom: 12px;
}
.resize-row .control-group { min-width: 0; }
.resize-lock-btn {
  width: 28px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color .15s, color .15s;
  flex-shrink: 0;
  padding: 0;
}
.resize-lock-btn--active { border-color: var(--primary); color: var(--primary); }

/* Adjustment sliders */
.adj-row { margin-bottom: 14px; }
.adj-row:last-of-type { margin-bottom: 0; }
.adj-row__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}
.adj-row__label { font-size: 0.82rem; font-weight: 600; color: var(--text); }
.adj-row__val   { font-size: 0.78rem; color: var(--text-muted); min-width: 30px; text-align: right; }

/* Filter presets */
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 16px;
}
.filter-btn {
  padding: 8px 4px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
  font-size: 0.77rem;
  font-weight: 600;
  text-align: center;
  font-family: inherit;
  transition: border-color .15s, background .15s;
  line-height: 1.3;
}
.filter-btn:hover { border-color: var(--border-bright); }
.filter-btn--active { border-color: var(--primary); background: var(--primary-dim); color: var(--primary); }

/* Export options row (above actions bar) */
.export-options {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 7px 14px;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.export-options__field:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 8px;
}
.export-options__label {
  font-size: 0.78rem;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
}
.export-options__val {
  font-size: 0.78rem;
  color: rgba(255,255,255,.85);
  min-width: 32px;
}
.export-options__size {
  margin-left: auto;
  font-size: 0.78rem;
  color: rgba(255,255,255,.85);
}
.select--sm { padding: 3px 6px; font-size: 0.8rem; width: auto; }
.slider--sm  { width: 90px; }
.quality-presets { display: flex; gap: 2px; }
.quality-btn {
  padding: 2px 9px;
  font-size: 0.75rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 3px;
  color: rgba(255,255,255,.6);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.quality-btn:hover:not(:disabled):not(.quality-btn--active) { background: rgba(255,255,255,.18); color: #fff; }
.quality-btn--active { background: var(--primary); border-color: transparent; color: var(--primary-ink); }
.quality-btn:disabled { opacity: 0.3; cursor: default; }
.export-options__hint { font-size: 0.72rem; color: rgba(255,255,255,.4); white-space: nowrap; }

/* Editor drop section */
.editor-drop-wrap {
  padding: 40px 0 60px;
}

/* Mobile */
@media (max-width: 767px) {
  #studioSection { height: calc(100vh - 52px); overflow: hidden; }

  .editor-wrap { flex-direction: column-reverse; }

  .editor-sidebar {
    width: 100%;
    min-width: 0;
    border-right: none;
    border-top: 1px solid var(--border);
    height: 280px;
    min-height: 0;
    flex-shrink: 0;
    max-height: none;
  }

  .editor-canvas-area { flex: 1; min-height: 0; height: auto; max-height: none; }

  /* On Edit tab mobile: hide the preview panel (CropperJS takes full width) */
  .mode-edit .preview-wrap { display: none; }
  .mode-edit .cropper-zone { border-right: none; }

  .editor-actions__filename { display: none; }

  .cropper-zone, .preview-wrap { padding: 12px; }
}

/* ── Single-panel sidebar controls ────────────────────────────────────────── */

.editor-controls {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 20px;
}

.ctrl-section {
  padding: 14px 16px 6px;
}

.ctrl-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.ctrl-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.ctrl-section-header .ctrl-section-title { margin-bottom: 0; }

.ctrl-section-action {
  font-size: 0.72rem;
  padding: 3px 8px;
  color: var(--text-muted);
  border-color: transparent;
}

.ctrl-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0 0;
}

/* ── Zoom bar + hint overlay ───────────────────────────────────────────────── */

.zoom-bar {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: auto;
  left: auto;
  transform: none;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 5px 12px;
  user-select: none;
}
.zoom-bar__btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 2px;
  font-family: inherit;
}
.zoom-bar__btn:hover { color: #fff; }
.zoom-bar__slider { width: 90px; }
.zoom-bar__val {
  font-size: 0.75rem;
  color: #94a3b8;
  min-width: 38px;
  text-align: right;
}
.zoom-hint {
  position: absolute;
  top: 60px;
  right: 14px;
  bottom: auto;
  left: auto;
  transform: none;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
  white-space: nowrap;
}

/* ─── PDF Tools — Tab Nav ─────────────────────────────────────────────────── */
.tool-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.tool-tab {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background .12s, color .12s;
  white-space: nowrap;
  line-height: 1;
}

.tool-tab:hover { background: var(--surface-2); color: var(--text); }

.tool-tab--active {
  background: var(--primary);
  color: var(--primary-ink);
}
.tool-tab--active:hover { background: var(--primary-dk); color: var(--primary-ink); }

/* ─── PDF Tools — Tab Panes ──────────────────────────────────────────────── */
.tab-pane { display: none; }
.tab-pane--active { display: block; }

/* ─── PDF Tools — Page Grid ──────────────────────────────────────────────── */
.page-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.page-card {
  width: 106px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 7px 7px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  user-select: none;
  transition: border-color .15s, box-shadow .15s, opacity .2s, transform .15s;
}

.page-card:active { cursor: grabbing; }
.page-card:hover  { border-color: var(--border-bright); box-shadow: var(--shadow-md); }

.page-card--deleted { opacity: 0.3; }
.page-card--deleted .page-card__overlay { opacity: 1 !important; }

.page-card--dragging {
  opacity: 0.35;
  transform: scale(1.04) rotate(1deg);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.page-card--drag-over {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60,232,164,.22);
  transform: scale(1.02);
}

.page-card--skeleton { cursor: default; }
.page-card--skeleton:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }

/* ─── Thumbnail + Hover Overlay ──────────────────────────────────────────── */
.page-card__thumb-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  width: 90px;
  height: 117px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-card__canvas {
  display: block;
  max-width: 90px;
  max-height: 117px;
  object-fit: contain;
  background: var(--bg);
  transition: opacity .25s;
}

.page-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 13, 11, .62);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity .15s;
}

.page-card:hover .page-card__overlay { opacity: 1; }

.page-action-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  padding: 0;
  transition: background .1s, border-color .1s;
}

.page-action-btn:hover { background: rgba(255,255,255,.28); }
.page-action-btn--delete:hover { background: rgba(220,38,38,.75); border-color: rgba(220,38,38,.9); }

/* ─── Page Number & Shimmer ──────────────────────────────────────────────── */
.page-card__num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1;
}

.page-card__shimmer {
  width: 90px;
  height: 117px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── PDF Tools — Controls Bar (Split / Protect / From Images) ───────────── */
.controls-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.controls-bar p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.controls-bar .control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.controls-bar .control-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.controls-bar .results-actions {
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ─── Mobile overrides ───────────────────────────────────────────────────── */
@media (max-width: 639px) {
  .tool-tabs { padding: 4px; gap: 2px; }
  .tool-tab  { font-size: 0.79rem; padding: 7px 12px; }
  .page-card { width: 82px; }
  .page-card__thumb-wrap { width: 68px; height: 88px; }
  .page-card__canvas { max-width: 68px; max-height: 88px; }
  .page-card__shimmer { width: 68px; height: 88px; }
  .page-card__overlay { opacity: 1; }
  .page-action-btn { width: 24px; height: 24px; font-size: 0.75rem; }
}
.zoom-hint--visible { opacity: 1; }

/* ─── PDF Editor — Page Preview Modal ───────────────────────────────────── */
.page-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.page-modal__inner {
  position: relative;
  background: var(--surface);
  border-radius: 14px;
  padding: 48px 24px 24px;
  max-width: min(92vw, 560px);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.page-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background .15s, color .15s;
  font-family: inherit;
  line-height: 1;
}
.page-modal__close:hover { background: var(--border); color: var(--text); }

.page-modal__img {
  display: block;
  max-width: 100%;
  max-height: calc(80vh - 100px);
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.page-modal__label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ─── PDF Editor — Toolbar ───────────────────────────────────────────────── */
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.editor-toolbar__info {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-toolbar__actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 639px) {
  .editor-toolbar { padding: 10px 12px; }
  .editor-toolbar__actions { width: 100%; }
}

/* ─── PDF Studio Editor ────────────────────────────────────────────────────── */
#pdfStudioSection:not([hidden]) {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 52px);
  overflow: hidden;
}

/* Preview pane — fills the editor-canvas-inner */
.pdf-preview-area {
  background: var(--dark);
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.pdf-preview-empty {
  color: rgba(255,255,255,.22);
  font-size: 0.88rem;
  text-align: center;
  user-select: none;
}

.pdf-preview-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 6px 32px rgba(0,0,0,.6);
  transform-origin: 50% 50%;
  cursor: default;
}

/* ─── Filmstrip ──────────────────────────────────────────────────────────── */
.pdf-strip-wrap {
  flex-shrink: 0;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 10px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent;
}
.pdf-strip-wrap::-webkit-scrollbar { height: 4px; }
.pdf-strip-wrap::-webkit-scrollbar-track { background: transparent; }
.pdf-strip-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 2px; }

.pdf-strip {
  display: flex;
  gap: 8px;
  min-width: min-content;
  position: relative;
}

.pdf-strip-card {
  flex-shrink: 0;
  width: 72px;
  cursor: pointer;
  border-radius: 5px;
  padding: 4px;
  border: 2px solid transparent;
  transition: border-color .15s, background .15s;
  background: rgba(255,255,255,.04);
  position: relative;
  user-select: none;
}
.pdf-strip-card--selected {
  border-color: var(--primary);
  background: rgba(60,232,164,.12);
}
.pdf-strip-card--dragging { opacity: .3; }

/* insertion-line indicators while dragging */
.pdf-strip-card--insert-before::before,
.pdf-strip-card--insert-after::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.pdf-strip-card--insert-before::before { left: -5px; }
.pdf-strip-card--insert-after::after   { right: -5px; }

.pdf-strip-card__thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  border-radius: 2px;
  display: block;
  background: rgba(255,255,255,.05);
}

.pdf-strip-card__shimmer {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.12) 50%, rgba(255,255,255,.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

.pdf-strip-card__actions {
  position: absolute;
  top: 5px; right: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
.pdf-strip-card:hover .pdf-strip-card__actions {
  opacity: 1;
  pointer-events: auto;
}

.pdf-strip-btn {
  width: 20px; height: 20px;
  border-radius: 4px;
  border: none;
  background: rgba(6,10,8,.85);
  color: rgba(255,255,255,.85);
  cursor: pointer;
  font-size: 0.62rem;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  font-family: inherit;
  line-height: 1;
  transition: background .12s;
  backdrop-filter: blur(4px);
}
.pdf-strip-btn:hover { background: rgba(6,10,8,1); }
.pdf-strip-btn--delete { color: #fca5a5; }
.pdf-strip-btn--delete:hover { background: rgba(185,28,28,.85); color: #fff; }

.pdf-strip-card__num {
  display: block;
  text-align: center;
  font-size: 0.66rem;
  color: rgba(255,255,255,.3);
  margin-top: 3px;
  line-height: 1;
}

/* ─── Small button / input variants ──────────────────────────────────────── */
.btn--sm {
  font-size: 0.78rem;
  padding: 6px 12px;
}

.input--sm {
  font-size: 0.8rem;
  padding: 5px 10px;
  height: 32px;
}

/* Dark-background variant for the actions bar */
.input--dark {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.88);
}
.input--dark::placeholder { color: rgba(255,255,255,.3); }
.input--dark:focus { border-color: var(--primary); }

@media (max-width: 767px) {
  #pdfStudioSection { height: calc(100vh - 52px); overflow: hidden; }
  #pdfStudioSection .editor-actions__filename { display: none; }
  .pdf-strip-card { width: 58px; }
  .pdf-strip-card__actions { opacity: 1; pointer-events: auto; }
  .pdf-strip-btn { width: 18px; height: 18px; font-size: 0.55rem; }
}

/* ─── Ad Slots ────────────────────────────────────────────────────────────── */

.ad-slot {
  margin: 32px auto;
  max-width: 728px;
  text-align: center;
  min-height: 90px;
}
@media (max-width: 639px) { .ad-slot { margin: 20px auto; } }

/* ─── Blog ────────────────────────────────────────────────────────────────── */

.blog-list {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color .15s, box-shadow .15s;
}
.blog-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.blog-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.blog-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}
.blog-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.post-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.post-cta {
  background: var(--dark);
  border: 1px solid rgba(60,232,164,.18);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
  font-weight: 600;
  color: var(--text);
}
.post-cta a {
  color: var(--primary);
  text-decoration: none;
}

/* ── Background Removal tool ─────────────────────────────────────────────── */
.bg-results { display: grid; grid-template-columns: 1fr; gap: 16px; }

.bg-card { flex-direction: column; gap: 10px; }

.bg-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.bg-card__name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.bg-card__label { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.bg-card__label--error { color: var(--error); }

.bg-card__bar {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.bg-card__fill {
  height: 100%;
  width: 0%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.15s ease;
}

.bg-card__fill--indeterminate {
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 40%, var(--primary) 60%, transparent 100%);
  background-size: 200% 100%;
  animation: indeterminate 1.4s ease-in-out infinite;
}
@keyframes indeterminate {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Before / after comparison slider */
.ba-stage {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  user-select: none;
  touch-action: none;
}

.ba-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}

.ba-checker {
  position: absolute;
  inset: 0;
  background-color: #b0b0b0;
  background-image:
    linear-gradient(45deg, #888 25%, transparent 25%),
    linear-gradient(-45deg, #888 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #888 75%),
    linear-gradient(-45deg, transparent 75%, #888 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}

.ba-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #fff;
  pointer-events: none;
  z-index: 2;
}

.ba-handle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
  letter-spacing: -1px;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: col-resize;
  z-index: 3;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
}

.bg-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.ba-fill-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ba-fill-label { font-size: 0.78rem; color: var(--text-muted); }

.ba-fill-btn {
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}

.ba-fill-btn:hover { border-color: var(--primary); color: var(--primary); }

.ba-fill-btn--active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}

.ba-fill-color {
  width: 28px; height: 28px;
  padding: 2px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.ba-fill-color-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}

.ba-fill-color-wrap:hover { border-color: var(--primary); color: var(--primary); }

.ba-fill-color-wrap.ba-fill-btn--active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-dim);
}

.ba-fill-color-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.18);
  flex-shrink: 0;
  pointer-events: none;
}

.ba-fill-color-wrap input[type="color"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border: none;
  padding: 0;
  margin: 0;
}

.exif-full {
  border-top: 1px solid var(--border);
  margin-top: 10px;
}

.exif-full__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 6px;
}

.exif-full__toggle::-webkit-details-marker { display: none; }

.exif-full__toggle::after {
  content: '›';
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .15s;
}

.exif-full[open] .exif-full__toggle::after { transform: rotate(90deg); }

.exif-full__body {
  max-height: 280px;
  overflow-y: auto;
  padding-bottom: 4px;
}

.exif-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.exif-table tr:nth-child(even) { background: rgba(255,255,255,.03); }

.exif-table__key {
  width: 38%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 3px 8px 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.exif-table__val {
  font-size: 0.78rem;
  color: var(--text);
  padding: 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-cta a:hover { text-decoration: underline; }

/* ── EXIF Map tool ───────────────────────────────────────────────────────────── */

.exif-map-results {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.exif-map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.exif-map-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.exif-map-card__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

.exif-map-card__spinner {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.exif-map-card__found {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--success-bg);
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

.exif-map-card__map {
  height: 300px;
  width: 100%;
}

.exif-map-card__coords {
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.coord-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.coord-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  min-width: 56px;
  flex-shrink: 0;
}

.coord-value {
  font-size: 0.875rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.exif-map-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}

.exif-map-card__no-gps {
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  color: var(--text-muted);
}

.exif-map-card__no-gps svg {
  color: var(--text-muted);
  opacity: 0.5;
}

.exif-map-card__no-gps p {
  margin: 0;
  font-size: 0.9rem;
  max-width: 380px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

/* ─── Homepage: staggered card entrance ───────────────────────────────────── */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tool-cards .tool-card {
  animation: cardReveal 0.48s cubic-bezier(.22,.68,0,1.15) both;
}

.tool-cards .tool-card:nth-child(1) { animation-delay: 0.04s; }
.tool-cards .tool-card:nth-child(2) { animation-delay: 0.09s; }
.tool-cards .tool-card:nth-child(3) { animation-delay: 0.14s; }
.tool-cards .tool-card:nth-child(4) { animation-delay: 0.19s; }
.tool-cards .tool-card:nth-child(5) { animation-delay: 0.24s; }
.tool-cards .tool-card:nth-child(6) { animation-delay: 0.29s; }
.tool-cards .tool-card:nth-child(7) { animation-delay: 0.34s; }
.tool-cards .tool-card:nth-child(8) { animation-delay: 0.39s; }

/* ─── Terminal window (landing hero) ──────────────────────────────────────── */
.term {
  max-width: 540px;
  margin: 0 auto 40px;
  background: rgba(6,10,8,.85);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5), 0 0 48px rgba(60,232,164,.04);
  text-align: left;
  overflow: hidden;
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}

.term__dot { width: 10px; height: 10px; border-radius: 50%; background: #2c3b34; }
.term__dot--r { background: #ff6b6b; }
.term__dot--y { background: #ffc857; }
.term__dot--g { background: #3ce8a4; }

.term__title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.term__body {
  padding: 14px 16px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.term__line { display: block; white-space: pre-wrap; word-break: break-word; }
.term__prompt, .term__ok { color: var(--primary); }
.term__warn { color: var(--accent); }
.term__cmd { color: var(--text); }

/* ─── Mono micro-label for sections ───────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 8px;
}

/* ─── Redact tool ─────────────────────────────────────────────────────────── */
.redact-stage {
  background: var(--dark);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  overflow: auto;
  margin-bottom: 16px;
}

#redactCanvas {
  max-width: 100%;
  height: auto;
  cursor: crosshair;
  touch-action: none;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,.5);
}

.redact-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.redact-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px solid rgba(255,200,87,.25);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 36px;
  line-height: 1.5;
}

/* ─── Accessibility & motion ──────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .landing-hero__headline::after { animation: none; }
  .tool-cards .tool-card { animation: none; }
  html { scroll-behavior: auto; }
}
