/* ==========================================================================
   Solar PV & Battery Calculator - Modern Responsive Stylesheet
   Designed for clarity, performance, and easy future maintenance.
   ========================================================================== */

:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  /* Light Theme (Default) */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-input: #ffffff;
  --border-color: #e2e8f0;
  --border-color-focus: #f59e0b;
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  
  --primary-solar: #f59e0b;
  --primary-solar-hover: #d97706;
  --primary-solar-subtle: #fef3c7;
  
  --accent-green: #10b981;
  --accent-green-subtle: #d1fae5;
  --accent-blue: #0284c7;
  --accent-blue-subtle: #e0f2fe;
  --accent-red: #ef4444;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

[data-theme="dark"] {
  --bg-body: #0b0f19;
  --bg-card: #131c2e;
  --bg-card-subtle: #1e293b;
  --bg-input: #0f172a;
  --border-color: #1e293b;
  --border-color-focus: #f59e0b;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --primary-solar-subtle: rgba(245, 158, 11, 0.15);
  --accent-green-subtle: rgba(16, 185, 129, 0.15);
  --accent-blue-subtle: rgba(2, 132, 199, 0.15);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.45);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Layout */
.app-header {
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  padding: 1.5rem 1.5rem 0.5rem;
  position: relative;
  width: 100%;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 38px;
  height: 38px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon img.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(245, 158, 11, 0.4));
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.currency-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.select-input {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition-fast);
}

.select-input:focus {
  border-color: var(--border-color-focus);
}

.btn-icon {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background-color: var(--border-color);
  color: var(--primary-solar);
}

/* Preset Bar */
.preset-bar {
  background: transparent;
  border-bottom: none;
  padding: 0.5rem 1.5rem 0.5rem;
}

.preset-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.preset-container::-webkit-scrollbar {
  display: none;
}

.preset-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  margin-right: 0.25rem;
}

.preset-chip {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-chip:hover {
  border-color: var(--primary-solar);
  color: var(--primary-solar);
}

.preset-chip.active {
  background-color: var(--primary-solar);
  border-color: var(--primary-solar);
  color: #ffffff;
  font-weight: 600;
}

/* Main Content Grid */
.main-wrapper {
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
  width: 100%;
  flex: 1;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .calculator-grid {
    grid-template-columns: 460px 1fr;
    align-items: start;
  }
}

/* Cards & Sections */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}

.card:last-child {
  margin-bottom: 0;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-title-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-solar);
  background-color: var(--primary-solar-subtle);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-solar {
  background-color: var(--primary-solar-subtle);
  color: var(--primary-solar-hover);
}

.badge-green {
  background-color: var(--accent-green-subtle);
  color: var(--accent-green);
}

.badge-blue {
  background-color: var(--accent-blue-subtle);
  color: var(--accent-blue);
}

/* Form Controls */
.form-group {
  margin-bottom: 1.15rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.label-help {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.input-slider-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.range-slider {
  flex: 1;
  accent-color: var(--primary-solar);
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card-subtle);
  outline: none;
  cursor: pointer;
}

.number-input-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.input-prefix, .input-suffix {
  position: absolute;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
}

.input-prefix {
  left: 0.75rem;
}

.input-suffix {
  right: 0.75rem;
}

.form-input {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.925rem;
  font-weight: 500;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--border-color-focus);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-input.has-prefix {
  padding-left: 2rem;
}

.form-input.has-suffix {
  padding-right: 3rem;
}

.form-input.number-compact {
  width: 110px;
  text-align: right;
  padding-right: 2.5rem;
}

/* Radio Card Grid for System Types */
.radio-tile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

.radio-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  background-color: var(--bg-card-subtle);
  transition: all var(--transition-fast);
}

.radio-tile:hover {
  border-color: var(--primary-solar);
}

.radio-tile input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.radio-tile.selected {
  border-color: var(--primary-solar);
  background-color: var(--primary-solar-subtle);
}

.radio-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.radio-tile-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.radio-tile-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Collapsible / Accordion */
.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text-main);
  padding: 0.75rem 0;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.accordion-chevron {
  transition: transform var(--transition-normal);
}

.accordion-toggle.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

.accordion-content.open {
  display: block;
}

/* Two-column subgrid */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Results Column Dashboard */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Top KPI Metric Cards Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}

.kpi-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--border-color);
}

