/* Modern Clean CSS for MoneyCalculator Clone */
:root {
  --bg-cream: #fbfbfb;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  --bg-dark-surface: #1e293b;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: #ecfdf5;
  --primary-dark: #065f46;
  --navy-900: #0a0f1d;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
}

/* --- High-Impact Modern Hero & Typography Utilities --- */
.hero-glow-backdrop {
  background-color: #090e1a !important;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.22) 0%, rgba(9, 14, 26, 0.95) 70%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
  background-size: 100% 100%, 32px 32px, 32px 32px !important;
  color: #ffffff !important;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.interactive-card {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.interactive-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
}

@keyframes pulseSubtle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.95);
  }
}

.animate-pulse-subtle {
  animation: pulseSubtle 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-cream);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.num,
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}

/* Hide scrollbar for IE, Edge and Firefox */
.no-scrollbar {
  -ms-overflow-style: none !important;
  /* IE and Edge */
  scrollbar-width: none !important;
  /* Firefox */
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  text-decoration: none;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo span {
  color: var(--primary);
}

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

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

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
  background: #f1f5f9;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f1f5f9;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-trigger:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.kbd-badge {
  background: #ffffff;
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-subtle);
  font-family: 'JetBrains Mono', monospace;
}

.all-tools-btn {
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s ease;
  border: none;
  cursor: pointer;
}

.all-tools-btn:hover {
  background: #1e293b;
}

.mobile-menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  background-color: #0b1329;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  position: relative;
  overflow: hidden;
  padding: 56px 20px 48px;
  text-align: center;
}

.hero-pill {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.hero-title {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 52px;
  }
}

.hero-title-accent {
  color: #34d399;
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-search-box {
  max-width: 540px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.hero-search-box:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(52, 211, 153, 0.4);
}

.hero-search-placeholder {
  flex: 1;
  text-align: left;
  font-size: 15px;
  color: #94a3b8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 700px;
  margin: 0 auto;
}

.tag-chip {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(52, 211, 153, 0.5);
  transform: translateY(-1px);
}

/* Stats Ribbon */
.stats-ribbon {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .stats-ribbon {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  padding: 18px 12px;
  text-align: center;
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
  border-right: none;
}

.stat-val {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 600;
}

/* Main Container */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  width: 100%;
}

/* Tax Banner Highlight */
.featured-banner {
  background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  cursor: pointer;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(124, 58, 237, 0.3);
  transition: transform 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
}

.featured-banner:hover {
  transform: translateY(-2px);
  opacity: 0.98;
}

.featured-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.featured-text {
  flex: 1;
}

.featured-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.featured-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 2px;
}

.featured-action {
  font-size: 13px;
  font-weight: 800;
  background: #ffffff;
  color: #7c3aed;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
}

.section-link:hover {
  text-decoration: underline;
}

/* Categories Carousel */
.categories-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 36px;
  scrollbar-width: thin;
}

.categories-scroll::-webkit-scrollbar {
  height: 5px;
}

