/* Fonts loaded via HTML preconnect + link for better performance */

:root {
  --primary: #1a3a52;
  --primary-dark: #0f283c;
  --secondary: #2d7a4a;
  --accent: #ff9800;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1a3a52;
  --muted: #475569;
  --radius: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif; font-display: swap;
  background: #f8fafc;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary-dark);
  border-bottom: 1px solid #1a3a52;
  padding: 0 1rem;
}
.navbar-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  flex-shrink: 0;
}
.nav-logo .logo-icon { color: var(--accent); font-size: 1.25rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-dropdown { position: relative; }
.nav-dropdown > .dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  background: none;
  border: none;
  font-family: inherit;
}
.nav-dropdown:hover > .dropdown-btn,
.nav-dropdown > .dropdown-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.dropdown-arrow { font-size: 0.6rem; transition: transform 0.2s; }
.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  min-width: 12rem;
  padding: 0.5rem;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu.wide {
  min-width: 36rem;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  left: -4rem;
}
.nav-dropdown:hover .dropdown-menu.wide { display: grid; }
.dropdown-section h4 {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0 0.5rem;
  margin-bottom: 0.375rem;
}
.dropdown-section a {
  display: block;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  color: var(--text);
}
.dropdown-section a:hover { background: var(--bg); color: var(--accent); }
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.2s;
}
.mobile-menu {
  display: none;
  background: var(--primary-dark);
  border-top: 1px solid #1a3a52;
  padding: 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.625rem 0.5rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding: 0.75rem 0.5rem 0.25rem;
}
.nav-allcalc {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 2rem !important;
  padding: 0.375rem 1rem !important;
  font-weight: 600;
  font-size: 0.8rem;
}
.nav-allcalc:hover { background: #e68900 !important; }

/* ── HERO ── */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f283c 0%, #1a3a52 40%, #0f3d2e 100%);
  padding: 5rem 1rem 9rem;
  overflow: hidden;
  text-align: center;
}
.hero-bg { display:none; }
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,58,82,0.9);
  mix-blend-mode: multiply;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,152,0,0.2);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,152,0,0.3);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  tracking: tight;
}
.hero h1 span { color: var(--accent); }
.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
}
.search-box {
  position: relative;
  max-width: 36rem;
  margin: 0 auto 1.25rem;
}
.search-box input {
  width: 100%;
  height: 3.5rem;
  padding: 0 1rem 0 3rem;
  border-radius: 2rem;
  border: none;
  font-size: 1rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  outline: none;
  font-family: inherit;
}
.search-box input:focus { box-shadow: 0 0 0 2px var(--accent), 0 20px 40px rgba(0,0,0,0.2); }
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1.1rem;
  z-index: 1;
}
.quick-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.quick-tags button, .quick-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}
.quick-tags button:hover, .quick-tag:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── STATS BAR ── */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.stats-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-item .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.stat-item .lbl { font-size: 0.75rem; color: #64748b; }

/* ── FILTER TABS ── */
.filter-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem 0.5rem;
}
.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-family: inherit;
}
.filter-tab .count {
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 2rem;
  background: #f1f5f9;
  color: #64748b;
}
.filter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(26,58,82,0.2);
}
.filter-tab.active .count { background: rgba(255,255,255,0.2); color: #fff; }
.filter-tab:hover:not(.active) { border-color: #64748b; }

/* ── CALC GRID ── */
.calc-section {
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .calc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .calc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .calc-grid { grid-template-columns: repeat(4, 1fr); } }

/* Card — matches original: bg-white p-5 rounded-2xl border border-slate-100 flex flex-col h-full hover:shadow-lg */
.calc-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #f1f5f9;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  height: 100%;
}
.calc-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.calc-card.financial:hover { border-color: #bfdbfe; }
.calc-card.health:hover { border-color: #fecdd3; }
.calc-card.general:hover { border-color: #fde68a; }

.calc-icon { font-size: 2rem; margin-bottom: 0.75rem; }

/* Badges — match original: bg-blue-50/rose-50/amber-50 with matching text/border */
.calc-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 2rem;
  width: fit-content;
  margin-bottom: 0.5rem;
  border: 1px solid transparent;
}
.calc-badge.financial { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }
.calc-badge.health    { background: #fff1f2; color: #be185d; border-color: #ffe4e6; }
.calc-badge.general   { background: #fffbeb; color: #b45309; border-color: #fde68a; }

.calc-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
  line-height: 1.3;
  transition: color 0.15s;
}
.calc-card:hover .calc-name { color: var(--accent); }
.calc-desc { font-size: 0.75rem; color: #64748b; flex-grow: 1; line-height: 1.4; }
.calc-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.75rem;
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 500;
}
.calc-link svg { transition: transform 0.15s; }
.calc-card:hover .calc-link svg { transform: translateX(3px); }

/* ── CALCULATOR PAGE ── */
.calc-page { min-height: 100vh; display: flex; flex-direction: column; }
.calc-main { flex-grow: 1; padding: 1.25rem 1rem; }
.calc-wrapper { max-width: 54rem; margin: 0 auto; }
.calc-header { margin-bottom: 1rem; }
.calc-title { font-size: 1.75rem; font-weight: 700; color: var(--primary); margin-bottom: 0.375rem; }
.calc-subtitle { color: var(--muted); font-size: 0.925rem; }
.calc-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.calc-inputs-panel, .calc-results-panel {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.calc-inputs-panel {
  border-top: 3px solid var(--primary);
}
.calc-results-panel {
  border-top: 3px solid var(--accent);
}
.panel-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.875rem;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid #f1f5f9;
}
.input-group { margin-bottom: 0.875rem; }
.input-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.375rem;
}
.input-wrap { position: relative; }
.input-prefix, .input-suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: var(--muted);
  pointer-events: none;
}
.input-prefix { left: 0.75rem; }
.input-suffix { right: 0.75rem; }
.input-wrap input {
  width: 100%;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  padding: 0 0.75rem;
}
.has-prefix input { padding-left: 2rem; }
.has-suffix input { padding-right: 2.5rem; }
.input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,152,0,0.2);
}
select.calc-select {
  width: 100%;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.975rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  padding: 0 0.75rem;
  outline: none;
  cursor: pointer;
}
select.calc-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,152,0,0.2);
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}
.result-card {
  background: var(--bg);
  border-radius: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
}
.result-card.highlight {
  background: var(--primary);
  border-color: var(--primary);
  grid-column: span 2;
}
.result-card.highlight .result-label { color: rgba(255,255,255,0.7); }
.result-card.highlight .result-value { color: #fff; }
.result-label { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.2rem; }
.result-value { font-size: 1.125rem; font-weight: 700; color: var(--primary); font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.donut-wrap { display: flex; align-items: center; gap: 1.5rem; margin-top: 1rem; }
.donut-wrap svg { flex-shrink: 0; }
.donut-legend { display: flex; flex-direction: column; gap: 0.5rem; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── FOOTER ── */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  border-top: 1px solid #1a3a52;
  padding: 4rem 1rem 2rem;
}
.footer-inner { max-width: 80rem; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-brand .logo-icon { color: var(--accent); }
.footer-brand p { font-size: 0.875rem; line-height: 1.65; margin-bottom: 1rem; }
.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--secondary);
  background: #1a3a52;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(45,122,74,0.3);
}
.footer-col h3 { color: #fff; font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.875rem; color: rgba(255,255,255,0.7); transition: color 0.15s; }
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #1a3a52;
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(255,255,255,0.7); }

/* ── STATIC PAGES ── */
.static-page { max-width: 48rem; margin: 3rem auto; padding: 0 1rem 4rem; }
.static-page h1 { font-size: 2rem; color: var(--primary); margin-bottom: 0.5rem; }
.static-page .lead { color: var(--muted); margin-bottom: 2rem; font-size: 1rem; }
.static-page h2 { font-size: 1.2rem; color: var(--primary); margin: 2rem 0 0.75rem; }
.static-page p { color: #374151; line-height: 1.75; margin-bottom: 1rem; font-size: 0.95rem; }
.static-page ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.static-page ul li { color: #374151; line-height: 1.75; font-size: 0.95rem; }
.static-page a { color: var(--secondary); text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group label { display: block; font-weight: 500; font-size: 0.875rem; margin-bottom: 0.375rem; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(255,152,0,0.15);
}
.form-group textarea { resize: vertical; min-height: 6rem; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-primary:hover { background: #0f283c; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links, .nav-dropdown { display: none; }
  .hamburger { display: flex; }
  .calc-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > *:first-child { grid-column: span 2; }
  .hero { padding: 4rem 1rem 7rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > *:first-child { grid-column: span 1; }
  .results-grid { grid-template-columns: 1fr; }
  .result-card.highlight { grid-column: span 1; }
}

/* ── CALCULATOR PAGE CONTENT ── */
.calc-content {
  max-width: 54rem;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}
.content-section {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.875rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.content-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid #f1f5f9;
}
.content-section p {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}
.content-section p:last-child { margin-bottom: 0; }
.how-to-steps {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 0.25rem;
}
.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin-top: 0.1rem;
}
.step-text {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.7;
}
.step-text strong { color: var(--primary); }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.faq-item {
  border-bottom: 1px solid #f1f5f9;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 0;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
  transition: color 0.15s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 0 1rem;
  color: #374151;
  font-size: 0.9rem;
  line-height: 1.75;
}
.faq-item.open .faq-a { display: block; }

/* ── BLOG STYLES ── */
.blog-hero {
  background: var(--primary);
  padding: 4rem 1rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f283c 0%, #1a3a52 50%, #0f283c 100%);
  opacity: 0.95;
}
.blog-hero-content { position: relative; z-index: 1; }
.blog-hero h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.blog-hero p { color: rgba(255,255,255,0.7); font-size: 1rem; max-width: 36rem; margin: 0 auto; }

/* Blog listing grid */
.blog-section { max-width: 80rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

.blog-card {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.blog-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: translateY(-2px); }
.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
}
.blog-card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a3a52, #2d7a4a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.blog-card-body { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  transition: color 0.15s;
}
.blog-card:hover .blog-card-title { color: var(--accent); }
.blog-card-excerpt { font-size: 0.85rem; color: #64748b; line-height: 1.6; flex-grow: 1; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 0.875rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.75rem;
  color: #64748b;
}
.blog-card-meta span { display: flex; align-items: center; gap: 0.25rem; }

/* Blog post page */
.blog-post-page { max-width: 52rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.blog-post-header { margin-bottom: 2rem; }
.blog-post-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(255,152,0,0.1);
  border: 1px solid rgba(255,152,0,0.3);
  padding: 0.2rem 0.75rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}
.blog-post-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.blog-post-meta span { display: flex; align-items: center; gap: 0.3rem; }
.blog-post-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 2rem;
  display: block;
}
/* Post body content */
.blog-post-body { font-size: 1rem; color: #374151; line-height: 1.85; }
.blog-post-body h2 { font-size: 1.4rem; font-weight: 700; color: var(--primary); margin: 2rem 0 0.75rem; }
.blog-post-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin: 1.5rem 0 0.5rem; }
.blog-post-body p { margin-bottom: 1.25rem; }
.blog-post-body ul, .blog-post-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.blog-post-body li { margin-bottom: 0.5rem; }
.blog-post-body strong { color: var(--primary); font-weight: 600; }
.blog-post-body a { color: var(--secondary); text-decoration: underline; }
.blog-post-body blockquote {
  border-left: 4px solid var(--accent);
  background: #fffbeb;
  padding: 1rem 1.25rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: #92400e;
}
.blog-post-body .highlight-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  padding: 1.25rem;
  margin: 1.5rem 0;
}
/* Share box */
.share-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 2.5rem 0;
  text-align: center;
}
.share-box h3 { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.share-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  transition: opacity 0.15s, transform 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.share-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.share-btn.whatsapp  { background: #25D366; }
.share-btn.twitter   { background: #1DA1F2; }
.share-btn.facebook  { background: #1877F2; }
.share-btn.linkedin  { background: #0A66C2; }
.share-btn.telegram  { background: #2CA5E0; }
.share-btn.copy      { background: #64748b; }
.share-btn.copy.copied { background: #2d7a4a; }

/* Tags */
.blog-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0; }
.blog-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Related posts */
.related-posts { margin-top: 3rem; }
.related-posts h2 { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 1.25rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 1rem; }
.related-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow 0.15s;
}
.related-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.related-card img, .related-card .related-img-ph {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #1a3a52, #2d7a4a);
}
.related-card-body { padding: 0.875rem; }
.related-card-title { font-size: 0.825rem; font-weight: 600; color: var(--primary); line-height: 1.4; }

/* Back to blog link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); }

/* Blog listing categories filter */
.blog-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.blog-filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border);
  background: #fff;
  color: #475569;
  font-family: inherit;
  transition: all 0.15s;
}
.blog-filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.blog-filter-btn:hover:not(.active) { border-color: #64748b; }

/* ── ADSENSE GAP FIX ── */
/* Collapses empty AdSense slots before publisher ID is connected */
ins.adsbygoogle { min-height: 0 !important; }
ins.adsbygoogle:not([data-ad-status="filled"]) { display: none !important; height: 0 !important; }
div:has(> ins.adsbygoogle:only-child):not(:has(ins.adsbygoogle[data-ad-status="filled"])) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── HOMEPAGE LANDING SECTIONS ── */

/* Why Choose Us */
.why-section {
  background: #fff;
  padding: 5rem 1rem;
}
.why-inner { max-width: 80rem; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(255,152,0,0.1);
  border: 1px solid rgba(255,152,0,0.25);
  padding: 0.25rem 0.875rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.7;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 640px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.07); border-color: #cbd5e1; }
.feature-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}
.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.feature-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* Popular Calculators Strip */
.popular-section {
  background: var(--bg);
  padding: 5rem 1rem;
}
.popular-inner { max-width: 80rem; margin: 0 auto; }
.popular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px)  { .popular-grid { grid-template-columns: repeat(4, 1fr); } }

.popular-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.popular-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.09); transform: translateY(-2px); border-color: #64748b; }
.popular-card-icon { font-size: 1.75rem; }
.popular-card-name { font-size: 0.875rem; font-weight: 700; color: var(--primary); line-height: 1.3; }
.popular-card-desc { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }
.popular-card-link { font-size: 0.75rem; font-weight: 600; color: var(--secondary); margin-top: auto; }

/* Categories Section */
.categories-section {
  background: var(--primary);
  padding: 5rem 1rem;
}
.categories-inner { max-width: 80rem; margin: 0 auto; }
.categories-inner .section-title { color: #fff; }
.categories-inner .section-subtitle { color: rgba(255,255,255,0.7); }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}
.cat-card:hover { background: rgba(255,255,255,0.13); transform: translateY(-2px); }
.cat-card-icon { font-size: 2.5rem; margin-bottom: 0.875rem; display: block; }
.cat-card-name { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.375rem; }
.cat-card-count { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 0.875rem; }
.cat-card-desc { font-size: 0.825rem; color: rgba(255,255,255,0.7); line-height: 1.6; }

/* How It Works */
.how-section {
  background: #fff;
  padding: 5rem 1rem;
}
.how-inner { max-width: 80rem; margin: 0 auto; }
.how-steps {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}
@media (min-width: 768px) {
  .how-steps { grid-template-columns: repeat(4, 1fr); }
}
.how-step { text-align: center; }
.how-step-num {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(26,58,82,0.25);
}
.how-step-title { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 0.375rem; }
.how-step-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* Testimonials / Trust */
.trust-section {
  background: var(--bg);
  padding: 5rem 1rem;
}
.trust-inner { max-width: 80rem; margin: 0 auto; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.trust-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 0.75rem; }
.trust-text { font-size: 0.9rem; color: #374151; line-height: 1.7; margin-bottom: 1rem; font-style: italic; }
.trust-author { display: flex; align-items: center; gap: 0.75rem; }
.trust-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.trust-name { font-size: 0.875rem; font-weight: 700; color: var(--primary); }
.trust-role { font-size: 0.75rem; color: var(--muted); }

/* Blog preview on homepage */
.blog-preview-section {
  background: #fff;
  padding: 5rem 1rem;
}
.blog-preview-inner { max-width: 80rem; margin: 0 auto; }
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) { .blog-preview-grid { grid-template-columns: repeat(3, 1fr); } }

/* CTA Banner */
.cta-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a6b3a 100%);
  padding: 5rem 1rem;
  text-align: center;
}
.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1rem; margin-bottom: 2rem; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--secondary);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 2rem;
  border-radius: 2rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.3);
  margin-left: 1rem;
  transition: background 0.15s;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.cta-btn-secondary:hover { background: rgba(255,255,255,0.25); }
