/* ============================================
   HISAABKARO — GLOBAL DESIGN SYSTEM
   ============================================ */

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

/* ============================================
   DESIGN TOKENS — DARK (default)
   ============================================ */
:root {
  --primary: #1D9E75;
  --primary-dark: #157a5a;
  --primary-light: #25c490;
  --primary-glow: rgba(29, 158, 117, 0.15);

  --bg-base: #0B1121;
  --bg-surface: #131C2E;
  --bg-elevated: #1A2540;
  --bg-overlay: rgba(19, 28, 46, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-primary: rgba(29, 158, 117, 0.35);

  --text-primary: #F0F4FF;
  --text-secondary: #8B9FC8;
  --text-tertiary: #4E5F80;

  --amber: #F59E0B;
  --red: #EF4444;
  --blue: #3B82F6;
  --purple: #8B5CF6;

  --nav-h: 68px;
  --max-w: 1280px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.4);
  --shadow-primary: 0 8px 32px rgba(29, 158, 117, 0.25);
  --shadow-hover: 0 20px 60px rgba(29, 158, 117, 0.18);

  --transition: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);

  /* Theme-specific composites */
  --nav-bg: rgba(11, 17, 33, 0.72);
  --nav-bg-scrolled: rgba(11, 17, 33, 0.96);
  --mobile-menu-bg: rgba(11, 17, 33, 0.99);
  --hover-overlay: rgba(255, 255, 255, 0.04);
  --card-glass-bg: rgba(19, 28, 46, 0.7);
  --table-row-border: rgba(255, 255, 255, 0.03);
  --hero-grid-color: rgba(255, 255, 255, 0.018);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238B9FC8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
}

/* ============================================
   DESIGN TOKENS — LIGHT
   ============================================ */
[data-theme="light"] {
  --bg-base: #F5F7FA;
  --bg-surface: #FFFFFF;
  --bg-elevated: #EEF2F7;
  --bg-overlay: rgba(245, 247, 250, 0.92);

  --border-subtle: rgba(0, 0, 0, 0.05);
  --border-default: rgba(0, 0, 0, 0.10);
  --border-primary: rgba(29, 158, 117, 0.40);

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-tertiary: #94A3B8;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-primary: 0 8px 32px rgba(29, 158, 117, 0.22);
  --shadow-hover: 0 20px 60px rgba(29, 158, 117, 0.14);

  --nav-bg: rgba(255, 255, 255, 0.82);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.97);
  --mobile-menu-bg: rgba(255, 255, 255, 0.99);
  --hover-overlay: rgba(0, 0, 0, 0.04);
  --card-glass-bg: rgba(255, 255, 255, 0.85);
  --table-row-border: rgba(0, 0, 0, 0.04);
  --hero-grid-color: rgba(0, 0, 0, 0.04);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394A3B8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
}

/* ============================================
   BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

::selection { background: var(--primary-glow); color: var(--primary-light); }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.gradient-text {
  background: linear-gradient(135deg, #1D9E75 0%, #4EEDB0 50%, #1D9E75 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s linear infinite;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition);
}

.nav.scrolled {
  background: var(--nav-bg-scrolled);
  border-bottom-color: var(--border-default);
  box-shadow: 0 4px 32px rgba(0,0,0,0.12);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}

.logo-img { height: 34px; width: auto; display: block; }
.logo-img-light { display: none; }

[data-theme="light"] .logo-img-dark  { display: none; }
[data-theme="light"] .logo-img-light { display: block; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover { color: var(--text-primary); background: var(--hover-overlay); }
.nav-link.active { color: var(--primary-light); }

.nav-cta { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* Theme Toggle */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-default);
  background: transparent; cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text-primary); background: var(--hover-overlay); border-color: var(--border-primary); }

.theme-icon-sun { display: block; }
.theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; border-radius: 8px;
  transition: background var(--transition-fast);
}
.hamburger:hover { background: var(--hover-overlay); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: all var(--transition); }

.mobile-menu {
  display: none;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--mobile-menu-bg);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-default);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 999;
  flex-direction: column; gap: 4px;
  animation: slideDown 0.2s ease;
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none; font-size: 0.9rem; font-weight: 500;
  padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  transition: all var(--transition-fast); display: flex; align-items: center; gap: 10px;
}
.mobile-menu a:hover { color: var(--text-primary); background: var(--hover-overlay); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: none; outline: none;
  text-decoration: none; transition: all var(--transition);
  white-space: nowrap; font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 4px 16px var(--primary-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-primary); filter: brightness(1.08); }
