/* =============================================================================
   biofuel-swap v1 — Eurowag Office mimicking primitives
   Tokens extracted from real EWO SingleFile captures (May 2026)
   ============================================================================= */

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

:root {
  /* Brand */
  --navy: #00004B;
  --navy-87: rgba(0, 0, 75, 0.87);
  --navy-60: rgba(0, 0, 75, 0.60);
  --navy-54: rgba(0, 0, 75, 0.54);
  --navy-26: rgba(0, 0, 75, 0.26);
  --navy-16: rgba(0, 0, 75, 0.16);
  --navy-08: rgba(0, 0, 75, 0.08);
  --navy-04: rgba(0, 0, 75, 0.04);

  --primary: #0067E6;
  --primary-dark: #0045A0;
  --primary-08: rgba(0, 103, 230, 0.08);
  --primary-12: rgba(0, 103, 230, 0.12);

  --cyan: #00E1FF;

  /* Status */
  --success: #11884E;
  --success-bright: #20D57D;
  --error: #E61E2B;
  --warning: #FFB24C;

  /* Surfaces */
  --bg: #F5F5FA;
  --bg-soft: #F8F8FC;
  --surface: #FFFFFF;
  --border: #DDDDE3;
  --border-strong: #D1D1D9;

  /* Layout */
  --sidebar-w: 256px;
  --sidebar-w-collapsed: 64px;
  --topbar-h: 64px;

  /* Radii */
  --r-card: 8px;
  --r-input: 4px;
  --r-btn: 4px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(0, 0, 75, 0.04);
  --shadow-banner: 0 12px 32px rgba(0, 0, 75, 0.18), 0 4px 12px rgba(0, 0, 75, 0.08);
  --shadow-btn-hover: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);

  /* Typography */
  --ff: 'Inter', 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff);
  font-size: 14px;
  line-height: 20px;
  color: var(--navy-87);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* =============================================================================
   App shell
   ============================================================================= */
.app {
  display: flex;
  min-height: 100vh;
}

/* =============================================================================
   Sidebar
   ============================================================================= */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 16px 8px;
  gap: 4px;
}

.sb-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 24px;
}
.sb-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.2px;
  color: var(--navy);
}
.sb-logo-mark {
  display: inline-block;
  width: 28px;
  height: 16px;
  background: var(--navy);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 16'><text x='0' y='13' font-family='Inter, sans-serif' font-weight='800' font-size='14' fill='black'>EW</text></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 16'><text x='0' y='13' font-family='Inter, sans-serif' font-weight='800' font-size='14' fill='black'>EW</text></svg>") no-repeat center / contain;
}
.sb-badge {
  display: inline-block;
  background: var(--cyan);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.2px;
}
.sb-collapse {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: var(--r-input);
  color: var(--navy-60);
  display: inline-flex; align-items: center; justify-content: center;
}
.sb-collapse:hover { background: var(--navy-04); color: var(--navy-87); }

.sb-nav { display: flex; flex-direction: column; gap: 2px; }

.sb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-input);
  color: var(--navy-87);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}
.sb-item:hover { background: var(--navy-04); text-decoration: none; }
.sb-item.is-active {
  background: var(--primary-08);
  color: var(--primary);
}
.sb-item.is-active::before {
  content: '';
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 3px; border-radius: 2px;
  background: var(--primary);
}
.sb-item svg { flex-shrink: 0; }
.sb-item-chev {
  margin-left: auto;
  color: var(--navy-54);
  transition: transform 0.15s ease;
}
.sb-item.is-open .sb-item-chev { transform: rotate(180deg); }

.sb-sub {
  display: flex; flex-direction: column;
  gap: 2px;
  margin: 2px 0 4px 38px;
}
.sb-sub-item {
  padding: 8px 12px;
  border-radius: var(--r-input);
  font-size: 14px;
  color: var(--navy-60);
  text-decoration: none;
}
.sb-sub-item:hover { background: var(--navy-04); color: var(--navy-87); text-decoration: none; }
.sb-sub-item.is-active {
  background: var(--primary-08);
  color: var(--primary);
  font-weight: 600;
}

