/* ─────────────────────────────────────────────────────────────────────────
   TPL Tools - shared styles
   Chenzo David
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --bg:        #0a0a0c;
  --bg2:       #111116;
  --surface:   #18181f;
  --surface2:  #222230;
  --border:    #2a2a38;
  --border2:   #3a3a50;
  --text:      #eeeef5;
  --muted:     #7a7a96;
  --lime:      #c8f135;
  --lime-dim:  #1e2908;
  --violet:    #8b5cf6;
  --violet-dim:#1a1030;
  --green:     #34d399;
  --green-dim: #042e1e;
  --amber:     #fbbf24;
  --amber-dim: #2d1e04;
  --red:       #f87171;
  --mono:      'DM Mono', monospace;
  --display:   'Bebas Neue', sans-serif;
  --body:      'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text); font-family: var(--body);
  font-size: 15px; line-height: 1.65; overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.4;
}

/* ── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  background: rgba(10,10,12,0.85) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky; top: 0; z-index: 1000;
}
.navbar-brand {
  font-family: var(--display); font-size: 22px; letter-spacing: 1px;
  color: var(--lime) !important;
}
.nav-link { color: var(--muted) !important; font-size: 13px; font-weight: 500; transition: color 0.2s; }
.nav-link:hover { color: var(--text) !important; }
.nav-link-accent { color: var(--lime) !important; font-weight: 600 !important; }
.nav-tools-menu {
  background: var(--surface) !important; border: 1px solid var(--border) !important;
  border-radius: 10px !important; padding: 6px !important;
}
.nav-tools-menu .dropdown-item {
  color: var(--muted) !important; font-size: 13px;
  border-radius: 6px; padding: 8px 12px;
  display: flex; align-items: center; gap: 8px;
}
.nav-tools-menu .dropdown-item:hover { background: var(--surface2) !important; color: var(--text) !important; }
.dropdown-count {
  margin-left: auto; font-family: var(--mono); font-size: 10px;
  background: var(--surface2); color: var(--muted);
  padding: 1px 6px; border-radius: 10px;
}

/* ── Generic hero (homepage + tool pages) ──────────────────────────────── */
.hero {
  padding: 70px 0 50px; position: relative; overflow: hidden;
}
.hero-tall { min-height: 88vh; display: flex; align-items: center; padding: 80px 0 60px; }
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0.3;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-glow {
  position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,241,53,0.08) 0%, transparent 70%);
  top: -150px; right: -150px; pointer-events: none;
}
.hero-glow-2 {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.07) 0%, transparent 70%);
  bottom: -50px; left: 10%; pointer-events: none;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--lime-dim); border: 1px solid rgba(200,241,53,0.2);
  color: var(--lime); font-family: var(--mono); font-size: 11px; font-weight: 500;
  padding: 5px 12px; border-radius: 20px; margin-bottom: 24px;
  letter-spacing: 0.05em; animation: fadeUp 0.6s ease both;
}
.hero-title {
  font-family: var(--display); font-size: clamp(56px, 8vw, 96px);
  line-height: 0.95; letter-spacing: 1px; color: var(--text);
  margin-bottom: 20px; animation: fadeUp 0.6s 0.1s ease both;
}
.hero-title-xl { font-size: clamp(64px, 9vw, 110px); }
.hero-title span { color: var(--lime); }
.hero-desc {
  font-size: 17px; color: var(--muted); max-width: 620px;
  margin: 0 auto 32px; line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-lime {
  background: var(--lime); color: #000;
  font-weight: 700; font-size: 14px;
  padding: 12px 28px; border-radius: 8px; border: none;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-lime:hover { background: #d4f548; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(200,241,53,0.25); color: #000; }
.btn-outline-lime {
  background: transparent; color: var(--lime); font-weight: 600; font-size: 14px;
  padding: 12px 28px; border-radius: 8px;
  border: 1px solid rgba(200,241,53,0.35); transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-lime:hover { background: var(--lime-dim); border-color: var(--lime); color: var(--lime); }
.btn-outline-lime-sm { padding: 8px 16px; font-size: 13px; }

/* ── Section helpers ───────────────────────────────────────────────────── */
section { position: relative; z-index: 1; }
.section-label {
  font-family: var(--mono); font-size: 11px; color: var(--lime);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ''; width: 24px; height: 2px; background: var(--lime);
}
.section-label.justify-content-center::before { display: none; }
.section-title {
  font-family: var(--display); font-size: clamp(36px, 5vw, 56px);
  line-height: 1.0; letter-spacing: 0.5px; margin-bottom: 16px;
}

/* ── Badges ────────────────────────────────────────────────────────────── */
.badge-mono {
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  padding: 2px 7px; border-radius: 20px;
  letter-spacing: 0.05em; text-transform: uppercase;
  display: inline-block; flex-shrink: 0;
}
.bdg-live     { background: var(--lime); color: #000; }
.bdg-soon     { background: var(--surface2); color: var(--muted); border: 1px solid var(--border2); }
.bdg-beta     { background: var(--violet-dim); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.3); }
.bdg-featured { background: var(--green-dim); color: var(--green); }
.bdg-blue     { background: #1a2a4a; color: #7eb3f7; }
.bdg-lime     { background: var(--lime-dim); color: var(--lime); }
.bdg-amber    { background: var(--amber-dim); color: var(--amber); }
.bdg-green    { background: var(--green-dim); color: var(--green); }

/* ── Live dot animation ────────────────────────────────────────────────── */
.live-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--green); border-radius: 50%; margin-right: 6px;
  animation: pulse-dot 1.8s infinite;
}

/* ── Search bar ────────────────────────────────────────────────────────── */
.search-wrap { max-width: 600px; margin: 0 auto 40px; position: relative; }
.search-input {
  width: 100%; padding: 16px 22px 16px 52px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border2); border-radius: 14px;
  font-family: var(--body); font-size: 15px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(200,241,53,0.1); }
.search-input::placeholder { color: var(--muted); }
.search-icon {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 18px;
}
.search-clear {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: var(--surface2); color: var(--muted);
  border: none; width: 28px; height: 28px; border-radius: 50%;
  cursor: pointer; display: none; align-items: center; justify-content: center;
}
.search-clear:hover { color: var(--text); }

/* ── Live ticker bar ───────────────────────────────────────────────────── */
.ticker-bar {
  background: var(--bg2); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); overflow: hidden;
  padding: 12px 0; position: relative;
}
.ticker-wrap {
  display: flex; gap: 32px; align-items: center;
  animation: scroll-left 50s linear infinite;
  white-space: nowrap; width: max-content;
}
.ticker-bar:hover .ticker-wrap { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.ticker-item strong { color: var(--text); font-weight: 500; }
.ticker-item.donation strong { color: var(--lime); }
.ticker-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-right: 4px;
}
.ticker-dot.donate { background: var(--lime); }

/* ── Stats bar (lime banner pattern) ───────────────────────────────────── */
.stats-bar {
  background: var(--lime); padding: 20px 0;
  overflow: hidden; position: relative;
}
.stats-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.stats-item { text-align: center; }
.stats-num {
  font-family: var(--display); font-size: 36px;
  color: #000; line-height: 1;
}
.stats-label {
  font-size: 11px; font-weight: 700; color: #333;
  font-family: var(--mono); letter-spacing: 0.05em; margin-top: 2px;
}

/* ── Category pills ────────────────────────────────────────────────────── */
.cat-pills {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 40px;
}
.cat-pill {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); padding: 8px 16px; border-radius: 24px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.cat-pill:hover { border-color: var(--border2); color: var(--text); }
.cat-pill.active { background: var(--lime); color: #000; border-color: var(--lime); font-weight: 700; }
.cat-pill .pill-count {
  font-family: var(--mono); font-size: 10px; opacity: 0.7;
  background: rgba(0,0,0,0.15); padding: 1px 6px; border-radius: 10px;
}
.cat-pill.active .pill-count { background: rgba(0,0,0,0.2); opacity: 1; }

/* ── Tools grid ────────────────────────────────────────────────────────── */
.tools-section { padding: 30px 0 80px; }
.cat-block { margin-bottom: 56px; scroll-margin-top: 80px; }
.cat-header {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.cat-header h3 {
  font-family: var(--display); font-size: 32px;
  letter-spacing: 0.5px; margin: 0;
}
.cat-header .cat-count {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.cat-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--lime-dim); color: var(--lime);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; margin-right: 4px;
}

.tool-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 18px 16px;
  height: 100%; transition: all 0.2s;
  display: flex; flex-direction: column; position: relative;
  text-decoration: none; color: var(--text); overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--lime), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.tool-card:hover { border-color: var(--border2); transform: translateY(-2px); color: var(--text); }
.tool-card.live:hover { border-color: var(--lime); }
.tool-card.live:hover::before { opacity: 1; }
.tool-card.featured { background: linear-gradient(180deg, var(--lime-dim) 0%, var(--surface) 60%); border-color: rgba(200,241,53,0.25); }
.tool-card.soon { opacity: 0.65; cursor: not-allowed; }
.tool-card.soon:hover { transform: none; border-color: var(--border); }
.tool-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 8px;
}
.tool-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.tool-desc { font-size: 13px; color: var(--muted); line-height: 1.55; flex: 1; }
.tool-arrow {
  color: var(--muted); font-size: 14px; transition: transform 0.2s, color 0.2s;
  margin-top: 12px; align-self: flex-start;
}
.tool-card.live:hover .tool-arrow { color: var(--lime); transform: translateX(4px); }