.categories-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.category-card {
  flex-shrink: 0;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.category-card:hover,
.category-card.active {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-card.active {
  background: #f0fdf4;
}

.category-icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.category-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.category-count {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Popular Grid */
.popular-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .popular-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .popular-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.tool-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.badge-blue {
  background: #dbeafe;
  color: #1e40af;
}

.badge-green {
  background: #dcfce7;
  color: #166534;
}

.badge-yellow {
  background: #fef9c3;
  color: #854d0e;
}

.tool-icon-wrapper {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
}

.icon-blue {
  background: #eff6ff;
}

.icon-green {
  background: #f0fdf4;
}

.icon-yellow {
  background: #fefce8;
}

.icon-orange {
  background: #fff7ed;
}

.icon-pink {
  background: #fdf2f8;
}

.icon-purple {
  background: #faf5ff;
}

.tool-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.tool-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  flex: 1;
}

.tool-arrow {
  color: #cbd5e1;
  font-size: 14px;
  margin-top: 10px;
  align-self: flex-end;
  transition: color 0.15s ease;
}

.tool-card:hover .tool-arrow {
  color: var(--primary);
}

/* Compare Grid */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .compare-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

.compare-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-sip-lump {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
}

.card-tax-regime {
  background: linear-gradient(135deg, #78350f 0%, #b45309 100%);
}

.card-fd-sip {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.card-emi-rent {
  background: linear-gradient(135deg, #831843 0%, #be185d 100%);
}

.compare-vs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-item {
  font-size: 17px;
  font-weight: 900;
}

.vs-tag {
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 7px;
  border-radius: 9999px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, 0.8);
}

.compare-action {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 14px;
}

/* Why Choose Section */
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
}

.why-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--text-main);
}

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

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-item {
  display: flex;
  gap: 16px;
}

.why-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.why-h {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.why-p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========================================================== */
/* CALCULATOR DETAIL SCREEN                                   */
/* ========================================================== */
.calculator-view {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 32px;
}

.calc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.calc-breadcrumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.calc-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-headline {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.calc-subhead {
  font-size: 14px;
  color: var(--text-muted);
}

/* Calculator Grid */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 900px) {
  .calc-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

/* Form Groups */
.input-group {
  margin-bottom: 24px;
}

.input-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.input-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.input-val-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  min-width: 130px;
  justify-content: flex-end;
  transition: border-color 0.15s;
}

.input-val-box:focus-within {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.input-val-box input {
  border: none;
  background: transparent;
  text-align: right;
  font-size: 15px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-main);
  width: 100%;
  outline: none;
}

.input-symbol {
  color: var(--text-muted);
  font-weight: 700;
  margin-right: 4px;
}

/* Range Slider */
.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 9999px;
  background: #e2e8f0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
  margin-bottom: 10px;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.4);
  transition: transform 0.1s ease;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Preset Chips */
.preset-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: 'JetBrains Mono', monospace;
}

.preset-chip:hover,
.preset-chip.active {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary);
}

/* Summary / Output Card */
.summary-panel {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.primary-stat-card {
  background: #ffffff;
  border: 1px solid #dcfce7;
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.primary-stat-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-dark);
}

.primary-stat-val {
  font-size: 32px;
  font-weight: 900;
  color: #047857;
  margin-top: 4px;
}

.stat-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-color);
}

.stat-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-row-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-green {
  background: #10b981;
}

.dot-blue {
  background: #3b82f6;
}

.dot-amber {
  background: #f59e0b;
}

.dot-purple {
  background: #8b5cf6;
}

.stat-row-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

/* Donut Chart */
.chart-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

/* Amortization Table */
.breakdown-section {
  margin-top: 36px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.data-table th {
  background: #f8fafc;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  font-weight: 600;
}

.data-table tr:hover td {
  background: #f8fafc;
}

/* Old vs New Tax Comparison */
.tax-compare-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 640px) {
  .tax-compare-container {
    grid-template-columns: 1fr 1fr;
  }
}

.regime-box {
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}

.regime-box.recommended {
  border-color: #10b981;
  background: #f0fdf4;
}

.regime-badge {
  position: absolute;
  top: -12px;
  right: 16px;
  background: #10b981;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
}

.regime-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 12px;
}

.regime-tax-val {
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
}

/* Search Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
}

.modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal-search-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-search-input {
  border: none;
  outline: none;
  font-size: 16px;
  width: 100%;
  font-family: inherit;
  color: var(--text-main);
}

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-result-item:hover {
  background: #f1f5f9;
}

.search-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.search-item-cat {
  font-size: 12px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #ffffff;
  margin-top: auto;
  padding: 48px 20px 24px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-logo {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 12px;
}

.footer-logo span {
  color: #10b981;
}

.footer-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 13.5px;
  color: #94a3b8;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  align-items: center;
  justify-content: space-between;
}

/* Tools Directory Grid */
.tools-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

/* Blogs Grid & Cards */
.blogs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .blogs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blogs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.blog-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary-dark);
}

