/* ============================================================
   MyCalcTools.net — style.css
   Cosmic Dark theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --bg: #080810;
  --surface: #15151E;
  --surface2: #1C1C28;
  --surface3: #232333;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text: #EEEAF8;
  --muted: #A0A0C0;
  --dim: #7070A0;
  --health: #34D399;
  --health-dim: rgba(52,211,153,0.09);
  --finance: #60A5FA;
  --finance-dim: rgba(96,165,250,0.09);
  --kitchen: #FB923C;
  --kitchen-dim: rgba(251,146,60,0.09);
  --lifestyle: #F472B6;
  --lifestyle-dim: rgba(244,114,182,0.09);
  --business: #FBBF24;
  --business-dim: rgba(251,191,36,0.09);
  --eco: #86EFAC;
  --eco-dim: rgba(134,239,172,0.09);
  --kids: #FDA4AF;
  --kids-dim: rgba(253,164,175,0.09);
  --cyan: #06d6ff;
  --purple: #8b5cf6;
  --gold: #f59e0b;
  --nav-h: 64px;
  --strip-h: 44px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  color: var(--text);
  background:
    radial-gradient(ellipse at 20% 50%, rgba(88,28,135,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(6,182,212,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(124,58,237,0.12) 0%, transparent 50%),
    #080810;
  min-height: 100vh;
  line-height: 1.6;
}

body::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  z-index: 0;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #080810; }
::-webkit-scrollbar-thumb { background: linear-gradient(#8b5cf6, #06d6ff); border-radius: 3px; }

h1, h2, h3, h4, h5, h6 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.2; }
a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--purple); }
p { color: var(--muted); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Brand Strip ── */
.rs-brand-strip {
  background: linear-gradient(90deg, #050c1c, #12082a, #050c1c);
  border-bottom: 1px solid rgba(0,229,255,0.2);
  padding: 0 40px;
  height: var(--strip-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
}
.rs-brand-left { display: flex; align-items: center; gap: 10px; }
.rs-raven-mark { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; filter: drop-shadow(0 0 12px rgba(6,214,255,0.4)); }
.rs-brand-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; color: #fff; line-height: 1.1; }
.rs-brand-sub { font-family: 'Outfit', sans-serif; font-size: 0.72rem; color: rgba(167,139,250,0.85); display: block; }
.rs-support-pill {
  background: linear-gradient(135deg, #06d6ff, #8b5cf6);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.rs-support-pill:hover { color: #fff; opacity: 0.85; }

/* ── Navigation ── */
.site-nav {
  background: rgba(8,8,16,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 99;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.nav-logo-text { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--text); }

/* Search */
.nav-search { flex: 1; max-width: 420px; position: relative; }
.nav-search-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border2);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 8px 16px 8px 38px;
  outline: none;
  transition: all 0.2s;
}
.nav-search-input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,214,255,0.12); }
.nav-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 0.85rem; pointer-events: none; }
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 6px;
  z-index: 200;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none;
  max-height: 320px;
  overflow-y: auto;
}
.search-dropdown.open { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text);
}
.search-result-item:hover { background: var(--surface2); }
.search-result-cat { font-size: 0.7rem; color: var(--dim); }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; flex-shrink: 0; }
.nav-links a {
  color: var(--muted); font-size: 0.82rem; font-weight: 500;
  padding: 5px 10px; border-radius: 7px; transition: all 0.2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface2); }
.nav-sister-pill {
  background: transparent; border: 1px solid var(--border2);
  color: var(--muted); font-size: 0.78rem; font-weight: 500;
  padding: 5px 12px; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
  transition: all 0.2s;
}
.nav-sister-pill:hover { border-color: var(--cyan); color: var(--cyan); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-menu { display: none; background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 24px 20px; position: relative; z-index: 98; }
.nav-mobile-menu.open { display: block; }
.nav-mobile-menu a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }
.nav-mobile-menu a:last-child { border-bottom: none; }

/* ── AdSense ── */
.ad-leaderboard { text-align: center; padding: 16px 0; min-height: 0; position: relative; z-index: 1; }
.ad-rectangle { text-align: center; padding: 16px 0; min-height: 280px; }

