/* =========================================================
   Abbreviation Generator — SEOWebChecker.com
   ========================================================= */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary:    #0d1117;
  --bg-secondary:  #161b22;
  --bg-card:       #1c2333;
  --bg-input:      #0d1117;
  --border:        #30363d;
  --border-focus:  #4c8ef5;
  --accent:        #4c8ef5;
  --accent-hover:  #3b7de8;
  --accent-light:  rgba(76,142,245,.12);
  --text-primary:  #e6edf3;
  --text-secondary:#8b949e;
  --text-muted:    #6e7681;
  --success:       #3fb950;
  --warning:       #d29922;
  --error:         #f85149;
  --gradient-hero: linear-gradient(135deg, #0d1117 0%, #1a2540 50%, #0d1117 100%);
  --shadow-card:   0 4px 24px rgba(0,0,0,.4);
  --shadow-btn:    0 2px 12px rgba(76,142,245,.3);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --transition:    .2s ease;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-heading:  'Outfit', system-ui, sans-serif;
}

[data-theme="light"] {
  --bg-primary:    #f6f8fa;
  --bg-secondary:  #ffffff;
  --bg-card:       #ffffff;
  --bg-input:      #f6f8fa;
  --border:        #d0d7de;
  --border-focus:  #4c8ef5;
  --text-primary:  #1f2328;
  --text-secondary:#57606a;
  --text-muted:    #8c959f;
  --gradient-hero: linear-gradient(135deg, #e8f0fe 0%, #f0f7ff 50%, #e8f0fe 100%);
  --shadow-card:   0 4px 24px rgba(0,0,0,.08);
  --bg-primary-nav:#ffffff;
}

*, *::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-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.25; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; gap: 16px;
  height: 60px;
}

.nav-logo {
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.15rem; color: var(--text-primary);
  white-space: nowrap; flex-shrink: 0;
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }

.nav-item { position: relative; }

.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: .875rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  background: none; border: none; white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--accent-light); }

.nav-link svg { width: 14px; height: 14px; transition: transform var(--transition); flex-shrink: 0; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Mega dropdown */
.mega-menu {
  display: none; position: absolute; top: 100% ; left: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px;
  min-width: 560px; box-shadow: var(--shadow-card);
  z-index: 2000;
}
.nav-item:hover .mega-menu { display: block; }

.mega-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}

.mega-link {
  display: block; padding: 7px 10px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: .8rem;
  transition: all var(--transition);
}
.mega-link:hover { background: var(--accent-light); color: var(--accent); }

.mega-title {
  grid-column: 1/-1; font-weight: 700; font-size: .75rem;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em;
  padding: 0 10px 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px;
}

.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

.theme-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn svg { width: 18px; height: 18px; }

/* Hamburger */
.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-primary); border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none; background: var(--bg-secondary);
  border-top: 1px solid var(--border); padding: 12px 20px 20px;
}
.mobile-menu.open { display: block; }

.mobile-section { margin-bottom: 16px; }
.mobile-section-title {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); font-weight: 700; margin-bottom: 8px;
}
.mobile-link {
  display: block; padding: 8px 0; color: var(--text-secondary);
  font-size: .875rem; border-bottom: 1px solid var(--border);
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover { color: var(--accent); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
  max-width: 1280px; margin: 0 auto;
  padding: 12px 20px;
  font-size: .8rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-secondary); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--gradient-hero);
  padding: 72px 20px 56px;
  text-align: center;
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(76,142,245,.15), transparent);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-light); border: 1px solid rgba(76,142,245,.3);
  color: var(--accent); font-size: .75rem; font-weight: 600;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  color: var(--text-primary); margin-bottom: 16px;
  max-width: 800px; margin-left: auto; margin-right: auto;
}
.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 640px; margin: 0 auto 40px;
}

/* =========================================================
   TOOL CARD
   ========================================================= */
.tool-wrap {
  max-width: 860px; margin: -28px auto 0;
  padding: 0 20px 40px; position: relative; z-index: 10;
}

.tool-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  box-shadow: var(--shadow-card);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: .8rem; font-weight: 600;
  color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em;
}

.form-input, .form-select {
  width: 100%; padding: 12px 16px;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-family: var(--font-body); font-size: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(76,142,245,.15);
}
.form-input.error { border-color: var(--error); }
.form-input.valid { border-color: var(--success); }

