/* ============================================================
   DocForge — Global Stylesheet
   Optimized for Cloudflare Pages + Google AdSense
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;500;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg: #07090f;
  --bg2: #0d1120;
  --bg3: #101828;
  --card: #111d2e;
  --border: #1c2d45;
  --border2: #263d58;
  --cyan: #00d4ff;
  --cyan2: #0099cc;
  --green: #00e676;
  --orange: #ff7043;
  --purple: #b388ff;
  --yellow: #ffd740;
  --red: #ff5252;
  --text: #edf2f7;
  --muted: #6b7fa3;
  --muted2: #4a5568;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---- Grid Background ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.022) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}

/* All main content needs z-index above grid */
nav, main, section, footer, .ad-row, .stats-bar { position: relative; z-index: 1; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5 { font-family: 'Syne', sans-serif; line-height: 1.2; }
.hl { color: var(--cyan); }
a { color: var(--cyan); transition: opacity 0.2s; }
p { line-height: 1.7; }

/* ---- NAVBAR ---- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 62px;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7,9,15,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.logo-box {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan2));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.logo em { color: var(--cyan); font-style: normal; }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  border-bottom-color: var(--cyan);
}
.nav-cta {
  background: var(--cyan);
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
  border-bottom: none !important;
}
.nav-cta:hover {
  box-shadow: 0 6px 24px rgba(0,212,255,0.38);
  transform: translateY(-1px);
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
}
/* Mobile nav */
.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 62px; left: 0; right: 0;
  background: rgba(13,17,32,0.98);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  gap: 18px;
  z-index: 400;
}

/* ---- BUTTONS ---- */
.btn-primary {
  background: var(--cyan);
  color: #000;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  padding: 12px 26px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.93rem;
  text-decoration: none;
}
.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(0,212,255,0.38);
  transform: translateY(-2px);
  color: #000;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
  padding: 12px 26px;
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.93rem;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.05);
  color: var(--text);
}
.btn-success {
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  padding: 11px 26px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9rem;
}
.btn-success:hover {
  box-shadow: 0 8px 20px rgba(0,230,118,0.32);
  transform: translateY(-2px);
}
.btn-danger {
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  padding: 10px 20px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.88rem;
}
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; }

/* ---- HERO (Homepage) ---- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 70px;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(1.4)} }
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 36px;
}
.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 56px;
}

/* ---- QUICK TOOL GRID (Homepage) ---- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  max-width: 860px;
  width: 100%;
}
.quick-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s;
  position: relative;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.quick-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,212,255,0.1);
  color: var(--text);
}
.quick-card .qi { font-size: 1.7rem; margin-bottom: 9px; display: block; }
.quick-card h4 { font-family: 'Syne', sans-serif; font-size: 0.77rem; font-weight: 700; }
.qbadge {
  position: absolute;
  top: 7px; right: 7px;
  font-size: 0.56rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-hot { background: rgba(255,112,67,0.15); color: var(--orange); border: 1px solid rgba(255,112,67,0.2); }
.badge-new { background: rgba(0,230,118,0.12); color: var(--green); border: 1px solid rgba(0,230,118,0.2); }

/* ---- STATS BAR ---- */
.stats-bar {
  display: flex;
  gap: 44px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.stat-item { text-align: center; }
.stat-val { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--cyan); }
.stat-lbl { font-size: 0.77rem; color: var(--muted); margin-top: 2px; }

/* ---- SECTION STYLES ---- */
.section { padding: 80px 48px; position: relative; z-index: 1; }
.section-alt { background: var(--bg2); }
.section-center { text-align: center; }
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
  max-width: 500px;
}
.section-center .section-sub { margin: 0 auto; }