/* ── Buttons ── */
.btn-calc {
  background: linear-gradient(135deg, #06d6ff, #8b5cf6);
  box-shadow: 0 0 20px rgba(6,214,255,0.3), 0 0 40px rgba(139,92,246,0.2);
  border: none; color: #fff;
  font-family: 'Syne', sans-serif; font-weight: 700;
  border-radius: 11px; padding: 13px;
  width: 100%; cursor: pointer; font-size: 1rem;
  transition: all 0.2s;
}
.btn-calc:hover { box-shadow: 0 0 30px rgba(6,214,255,0.5), 0 0 60px rgba(139,92,246,0.3); transform: translateY(-2px); }
.btn-finance {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 0 24px rgba(245,158,11,0.4);
  color: #fff; font-family: 'Syne', sans-serif; font-weight: 800;
  border: none; border-radius: 999px; padding: 12px 28px;
  cursor: pointer; font-size: 0.95rem; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-finance:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(245,158,11,0.6); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--border2);
  color: var(--text); font-family: 'Outfit', sans-serif; font-weight: 500;
  font-size: 0.88rem; border-radius: 999px; padding: 9px 20px;
  cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── Inputs ── */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.03em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  background: var(--surface2); border: 1px solid var(--border2);
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.97rem;
  border-radius: 10px; padding: 10px 14px; width: 100%;
  transition: all 0.2s; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,214,255,0.15), 0 0 12px rgba(6,214,255,0.1); }
.toggle-row { display: flex; gap: 8px; margin-bottom: 16px; }
.toggle-btn {
  flex: 1; background: var(--surface2); border: 1px solid var(--border2);
  color: var(--muted); font-family: 'Outfit', sans-serif; font-weight: 500;
  font-size: 0.85rem; border-radius: 8px; padding: 8px;
  cursor: pointer; transition: all 0.2s;
}
.toggle-btn.active { background: rgba(6,214,255,0.12); border-color: var(--cyan); color: var(--cyan); }

/* ── Result boxes ── */
.result-box {
  border-radius: 14px; padding: 20px; margin-top: 20px;
  animation: fadeUp 0.3s ease both; display: none;
}
.result-box.visible { display: block; }
.result-box.health { background: linear-gradient(135deg, rgba(52,211,153,0.12), rgba(52,211,153,0.04)); border: 1px solid rgba(52,211,153,0.35); box-shadow: 0 0 30px rgba(52,211,153,0.15); }
.result-box.finance { background: linear-gradient(135deg, rgba(96,165,250,0.12), rgba(96,165,250,0.04)); border: 1px solid rgba(96,165,250,0.35); box-shadow: 0 0 30px rgba(96,165,250,0.15); }
.result-box.kitchen { background: linear-gradient(135deg, rgba(251,146,60,0.12), rgba(251,146,60,0.04)); border: 1px solid rgba(251,146,60,0.35); box-shadow: 0 0 30px rgba(251,146,60,0.15); }
.result-box.lifestyle { background: linear-gradient(135deg, rgba(244,114,182,0.12), rgba(244,114,182,0.04)); border: 1px solid rgba(244,114,182,0.35); box-shadow: 0 0 30px rgba(244,114,182,0.15); }
.result-box.business { background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(251,191,36,0.04)); border: 1px solid rgba(251,191,36,0.35); box-shadow: 0 0 30px rgba(251,191,36,0.15); }
.result-box.eco { background: linear-gradient(135deg, rgba(134,239,172,0.12), rgba(134,239,172,0.04)); border: 1px solid rgba(134,239,172,0.35); box-shadow: 0 0 30px rgba(134,239,172,0.15); }
.result-value { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2rem; }
.result-value.health { background: linear-gradient(135deg, #34D399, rgba(255,255,255,0.9)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.result-value.finance { background: linear-gradient(135deg, #60A5FA, rgba(255,255,255,0.9)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.result-value.kitchen { background: linear-gradient(135deg, #FB923C, rgba(255,255,255,0.9)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.result-value.lifestyle { background: linear-gradient(135deg, #F472B6, rgba(255,255,255,0.9)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.result-value.business { background: linear-gradient(135deg, #FBBF24, rgba(255,255,255,0.9)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.result-value.eco { background: linear-gradient(135deg, #86EFAC, rgba(255,255,255,0.9)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.result-label { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.result-item { background: var(--surface2); border-radius: 10px; padding: 12px; }
.result-item-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); margin-bottom: 4px; }
.result-item-value { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--text); }

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