.form-input::placeholder { color: var(--text-muted); }

textarea.form-input { resize: vertical; min-height: 90px; }

.form-hint {
  font-size: .75rem; color: var(--text-muted);
  display: flex; align-items: center; justify-content: space-between;
}
.char-counter { font-variant-numeric: tabular-nums; }
.char-counter.warn { color: var(--warning); }
.char-counter.over { color: var(--error); }

.field-error { font-size: .75rem; color: var(--error); margin-top: 2px; min-height: 16px; }

/* Tags row */
.options-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.opt-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--bg-input);
  color: var(--text-secondary); font-size: .8rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
}
.opt-chip input { display: none; }
.opt-chip:has(input:checked),
.opt-chip.selected {
  background: var(--accent-light); border-color: var(--accent); color: var(--accent);
}

/* Submit button */
.btn-submit {
  width: 100%; padding: 15px;
  background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-md);
  font-family: var(--font-heading); font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: var(--shadow-btn);
}
.btn-submit:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-submit .spinner {
  width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
  display: none;
}
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   RESULT SECTION
   ========================================================= */
.result-section {
  max-width: 860px; margin: 0 auto;
  padding: 0 20px 48px;
}

.result-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-card); animation: fadeSlideUp .35s ease;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-header {
  background: linear-gradient(135deg, var(--accent) 0%, #6b5ef8 100%);
  padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

.result-primary {
  font-family: var(--font-heading); font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 800; color: #fff; letter-spacing: .04em;
  word-break: break-all;
}

.result-type-badge {
  background: rgba(255,255,255,.2); color: #fff;
  padding: 5px 14px; border-radius: 100px;
  font-size: .8rem; font-weight: 600; backdrop-filter: blur(4px);
}

.result-body { padding: 28px 32px; }

.result-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 20px;
}

.result-item {
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px;
}
.result-item-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); font-weight: 700; margin-bottom: 6px;
}
.result-item-value {
  color: var(--text-primary); font-size: .9rem; line-height: 1.5;
}

.alts-wrap { margin-bottom: 20px; }
.alts-label {
  font-size: .8rem; color: var(--text-secondary); font-weight: 600; margin-bottom: 10px;
}
.alts-list { display: flex; flex-wrap: wrap; gap: 8px; }
.alt-chip {
  background: var(--accent-light); border: 1px solid rgba(76,142,245,.3);
  color: var(--accent); padding: 6px 14px; border-radius: 100px;
  font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: all var(--transition);
}
.alt-chip:hover { background: var(--accent); color: #fff; }

.result-explanation {
  background: var(--bg-input); border-left: 3px solid var(--accent);
  padding: 14px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .875rem; color: var(--text-secondary); margin-bottom: 20px;
}

/* Action buttons */
.result-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px;
}

.btn-action {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition); border: none;
}
.btn-copy   { background: var(--accent-light); color: var(--accent); border: 1px solid rgba(76,142,245,.3); }
.btn-download { background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-share  { background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-feedback { background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-action:hover { transform: translateY(-1px); filter: brightness(1.1); }
.btn-action svg { width: 16px; height: 16px; }
.btn-copy.copied { background: rgba(63,185,80,.15); color: var(--success); border-color: var(--success); }

/* =========================================================
   RELATED TOOLS STRIP
   ========================================================= */
.related-strip {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 16px 20px;
  overflow-x: auto; white-space: nowrap;
}
.related-strip-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
}
.related-label { font-size: .75rem; color: var(--text-muted); font-weight: 600; flex-shrink: 0; }
.related-chip {
  display: inline-block; padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-secondary); font-size: .78rem;
  transition: all var(--transition); flex-shrink: 0;
}
.related-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* =========================================================
   SECTION LAYOUT
   ========================================================= */
.section { padding: 72px 20px; }
.section-center { text-align: center; }

.container { max-width: 1280px; margin: 0 auto; }

.section-label {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); font-weight: 700; margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
  color: var(--text-primary); margin-bottom: 14px;
}

.section-desc {
  color: var(--text-secondary); font-size: 1rem;
  max-width: 600px; margin: 0 auto;
}

/* =========================================================
   FEATURES
   ========================================================= */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin-top: 48px;
}

.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-card); }

