/* ============================================================
   KHARCHA.IN — MASTER STYLESHEET
   India's Smart Financial Toolkit
   ============================================================ */

/* ── CSS RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; display: block; }
input, button, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── CSS VARIABLES ── */
:root {
  --primary: #4338CA;
  --primary-light: #6366F1;
  --primary-bg: #EEF2FF;
  --accent: #059669;
  --accent-light: #10B981;
  --accent-bg: #ECFDF5;
  --warning: #D97706;
  --warning-light: #F59E0B;
  --warning-bg: #FFFBEB;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --border: #E2E8F0;
  --text: #0F172A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --danger: #DC2626;
  --info: #0EA5E9;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
  --header-h: 64px;
}

/* ── BASE ── */
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
  height: var(--header-h);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ── LOGO ── */
.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-main { color: var(--text); }
.logo-tld { color: var(--primary); }

/* ── NAV ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-group {
  position: relative;
}
.nav-group-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: background 0.15s, color 0.15s;
}
.nav-group-btn:hover { background: var(--bg); color: var(--text); }
.nav-group-btn svg { width: 14px; height: 14px; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 220px;
  display: none;
  z-index: 200;
}
.nav-group:hover .nav-dropdown,
.nav-group.open .nav-dropdown { display: block; }
.nav-dropdown a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown a:hover { background: var(--primary-bg); color: var(--primary); }
.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--bg); color: var(--text); }
.nav-cta {
  margin-left: auto;
  background: var(--primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-light); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.nav-drawer {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--surface);
  z-index: 99;
  overflow-y: auto;
  padding: 20px;
  border-top: 1px solid var(--border);
}
.nav-drawer.open { display: block; }
.nav-drawer-section { margin-bottom: 20px; }
.nav-drawer-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 8px;
}
.nav-drawer a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9375rem;
  transition: background 0.15s;
}
.nav-drawer a:hover { background: var(--primary-bg); color: var(--primary); }

/* ── MAIN WRAPPER ── */
.main-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.wide-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ── HERO ── */
.tool-hero, .article-hero {
  margin-bottom: 28px;
}
.tool-hero h1, .article-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 12px;
}
.tool-hero p, .hero-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.6;
}

/* Privacy Badge */
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  margin-top: 12px;
  border: 1px solid #A7F3D0;
}

/* ── CARDS ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

/* ── FORM GRID ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid .full-width { grid-column: 1 / -1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}
.form-group .hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* ── INPUTS ── */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67,56,202,0.1);
}
textarea { resize: vertical; min-height: 100px; }

/* Input with prefix */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix, .input-suffix {
  position: absolute;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}
.input-prefix { left: 12px; }
.input-suffix { right: 12px; }
.input-wrap.has-prefix input { padding-left: 28px; }
.input-wrap.has-suffix input { padding-right: 36px; }

/* ── RANGE SLIDER ── */
.range-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.range-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.range-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 2px 10px;
  border-radius: 50px;
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

/* ── TOGGLE GROUP ── */
.toggle-group {
  display: flex;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.toggle-group button {
  flex: 1;
  padding: 9px 12px;
  border: none;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.toggle-group button + button { border-left: 1.5px solid var(--border); }
.toggle-group button.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(67,56,202,0.25);
}
.btn-primary:hover { background: var(--primary-light); box-shadow: 0 4px 12px rgba(67,56,202,0.35); }
.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary-bg); }
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(5,150,105,0.25);
}
.btn-accent:hover { background: var(--accent-light); }
.btn-affiliate {
  background: var(--warning);
  color: #fff;
  padding: 10px 20px;
  font-size: 0.9375rem;
  box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}
.btn-affiliate:hover { background: var(--warning-light); }
.btn-affiliate--lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

