/* ---------- Sling Aircraft Switzerland – Configurator Styles ---------- */

:root {
  --bg: #0a0a0c;
  --bg-elev: #111114;
  --bg-card: #16161a;
  --bg-card-2: #1c1c22;
  --bg-card-hover: #20202a;
  --line: #26262e;
  --line-strong: #34343f;
  --text: #ffffff;
  --text-dim: #b8b8c2;
  --text-mute: #7a7a85;
  --accent: #dc1f26;
  --accent-2: #ff3a42;
  --accent-soft: rgba(220, 31, 38, 0.12);
  --accent-soft-2: rgba(220, 31, 38, 0.06);
  --ok: #4ade80;
  --warn: #facc15;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  --maxw: 1480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}

h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 0.8em; color: var(--text-dim); }

.muted { color: var(--text-mute); }
.small { font-size: 0.85rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.logo-img {
  height: 96px;
  width: auto;
  display: block;
}

.logo-model {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 4.2rem;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.03em;
  margin-left: -4px;
}
.logo-model .ws { color: #fff; }
.logo-model .rs { color: var(--accent); }

.header-controls {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.icon-btn:hover, .icon-btn:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

/* ---------- Step bar ---------- */

.steps-bar {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 55;
}

.steps-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.steps-inner::-webkit-scrollbar { display: none; }

.step {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: color .2s, background .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.step:hover { color: var(--text); background: var(--bg-card-hover); }
.step:active { transform: scale(0.97); }

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1.5px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-mute);
  transition: all .25s;
}
.step.active { color: var(--text); background: var(--accent-soft-2); }
.step.active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.step.done { color: var(--text-dim); }
.step.done .step-num {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}
.step.done .step-num::after { content: '✓'; }
.step.done .step-num-label { display: none; }

.step-sep {
  flex: 0 0 24px;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  opacity: 0.6;
}
.step-sep.done { background: var(--accent); opacity: 1; }

/* ---------- Model bay (Carousel + Foto) ---------- */

.model-bay {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.model-bay-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.model-stage {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  height: 140px;
}

.ms-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-elev);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.ms-arrow:hover { border-color: var(--accent); color: var(--accent); }
.ms-arrow:active { transform: scale(0.92); }
.ms-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ms-content {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  user-select: none;
}

.ms-name {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  font-weight: 600;
  margin-top: 4px;
}

.ms-from {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 6px;
}
.ms-from strong { color: var(--accent); font-weight: 700; }

.ms-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 8px;
}
.ms-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.ms-dot.active { background: var(--accent); transform: scale(1.25); }

/* ---------- Model photo ---------- */

.model-photo {
  flex-shrink: 0;
  width: 200px;
  height: 108px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.mp-img[data-loaded="false"] { display: none; }
.mp-fallback {
  color: var(--accent);
  opacity: 0.55;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mp-fallback svg { width: 64px; height: 64px; }

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .model-photo { width: 220px; height: 140px; }
  .ms-name { font-size: 1.6rem; }
  .logo-img { height: 84px; }
  .logo-model { font-size: 3.6rem; }
}

@media (max-width: 980px) {
  .model-bay-inner { flex-wrap: wrap; }
  .model-stage { flex-basis: 100%; }
  .model-photo { width: 100%; height: 160px; }
}

@media (max-width: 720px) {
  .header-inner { padding: 12px 16px; gap: 12px; }
  .logo-img { height: 64px; }
  .logo-model { font-size: 2.6rem; }
  .ms-name { font-size: 1.35rem; }
  .model-stage { height: 120px; padding: 12px; }
  .model-photo { height: 130px; }
  .step { padding: 8px 10px; font-size: 0.85rem; }
}

/* ---------- Dropdown ---------- */

.dropdown { position: relative; }

.dd-btn {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 8px;
  font: 600 0.9rem 'Inter', sans-serif;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 78px;
  justify-content: space-between;
  transition: border-color 0.15s ease;
}

.dd-btn:hover { border-color: var(--accent); }
.dd-btn[aria-expanded="true"] { border-color: var(--accent); }
.dd-btn svg { opacity: 0.7; }

.dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 140px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 30;
}

.dropdown.open .dd-menu { display: block; }

.dd-menu li {
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.dd-menu li:hover { background: var(--bg-card-hover); color: var(--text); }
.dd-menu li.active { color: var(--accent); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Page header ---------- */

.page-header {
  border-bottom: 1px solid var(--line);
  padding: 24px 0 22px;
}

.page-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.page-header h1 { margin: 0 0 4px; }
.page-sub { margin: 0; color: var(--text-dim); }

.fx-mini {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 8px 8px 16px;
  font-size: 0.88rem;
}

.fx-mini-label { color: var(--text-mute); }
.fx-mini-value { color: var(--accent); font-weight: 600; }

.fx-mini-edit {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.fx-mini-edit:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Layout ---------- */

.layout {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 28px 60px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1200px) {
  .layout { grid-template-columns: 1fr 320px; }
}

@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
}

/* ---------- Main panel ---------- */

.main-panel { min-width: 0; position: relative; }

.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  animation: panelEnter .35s cubic-bezier(.2,.7,.2,1);
}

@keyframes panelEnter {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}
.panel.leaving {
  animation: panelLeave .2s cubic-bezier(.4,.0,.7,.4) forwards;
}
@keyframes panelLeave {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-24px); }
}