.feature-icon {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--accent-light); border: 1px solid rgba(76,142,245,.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; color: var(--accent);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .875rem; color: var(--text-secondary); }

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.steps { display: flex; flex-direction: column; gap: 24px; margin-top: 48px; max-width: 700px; margin-left: auto; margin-right: auto; }

.step {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: border-color var(--transition);
}
.step:hover { border-color: var(--accent); }

.step-num {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #fff;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.step-content h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step-content p { font-size: .875rem; color: var(--text-secondary); }

/* =========================================================
   SEO ARTICLE
   ========================================================= */
.article-section {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 64px 20px;
}
.article-inner { max-width: 860px; margin: 0 auto; }
.article-inner h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; }
.article-inner h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 10px; color: var(--text-primary); }
.article-inner p { color: var(--text-secondary); margin-bottom: 14px; font-size: .95rem; line-height: 1.75; }
.article-inner strong { color: var(--text-primary); }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 760px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
}

.faq-q {
  width: 100%; text-align: left; padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: none; color: var(--text-primary);
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  cursor: pointer; transition: background var(--transition);
}
.faq-q:hover { background: var(--accent-light); }
.faq-q svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted); transition: transform var(--transition); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }

.faq-a {
  display: none; padding: 0 20px 18px;
  font-size: .875rem; color: var(--text-secondary); line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* =========================================================
   CTA
   ========================================================= */
.cta-section {
  padding: 80px 20px; text-align: center;
  background: linear-gradient(135deg, rgba(76,142,245,.1) 0%, rgba(107,94,248,.1) 100%);
  border-top: 1px solid var(--border);
}

.cta-title { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.cta-desc { color: var(--text-secondary); margin-bottom: 32px; }
.cta-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.btn-cta-primary {
  padding: 13px 28px; background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: all var(--transition); box-shadow: var(--shadow-btn);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.btn-cta-primary:hover { background: var(--accent-hover); transform: translateY(-1px); color: #fff; }

.btn-cta-secondary {
  padding: 13px 28px; background: transparent; color: var(--text-primary);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  font-family: var(--font-heading); font-weight: 700; font-size: .95rem;
  cursor: pointer; transition: all var(--transition); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-cta-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 56px 20px 24px;
}

.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px; margin-bottom: 40px;
}

.footer-col h4 {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); font-weight: 700; margin-bottom: 14px;
}

.footer-link {
  display: block; padding: 4px 0;
  color: var(--text-secondary); font-size: .85rem;
  transition: color var(--transition);
}
.footer-link:hover { color: var(--accent); }

.footer-logo {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800;
  color: var(--text-primary); margin-bottom: 12px;
}
.footer-logo span { color: var(--accent); }
.footer-tagline { font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; }

.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; font-size: .8rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

.disclaimer {
  font-size: .75rem; color: var(--text-muted);
  max-width: 1280px; margin: 16px auto 0; padding: 0 20px;
  border-top: 1px solid var(--border); padding-top: 14px;
}

/* =========================================================
   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;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  box-shadow: 0 -4px 24px rgba(0,0,0,.3);
  transform: translateY(0); transition: transform .3s ease;
}
.cookie-banner.hidden { transform: translateY(100%); }
.cookie-text { flex: 1; font-size: .85rem; color: var(--text-secondary); min-width: 200px; }
.cookie-text a { color: var(--accent); }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cookie {
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); border: none;
}
.btn-accept { background: var(--accent); color: #fff; }
.btn-accept:hover { background: var(--accent-hover); }
.btn-dismiss { background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-dismiss:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================================
   ERROR / ALERT
   ========================================================= */
.alert {
  padding: 14px 18px; border-radius: var(--radius-md);
  font-size: .875rem; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
  animation: fadeSlideUp .3s ease;
}
.alert-error { background: rgba(248,81,73,.12); border: 1px solid rgba(248,81,73,.3); color: var(--error); }
.alert-success { background: rgba(63,185,80,.12); border: 1px solid rgba(63,185,80,.3); color: var(--success); }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* =========================================================
   MISC UTILITIES
   ========================================================= */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 640px) {
  .tool-card { padding: 20px 16px; }
  .result-body { padding: 20px 16px; }
  .result-header { padding: 20px 16px; }
  .result-actions { gap: 8px; }
  .btn-action { padding: 8px 12px; font-size: .78rem; }
}