/* ── Tool page layout ── */
.tool-page { padding: 0 0 60px; position: relative; z-index: 1; }
.tool-header { padding: 32px 0 24px; }
.tool-header-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 14px; }
.tool-header h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 10px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--dim); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: var(--dim); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb-sep { opacity: 0.5; }

.tool-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.calc-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 28px;
}
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}
.info-card h3 { font-size: 0.95rem; color: var(--text); margin-bottom: 10px; }
.info-card p, .info-card li { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.info-card ul { padding-left: 16px; }
.info-card li { margin-bottom: 4px; }

/* Tags */
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; margin: 2px; }
.tag.health { background: rgba(52,211,153,0.15); color: var(--health); }
.tag.finance { background: rgba(96,165,250,0.15); color: var(--finance); }
.tag.kitchen { background: rgba(251,146,60,0.15); color: var(--kitchen); }
.tag.lifestyle { background: rgba(244,114,182,0.15); color: var(--lifestyle); }
.tag.business { background: rgba(251,191,36,0.15); color: var(--business); }
.tag.eco { background: rgba(134,239,172,0.15); color: var(--eco); }
.tag.kids { background: rgba(253,164,175,0.15); color: var(--kids); }

/* Finance Lead Banner */
.finance-banner {
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(217,119,6,0.04));
  border: 1px solid rgba(245,158,11,0.25);
  border-left: 3px solid var(--gold);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
}
.finance-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(245,158,11,0.04), transparent);
  animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { opacity: 0; } 50% { opacity: 1; } }
.finance-banner h3 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.finance-banner p { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; }
.finance-banner small { display: block; font-size: 0.72rem; color: var(--dim); margin-top: 8px; }

/* Cross-site box */
.crosssite-box {
  background: rgba(6,214,255,0.05);
  border: 1px solid rgba(6,214,255,0.15);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--muted);
}
.crosssite-box a { color: var(--cyan); }

/* FAQ */
.faq-section { padding: 36px 0; }
.faq-section h2 { font-size: 1.4rem; margin-bottom: 16px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.faq-question { width: 100%; background: var(--surface); border: none; color: var(--text); font-family: 'Outfit', sans-serif; font-size: 0.92rem; font-weight: 500; padding: 15px 20px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; transition: background 0.2s; }
.faq-question:hover { background: var(--surface2); }
.faq-question.open { color: var(--cyan); background: var(--surface2); }
.faq-chevron { font-size: 0.7rem; transition: transform 0.3s; flex-shrink: 0; }
.faq-question.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 20px 16px; background: var(--surface); font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.faq-answer.open { display: block; }

/* Related tools */
.related-section { padding: 28px 0; }
.related-section h2 { font-size: 1.2rem; margin-bottom: 14px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.related-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--muted); font-size: 0.85rem; font-weight: 500;
  transition: all 0.2s;
}
.related-card:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

/* Homepage */
.hero-section { padding: 64px 0 40px; text-align: center; position: relative; }
.hero-glow { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, rgba(139,92,246,0.2) 0%, transparent 70%); pointer-events: none; z-index: 0; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(6,214,255,0.08); border: 1px solid rgba(6,214,255,0.2); color: var(--cyan); font-size: 0.78rem; font-weight: 600; padding: 5px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero-section h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; background: linear-gradient(135deg, #EEEAF8, #A78BFA); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 16px; position: relative; z-index: 1; }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 560px; margin: 0 auto 28px; position: relative; z-index: 1; }
.hero-search { max-width: 520px; margin: 0 auto 32px; position: relative; z-index: 1; }
.hero-search input { width: 100%; background: var(--surface); border: 1px solid var(--border2); color: var(--text); font-family: 'Outfit', sans-serif; font-size: 1rem; border-radius: 14px; padding: 14px 20px 14px 48px; outline: none; transition: all 0.2s; }
.hero-search input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6,214,255,0.12), 0 0 20px rgba(6,214,255,0.08); }
.hero-search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--dim); font-size: 1rem; pointer-events: none; }
.hero-search .search-dropdown { top: calc(100% + 8px); }