.blog-read-time {
  font-size: 12px;
  color: var(--text-muted);
}

.blog-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  font-size: 12px;
  color: var(--text-subtle);
  font-weight: 600;
}

.blog-read-link {
  color: var(--primary);
  font-weight: 700;
}

/* Blog Reading Modal */
.blog-modal-content {
  max-width: 720px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.blog-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  line-height: 1.7;
  color: #334155;
  font-size: 15px;
}

.blog-modal-body h1 {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.25;
}

.blog-modal-body h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 24px 0 10px;
}

.blog-modal-body p {
  margin-bottom: 16px;
}

.blog-modal-body ul {
  margin: 0 0 16px 20px;
}

.blog-modal-body li {
  margin-bottom: 8px;
}

.blog-modal-body blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 12px 18px;
  border-radius: 0 8px 8px 0;
  margin: 16px 0;
  font-style: italic;
  color: var(--primary-dark);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #0f172a;
}

/* Mobile Drawer */
.mobile-drawer {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-link {
  text-align: left;
  background: none;
  border: none;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-link:hover {
  background: #f1f5f9;
}

.banner-green {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
}

.text-green {
  color: #047857 !important;
}

/* ========================================================== */
/* EXACT MONEYCALCULATOR.CO.IN 1:1 REPLICA STYLES             */
/* ========================================================== */

/* Dark Tool Hero Header Banner */
.tool-hero-banner {
  background-color: #0b1329;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 32px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.tool-hero-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}

.tool-hero-content {
  flex: 1;
}

.tool-hero-title {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.tool-hero-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
  max-width: 800px;
}

.tool-hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero-tag-pill {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

/* Tool Main 2-Column Layout */
.tool-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.tool-breadcrumb-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 10px 20px;
}

.tool-breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: #94a3b8;
}

.tool-breadcrumb-inner a {
  color: #10b981;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.tool-breadcrumb-inner a:hover {
  text-decoration: underline;
}

.tool-layout-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

@media (min-width: 1024px) {
  .tool-layout-row {
    flex-direction: row;
  }
}

.tool-main-col {
  flex: 1;
  min-width: 0;
}

.tool-sidebar-col {
  width: 100%;
}

@media (min-width: 1024px) {
  .tool-sidebar-col {
    width: 260px;
    flex-shrink: 0;
  }
}

/* Tool Input Card */
.tool-input-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.tool-input-card-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 20px;
}

/* Exact Input Box Styling */
.exact-field-group {
  margin-bottom: 22px;
}

.exact-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.exact-field-label {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.exact-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.exact-input-box {
  position: relative;
  flex: 1;
}

.exact-input-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 800;
  color: #94a3b8;
  pointer-events: none;
}

.exact-input {
  width: 100%;
  padding: 10px 14px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: #0f172a;
  outline: none;
  transition: all 0.15s ease;
}

.exact-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.exact-input-has-prefix {
  padding-left: 32px;
}

.exact-input-suffix {
  background: #f1f5f9;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  min-width: 56px;
  text-align: center;
}

input[type="date"].exact-input {
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: auto;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  background-color: #f1f5f9;
  transition: all 0.2s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background-color: #e2e8f0;
  transform: scale(1.1);
}

.date-select-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.date-select-box:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* --- Custom Interactive Visual Date Picker --- */
.custom-datepicker-card {
  position: relative;
}

.custom-datepicker-input-wrap {
  position: relative;
  cursor: pointer;
}

.custom-datepicker-popup {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 8px;
  width: 320px;
  max-width: 90vw;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.05);
  padding: 16px;
  z-index: 50;
  animation: dpFadeIn 0.15s ease-out;
}

@keyframes dpFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.dp-day-header {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  padding: 6px 0;
  text-transform: uppercase;
}

.dp-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.dp-day-cell:hover:not(.dp-disabled) {
  background: #f1f5f9;
  color: #0f172a;
}

.dp-day-cell.dp-selected {
  background: #10b981 !important;
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}