/* ---- ALL TOOLS GRID ---- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 18px;
  transition: all 0.22s;
  position: relative;
  text-decoration: none;
  color: var(--text);
  display: block;
  overflow: hidden;
}
.tool-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,212,255,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.tool-card:hover {
  border-color: var(--cyan);
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,212,255,0.1);
  color: var(--text);
}
.tool-card:hover::before { opacity: 1; }
.tool-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 14px;
}
.tool-card h3 { font-family: 'Syne', sans-serif; font-size: 0.92rem; font-weight: 700; margin-bottom: 7px; }
.tool-card p { color: var(--muted); font-size: 0.8rem; line-height: 1.6; margin-bottom: 13px; }
.tool-link { font-size: 0.79rem; font-weight: 700; color: var(--cyan); display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s; }
.tool-card:hover .tool-link { gap: 8px; }
.tool-badge {
  position: absolute;
  top: 13px; right: 13px;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- HOW IT WORKS ---- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 800px;
  margin: 50px auto 0;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--green));
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cyan);
  margin: 0 auto 18px;
  box-shadow: 0 0 20px rgba(0,212,255,0.18);
}
.step h3 { font-family: 'Syne', sans-serif; font-size: 0.97rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.83rem; line-height: 1.6; }

/* ---- FEATURES GRID ---- */
.feats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 840px;
  margin: 38px auto 0;
}
.feat-card {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 13px;
  transition: border-color 0.2s;
}
.feat-card:hover { border-color: rgba(0,212,255,0.3); }
.feat-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(0,212,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.feat-card h4 { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.feat-card p { color: var(--muted); font-size: 0.81rem; line-height: 1.6; margin: 0; }

/* ---- TESTIMONIALS ---- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1060px;
  margin: 40px auto 0;
}
.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 26px;
  transition: all 0.2s;
}
.testi-card:hover { border-color: rgba(0,212,255,0.25); transform: translateY(-3px); }
.stars { color: var(--yellow); font-size: 0.85rem; margin-bottom: 13px; }
.testi-card blockquote { color: var(--text); font-size: 0.88rem; line-height: 1.7; font-style: italic; margin-bottom: 18px; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.testi-av {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.testi-author h5 { font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 700; margin-bottom: 2px; }
.testi-author span { color: var(--muted); font-size: 0.76rem; }

/* ---- BLOG CARDS ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
  margin-top: 38px;
}
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.22s;
  text-decoration: none;
  display: block;
  color: var(--text);
}
.blog-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,212,255,0.08);
  color: var(--text);
}
.blog-card-img {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.blog-card-body { padding: 20px; }
.blog-tag {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 8px;
  display: block;
}
.blog-card h3 { font-family: 'Syne', sans-serif; font-size: 0.96rem; font-weight: 700; margin-bottom: 9px; line-height: 1.4; }
.blog-card p { color: var(--muted); font-size: 0.82rem; line-height: 1.6; margin-bottom: 14px; }
.blog-meta { font-size: 0.75rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }

/* ---- CTA SECTION ---- */
.cta-section {
  padding: 80px 48px;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(0,212,255,0.06) 0%, transparent 70%);
  position: relative;
  z-index: 1;
}

/* ---- AD SLOTS ---- */
.ad-row {
  display: flex;
  justify-content: center;
  padding: 14px 48px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
.ad-slot {
  background: var(--bg2);
  border: 1px dashed rgba(255,255,255,0.07);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: var(--muted2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  position: relative;
}
.ad-slot::before {
  content: 'AD';
  position: absolute;
  top: 5px; left: 9px;
  font-size: 0.56rem;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1px 4px;
  border-radius: 3px;
  color: rgba(255,255,255,0.18);
}
.ad-leaderboard { width: 100%; max-width: 728px; height: 90px; margin: 0 auto; }
.ad-rectangle { width: 336px; height: 280px; }
.ad-mobile { width: 320px; height: 50px; }
.ad-center { display: flex; justify-content: center; padding: 20px 0; }

/* ---- TOOL PAGE LAYOUT ---- */
.tool-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 90px 24px 80px;
  position: relative;
  z-index: 1;
}
.tool-header { margin-bottom: 24px; }
.tool-header h1 { font-family: 'Syne', sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.tool-header p { color: var(--muted); font-size: 0.94rem; line-height: 1.7; }
.tool-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 10px;
}

/* ---- DROPZONE ---- */
.dropzone {
  border: 2px dashed var(--border2);
  border-radius: 14px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s;
  background: rgba(0,212,255,0.015);
  user-select: none;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.06);
}
.dropzone .dz-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.dropzone h3 { font-family: 'Syne', sans-serif; font-size: 1rem; margin-bottom: 6px; }
.dropzone p { color: var(--muted); font-size: 0.82rem; }
input[type=file] { display: none; }

/* ---- FILE CHIPS ---- */
.file-list { margin-top: 12px; display: grid; gap: 7px; }
.file-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.file-chip .name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.85rem;
  font-weight: 600;
}
.file-chip .size { color: var(--muted); font-size: 0.73rem; white-space: nowrap; }
.file-chip .remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 4px;
  transition: color 0.2s;
  line-height: 1;
}
.file-chip .remove:hover { color: var(--red); }