.stats-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-bottom: 0; position: relative; z-index: 1; }
.stat-item { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--muted); font-weight: 500; }
.stat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.stat-dot.health { background: var(--health); box-shadow: 0 0 8px var(--health); }
.stat-dot.finance { background: var(--finance); box-shadow: 0 0 8px var(--finance); }
.stat-dot.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.stat-dot.purple { background: var(--purple); box-shadow: 0 0 8px var(--purple); }
.stat-dot.gold { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* Category sections */
.cat-section { padding: 40px 0 20px; position: relative; z-index: 1; }
.cat-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.cat-emoji { font-size: 1.6rem; }
.cat-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; }
.cat-title.health { background: linear-gradient(135deg, #34D399, rgba(255,255,255,0.9)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cat-title.finance { background: linear-gradient(135deg, #60A5FA, rgba(255,255,255,0.9)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cat-title.kitchen { background: linear-gradient(135deg, #FB923C, rgba(255,255,255,0.9)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cat-title.lifestyle { background: linear-gradient(135deg, #F472B6, rgba(255,255,255,0.9)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cat-title.business { background: linear-gradient(135deg, #FBBF24, rgba(255,255,255,0.9)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cat-title.eco { background: linear-gradient(135deg, #86EFAC, rgba(255,255,255,0.9)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cat-title.kids { background: linear-gradient(135deg, #FDA4AF, rgba(255,255,255,0.9)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cat-count { font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.cat-count.health { background: var(--health-dim); color: var(--health); }
.cat-count.finance { background: var(--finance-dim); color: var(--finance); }
.cat-count.kitchen { background: var(--kitchen-dim); color: var(--kitchen); }
.cat-count.lifestyle { background: var(--lifestyle-dim); color: var(--lifestyle); }
.cat-count.business { background: var(--business-dim); color: var(--business); }
.cat-count.eco { background: var(--eco-dim); color: var(--eco); }
.cat-count.kids { background: var(--kids-dim); color: var(--kids); }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tool-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: all 0.2s;
  overflow: hidden;
}
.tool-card::before { content: '↗'; position: absolute; top: 14px; right: 16px; font-size: 0.8rem; opacity: 0; transition: opacity 0.2s; }
.tool-card:hover::before { opacity: 1; }
.tool-card.health { border-top: 2px solid var(--health); }
.tool-card.finance { border-top: 2px solid var(--finance); }
.tool-card.kitchen { border-top: 2px solid var(--kitchen); }
.tool-card.lifestyle { border-top: 2px solid var(--lifestyle); }
.tool-card.business { border-top: 2px solid var(--business); }
.tool-card.eco { border-top: 2px solid var(--eco); }
.tool-card.kids { border-top: 2px solid var(--kids); }
.tool-card:hover { transform: translateY(-4px); }
.tool-card.health:hover { border-color: var(--health); box-shadow: 0 8px 32px rgba(52,211,153,0.25); background: linear-gradient(135deg, rgba(52,211,153,0.06), rgba(255,255,255,0.01)); color: inherit; }
.tool-card.finance:hover { border-color: var(--finance); box-shadow: 0 8px 32px rgba(96,165,250,0.25); background: linear-gradient(135deg, rgba(96,165,250,0.06), rgba(255,255,255,0.01)); color: inherit; }
.tool-card.kitchen:hover { border-color: var(--kitchen); box-shadow: 0 8px 32px rgba(251,146,60,0.25); background: linear-gradient(135deg, rgba(251,146,60,0.06), rgba(255,255,255,0.01)); color: inherit; }
.tool-card.lifestyle:hover { border-color: var(--lifestyle); box-shadow: 0 8px 32px rgba(244,114,182,0.25); background: linear-gradient(135deg, rgba(244,114,182,0.06), rgba(255,255,255,0.01)); color: inherit; }
.tool-card.business:hover { border-color: var(--business); box-shadow: 0 8px 32px rgba(251,191,36,0.25); background: linear-gradient(135deg, rgba(251,191,36,0.06), rgba(255,255,255,0.01)); color: inherit; }
.tool-card.eco:hover { border-color: var(--eco); box-shadow: 0 8px 32px rgba(134,239,172,0.25); background: linear-gradient(135deg, rgba(134,239,172,0.06), rgba(255,255,255,0.01)); color: inherit; }
.tool-card.kids:hover { border-color: var(--kids); box-shadow: 0 8px 32px rgba(253,164,175,0.25); background: linear-gradient(135deg, rgba(253,164,175,0.06), rgba(255,255,255,0.01)); color: inherit; }
.tool-card-icon { font-size: 1.6rem; }
.tool-card-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.97rem; color: var(--text); }
.tool-card-desc { font-size: 0.82rem; color: var(--dim); line-height: 1.4; }
.tool-card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }

/* Sister site banner */
.sister-banner { background: rgba(6,214,255,0.04); border: 1px solid rgba(6,214,255,0.15); border-radius: 16px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 32px 0; flex-wrap: wrap; position: relative; z-index: 1; }
.sister-banner h3 { font-size: 1rem; margin-bottom: 4px; }
.sister-banner p { font-size: 0.85rem; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 56px 0 32px; margin-top: 40px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.85rem; color: var(--dim); line-height: 1.7; max-width: 260px; margin-top: 12px; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.85rem; color: var(--dim); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; color: var(--dim); }

/* Ascension footer */
.rs-footer { background: #050914; border-top: 1px solid rgba(0,229,255,0.12); padding: 40px 24px; text-align: center; position: relative; z-index: 1; }
.ascension-logo { width: 180px; border-radius: 12px; margin: 0 auto 16px; display: block; filter: drop-shadow(0 0 16px rgba(6,214,255,0.3)); }
.rs-footer h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.rs-footer-tagline { font-size: 0.85rem; color: var(--dim); margin-bottom: 20px; }
.rs-footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.rs-footer-links a { font-size: 0.82rem; color: var(--dim); }
.rs-footer-links a:hover { color: var(--cyan); }
.rs-footer-brand-icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; opacity: 0.85; transition: opacity 0.2s; }
.rs-footer-brand-icon:hover { opacity: 1; }

/* About page */
.about-page { max-width: 760px; margin: 0 auto; padding: 40px 0 60px; }
.about-hero { width: 100%; border-radius: 14px; margin-bottom: 28px; display: block; max-height: 320px; object-fit: cover; }
.about-logo-row { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.about-logo-row img { height: 58px; border-radius: 10px; }
.about-section { margin-bottom: 36px; }
.about-section h2 { font-size: 1.2rem; margin-bottom: 12px; color: var(--text); }
.about-section p { font-size: 0.92rem; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.about-blockquote { border-left: 3px solid var(--cyan); padding: 12px 20px; background: rgba(6,214,255,0.04); border-radius: 0 10px 10px 0; font-style: italic; font-size: 1.05rem; color: var(--cyan); margin: 20px 0; }

/* Static pages */
.static-page { max-width: 760px; margin: 0 auto; padding: 40px 0 60px; position: relative; z-index: 1; }
.static-page h1 { font-size: 2rem; margin-bottom: 8px; }
.static-page .lead { font-size: 1.05rem; color: var(--muted); margin-bottom: 32px; }
.static-page h2 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--text); }
.static-page p { font-size: 0.92rem; color: var(--muted); line-height: 1.8; margin-bottom: 12px; }
.static-page ul { padding-left: 20px; margin-bottom: 12px; }
.static-page li { font-size: 0.92rem; color: var(--muted); line-height: 1.8; }
.contact-link { display: inline-flex; align-items: center; gap: 8px; background: var(--surface2); border: 1px solid var(--border2); border-radius: 10px; padding: 12px 20px; color: var(--text); font-size: 0.95rem; transition: all 0.2s; margin-top: 8px; }
.contact-link:hover { border-color: var(--cyan); color: var(--cyan); }