.empty-search {
  display: none; text-align: center; padding: 60px 20px;
  color: var(--muted); font-family: var(--mono); font-size: 14px;
}

/* ── Feature cards (used on tool pages) ────────────────────────────────── */
.features {
  padding: 80px 0; background: var(--bg2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  height: 100%; transition: all 0.25s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--lime), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.feature-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--lime-dim); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px; color: var(--lime);
}
.feature-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ── How it works steps ────────────────────────────────────────────────── */
.how-it-works {
  padding: 80px 0; background: var(--bg2);
  border-top: 1px solid var(--border);
}
.step-card {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  margin-bottom: 16px; transition: border-color 0.2s;
}
.step-card:hover { border-color: var(--border2); }
.step-num {
  font-family: var(--display); font-size: 40px;
  color: var(--lime); line-height: 1; min-width: 44px;
}
.step-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.step-desc { font-size: 14px; color: var(--muted); }

/* ── Donate section ────────────────────────────────────────────────────── */
.donate-section {
  padding: 80px 0; background: var(--bg2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.donate-card {
  background: linear-gradient(135deg, var(--lime-dim) 0%, var(--surface) 100%);
  border: 1px solid rgba(200,241,53,0.25); border-radius: 20px;
  padding: 48px 40px; position: relative; overflow: hidden;
}
.donate-card::after {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,241,53,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.donate-hero {
  display: flex; align-items: center; gap: 22px;
  padding-bottom: 24px; margin-bottom: 8px; position: relative;
  border-bottom: 1px solid rgba(200,241,53,0.15);
}
.donate-hero-num {
  font-family: var(--display); font-size: 92px; line-height: 0.9;
  color: var(--lime); text-shadow: 0 0 40px rgba(200,241,53,0.25);
}
.donate-hero-label {
  font-family: var(--display); font-size: 22px;
  letter-spacing: 0.5px; color: var(--text); line-height: 1.1;
}
.donate-hero-sub {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px;
}
.donate-amounts {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 20px;
}
.donate-amt {
  background: var(--surface); border: 1px solid var(--border2);
  color: var(--text); padding: 10px 18px; border-radius: 10px;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.15s;
}
.donate-amt:hover, .donate-amt.active {
  background: var(--lime); color: #000; border-color: var(--lime);
}
.btn-donate {
  background: var(--lime); color: #000; font-weight: 700; font-size: 15px;
  padding: 14px 32px; border-radius: 10px; border: none;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; cursor: pointer;
}
.btn-donate:hover { background: #d4f548; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(200,241,53,0.25); color: #000; }

.recent-donors {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
}
.recent-donors h4 {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.recent-donors h4 .live-dot {
  width: 7px; height: 7px; margin-right: 0;
}
.donor-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.donor-row:last-child { border-bottom: none; }
.donor-name { display: flex; align-items: center; gap: 10px; }
.donor-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--lime);
  flex-shrink: 0;
}
.donor-time { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.donor-badge {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--lime-dim); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq { padding: 80px 0; }
.accordion-item {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: 10px !important; margin-bottom: 8px;
}
.accordion-button {
  background: var(--surface) !important; color: var(--text) !important;
  font-weight: 600; font-size: 15px; box-shadow: none !important;
  border-radius: 10px !important;
}
.accordion-button:not(.collapsed) {
  color: var(--lime) !important; background: var(--surface2) !important;
}
.accordion-button::after { filter: invert(1) brightness(0.7); }
.accordion-body {
  color: var(--muted); font-size: 14px; line-height: 1.7;
  background: var(--surface2); border-radius: 0 0 10px 10px;
}
.accordion-body code {
  font-family: var(--mono); font-size: 11px;
  background: var(--surface); padding: 1px 5px; border-radius: 3px; color: #a89dfc;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-brand { font-family: var(--display); font-size: 28px; color: var(--lime); letter-spacing: 1px; }
.footer-tagline { font-size: 13px; color: var(--muted); margin-top: 4px; font-family: var(--mono); }
.footer-blurb { color: var(--muted); font-size: 13px; margin-top: 16px; line-height: 1.7; }
.footer-cta { margin-top: 20px; display: flex; gap: 12px; }
.footer-link {
  color: var(--muted); font-size: 13px; text-decoration: none;
  display: block; padding: 4px 0; transition: color 0.15s;
}
.footer-link:hover { color: var(--lime); }
.footer-link-more { color: var(--lime); font-weight: 600; margin-top: 4px; }
.footer-heading {
  font-size: 11px; font-weight: 700; color: var(--text);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 14px; font-family: var(--mono);
}
.footer-divider { border-color: var(--border); margin: 28px 0; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted);
}
.footer-bottom a { color: var(--lime); text-decoration: none; }
.footer-status { font-family: var(--mono); font-size: 11px; }
.footer-status-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--green); border-radius: 50%;
  animation: pulse-dot 1.8s infinite; margin-right: 6px;
}

/* ── REUSABLE TOOL UI PATTERNS ─────────────────────────────────────────── */
/* Use these on any tool page - no need to redeclare. */

.tool-wrapper {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
}
.tool-header {
  background: var(--surface2); border-bottom: 1px solid var(--border);
  padding: 18px 28px; display: flex; align-items: center; gap: 10px;
}
.tool-dots span {
  display: inline-block; width: 12px; height: 12px;
  border-radius: 50%; margin-right: 6px;
}
.dot-r { background: #f87171; }
.dot-y { background: #fbbf24; }
.dot-g { background: #34d399; }
.tool-title { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-left: 8px; }
.tool-body { padding: 28px; }

/* Dropzone (any tool that takes a file upload) */
.dropzone {
  border: 2px dashed var(--border2);
  border-radius: 14px; padding: 48px 24px;
  text-align: center; cursor: pointer;
  background: var(--bg2); position: relative;
  transition: all 0.2s;
}
.dropzone:hover, .dropzone.drag-over {
  border-color: var(--lime); background: var(--lime-dim);
}
.dropzone input[type=file] {
  position: absolute; inset: 0; opacity: 0;
  cursor: pointer; width: 100%; height: 100%;
}
.drop-icon { font-size: 40px; margin-bottom: 12px; color: var(--lime); }
.drop-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.drop-sub { font-size: 13px; color: var(--muted); font-family: var(--mono); }

/* File meta bar (after file selected) */
.file-meta-bar {
  display: none; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding: 12px 16px;
  background: var(--surface2); border-radius: 10px;
  border: 1px solid var(--border); font-size: 13px;
}
.file-name { font-family: var(--mono); font-size: 12px; word-break: break-all; flex: 1; }

/* Options panel */
.options-panel {
  display: none; margin-top: 16px;
  background: var(--surface2); border-radius: 12px;
  border: 1px solid var(--border); padding: 20px;
}
.opt-title {
  font-family: var(--mono); font-size: 10px;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 12px; margin-top: 16px;
}
.opt-title:first-child { margin-top: 0; }

.check-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; cursor: pointer; padding: 5px 0;
  color: var(--text); user-select: none;
}
.check-row input[type=checkbox] {
  accent-color: var(--lime); width: 16px; height: 16px; cursor: pointer;
}
.check-row code {
  font-family: var(--mono); font-size: 11px;
  background: var(--surface); padding: 1px 6px; border-radius: 4px; color: #a89dfc;
}
.field-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 5px 0; font-size: 14px;
}
.field-label { color: var(--muted); font-size: 13px; white-space: nowrap; min-width: 100px; }
.field-input {
  flex: 1; min-width: 80px; padding: 8px 12px;
  font-family: var(--mono); font-size: 13px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border2); border-radius: 8px; outline: none;
  transition: border-color 0.15s;
}
.field-input:focus { border-color: var(--lime); }

/* Mode toggle */
.mode-toggle {
  display: flex; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border2);
}
.mode-btn {
  flex: 1; padding: 9px 14px; font-size: 13px;
  font-family: var(--body); border: none; border-radius: 0;
  background: transparent; color: var(--muted);
  cursor: pointer; transition: all 0.15s;
}
.mode-btn.active { background: var(--lime); color: #000; font-weight: 700; }
.mode-btn:not(.active):hover { background: var(--surface); color: var(--text); }

/* Slider */
.slider-wrap { margin-top: 14px; }
.slider-top {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 6px;
}
input[type=range].slider-lime { width: 100%; accent-color: var(--lime); cursor: pointer; }

/* Message boxes */
.msg-box {
  font-family: var(--mono); font-size: 12px; border-radius: 8px;
  padding: 10px 14px; line-height: 1.7; margin-top: 12px;
}
.msg-info { background: #0d1f36; color: #7eb3f7; border-left: 3px solid #3b82f6; }
.msg-warn { background: var(--amber-dim); color: var(--amber); border-left: 3px solid var(--amber); }
.msg-err  { background: #2d0808; color: var(--red); border-left: 3px solid var(--red); }

/* Big "do it" CTA inside a tool */
.btn-convert {
  background: var(--lime); color: #000;
  font-weight: 700; font-size: 14px;
  padding: 12px 24px; border-radius: 10px;
  border: none; transition: all 0.2s;
  width: 100%; margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
}
.btn-convert:hover { background: #d4f548; transform: translateY(-1px); }

/* Output area */
.output-area {
  display: none; margin-top: 28px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.output-header {
  background: var(--surface2); border-bottom: 1px solid var(--border);
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.output-actions { display: flex; gap: 8px; }
.btn-sm-tool {
  padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border2); background: transparent; color: var(--text);
  cursor: pointer; transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 5px;
}
.btn-sm-tool:hover { background: var(--surface); }
.btn-sm-tool.primary { background: var(--lime); color: #000; border-color: transparent; }
.btn-sm-tool.primary:hover { background: #d4f548; }
.output-code {
  width: 100%; background: transparent;
  font-family: var(--mono); font-size: 11.5px;
  color: #a89dfc; border: none; outline: none;
  padding: 18px; resize: vertical; min-height: 140px; line-height: 1.7;
}
.preview-stage {
  padding: 20px; display: flex; align-items: center; justify-content: center;
  min-height: 90px;
  background:
    repeating-conic-gradient(rgba(255,255,255,0.04) 0% 25%, transparent 0% 50%) 0 0 / 20px 20px,
    var(--bg2);
  border-top: 1px solid var(--border);
}
.preview-stage svg, .preview-stage img { max-width: 100%; max-height: 100px; }
.copied-flash {
  font-family: var(--mono); font-size: 11px; color: var(--green);
  display: none; padding: 4px 0;
}

/* Inline code (for descriptions) */
code.inline {
  background: var(--surface2); padding: 2px 6px; border-radius: 4px;
  font-family: var(--mono); font-size: 13px; color: #a89dfc;
}

/* ── Animations ────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 50px 0 30px; }
  .hero-tall { min-height: auto; padding: 60px 0 40px; }
  .hero-title { font-size: 52px; }
  .hero-title-xl { font-size: 58px; }
  .donate-card { padding: 32px 24px; }
  .donate-hero { gap: 16px; padding-bottom: 20px; }
  .donate-hero-num { font-size: 64px; }
  .donate-hero-label { font-size: 18px; }
  .cat-header h3 { font-size: 26px; }
  .stats-inner { gap: 24px; }
  .tool-body { padding: 16px; }
}