/* ── RESULTS SECTION ── */
.results-section {
  display: none;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow-md);
  margin-top: 24px;
  animation: slideIn 0.3s ease;
}
.results-section.show { display: block; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.result-row:last-child { border-bottom: none; }
.result-label { font-size: 0.9375rem; color: var(--text-muted); }
.result-value { font-size: 0.9375rem; font-weight: 600; color: var(--text); text-align: right; }
.result-value.positive { color: var(--accent); }
.result-value.negative { color: var(--danger); }
.result-value.primary { color: var(--primary); }

.result-highlight {
  text-align: center;
  padding: 20px;
  background: var(--accent-bg);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.result-highlight .big-number {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
}
.result-highlight .big-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.winner-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  margin-left: 8px;
}

/* ── COMPARISON TABLE ── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.9rem;
}
.comparison-table th {
  background: var(--bg);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.comparison-table th:not(:first-child) { text-align: right; }
.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.comparison-table td:not(:first-child) { text-align: right; font-weight: 500; }
.comparison-table tr:hover td { background: var(--bg); }
.comparison-table tr.subtotal td { font-weight: 700; background: var(--primary-bg); }
.comparison-table tr.winner td { background: var(--accent-bg); }
.comparison-table .col-winner { color: var(--accent); font-weight: 700; }
.comparison-table .col-loser { color: var(--text-muted); }

/* ── CHART ── */
.chart-wrapper {
  position: relative;
  height: 280px;
  margin: 20px 0;
}
.chart-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── TABS ── */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  gap: 0;
  overflow-x: auto;
}
.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── AD UNITS ── */
.ad-unit {
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text-light);
  font-size: 0.75rem;
  font-style: italic;
  text-align: center;
  margin: 20px 0;
}
.ad-leaderboard {
  min-height: 90px;
  width: 100%;
}
.ad-rectangle {
  min-height: 250px;
  max-width: 336px;
  margin-left: auto;
  margin-right: auto;
}
.ad-in-article {
  min-height: 90px;
  width: 100%;
}

/* ── AFFILIATE CTA ── */
.affiliate-cta {
  border-left: 4px solid var(--warning);
  border-radius: var(--radius);
  background: var(--warning-bg);
  padding: 20px 24px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.affiliate-cta--featured {
  border: 2px solid var(--warning);
  border-left: 4px solid var(--warning);
}
.affiliate-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 200px;
}
.affiliate-icon { font-size: 1.75rem; flex-shrink: 0; }
.affiliate-headline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.affiliate-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.affiliate-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.affiliate-disclosure {
  font-size: 0.7rem;
  color: var(--text-light);
  font-style: italic;
}

/* ── HOW IT WORKS ── */
.how-it-works { margin: 32px 0; }
.how-it-works h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 0.9375rem;
}
.step-title { font-weight: 700; font-size: 0.9375rem; margin-bottom: 6px; }
.step-desc { font-size: 0.8125rem; color: var(--text-muted); }

/* ── FAQ ACCORDION ── */
.faq-section { margin: 32px 0; }
.faq-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--surface);
  border: none;
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.faq-question:hover { background: var(--bg); }
.faq-question .faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── DISCLAIMER BANNER ── */
.disclaimer-banner {
  background: var(--warning-bg);
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--warning);
  margin: 20px 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.disclaimer-banner strong { font-weight: 700; }

/* ── BLOG ARTICLE CARD ── */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.article-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.article-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 8px;
}
.article-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
}
.article-card h3 a:hover { color: var(--primary); }
.article-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.article-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-light);
}
.article-card-tool-link {
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 8px;
  display: block;
}

/* ── ARTICLE PAGE ── */
.article-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}
.article-tag {
  display: inline-block;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 12px;
}
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 12px;
  flex-wrap: wrap;
}

/* Article Prose */
.prose {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin: 24px 0;
}
.prose h2 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--text);
  margin: 32px 0 12px;
  letter-spacing: -0.3px;
}
.prose h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol {
  margin: 12px 0 16px 24px;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }
.prose a { color: var(--primary); text-decoration: underline; }
.prose a:hover { color: var(--primary-light); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}
.prose table th {
  background: var(--bg);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8125rem;
  border-bottom: 2px solid var(--border);
}
.prose table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.prose table tr:hover td { background: var(--bg); }
.prose blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 16px;
  color: var(--text-muted);
  font-style: italic;
  margin: 20px 0;
}
.info-box {
  background: var(--primary-bg);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 0.9375rem;
}
.info-box strong { color: var(--primary); }
.warning-box {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-size: 0.9375rem;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--text-light); }

/* ── TAGS / BADGES ── */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-primary { background: var(--primary-bg); color: var(--primary); }
.tag-accent { background: var(--accent-bg); color: var(--accent); }
.tag-warning { background: var(--warning-bg); color: var(--warning); }

/* ── RELATED TOOL CTA ── */
.related-tool-cta {
  background: var(--primary-bg);
  border: 1px solid #C7D2FE;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.related-tool-cta p { font-size: 1rem; font-weight: 600; color: var(--primary); flex: 1; }
.related-articles h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

/* ── HOMEPAGE HERO ── */
.home-hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, #EDE9FE 100%);
}
.home-hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}
.home-hero p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 20px;
}
.home-hero .privacy-badge { margin: 0 auto; }

/* ── SEARCH BOX ── */
.search-wrap {
  position: relative;
  max-width: 440px;
  margin: 20px auto 0;
}
.search-wrap input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 50px;
  border: 2px solid var(--border);
  font-size: 0.9375rem;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transition: border-color 0.15s;
}
.search-wrap input:focus { border-color: var(--primary); outline: none; }
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
}