.btn-primary:active { transform: none; }

.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border-default);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-primary); background: var(--primary-glow); }

.btn-lg { padding: 0.875rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.78rem; }

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.card-glass {
  background: var(--card-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
}

.card-hover {
  transition: all var(--transition);
}
.card-hover:hover {
  border-color: var(--border-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
  font-size: 0.8rem; font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.05em;
  display: flex; justify-content: space-between; align-items: center;
}

.form-label span { color: var(--primary-light); font-weight: 700; font-size: 0.85rem; text-transform: none; letter-spacing: 0; }

.form-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-size: 1rem; font-weight: 600; font-family: inherit;
  transition: all var(--transition-fast); width: 100%;
  min-height: 52px;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-input::placeholder { color: var(--text-tertiary); font-weight: 400; }

.input-with-prefix { position: relative; }
.input-prefix-text {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--primary-light); font-weight: 700; font-size: 0.85rem;
  pointer-events: none; z-index: 1;
}
.input-with-prefix .form-input { padding-left: 2.75rem; }

/* Range Slider */
.range-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px;
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
  outline: none; cursor: pointer; margin: 4px 0;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  cursor: pointer; box-shadow: 0 2px 10px var(--primary-glow);
  transition: all var(--transition-fast); border: 3px solid var(--bg-surface);
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.2); box-shadow: 0 4px 18px rgba(29,158,117,0.45); }
.range-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  cursor: pointer; border: 3px solid var(--bg-surface);
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* Toggle */
.toggle-bar {
  display: flex; background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full); padding: 3px; gap: 2px;
}
.toggle-option {
  flex: 1; padding: 0.4rem 0.875rem; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition-fast); color: var(--text-tertiary);
  text-align: center; user-select: none;
}
.toggle-option.active { background: var(--primary); color: white; box-shadow: 0 2px 10px var(--primary-glow); }

/* Select */
.form-select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 0.8rem 2.5rem 0.8rem 1rem;
  color: var(--text-primary); font-size: 0.95rem; font-family: inherit;
  transition: all var(--transition-fast); width: 100%; min-height: 52px;
  cursor: pointer; appearance: none;
  background-image: var(--select-arrow);
  background-repeat: no-repeat; background-position: right 1rem center;
}
.form-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.form-select option { background: var(--bg-elevated); }

/* ============================================
   RESULT CARDS
   ============================================ */
.result-card {
  background: linear-gradient(135deg, rgba(29,158,117,0.1), rgba(29,158,117,0.04));
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem; position: relative; overflow: hidden;
}
.result-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.result-label {
  font-size: 0.7rem; font-weight: 700; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem;
}
.result-value {
  font-size: 1.9rem; font-weight: 900;
  color: var(--text-primary); line-height: 1.15; letter-spacing: -1px;
}
.result-value.green { color: var(--primary-light); }
.result-value.amber { color: var(--amber); }
.result-sub { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 4px; }