/* =============================================================================
   Main column (topbar + content)
   ============================================================================= */
.main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: transparent;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.1px;
}
.topbar-right { display: flex; align-items: center; gap: 16px; }

.topbar-icon-btn {
  background: transparent;
  border: none;
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  color: var(--navy-60);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.topbar-icon-btn:hover { background: var(--navy-04); color: var(--navy-87); }
.topbar-icon-btn .badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: #fff;
  font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.topbar-icon-btn .badge--alert { background: var(--error); }

.avatar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.avatar-circle {
  width: 32px; height: 32px;
  border-radius: var(--r-pill);
  background: var(--navy-08);
  color: var(--navy-87);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.4px;
}
.avatar-name { display: flex; flex-direction: column; line-height: 1.2; }
.avatar-name strong { color: var(--navy); font-weight: 600; font-size: 13px; }
.avatar-name span { color: var(--navy-54); font-size: 12px; }

/* =============================================================================
   Page content
   ============================================================================= */
.page {
  flex: 1;
  padding: 8px 32px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.page-header { display: flex; flex-direction: column; gap: 4px; }
.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.2px;
  margin: 0;
}
.page-subtitle {
  font-size: 14px;
  color: var(--navy-60);
}

/* =============================================================================
   Buttons
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-btn-hover); text-decoration: none; }
.btn--outline { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary-08); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--primary); }
.btn--ghost:hover { background: var(--primary-08); text-decoration: none; }
.btn--lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }

/* =============================================================================
   Cards
   ============================================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.card--dark {
  background: #0E1438;
  color: #fff;
  border: none;
}
.card--dark .card-title { color: #fff; }
.card-title { font-size: 16px; font-weight: 600; color: var(--navy); margin: 0 0 16px; }

/* =============================================================================
   Tabs
   ============================================================================= */
.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-60);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* =============================================================================
   Inputs & form bits
   ============================================================================= */
.input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-input);
  background: var(--surface);
  color: var(--navy-87);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-12); }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-input);
  background: var(--bg-soft);
  color: var(--navy-60);
  font-size: 14px;
}

/* Stepper (− value +) */
.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-input);
  overflow: hidden;
  background: var(--surface);
}
.stepper button {
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  font-size: 18px;
  color: var(--navy-87);
}
.stepper button:hover { background: var(--navy-04); }
.stepper input {
  width: 96px; height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-family: inherit; font-size: 14px; color: var(--navy);
  font-weight: 600;
}
.stepper input:focus { outline: none; background: var(--primary-08); }

/* Slider */
.slider {
  width: 100%;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--primary) 0%, var(--primary) var(--slider-pct, 5%), var(--navy-16) var(--slider-pct, 5%));
  outline: none;
}
.slider::-webkit-slider-thumb {
  appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  box-shadow: 0 1px 3px rgba(0, 103, 230, 0.4);
  cursor: pointer;
}
.slider::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  box-shadow: 0 1px 3px rgba(0, 103, 230, 0.4);
  cursor: pointer;
}
.slider-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--navy-54); margin-top: 6px; }

/* Checkbox */
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--navy-87);
  cursor: pointer;
  user-select: none;
}
.checkbox input { width: 18px; height: 18px; accent-color: var(--primary); }