.dp-day-cell.dp-today:not(.dp-selected) {
  border: 2px solid #10b981;
  color: #10b981;
}

.dp-day-cell.dp-other-month {
  color: #cbd5e1;
  font-weight: 500;
}

.dp-day-cell.dp-disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.slider-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 12px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
}

/* 3 Impactful Metric Highlight Cards */
.metric-cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .metric-cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric-card-dark {
  background: #0b1329;
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.metric-card-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 6px;
}

.metric-card-val {
  font-size: 26px;
  font-weight: 900;
  color: #34d399;
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-card-sub {
  font-size: 12px;
  color: #64748b;
}

/* Interactive Stacked Bar Chart */
.chart-card-white {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.chart-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-legend-box {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.stacked-bars-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 160px;
  padding: 0 4px;
  margin-bottom: 8px;
}

.stacked-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  cursor: pointer;
  position: relative;
  transition: opacity 0.15s ease;
}

.stacked-bar-col:hover {
  opacity: 0.85;
}

.stacked-bar-principal {
  background: #16a34a;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
  width: 100%;
}

.stacked-bar-interest {
  background: #bfdbfe;
  width: 100%;
}

.stacked-bar-x-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', monospace;
  padding: 0 4px;
}

/* Call to Action Banner */
.cta-banner-box {
  background: #0b1329;
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .cta-banner-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cta-banner-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}

.cta-banner-sub {
  font-size: 13.5px;
  color: #94a3b8;
}

.cta-banner-btn {
  background: #16a34a;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.cta-banner-btn:hover {
  background: #15803d;
}

/* Formula Callout Box */
.formula-callout-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.formula-callout-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #166534;
  margin-bottom: 10px;
}

.formula-math {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 800;
  color: #14532d;
  line-height: 1.5;
}

.formula-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #15803d;
  margin-top: 8px;
}

.formula-example {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #bbf7d0;
  font-size: 13px;
  color: #166534;
}

/* Clean Rich Tables */
.rich-table-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.rich-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.rich-table th {
  background: #0b1329;
  color: #ffffff;
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.rich-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  color: #334155;
}

.rich-table tr:last-child td {
  border-bottom: none;
}

.rich-table tr:hover td {
  background: #f8fafc;
}

.table-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.table-tag-green {
  background: #dcfce7;
  color: #166534;
}

.table-tag-blue {
  background: #dbeafe;
  color: #1e40af;
}

.table-tag-orange {
  background: #ffedd5;
  color: #9a3412;
}

.table-tag-red {
  background: #fee2e2;
  color: #991b1b;
}

/* FAQ Details/Summary Accordions */
.faq-details-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-details-summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-details-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  font-size: 12px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.faq-details-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-details-content {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
  border-top: 1px solid #f1f5f9;
}

/* Sidebar Styles */
.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.sidebar-widget-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 14px;
}

.sidebar-toc-item {
  font-size: 13.5px;
  color: #64748b;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: color 0.15s ease;
}

.sidebar-toc-item:last-child {
  border-bottom: none;
}

.sidebar-toc-item:hover {
  color: #10b981;
}

.sidebar-tool-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  cursor: pointer;
  border-bottom: 1px solid #f8fafc;
}

.sidebar-tool-link:hover {
  background: #f8fafc;
}

.sidebar-tool-link:last-child {
  border-bottom: none;
}

.sidebar-promo-card {
  border-radius: 16px;
  padding: 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-bottom: 18px;
}

.sidebar-promo-card:hover {
  transform: translateY(-2px);
  opacity: 0.98;
}

.promo-salary {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
}