.kpi-card.kpi-solar::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.kpi-card.kpi-green::before {
  background: linear-gradient(90deg, #10b981, #06b6d4);
}

.kpi-card.kpi-blue::before {
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.kpi-icon {
  color: var(--text-muted);
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.kpi-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.kpi-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Chart Container & Tabs */
.visualization-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.viz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.viz-tabs {
  display: flex;
  gap: 0.4rem;
  background-color: var(--bg-card-subtle);
  padding: 0.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.viz-tab-btn {
  background: none;
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.viz-tab-btn.active {
  background-color: var(--bg-card);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.chart-wrapper {
  position: relative;
  height: 320px;
  width: 100%;
}

.chart-tab-pane {
  display: none;
  height: 100%;
}

.chart-tab-pane.active {
  display: block;
}

/* Specifications & Breakdown Tables */
.spec-table-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.spec-table tr {
  border-bottom: 1px solid var(--border-color);
}

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

.spec-table td {
  padding: 0.65rem 0.5rem;
}

.spec-table td.col-label {
  color: var(--text-muted);
  font-weight: 500;
  width: 55%;
}

.spec-table td.col-value {
  color: var(--text-main);
  font-weight: 700;
  text-align: right;
}

.spec-table tr.highlight-row {
  background-color: var(--primary-solar-subtle);
}

.spec-table tr.highlight-row td {
  color: var(--primary-solar-hover);
  font-weight: 700;
}

/* Environmental Impact Banner */
.eco-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.12));
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.eco-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.eco-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-green);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.eco-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.eco-metric {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Action Buttons Bar */
.actions-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-solar);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background-color: var(--primary-solar-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--border-color);
}

/* Footer */
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  padding: 1.25rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Printable Report / Solar Proposal Styling */
@media print {
  body {
    background-color: #ffffff !important;
    color: #0f172a !important;
    font-size: 10pt;
  }

  .app-header,
  .preset-bar,
  .calculator-inputs,
  .viz-tabs,
  .actions-bar,
  .btn-icon,
  .app-footer,
  .modal-overlay,
  .ai-fab-btn,
  .ai-drawer,
  .landing-ambient-bg {
    display: none !important;
  }

  .main-wrapper {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .calculator-grid {
    display: block !important;
  }

  .results-container {
    display: block !important;
  }

  .card, .kpi-card, .visualization-card, .spec-table-card, .eco-banner {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    background-color: #ffffff !important;
    page-break-inside: avoid;
    margin-bottom: 1rem !important;
  }

  .print-proposal-header {
    display: block !important;
    border-bottom: 2px solid #f59e0b;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .print-proposal-header .print-proposal-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0f172a;
  }

  .calc-intro,
  .calc-seo-content {
    display: none !important;
  }

  .chart-wrapper {
    height: 250px !important;
  }
}

.print-proposal-header {
  display: none;
}

/* ─── Backend & pvlib Physics UI Components ──────────────────────────────── */
.pvlib-indicator-dot-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.pvlib-indicator-dot-wrap:hover {
  transform: scale(1.08);
}

.pvlib-header-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
  transition: all 0.3s ease;
}

.pvlib-indicator-dot-wrap.online .pvlib-header-dot {
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.75);
}

.pvlib-indicator-dot-wrap.offline .pvlib-header-dot {
  background: #94a3b8;
  box-shadow: none;
}

.pvlib-live-panel {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.2s ease;
}

.pvlib-live-panel:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.pvlib-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.pvlib-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pvlib-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

.pvlib-status-dot.online {
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.pvlib-status-text {
  font-size: 0.785rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-pvlib-action {
  background: var(--primary-solar);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.75rem;
  font-size: 0.775rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pvlib-action:hover {
  background: #d97706;
  transform: translateY(-1px);
}

.btn-pvlib-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.pvlib-results-drawer {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.pvlib-mini-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pvlib-stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.pvlib-stat-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

.pvlib-apply-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.pvlib-model-info {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ─── Blackout Runtime & Appliance Simulation Card ───────────────────────── */
.blackout-runtime-card {
  margin-top: 1rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.blackout-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.blackout-header-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.custom-load-entry-group {
  margin-bottom: 0.75rem;
}

.custom-load-input-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.custom-load-result-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 130px;
}

.custom-load-result-pill .pill-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.custom-load-result-pill .pill-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-green);
  line-height: 1.2;
}

.quick-watt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.watt-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.watt-chip:hover {
  border-color: var(--primary-solar);
  color: var(--text-main);
}

.watt-chip.active {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--primary-solar);
  color: var(--primary-solar);
}

/* ==========================================================================
   Wire Sizing & Ampacity Modal (Calculator Synergy)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.modal-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary-solar);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.modal-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Calculator Synergy Banner */
.wire-synergy-banner {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.wire-synergy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wire-synergy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.wire-synergy-circuit-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.wire-synergy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.wire-synergy-metric {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.wire-synergy-metric.highlight {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.06);
}

.wire-metric-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.wire-metric-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.wire-synergy-metric.highlight .wire-metric-value {
  color: var(--primary-solar);
}

/* Circuit Selector Tabs */
.wire-circuit-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--bg-card-subtle);
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.wire-circuit-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 0.45rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.wire-circuit-tab:hover {
  color: var(--text-main);
}

.wire-circuit-tab.active {
  background: var(--bg-card);
  color: var(--primary-solar);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

/* Wire Reference Table */
.wire-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.wire-reference-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.wire-reference-table th {
  background: var(--bg-card-subtle);
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.wire-reference-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  white-space: nowrap;
}

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

.wire-reference-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.wire-reference-table tr.wire-row-recommended td {
  background: rgba(245, 158, 11, 0.08);
  font-weight: 600;
  color: var(--text-main);
}

.wire-reference-table tr.wire-row-recommended {
  box-shadow: inset 3px 0 0 var(--primary-solar);
}

.wire-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 700;
}

.wire-status-badge.recommended {
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.wire-status-badge.standard {
  background: var(--bg-card-subtle);
  color: var(--text-dim);
}

/* Modal Footer */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wire-formula-note {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.wire-formula-note code {
  background: var(--bg-card-subtle);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  color: var(--primary-solar);
}

/* Inline Trigger Pill */
.wire-pill-btn {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--primary-solar);
  border-radius: var(--radius-full);
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: 0.45rem;
  vertical-align: middle;
  transition: all 0.15s ease;
}

.wire-pill-btn:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--primary-solar);
}

/* ==========================================================================
   Social Share & Viral Growth Card Modal
   ========================================================================== */
.share-preview-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.share-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.share-preview-badge {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-solar);
}

.share-preview-loc {
  color: var(--text-muted);
  font-weight: 500;
}

.share-preview-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.share-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
}