/* Info icon + tooltip */
.info-i {
  display: inline-block;
  width: 14px; height: 14px;
  vertical-align: middle;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill-rule='evenodd' clip-rule='evenodd' d='M21.5999 12.0004C21.5999 14.5465 20.5885 16.9883 18.7881 18.7886C16.9878 20.589 14.546 21.6004 11.9999 21.6004C9.45382 21.6004 7.01203 20.589 5.21168 18.7886C3.41133 16.9883 2.3999 14.5465 2.3999 12.0004C2.3999 9.45431 3.41133 7.01251 5.21168 5.21217C7.01203 3.41182 9.45382 2.40039 11.9999 2.40039C14.546 2.40039 16.9878 3.41182 18.7881 5.21217C20.5885 7.01251 21.5999 9.45431 21.5999 12.0004ZM13.1999 7.20039C13.1999 7.51865 13.0735 7.82387 12.8484 8.04892C12.6234 8.27396 12.3182 8.40039 11.9999 8.40039C11.6816 8.40039 11.3764 8.27396 11.1514 8.04892C10.9263 7.82387 10.7999 7.51865 10.7999 7.20039C10.7999 6.88213 10.9263 6.57691 11.1514 6.35186C11.3764 6.12682 11.6816 6.00039 11.9999 6.00039C12.3182 6.00039 12.6234 6.12682 12.8484 6.35186C13.0735 6.57691 13.1999 6.88213 13.1999 7.20039ZM10.7999 10.8004C10.4816 10.8004 10.1764 10.9268 9.95137 11.1519C9.72633 11.3769 9.5999 11.6821 9.5999 12.0004C9.5999 12.3187 9.72633 12.6239 9.95137 12.8489C10.1764 13.074 10.4816 13.2004 10.7999 13.2004V16.8004C10.7999 17.1186 10.9263 17.4239 11.1514 17.6489C11.3764 17.874 11.6816 18.0004 11.9999 18.0004H13.1999C13.5182 18.0004 13.8234 17.874 14.0484 17.6489C14.2735 17.4239 14.3999 17.1186 14.3999 16.8004C14.3999 16.4821 14.2735 16.1769 14.0484 15.9519C13.8234 15.7268 13.5182 15.6004 13.1999 15.6004V12.0004C13.1999 11.6821 13.0735 11.3769 12.8484 11.1519C12.6234 10.9268 12.3182 10.8004 11.9999 10.8004H10.7999Z' fill='%2300004B' fill-opacity='0.54'/></svg>") no-repeat center / contain;
  cursor: help;
  margin-left: 4px;
  position: relative;
  font-size: 0;
  line-height: 0;
}
.info-i::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.1px;
  white-space: normal;
  width: max-content;
  max-width: 280px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 75, 0.2);
}
.info-i::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--navy);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 100;
}
.info-i:hover::after,
.info-i:hover::before { opacity: 1; }

/* =============================================================================
   Page-specific helpers
   ============================================================================= */

