/* Blue Haven — pixel-close match to ChatGPT mockups */

:root {
  --navy: #122838;
  --navy-2: #183447;
  --ink: #152937;
  --muted: #6b808b;
  --line: #e3ebee;
  --soft: #eef3f5;
  --soft-2: #f4f7f8;
  --paper: #ffffff;
  --orange: #e76f51;
  --orange-soft: #fff1ed;
  --orange-tint: #fff8f5;
  --teal: #2f7f8c;
  --teal-soft: #e7f4f5;
  --gold: #d4a017;
  --shadow: 0 16px 40px rgba(18, 40, 56, 0.07);
  --radius: 16px;
  --radius-sm: 12px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #f7fafb;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
svg { display: block; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ── Header ── */
.site-header {
  background: linear-gradient(90deg, #0e2330, var(--navy));
  color: white;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: grid;
  place-items: center;
}
.brand-mark svg,
.brand-mark img { width: 28px; height: 28px; object-fit: contain; display: block; }
.brand-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.brand-text span {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ec4cd;
  margin-top: 0.1rem;
}
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a {
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}
.nav a.active { color: white; border-bottom-color: var(--orange); }
.header-phone {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.4rem 0.85rem 0.4rem 0.45rem;
}
.header-phone .icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  color: #9ec4cd;
}
.header-phone small { display: block; color: #9ec4cd; font-size: 0.72rem; }
.header-phone strong { display: block; font-size: 0.92rem; }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.35rem 0 1.25rem;
  background:
    linear-gradient(90deg, rgba(247,250,251,0.98) 0%, rgba(247,250,251,0.94) 36%, rgba(247,250,251,0.55) 62%, rgba(247,250,251,0.12) 100%),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1600&q=80") right center / cover no-repeat;
}
.hero-builder {
  background:
    linear-gradient(90deg, #f7fafb 0%, rgba(247,250,251,0.96) 34%, rgba(247,250,251,0.55) 60%, rgba(247,250,251,0.08) 100%),
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1600&q=80") right 20% center / cover no-repeat;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  color: var(--navy);
  line-height: 1.12;
  max-width: 14ch;
}
.hero .subtitle {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 30rem;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem 1.55rem;
  margin-top: 1.15rem;
  color: #3d5561;
  font-weight: 600;
  font-size: 0.92rem;
}
.trust-row .dot {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 0.35rem;
  color: var(--navy);
  vertical-align: -3px;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0.85rem;
}
.crumbs svg { width: 16px; height: 16px; }
.page-wrap { padding: 0 0 3rem; }

/* ── Builder card ── */
.main-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(18, 40, 56, 0.08);
  overflow: hidden;
}
.main-grid {
  display: grid;
  grid-template-columns: 1.65fr 0.9fr;
}
.form-pane { padding: 1.65rem 1.6rem 1.5rem; }
.side-pane {
  background: #eef3f5;
  border-left: 1px solid var(--line);
  padding: 1.55rem 1.35rem;
  display: flex;
  flex-direction: column;
}

.section-block + .section-block { margin-top: 1.5rem; }
.step-head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 0.95rem;
}
.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  font-weight: 800;
  flex: 0 0 auto;
  margin-top: 0.12rem;
}
.section-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.step-sub {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.help-tip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #c5d4da;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: help;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.service-card {
  position: relative;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem 0.9rem 1rem;
  background: white;
  cursor: pointer;
  text-align: left;
  transition: 0.15s ease;
}
.service-card:hover { border-color: #c9d8de; }
.service-card.selected {
  border-color: var(--orange);
  background: var(--orange-tint);
  box-shadow: 0 0 0 3px rgba(233,99,69,0.1);
}
.service-card .check {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid #d0dde3;
  background: white;
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
}
.service-card.selected .check {
  border-color: var(--orange);
  background: var(--orange);
  color: white;
}
.service-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: transparent;
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 0.55rem;
  padding: 0;
}
.service-card.selected .icon {
  background: transparent;
  color: var(--orange);
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card strong { display: block; font-size: 0.95rem; color: var(--navy); }
.service-card small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

/* Stories */
.story-row { display: flex; gap: 0.75rem; }
.story-pill {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 650;
}
.story-pill .radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #c5d4da;
  display: grid;
  place-items: center;
}
.story-pill .radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}
.story-pill.selected {
  border-color: var(--orange);
  background: var(--orange-tint);
}
.story-pill.selected .radio { border-color: var(--orange); }
.story-pill.selected .radio::after { background: var(--orange); }

