/* ============================================
   PDFHelper Tool - Professional SaaS Stylesheet
   Dark Mode + Animated Background + SEO/Ad-ready
   ============================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-bg: #eff6ff;
  --secondary: #7c3aed;
  --secondary-light: #8b5cf6;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --white: #ffffff;
  --success: #10b981;
  --success-bg: #ecfdf5;
  --error: #ef4444;
  --error-bg: #fef2f2;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.06);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-w: 1200px;
  --header-h: 72px;
  --transition: 0.25s ease;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --hero-start: #0f172a;
  --hero-end: #1e293b;
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-light: #60a5fa;
  --primary-bg: #1e293b;
  --secondary: #8b5cf6;
  --secondary-light: #a78bfa;
  --dark: #f8fafc;
  --dark-2: #e2e8f0;
  --dark-3: #cbd5e1;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #94a3b8;
  --gray-500: #cbd5e1;
  --gray-600: #e2e8f0;
  --white: #0f172a;
  --success-bg: #064e3b;
  --error-bg: #7f1d1d;
  --shadow: 0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
  --shadow-md: 0 4px 6px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.2);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.4), 0 4px 10px rgba(0,0,0,.3);
  --shadow-xl: 0 20px 50px rgba(0,0,0,.5);
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #334155;
  --card-bg: #1e293b;
  --hero-start: #020617;
  --hero-end: #0f172a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== ANIMATED BACKGROUND (Hero) ===== */
.hero {
  padding: calc(var(--header-h) + 60px) 0 80px;
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
  color: white; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 70%);
  top: -200px; right: -200px;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,.12) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation: float 10s ease-in-out infinite reverse;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Particle overlay */
#particles-canvas {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 50px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: .8rem; font-weight: 500; color: var(--gray-300);
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; letter-spacing: -1px;
  line-height: 1.15; margin-bottom: 20px;
}
.hero h1 .highlight { background: linear-gradient(135deg, var(--primary-light), var(--secondary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p {
  font-size: 1.15rem; color: var(--gray-400);
  max-width: 640px; margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-stats {
  display: flex; justify-content: center; gap: 40px; margin-top: 50px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block; font-size: 1.8rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stat span { font-size: .85rem; color: var(--gray-400); }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h); z-index: 1000;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
}
[data-theme="dark"] .header {
  background: rgba(15,23,42,.9);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header.scrolled { box-shadow: 0 1px 10px rgba(0,0,0,.08); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.35rem; color: var(--dark);
  letter-spacing: -0.5px; transition: color var(--transition);
  text-decoration: none;
}
[data-theme="dark"] .logo { color: #f8fafc; }
.logo:hover { color: var(--dark); opacity: .9; }
.logo-3d {
  font-size: 1.35rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white; border-radius: 10px;
  font-size: 14px; font-weight: 800; letter-spacing: -0.5px;
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px; border-radius: 8px;
  font-size: .9rem; font-weight: 500; color: var(--gray-500);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--primary-bg); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions button {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 8px;
  font-size: .85rem; font-weight: 500; color: var(--gray-500);
  background: var(--gray-100); border: none; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.header-actions button:hover { background: var(--gray-200); color: var(--dark); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none !important; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== TOOLS ===== */
.tools-section {
  padding: 60px 0 40px;
  background: var(--bg);
  transition: background var(--transition);
}
.section-header {
  text-align: center; margin-bottom: 48px;
}
.section-tag {
  display: inline-block; padding: 4px 14px;
  border-radius: 50px; font-size: .8rem; font-weight: 600;
  background: var(--primary-bg); color: var(--primary);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: .5px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800; color: var(--text);
  letter-spacing: -0.5px; margin-bottom: 12px;
  transition: color var(--transition);
}
.section-header h2 .highlight { color: var(--primary); }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 540px; margin: 0 auto; transition: color var(--transition); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 40px;
}
.tool-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 20px; border-radius: var(--radius);
  background: var(--card-bg); border: 2px solid var(--border);
  cursor: pointer; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0; transition: var(--transition);
}
.tool-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tool-card:hover::before { opacity: 1; }
.tool-card.active { border-color: var(--primary); box-shadow: var(--shadow-md); }
.tool-card.active::before { opacity: 1; }
.tool-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 12px;
  background: var(--primary-bg); color: var(--primary);
  transition: background var(--transition);
}
.tool-card h3 { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 4px; transition: color var(--transition); }
.tool-card p { font-size: .8rem; color: var(--text-muted); transition: color var(--transition); }
.tool-card .format-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: .65rem; font-weight: 600; padding: 2px 8px;
  border-radius: 4px; background: var(--gray-100); color: var(--gray-500);
  text-transform: uppercase; transition: background var(--transition), color var(--transition);
}

/* ===== WORKSPACE ===== */
.workspace {
  background: var(--bg-alt); border-radius: var(--radius-lg);
  padding: 40px; margin-bottom: 40px;
  border: 1px solid var(--border);
  transition: background var(--transition), border var(--transition);
}
.workspace-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.workspace-header h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 8px;
  transition: color var(--transition);
}
.workspace-info {
  font-size: .85rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 16px;
  transition: color var(--transition);
}
.workspace-info .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); display: inline-block; }