/* Map page */
.map-shell {
  display: grid;
  grid-template-columns: 320px 56px 1fr;
  height: calc(100vh - var(--topbar-h));
  gap: 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  position: relative;
}
.map-list {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.map-list-header {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
}
.map-list-title { font-size: 16px; font-weight: 600; color: var(--navy); }
.map-list-search {
  display: flex; align-items: center; gap: 8px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-input);
  color: var(--navy-54);
  font-size: 13px;
}
.map-filter-row { display: flex; gap: 8px; }
.map-filter {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px;
  padding: 0 10px;
  border: 1.5px solid var(--warning);
  background: #fff;
  color: var(--navy-87);
  border-radius: var(--r-input);
  font-size: 13px; font-weight: 600;
}
.map-filter--ghost {
  border: 1px dashed var(--border-strong);
  color: var(--navy-60);
  font-weight: 500;
}
.map-station-list { overflow-y: auto; flex: 1; }
.map-station {
  display: grid; grid-template-columns: 44px 1fr auto;
  align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.map-station:hover { background: var(--bg-soft); cursor: pointer; }
.map-station-ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.map-station-ico svg { width: 22px; height: 22px; }
.map-station-name { font-size: 13px; font-weight: 600; color: var(--navy); }
.map-station-addr { font-size: 11.5px; color: var(--navy-54); margin-top: 2px; }
.map-station-price { font-size: 13px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.map-station-best { font-size: 10px; font-weight: 700; color: var(--success); margin-top: 2px; text-align: right; }

.map-rail {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 0;
  gap: 4px;
}
.map-rail-btn {
  width: 40px; height: 40px;
  border-radius: var(--r-input);
  background: transparent;
  border: none;
  color: var(--navy-60);
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.map-rail-btn:hover { background: var(--navy-04); color: var(--navy-87); }
.map-rail-btn.is-active { background: var(--primary-08); color: var(--primary); }
.map-rail-btn .dot {
  position: absolute; top: 4px; right: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 9px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

.map-canvas {
  position: relative;
  background: #DDE9F5 url('assets/map-bg.png') center/cover no-repeat;
  overflow: hidden;
}
.map-canvas-label {
  position: absolute;
  font-size: 11px;
  color: var(--navy-54);
  font-weight: 500;
  pointer-events: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.price-pin {
  position: absolute;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--navy);
  color: #fff;
  padding: 3px 8px 3px 6px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,75,.25);
  white-space: nowrap;
}
.price-pin--amber { background: var(--warning); color: var(--navy); }

/* HVO insetting promo banner — bottom-right of map */
.hvo-banner {
  position: absolute;
  right: 24px; bottom: 24px;
  width: 380px;
  background: var(--surface);
  border-radius: var(--r-card);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-banner);
  display: flex;
  gap: 16px;
  overflow: hidden;
  z-index: 10;
}
.hvo-banner-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.hvo-banner-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -0.1px;
  margin: 0;
}
.hvo-banner-art {
  position: absolute;
  right: -10px; bottom: -10px;
  width: 130px; height: 130px;
  pointer-events: none;
  opacity: 0.92;
}
.hvo-banner-close {
  position: absolute; top: 8px; right: 8px;
  background: transparent; border: none;
  width: 28px; height: 28px;
  border-radius: var(--r-pill);
  color: var(--navy-54);
  display: inline-flex; align-items: center; justify-content: center;
}
.hvo-banner-close:hover { background: var(--navy-04); color: var(--navy); }

/* Store offer cards */
.store-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.offer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px;
  display: flex;
  gap: 16px;
}
.offer-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.offer-title { font-size: 18px; font-weight: 700; color: var(--navy); margin: 0; letter-spacing: -0.1px; }
.offer-desc { font-size: 13.5px; line-height: 1.55; color: var(--navy-87); }
.offer-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.offer-art {
  width: 100px; flex-shrink: 0;
  display: flex; align-items: flex-end; justify-content: center;
  color: var(--primary);
}

/* Wizard (cancel + steps + footer) */
.wizard-header {
  display: flex; align-items: center; gap: 24px;
  padding: 16px 32px 8px;
}
.wizard-cancel {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary);
  font-size: 14px; font-weight: 600;
  text-decoration: none;
}
.wizard-cancel:hover { text-decoration: none; color: var(--primary-dark); }
.wizard-title {
  font-size: 22px; font-weight: 700; color: var(--navy);
  margin: 0; letter-spacing: -0.2px;
}

.wizard-body {
  flex: 1;
  padding: 40px 32px 24px;
  max-width: 1100px;
  width: 100%;
}
.wizard-footer {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px 32px 32px;
  max-width: 1100px;
  width: 100%;
}
.wizard-help {
  font-size: 13px; color: var(--navy-60);
}
.wizard-help a { color: var(--primary); font-weight: 600; }