.share-stat.highlight {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

.share-stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.share-stat.highlight .share-stat-val {
  color: var(--accent-green);
}

.share-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.share-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 520px) {
  .share-preview-stats {
    grid-template-columns: 1fr;
  }
  .share-action-buttons {
    grid-template-columns: 1fr;
  }
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  font-family: inherit;
}

.share-btn-fb {
  background: #1877F2;
  color: #ffffff;
}

.share-btn-fb:hover {
  background: #166fe5;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
  transform: translateY(-1px);
}

.share-btn-download {
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border-color: var(--border-color);
}

.share-btn-download:hover {
  background: var(--bg-card);
  border-color: var(--primary-solar);
  color: var(--primary-solar);
  transform: translateY(-1px);
}

.share-link-section {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border-color);
}

.share-input-group {
  display: flex;
  gap: 0.5rem;
}

.share-input-group .form-input {
  font-size: 0.8rem;
  background: var(--bg-card-subtle);
  color: var(--text-muted);
}

/* ==========================================================================
   Floating AI Solar Engineering Assistant & Suggestion Drawer
   ========================================================================== */
.ai-fab-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.15rem;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #0b0f19;
  border: none;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.38), 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.ai-fab-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.5);
}

.ai-fab-btn:active {
  transform: translateY(0) scale(0.98);
}

.ai-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-fab-pulse {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 9999px;
  border: 2px solid rgba(245, 158, 11, 0.6);
  animation: fabPulse 2.8s infinite;
  pointer-events: none;
}

@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.15, 1.35); opacity: 0; }
  100% { transform: scale(1.15, 1.35); opacity: 0; }
}

/* Assistant Drawer / Window */
.ai-assistant-drawer {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 400px;
  max-width: calc(100vw - 2rem);
  height: 560px;
  max-height: calc(100vh - 6.5rem);
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  transform: translateY(25px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.ai-assistant-drawer.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Drawer Header */
.ai-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background-color: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-color);
}

.ai-drawer-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #0b0f19;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-drawer-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.ai-drawer-status {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ai-drawer-status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-green);
  display: inline-block;
  box-shadow: 0 0 6px var(--accent-green);
}

.ai-drawer-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.35rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.ai-drawer-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-input);
}

/* Tabs */
.ai-drawer-tabs {
  display: flex;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 0.25rem 0.5rem;
  gap: 0.35rem;
}

.ai-drawer-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 0.45rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.ai-drawer-tab:hover {
  color: var(--text-main);
  background-color: var(--bg-card-subtle);
}

.ai-drawer-tab.active {
  color: var(--primary-solar);
  background-color: var(--primary-solar-subtle);
}

