/* ==========================================================================
   MBG KALKULATOR - PREMIUM DESIGN SYSTEM (VANILLA CSS)
   ========================================================================== */

/* 1. CSS VARIABLES & THEMES */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);
  
  /* Color Palette (Light Mode) */
  --bg-main: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #eff6ff 100%);
  --bg-card: rgba(255, 255, 255, 0.85);
  --border-card: rgba(226, 232, 240, 0.8);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-link: #2563eb;
  
  --primary: #2563eb;
  --secondary: #06b6d4;
  --accent: #22c55e;
  --accent-light: rgba(34, 197, 94, 0.1);
  --warning: #f59e0b;
  
  /* Shared values */
  --radius-xl: 24px;
  --radius-lg: 16px;
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark Mode Variables */
html.dark {
  --bg-main: linear-gradient(135deg, #0f172a 0%, #0b0f19 50%, #030712 100%);
  --bg-card: rgba(30, 41, 59, 0.7);
  --border-card: rgba(51, 65, 85, 0.6);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-link: #3b82f6;
  
  --accent-light: rgba(34, 197, 94, 0.15);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 25px 30px -10px rgba(0, 0, 0, 0.5);
}

/* 2. BASE RESET & SCROLLING */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-main);
  background-attachment: fixed;
  color: var(--text-secondary);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* Typography elements */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

/* 3. LAYOUT UTILITIES */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.max-w-3xl { max-width: 768px; margin: 0 auto; }
.max-w-4xl { max-width: 1024px; margin: 0 auto; }
.max-w-5xl { max-width: 1280px; margin: 0 auto; }

/* Hidden helper */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Glassmorphism Card Style */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.glass-card:hover {
  box-shadow: var(--shadow-xl);
}

/* Gradients */
.gradient-text {
  background: linear-gradient(90deg, #2563eb, #06b6d4, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 4. HEADER & NAVIGATION */
header.navbar-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid var(--border-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s ease;
}

html.dark header.navbar-container {
  background: rgba(15, 23, 42, 0.75);
}

.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  color: var(--text-primary);
}

.logo svg {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a.active {
  color: var(--primary);
}

/* Dark mode toggle switch button */
.theme-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border-card);
  transition: all 0.2s ease;
}

.theme-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

html.dark .theme-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.theme-btn svg {
  width: 20px;
  height: 20px;
}

