/* ============================================
   AC Bill Calculator - Main Stylesheet
   Design: Modern Indian Energy Dashboard
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&family=Inter:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #f97316;
  --accent-light: #fff7ed;
  --success: #10b981;
  --success-light: #ecfdf5;
  --warning: #f59e0b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 10px 30px rgba(37,99,235,0.08);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 20px 50px rgba(37,99,235,0.12);
  --shadow-glow: 0 0 40px rgba(37,99,235,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --transition-spring: 0.4s cubic-bezier(0.34,1.56,0.64,1);

  /* Dark mode colors */
  --dark-bg: #0b1120;
  --dark-surface: #111827;
  --dark-surface-2: #1e293b;
  --dark-border: #1e3a5f;
  --dark-text: #f1f5f9;
  --dark-text-secondary: #94a3b8;
}

/* Dark mode */
[data-theme="dark"] {
  --bg: var(--dark-bg);
  --surface: var(--dark-surface);
  --surface-2: var(--dark-surface-2);
  --border: var(--dark-border);
  --text-primary: var(--dark-text);
  --text-secondary: var(--dark-text-secondary);
  --primary-light: #172554;
  --accent-light: #1c1207;
  --success-light: #052e16;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 40px rgba(37,99,235,0.2);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(37,99,235,0.15); }
  50% { box-shadow: 0 0 30px rgba(37,99,235,0.3); }
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.2; color: var(--text-primary); letter-spacing: -0.02em; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(226,232,240,0.6);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all var(--transition);
}
[data-theme="dark"] .header {
  background: rgba(17,24,39,0.85);
  border-bottom-color: rgba(30,58,95,0.5);
}
.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 800;
  color: var(--text-primary);
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.logo span { color: var(--primary); }
.nav-links {
  display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
  padding: 6px 14px; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary); background: var(--primary-light);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.dark-toggle {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 50px; padding: 6px 14px;
  cursor: pointer; font-size: 0.85rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 6px;
  transition: all var(--transition);
}
.dark-toggle:hover { border-color: var(--primary); color: var(--primary); }
.hamburger {
  display: none; background: none; border: none;
  cursor: pointer; padding: 6px; color: var(--text-primary);
}
.hamburger svg { width: 24px; height: 24px; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #172554 70%, #0f172a 100%);
  position: relative; overflow: hidden;
  padding: 90px 24px;
  text-align: center;
}
.hero-bg-image {
  position: absolute; inset: 0;
  background: url('../assets/hero-bg.png') center/cover no-repeat;
  opacity: 0.18;
  z-index: 0;
}
[data-theme="dark"] .hero-bg-image {
  opacity: 0.12;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% 50%, rgba(10,122,255,0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(0,184,122,0.1) 0%, transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: 
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.3);
  color: #93c5fd; border-radius: 50px;
  padding: 8px 20px; font-size: 0.82rem; font-weight: 500;
  margin-bottom: 28px; letter-spacing: 0.5px;
  animation: fadeInUp 0.6s ease both;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; color: #fff;
  margin-bottom: 18px; letter-spacing: -0.03em;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero h1 span {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: #94a3b8; font-size: 1.1rem; animation: fadeInUp 0.6s ease 0.2s both;
  max-width: 560px; margin: 0 auto 32px;
}
.hero-stats {
  display: flex; justify-content: center; gap: 32px;
  flex-wrap: wrap;
}
.hero-stat {
  text-align: center;
}
.hero-stat strong {
  display: block; font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800; color: #fff;
}
.hero-stat span { color: #94a3b8; font-size: 0.85rem; }
.hero-stats { animation: fadeInUp 0.6s ease 0.3s both; }

/* ============================================
   CALCULATOR SECTION
   ============================================ */
.calculator-section {
  padding: 60px 24px;
  max-width: 1200px; margin: 0 auto;
}
.section-title {
  text-align: center; margin-bottom: 48px;
}
.section-title .tag {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; padding: 4px 14px;
  border-radius: 50px; margin-bottom: 12px;
}
.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800;
  margin-bottom: 12px;
}
.section-title p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

.calc-layout {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 32px; align-items: start;
}

/* Calculator Card */
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.calc-card:hover {
  box-shadow: var(--shadow-lg);
}
.calc-header {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  padding: 24px 28px;
  display: flex; align-items: center; gap: 14px;
  position: relative;
  overflow: hidden;
}
.calc-header::after {
  content: '';
  position: absolute; right: -20px; top: -20px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.calc-header h3 {
  color: #fff; font-size: 1.1rem; font-weight: 700;
}
.calc-header p { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.calc-header-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.calc-body { padding: 28px; }

/* Form Elements */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 8px;
}
.form-group label span { color: var(--primary); }
.input-wrap { position: relative; }
.input-wrap .unit {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 0.8rem; color: var(--text-muted); pointer-events: none;
  background: var(--surface-2); padding: 2px 8px; border-radius: 4px;
}
select, input[type="number"], input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text-primary);
  transition: all var(--transition);
  appearance: none;
}
select:focus, input[type="number"]:focus, input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,122,255,0.1);
  background: var(--surface);
}
select { 
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5a7a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Segmented control for AC Type */
.seg-control {
  display: flex; gap: 8px;
}
.seg-btn {
  flex: 1; padding: 10px 8px;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.seg-btn:hover { border-color: var(--primary); color: var(--primary); }
.seg-btn.active {
  background: var(--primary); border-color: var(--primary);
  color: #fff;
}

/* Star rating */
.star-select { display: flex; gap: 8px; }
.star-btn {
  flex: 1; padding: 8px 4px;
  background: var(--surface-2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 500;
  color: var(--text-secondary); cursor: pointer;
  transition: all var(--transition); text-align: center;
}
.star-btn:hover { border-color: var(--warning); color: var(--warning); }
.star-btn.active {
  background: var(--warning); border-color: var(--warning); color: #fff;
}

/* Calculate Button */
.calc-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 16px 24px; font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: all var(--transition-spring);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.calc-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.calc-btn:hover::before { opacity: 1; }
.calc-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(37,99,235,0.4);
}
.calc-btn:active { transform: translateY(0); }
.reset-btn {
  width: 100%; background: none; border: 1.5px solid var(--border);
  color: var(--text-secondary); border-radius: var(--radius-sm);
  padding: 11px 24px; font-family: var(--font-body);
  font-size: 0.9rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition); margin-top: 8px;
}
.reset-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================
   RESULTS PANEL
   ============================================ */
.results-panel {
  position: sticky; top: 80px;
}
.results-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 20px;
}
.results-header {
  background: linear-gradient(135deg, #0d1b2e, #0a2a5e);
  padding: 20px 24px;
}
.results-header h3 { color: #fff; font-size: 1rem; }
.results-header p { color: rgba(255,255,255,0.6); font-size: 0.8rem; }
.results-body { padding: 24px; }
.results-placeholder {
  text-align: center; padding: 40px 20px;
}
.results-placeholder .placeholder-icon { font-size: 3rem; margin-bottom: 12px; }
.results-placeholder p { color: var(--text-muted); font-size: 0.9rem; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result-item {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px;
  text-align: center; transition: all var(--transition);
}
.result-item:hover { border-color: var(--primary); }
.result-item.highlight {
  background: var(--primary-light); border-color: var(--primary);
  grid-column: 1 / -1;
}
.result-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.result-value {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  color: var(--text-primary);
}
.result-item.highlight .result-value { font-size: 1.8rem; color: var(--primary); }
.result-unit { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }

/* Savings bar */
.savings-bar { margin-top: 20px; }
.savings-bar-header {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; color: var(--text-secondary);
  margin-bottom: 8px;
}
.bar-track {
  height: 8px; background: var(--border);
  border-radius: 4px; overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--success), #00d68f);
  width: 0%; transition: width 1s cubic-bezier(0.4,0,0.2,1);
}

/* Tips card */
.tips-card {
  background: var(--success-light); border: 1px solid #b8f0dc;
  border-radius: var(--radius); padding: 20px;
  margin-top: 20px;
}
[data-theme="dark"] .tips-card { border-color: #004030; }
.tips-card h4 {
  color: var(--success); font-size: 0.9rem; margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.tips-card ul { padding: 0; }
.tips-card li {
  font-size: 0.84rem; color: var(--text-secondary);
  padding: 4px 0 4px 20px; position: relative;
}
.tips-card li::before {
  content: '→'; color: var(--success);
  position: absolute; left: 0;
}

/* ============================================
   INFO SECTION
   ============================================ */
.info-section {
  background: var(--surface);
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}
.info-container { max-width: 1200px; margin: 0 auto; }
.info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 48px; }
.info-card {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--transition-spring);
}
.info-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.info-icon {
  width: 52px; height: 52px;
  background: var(--primary-light); color: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.info-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.info-card p { font-size: 0.88rem; color: var(--text-secondary); }

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-section {
  padding: 80px 24px;
  max-width: 1200px; margin: 0 auto;
}
.comparison-table-wrap { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
}
thead tr { background: linear-gradient(135deg, #0d1b2e, #0a2a5e); }
thead th { color: #fff; padding: 16px 20px; text-align: left; font-weight: 600; }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface-2); }
td { padding: 14px 20px; color: var(--text-secondary); }
td:first-child { color: var(--text-primary); font-weight: 500; }
.badge-yes { color: var(--success); font-weight: 600; }
.badge-no { color: var(--text-muted); }

/* ============================================
   AFFILIATE PRODUCTS
   ============================================ */
.affiliate-section {
  background: var(--surface);
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}
.affiliate-container { max-width: 1200px; margin: 0 auto; }
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 40px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all var(--transition-spring);
  display: flex; flex-direction: column;
}
.product-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-6px);
}
.product-img {
  background: var(--surface-2);
  aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; padding: 3px 10px;
  border-radius: 50px; margin-bottom: 10px;
}
.product-tag.split { background: var(--primary-light); color: var(--primary); }
.product-tag.window { background: var(--accent-light); color: var(--accent); }
.product-tag.inverter { background: var(--success-light); color: var(--success); }
.product-name { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.product-features { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 16px; flex: 1; }
.product-features li { padding: 3px 0 3px 16px; position: relative; }
.product-features li::before { content: '✓'; position: absolute; left: 0; color: var(--success); }
.product-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; color: var(--text-primary); margin-bottom: 12px; }
.product-price span { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); text-decoration: line-through; }
.stars { color: var(--warning); font-size: 0.85rem; margin-bottom: 12px; }
.buy-btn {
  display: block; text-align: center;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff; border-radius: var(--radius-sm);
  padding: 12px 20px; font-weight: 600; font-size: 0.9rem;
  transition: all var(--transition-spring);
}
.buy-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(249,115,22,0.4); }
.price-btn {
  display: block; text-align: center;
  background: none; border: 1.5px solid var(--border);
  color: var(--text-secondary); border-radius: var(--radius-sm);
  padding: 9px 20px; font-weight: 500; font-size: 0.85rem;
  margin-top: 8px; transition: all var(--transition);
}
.price-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ============================================
   CONTENT / SEO SECTION
   ============================================ */
.content-section {
  padding: 80px 24px;
  max-width: 900px; margin: 0 auto;
}
.content-section h2 { font-size: 1.8rem; margin-bottom: 20px; }
.content-section h3 { font-size: 1.25rem; margin: 28px 0 12px; color: var(--primary); }
.content-section p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.75; }
.content-section ul { margin: 0 0 16px 0; }
.content-section ul li {
  color: var(--text-secondary); padding: 5px 0 5px 22px;
  position: relative; line-height: 1.6; font-size: 0.95rem;
}
.content-section ul li::before {
  content: '•'; color: var(--primary);
  position: absolute; left: 0; font-size: 1.2rem;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  background: var(--surface); padding: 80px 24px;
  border-top: 1px solid var(--border);
}
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-list { margin-top: 40px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
  transition: all var(--transition);
}
.faq-item.open { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; background: none; border: none;
  padding: 20px 24px; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  cursor: pointer; font-family: var(--font-body); font-size: 0.95rem;
  font-weight: 600; color: var(--text-primary);
  transition: all var(--transition);
}
.faq-item.open .faq-q { color: var(--primary); }
.faq-chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--text-muted); transition: transform var(--transition);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-a {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.faq-item.open .faq-a { max-height: 500px; padding: 0 24px 20px; }
.faq-a p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-section {
  padding: 80px 24px;
  max-width: 1200px; margin: 0 auto;
}
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 40px; }
.blog-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition-spring);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.blog-thumb {
  aspect-ratio: 16/9; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; position: relative; overflow: hidden;
}
.blog-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(10,122,255,0.1));
}
.blog-body { padding: 20px; }
.blog-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px;
}
.blog-cat {
  background: var(--primary-light); color: var(--primary);
  padding: 2px 10px; border-radius: 50px; font-weight: 600;
}
.blog-card h3 { font-size: 1rem; margin-bottom: 8px; 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: 0.84rem; color: var(--text-secondary); }
.read-more {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--primary); font-size: 0.85rem; font-weight: 600;
  margin-top: 12px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #080f1e; color: #8aaccc;
  padding: 60px 24px 24px;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul li a {
  color: #8aaccc; font-size: 0.85rem;
  display: block; padding: 5px 0;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: #4da6ff; }
.footer-bottom {
  max-width: 1200px; margin: 24px auto 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 0.82rem;
}
.footer-bottom a { color: #8aaccc; }
.footer-bottom a:hover { color: #4da6ff; }

/* ============================================
   ABOUT / STATIC PAGES
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, #0d1b2e, #0a2a5e);
  padding: 60px 24px; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero p { color: #8aaccc; margin-top: 12px; }
.page-content {
  max-width: 860px; margin: 60px auto; padding: 0 24px;
}
.page-content h2 { font-size: 1.5rem; margin: 36px 0 14px; }
.page-content h3 { font-size: 1.15rem; margin: 24px 0 10px; color: var(--primary); }
.page-content p { color: var(--text-secondary); margin-bottom: 14px; line-height: 1.75; }
.page-content ul li {
  color: var(--text-secondary); padding: 5px 0 5px 20px;
  position: relative;
}
.page-content ul li::before { content: '→'; position: absolute; left: 0; color: var(--primary); }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.contact-form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow-md);
}
.contact-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.contact-icon {
  width: 44px; height: 44px; background: var(--primary-light);
  color: var(--primary); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
textarea { resize: vertical; min-height: 130px; }
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 14px; font-family: var(--font-display);
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: all var(--transition);
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,122,255,0.3);
}

/* ============================================
   BLOG PAGE
   ============================================ */
.blog-hero-section {
  background: linear-gradient(135deg, #0d1b2e, #0a2a5e);
  padding: 60px 24px; text-align: center;
}
.blog-hero-section h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.blog-hero-section p { color: #8aaccc; margin-top: 12px; }
.blog-page { max-width: 1200px; margin: 60px auto; padding: 0 24px; }
.blog-page-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 40px;
}
.blog-main-grid { display: grid; gap: 24px; }
.blog-sidebar { }
.sidebar-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
}
.sidebar-card h3 { font-size: 1rem; margin-bottom: 16px; }
.sidebar-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-secondary); border-radius: 50px;
  padding: 5px 14px; font-size: 0.8rem;
  transition: all var(--transition); cursor: pointer;
}
.tag-pill:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* ============================================
   TOAST / NOTIFICATION
   ============================================ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: var(--success); color: #fff;
  padding: 14px 24px; border-radius: var(--radius);
  font-weight: 500; font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}