.panel-head { margin-bottom: 22px; }
.panel-head h2 { margin-bottom: 6px; }
.panel-head p { margin: 0; color: var(--text-dim); }

.currency-pills {
  display: inline-flex;
  margin-top: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}

.cur-pill {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  padding: 7px 18px;
  font: 600 0.85rem 'Inter', sans-serif;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.cur-pill:hover { color: var(--text); }
.cur-pill[aria-pressed="true"] { background: var(--accent); color: #fff; }

.panel-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.badge-discount {
  background: rgba(74, 222, 128, 0.12);
  color: var(--ok);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

/* ---------- Options ---------- */

.option-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  background: var(--bg-elev);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.option:hover { border-color: var(--line-strong); background: var(--bg-card-hover); }

.option.selected {
  border-color: var(--accent);
  background: var(--accent-soft-2);
}

.option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.opt-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  margin-top: 1px;
  transition: all 0.15s ease;
}

.option.selected .opt-check {
  background: var(--accent);
  border-color: var(--accent);
}

.option.selected .opt-check svg { display: block; }
.opt-check svg { display: none; }

.opt-body { flex-grow: 1; min-width: 0; }

.opt-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 4px;
}

.opt-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.opt-price {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  margin-top: 8px;
}

.opt-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  transition: color .15s, border-color .15s, background .15s;
}
.opt-link:hover,
.opt-link:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(220,31,38,0.08);
  outline: none;
}

/* Radio variant of option */
.option.is-radio .opt-check { border-radius: 50%; }
.option.is-radio.selected .opt-check::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.option.is-radio.selected .opt-check svg { display: none; }

/* ---------- Right summary card ---------- */

.summary-card {
  position: sticky;
  top: 92px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 22px;
  align-self: start;
}

.summary-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a1a22 0%, #0e0e14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}

.summary-image svg { width: 80%; height: auto; opacity: 0.9; }

.summary-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(220, 31, 38, 0.25), transparent 60%);
  pointer-events: none;
}

.summary-label {
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.summary-label span { color: var(--text); font-weight: 700; }

.summary-block h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--text);
}

.summary-lines {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.summary-lines li .sum-name { color: var(--text-dim); flex-grow: 1; }
.summary-lines li .sum-val { color: var(--text); font-weight: 600; white-space: nowrap; }
.summary-lines li.is-add .sum-val { color: var(--accent); }
.summary-lines li.is-discount .sum-val { color: var(--ok); }

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  margin-bottom: 6px;
}

.summary-total span { color: var(--text-dim); font-size: 0.92rem; }
.summary-total strong {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.summary-note {
  font-size: 0.75rem;
  color: var(--text-mute);
  text-align: right;
  margin-bottom: 18px;
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font: 600 0.9rem 'Inter', sans-serif;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }

.btn-ghost {
  background: var(--bg-elev);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-link {
  background: transparent;
  color: var(--text-mute);
  border: 0;
  font-weight: 500;
}
.btn-link:hover { color: var(--accent); transform: none; }

.btn-block { display: flex; width: 100%; }

/* ---------- Summary panel (full overview) ---------- */

.full-summary {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
}

.full-summary table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.full-summary th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  padding: 4px 0 12px;
  border-bottom: 1px solid var(--line);
}

.full-summary td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.full-summary td:last-child {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  color: var(--text);
}

.full-summary tr.total td {
  padding-top: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  border-bottom: 0;
}

.full-summary tr.total td:last-child { color: var(--accent); font-size: 1.4rem; }

/* ---------- Inquiry form ---------- */

.inquiry-form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.inquiry-form h3 { margin: 0 0 6px; }

.inquiry-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 11px 13px;
  border-radius: 8px;
  font: 0.94rem 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus { outline: none; border-color: var(--accent); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.inquiry-form .checkbox {
  flex-direction: row;
  gap: 10px;
  align-items: flex-start;
  text-transform: none;
  font-size: 0.85rem;
  letter-spacing: 0;
  color: var(--text-dim);
}

.inquiry-form .checkbox input { width: auto; accent-color: var(--accent); margin-top: 3px; }

.form-status { margin: 0; font-size: 0.9rem; color: var(--ok); }
.form-status.error { color: #f87171; }

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow);
}

.modal-card h3 { margin-top: 0; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  font-size: 1.6rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--bg-elev); color: var(--text); }