/* Tab Panes */
.ai-tab-pane {
  display: none;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.ai-tab-pane.active {
  display: flex;
}

/* System Context Pill */
.ai-system-pill {
  padding: 0.45rem 0.85rem;
  background-color: var(--bg-card-subtle);
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-system-pill .pill-title {
  color: var(--primary-solar);
  font-weight: 700;
  flex-shrink: 0;
}

.ai-system-pill .pill-detail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Chat Messages Stream */
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ai-message {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.ai-message.ai-user {
  align-self: flex-end;
}

.ai-message.ai-bot {
  align-self: flex-start;
}

.ai-msg-bubble {
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.825rem;
  line-height: 1.45;
  word-break: break-word;
}

.ai-user .ai-msg-bubble {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b0f19;
  font-weight: 500;
  border-bottom-right-radius: 2px;
}

.ai-bot .ai-msg-bubble {
  background-color: var(--bg-card-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 2px;
}

.ai-bot .ai-msg-bubble strong {
  color: var(--primary-solar);
}

.ai-bot .ai-msg-bubble ul, .ai-bot .ai-msg-bubble ol {
  margin: 0.35rem 0 0.35rem 1rem;
  padding: 0;
}

.ai-bot .ai-msg-bubble li {
  margin-bottom: 0.2rem;
}

/* Quick Chips */
.ai-quick-chips {
  display: flex;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
}

.ai-quick-chips::-webkit-scrollbar {
  display: none;
}

.ai-chip {
  flex-shrink: 0;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ai-chip:hover {
  color: var(--primary-solar);
  border-color: var(--primary-solar);
  background-color: var(--primary-solar-subtle);
}

/* Chat Input Bar */
.ai-chat-input-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  background-color: var(--bg-card-subtle);
  border-top: 1px solid var(--border-color);
}

.ai-chat-input {
  flex: 1;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-full);
  padding: 0.5rem 0.85rem;
  font-size: 0.825rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.ai-chat-input:focus {
  border-color: var(--border-color-focus);
}

.ai-send-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-solar);
  color: #0b0f19;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.ai-send-btn:hover {
  transform: scale(1.05);
}

.ai-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Suggestion / Wishlist Form Pane */
#aiPaneFeedback {
  padding: 0.95rem;
  overflow-y: auto;
}

.ai-feedback-intro {
  margin-bottom: 0.75rem;
}

.ai-feedback-intro h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.ai-feedback-intro p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* AI Thinking State Animation */
.ai-thinking-bubble {
  padding: 0.55rem 0.85rem;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 2px;
  display: inline-flex;
  align-items: center;
}

.ai-thinking-content {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ai-thinking-sparkle {
  font-size: 0.85rem;
  animation: aiSparkleRotate 2.2s linear infinite;
  display: inline-block;
  transform-origin: center;
}

@keyframes aiSparkleRotate {
  0% { transform: scale(0.9) rotate(0deg); opacity: 0.7; }
  50% { transform: scale(1.15) rotate(180deg); opacity: 1; color: var(--primary-solar); }
  100% { transform: scale(0.9) rotate(360deg); opacity: 0.7; }
}

.ai-thinking-text {
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.ai-thinking-dots {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  margin-left: 2px;
}

.ai-thinking-dots .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--primary-solar);
  display: inline-block;
  animation: aiBounce 1.4s infinite ease-in-out both;
}

.ai-thinking-dots .dot:nth-child(1) {
  animation-delay: -0.32s;
}

.ai-thinking-dots .dot:nth-child(2) {
  animation-delay: -0.16s;
}

.ai-thinking-dots .dot:nth-child(3) {
  animation-delay: 0s;
}

@keyframes aiBounce {
  0%, 80%, 100% {
    transform: scale(0.4);
    opacity: 0.3;
  }
  40% {
    transform: scale(1.25);
    opacity: 1;
  }
}




/* ─── SEO: Calculator Intro (visible H1) & Guide Content ─────────────────── */
.calc-intro {
  max-width: 1400px;
  margin: 0.75rem auto 0.25rem;
  padding: 0 1.5rem;
  width: 100%;
}

.calc-intro h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
  margin: 0 0 0.4rem;
}

.calc-intro p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  max-width: 900px;
}

.calc-seo-content {
  max-width: 1400px;
  margin: 1rem auto 2rem;
  padding: 0 1.5rem;
  width: 100%;
}

.calc-seo-content .seo-inner {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem;
}

.calc-seo-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.75rem;
}

.calc-seo-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 1.5rem 0 0.5rem;
}

.calc-seo-content p,
.calc-seo-content li {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.calc-seo-content ol,
.calc-seo-content ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.calc-seo-content code {
  background: var(--bg-card-subtle);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.88rem;
}

.calc-seo-content a {
  color: var(--primary-solar);
}

/* Screen reader only utility (accessible & SEO anchor support) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