/* Calculator panels */
.calc-shell {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.calc-form { display: flex; flex-direction: column; gap: 28px; }
.calc-h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.2px;
  margin: 0;
  line-height: 1.25;
  max-width: 460px;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.calc-label {
  font-size: 14px;
  color: var(--navy-87);
}
.calc-label small { display: block; color: var(--navy-54); margin-top: 2px; font-size: 12px; }
.calc-readout {
  font-size: 14px;
  color: var(--navy-87);
  font-weight: 600;
  text-align: right;
}
.calc-divider { height: 1px; background: var(--border); }
.calc-price-row {
  display: flex; justify-content: space-between; align-items: baseline;
}
.calc-price-label { font-size: 14px; color: var(--navy-87); font-weight: 600; }
.calc-price-value { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -0.1px; }

.calc-summary { display: flex; flex-direction: column; gap: 16px; }
.calc-summary-row {
  display: flex; justify-content: space-between; align-items: center;
}
.calc-summary-row .lbl { color: var(--navy-60); font-size: 13px; }
.calc-summary-row .val { color: var(--navy-87); font-size: 13px; font-weight: 600; }
.calc-summary-divider { height: 1px; background: var(--border); }
.calc-savings {
  display: flex; justify-content: space-between; align-items: baseline;
}
.calc-savings .lbl { color: var(--navy-87); font-size: 14px; font-weight: 600; }
.calc-savings .val {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.1px;
}
.calc-savings .val .unit { font-size: 12px; color: var(--navy-60); font-weight: 600; margin-left: 2px; }
.calc-summary-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.calc-summary-method { color: var(--navy-54); font-size: 12px; margin-top: 4px; }

/* Confirmation */
.confirm-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 48px 32px;
  text-align: center;
}
.confirm-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--primary-08);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.confirm-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}
.confirm-message {
  font-size: 14px;
  color: var(--navy-60);
  max-width: 440px;
  line-height: 1.55;
  margin: 0 0 32px;
}
.confirm-summary {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 16px 20px;
  text-align: left;
  width: 100%;
  max-width: 360px;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.confirm-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.confirm-summary-row .lbl { color: var(--navy-60); }
.confirm-summary-row .val { color: var(--navy); font-weight: 600; }
.confirm-actions { display: flex; gap: 12px; }

/* Documents (SBT entry) */
.doc-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}
.doc-row {
  display: grid; grid-template-columns: 32px 1fr 16px;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--navy-87);
  font-size: 15px;
  font-weight: 600;
}
.doc-row:last-child { border-bottom: none; }
.doc-row:hover { background: var(--bg-soft); text-decoration: none; }
.doc-row.is-highlight {
  background: rgba(230, 30, 43, 0.04);
  outline: 2px solid var(--error);
  outline-offset: -2px;
  border-radius: var(--r-card);
}
.doc-row svg { color: var(--navy-60); }
.doc-row.is-highlight svg.first-ico { color: var(--primary); }

/* Billing documents */
.bill-tabs {
  display: flex;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding: 0 4px;
  margin-bottom: 16px;
}
.bill-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--navy-60);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
}
.bill-tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.bill-tab .pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
  background: var(--navy-08);
  color: var(--navy-60);
}
.bill-tab .pill--warn { background: var(--warning); color: var(--navy); }
.bill-tab .pill--err { background: var(--error); color: #fff; }

.bill-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.bill-search-input {
  flex: 1;
  max-width: 480px;
}

.bill-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px 60px 60px 100px 1fr 40px;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  margin-bottom: 8px;
}
.bill-row:hover { background: var(--bg-soft); }
.bill-row .b-title { font-size: 14px; font-weight: 600; color: var(--primary); }
.bill-row .b-sub { font-size: 12.5px; color: var(--navy-60); margin-top: 2px; }
.bill-row .b-date { font-size: 13px; color: var(--navy-87); }
.bill-row .b-date strong { display: block; color: var(--navy); font-weight: 700; }
.bill-row .b-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.bill-row .b-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500;
  color: var(--navy-87);
}
.bill-row .b-status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
}
.bill-row .b-amount { font-size: 14px; font-weight: 700; color: var(--navy); text-align: right; }
.bill-row .b-action { color: var(--primary); display: inline-flex; justify-content: flex-end; }

/* Empty state for billing list footer */
.bill-footer {
  padding: 32px 0;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--navy-60);
  font-size: 13px;
}
