/* ============================================================
   style.css — ilovepdf.tn · Single unified stylesheet
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #E8473F;
  --red-dark:   #c73b34;
  --red-light:  #fff0ef;
  --bg:         #fafafa;
  --white:      #ffffff;
  --text:       #1a1a1a;
  --muted:      #6b7280;
  --border:     #e5e7eb;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  --shadow-red: 0 8px 32px rgba(232,71,63,.12), 0 2px 8px rgba(0,0,0,.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1,h2,h3 { letter-spacing: -.03em; }

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-icon {
  width: 34px; height: 34px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 18px; height: 18px; fill: white; }
.logo-text { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -.3px; }
.logo-text span { color: var(--red); }

/* Homepage nav links */
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.nav-links a:hover { background: var(--red-light); color: var(--red); }
.nav-links a.nav-cta {
  background: var(--red);
  color: white;
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: var(--red-dark); }

/* Tool page back link */
.nav-back {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all .15s;
}
.nav-back:hover { background: var(--red-light); color: var(--red); }
.nav-back svg { width: 15px; height: 15px; }

/* ── HOMEPAGE HERO ────────────────────────────────────────── */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 64px 24px 56px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-light);
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 16px;
}
.hero h1 em { font-style: italic; color: var(--red); }
.hero p { font-size: 16px; color: var(--muted); max-width: 480px; margin: 0 auto; line-height: 1.6; }

/* Search */
.search-wrap { max-width: 480px; margin: 28px auto 0; position: relative; }
.search-wrap input {
  width: 100%;
  padding: 13px 20px 13px 46px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.search-wrap input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,71,63,.1); }
.search-wrap input::placeholder { color: #adb5bd; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #adb5bd; pointer-events: none; }

/* ── HOMEPAGE TOOL GRID ───────────────────────────────────── */
main { max-width: 1200px; margin: 0 auto; padding: 48px 24px 64px; }

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-left: 2px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}
.tool-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px 20px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  animation: fadeUp .4s ease both;
}
.tool-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(232,71,63,.04));
  opacity: 0;
  transition: opacity .3s;
}
.tool-card:hover { border-color: var(--red); box-shadow: var(--shadow-red); transform: translateY(-2px); }
.tool-card:hover::after { opacity: 1; }