/* ---- OPTIONS GROUP ---- */
.option-group { margin-top: 20px; }
.option-group > label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.option-row { display: flex; gap: 9px; flex-wrap: wrap; }
.opt-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
}
.opt-btn.active, .opt-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,212,255,0.08);
}

/* ---- FORM INPUTS ---- */
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border2);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--cyan); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--cyan); cursor: pointer; margin-top: 6px; }
.range-label { display: flex; justify-content: space-between; align-items: center; }
.range-val { font-family: 'Syne', sans-serif; color: var(--cyan); font-weight: 700; font-size: 0.88rem; }

/* ---- SIZE DISPLAY (Compress tool) ---- */
.size-display {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 11px;
  padding: 16px 12px;
  margin: 14px 0;
}
.size-col { text-align: center; }
.size-val { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 800; }
.size-lbl { font-size: 0.7rem; color: var(--muted); margin-top: 3px; }
.size-arrow { font-size: 1.3rem; color: var(--cyan); }

/* ---- PROGRESS BAR ---- */
.progress-wrap { display: none; margin-top: 18px; }
.progress-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 7px;
}
.progress-bar { height: 7px; background: var(--border); border-radius: 7px; overflow: hidden; }
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--green));
  border-radius: 7px;
  transition: width 0.25s ease;
}

/* ---- RESULT PANEL ---- */
.result-panel {
  display: none;
  margin-top: 18px;
  background: rgba(0,230,118,0.07);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.result-icon { font-size: 2.2rem; margin-bottom: 8px; display: block; }
.result-panel h3 { font-family: 'Syne', sans-serif; font-size: 1.05rem; margin-bottom: 5px; }
.result-panel p { color: var(--muted); font-size: 0.84rem; margin-bottom: 16px; }
.result-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---- HINT BOX ---- */
.hint-box {
  padding: 11px 14px;
  background: rgba(0,212,255,0.05);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 8px;
  font-size: 0.81rem;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ---- PASSWORD STRENGTH ---- */
.pass-strength { margin-top: 8px; }
.strength-bar { height: 4px; border-radius: 4px; background: var(--border); overflow: hidden; margin-bottom: 4px; }
.strength-fill { height: 100%; width: 0%; border-radius: 4px; transition: all 0.3s; }
.strength-label { font-size: 0.75rem; color: var(--muted); }

/* ---- PAGE THUMBNAILS (Reorder) ---- */
.page-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  max-height: 220px;
  overflow-y: auto;
}
.page-thumb { position: relative; cursor: pointer; }
.page-thumb canvas { border-radius: 5px; border: 2px solid transparent; transition: border-color 0.2s; display: block; }
.page-thumb.selected canvas { border-color: var(--cyan); }
.page-thumb .pg-num {
  position: absolute;
  bottom: 3px; right: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

/* ---- IMAGE PREVIEW STRIP (PDF to Image) ---- */
.preview-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 10px;
  padding: 6px 2px;
  scrollbar-width: thin;
}
.preview-strip canvas {
  border-radius: 5px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  max-height: 110px;
  width: auto;
}

/* ---- HOW TO USE (on tool pages) ---- */
.how-to-use { margin-top: 48px; }
.how-to-use h2 { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; }
.how-steps { display: grid; gap: 14px; }
.how-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
}
.how-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--cyan);
  flex-shrink: 0;
}
.how-step h4 { font-family: 'Syne', sans-serif; font-size: 0.88rem; font-weight: 700; margin-bottom: 3px; }
.how-step p { color: var(--muted); font-size: 0.81rem; line-height: 1.6; margin: 0; }

/* ---- RELATED TOOLS ---- */
.related-tools { margin-top: 48px; }
.related-tools h2 { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all 0.22s;
  display: block;
}
.related-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  color: var(--text);
}
.related-card .ri { font-size: 1.6rem; margin-bottom: 8px; display: block; }
.related-card h4 { font-family: 'Syne', sans-serif; font-size: 0.82rem; font-weight: 700; }

/* ---- INNER PAGE LAYOUT ---- */
.inner-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--cyan); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--muted2); }

