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

:root {
  --green: #10b981;
  --green-dark: #059669;
  --green-light: #d1fae5;
  --green-xlight: #f0fdf4;
  --bg: #0f172a;
  --card-bg: #ffffff;
  --sidebar-bg: #f8fafc;
  --nav-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --input-bg: #f8fafc;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.18);
  --font: 'Inter', -apple-system, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ─── TOP NAV ─── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
.topnav-inner {
  width: 100%;
  max-width: 1300px;
  display: flex;
  align-items: center;
  gap: 0;
}
.topnav-logo {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-right: 40px;
  text-decoration: none;
  flex-shrink: 0;
}
.topnav-logo span { color: var(--green); }
.topnav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.topnav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.topnav-links a:hover { background: var(--border-light); color: var(--text); }
.topnav-links a.active { background: var(--green-light); color: var(--green-dark); font-weight: 600; }
.topnav-links a.help { margin-left: auto; color: var(--green-dark); font-weight: 600; }
.topnav-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  flex-shrink: 0;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-muted);
  transition: all 0.15s;
}
.icon-btn:hover { background: var(--border-light); }

/* ─── APP CONTAINER ─── */
.app-outer {
  padding: 32px 24px 64px;
  min-height: calc(100vh - 56px);
}
.app-wrap {
  max-width: 1060px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  min-height: 580px;
  overflow: hidden;
}

/* ─── SIDEBAR ─── */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 28px 16px;
}
.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  padding: 0 8px;
  margin-bottom: 6px;
}
.sidebar-tarief {
  font-size: 13px;
  color: var(--text-muted);
  padding: 0 8px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.sidebar-tarief strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--green-dark);
  display: block;
  margin-top: 2px;
}
.step-nav { display: flex; flex-direction: column; gap: 4px; }
.step-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.step-nav-item:hover { background: var(--border-light); color: var(--text); }
.step-nav-item.active {
  background: var(--green);
  color: white;
  font-weight: 600;
}
.step-nav-item.done { color: var(--green-dark); }
.step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.step-nav-item.active .step-dot {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
}
.step-nav-item.done .step-dot {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green-dark);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.btn-save {
  width: 100%;
  height: 40px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-save:hover { background: var(--green-dark); }
.btn-save:active { transform: scale(0.98); }

/* ─── MAIN CONTENT ─── */
.main-content {
  flex: 1;
  padding: 40px 44px;
  overflow: hidden;
}

/* ─── STEPS ─── */
.step-view { display: none; }
.step-view.active { display: block; }

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 14px;
}
.step-view h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--text);
}
.step-view .subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
  max-width: 480px;
}

/* ─── FORM ELEMENTS ─── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.field label .hint {
  font-weight: 400;
  color: var(--text-light);
  margin-left: 4px;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-prefix { position: absolute; left: 13px; font-size: 14px; color: var(--text-muted); pointer-events: none; }
.input-suffix-label { position: absolute; right: 13px; font-size: 12px; color: var(--text-muted); pointer-events: none; }

input[type="number"], input[type="text"], select {
  height: 48px;
  width: 100%;
  padding: 0 14px;
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  transition: all 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.has-prefix input { padding-left: 28px; }
.has-suffix input { padding-right: 36px; }
input:focus, select:focus {
  border-color: var(--green);
  background: white;
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
  cursor: pointer;
}

/* Radio chips */
.chip-group { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { position: relative; }
.chip input[type="radio"] { position: absolute; opacity: 0; width: 0; }
.chip-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 9999px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  background: white;
  transition: all 0.15s;
  user-select: none;
}
.chip-label:hover { border-color: var(--green); color: var(--green-dark); }
.chip input:checked + .chip-label {
  background: var(--green);
  border-color: var(--green);
  color: white;
  font-weight: 600;
}
.chip-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}
.chip input:checked + .chip-label .chip-check {
  display: flex;
  background: rgba(255,255,255,0.3);
  border-color: rgba(255,255,255,0.7);
}

/* Form sections */
.form-section {
  margin-bottom: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.form-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--border-light);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.form-section-header .icon {
  width: 26px;
  height: 26px;
  background: var(--green-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.form-section-body {
  padding: 20px;
  display: grid;
  gap: 16px;
}
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Question groups */
.question-group { margin-bottom: 22px; }
.question-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

/* ─── NAV BUTTONS ─── */
.step-nav-btns {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  height: 44px;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); }
.btn-outline {
  background: white;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--border-light); color: var(--text); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 0 12px;
}
.btn-ghost:hover { color: var(--text); background: var(--border-light); }