.qr-wrap {
  display: flex;
  justify-content: center;
  padding: 18px 0;
}

.qr-wrap img,
.qr-wrap svg { background: #fff; border-radius: 10px; padding: 10px; }

.share-link {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.share-link input {
  flex-grow: 1;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  font: 0.85rem 'Inter', sans-serif;
}

.fx-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}

.fx-form label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.fx-form input {
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  width: 130px;
  font: 0.95rem 'Inter', sans-serif;
  text-align: right;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 20px 0;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-mute);
  flex-wrap: wrap;
}

/* ---------- Print view (PDF export) ---------- */

.print-view { display: none; }

@media print {
  @page { size: A4; margin: 14mm 12mm; }

  body { background: #fff !important; color: #111 !important; font-size: 11px; }

  .site-header, .page-header, .layout,
  .site-footer, .modal { display: none !important; }

  .print-view {
    display: block !important;
    color: #111;
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .pv-head {
    border-bottom: 3px solid #dc1f26;
    padding-bottom: 10mm;
    margin-bottom: 8mm;
  }

  .pv-brand {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8mm;
  }

  .pv-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #111;
    border-radius: 6px;
    padding: 6px 12px;
  }

  .pv-logo-img {
    height: 24px;
    width: auto;
    display: block;
  }

  .pv-logo-model {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
    line-height: 1;
    padding-left: 8px;
    border-left: 1px solid rgba(255,255,255,0.35);
  }
  .pv-logo-model .ws { color: #fff; }
  .pv-logo-model .rs { color: #EE202E; }
  .pv-logo-model .sm { font-size: 0.6em; }

  .pv-meta {
    text-align: right;
    font-size: 10px;
    color: #555;
    line-height: 1.5;
  }

  .pv-meta strong { color: #111; font-size: 11px; }

  .pv-head h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 4px;
    color: #111;
    letter-spacing: -0.01em;
  }

  .pv-sub {
    font-size: 11px;
    color: #666;
    font-style: italic;
  }

  .pv-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8mm;
    font-size: 10.5px;
  }

  .pv-table th {
    text-align: left;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    padding: 4px 6px 8px;
    border-bottom: 1px solid #ccc;
    font-weight: 700;
  }

  .pv-table td {
    padding: 7px 6px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
  }

  .pv-table td:last-child {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
  }

  .pv-table td.pv-group {
    font-weight: 700;
    color: #111;
    background: #fafafa;
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.1em;
    padding: 8px 6px 4px;
  }

  .pv-table td.pv-savings { color: #2e7d32; font-style: italic; font-size: 9.5px; }

  .pv-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    color: #fff;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 8mm;
  }

  .pv-total-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    opacity: 0.7;
  }

  .pv-total-note {
    font-size: 8.5px;
    opacity: 0.6;
    margin-top: 2px;
  }

  .pv-total-value {
    font-size: 22px;
    font-weight: 800;
    color: #ff5a4a;
  }

  .pv-share {
    display: flex;
    gap: 8mm;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6mm;
    background: #fafafa;
    margin-bottom: 8mm;
  }

  .pv-qr {
    flex-shrink: 0;
    background: #fff;
    padding: 4px;
    border: 1px solid #eee;
    border-radius: 4px;
    width: 28mm;
    height: 28mm;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pv-qr img { max-width: 100%; max-height: 100%; }

  .pv-share-body { flex-grow: 1; min-width: 0; font-size: 9.5px; line-height: 1.5; color: #444; }

  .pv-share-label {
    font-weight: 700;
    font-size: 11px;
    color: #111;
    margin-bottom: 2mm;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .pv-share-text { margin-bottom: 3mm; }

  .pv-share-keylabel {
    font-size: 7.5px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #888;
    margin-bottom: 1mm;
    font-weight: 700;
  }

  .pv-share-key, .pv-share-url { margin-bottom: 2.5mm; }

  .pv-share code {
    display: block;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 4px 6px;
    font-family: 'Courier New', monospace;
    font-size: 8px;
    word-break: break-all;
    color: #222;
    line-height: 1.4;
    max-height: 14mm;
    overflow: hidden;
  }

  .pv-foot {
    border-top: 1px solid #ccc;
    padding-top: 4mm;
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: #777;
  }
}