/* Inner page typography */
.inner-container h1 { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 14px; }
.inner-container .lead { font-size: 1rem; color: var(--muted); line-height: 1.8; margin-bottom: 32px; }
.inner-h2 { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--cyan); margin: 28px 0 10px; }
.inner-p { color: var(--muted); line-height: 1.8; font-size: 0.91rem; margin-bottom: 12px; }
.inner-ul { color: var(--muted); padding-left: 20px; line-height: 1.9; font-size: 0.91rem; margin-bottom: 14px; }
.inner-ul li { margin-bottom: 4px; }
strong.hl-text { color: var(--text); font-weight: 700; }

/* Values, Team grids */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.value-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 13px;
  transition: border-color 0.2s;
}
.value-card:hover { border-color: rgba(0,212,255,0.25); }
.value-icon { font-size: 1.35rem; flex-shrink: 0; }
.value-card h4 { font-family: 'Syne', sans-serif; font-size: 0.87rem; font-weight: 700; margin-bottom: 4px; }
.value-card p { color: var(--muted); font-size: 0.8rem; line-height: 1.6; margin: 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
  transition: border-color 0.2s;
}
.team-card:hover { border-color: rgba(0,212,255,0.3); }
.team-av {
  width: 60px; height: 60px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}
.team-card h4 { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; }
.team-card p { color: var(--muted); font-size: 0.79rem; margin: 0; }

.stats-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.stats-mini-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
}
.stats-mini-val { font-family: 'Syne', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--cyan); }
.stats-mini-lbl { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }

/* ---- CONTACT PAGE ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 32px;
}
.contact-form-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}
.contact-form-box h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 22px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-error {
  font-size: 0.76rem;
  color: var(--red);
  margin-top: 5px;
  display: none;
}
.contact-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.contact-success .ci-s { font-size: 3rem; margin-bottom: 12px; display: block; }
.contact-success h3 { font-family: 'Syne', sans-serif; font-size: 1.2rem; margin-bottom: 8px; }
.contact-success p { color: var(--muted); }
.contact-info-cards { display: grid; gap: 12px; }
.ci-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 16px 18px;
  display: flex;
  gap: 13px;
  align-items: center;
  transition: border-color 0.2s;
}
.ci-card:hover { border-color: rgba(0,212,255,0.3); }
.ci-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(0,212,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.ci-card h4 { font-family: 'Syne', sans-serif; font-size: 0.84rem; font-weight: 700; margin-bottom: 2px; }
.ci-card p { color: var(--muted); font-size: 0.8rem; margin: 0; }

/* ---- FAQ ACCORDION ---- */
.faq-list { margin-top: 16px; display: grid; gap: 10px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
}
.faq-question {
  padding: 15px 18px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
  user-select: none;
}
.faq-question:hover { color: var(--cyan); }
.faq-icon { transition: transform 0.25s; font-size: 1.1rem; color: var(--muted); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
  padding: 0 18px;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 18px 16px; }

/* ---- LEGAL PAGES ---- */
.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  position: relative;
  z-index: 1;
}
.legal-container h1 { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; margin-bottom: 6px; }
.legal-updated { font-size: 0.8rem; color: var(--muted); margin-bottom: 32px; display: block; }
.legal-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 20px 24px;
  margin-bottom: 32px;
}
.legal-toc h4 { font-family: 'Syne', sans-serif; font-size: 0.88rem; font-weight: 700; margin-bottom: 10px; }
.legal-toc ol { padding-left: 18px; color: var(--muted); font-size: 0.83rem; line-height: 2.1; }
.legal-toc a { color: var(--cyan); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-h2 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--cyan); margin: 28px 0 10px; }
.legal-p { color: var(--muted); line-height: 1.8; font-size: 0.91rem; margin-bottom: 12px; }
.legal-ul { color: var(--muted); padding-left: 20px; line-height: 1.9; font-size: 0.91rem; margin-bottom: 14px; }

