/* ============================================================
   Instagram Caption Generator – SEOWebChecker.com
   Style Sheet v1.0
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --primary: #e1306c;
  --primary-dark: #c0254e;
  --primary-light: #ff6b9d;
  --secondary: #833ab4;
  --accent: #f77737;
  --grad: linear-gradient(135deg, #833ab4 0%, #e1306c 50%, #f77737 100%);
  --grad-soft: linear-gradient(135deg, rgba(131,58,180,.08) 0%, rgba(225,48,108,.08) 50%, rgba(247,119,55,.08) 100%);

  --bg: #f6f7fb;
  --bg-card: #ffffff;
  --bg-nav: rgba(255,255,255,.95);
  --text: #1a1a2e;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-focus: #e1306c;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-h: 68px;
  --transition: .2s ease;
}

[data-theme="dark"] {
  --bg: #0d0d1a;
  --bg-card: #161627;
  --bg-nav: rgba(13,13,26,.96);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border: #2d2d4a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow: 0 4px 16px rgba(0,0,0,.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
}

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

/* ---------- Utility ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.text-grad { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ---------- Cookie Banner ---------- */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--bg-card); border-top: 1px solid var(--border);
  padding: 16px 20px; box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
#cookie-banner p { flex: 1; font-size: .85rem; color: var(--text-muted); min-width: 200px; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--grad); color: #fff; border: none;
  padding: 8px 20px; border-radius: var(--radius-pill);
  font-size: .85rem; font-weight: 600;
}
.btn-cookie-dismiss {
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); padding: 8px 16px;
  border-radius: var(--radius-pill); font-size: .85rem;
}

/* ---------- Navigation ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-nav); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; height: 100%; gap: 0; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--text); margin-right: auto; flex-shrink: 0; }
.nav-logo-icon { width: 36px; height: 36px; background: var(--grad); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.nav-logo-icon svg { width: 20px; height: 20px; fill: #fff; }
.nav-links { display: flex; align-items: center; gap: 2px; height: 100%; }
.nav-item { position: relative; height: 100%; display: flex; align-items: center; }
.nav-link {
  padding: 0 14px; font-size: .88rem; font-weight: 500;
  color: var(--text-muted); white-space: nowrap;
  display: flex; align-items: center; gap: 5px; height: 100%;
  transition: color var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link svg { width: 14px; height: 14px; transition: transform .2s; fill: none; stroke: currentColor; stroke-width: 2; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Mega dropdown */