/* Sitemap */
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; position: relative; z-index: 1; }
.sitemap-col h3 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cyan); margin-bottom: 12px; }
.sitemap-col ul { list-style: none; }
.sitemap-col li { margin-bottom: 6px; }
.sitemap-col a { font-size: 0.88rem; color: var(--dim); }
.sitemap-col a:hover { color: var(--cyan); }

/* Responsive */
@media (max-width: 1024px) {
  .tool-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .rs-brand-strip { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-sister-pill { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stats-row { gap: 14px; }
  .sister-banner { flex-direction: column; text-align: center; }
  .nav-search { max-width: 200px; }
}
@media (max-width: 480px) {
  .tools-grid { grid-template-columns: 1fr; }
  .nav-search { display: none; }
}

/* ── MISSING + ENHANCED STYLES ── */

/* btn-primary — matches btn-finance style but cyan/purple */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #06d6ff, #8b5cf6);
  box-shadow: 0 0 20px rgba(6,214,255,0.35), 0 0 40px rgba(139,92,246,0.2);
  border: none;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer 3s infinite;
}
.btn-primary:hover {
  box-shadow: 0 0 32px rgba(6,214,255,0.55), 0 0 64px rgba(139,92,246,0.35);
  transform: translateY(-2px);
  color: #fff;
}
@keyframes btnShimmer {
  0% { left: -75%; }
  100% { left: 150%; }
}

/* btn-finance shimmer upgrade */
.btn-finance {
  position: relative;
  overflow: hidden;
}
.btn-finance::after {
  content: '';
  position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer 3s infinite;
}
.btn-finance:hover {
  box-shadow: 0 0 32px rgba(245,158,11,0.65), 0 0 64px rgba(245,158,11,0.3);
  transform: translateY(-2px);
}

/* Card base */
.card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: rgba(6,214,255,0.2);
  box-shadow: 0 4px 24px rgba(6,214,255,0.08);
}

/* Calculator cards hover glow */
.calc-card, .tool-card-link, .cat-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.calc-card:hover, .tool-card-link:hover, .cat-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 32px rgba(6,214,255,0.15), 0 0 0 1px rgba(6,214,255,0.2);
  border-color: rgba(6,214,255,0.3) !important;
}

/* Hero search glow on focus */
.hero-search input:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 3px rgba(6,214,255,0.15), 0 0 24px rgba(6,214,255,0.12) !important;
}

/* Nav search glow */
.nav-search-input:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 3px rgba(6,214,255,0.15), 0 0 16px rgba(6,214,255,0.1) !important;
}

/* Section headers — cyan accent bar */
.cat-header h2, .section-title {
  padding-left: 14px;
  border-left: 3px solid var(--cyan);
  box-shadow: -4px 0 12px rgba(6,214,255,0.25);
}

/* Stat dots pulse */
.stat-dot {
  animation: statPulse 2s ease-in-out infinite;
}
@keyframes statPulse {
  0%, 100% { box-shadow: 0 0 8px var(--cyan); }
  50% { box-shadow: 0 0 18px var(--cyan), 0 0 28px rgba(6,214,255,0.4); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--cyan), var(--purple));
  border-radius: 3px;
}

/* Floating star particles */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(6,214,255,0.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 65% 75%, rgba(139,92,246,0.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 10%, rgba(6,214,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 90%, rgba(167,139,250,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 50%, rgba(6,214,255,0.2) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Ad slot — ensure multiple slots show */
.ad-leaderboard {
  min-height: 90px;
  margin: 24px 0;
}

/* Nav logo hover glow */
.nav-logo:hover .nav-logo-icon {
  filter: drop-shadow(0 0 10px rgba(6,214,255,0.7));
  transition: filter 0.2s;
}