.stat-mini {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 1rem;
}
.stat-mini-label { font-size: 0.7rem; color: var(--text-tertiary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-mini-value { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-top: 4px; }

/* ============================================
   CHARTS
   ============================================ */
.chart-wrap {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.chart-title {
  font-size: 0.8rem; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 8px; margin-bottom: 1.25rem;
}
.chart-title::before {
  content: ''; width: 3px; height: 14px;
  background: var(--primary); border-radius: 2px;
}

/* ============================================
   TABLES
   ============================================ */
.table-wrap {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); overflow: hidden;
}
.table-head-bar {
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.table-head-title {
  font-size: 0.8rem; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 8px;
}
.table-head-title::before { content: ''; width: 3px; height: 14px; background: var(--primary); border-radius: 2px; }

table { width: 100%; border-collapse: collapse; }

thead th {
  background: rgba(29,158,117,0.07);
  padding: 0.7rem 1rem;
  text-align: left; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-default);
}
thead th:not(:first-child) { text-align: right; }

tbody tr { border-bottom: 1px solid var(--table-row-border); transition: background var(--transition-fast); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(29,158,117,0.04); }
tbody tr.current-row { background: rgba(29,158,117,0.08) !important; }

tbody td { padding: 0.65rem 1rem; font-size: 0.82rem; color: var(--text-secondary); }
tbody td:first-child { color: var(--text-tertiary); font-size: 0.78rem; }
tbody td:not(:first-child) { text-align: right; }
tbody td.highlight { color: var(--primary-light); font-weight: 700; }
tbody td.danger { color: #f87171; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 1rem; }
.page-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: transparent; color: var(--text-secondary); font-size: 0.8rem;
  cursor: pointer; transition: all var(--transition-fast);
  display: flex; align-items: center; justify-content: center; font-family: inherit;
}
.page-btn:hover { border-color: var(--border-primary); color: var(--primary-light); background: var(--primary-glow); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0.25rem 0.7rem; border-radius: var(--radius-full);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
}
.badge-success { background: rgba(29,158,117,0.15); color: var(--primary-light); border: 1px solid rgba(29,158,117,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--amber); border: 1px solid rgba(245,158,11,0.3); }
.badge-danger { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.badge-info { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }

/* ============================================
   HERO
   ============================================ */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(29,158,117,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(59,130,246,0.06) 0%, transparent 60%),
    var(--bg-base);
}
[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(29,158,117,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(59,130,246,0.04) 0%, transparent 60%),
    var(--bg-base);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--hero-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-color) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

/* ============================================
   TOOL CARDS
   ============================================ */
.tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 1.5rem; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: all var(--transition); position: relative; overflow: hidden;
}
.tool-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.tool-card:hover { border-color: var(--border-primary); transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.tool-card:hover::after { opacity: 1; }
.tool-card.coming { opacity: 0.6; cursor: default; }
.tool-card.coming:hover { transform: none; box-shadow: none; border-color: var(--border-default); }

.tool-icon {
  width: 50px; height: 50px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.icon-green { background: rgba(29,158,117,0.15); }
.icon-amber { background: rgba(245,158,11,0.15); }
.icon-blue { background: rgba(59,130,246,0.15); }
.icon-purple { background: rgba(139,92,246,0.15); }
.icon-red { background: rgba(239,68,68,0.15); }

.tool-name { font-size: 1rem; font-weight: 700; color: var(--text-primary); }
.tool-desc { font-size: 0.82rem; color: var(--text-tertiary); line-height: 1.55; }
.tool-arrow { margin-top: auto; color: var(--text-tertiary); font-size: 0.8rem; font-weight: 600; display: flex; align-items: center; gap: 4px; transition: all var(--transition-fast); }
.tool-card:hover .tool-arrow { color: var(--primary-light); gap: 8px; }

/* ============================================
   CALCULATOR PAGE
   ============================================ */
.calc-page { padding-top: var(--nav-h); min-height: 100vh; }

.calc-hero {
  position: relative; overflow: hidden;
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}
.calc-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(29,158,117,0.12) 0%, transparent 65%);
}
[data-theme="light"] .calc-hero-bg {
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(29,158,117,0.07) 0%, transparent 65%);
}

.calc-layout {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 1.5rem 5rem;
  display: grid; grid-template-columns: 380px 1fr;
  gap: 1.75rem; align-items: start;
}

.calc-panel {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-xl); padding: 2rem;
  position: sticky; top: calc(var(--nav-h) + 1rem);
}

.calc-results { display: flex; flex-direction: column; gap: 1.5rem; }

.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* ============================================
   SECTION
   ============================================ */
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.35rem 0.875rem;
  background: rgba(29,158,117,0.1); border: 1px solid var(--border-primary);
  border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700;
  color: var(--primary-light); text-transform: uppercase; letter-spacing: 0.1em;
}

/* ============================================
   FAQ
   ============================================ */
.faq-item {
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  overflow: hidden; transition: border-color var(--transition-fast);
}
.faq-item.open { border-color: var(--border-primary); }
.faq-q {
  padding: 1.2rem 1.5rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.9rem; font-weight: 600; color: var(--text-primary); user-select: none;
}
.faq-q:hover { background: var(--hover-overlay); }
.faq-icon {
  width: 26px; height: 26px; border-radius: 50%; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px; color: var(--text-tertiary);
  transition: all var(--transition);
}
.faq-item.open .faq-icon { background: var(--primary-glow); color: var(--primary-light); transform: rotate(45deg); }
.faq-a {
  display: none; padding: 0 1.5rem 1.2rem;
  font-size: 0.875rem; color: var(--text-secondary); line-height: 1.75;
}
.faq-item.open .faq-a { display: block; }