.mega-menu {
  display: none; position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%); background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px;
  min-width: 320px; z-index: 999;
}
.nav-item:hover .mega-menu { display: block; }
.mega-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-light); margin-bottom: 10px; }
.mega-links { display: grid; grid-template-columns: 1fr; gap: 2px; }
.mega-links a { font-size: .85rem; color: var(--text-muted); padding: 6px 8px; border-radius: var(--radius-sm); transition: background var(--transition), color var(--transition); }
.mega-links a:hover { background: var(--grad-soft); color: var(--primary); }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: 12px; }
.theme-toggle {
  background: var(--bg); border: 1px solid var(--border);
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover { background: var(--border); color: var(--text); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg-card); z-index: 999; overflow-y: auto;
  padding: 20px; flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 16px; border-radius: var(--radius-sm); color: var(--text); font-size: .95rem; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-nav a:hover { background: var(--grad-soft); color: var(--primary); }
.mobile-nav-section { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-light); padding: 16px 0 6px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 12px 0; font-size: .82rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}
.breadcrumb ol { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb li { display: flex; align-items: center; gap: 6px; color: var(--text-muted); }
.breadcrumb li:last-child { color: var(--primary); font-weight: 500; }
.breadcrumb li + li::before { content: '›'; color: var(--text-light); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 60px;
  background: var(--bg-card);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(225,48,108,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -80px; left: -80px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(131,58,180,.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--grad-soft); border: 1px solid rgba(225,48,108,.2);
  color: var(--primary); font-size: .8rem; font-weight: 600;
  padding: 6px 16px; border-radius: var(--radius-pill); margin-bottom: 20px;
}
.hero h1 { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
.hero p { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-lbl { font-size: .78rem; color: var(--text-muted); font-weight: 500; }

/* ---------- Tool Card ---------- */
.tool-section { padding: 60px 0 40px; }
.tool-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px; max-width: 820px; margin: 0 auto;
}
.tool-card h2 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; margin-bottom: 28px; display: flex; align-items: center; gap: 10px; }
.tool-card h2 span { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Form */
.form-group { margin-bottom: 20px; }
label { display: block; font-size: .87rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
label .req { color: var(--primary); margin-left: 2px; }
.input-wrap { position: relative; }
textarea, input[type="text"], select {
  width: 100%; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-family: var(--font-body); font-size: .92rem; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
textarea:focus, input:focus, select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(225,48,108,.12);
}
textarea { resize: vertical; min-height: 100px; }
.char-counter { text-align: right; font-size: .75rem; color: var(--text-light); margin-top: 4px; }
.char-counter.warn { color: var(--accent); }
.char-counter.over { color: #ef4444; }
.field-error { font-size: .78rem; color: #ef4444; margin-top: 4px; display: none; }
.field-error.show { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Toggle switch */
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--border); }
.toggle-label { font-size: .87rem; font-weight: 500; color: var(--text); }
.toggle-switch { position: relative; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; inset: 0; background: var(--border);
  border-radius: 999px; cursor: pointer; transition: background .2s;
}
.slider::before {
  content: ''; position: absolute; width: 18px; height: 18px;
  left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s;
}
.toggle-switch input:checked + .slider { background: var(--grad); }
.toggle-switch input:checked + .slider::before { transform: translateX(20px); }

/* Submit button */
.btn-generate {
  width: 100%; padding: 15px;
  background: var(--grad); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700;
  margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: opacity .2s, transform .1s;
  position: relative; overflow: hidden;
}
.btn-generate:hover:not(:disabled) { opacity: .92; transform: translateY(-1px); }
.btn-generate:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-generate .spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn-generate.loading .spinner { display: block; }
.btn-generate.loading .btn-text { opacity: 0; position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Results ---------- */
#result-section { max-width: 820px; margin: 0 auto 40px; display: none; }
.result-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.result-header h3 { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-action {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: .83rem; font-weight: 600; transition: all var(--transition);
  border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text-muted);
}
.btn-action:hover { border-color: var(--primary); color: var(--primary); background: var(--grad-soft); }
.btn-action svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-action.primary { background: var(--grad); color: #fff; border-color: transparent; }
.btn-action.primary:hover { opacity: .9; }

.caption-grid { display: flex; flex-direction: column; gap: 16px; }
.caption-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  position: relative; transition: box-shadow var(--transition), border-color var(--transition);
}
.caption-card:hover { box-shadow: var(--shadow); border-color: rgba(225,48,108,.3); }
.caption-num {
  position: absolute; top: -10px; left: 20px;
  background: var(--grad); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 2px 10px;
  border-radius: var(--radius-pill); letter-spacing: .04em;
}
.caption-text { font-size: .95rem; line-height: 1.75; color: var(--text); white-space: pre-wrap; margin-top: 6px; }
.caption-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.caption-chars { font-size: .75rem; color: var(--text-light); }
.caption-copy {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 600; background: var(--grad-soft);
  border: 1px solid rgba(225,48,108,.2); color: var(--primary);
  transition: all var(--transition);
}
.caption-copy:hover { background: var(--primary); color: #fff; }
.caption-copy svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.5; }

/* Share & feedback bar */
.post-action-bar {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 20px; flex-wrap: wrap; margin-top: 8px;
}
.btn-share, .btn-feedback {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-pill);
  font-size: .88rem; font-weight: 600; transition: all var(--transition);
}
.btn-share { background: var(--grad); color: #fff; border: none; }
.btn-share:hover { opacity: .9; }
.btn-feedback { background: transparent; border: 1.5px solid var(--border); color: var(--text-muted); }
.btn-feedback:hover { border-color: var(--primary); color: var(--primary); }
.btn-share svg, .btn-feedback svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Related Tools Banner (before Features) ---------- */
.related-tools-strip { padding: 36px 0; background: var(--grad-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.related-tools-strip h2 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; text-align: center; margin-bottom: 18px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.tool-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tool-chip {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: 7px 16px;
  font-size: .82rem; font-weight: 500; color: var(--text-muted);
  transition: all var(--transition);
}
.tool-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--grad-soft); }

/* ---------- Features ---------- */
.features { padding: 80px 0; background: var(--bg); }
.section-head { text-align: center; margin-bottom: 52px; }
.section-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 10px; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; text-align: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(225,48,108,.25); }
.feature-icon {
  width: 56px; height: 56px; background: var(--grad-soft); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
  font-size: 1.6rem;
}
.feature-card h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: .87rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- How It Works ---------- */
.how-it-works { padding: 80px 0; background: var(--bg-card); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; max-width: 900px; margin: 0 auto; position: relative; }
.step { text-align: center; position: relative; }
.step-num {
  width: 52px; height: 52px; background: var(--grad); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: #fff;
  margin: 0 auto 16px; position: relative; z-index: 1;
}
.step h3 { font-family: var(--font-head); font-size: .98rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: .85rem; color: var(--text-muted); }

/* ---------- SEO Article ---------- */
.seo-article { padding: 70px 0; background: var(--bg); }
.article-inner { max-width: 760px; margin: 0 auto; }
.article-inner h2 { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; margin-bottom: 18px; }
.article-inner p { font-size: .95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.article-inner h3 { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin: 28px 0 10px; color: var(--text); }

/* ---------- FAQ ---------- */
.faq { padding: 80px 0; background: var(--bg-card); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 18px 20px; font-family: var(--font-body); font-size: .93rem;
  font-weight: 600; color: var(--text); display: flex; align-items: center;
  justify-content: space-between; gap: 12px; transition: color var(--transition);
}
.faq-q:hover { color: var(--primary); }
.faq-icon { width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: border-color var(--transition), transform .3s; }
.faq-icon::after { content: '+'; font-size: .9rem; color: var(--text-muted); line-height: 1; }
.faq-item.open .faq-icon { border-color: var(--primary); transform: rotate(45deg); }
.faq-item.open .faq-icon::after { color: var(--primary); }
.faq-a { display: none; padding: 0 20px 18px; font-size: .88rem; color: var(--text-muted); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ---------- CTA ---------- */
.cta-section { padding: 90px 0; background: var(--grad); text-align: center; }
.cta-section h2 { font-family: var(--font-head); font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; color: #fff; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,.85); font-size: 1.05rem; margin-bottom: 32px; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-btn {
  padding: 13px 28px; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-size: .95rem; font-weight: 700;
  transition: all var(--transition);
}
.cta-btn.white { background: #fff; color: var(--primary); border: 2px solid #fff; }
.cta-btn.white:hover { background: transparent; color: #fff; }
.cta-btn.outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.cta-btn.outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; margin-top: 12px; }
.footer-col h4 { font-family: var(--font-head); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-light); margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: .83rem; color: var(--text-muted); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: .8rem; color: var(--text-light); }
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { font-size: .8rem; color: var(--text-light); }
.footer-legal a:hover { color: var(--primary); }
.disclaimer { font-size: .75rem; color: var(--text-light); padding-top: 12px; }

/* ---------- Toast ---------- */
#toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1a1a2e; color: #fff; padding: 10px 22px;
  border-radius: var(--radius-pill); font-size: .85rem; font-weight: 500;
  z-index: 9999; opacity: 0; transition: all .3s; pointer-events: none; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 50px 0 40px; }
  .tool-card { padding: 24px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .result-header { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 24px; }
}