/* ── TOOL GRID ── */
.tool-grid-section { padding: 40px 20px; max-width: 1100px; margin: 0 auto; }
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.section-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.tool-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary-light);
}
.tool-card-icon { font-size: 2rem; }
.tool-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.tool-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.tool-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.tool-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  background: var(--accent-bg);
  color: var(--accent);
}
.tool-card-arrow {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 4px;
}
.tool-hidden { display: none !important; }

/* Why Section */
.why-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 20px;
  margin: 0;
}
.why-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.why-item h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 8px; }
.why-item p { font-size: 0.875rem; color: var(--text-muted); }
.why-icon { font-size: 2rem; margin-bottom: 12px; }

/* ── FOOTER ── */
.site-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 60px 20px 32px;
  margin-top: auto;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1E293B;
}
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F1F5F9;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: #64748B;
  font-size: 0.875rem;
  padding: 4px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: #F1F5F9; }
.footer-logo { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; }
.footer-logo .logo-tld { color: var(--primary-light); }
.footer-tagline { font-size: 0.875rem; margin-bottom: 12px; color: #64748B; }
.footer-privacy-note {
  font-size: 0.75rem;
  color: var(--accent-light);
  border: 1px solid #1E3A2F;
  background: #064E3B;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 8px;
}
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8125rem; }
.footer-disclaimer {
  font-size: 0.75rem;
  color: #475569;
  max-width: 600px;
}
.footer-affiliate-note {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 8px;
}

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1E293B;
  color: #CBD5E1;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 999;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-banner p { font-size: 0.875rem; flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--primary-light); text-decoration: underline; }
.cookie-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.cookie-btn:hover { background: var(--primary-light); }

/* ── GST INVOICE ── */
.invoice-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  font-size: 0.875rem;
}
.invoice-header { display: flex; justify-content: space-between; margin-bottom: 24px; gap: 20px; }
.invoice-title { font-size: 1.5rem; font-weight: 900; color: var(--primary); }
.line-items-table { width: 100%; }
.add-item-btn {
  background: none;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  width: 100%;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  margin-top: 8px;
  transition: border-color 0.15s, color 0.15s;
}
.add-item-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ── ERROR MESSAGE ── */
.error-msg {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: none;
}
.error-msg.show { display: block; }

/* ── NOTICE BOX ── */
.notice-box {
  background: var(--primary-bg);
  border: 1px solid #C7D2FE;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
  color: var(--primary);
  margin: 12px 0;
}
.notice-box em { color: var(--text-muted); font-style: normal; }

/* ── STATS STRIP ── */
.stats-strip {
  background: var(--text);
  color: #fff;
  padding: 32px 20px;
  text-align: center;
}
.stats-flex {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.75rem; font-weight: 900; color: var(--accent-light); }
.stat-label { font-size: 0.8125rem; color: #94A3B8; margin-top: 4px; }

/* ── BLOG INDEX ── */
.blog-hero {
  background: linear-gradient(135deg, #EDE9FE 0%, var(--primary-bg) 100%);
  padding: 48px 20px 40px;
  text-align: center;
}
.blog-hero h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 12px;
}
.blog-category-section { margin: 40px 0; }
.blog-category-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
  color: var(--text);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Payslip */
.payslip {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.payslip-header {
  background: var(--primary);
  color: #fff;
  padding: 20px;
  text-align: center;
}
.payslip-body { padding: 16px; }
.payslip-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}
.payslip-row.total {
  font-weight: 700;
  font-size: 1rem;
  border-top: 2px solid var(--text);
  border-bottom: none;
  margin-top: 8px;
  padding-top: 10px;
}
.payslip-credit { color: var(--accent); }
.payslip-debit { color: var(--danger); }

/* ── UTILITY CLASSES ── */
.hidden { display: none !important; }
.show { display: block !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger); }
.fw-bold { font-weight: 700; }
.fs-sm { font-size: 0.875rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }

  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full-width { grid-column: 1; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .why-grid { grid-template-columns: 1fr; gap: 20px; }

  .tool-grid { grid-template-columns: 1fr; }

  .affiliate-cta { flex-direction: column; }
  .affiliate-action { align-items: flex-start; }

  .ad-leaderboard { min-height: 60px; }

  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
}

@media (max-width: 640px) {
  .main-wrapper, .wide-wrapper { padding: 24px 16px 60px; }
  .card { padding: 20px 16px; }
  .home-hero { padding: 40px 16px 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .related-tool-cta { flex-direction: column; }
  .tabs { gap: 0; }
  .tab-btn { padding: 10px 14px; font-size: 0.875rem; }
  .blog-grid, .articles-grid { grid-template-columns: 1fr; }
}