.promo-inflation {
  background: linear-gradient(135deg, #dc2626 0%, #e11d48 100%);
}

.promo-crypto {
  background: linear-gradient(135deg, #ea580c 0%, #d97706 100%);
}

.promo-profit {
  background: linear-gradient(135deg, #059669 0%, #16a34a 100%);
}

.sidebar-promo-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
}

.sidebar-promo-title {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 4px;
}

.sidebar-promo-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.sidebar-promo-btn {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  margin-top: 14px;
}

/* --- SEGMENTED TOGGLES & SLAB PILLS --- */
.toggle-btn-group {
  display: flex;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--border-color);
}

.toggle-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.toggle-btn:hover {
  color: #0f172a;
}

.toggle-btn.active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.slab-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slab-pill-btn {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.slab-pill-btn:hover {
  border-color: #f59e0b;
  color: #b45309;
}

.slab-pill-btn.active {
  background: #d97706;
  color: #ffffff;
  border-color: #d97706;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.2);
}

.slab-pill-btn.active-green {
  background: #16a34a;
  color: #ffffff;
  border-color: #16a34a;
}

.breakdown-row-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f8fafc;
}

.breakdown-row-bar:last-child {
  border-bottom: none;
}

.progress-track {
  height: 10px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
  flex: 1;
}

.progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.3s ease;
}

/* Slabs Table Row Hover */
.slab-row-interactive {
  cursor: pointer;
  transition: background 0.15s ease;
}

.slab-row-interactive:hover {
  background: #fef3c7 !important;
}

.slab-row-interactive.selected {
  background: #fef3c7 !important;
  font-weight: 800;
}





/* =========================================================================
   MONEY X CALCULATOR - ULTRA-STYLISH BRAND DESIGN SYSTEM
   ========================================================================= */
.money-x-logo {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  letter-spacing: -0.035em;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.money-x-badge {
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #06b6d4 100%);
  color: #020617;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 900;
  font-size: 0.72em;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: skewX(-8deg);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.6);
  margin: 0 4px;
  line-height: 1.25;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.group:hover .money-x-badge {
  transform: skewX(-8deg) scale(1.08);
}

.money-x-gradient-text {
  background: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.money-x-glow {
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.money-x-icon-glass {
  background: linear-gradient(135deg, #10b981 0%, #0d9488 60%, #0f172a 100%);
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* =========================================================================
   PROFESSIONAL GPU-ACCELERATED MICRO-ANIMATIONS (0ms Performance Overhead)
   ========================================================================= */

/* 1. Page Route Transition (Silky 180ms Fade & Rise) */
@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.route-fade-in {
  animation: pageFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: opacity, transform;
}

/* 2. Tactile Button & Pill Tap Feedback */
button,
a.interactive-btn,
.modal-filter-btn,
.trending-search-pill {
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}

button:active:not(:disabled),
a.interactive-btn:active,
.modal-filter-btn:active {
  transform: scale(0.96) !important;
}

/* 3. Card Hover Elevation & Subtle Ambient Glow */
.interactive-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease !important;
  will-change: transform, box-shadow;
}

.interactive-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(16, 185, 129, 0.08) !important;
}

/* 4. Modal Pop Animation */
@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#search-modal>div {
  animation: modalPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

/* 5. Modern High-Precision Range Slider & Seekbar UI/UX */
.exact-input {
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus,
.exact-input:focus {
  outline: none;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18) !important;
  background-color: #ffffff !important;
}

/* Remove default number spinner arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* --- Card Lift & Shadow Polish --- */
.interactive-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease !important;
  will-change: transform, box-shadow;
}

.interactive-card:hover {
  transform: translateY(-2.5px) !important;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.07), 0 4px 10px -2px rgba(0, 0, 0, 0.04) !important;
}

/* --- Tabular Numbers across All Results & Metrics --- */
.font-mono,
[id*="res-"],
[id*="-val"],
[id*="-result"],
.num,
table td {
  font-variant-numeric: tabular-nums;
}

/* --- Modern Subtle Background Ambient Mesh --- */
body {
  background-color: #f8fafc;
  background-image:
    radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.04) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.035) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(16, 185, 129, 0.025) 0px, transparent 50%);
  background-attachment: fixed;
}