/* ============================================
   TOAST
   ============================================ */
#toast-container {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.toast {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: 0.875rem 1.25rem;
  font-size: 0.875rem; font-weight: 500; color: var(--text-primary);
  box-shadow: var(--shadow-card);
  display: flex; align-items: center; gap: 10px;
  animation: slideRight 0.3s ease; min-width: 240px;
  transition: all 0.3s ease;
}
.toast.success { border-color: rgba(29,158,117,0.4); }
.toast-icon { font-size: 16px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-surface); border-top: 1px solid var(--border-default);
  padding: 3.5rem 1.5rem 2rem;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-tertiary); line-height: 1.65; margin-top: 0.75rem; max-width: 270px; }
.footer-col h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.85rem; color: var(--text-tertiary); text-decoration: none; transition: color var(--transition-fast); }
.footer-col ul li a:hover { color: var(--primary-light); }
.footer-bottom {
  border-top: 1px solid var(--border-subtle); padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--text-tertiary); gap: 1rem; flex-wrap: wrap;
}

/* ============================================
   AD PLACEHOLDERS
   ============================================ */
.ad-slot {
  background: var(--hover-overlay); border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-tertiary); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.ad-banner { height: 90px; }
.ad-rect { height: 250px; }

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress { height: 8px; background: var(--bg-elevated); border-radius: 99px; overflow: hidden; }
.progress-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes gradient-shift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(29,158,117,0.3); }
  70% { box-shadow: 0 0 0 12px rgba(29,158,117,0); }
  100% { box-shadow: 0 0 0 0 rgba(29,158,117,0); }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

.float { animation: float 6s ease-in-out infinite; }
.fade-up { animation: fadeUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ============================================
   UTILITIES
   ============================================ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.divider { height: 1px; background: var(--border-default); margin: 0; }
.hidden { display: none !important; }
.text-green { color: var(--primary-light); }
.text-amber { color: var(--amber); }
.text-red { color: #f87171; }
.text-muted { color: var(--text-secondary); }
.text-dim { color: var(--text-tertiary); }

/* ============================================
   BLOG POST ARTICLE
   ============================================ */
.article-body { font-size: 1rem; line-height: 1.8; }
.article-body p { color: var(--text-secondary); margin-bottom: 1.25rem; }
.article-body h2 { font-size: 1.35rem; font-weight: 800; color: var(--text-primary); margin: 2.5rem 0 0.75rem; letter-spacing: -0.3px; border-top: 1px solid var(--border-subtle); padding-top: 1.5rem; }
.article-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin: 1.5rem 0 0.5rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; color: var(--text-secondary); }
.article-body li { margin-bottom: 0.4rem; }
.article-body strong { color: var(--text-primary); }
.article-body .callout { background: rgba(29,158,117,0.07); border-left: 3px solid var(--primary); padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 1.5rem; }
.article-body .callout p { color: var(--text-primary); margin-bottom: 0; font-weight: 500; }
.article-body .data-table { width: 100%; border-collapse: collapse; margin-bottom: 1.75rem; font-size: 0.88rem; overflow-x: auto; display: block; }
.article-body .data-table th { background: rgba(29,158,117,0.07); padding: 0.65rem 1rem; text-align: left; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); border-bottom: 1px solid var(--border-default); white-space: nowrap; }
.article-body .data-table td { padding: 0.6rem 1rem; color: var(--text-secondary); border-bottom: 1px solid var(--table-row-border); }
.article-body .data-table tr:last-child td { border-bottom: none; }
.article-body .data-table td.em { color: var(--primary-light); font-weight: 700; }
.article-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-tertiary); font-size: 0.85rem; text-decoration: none; transition: color var(--transition-fast); }
.article-back:hover { color: var(--primary-light); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-panel { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .results-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .results-grid { grid-template-columns: 1fr; }
  .result-value { font-size: 1.6rem; }
  #hero-grid-2col { grid-template-columns: 1fr !important; }
  #features-grid-2col { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
  #toast-container { bottom: 1rem; right: 1rem; left: 1rem; }
  .toast { min-width: unset; }
  .ad-banner { height: 60px; }
}