.cta-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Disclaimer strip */
.disclaimer-strip {
  background: #1a3a52;
  padding: 1.25rem 1rem;
  text-align: center;
}
.disclaimer-strip p { font-size: 0.8rem; color: rgba(255,255,255,0.55); max-width: 60rem; margin: 0 auto; }

/* ── AI CHATBOX ── */
.chat-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(26,58,82,0.4);
  z-index: 999;
  transition: transform 0.2s, background 0.2s;
  font-size: 1.4rem;
}
.chat-fab:hover { transform: scale(1.08); background: var(--primary-dark); }
.chat-fab .chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 2rem;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  white-space: nowrap;
}

.chat-window {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 22rem;
  max-height: 32rem;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 998;
  overflow: hidden;
  transform: scale(0.92) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.chat-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Header */
.chat-header {
  background: var(--primary);
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.chat-header-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.chat-header-info { flex-grow: 1; }
.chat-header-name { font-size: 0.875rem; font-weight: 700; color: #fff; font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.chat-header-status { font-size: 0.7rem; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 0.3rem; }
.chat-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; display: inline-block; }
.chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.25rem;
  line-height: 1;
  transition: color 0.15s;
}
.chat-close:hover { color: #fff; }

/* Questions counter */
.chat-counter {
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-counter-bar {
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
  width: 60%;
  overflow: hidden;
}
.chat-counter-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

/* Messages area */
.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  scroll-behavior: smooth;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }

.chat-msg {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  max-width: 100%;
}
.chat-msg.user { flex-direction: row-reverse; }
.chat-msg-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin-top: 0.1rem;
}
.chat-msg.bot .chat-msg-avatar { background: var(--primary); color: #fff; }
.chat-msg.user .chat-msg-avatar { background: var(--accent); color: #fff; }
.chat-msg-bubble {
  padding: 0.625rem 0.875rem;
  border-radius: 1rem;
  font-size: 0.825rem;
  line-height: 1.6;
  max-width: 80%;
  word-wrap: break-word;
}
.chat-msg.bot .chat-msg-bubble {
  background: #f1f5f9;
  color: #1e293b;
  border-bottom-left-radius: 0.25rem;
}
.chat-msg.user .chat-msg-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
}
.chat-msg-bubble a { color: var(--accent); text-decoration: underline; }
.chat-msg-bubble strong { font-weight: 600; }

/* Typing indicator */
.chat-typing .chat-msg-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.75rem;
}
.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  animation: typingBounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Suggested questions */
.chat-suggestions {
  padding: 0 0.875rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.chat-suggestion {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--primary);
  font-size: 0.72rem;
  padding: 0.3rem 0.6rem;
  border-radius: 2rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  text-align: left;
}
.chat-suggestion:hover { background: #dbeafe; }

/* Input area */
.chat-input-area {
  border-top: 1px solid var(--border);
  padding: 0.75rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  flex-shrink: 0;
  background: #fff;
}
.chat-input {
  flex-grow: 1;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.825rem;
  font-family: inherit;
  resize: none;
  outline: none;
  max-height: 6rem;
  min-height: 2.25rem;
  line-height: 1.4;
  transition: border-color 0.15s;
  overflow-y: auto;
}
.chat-input:focus { border-color: var(--primary); }
.chat-input:disabled { background: #f8fafc; color: #64748b; }
.chat-send {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}
.chat-send:hover { background: var(--primary-dark); transform: scale(1.05); }
.chat-send:disabled { background: #cbd5e1; cursor: not-allowed; transform: none; }

/* Limit reached */
.chat-limit {
  text-align: center;
  padding: 0.75rem;
  font-size: 0.775rem;
  color: var(--muted);
  background: #fffbeb;
  border-top: 1px solid #fde68a;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .chat-window { width: calc(100vw - 2rem); right: 1rem; bottom: 5rem; }
  .chat-fab { bottom: 1rem; right: 1rem; }
}

.chat-window{contain:layout style;}
.chat-messages{contain:layout;}
.calc-grid{contain:layout;}