/* --- High-End Fintech Preset Chips & Action Pills --- */
.preset-chip,
.down-chip,
.term-chip,
.calc-preset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.preset-chip:hover,
.down-chip:hover,
.term-chip:hover,
.calc-preset-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
}

.preset-chip.active,
.down-chip.active,
.term-chip.active,
.calc-preset-btn.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.4) !important;
  transform: translateY(-1px);
}

/* --- Luxury Glassmorphic Cards & Elevators --- */
.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
}

.glass-panel-dark {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 29, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.4);
}

/* --- Route Fade-In Transition --- */
@keyframes routeFadeIn {
  from {
    opacity: 0.85;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.route-fade-in {
  animation: routeFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Smooth Custom Scrollbars --- */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* =========================================================================
   PREMIUM FINTECH DESIGN SYSTEM UPGRADES
   ========================================================================= */

/* 1. Elegant Tabular Typography for Financial Inputs & Numbers */
.exact-input,
input[type="number"],
input[type="text"].num-input,
.calc-val,
.num {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}

/* 2. Soft Luxury Focus and Elevated Borders */
.exact-input {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background-color: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.exact-input:hover {
  border-color: #cbd5e1;
  background-color: #ffffff;
}

.exact-input:focus {
  border-color: #10b981 !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
}

/* 4. Sleek Donut Chart Transitions */
.donut-segment {
  transition: stroke-dasharray 0.4s cubic-bezier(0.16, 1, 0.3, 1), stroke-dashoffset 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 5. Modern Chip Buttons */
.preset-chip,
.down-chip,
.rate-chip {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 12px;
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
}

.preset-chip:hover,
.down-chip:hover,
.rate-chip:hover {
  background-color: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.preset-chip.active,
.down-chip.active,
.rate-chip.active {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.45) !important;
  transform: translateY(-1px);
}

/* 6. Toast Notification Styling */
.toast-alert {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 12px 20px;
  background: #0f172a;
  color: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 7. Executive Print Stylesheet */
@media print {
  header,
  footer,
  #nav-search-btn,
  .no-print,
  button,
  .preset-chip,
  .rate-chip,
  .down-chip,
  input[type="range"],
  #search-modal {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt !important;
  }
  .max-w-6xl, .max-w-7xl {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .bg-gradient-to-br, .bg-slate-900, .bg-slate-950 {
    background: #f8fafc !important;
    color: #000000 !important;
    border: 1px solid #cbd5e1 !important;
  }
  .text-white {
    color: #0f172a !important;
  }
}

/* 8. Dynamic Currency Prefix Spacing (prevents overlap with longer symbols) */
.exact-input,
input.exact-input {
  padding-left: 2.2rem !important;
}

[data-currency="CAD"] .exact-input,
[data-currency="CAD"] input.exact-input,
[data-currency="AUD"] .exact-input,
[data-currency="AUD"] input.exact-input,
[data-currency="SGD"] .exact-input,
[data-currency="SGD"] input.exact-input {
  padding-left: 2.75rem !important;
}

[data-currency="AED"] .exact-input,
[data-currency="AED"] input.exact-input {
  padding-left: 3.8rem !important;
}

/* ==========================================================================
   BILLION-DOLLAR FINTECH SUITE: LUXURY GLASSMORPHISM, AURORA & ANIMATIONS
   Bespoke, handcrafted aesthetics engineered for institutional precision
   ========================================================================== */

/* 1. Tabular Figures: Prevents UI jitter during real-time slider manipulation */
.font-tabular,
.exact-input,
input[type="number"],
[id$="-val"],
[id$="-price"],
[id$="-total"],
[id$="-interest"],
[id$="-principal"] {
  font-variant-numeric: tabular-nums lining-nums !important;
  font-feature-settings: "tnum" 1, "lnum" 1 !important;
}

/* 2. Floating Ambient Aurora Animation for Dark Hero & Studio Sections */
@keyframes auroraPulse {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.28;
  }
  33% {
    transform: translate(30px, -20px) scale(1.08);
    opacity: 0.38;
  }
  66% {
    transform: translate(-25px, 25px) scale(0.96);
    opacity: 0.24;
  }
}

@keyframes floatGentle {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes livePulseRing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.animate-aurora {
  animation: auroraPulse 14s ease-in-out infinite;
}

.animate-float-gentle {
  animation: floatGentle 6s ease-in-out infinite;
}

.live-pulse-dot {
  animation: livePulseRing 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 3. Luxury Glassmorphism & High-Precision Micro-Borders */
.fintech-glass-panel {
  background: radial-gradient(circle at 10% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 90% 90%, rgba(6, 182, 212, 0.07) 0%, transparent 45%),
              linear-gradient(135deg, rgba(13, 20, 36, 0.95) 0%, rgba(8, 14, 27, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.fintech-glass-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fintech-glass-card:hover {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 16px 32px -8px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.fintech-card-light {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.fintech-card-light:hover {
  border-color: #10b981;
  box-shadow: 0 16px 32px -6px rgba(16, 185, 129, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  transform: translateY(-3px);
}

/* 5. Chart Tabs & Interactive Controls */
.chart-view-tab {
  padding: 0.45rem 0.95rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.chart-view-tab.active {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px -2px rgba(16, 185, 129, 0.35);
}

.chart-view-tab:not(.active) {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.chart-view-tab:not(.active):hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* 6. Chart Canvas Responsive Wrappers */
.chart-responsive-box {
  position: relative;
  width: 100%;
  height: 290px;
  max-height: 330px;
}

@media (max-width: 640px) {
  .chart-responsive-box {
    height: 230px;
  }
}

/* 7. Value Recalculation Pulse (Bespoke Feedback on Interaction) */
@keyframes valueUpdateGlow {
  0% {
    color: #34d399;
    text-shadow: 0 0 16px rgba(52, 211, 153, 0.7);
  }
  100% {
    color: inherit;
    text-shadow: none;
  }
}

.stat-pulse-active {
  animation: valueUpdateGlow 0.4s ease-out;
}

/* 8. Metallic Sheen Hover on Primary Action Buttons */
.btn-billion-glow {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-billion-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.btn-billion-glow:hover::after {
  transform: rotate(30deg) translateY(100%);
}

.btn-billion-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(16, 185, 129, 0.4), 0 4px 8px -2px rgba(16, 185, 129, 0.2);
}


/* Completely remove preset value chips from all calculator inputs */
.preset-chip,
.preset-chips,
.rate-chip,
.down-chip,
.tip-chip,
.sd-preset,
.calc-preset-btn {
  display: none !important;
}

/* ==========================================================================
   ADVANCED MOBILE & CROSS-DEVICE FULL RESPONSIVENESS SUITE
   ========================================================================== */

/* 1. Global Box Sizing & Anti-Overflow Safeguards */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden !important;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* 2. Responsive Media & Canvas */
img, svg, canvas, video {
  max-width: 100%;
  height: auto;
}

canvas {
  display: block;
}

/* 3. Touch-Action Optimization for Mobile Sliders */
input[type="range"] {
  touch-action: pan-y;
  width: 100%;
  cursor: pointer;
}

/* 4. Exact Input Responsive Sizing */
.exact-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .exact-input {
    font-size: 15px !important;
    padding: 8px 12px !important;
  }
}

/* 5. Fluid Responsive Result Typography */
.hero-result-value,
.metric-value-display {
  word-break: break-word;
  overflow-wrap: break-word;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  .hero-result-value {
    font-size: 1.85rem !important;
    line-height: 2.2rem !important;
  }
}

/* 6. Mobile Tables Horizontal Scrolling */
.table-responsive,
.overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* 7. Mobile Navigation Drawer Animation */
@keyframes slideDownMenu {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeIn {
  animation: slideDownMenu 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 8. Mobile Card Padding & Touch Target Comfort */
@media (max-width: 640px) {
  .calculator-card,
  .interactive-card {
    padding: 1.15rem !important;
  }
  
  .max-w-6xl,
  .max-w-7xl {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