.dropzone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius);
  padding: 48px 24px; text-align: center;
  cursor: pointer; transition: all var(--transition);
  background: var(--card-bg); position: relative;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary); background: var(--primary-bg);
}
.dropzone-icon {
  font-size: 48px; margin-bottom: 16px; color: var(--gray-400);
}
.dropzone h4 { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 8px; transition: color var(--transition); }
.dropzone p { color: var(--text-muted); font-size: .9rem; }
.dropzone .browse-btn {
  display: inline-block; margin-top: 16px;
  padding: 10px 28px; border-radius: 8px;
  background: var(--primary); color: white;
  font-weight: 600; font-size: .9rem; border: none; cursor: pointer;
  transition: var(--transition);
}
.dropzone .browse-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ===== FILE LIST ===== */
.file-list { margin-top: 20px; }
.file-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 8px; gap: 12px;
  transition: background var(--transition), border var(--transition);
}
.file-item .file-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.file-item .file-icon { font-size: 20px; color: var(--primary); }
.file-item .file-name { font-weight: 500; color: var(--text); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-item .file-size { color: var(--text-muted); font-size: .8rem; white-space: nowrap; }
.file-item .file-remove {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--error-bg); color: var(--error);
  border: none; cursor: pointer; font-size: 16px;
  transition: var(--transition); flex-shrink: 0;
}
.file-item .file-remove:hover { background: var(--error); color: white; }

/* ===== BUTTONS ===== */
.convert-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn-convert {
  padding: 14px 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; gap: 10px;
  flex: 1; justify-content: center; min-width: 200px;
}
.btn-convert:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,.35); }
.btn-convert:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-convert svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-reset {
  padding: 14px 24px; border-radius: 10px;
  background: var(--card-bg); color: var(--text-muted);
  font-weight: 600; font-size: .95rem;
  border: 1px solid var(--border); cursor: pointer;
  transition: var(--transition);
}
.btn-reset:hover { background: var(--gray-100); border-color: var(--gray-300); }

/* ===== PROGRESS ===== */
.progress-wrap { margin-top: 20px; display: none; }
.progress-wrap.active { display: block; }
.progress-bar { width: 100%; height: 6px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 4px; transition: width .4s ease;
}
.progress-text {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-size: .85rem; color: var(--text-muted);
}

/* ===== RESULT ===== */
.result-wrap {
  margin-top: 24px; padding: 20px;
  background: var(--success-bg); border: 1px solid #a7f3d0;
  border-radius: var(--radius); display: none;
}
[data-theme="dark"] .result-wrap { border-color: #065f46; }
.result-wrap.active { display: block; }
.result-wrap .result-icon { font-size: 32px; margin-bottom: 8px; }
.result-wrap h4 { color: var(--success); font-size: 1.1rem; margin-bottom: 4px; }
.result-wrap p { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }
.btn-download {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 32px; border-radius: 8px;
  background: var(--success); color: white;
  font-weight: 700; font-size: .95rem; border: none; cursor: pointer;
  transition: var(--transition);
}
.btn-download:hover { background: #059669; color: white; transform: translateY(-1px); }

/* ===== SEO CONTENT ===== */
.seo-content {
  padding: 60px 0;
  background: var(--bg);
  transition: background var(--transition);
}
.seo-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800; color: var(--text);
  letter-spacing: -0.5px; margin-bottom: 16px;
  transition: color var(--transition);
}
.seo-content h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--text);
  margin-bottom: 8px; transition: color var(--transition);
}
.seo-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; transition: color var(--transition); }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin: 40px 0;
}
.feature-card {
  padding: 28px; border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--border);
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.feature-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
  background: var(--primary-bg); color: var(--primary);
  transition: background var(--transition);
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 8px; transition: color var(--transition); }
.feature-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.6; transition: color var(--transition); }