/* Inputs */
.field-label {
  display: block;
  font-weight: 650;
  margin: 0.7rem 0 0.4rem;
  font-size: 0.9rem;
}
.input-shell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  background: white;
}
.input-shell:focus-within {
  border-color: #9eb9c4;
  box-shadow: 0 0 0 3px rgba(47,127,140,0.1);
}
.input-shell .lead-ico {
  color: var(--teal);
  flex: 0 0 auto;
}
.input-shell .lead-ico svg { width: 20px; height: 20px; }
.input-shell input, .input-shell select {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  font-size: 1rem;
}
.input-shell .suffix { color: var(--muted); font-weight: 650; }
.hint { color: var(--muted); font-size: 0.86rem; margin: 0.45rem 0 0; }
.alert {
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}
.alert.info { background: #eaf5f8; color: #215966; }
.alert.warn { background: #fff4e8; color: #8a5420; }
.alert.error { background: #ffecec; color: #9b3a28; }

.travel-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: white;
  cursor: pointer;
  text-align: left;
  margin-top: 0.15rem;
}
.travel-trigger .text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
}
.travel-trigger .text span { color: var(--muted); font-size: 0.84rem; }
.travel-trigger .chev { margin-left: auto; color: var(--muted); display: grid; }
.travel-panel {
  display: none;
  margin-top: 0.65rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft-2);
}
.travel-panel.open { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 14px;
  border: 0;
  padding: 1rem 1.15rem;
  font-weight: 750;
  cursor: pointer;
  transition: 0.15s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--orange); color: white; width: 100%; font-size: 1.02rem; }
.btn-primary:hover { filter: brightness(0.97); }
.cta-block { margin-top: 1.35rem !important; }
.btn-secondary {
  background: white;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { filter: brightness(1.08); }
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.secure-note svg { width: 14px; height: 14px; }
.secure-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  margin-left: 0.85rem;
}

/* Sidebar */
.side-pane .side-title {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}
.side-pane .side-title .ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: white;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--navy);
  flex: 0 0 auto;
}
.side-pane .side-title h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.side-pane .side-title p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.side-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.side-item .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: white;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--teal);
}
.side-item .icon svg { width: 18px; height: 18px; }
.side-item strong { display: block; font-size: 0.94rem; }
.side-item span { display: block; color: var(--muted); font-size: 0.84rem; }
.rating-box {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid #dce7eb;
}
.stars { color: var(--orange); letter-spacing: 0.08em; margin-bottom: 0.2rem; }

/* ── Plans ── */
.plans-section, .estimate-section { display: none; margin-top: 1.5rem; }
.plans-section.show, .estimate-section.show { display: block; }
.plans-header {
  display: grid;
  grid-template-columns: 1.45fr 0.7fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.1rem;
}
.plans-header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.25rem;
  color: var(--navy);
}
.plans-header .subtitle {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}
.panel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--soft);
  border-radius: 999px;
  padding: 0.8rem 1.05rem;
  margin-top: 0.9rem;
  font-weight: 650;
  font-size: 0.95rem;
}
.panel-chip .sep { color: #b7c7ce; }
.mini-cards { display: grid; gap: 0.75rem; }
.mini-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  box-shadow: 0 6px 16px rgba(18,40,56,0.04);
}
.mini-card .ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--navy);
  flex: 0 0 auto;
}
.mini-card strong { display: block; }
.mini-card span { color: var(--muted); font-size: 0.84rem; }

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.plan-card {
  position: relative;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: 0 10px 28px rgba(21,42,56,0.04);
}
.plan-card.selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(233,99,69,0.12);
}
.plan-card .selected-mark {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: none;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.plan-card.selected .selected-mark { display: grid; }
.plan-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}
.plan-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--teal);
}
.plan-card.gold .plan-ico { background: var(--orange-soft); color: var(--orange); }
.plan-card.platinum .plan-ico { background: var(--teal-soft); color: var(--teal); }
.plan-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 750;
}
.plan-badge.popular { background: var(--orange); color: white; }
.plan-badge.value { background: var(--teal); color: white; }
.plan-card h3 {
  margin: 0.15rem 0 0.2rem;
  font-size: 1.28rem;
  color: var(--navy);
}
.plan-price {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 0.25rem 0;
  color: var(--navy);
}
.plan-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.7rem; }
.plan-card ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.plan-card li {
  position: relative;
  padding-left: 1.35rem;
  margin: 0.38rem 0;
  font-size: 0.92rem;
}
.plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 800;
}
.plan-card.gold li::before,
.plan-card.selected li::before { color: var(--orange); }
.plan-card.platinum li::before { color: var(--teal); }
.plan-card .btn { width: 100%; }

.accordion-stack { margin-top: 0.9rem; display: grid; gap: 0.65rem; }
.accordion {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
  overflow: hidden;
}
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .meta {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.9rem;
}
.accordion summary .chev { margin-left: auto; color: var(--muted); }
.accordion .body { padding: 0 1.1rem 1rem; color: var(--muted); }

.sticky-bar {
  position: sticky;
  bottom: 0.75rem;
  margin-top: 1.1rem;
  background: #f3f7f8;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0.95rem 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.sticky-bar .sel {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.sticky-bar .sel .ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: white;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--navy);
}
.sticky-bar .hint { margin: 0; }
.sticky-bar strong { display: inline; }
.sticky-bar .btn { width: auto; min-width: 200px; }
.sticky-bar .secure-note { margin-top: 0.45rem; justify-content: flex-end; }