/* ---- BLOG PAGE ---- */
.blog-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  position: relative;
  z-index: 1;
}
.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 10px 16px;
  max-width: 440px;
  margin: 28px auto 0;
  transition: border-color 0.2s;
}
.blog-search:focus-within { border-color: var(--cyan); }
.blog-search input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; }
.blog-search input::placeholder { color: var(--muted); }
.cat-tabs { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; margin: 20px 0 8px; }
.cat-tab {
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-tab.active, .cat-tab:hover { background: rgba(0,212,255,0.1); border-color: var(--cyan); color: var(--cyan); }

/* ---- BLOG POST PAGE ---- */
.blog-post-container {
  max-width: 730px;
  margin: 0 auto;
  padding: 100px 24px 80px;
  position: relative;
  z-index: 1;
}
.blog-post-container h1 { font-family: 'Syne', sans-serif; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin: 10px 0 8px; line-height: 1.25; }
.article-meta { display: flex; align-items: center; gap: 10px; font-size: 0.78rem; color: var(--muted); margin-bottom: 28px; flex-wrap: wrap; }
.article-meta span { display: flex; align-items: center; gap: 4px; }
.article-h2 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--cyan); margin: 28px 0 10px; }
.article-p { color: var(--muted); line-height: 1.8; font-size: 0.91rem; margin-bottom: 14px; }
.article-ul { color: var(--muted); padding-left: 20px; line-height: 1.9; font-size: 0.91rem; margin-bottom: 16px; }
.article-ul li { margin-bottom: 5px; }
.article-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.86rem; }
.article-table th { background: var(--card); color: var(--cyan); padding: 10px 14px; text-align: left; border: 1px solid var(--border); }
.article-table td { padding: 10px 14px; border: 1px solid var(--border); color: var(--muted); }
.article-cta {
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin: 32px 0;
}
.article-cta h3 { font-family: 'Syne', sans-serif; font-size: 1rem; margin-bottom: 8px; }
.article-cta p { color: var(--muted); font-size: 0.86rem; margin-bottom: 16px; }
.related-articles { margin-top: 40px; }
.related-articles h3 { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.related-articles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.87rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(70px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--green); color: #000; }
.toast.error { background: var(--red); color: #fff; }
.toast.info { background: var(--cyan); color: #000; }

/* ---- FOOTER ---- */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 52px 48px 28px;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--muted); font-size: 0.85rem; line-height: 1.7; margin-top: 14px; max-width: 240px; }
.footer-col h5 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.87rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 0.83rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p { color: var(--muted); font-size: 0.79rem; }
.footer-bottom a { color: var(--cyan); text-decoration: none; }
.socials { display: flex; gap: 8px; }
.soc-btn {
  width: 32px; height: 32px;
  border-radius: 7px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.2s;
}
.soc-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.footer-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }
.badge-green { font-size: 0.68rem; background: rgba(0,230,118,0.1); color: var(--green); border: 1px solid rgba(0,230,118,0.2); padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.badge-cyan { font-size: 0.68rem; background: rgba(0,212,255,0.1); color: var(--cyan); border: 1px solid rgba(0,212,255,0.2); padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.badge-purple { font-size: 0.68rem; background: rgba(179,136,255,0.1); color: var(--purple); border: 1px solid rgba(179,136,255,0.2); padding: 2px 8px; border-radius: 4px; font-weight: 700; }

/* ---- 404 PAGE ---- */
.not-found {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  position: relative;
  z-index: 1;
}
.not-found .nf-icon { font-size: 5rem; margin-bottom: 20px; display: block; }
.not-found .nf-code { font-family: 'Syne', sans-serif; font-size: 5rem; font-weight: 800; color: var(--cyan); line-height: 1; margin-bottom: 12px; }
.not-found h2 { font-family: 'Syne', sans-serif; font-size: 1.4rem; margin-bottom: 10px; }
.not-found p { color: var(--muted); margin-bottom: 32px; max-width: 400px; }
.not-found-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---- UTILITIES ---- */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-28 { margin-top: 28px; }
.text-muted { color: var(--muted); }
.text-cyan { color: var(--cyan); }
.text-green { color: var(--green); }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--border); margin: 28px 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .section { padding: 60px 20px; }
  .cta-section { padding: 60px 20px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .feats-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .inner-container { padding: 80px 20px 60px; }
  .legal-container { padding: 80px 20px 60px; }
  .tool-container { padding: 80px 20px 60px; }
  .tool-box { padding: 22px 18px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .ad-row { padding: 12px 16px; }
  footer { padding: 38px 20px 22px; }
  .blog-container { padding: 80px 20px 60px; }
  .blog-post-container { padding: 80px 20px 60px; }
  .related-articles-grid { grid-template-columns: 1fr; }
  .stats-mini { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .ad-leaderboard { max-width: 320px; height: 50px; }
  .related-grid { grid-template-columns: 1fr; }
  .size-display { flex-direction: column; gap: 12px; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-mini { grid-template-columns: 1fr; }
  .stats-bar { gap: 24px; }
}