/* ===== HOW IT WORKS ===== */
.how-section {
  padding: 60px 0;
  background: var(--bg-alt);
  transition: background var(--transition);
}
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 40px;
}
.step-card { text-align: center; padding: 32px 20px; position: relative; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.3rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; transition: color var(--transition); }
.step-card p { font-size: .9rem; color: var(--text-muted); max-width: 300px; margin: 0 auto; transition: color var(--transition); }

/* ===== FAQ ===== */
.faq-section {
  padding: 60px 0;
  background: var(--bg);
  transition: background var(--transition);
}
.faq-list { max-width: 720px; margin: 32px auto 0; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 8px; overflow: hidden;
  transition: border var(--transition);
}
.faq-question {
  width: 100%; padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card-bg); border: none;
  font-size: .95rem; font-weight: 600; color: var(--text);
  cursor: pointer; text-align: left; transition: background var(--transition), color var(--transition);
}
.faq-question:hover { background: var(--bg-alt); }
.faq-question .faq-arrow { font-size: 14px; color: var(--text-muted); transition: var(--transition); flex-shrink: 0; }
.faq-item.open .faq-question .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 24px; background: var(--card-bg);
}
.faq-item.open .faq-answer {
  max-height: 300px; padding: 0 24px 18px;
}
.faq-answer p { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }

/* ===== LEGAL/CONTACT PAGES ===== */
.page-section {
  padding: calc(var(--header-h) + 40px) 0 60px;
  background: var(--bg);
  min-height: 60vh;
  transition: background var(--transition);
}
.page-section h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800; color: var(--text);
  margin-bottom: 8px;
}
.page-section .meta { color: var(--text-muted); font-size: .9rem; margin-bottom: 32px; }
.page-section h2 {
  font-size: 1.3rem; font-weight: 700; color: var(--text);
  margin: 32px 0 12px;
}
.page-section h3 {
  font-size: 1.1rem; font-weight: 600; color: var(--text);
  margin: 24px 0 8px;
}
.page-section p, .page-section li {
  color: var(--text-muted); line-height: 1.8; margin-bottom: 12px;
  transition: color var(--transition);
}
.page-section ul, .page-section ol { padding-left: 24px; margin-bottom: 16px; }
.page-section li { margin-bottom: 8px; }

.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; margin: 32px 0;
}
.contact-card {
  padding: 32px 24px; border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--border);
  text-align: center; transition: all var(--transition);
}
.contact-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.contact-card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 16px;
  background: var(--primary-bg); color: var(--primary);
}
.contact-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: .95rem; color: var(--text-muted); }
.contact-card a { color: var(--primary); font-weight: 500; }

/* ===== AD PLACEMENTS ===== */
.ad-container {
  display: flex; justify-content: center; align-items: center;
  min-height: 90px; margin: 32px 0;
  background: var(--bg-alt); border-radius: var(--radius);
  border: 1px dashed var(--border);
  overflow: hidden; transition: background var(--transition), border var(--transition);
}
.ad-container .ad-label {
  font-size: .7rem; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 1px;
}
.ad-banner { min-height: 250px; }

/* ===== FOOTER ===== */
.footer {
  padding: 48px 0 24px;
  background: var(--dark); color: var(--gray-400);
  transition: background var(--transition);
}
[data-theme="dark"] .footer { background: #020617; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 32px;
}
.footer-col .logo { color: white !important; margin-bottom: 16px; }
.footer-col p { font-size: .85rem; line-height: 1.7; color: var(--gray-400); }
.footer-col h4 { color: white; font-size: .9rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--gray-400); font-size: .85rem; transition: var(--transition); }
.footer-col ul a:hover { color: white; }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
  text-align: center; font-size: .8rem;
}

/* ===== DARK MODE TOGGLE ===== */
.theme-toggle {
  font-size: 1rem;
  padding: 8px 10px !important;
  width: 36px; justify-content: center !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--card-bg); border-bottom: 1px solid var(--border);
    padding: 16px; box-shadow: var(--shadow-lg);
    z-index: 999;
  }
  .hamburger { display: flex; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace { padding: 24px; }
  .steps-grid { grid-template-columns: 1fr; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .convert-actions { flex-direction: column; }
  .btn-convert { min-width: unset; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .header-inner { padding: 0 12px; }
  .hero { padding: calc(var(--header-h) + 40px) 0 50px; }
  .hero h1 { font-size: 1.8rem; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.fade-in { animation: fadeIn .4s ease forwards; }
.pulse { animation: pulse 1.5s ease infinite; }