@keyframes slideIn {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; pointer-events: none; }
}

/* ============================================
   UTILITIES
   ============================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.chip {
  display: inline-block; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text-secondary);
  padding: 4px 12px; border-radius: 50px; font-size: 0.8rem;
}
.alert {
  padding: 16px 20px; border-radius: var(--radius-sm);
  font-size: 0.9rem; margin: 16px 0;
}
.alert-info { background: var(--primary-light); color: var(--primary); border-left: 3px solid var(--primary); }
.alert-success { background: var(--success-light); color: var(--success); border-left: 3px solid var(--success); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .calc-layout { grid-template-columns: 1fr; }
  .results-panel { position: static; }
  .info-grid { grid-template-columns: repeat(2,1fr); }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .blog-page-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 16px 24px; gap: 4px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .dark-toggle span { display: none; }
  .hero { padding: 60px 24px; }
  .hero-stats { gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .comparison-section { padding: 40px 24px; }
}
@media (max-width: 480px) {
  .seg-control { flex-direction: column; }
  .star-select { flex-wrap: wrap; }
  .star-btn { flex: 1 0 auto; min-width: calc(33% - 4px); }
  .results-grid { grid-template-columns: 1fr; }
  .result-item.highlight { grid-column: auto; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .header, .footer, .affiliate-section, .blog-section { display: none; }
  .calc-layout { grid-template-columns: 1fr; }
}