.tool-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tool-icon svg { width: 22px; height: 22px; }
.tool-name { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 3px; line-height: 1.3; }
.tool-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* Tool card color themes */
.theme-red    .tool-icon { background: #fff0ef; }
.theme-red    .tool-icon svg { color: #E8473F; }
.theme-blue   .tool-icon { background: #eff6ff; }
.theme-blue   .tool-icon svg { color: #3b82f6; }
.theme-green  .tool-icon { background: #f0fdf4; }
.theme-green  .tool-icon svg { color: #22c55e; }
.theme-purple .tool-icon { background: #faf5ff; }
.theme-purple .tool-icon svg { color: #a855f7; }
.theme-amber  .tool-icon { background: #fffbeb; }
.theme-amber  .tool-icon svg { color: #f59e0b; }
.theme-teal   .tool-icon { background: #f0fdfa; }
.theme-teal   .tool-icon svg { color: #14b8a6; }
.theme-pink   .tool-icon { background: #fdf2f8; }
.theme-pink   .tool-icon svg { color: #ec4899; }
.theme-indigo .tool-icon { background: #eef2ff; }
.theme-indigo .tool-icon svg { color: #6366f1; }

/* Staggered animation */
.tool-card:nth-child(1)  { animation-delay: .02s; }
.tool-card:nth-child(2)  { animation-delay: .04s; }
.tool-card:nth-child(3)  { animation-delay: .06s; }
.tool-card:nth-child(4)  { animation-delay: .08s; }
.tool-card:nth-child(5)  { animation-delay: .10s; }
.tool-card:nth-child(6)  { animation-delay: .12s; }
.tool-card:nth-child(7)  { animation-delay: .14s; }
.tool-card:nth-child(8)  { animation-delay: .16s; }
.tool-card:nth-child(9)  { animation-delay: .18s; }
.tool-card:nth-child(10) { animation-delay: .20s; }
.tool-card:nth-child(11) { animation-delay: .22s; }
.tool-card:nth-child(12) { animation-delay: .24s; }

/* ── BANNER ───────────────────────────────────────────────── */
.banner {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border-radius: 18px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}
.banner-text h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  color: white;
  margin-bottom: 8px;
}
.banner-text p { font-size: 14px; color: #9ca3af; line-height: 1.5; }
.banner-btn {
  background: var(--red);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .15s;
}
.banner-btn:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ── TOOL HERO (all tool pages) ───────────────────────────── */
.tool-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px 40px;
  text-align: center;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red-light);
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.tool-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}
.tool-hero h1 em { font-style: italic; color: var(--red); }
.tool-hero p { font-size: 15px; color: var(--muted); max-width: 420px; margin: 0 auto; line-height: 1.6; }

/* ── WORKSPACE ────────────────────────────────────────────── */
.workspace { max-width: 820px; margin: 0 auto; padding: 40px 24px 80px; }

/* ── DROP ZONE ────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 20px;
  padding: 56px 32px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  background: var(--white);
}
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--red); background: var(--red-light); }
.drop-zone-icon {
  width: 56px; height: 56px;
  background: var(--red-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.drop-zone-icon svg { width: 28px; height: 28px; color: var(--red); }
.drop-zone h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.drop-zone p { font-size: 13px; color: var(--muted); }
.drop-zone p strong { color: var(--red); }
.drop-zone small { font-size: 11px; color: #c9d0d8; display: block; margin-top: 8px; }
.file-input { display: none; }

/* ── FILE LIST ────────────────────────────────────────────── */
.file-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  transition: border-color .15s;
}
.file-item:hover { border-color: #d1d5db; }
.file-icon {
  width: 36px; height: 36px;
  background: var(--red-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.file-icon svg { width: 18px; height: 18px; color: var(--red); }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.file-size { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.file-remove {
  width: 28px; height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9d0d8;
  border-radius: 6px;
  transition: all .15s;
  flex-shrink: 0;
}
.file-remove:hover { background: #fee2e2; color: var(--red); }
.file-remove svg { width: 14px; height: 14px; }

/* ── ACTION PANEL ─────────────────────────────────────────── */
.action-panel {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
}
.action-panel h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.opt-label { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.options-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.opt-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  background: var(--bg);
  color: var(--muted);
  transition: all .15s;
}
.opt-btn:hover, .opt-btn.active { border-color: var(--red); background: var(--red-light); color: var(--red); }

/* ── CTA BUTTON ───────────────────────────────────────────── */
.cta-btn {
  width: 100%;
  background: var(--red);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cta-btn:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(232,71,63,.25); }
.cta-btn:disabled { background: #d1d5db; cursor: not-allowed; transform: none; box-shadow: none; }
.cta-btn svg { width: 18px; height: 18px; }

/* ── PROGRESS ─────────────────────────────────────────────── */
.progress-wrap { margin-top: 16px; display: none; }
.progress-wrap.show { display: block; }
.progress-bar-bg { background: #f3f4f6; border-radius: 100px; height: 6px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--red); border-radius: 100px; width: 0%; transition: width .3s ease; }
.progress-label { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }

/* ── RESULT BOX ───────────────────────────────────────────── */
.result-box { display: none; background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 16px; padding: 24px; margin-top: 16px; text-align: center; }
.result-box.show { display: block; animation: fadeUp .3s ease; }
.result-icon { width: 48px; height: 48px; background: #22c55e; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.result-icon svg { width: 24px; height: 24px; color: white; }
.result-box h3 { font-size: 16px; font-weight: 700; color: #15803d; margin-bottom: 4px; }
.result-box p { font-size: 13px; color: #4ade80; margin-bottom: 16px; }
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #22c55e;
  color: white;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s;
}
.download-btn:hover { background: #16a34a; }
.download-btn svg { width: 16px; height: 16px; }

/* ── TIPS ─────────────────────────────────────────────────── */
.tips { margin-top: 40px; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.tip { background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 16px; }
.tip-icon { font-size: 20px; margin-bottom: 8px; }
.tip h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.tip p { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ── CONVERT STEPS (conversion tool pages) ────────────────── */
.convert-steps { display: flex; gap: 0; margin-bottom: 28px; position: relative; }
.convert-steps::before { content: ''; position: absolute; top: 20px; left: 20px; right: 20px; height: 2px; background: var(--border); z-index: 0; }
.step { flex: 1; text-align: center; position: relative; z-index: 1; }
.step-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 16px; transition: all .3s; }
.step.active .step-dot { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(232,71,63,.15); }
.step.done   .step-dot { background: #22c55e; border-color: #22c55e; }
.step-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.step.active .step-label { color: var(--red); }
.step.done   .step-label { color: #22c55e; }

/* ── RELATED TOOLS PILLS (bottom of tool pages) ───────────── */
.related-tools { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 32px; }
.related-tools p { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 10px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: all .15s;
}
.pill:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }

/* ── ADD-MORE BUTTON (shared pattern) ─────────────────────── */
.add-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all .15s;
  background: transparent;
  font-family: inherit;
  width: 100%;
  margin-top: 10px;
}
.add-more:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.add-more svg { width: 16px; height: 16px; }

/* ── API NOTICE ───────────────────────────────────────────── */
.api-key-notice {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer { background: var(--white); border-top: 1px solid var(--border); padding: 48px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 12px; max-width: 240px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { text-decoration: none; font-size: 13px; color: var(--muted); transition: color .15s; }
.footer-col a:hover { color: var(--red); }
.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;
}
.footer-bottom span { font-size: 12.5px; color: var(--muted); }

/* ── HOMEPAGE MODAL ───────────────────────────────────────── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); z-index: 200; align-items: center; justify-content: center; padding: 24px; }
.modal-overlay.active { display: flex; }
.modal { background: var(--white); border-radius: 20px; width: 100%; max-width: 520px; padding: 32px; box-shadow: 0 24px 80px rgba(0,0,0,.2); animation: modalIn .25s cubic-bezier(.34,1.56,.64,1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title-wrap { display: flex; align-items: center; gap: 12px; }
.modal-icon { width: 40px; height: 40px; background: var(--red-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.modal-icon svg { width: 20px; height: 20px; color: var(--red); }
.modal h2 { font-size: 18px; font-weight: 700; color: var(--text); }
.modal-close { width: 32px; height: 32px; border: none; background: var(--bg); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: background .15s; }
.modal-close:hover { background: var(--border); }
.modal-btn { width: 100%; background: var(--red); color: white; border: none; padding: 14px; border-radius: 10px; font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer; margin-top: 16px; transition: background .2s; }
.modal-btn:hover { background: var(--red-dark); }
.modal-btn:disabled { background: #d1d5db; cursor: not-allowed; }

/* ── LEGAL PAGES ──────────────────────────────────────────── */
.legal-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 48px 24px 40px; text-align: center; }
.legal-hero h1 { font-family: 'Instrument Serif', serif; font-size: clamp(28px,4vw,44px); font-weight: 400; margin-bottom: 10px; }
.legal-hero p { font-size: 14px; color: var(--muted); }
.legal-body { max-width: 740px; margin: 0 auto; padding: 48px 24px 80px; }
.last-updated { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 8px 14px; display: inline-block; margin-bottom: 32px; }
.legal-toc { background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; padding: 20px 24px; margin-bottom: 40px; }
.legal-toc h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.legal-toc ol { padding-left: 20px; }
.legal-toc li { margin-bottom: 6px; }
.legal-toc a { font-size: 13px; color: var(--red); text-decoration: none; font-weight: 500; }
.legal-toc a:hover { text-decoration: underline; }
.legal-section { margin-bottom: 44px; }
.legal-section h2 { font-family: 'Instrument Serif', serif; font-size: 24px; font-weight: 400; color: var(--text); margin-bottom: 14px; padding-top: 8px; border-top: 2px solid var(--red-light); }
.legal-section p { font-size: 14.5px; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.legal-section ul { padding-left: 20px; margin-bottom: 12px; }
.legal-section li { font-size: 14.5px; color: var(--muted); line-height: 1.8; margin-bottom: 4px; }
.highlight-box { background: var(--red-light); border-left: 4px solid var(--red); border-radius: 0 10px 10px 0; padding: 14px 18px; margin-bottom: 16px; }
.highlight-box p { font-size: 14px; color: var(--red-dark); font-weight: 500; margin: 0; line-height: 1.6; }
.ok-box  { background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; }
.ok-box  p { font-size: 13.5px; color: #15803d; margin: 0; line-height: 1.6; }
.no-box  { background: #fff1f2; border: 1.5px solid #fecdd3; border-radius: 12px; padding: 14px 18px; margin-bottom: 12px; }
.no-box  p { font-size: 13.5px; color: #9f1239; margin: 0; line-height: 1.6; }

/* ── À PROPOS PAGE ────────────────────────────────────────── */
.about-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 64px 24px 56px; text-align: center; }
.about-hero h1 { font-family: 'Instrument Serif', serif; font-size: clamp(32px,5vw,52px); font-weight: 400; margin-bottom: 14px; }
.about-body { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.section-block { margin-bottom: 56px; }
.section-block h2 { font-family: 'Instrument Serif', serif; font-size: 28px; font-weight: 400; color: var(--text); margin-bottom: 16px; }
.section-block h2 em { font-style: italic; color: var(--red); }
.section-block p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 24px; }
.value-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 16px; padding: 24px 20px; transition: border-color .2s, box-shadow .2s; }
.value-card:hover { border-color: var(--red); box-shadow: 0 4px 20px rgba(232,71,63,.08); }
.value-icon { font-size: 28px; margin-bottom: 12px; }
.value-card h3 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.value-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
.tn-banner { background: linear-gradient(135deg, var(--red), var(--red-dark)); border-radius: 20px; padding: 40px; text-align: center; margin-bottom: 56px; position: relative; overflow: hidden; }
.tn-banner::before { content: '🇹🇳'; position: absolute; font-size: 120px; top: -20px; right: -20px; opacity: .1; }
.tn-banner h2 { font-family: 'Instrument Serif', serif; font-size: 30px; font-weight: 400; color: white; margin-bottom: 10px; }
.tn-banner p { font-size: 15px; color: rgba(255,255,255,.8); max-width: 420px; margin: 0 auto; line-height: 1.6; }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 28px; }
.stat-item { text-align: center; }
.stat-num { font-family: 'Instrument Serif', serif; font-size: 36px; color: white; font-weight: 400; display: block; }
.stat-lbl { font-size: 12px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .06em; }
.tools-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tool-pill { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--white); border: 1.5px solid var(--border); border-radius: 100px; text-decoration: none; font-size: 13px; font-weight: 600; color: var(--text); transition: all .15s; }
.tool-pill:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.tool-pill .dot { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; }
.contact-form { background: var(--white); border: 1.5px solid var(--border); border-radius: 20px; padding: 36px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 12px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; font-family: inherit; color: var(--text); background: var(--bg); outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,71,63,.08); }
.form-row textarea { min-height: 120px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { background: var(--red); color: white; border: none; padding: 14px 32px; border-radius: 10px; font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer; transition: all .2s; display: flex; align-items: center; gap: 8px; }
.form-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.form-success { display: none; background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 12px; padding: 16px 20px; font-size: 14px; font-weight: 600; color: #15803d; margin-top: 16px; text-align: center; }

/* ── 404 PAGE ─────────────────────────────────────────────── */
.page-404 { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.container-404 { text-align: center; max-width: 480px; }
.big-num { font-family: 'Instrument Serif', serif; font-size: 120px; font-weight: 400; color: var(--red); line-height: 1; letter-spacing: -4px; opacity: .15; margin-bottom: -20px; }
.pdf-icon { font-size: 64px; margin-bottom: 16px; }
.container-404 h1 { font-family: 'Instrument Serif', serif; font-size: 32px; font-weight: 400; margin-bottom: 12px; }
.container-404 p { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 32px; }
.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary { background: var(--red); color: white; text-decoration: none; padding: 13px 28px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: background .2s; }
.btn-primary:hover { background: var(--red-dark); }
.btn-secondary { background: var(--white); color: var(--text); text-decoration: none; padding: 12px 28px; border-radius: 10px; font-size: 14px; font-weight: 600; border: 1.5px solid var(--border); transition: all .2s; }
.btn-secondary:hover { border-color: var(--red); color: var(--red); }
.tools-mini { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.tool-chip { padding: 6px 14px; background: var(--white); border: 1.5px solid var(--border); border-radius: 100px; font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: none; transition: all .15s; }
.tool-chip:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }

/* ── COMPRESSOR SPECIFIC ──────────────────────────────────── */
.quality-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }
.quality-card { border: 1.5px solid var(--border); border-radius: 12px; padding: 16px 12px; text-align: center; cursor: pointer; transition: all .15s; background: var(--bg); }
.quality-card:hover { border-color: var(--red); }
.quality-card.active { border-color: var(--red); background: var(--red-light); }
.quality-card.active .qc-name { color: var(--red); }
.qc-icon { font-size: 24px; margin-bottom: 6px; }
.qc-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.qc-desc { font-size: 11px; color: var(--muted); line-height: 1.4; }
.stats-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; background: var(--bg); border-radius: 12px; padding: 16px; margin-top: 16px; }
.stat-box { text-align: center; }
.stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.stat-value { font-size: 20px; font-weight: 700; color: var(--text); }
.stat-unit { font-size: 11px; color: var(--muted); }
.stat-arrow { font-size: 20px; color: #22c55e; }
.saving-badge { background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 8px; padding: 6px 14px; font-size: 13px; font-weight: 600; color: #15803d; text-align: center; margin-top: 10px; }

/* ── SPLIT/DIVISER SPECIFIC ───────────────────────────────── */
.mode-tabs { display: flex; gap: 0; background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px; padding: 3px; margin-bottom: 20px; }
.mode-tab { flex: 1; padding: 8px; border: none; background: transparent; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; border-radius: 8px; transition: all .15s; }
.mode-tab.active { background: var(--white); color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.mode-panel { display: none; }
.mode-panel.active { display: block; }
.page-info { font-size: 12.5px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.range-input { width: 100%; display: flex; gap: 12px; align-items: center; }
.range-input input[type=number] { width: 80px; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; color: var(--text); outline: none; text-align: center; }
.range-input input[type=number]:focus { border-color: var(--red); }
.range-sep { color: var(--muted); font-size: 13px; }
.page-chip { padding: 5px 12px; background: var(--bg); border: 1.5px solid var(--border); border-radius: 100px; font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; transition: all .15s; user-select: none; }
.page-chip.selected { background: var(--red-light); border-color: var(--red); color: var(--red); font-weight: 600; }
.page-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ── ROTATION SPECIFIC ────────────────────────────────────── */
.rotation-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 20px; }
.rot-card { border: 1.5px solid var(--border); border-radius: 12px; padding: 18px 12px; text-align: center; cursor: pointer; transition: all .15s; background: var(--bg); }
.rot-card:hover { border-color: var(--red); }
.rot-card.active { border-color: var(--red); background: var(--red-light); }
.rot-card.active .rot-name { color: var(--red); }
.rot-icon { font-size: 28px; margin-bottom: 6px; display: block; }
.rot-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.rot-desc { font-size: 11px; color: var(--muted); }
.page-scope { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.scope-btn { padding: 8px 16px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 500; font-family: inherit; cursor: pointer; background: var(--bg); color: var(--muted); transition: all .15s; }
.scope-btn:hover, .scope-btn.active { border-color: var(--red); background: var(--red-light); color: var(--red); }
.custom-pages { margin-top: 10px; display: none; }
.custom-pages input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-family: inherit; color: var(--text); outline: none; }
.custom-pages input:focus { border-color: var(--red); }
.custom-pages small { font-size: 11px; color: var(--muted); margin-top: 5px; display: block; }
.custom-pages.show { display: block; }

/* ── IMAGE→PDF SPECIFIC ───────────────────────────────────── */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(100px,1fr)); gap: 10px; margin-top: 16px; }
.img-thumb { position: relative; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; background: var(--bg); }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-thumb .remove-img { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; background: rgba(0,0,0,.6); border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: white; transition: background .15s; }
.img-thumb .remove-img:hover { background: var(--red); }
.img-thumb .remove-img svg { width: 11px; height: 11px; }
.img-thumb .order-num { position: absolute; bottom: 5px; left: 5px; background: rgba(0,0,0,.6); color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.page-size-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 16px; }
.ps-btn { border: 1.5px solid var(--border); border-radius: 8px; padding: 10px 6px; text-align: center; cursor: pointer; transition: all .15s; background: var(--bg); font-family: inherit; }
.ps-btn:hover { border-color: var(--red); }
.ps-btn.active { border-color: var(--red); background: var(--red-light); }
.ps-btn.active span { color: var(--red); }
.ps-btn span { font-size: 13px; font-weight: 700; color: var(--text); display: block; }
.ps-btn small { font-size: 10px; color: var(--muted); }
.margin-opts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.margin-btn { padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 12px; font-weight: 500; font-family: inherit; cursor: pointer; background: var(--bg); color: var(--muted); transition: all .15s; }
.margin-btn:hover, .margin-btn.active { border-color: var(--red); background: var(--red-light); color: var(--red); }

/* ── DELETE PAGES SPECIFIC ────────────────────────────────── */
.pages-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(72px,1fr)); gap: 8px; margin-top: 12px; }
.page-tile { border: 1.5px solid var(--border); border-radius: 10px; padding: 12px 6px 8px; text-align: center; cursor: pointer; transition: all .15s; background: var(--white); user-select: none; position: relative; }
.page-tile:hover { border-color: #f87171; background: #fff5f5; }
.page-tile.marked { border-color: #ef4444; background: #fee2e2; }
.page-tile.marked .page-num { color: #dc2626; }
.page-tile .page-icon { font-size: 22px; display: block; margin-bottom: 4px; }
.page-tile .page-num { font-size: 11px; font-weight: 700; color: var(--muted); }
.page-tile .delete-x { position: absolute; top: 4px; right: 4px; width: 16px; height: 16px; background: #ef4444; color: white; border-radius: 50%; font-size: 9px; display: none; align-items: center; justify-content: center; font-weight: 700; }
.page-tile.marked .delete-x { display: flex; }
.select-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sel-btn { padding: 6px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; background: var(--bg); color: var(--muted); transition: all .15s; }
.sel-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.sel-btn.danger { border-color: #fca5a5; color: #dc2626; background: #fee2e2; }
.sel-btn.danger:hover { background: #fca5a5; }
.marked-count { background: #fee2e2; border: 1.5px solid #fca5a5; border-radius: 10px; padding: 10px 16px; font-size: 13px; font-weight: 600; color: #dc2626; margin-bottom: 16px; display: none; }
.marked-count.show { display: block; }

/* ── REORGANISER SPECIFIC ─────────────────────────────────── */
.reorder-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(110px,1fr)); gap: 12px; margin-top: 16px; }
.page-card { border: 1.5px solid var(--border); border-radius: 12px; padding: 16px 10px 12px; text-align: center; background: var(--white); cursor: grab; transition: all .2s cubic-bezier(.4,0,.2,1); user-select: none; position: relative; }
.page-card:hover { border-color: var(--red); box-shadow: 0 4px 16px rgba(232,71,63,.1); }
.page-card.dragging { opacity: .4; transform: scale(.97); cursor: grabbing; }
.page-card .pc-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.page-card .pc-label { font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .04em; }
.page-card .pc-num { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1; }
.page-card .pc-orig { font-size: 10px; color: #c9d0d8; margin-top: 4px; }
.page-card .drag-handle-icon { position: absolute; top: 6px; right: 8px; color: #d1d5db; font-size: 12px; }
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.action-bar-btn { padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; background: var(--bg); color: var(--muted); transition: all .15s; }
.action-bar-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.order-changed-badge { background: var(--red-light); border: 1.5px solid #fca5a5; border-radius: 10px; padding: 8px 14px; font-size: 12.5px; font-weight: 600; color: var(--red); margin-bottom: 14px; display: none; }
.order-changed-badge.show { display: block; }
.hint { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }

/* ── PDF→IMAGE SPECIFIC ───────────────────────────────────── */
.format-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.fmt-card { border: 1.5px solid var(--border); border-radius: 10px; padding: 14px 10px; text-align: center; cursor: pointer; transition: all .15s; background: var(--bg); }
.fmt-card:hover { border-color: var(--red); }
.fmt-card.active { border-color: var(--red); background: var(--red-light); }
.fmt-card.active .fmt-name { color: var(--red); }
.fmt-icon { font-size: 24px; margin-bottom: 5px; }
.fmt-name { font-size: 13px; font-weight: 700; color: var(--text); }
.fmt-desc { font-size: 11px; color: var(--muted); }
.dpi-slider { width: 100%; margin-top: 6px; accent-color: var(--red); }
.dpi-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 12px; margin-top: 16px; }
.preview-thumb { border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; aspect-ratio: 3/4; background: var(--bg); position: relative; }
.preview-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.preview-thumb .page-badge { position: absolute; bottom: 6px; left: 6px; background: rgba(0,0,0,.6); color: white; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.dl-all-btn { display: inline-flex; align-items: center; gap: 8px; background: #1a1a1a; color: white; padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; transition: background .15s; cursor: pointer; border: none; font-family: inherit; }
.dl-all-btn:hover { background: #333; }

/* ── EXCEL→PDF SPECIFIC ───────────────────────────────────── */
.sheet-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.sheet-tab { padding: 6px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 12px; font-weight: 600; font-family: inherit; cursor: pointer; background: var(--bg); color: var(--muted); transition: all .15s; }
.sheet-tab.active { border-color: var(--red); background: var(--red-light); color: var(--red); }
.table-preview { border-radius: 12px; overflow: auto; max-height: 280px; border: 1.5px solid var(--border); margin-bottom: 16px; }
.table-preview table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table-preview th { background: #f8f9fa; font-weight: 700; color: var(--text); padding: 8px 12px; border-bottom: 2px solid var(--border); text-align: left; white-space: nowrap; position: sticky; top: 0; }
.table-preview td { padding: 7px 12px; border-bottom: 1px solid #f3f4f6; color: var(--muted); white-space: nowrap; }
.table-preview tr:hover td { background: #fafafa; }
.table-preview td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sheet-info { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 8px 14px; margin-bottom: 14px; display: flex; justify-content: space-between; }
.page-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.page-opt { border: 1.5px solid var(--border); border-radius: 10px; padding: 13px 12px; cursor: pointer; transition: all .15s; background: var(--bg); text-align: center; }
.page-opt:hover { border-color: var(--red); }
.page-opt.active { border-color: var(--red); background: var(--red-light); }
.page-opt.active .po-name { color: var(--red); }
.po-icon { font-size: 22px; margin-bottom: 4px; }
.po-name { font-size: 13px; font-weight: 700; color: var(--text); }
.po-desc { font-size: 11px; color: var(--muted); }

/* ── PPTX→PDF SPECIFIC ────────────────────────────────────── */
.slides-preview { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 12px; }
.slide-thumb { border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--white); position: relative; aspect-ratio: 16/9; display: flex; flex-direction: column; transition: border-color .15s; }
.slide-thumb:hover { border-color: var(--red); }
.slide-canvas { width: 100%; height: 100%; background: #fff; position: relative; }
.slide-title-preview { padding: 8px 10px; font-size: 11px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-top: 1px solid var(--border); background: var(--bg); }
.slide-num { position: absolute; top: 5px; left: 5px; background: rgba(0,0,0,.55); color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.layout-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.layout-card { border: 1.5px solid var(--border); border-radius: 10px; padding: 14px 10px; text-align: center; cursor: pointer; transition: all .15s; background: var(--bg); }
.layout-card:hover { border-color: var(--red); }
.layout-card.active { border-color: var(--red); background: var(--red-light); }
.layout-card.active .lc-name { color: var(--red); }
.lc-icon { font-size: 22px; margin-bottom: 5px; }
.lc-name { font-size: 12px; font-weight: 700; color: var(--text); }
.lc-desc { font-size: 10.5px; color: var(--muted); }

/* ── PDF→WORD / WORD→PDF SPECIFIC ────────────────────────── */
.quality-row { display: flex; gap: 10px; margin-bottom: 20px; }
.quality-opt { flex: 1; border: 1.5px solid var(--border); border-radius: 10px; padding: 14px 12px; text-align: center; cursor: pointer; transition: all .15s; background: var(--bg); }
.quality-opt:hover { border-color: var(--red); }
.quality-opt.active { border-color: var(--red); background: var(--red-light); }
.quality-opt.active .qo-name { color: var(--red); }
.qo-icon { font-size: 22px; margin-bottom: 6px; }
.qo-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.qo-desc { font-size: 11px; color: var(--muted); }
.preview-box { background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; padding: 20px; margin-top: 16px; max-height: 200px; overflow-y: auto; }
.preview-box h4 { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.preview-content { font-size: 13px; color: var(--text); line-height: 1.7; white-space: pre-wrap; }

/* ── OCR SPECIFIC ─────────────────────────────────────────── */
.ocr-result { background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; padding: 20px; margin-top: 16px; display: none; }
.ocr-result.show { display: block; animation: fadeUp .3s ease; }
.ocr-result h4 { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }
.ocr-text { font-size: 13px; color: var(--text); line-height: 1.8; white-space: pre-wrap; max-height: 320px; overflow-y: auto; background: var(--bg); border-radius: 8px; padding: 14px; border: 1px solid var(--border); }
.ocr-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ocr-btn { padding: 9px 18px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; background: var(--bg); color: var(--text); transition: all .15s; display: flex; align-items: center; gap: 6px; }
.ocr-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.ocr-btn.primary { background: var(--red); color: white; border-color: var(--red); }
.ocr-btn.primary:hover { background: var(--red-dark); }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(100px,1fr)); gap: 8px; margin-bottom: 20px; }
.lang-card { border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 8px; text-align: center; cursor: pointer; transition: all .15s; background: var(--bg); }
.lang-card:hover { border-color: var(--red); }
.lang-card.active { border-color: var(--red); background: var(--red-light); }
.lang-card.active .lang-name { color: var(--red); }
.lang-flag { font-size: 22px; margin-bottom: 4px; }
.lang-name { font-size: 11px; font-weight: 700; color: var(--text); }

/* ── ANIMATIONS ───────────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
@keyframes modalIn { from { opacity: 0; transform: scale(.92) translateY(12px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 14% { transform: scale(1.25); } 28% { transform: scale(1); } 42% { transform: scale(1.15); } 70% { transform: scale(1); } }
.heart { color: var(--red); animation: heartbeat 1.5s ease-in-out infinite; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .banner { flex-direction: column; padding: 28px 24px; text-align: center; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .values-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .quality-cards { grid-template-columns: 1fr; }
  .layout-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2,1fr); }
  .tips { grid-template-columns: 1fr; }
  .page-size-grid { grid-template-columns: repeat(2,1fr); }
  .rotation-grid { grid-template-columns: 1fr; }
}
