/* ============================================================
   MyImgToolsPro - Main Stylesheet
   Design: Clean editorial with geometric accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --primary: #0F4C81;
  --primary-light: #1a6db5;
  --primary-dark: #083461;
  --accent: #FF6B35;
  --accent-light: #FF8C5A;
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --bg: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-dark: #0D1B2A;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --border-focus: #0F4C81;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { margin-bottom: 1rem; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--bg);
  color: var(--primary);
}
.nav-cta {
  background: var(--primary) !important;
  color: white !important;
}
.nav-cta:hover { background: var(--primary-light) !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 50%, #1a3a5c 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-block;
  background: rgba(255,107,53,0.2);
  color: #FF8C5A;
  border: 1px solid rgba(255,107,53,0.3);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  color: white;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
}
.hero h1 span { color: var(--accent); }
.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 36px;
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-wrap {
  max-width: 560px;
  margin: 0 auto 48px;
  position: relative;
}
.search-bar {
  width: 100%;
  padding: 16px 56px 16px 20px;
  border-radius: 50px;
  border: none;
  font-size: 1rem;
  font-family: var(--font-body);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  outline: none;
  transition: box-shadow var(--transition);
}
.search-bar:focus { box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 3px rgba(255,107,53,0.3); }
.search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--accent);
  border: none;
  border-radius: 50px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.search-btn:hover { background: var(--accent-light); }

/* ============================================================
   STAT STRIP
   ============================================================ */
.stats-strip {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; color: rgba(255,255,255,0.85); }
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  display: block;
}
.stat-label { font-size: 0.85rem; opacity: 0.7; }

/* ============================================================
   ADSENSE PLACEHOLDERS
   ============================================================ */
.ad-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #e8f0fe 100%);
  border: 2px dashed #c3d4ea;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.ad-placeholder::before {
  content: '📢 Advertisement';
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 0.7rem;
  opacity: 0.5;
}
.ad-banner { height: 90px; width: 100%; margin: 24px 0; }
.ad-rectangle { height: 250px; width: 300px; }
.ad-leaderboard { height: 90px; width: 728px; max-width: 100%; margin: 0 auto; display: flex; }

/* ============================================================
   TOOLS GRID
   ============================================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.tool-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}
.tool-card:hover::after { transform: scaleX(1); }
.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.tool-icon.blue { background: #EBF4FF; }
.tool-icon.orange { background: #FFF4EE; }
.tool-icon.green { background: #ECFDF5; }
.tool-icon.purple { background: #F5F3FF; }
.tool-icon.red { background: #FEF2F2; }
.tool-icon.teal { background: #F0FDFA; }
.tool-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.tool-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.tool-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-free { background: #ECFDF5; color: #16A34A; }
.badge-popular { background: #FFF4EE; color: #EA580C; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
}
.category-card:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.category-card:hover .category-icon { background: rgba(255,255,255,0.2); }
.category-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 14px;
  transition: background var(--transition);
}
.category-card h3 { font-size: 1rem; margin-bottom: 4px; }
.category-count { font-size: 0.8rem; color: var(--text-muted); }
.category-card:hover .category-count { color: rgba(255,255,255,0.75); }

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  background: #EBF4FF;
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: var(--bg-card);
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
  color: var(--text);
}
.faq-question:hover { background: var(--bg); }
.faq-question .faq-icon { font-size: 1.2rem; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--bg-card);
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================================
   UPLOAD AREA (for tool pages)
   ============================================================ */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-card);
  position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: #EBF4FF;
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
}
.upload-zone h3 { margin-bottom: 8px; }
.upload-zone p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.upload-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 32px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.upload-btn:hover { background: var(--primary-light); }
.upload-limits {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   TOOL PAGE LAYOUT
   ============================================================ */
.tool-page-header {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  color: white;
}
.tool-page-header .breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool-page-header .breadcrumb a { color: rgba(255,255,255,0.6); }
.tool-page-header .breadcrumb a:hover { color: white; }
.tool-page-header h1 { color: white; margin-bottom: 12px; }
.tool-page-header p { color: rgba(255,255,255,0.75); font-size: 1.05rem; max-width: 600px; }

.tool-main { padding: 48px 0; }
.tool-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}
.tool-sidebar { display: flex; flex-direction: column; gap: 20px; }

/* Controls */
.control-group { margin-bottom: 20px; }
.control-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}
.control-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--bg-card);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}
.control-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(15,76,129,0.1); }
.control-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.control-range {
  width: 100%;
  accent-color: var(--primary);
  margin-top: 4px;
}

/* Process button */
.process-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-display);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.process-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.process-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Download button */
.download-btn {
  width: 100%;
  padding: 12px;
  background: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-display);
  transition: all var(--transition);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.download-btn.show { display: flex; }
.download-btn:hover { background: #16A34A; color: white; }

/* Preview */
.preview-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-placeholder {
  text-align: center;
  color: var(--text-muted);
}
.preview-placeholder svg { opacity: 0.3; margin-bottom: 12px; }
.preview-img {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius-sm);
  display: none;
}
.preview-img.show { display: block; }

/* Progress / status */
.status-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}
.status-msg.show { display: block; }
.status-msg.processing { background: #EBF4FF; color: var(--primary); }
.status-msg.success { background: #ECFDF5; color: #16A34A; }
.status-msg.error { background: #FEF2F2; color: #DC2626; }

/* ============================================================
   CARDS & PANELS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.related-tools { display: flex; flex-direction: column; gap: 8px; }
.related-tool-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background var(--transition);
}
.related-tool-link:hover { background: var(--bg); color: var(--primary); }
.related-tool-link span { font-size: 1.1rem; }

/* ============================================================
   STEPS / HOW TO USE
   ============================================================ */
.steps { display: flex; flex-direction: column; gap: 20px; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.step-content h4 { margin-bottom: 4px; }
.step-content p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-family: var(--font-display);
  color: white;
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
}
.footer-bottom-links a:hover { color: white; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-light); color: white; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent {
  background: var(--accent);
  color: white;
}
.btn-accent:hover { background: var(--accent-light); color: white; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* ============================================================
   FEATURES / BENEFITS
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.feature-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: #EBF4FF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feature-card h4 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ============================================================
   PAGE HERO (for inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { color: white; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.form-input, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  background: var(--bg-card);
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(15,76,129,0.1);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-submit {
  padding: 14px 40px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-display);
  transition: all var(--transition);
}
.form-submit:hover { background: var(--primary-light); transform: translateY(-1px); }

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
#search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 200;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition);
  font-size: 0.9rem;
}
.search-result-item:hover { background: var(--bg); }
.search-result-item span { font-size: 1.1rem; }

/* ============================================================
   PROSE (for privacy, terms etc.)
   ============================================================ */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text);
}
.prose h2 { margin: 40px 0 16px; font-size: 1.5rem; }
.prose h3 { margin: 28px 0 12px; font-size: 1.15rem; }
.prose ul, .prose ol { margin: 0 0 16px 24px; }
.prose li { margin-bottom: 8px; }
.prose p { margin-bottom: 16px; }
.prose strong { color: var(--primary); }
.last-updated {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ============================================================
   TAGS
   ============================================================ */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.tag:hover { background: var(--primary); color: white; border-color: var(--primary); }
.tag a { color: inherit; text-decoration: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .tool-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 16px; width: 100%; }
  .navbar { position: relative; }
  .stats-strip { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .tool-layout { grid-template-columns: 1fr; }
  .ad-leaderboard { display: none; }
  .section { padding: 56px 0; }
  .hero { padding: 60px 0 80px; }
}

@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.9rem; }
}