/* ── Estimate ── */
.estimate-hero { padding-top: 0.4rem; }
.estimate-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1rem;
}
.price-card, .overview-card, .followup-card, .preview-bar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.35rem;
}
.price-label { font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.big-price {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  margin: 0.35rem 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  color: var(--navy);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: #eaf5f8;
  color: var(--teal);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 750;
}
.line-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.9rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-top: 0.65rem;
  background: #fbfcfd;
}
.line-item .ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--teal);
  display: grid;
  place-items: center;
}
.line-item .ico svg { width: 20px; height: 20px; }
.line-item strong { display: block; color: var(--navy); }
.line-item small { color: var(--muted); }
.line-item .amt { font-weight: 750; color: var(--navy); }
.disclaimer {
  display: flex;
  gap: 0.55rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.disclaimer svg { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 0.15rem; color: var(--teal); }

.overview-card { background: var(--soft); }
.overview-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  color: var(--navy);
}
.kv {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #e5eef1;
  align-items: start;
}
.kv:last-of-type { border-bottom: 0; }
.kv .k { color: var(--muted); font-size: 0.86rem; }
.kv .v { display: block; font-weight: 750; color: var(--navy); }
.kv .ico { color: var(--navy); margin-top: 0.15rem; }
.overview-card .rating-box {
  margin-top: 1rem;
  padding: 0.95rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-top: 1px solid var(--line);
}

.preview-bar {
  margin-top: 1rem;
  padding: 0;
  overflow: hidden;
}
.preview-bar summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
}
.preview-bar summary::-webkit-details-marker { display: none; }
.preview-bar summary .meta {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.88rem;
}
.preview-bar summary .chev { margin-left: auto; }
.preview-bar .body { padding: 0 1.15rem 1.15rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.form-grid label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
.icon-input {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  background: white;
}
.icon-input svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.icon-input input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
}
.save-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}
.save-row .btn { width: auto; min-width: 220px; }

.footer-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.footer-trust .item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}
.footer-trust .ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--teal);
}
.footer-trust strong { display: block; margin: 0.45rem 0 0.15rem; }
.footer-trust span { color: var(--muted); font-size: 0.88rem; }

/* ── Staff ── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin: 0.4rem 0 1.2rem;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 8px 20px rgba(21,42,56,0.04);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}
.stat .ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.stat .ico.blue { background: #e8f3fb; color: #3a79ad; }
.stat .ico.amber { background: #fff4d8; color: #b2851a; }
.stat .ico.sky { background: #e5f1ff; color: #3b6ea8; }
.stat .ico.green { background: #e5f8ea; color: #2d8a4a; }
.stat span { color: var(--muted); font-size: 0.82rem; font-weight: 650; }
.stat strong {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--serif);
  font-size: 1.85rem;
  color: var(--navy);
}
.stat .hint { margin: 0.15rem 0 0; font-size: 0.8rem; }

.staff-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto auto;
  gap: 0.65rem;
  margin: 0.85rem 0 1.1rem;
  align-items: end;
}
.filters label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.3rem; }
.filters input, .filters select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: white;
}
.staff-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 1rem;
}
.table-wrap {
  overflow: auto;
  max-height: 620px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.quote-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.quote-table th, .quote-table td {
  text-align: left;
  padding: 0.75rem 0.55rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.quote-table th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.quote-table tr { cursor: pointer; }
.quote-table tr.active { background: #eef7fb; }
.quote-table .cust { text-transform: uppercase; font-weight: 650; }
.status {
  display: inline-block;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 750;
}
.status.draft { background: #fff4d8; color: #8a6a12; }
.status.sent { background: #e5f1ff; color: #2a5f9e; }
.status.accepted, .status.booked { background: #e5f8ea; color: #1f7a3c; }
.status.declined, .status.expired { background: #ffecec; color: #9b3a28; }
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin: 0.85rem 0;
}
.pagination button {
  min-width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  font-weight: 650;
}
.pagination button.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.dl-row { display: flex; gap: 0.65rem; flex-wrap: wrap; }

.preview-toolbar {
  display: flex;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.75rem;
}
.preview-toolbar label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.3rem; }
.preview-toolbar select {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  background: white;
  min-width: 180px;
}
.preview-frame {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: white;
  min-height: 560px;
}
.preview-frame iframe {
  width: 100%;
  height: 560px;
  border: 0;
  background: white;
}
.status-row {
  display: flex;
  gap: 0.65rem;
  align-items: end;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.status-row > div { flex: 1; min-width: 140px; }
.status-row label { display: block; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.3rem; }
.status-row select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: white;
}

.hidden { display: none !important; }

@media (max-width: 960px) {
  .main-grid, .plans-header, .estimate-grid, .staff-grid, .form-grid, .stats, .footer-trust, .plan-grid, .service-grid, .filters {
    grid-template-columns: 1fr;
  }
  .nav { display: none; }
  .sticky-bar { flex-direction: column; align-items: stretch; }
  .sticky-bar .btn { width: 100%; }
  .sticky-bar .secure-note { justify-content: center; }
  .side-pane { border-left: 0; border-top: 1px solid var(--line); }
  .save-row .btn { width: 100%; }
  .secure-inline { margin-left: 0; }
}