/* Mobile Toggle Hamburger menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border: 1px solid var(--border-card);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile Nav Drawer overlay background */
.mobile-nav {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-main);
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 32px;
  gap: 24px;
  border-top: 1px solid var(--border-card);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav a {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

/* 5. HERO & TICKER SECTION */
.hero-section {
  text-align: center;
  padding: 48px 0 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero-section h1, .hero-section h2 {
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 12px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section p {
  font-size: 14px;
  color: var(--text-secondary);
  max-w-xl { max-width: 500px; }
  margin: 0 auto;
}

/* Cumulative Spent Black Ticker Box */
.live-tracker-section {
  margin-bottom: 32px;
}

.live-tracker-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-xl);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

html.dark .live-tracker-card {
  background: #030712;
  border-color: #111827;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #10b981;
  border-radius: 50%;
  animation: ping 1.5s infinite;
}

.live-badge span.text {
  color: #10b981;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

/* Wiggling Fix: Individual characters styled inside counter */
.counter-text {
  font-family: monospace;
  font-size: 40px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.counter-char {
  display: inline-block;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.counter-char.num {
  width: 0.55em;
}

.counter-char.dot {
  width: 0.25em;
}

.live-tracker-card p {
  color: #e2e8f0;
  font-size: 12px;
}

/* 6. INTERACTIVE SIMULATION DASHBOARD */
.tabs-container {
  margin-bottom: 48px;
}

.tab-nav {
  display: grid;
  grid-template-cols: repeat(4, 1fr);
  background: #f1f5f9;
  padding: 6px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

html.dark .tab-nav {
  background: rgba(15, 23, 42, 0.6);
}

.tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

html.dark .tab-btn.active {
  background: #334155;
  color: #ffffff;
}

/* Tab contents switch rendering list */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* Tab 1 - Saat Ini */
.saat-ini-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pagu-card {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  padding: 24px;
  border-radius: var(--radius-lg);
}

html.dark .pagu-card {
  background: rgba(15, 23, 42, 0.4);
}

.pagu-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.progress-bar-bg {
  height: 24px;
  background: #e2e8f0;
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

html.dark .progress-bar-bg {
  background: #334155;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  width: 20.9%;
  border-radius: 100px;
  transition: width 0.5s ease;
}

.pagu-labels {
  display: flex;
  gap: 16px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 12px;
}

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

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

.rate-grid {
  display: grid;
  grid-template-cols: repeat(3, 1fr);
  gap: 16px;
}

.rate-card {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  padding: 20px;
  border-radius: var(--radius-lg);
}

html.dark .rate-card {
  background: rgba(15, 23, 42, 0.4);
}

.rate-card .title {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rate-card .value {
  font-size: 18px;
  font-weight: 900;
  font-family: monospace;
  color: var(--text-primary);
}

/* Tab 2, 3, 4 Common Inputs */
.input-group {
  margin-bottom: 24px;
}

.input-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.currency-input-wrapper {
  position: relative;
}

.currency-symbol {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
}

.calc-input {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--border-card);
  padding: 14px 16px 14px 44px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
}

html.dark .calc-input {
  background: rgba(15, 23, 42, 0.4);
}

.calc-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Slider Controls */
.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.slider-input {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 100px;
  outline: none;
  -webkit-appearance: none;
}

html.dark .slider-input {
  background: #334155;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: transform 0.1s ease;
}

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

/* Comparative icons grid */
.results-grid {
  display: grid;
  grid-template-cols: repeat(5, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.result-icon-card {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

html.dark .result-icon-card {
  background: rgba(15, 23, 42, 0.4);
}

.result-icon-card .emoji {
  font-size: 24px;
  margin-bottom: 8px;
}

.result-icon-card .label {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.result-icon-card .val {
  font-size: 13px;
  font-weight: 900;
  color: var(--text-primary);
}

/* Copy copy link button line */
.flex-row-end {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

html.dark .btn-secondary {
  background: #334155;
  color: #ffffff;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* vs Gaji 3-column stats cards */
.stats-row {
  display: grid;
  grid-template-cols: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat-box {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

html.dark .stat-box {
  background: rgba(15, 23, 42, 0.4);
}

.stat-box .title {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stat-box .value {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  font-family: monospace;
}

/* Detailed Calculator Grid Outputs */
.calc-output-grid {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 16px;
}

.calc-output-box {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  padding: 16px;
  border-radius: var(--radius-lg);
}

html.dark .calc-output-box {
  background: rgba(15, 23, 42, 0.4);
}

.calc-output-box .title {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.calc-output-box .val {
  font-size: 20px;
  font-weight: 900;
}

.calc-details-grid {
  display: grid;
  grid-template-cols: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.chart-card {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

html.dark .chart-card {
  background: rgba(15, 23, 42, 0.4);
}

.chart-card h4 {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  align-self: flex-start;
  margin-bottom: 12px;
}

.chart-canvas-wrapper {
  width: 140px;
  height: 140px;
}

.comparison-list-card {
  background: #f8fafc;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 16px;
}

html.dark .comparison-list-card {
  background: rgba(15, 23, 42, 0.4);
}

.comparison-list-card h4 {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.comparison-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

html.dark .comparison-row {
  border-bottom-color: rgba(255,255,255,0.05);
}

.comparison-row:last-child {
  border: none;
}

.comparison-row .val {
  font-weight: 800;
}

.action-row {
  display: grid;
  grid-template-cols: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.btn-action {
  background: #f1f5f9;
  border: none;
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

html.dark .btn-action {
  background: #334155;
  color: #ffffff;
}

.btn-action:hover {
  background: #e2e8f0;
}

/* 7. QUICK STATS PANEL */
.quick-stats-section {
  padding: 48px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
  transition: background 0.3s ease;
}

html.dark .quick-stats-section {
  background: #1e293b;
}

.quick-stats-grid {
  display: grid;
  grid-template-cols: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.quick-stat-item .big-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.quick-stat-item .label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* 8. WORLD COMPARISON SECTION */
.comparison-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-card);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 14px;
  color: var(--text-muted);
}

.comparison-layout {
  display: grid;
  grid-template-cols: 7fr 5fr;
  gap: 32px;
  align-items: start;
}

.chart-card-full {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px;
}

html.dark .chart-card-full {
  background: var(--bg-card);
}

.chart-card-full-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 800;
}

.horizontal-bar-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-country {
  width: 120px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bar-country.highlight {
  color: #ef4444;
  font-weight: 900;
}

.bar-bg {
  flex-grow: 1;
  height: 22px;
  background: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 8px;
}

html.dark .bar-bg {
  background: #1e293b;
}

.bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(37,99,235,0.7), rgba(6,182,212,0.7));
  border-radius: 6px;
}

.bar-fill.highlight {
  background: linear-gradient(90deg, #ef4444, #f43f5e);
}

.bar-value {
  position: relative;
  z-index: 1;
  font-size: 9px;
  font-weight: 900;
  color: #ffffff;
  mix-blend-mode: difference;
}

.info-cards-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
}

.side-card.gradient-bg {
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(6,182,212,0.04));
}

.side-card.dark-bg {
  background: #0f172a;
  color: #ffffff;
  border-color: #1e293b;
}

html.dark .side-card.dark-bg {
  background: #030712;
  border-color: #111827;
}

.side-card .rank {
  width: 40px;
  height: 40px;
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 16px;
}

.side-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.side-card p {
  font-size: 12px;
  color: var(--text-secondary);
}

.side-card.dark-bg h4 { color: #ffffff; }
.side-card.dark-bg p { color: #cbd5e1; }

.side-card .stat-val {
  font-size: 32px;
  font-weight: 900;
  color: #10b981;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.sidebar-notice {
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
  border-left: 2px solid rgba(37, 99, 235, 0.4);
  padding-left: 12px;
}

/* 9. FEATURES CARD GRID */
.features-section {
  padding: 64px 0;
}

.features-grid {
  display: grid;
  grid-template-cols: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease;
}

html.dark .feature-card {
  background: var(--bg-card);
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-card svg {
  width: 24px;
  height: 24px;
  margin-bottom: 16px;
}

.feature-card .icon-primary { color: var(--primary); }
.feature-card .icon-emerald { color: #10b981; }
.feature-card .icon-cyan { color: #06b6d4; }
.feature-card .icon-amber { color: #f59e0b; }

.feature-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 11px;
  color: var(--text-muted);
}

/* 10. SEO CONTENT ARTICLE (prose) */
.article-section {
  padding: 64px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-card);
  transition: background 0.3s ease;
}

html.dark .article-section {
  background: #0f172a;
}

.prose {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.85;
}

.prose h2 {
  font-size: 24px;
  margin-top: 32px;
  margin-bottom: 16px;
}

.prose h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
}

.prose p {
  margin-bottom: 16px;
}

.prose ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose ul li {
  margin-bottom: 6px;
}

/* 11. FAQ ACCORDION SECTION */
.faq-section {
  padding: 64px 0;
  background: rgba(241, 245, 249, 0.3);
  border-top: 1px solid var(--border-card);
}

html.dark .faq-section {
  background: rgba(30, 41, 59, 0.2);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.2s ease;
}

html.dark .faq-item {
  background: #1e293b;
}

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-trigger:hover {
  background: rgba(0,0,0,0.02);
}

html.dark .faq-trigger:hover {
  background: rgba(255,255,255,0.02);
}

.faq-trigger svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-trigger svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-panel {
  display: none;
  padding: 0 16px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  border-top: 1px solid rgba(0,0,0,0.05);
  line-height: 1.6;
}

html.dark .faq-panel {
  border-top-color: rgba(255,255,255,0.05);
}

.faq-item.open .faq-panel {
  display: block;
}

/* 12. BLOG LISTING GRID */
.blog-list-section {
  padding: 48px 0;
}

.blog-grid {
  display: grid;
  grid-template-cols: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card-top {
  padding: 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.blog-card-meta .dot {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

.blog-card-meta .read {
  color: var(--text-muted);
}

.blog-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card h3 a {
  color: var(--text-primary);
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.blog-card p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.blog-card .author {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.blog-card .author span {
  color: var(--text-secondary);
}

.blog-card-bottom {
  padding: 16px 24px;
  border-top: 1px solid var(--border-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
}

.blog-card-bottom .date {
  color: var(--text-muted);
}

.blog-card-bottom .read-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
}

/* 13. FOOTER */
footer.footer-container {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 64px 0 32px;
  margin-top: auto;
  color: #cbd5e1;
}

html.dark footer.footer-container {
  background: #030712;
  border-top-color: #111827;
}

.footer-grid {
  display: grid;
  grid-template-cols: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer-links-col h4 {
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col ul li {
  margin-bottom: 10px;
}

.footer-links-col ul li a {
  color: #94a3b8;
  font-size: 12px;
}

.footer-links-col ul li a:hover {
  color: #ffffff;
}

/* High-contrast brand social icons setup */
.social-icons {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 32px;
  height: 32px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease;
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

/* Official brand color states */
.social-btn.facebook svg { fill: #1877F2; }
.social-btn.instagram svg { fill: #E4405F; }
.social-btn.x svg { fill: #1A1A1A; }
.social-btn.github svg { fill: #24292E; }

/* Interactive Hover States */
.social-btn:hover {
  transform: translateY(-3px) scale(1.05);
}

.social-btn.facebook:hover { background: #1877F2; }
.social-btn.instagram:hover { background: #E4405F; }
.social-btn.x:hover { background: #1A1A1A; }
.social-btn.github:hover { background: #24292E; }

.social-btn.facebook:hover svg { fill: #ffffff; }
.social-btn.instagram:hover svg { fill: #ffffff; }
.social-btn.x:hover svg { fill: #ffffff; }
.social-btn.github:hover svg { fill: #ffffff; }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
}

html.dark .footer-bottom {
  border-top-color: #111827;
}

.footer-bottom a {
  color: #64748b;
}

.footer-bottom a:hover {
  color: #ffffff;
}

/* 14. ANIMATIONS */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

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

@keyframes slideDown {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 15. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1024px) {
  .comparison-layout {
    grid-template-cols: 1fr;
  }
  .blog-grid {
    grid-template-cols: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .hero-section h1, .hero-section h2 {
    font-size: 32px;
  }
  
  .rate-grid, .stats-row {
    grid-template-cols: 1fr;
  }
  
  .results-grid {
    grid-template-cols: repeat(2, 1fr);
  }
  
  .calc-output-grid, .calc-details-grid {
    grid-template-cols: 1fr;
  }
  
  .quick-stats-grid {
    grid-template-cols: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-cols: repeat(2, 1fr);
  }
  
  .blog-grid {
    grid-template-cols: 1fr;
  }
  
  .footer-grid {
    grid-template-cols: 1fr;
  }
}

@media (max-width: 480px) {
  .results-grid, .quick-stats-grid, .features-grid {
    grid-template-cols: 1fr;
  }
  .counter-text {
    font-size: 24px;
  }
}