/* ─── STEP 2: cost panel ─── */
.step2-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: start;
}
.cost-panel { position: sticky; top: 20px; }
.cost-total-card {
  background: linear-gradient(135deg, #059669, #10b981);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: white;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(16,185,129,0.3);
}
.cost-total-card .label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: 6px;
}
.cost-total-card .amount {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.cost-total-card .amount sup {
  font-size: 20px;
  vertical-align: super;
  font-weight: 700;
}
.cost-total-card .note {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 8px;
}
.cost-breakdown-list {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cost-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-light);
}
.cost-breakdown-item:last-child { border-bottom: none; }
.cost-breakdown-item .cat { color: var(--text-muted); }
.cost-breakdown-item .val { font-weight: 600; }
.wist-je-dat {
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}
.wist-je-dat strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  margin-bottom: 4px;
}

/* ─── STEP 3: two columns ─── */
.step3-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.step3-col-header {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.computed-field {
  background: var(--green-xlight);
  border: 1.5px solid var(--green-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.computed-field .cf-label { font-size: 13px; color: var(--text-muted); }
.computed-field .cf-value { font-size: 18px; font-weight: 700; color: var(--green-dark); }

.info-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12.5px;
  color: #92400e;
  line-height: 1.5;
  margin-top: 8px;
}
.warn-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12.5px;
  color: #c2410c;
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

/* ─── STEP 1 bottom ─── */
.step1-bottom {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  margin-top: 24px;
}
.wist-img-card {
  border-radius: var(--radius);
  overflow: hidden;
  height: 130px;
  background: linear-gradient(135deg, #1e3a5f, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
}
.wist-info-card {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
  padding: 18px;
}
.wist-info-card .wist-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4338ca;
  margin-bottom: 8px;
}
.wist-info-card p {
  font-size: 13px;
  color: #3730a3;
  line-height: 1.55;
}

/* ─── RESULTS ─── */
.results-tariffs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.tariff-card {
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  position: relative;
  overflow: hidden;
}
.tariff-card.recommended {
  background: linear-gradient(140deg, #059669 0%, #10b981 60%, #34d399 100%);
  color: white;
  box-shadow: 0 12px 32px rgba(16,185,129,0.35);
}
.tariff-card.minimum {
  background: white;
  border: 2px solid var(--border);
  color: var(--text);
}
.tariff-card .tc-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 10px;
}
.tariff-card.minimum .tc-label { color: var(--text-muted); opacity: 1; }
.tariff-card .tc-amount {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.tariff-card.minimum .tc-amount { color: var(--text); }
.tariff-card .tc-unit {
  font-size: 18px;
  font-weight: 600;
  opacity: 0.8;
  margin-left: 4px;
}
.tariff-card .tc-sub {
  font-size: 12.5px;
  opacity: 0.75;
  margin-top: 10px;
  line-height: 1.4;
}
.tariff-card.minimum .tc-sub { color: var(--text-muted); opacity: 1; }
.tariff-card .tc-deco {
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.spec-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.spec-card-header {
  padding: 16px 24px;
  background: var(--border-light);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 24px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row .sk { color: var(--text-muted); }
.spec-row .sv { font-weight: 600; }
.spec-row.positive .sv { color: var(--text-muted); }
.spec-row.positive .sv::before { content: '+ '; color: #ef4444; }
.spec-row.total {
  background: var(--green-xlight);
  border-top: 2px solid var(--green-light);
}
.spec-row.total .sk { font-weight: 700; color: var(--text); font-size: 15px; }
.spec-row.total .sv { font-weight: 800; font-size: 22px; color: var(--green-dark); }

.uren-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green-dark);
  margin-top: 12px;
}
.uren-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

.markt-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: white;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.markt-card::before {
  content: '';
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(16,185,129,0.12);
}
.markt-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.markt-card .sub { font-size: 13px; color: #94a3b8; margin-bottom: 20px; }
.markt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.markt-item {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 14px;
}
.markt-item.active {
  background: rgba(16,185,129,0.2);
  border-color: rgba(16,185,129,0.5);
}
.markt-item .ms { font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.markt-item.active .ms { color: #6ee7b7; }
.markt-item .mr { font-size: 15px; font-weight: 700; color: white; }
.markt-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-top: 6px;
  display: inline-block;
}
.badge-ok { background: rgba(16,185,129,0.3); color: #6ee7b7; }
.badge-low { background: rgba(239,68,68,0.3); color: #fca5a5; }
.badge-high { background: rgba(245,158,11,0.3); color: #fde68a; }

.results-btns {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.btn-dl {
  height: 48px;
  padding: 0 24px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}
.btn-dl:hover { background: var(--green-dark); }
.btn-dl:active { transform: scale(0.98); }
.btn-new {
  height: 48px;
  padding: 0 24px;
  background: white;
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s;
}
.btn-new:hover { background: var(--border-light); }

/* ─── ALERTS ─── */
.alert {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #78350f; }
.alert-green { background: var(--green-xlight); border: 1px solid var(--green-light); color: var(--green-dark); }

/* ─── HELP ICONS & TOOLTIP ─── */
.hi {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
  border: none;
  cursor: pointer;
  margin-left: 6px;
  vertical-align: middle;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.hi:hover, .hi:focus { background: var(--green); color: white; outline: none; }

#tb-tooltip {
  position: fixed;
  z-index: 9999;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 13px 16px;
  width: 290px;
  font-size: 12.5px;
  line-height: 1.6;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  font-weight: 400;
}
#tb-tooltip.show { opacity: 1; }
#tb-tooltip .tip-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 7px;
}
#tb-tooltip::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  background: #0f172a;
  transform: rotate(45deg);
}
#tb-tooltip.pos-above::after {
  bottom: -4px;
  left: var(--ax, 50%);
  transform: translateX(-50%) rotate(45deg);
}
#tb-tooltip.pos-below::after {
  top: -4px;
  left: var(--ax, 50%);
  transform: translateX(-50%) rotate(45deg);
}

/* ─── MODALS ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(15,23,42,0.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: white; border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
  width: 90%; max-width: 560px; max-height: 85vh;
  display: flex; flex-direction: column;
  transform: translateY(16px); transition: transform 0.2s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-box.modal-wide { max-width: 700px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-head h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.modal-close {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--border); background: white;
  cursor: pointer; font-size: 16px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; flex-shrink: 0;
}
.modal-close:hover { background: var(--border-light); color: var(--text); }
.modal-body {
  padding: 22px 26px 26px; overflow-y: auto; flex: 1;
  font-size: 14px; line-height: 1.65; color: var(--text);
}
.modal-body h3 {
  font-size: 14px; font-weight: 700;
  margin: 20px 0 8px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted);
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { margin-bottom: 10px; }
.modal-body ul { padding-left: 20px; margin-bottom: 10px; }
.modal-body ul li { margin-bottom: 4px; }
.info-card {
  background: var(--border-light); border-radius: var(--radius-sm);
  padding: 14px 16px; margin-bottom: 12px;
}
.info-card.green { background: var(--green-xlight); border: 1px solid var(--green-light); }
.info-card.amber { background: #fffbeb; border: 1px solid #fde68a; }
.info-card strong { display: block; margin-bottom: 4px; font-size: 13px; }
.modal-footer {
  padding: 16px 26px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; justify-content: flex-end; flex-shrink: 0;
}
.btn-modal-primary {
  background: var(--green); color: white; border: none;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.15s;
  font-family: var(--font);
}
.btn-modal-primary:hover { background: var(--green-dark); }
.btn-modal-secondary {
  background: white; color: var(--text); border: 1px solid var(--border);
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s;
  font-family: var(--font);
}
.btn-modal-secondary:hover { background: var(--border-light); }

/* ─── NOTIFICATION PANEL ─── */
.notif-panel {
  position: absolute; top: 52px; right: 0;
  width: 320px; background: white;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transform: translateY(-8px); transition: all 0.18s;
  z-index: 300;
}
.notif-panel.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: 13px;
}
.notif-badge {
  background: var(--green); color: white;
  border-radius: 20px; padding: 1px 7px; font-size: 11px; font-weight: 700;
}
.notif-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
  font-size: 12.5px; line-height: 1.5; cursor: default;
}
.notif-item:last-child { border-bottom: none; }
.notif-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.notif-text strong { display: block; font-size: 13px; margin-bottom: 2px; }
.notif-wrap { position: relative; }

/* ─── SETTINGS ─── */
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border-light);
}
.settings-row:last-child { border-bottom: none; }
.settings-label strong { display: block; font-size: 14px; margin-bottom: 2px; }
.settings-label span { font-size: 12px; color: var(--text-muted); }

/* ─── SITE FOOTER ─── */
.site-footer {
  text-align: center;
  padding: 20px 24px;
  font-size: 13px;
  color: #64748b;
}
.site-footer a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.site-footer a:hover { color: #10b981; }

/* ─── PRINT ─── */
@media print {
  body { background: white; }
  .topnav, .sidebar, .step-nav-btns, .results-btns { display: none !important; }
  .app-outer { padding: 0; }
  .app-wrap { box-shadow: none; border-radius: 0; }
  .main-content { padding: 20px; }
  .step-view { display: block !important; }
  .step-view:not(#step-results) { display: none !important; }
}

@media (max-width: 768px) {
  .topnav-links a:not(.active):not(.help) { display: none; }
  .app-outer { padding: 12px 12px 40px; }
  .sidebar { width: 180px; }
  .main-content { padding: 24px 20px; }
  .step2-layout, .step3-layout, .results-tariffs { grid-template-columns: 1fr; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .step1-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .app-wrap { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 16px; border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar-label, .sidebar-tarief { display: none; }
  .step-nav { flex-direction: row; flex-wrap: wrap; }
}
