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

:root {
  --ink: #17182a;
  --ink-soft: #30324a;
  --muted: #6f7289;
  --muted-2: #9699ab;
  --surface: #ffffff;
  --surface-soft: #faf9ff;
  --surface-tint: #f5f1ff;
  --line: #e8e5f1;
  --line-strong: #d9d2ea;
  --purple: #7139f6;
  --purple-2: #9a35e8;
  --purple-3: #4d168f;
  --purple-deep: #2b0f5f;
  --purple-dark: #1f0b49;
  --purple-soft: #f1ebff;
  --green: #169f68;
  --green-dark: #0b7d50;
  --green-soft: #eaf8f1;
  --danger: #d92d20;
  --danger-soft: #fff0ef;
  --shadow-xs: 0 2px 8px rgba(38, 20, 74, .05);
  --shadow-sm: 0 10px 28px rgba(42, 22, 78, .08);
  --shadow-md: 0 24px 70px rgba(36, 17, 70, .14);
  --shadow-lg: 0 36px 90px rgba(30, 11, 64, .20);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: #f5f3fa;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select, textarea { font: inherit; }
button, a, label, select, input[type="radio"], input[type="checkbox"], input[type="range"], .clickable, .service-card, .admin-tab { cursor: pointer; }
button:disabled, input:disabled, select:disabled, .disabled { cursor: not-allowed !important; }
a { color: inherit; }
.hidden { display: none !important; }

.site-shell { min-height: 100vh; overflow-x: clip; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Branded purple stage */
.brand-stage {
  position: relative;
  min-height: 310px;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 4%, rgba(255,255,255,.16), transparent 23%),
    linear-gradient(125deg, #b62fe1 0%, #7a33e9 40%, #5d21b7 72%, #3b1178 100%);
}
.brand-stage::before,
.brand-stage::after {
  content: "";
  position: absolute;
  inset: -60px auto -80px;
  width: 260px;
  transform: skewX(-22deg);
  background: rgba(255,255,255,.055);
  pointer-events: none;
}
.brand-stage::before { left: 24%; }
.brand-stage::after { left: 56%; width: 210px; background: rgba(19, 4, 54, .12); }

.topbar {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: relative;
  z-index: 2;
}
.brand-link { display: inline-flex; align-items: center; text-decoration: none; min-width: 0; }
.brand-logo { display: block; width: auto; height: 82px; max-width: 34vw; object-fit: contain; object-position: left center; }
.service-chip {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
}

.hero {
  position: relative;
  z-index: 2;
  padding: 48px 0 74px;
  max-width: 760px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: rgba(255,255,255,.62); }
.hero h1 {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-size: clamp(40px, 5.4vw, 60px);
  line-height: 1.04;
  letter-spacing: -.042em;
  font-weight: 700;
}
.hero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.7;
}

.client-main {
  position: relative;
  z-index: 5;
  margin-top: -46px;
  padding-bottom: 80px;
}
.calculator-grid { display: grid; grid-template-columns: minmax(0,1.42fr) minmax(330px,.72fr); gap: 24px; align-items: start; }
.panel {
  background: rgba(255,255,255,.985);
  border: 1px solid rgba(225,220,236,.94);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.form-panel { padding: 34px; }
.form-heading { font-size: 20px; font-weight: 780; letter-spacing: -.025em; }
.form-subheading { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.55; }

.question { padding: 24px 0; border-top: 1px solid var(--line); }
.question:first-of-type { margin-top: 22px; }
.question-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 14px; }
.question-title { font-size: 14px; line-height: 1.48; font-weight: 720; }
.question-price { color: var(--purple); font-size: 12px; font-weight: 800; white-space: nowrap; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.choice-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card label {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  transition: border-color .17s ease, background .17s ease, transform .17s ease, box-shadow .17s ease, color .17s ease;
}
.choice-card label:hover { border-color: #cfc3ef; background: #fcfbff; transform: translateY(-1px); }
.choice-card input:checked + label {
  color: #5423bd;
  border-color: #a98cf4;
  background: linear-gradient(180deg,#faf7ff,#f1ebff);
  box-shadow: 0 0 0 3px rgba(113,57,246,.08), var(--shadow-xs);
}

.counter-line { display: flex; align-items: center; gap: 10px; }
.counter-btn {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 21px;
  font-weight: 700;
  transition: .16s ease;
}
.counter-btn:hover { color: var(--purple); border-color: #bfaaf5; background: #faf8ff; transform: translateY(-1px); }
.number-input {
  width: 108px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  text-align: center;
  color: var(--ink);
  font-weight: 800;
  background: #fff;
}
.number-input:focus, .text-input:focus, .select-input:focus, .text-area:focus {
  border-color: #a587ef;
  box-shadow: 0 0 0 4px rgba(113,57,246,.09);
}
.range-wrap { margin-top: 15px; }
.range-input { width: 100%; accent-color: var(--purple); }
.question.disabled { opacity: .42; pointer-events: none; }

.estimate-panel { position: sticky; top: 24px; padding: 28px; overflow: hidden; }
.estimate-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg,var(--purple-2),var(--purple),#4e1fb4); }
.estimate-kicker { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.estimate-total { margin-top: 8px; font-size: 46px; font-weight: 850; letter-spacing: -.055em; line-height: 1; color: var(--ink); }
.estimate-note { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.breakdown { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.breakdown-row { display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 12px; }
.breakdown-row strong { color: var(--ink); font-size: 12px; }

.discount-cta {
  position: relative;
  margin-top: 24px;
  padding: 22px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(255,255,255,.18), transparent 27%),
    linear-gradient(135deg,#45117f 0%,#6722c7 48%,#8d35ee 100%);
  box-shadow: 0 18px 36px rgba(76,26,139,.23);
}
.discount-cta::after { content: "15%"; position: absolute; right: -10px; top: -17px; font-size: 82px; font-weight: 900; color: rgba(255,255,255,.055); letter-spacing: -.06em; pointer-events: none; }
.offer-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 27px; padding: 0 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.11); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.discount-cta h3 { position: relative; z-index: 1; margin: 12px 0 7px; font-size: 20px; letter-spacing: -.025em; }
.discount-cta p { position: relative; z-index: 1; margin: 0 0 16px; color: rgba(255,255,255,.78); font-size: 12px; line-height: 1.58; }

.primary-btn, .secondary-btn, .ghost-btn, .payment-btn, .danger-btn, .icon-btn, .password-toggle, .settings-btn {
  border: 0;
  border-radius: 13px;
  font-weight: 760;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease, opacity .16s ease;
}
.primary-btn { min-height: 47px; padding: 0 17px; color: #fff; background: linear-gradient(135deg,#7e42ff,#6530ea); box-shadow: 0 9px 22px rgba(101,48,234,.20); }
.primary-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(101,48,234,.27); }
.primary-btn.full, .secondary-btn.full { width: 100%; }
.discount-cta .primary-btn { position: relative; z-index: 1; width: 100%; background: #fff; color: #5b25ca; box-shadow: 0 9px 22px rgba(26,3,57,.18); }
.secondary-btn { min-height: 44px; padding: 0 15px; color: #4c2b90; background: #fff; border: 1px solid #d8d0e9; }
.secondary-btn:hover:not(:disabled) { border-color: #bfaaf5; background: #fbf9ff; transform: translateY(-1px); }
.ghost-btn { min-height: 44px; padding: 0 13px; color: #4d4f66; background: transparent; }
.ghost-btn:hover { color: var(--purple); background: #f6f2ff; }
.danger-btn { min-height: 43px; padding: 0 14px; color: #b42318; background: var(--danger-soft); }
.danger-btn:hover { background: #ffe4e1; }
button:disabled { opacity: .62; transform: none !important; box-shadow: none !important; }

/* Dialogs and fields */
dialog { width: min(680px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 24px; box-shadow: var(--shadow-lg); color: var(--ink); }
dialog::backdrop { background: rgba(24, 10, 50, .54); backdrop-filter: blur(5px); }
.modal-card { background: #fff; border-radius: 24px; overflow: hidden; }
.modal-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 25px 26px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.modal-head p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.icon-btn { width: 36px; height: 36px; background: #f6f4fa; color: #686a7e; font-size: 20px; }
.icon-btn:hover { color: var(--purple); background: var(--purple-soft); }
.modal-body { padding: 22px 26px 25px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field.full-span { grid-column: 1 / -1; }
.field label { display: block; margin: 0 0 7px; color: #4e5064; font-size: 11px; font-weight: 760; }
.text-input, .select-input, .text-area {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  outline: none;
  background: #fff;
  color: var(--ink);
  transition: .16s ease;
}
.text-input, .select-input { height: 46px; padding: 0 13px; }
.text-area { min-height: 105px; resize: vertical; padding: 12px 13px; line-height: 1.5; }
.checkline { display: flex !important; gap: 9px; align-items: flex-start; color: var(--muted) !important; line-height: 1.45; font-weight: 500 !important; }
.checkline input { margin-top: 2px; accent-color: var(--purple); }
.form-error { margin-top: 13px; padding: 10px 12px; border-radius: 11px; background: var(--danger-soft); color: #b42318; font-size: 12px; line-height: 1.5; }
.modal-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 9px; }

/* Submitted quote */
.result-wrap { max-width: 860px; margin: 0 auto; display: grid; gap: 18px; }
.result-confirm {
  padding: 22px 24px;
  border: 1px solid #d9ccff;
  border-radius: 20px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  background: linear-gradient(135deg,#fbf9ff,#f1ebff);
  box-shadow: var(--shadow-sm);
}
.check-icon { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; display: grid; place-items: center; background: #e9ddff; color: #6935e4; font-weight: 900; }
.result-confirm h2 { margin: 1px 0 5px; font-size: 19px; letter-spacing: -.025em; }
.result-confirm p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.result-card { padding: 28px; }
.result-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.result-card-head > div:first-child > span, .quote-ref span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .10em; }
.quote-ref { text-align: right; }
.quote-ref strong { display: block; margin-top: 5px; font-size: 12px; letter-spacing: .02em; }
.result-pricing { display: grid; gap: 12px; padding-top: 17px; }
.result-breakdown-row, .price-line { display: flex; justify-content: space-between; gap: 22px; align-items: baseline; color: var(--muted); font-size: 13px; }
.result-breakdown-row strong, .price-line strong { color: var(--ink); font-weight: 720; }
.price-line.discount { color: #6b35db; }
.price-line.discount strong { color: #6b35db; }
.price-line.final { margin-top: 5px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 800; }
.price-line.final strong { color: var(--purple); font-size: 24px; letter-spacing: -.035em; }
.extra-discount-card { margin-top: 19px; padding: 16px; border: 1px solid #dfd3ff; border-radius: 15px; background: #f7f2ff; }
.extra-discount-card strong { color: #5725bb; font-size: 13px; }
.extra-discount-card p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.status-card { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; display: flex; gap: 13px; align-items: flex-start; background: #fcfbfe; }
.status-icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; background: #f0ecf8; color: #7154a8; font-size: 14px; }
.status-copy strong { display: block; font-size: 13px; }
.status-copy p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.payment-btn { width: 100%; min-height: 52px; margin-top: 18px; color: #9597a7; background: #e8e8ef; font-size: 14px; }
.payment-btn.active { color: #fff; background: linear-gradient(135deg,#1aae70,#118a59); box-shadow: 0 12px 25px rgba(17,138,89,.21); }
.payment-btn.active:hover { transform: translateY(-1px); box-shadow: 0 15px 28px rgba(17,138,89,.26); }
.result-actions { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Landing */
.landing-body { min-height: 100vh; background: #f5f3fa; }
.landing-stage { min-height: 420px; }
.landing-hero { position: relative; z-index: 2; padding: 60px 0 115px; text-align: center; }
.landing-hero .brand-logo { margin: 0 auto 34px; width: auto; height: 126px; max-width: 70vw; }
.landing-hero h1 { margin: 0; color: #fff; font-size: clamp(40px,6vw,60px); line-height: 1.04; letter-spacing: -.042em; font-weight: 700; }
.landing-hero p { max-width: 680px; margin: 18px auto 0; color: rgba(255,255,255,.80); line-height: 1.7; }
.service-section { margin-top: -70px; padding-bottom: 80px; position: relative; z-index: 3; }
.service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.service-card { text-decoration: none; padding: 22px 23px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: space-between; gap: 18px; transition: .17s ease; }
.service-card:hover { transform: translateY(-2px); border-color: #cbb8f7; box-shadow: var(--shadow-md); }
.service-card h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.02em; }
.service-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.service-arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--purple-soft); color: var(--purple); display: grid; place-items: center; font-weight: 900; flex: 0 0 34px; }

/* Admin */
.admin-page { min-height: 100vh; background: #f4f2f8; }
.admin-login-wrap {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 34px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 14% 16%, rgba(188,103,255,.40), transparent 27%),
    radial-gradient(circle at 88% 88%, rgba(91,30,178,.48), transparent 30%),
    linear-gradient(132deg,#251047 0%,#4c168d 43%,#7228d4 72%,#9238ed 100%);
}
.admin-login-wrap::before,
.admin-login-wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}
.admin-login-wrap::before {
  width: 520px;
  height: 520px;
  left: -190px;
  top: -240px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 0 0 88px rgba(255,255,255,.025), 0 0 0 176px rgba(255,255,255,.018);
}
.admin-login-wrap::after {
  width: 380px;
  height: 380px;
  right: -120px;
  bottom: -190px;
  background: rgba(255,255,255,.055);
}
.admin-login-shell {
  width: min(980px, 100%);
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0,1.04fr) minmax(390px,.96fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 34px;
  background: rgba(255,255,255,.10);
  box-shadow: 0 42px 110px rgba(22,5,49,.34);
  backdrop-filter: blur(18px);
}
.login-showcase {
  min-width: 0;
  padding: 46px 48px 42px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 8%, rgba(255,255,255,.16), transparent 24%),
    linear-gradient(145deg,rgba(132,55,231,.70),rgba(56,15,110,.76));
}
.login-showcase::after {
  content: "";
  position: absolute;
  right: -90px;
  top: 62px;
  width: 250px;
  height: 430px;
  transform: rotate(22deg);
  background: linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,0));
  pointer-events: none;
}
.login-showcase-brand { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.login-showcase-brand img { width: auto; height: 68px; max-width: 205px; object-fit: contain; object-position: left center; }
.login-showcase-brand span { padding: 8px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.07); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.login-showcase-copy { position: relative; z-index: 1; margin: auto 0; padding: 52px 0 44px; }
.login-kicker { display: inline-block; margin-bottom: 15px; color: #dbc8ff; font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.login-showcase h2 { max-width: 470px; margin: 0; font-size: clamp(34px,4vw,48px); line-height: 1.04; letter-spacing: -.048em; font-weight: 650; text-wrap: balance; }
.login-showcase-copy p { max-width: 460px; margin: 19px 0 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.72; }
.login-feature-list { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.login-feature-list span { display: inline-flex; align-items: center; gap: 7px; min-height: 31px; padding: 0 10px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.78); font-size: 9px; font-weight: 650; }
.login-feature-list i { width: 5px; height: 5px; border-radius: 50%; background: #c99cff; box-shadow: 0 0 0 3px rgba(201,156,255,.10); }
.login-card.login-access-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding: 56px 52px 42px;
  border: 0;
  border-radius: 0;
  background: rgba(255,255,255,.985);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-lock-icon { width: 48px; height: 48px; margin-bottom: 23px; display: grid; place-items: center; border: 1px solid #e5dcfa; border-radius: 15px; color: var(--purple); background: linear-gradient(145deg,#faf8ff,#f0e9ff); box-shadow: 0 10px 24px rgba(86,37,167,.10); }
.login-lock-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-overline { color: #7a52c9; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.login-card.login-access-panel h1 { margin: 8px 0 0; text-align: left; font-size: 32px; line-height: 1.08; letter-spacing: -.042em; font-weight: 690; }
.login-card.login-access-panel > p { max-width: 360px; margin: 12px 0 28px; text-align: left; color: var(--muted); font-size: 12px; line-height: 1.65; }
.login-password-field { margin-top: 1px; }
.login-password-field label { color: #44465d; font-size: 10px; font-weight: 760; }
.login-password-field .text-input { height: 52px; border-radius: 15px; background: #fcfbfe; }
.password-wrap { position: relative; }
.password-wrap .text-input { padding-right: 70px; }
.password-toggle { position: absolute; top: 50%; right: 9px; transform: translateY(-50%); min-height: 34px; padding: 0 10px; color: #66687b; background: transparent; font-size: 10px; }
.password-toggle:hover { color: var(--purple); background: var(--purple-soft); }
.login-error { margin: 11px 0 0; }
.login-submit { min-height: 52px; margin-top: 17px; border-radius: 15px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 12px; }
.login-submit b { font-size: 17px; font-weight: 500; transition: transform .16s ease; }
.login-submit:hover:not(:disabled) b { transform: translateX(3px); }
.login-security-note { margin-top: 19px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #8a8c9d; font-size: 9px; font-weight: 600; }
.security-dot { width: 7px; height: 7px; border-radius: 50%; background: #29b779; box-shadow: 0 0 0 4px rgba(41,183,121,.10); }
@media (max-width: 820px) {
  .admin-login-wrap { padding: 20px; }
  .admin-login-shell { width: min(500px,100%); min-height: auto; grid-template-columns: 1fr; border-radius: 28px; }
  .login-showcase { padding: 27px 28px; min-height: 190px; }
  .login-showcase-copy { margin: 20px 0 0; padding: 0; }
  .login-showcase h2 { font-size: 29px; }
  .login-showcase-copy p, .login-feature-list { display: none; }
  .login-showcase-brand img { height: 52px; }
  .login-showcase-brand span { font-size: 8px; }
  .login-card.login-access-panel { padding: 34px 30px 29px; }
}
@media (max-width: 480px) {
  .admin-login-wrap { padding: 12px; }
  .admin-login-shell { border-radius: 24px; }
  .login-showcase { min-height: 155px; padding: 23px; }
  .login-showcase-brand span { display: none; }
  .login-showcase-copy { margin-top: 14px; }
  .login-showcase h2 { font-size: 25px; }
  .login-card.login-access-panel { padding: 30px 23px 25px; }
  .login-card.login-access-panel h1 { font-size: 28px; }
}

.admin-shell { min-height: 100vh; }
.admin-topbar {
  min-height: 76px;
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(105deg,#4d168f,#6f28d0 58%,#8d35e7);
  box-shadow: 0 8px 28px rgba(51,16,97,.14);
}
.admin-topbar .brand-logo { width: auto; height: 58px; max-width: 180px; }
.admin-top-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.live-badge { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; border: 1px solid rgba(255,255,255,.20); border-radius: 999px; background: rgba(255,255,255,.11); font-size: 10px; font-weight: 800; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #55e3a6; box-shadow: 0 0 0 4px rgba(85,227,166,.12); }
.settings-btn { min-height: 36px; padding: 0 12px; color: #fff; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.18); }
.settings-btn:hover { background: rgba(255,255,255,.18); }
.admin-content { width: min(1420px, calc(100% - 44px)); margin: 0 auto; padding: 34px 0 64px; }
.admin-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 23px; }
.admin-heading h1 { margin: 0; font-size: 32px; letter-spacing: -.035em; font-weight: 700; }
.admin-heading p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.admin-tabs { display: flex; gap: 7px; padding: 6px; margin-bottom: 22px; overflow-x: auto; border: 1px solid #e1ddeb; border-radius: 15px; background: #ebe7f2; scrollbar-width: thin; }
.admin-tab { position: relative; flex: 0 0 auto; min-height: 42px; padding: 0 14px; border: 0; border-radius: 11px; background: transparent; color: #67697b; font-size: 11px; font-weight: 760; white-space: nowrap; transition: .15s ease; }
.admin-tab:hover { color: #46267c; background: rgba(255,255,255,.55); }
.admin-tab.active { color: #3e196f; background: #fff; box-shadow: var(--shadow-xs); }
.tab-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 7px; padding: 0 6px; border-radius: 999px; color: #fff; background: linear-gradient(135deg,#8c3cf1,#6e31df); font-size: 9px; font-weight: 900; box-shadow: 0 4px 9px rgba(111,49,223,.20); }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 17px; }
.metric-card { padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow-xs); }
.metric-card span { display: block; color: var(--muted); font-size: 10px; font-weight: 760; text-transform: uppercase; letter-spacing: .06em; }
.metric-card strong { display: block; margin-top: 7px; font-size: 25px; letter-spacing: -.04em; }
.table-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); }
.table-toolbar { padding: 14px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.table-toolbar-left { display: flex; gap: 9px; flex: 1; }
.search-input { min-width: 280px; max-width: 430px; }
.select-input.compact { min-width: 160px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 1480px; border-collapse: collapse; }
th, td { padding: 13px 15px; border-bottom: 1px solid #efedf4; text-align: left; font-size: 11px; }
th { color: #7b7d90; background: #fbfafe; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 820; }
th:nth-child(1), td:nth-child(1) { min-width: 150px; }
th:nth-child(2), td:nth-child(2) { min-width: 185px; }
th:nth-child(3), td:nth-child(3) { min-width: 140px; }
th:nth-child(4), td:nth-child(4) { min-width: 260px; }
th:nth-child(5), td:nth-child(5) { min-width: 150px; white-space: nowrap; }
th:nth-child(6), td:nth-child(6) { min-width: 175px; white-space: nowrap; }
th:nth-child(7), td:nth-child(7), th:nth-child(8), td:nth-child(8) { min-width: 120px; white-space: nowrap; }
th:nth-child(9), td:nth-child(9) { min-width: 135px; white-space: nowrap; }
.table-contact { color: #5e6171; white-space: nowrap; }
.quote-reference { font-size: 10px; letter-spacing: .01em; }
.final-price-cell { color: #3f176f; font-size: 12px; }
tbody tr { transition: background .12s ease; }
tbody tr.clickable:hover { background: #fbf9ff; }
tbody tr.unread-row { background: #fcfaff; }
tbody tr.unread-row td:first-child { box-shadow: inset 3px 0 0 var(--purple); }
.subtext { display: block; margin-top: 3px; color: var(--muted-2); font-size: 10px; }
.new-pill { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 3px 6px; border-radius: 999px; background: var(--purple-soft); color: #6028c8; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.status-pill { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; border-radius: 999px; color: #55576a; background: #f0eff4; font-size: 9px; font-weight: 800; }
.status-pill.new { color: #6229cd; background: #f0eaff; }
.status-pill.paid { color: #08784c; background: var(--green-soft); }
.status-pill.payment-link-sent { color: #1d5fc0; background: #edf5ff; }
.empty-table { padding: 58px 20px; text-align: center; color: var(--muted-2); }
.empty-table strong { display: block; margin-bottom: 5px; color: #525468; }
.admin-error { margin: 0 0 16px; padding: 13px 14px; border: 1px solid #f3c7c2; border-radius: 13px; color: #a92c21; background: #fff5f4; font-size: 12px; line-height: 1.55; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 69; background: rgba(31,11,73,.42); backdrop-filter: blur(3px); }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 70; width: min(610px,100%); display: flex; flex-direction: column; background: #fff; box-shadow: -25px 0 70px rgba(29,9,65,.20); }
.drawer-head { padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 1px solid var(--line); }
.drawer-head span { color: var(--muted); font-size: 9px; font-weight: 820; text-transform: uppercase; letter-spacing: .10em; }
.drawer-head h2 { margin: 5px 0 0; font-size: 21px; line-height: 1.15; letter-spacing: -.035em; }
.drawer-quote-id { margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .01em; }
.drawer-identity { min-width: 0; }
.drawer-body { padding: 22px; overflow-y: auto; }
.drawer-section { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.drawer-section:last-child { border-bottom: 0; }
.drawer-section h3 { margin: 0 0 14px; font-size: 13px; letter-spacing: -.015em; }
.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.drawer-pricing { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #faf9fc; display: grid; gap: 9px; }
.drawer-pricing .price-line { font-size: 12px; }
.drawer-footer { padding: 14px 22px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); background: #fff; }
.drawer-footer-right { display: flex; gap: 9px; }

.toast { position: fixed; left: 50%; bottom: 27px; z-index: 120; transform: translate(-50%,16px); opacity: 0; pointer-events: none; padding: 11px 14px; border-radius: 11px; color: #fff; background: #1f1730; box-shadow: var(--shadow-md); font-size: 11px; transition: .18s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: currentColor; display: inline-block; vertical-align: -2px; margin-right: 7px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .calculator-grid { grid-template-columns: 1fr; }
  body:not(.summary-mode) .calculator-grid > .estimate-panel { display: none; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .container, .admin-content { width: min(100% - 24px,1180px); }
  .topbar { min-height: 92px; }
  .brand-logo { width: auto; height: 66px; max-width: 42vw; }
  .hero { padding: 34px 0 65px; }
  .hero h1 { font-size: clamp(36px,10vw,50px); }
  .form-panel, .estimate-panel, .result-card { padding: 21px; }
  .choice-grid.three, .field-grid, .drawer-grid { grid-template-columns: 1fr; }
  .field.full-span { grid-column: auto; }
  .result-card-head { flex-direction: column; }
  .quote-ref { text-align: left; }
  .service-grid { grid-template-columns: 1fr; }
  .admin-topbar { padding: 10px 14px; }
  .admin-topbar .brand-logo { width: auto; height: 50px; max-width: 145px; }
  .admin-heading { align-items: flex-start; flex-direction: column; }
  .table-toolbar, .table-toolbar-left { flex-direction: column; }
  .search-input { min-width: 100%; max-width: none; }
}
@media (max-width: 480px) {
  .service-chip, .live-badge { display: none; }
  .choice-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .result-actions { flex-direction: column; }
  .result-actions button { width: 100%; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions button { width: 100%; }
  .admin-top-actions { gap: 6px; }
  .settings-btn { padding: 0 9px; }
}


/* V13 production polish retained */
:focus-visible { outline: 3px solid rgba(113,57,246,.22); outline-offset: 2px; }
.app-booting #calculatorView,
.app-booting #resultView { display: none !important; }
.app-booting .hero-description { visibility: hidden; }
.summary-mode .hero-description { display: none; }
.summary-mode .hero { padding-bottom: 68px; }

.client-loader {
  position: relative;
  z-index: 6;
  width: min(860px, calc(100% - 40px));
  margin: -42px auto 76px;
}
.client-loader-card {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(225,220,236,.94);
  border-radius: 24px;
  background: rgba(255,255,255,.98);
  box-shadow: var(--shadow-md);
}
.client-loader-card strong { display: block; font-size: 14px; letter-spacing: -.01em; }
.client-loader-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.loader-ring { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; border: 3px solid #ece6fb; border-top-color: var(--purple); animation: spin .75s linear infinite; }

.form-panel { padding: 36px; }
.question { padding: 26px 0; }
.question-head { align-items: center; }
.question-title { max-width: 570px; font-size: 14px; font-weight: 700; }
.question-price { font-size: 12px; font-weight: 700; }
.choice-grid { gap: 12px; }
.choice-card label {
  min-height: 56px;
  border-radius: 16px;
  font-weight: 650;
  box-shadow: 0 1px 1px rgba(30,16,57,.02);
}
.choice-card label:hover { box-shadow: 0 8px 20px rgba(63,36,110,.07); }
.choice-card input:checked + label {
  box-shadow: 0 0 0 3px rgba(113,57,246,.07), 0 8px 20px rgba(82,47,151,.08);
}

.free-addon {
  min-width: 178px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: normal;
}
.free-addon span {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #bfe9d3;
  border-radius: 999px;
  color: #08784c;
  background: #ecfaf3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .075em;
}
.free-addon small { color: #7c8190; font-size: 9px; font-weight: 550; }
.free-value { color: #08784c !important; font-weight: 750 !important; }

.conditional-options {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e3dcf2;
  border-radius: 18px;
  background: linear-gradient(180deg,#fcfbff,#f8f5ff);
  animation: revealOptions .18s ease-out;
}
@keyframes revealOptions { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.conditional-section + .conditional-section { margin-top: 20px; padding-top: 19px; border-top: 1px solid #e7e1f1; }
.conditional-title { margin-bottom: 12px; }
.conditional-title span { display: block; font-size: 12px; font-weight: 750; color: var(--ink-soft); }
.conditional-title small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.format-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.format-card { position: relative; }
.format-card input { position: absolute; opacity: 0; pointer-events: none; }
.format-card label {
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  text-align: center;
  transition: .16s ease;
}
.format-card label strong { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.format-card label span { color: #15915f; font-size: 9px; font-weight: 750; }
.format-card label:hover { transform: translateY(-1px); border-color: #cbbaf1; box-shadow: var(--shadow-xs); }
.format-card input:checked + label { border-color: #9d80ee; background: #f5efff; box-shadow: 0 0 0 3px rgba(113,57,246,.07); }
.format-card input:checked + label::before { content: "✓"; position: absolute; top: 8px; right: 9px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--purple); font-size: 10px; font-weight: 800; }

.empty-estimate { padding: 3px 0; display: grid; gap: 4px; }
.empty-estimate span { color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.empty-estimate small { color: var(--muted-2); font-size: 10px; line-height: 1.45; }

.primary-btn, .secondary-btn, .ghost-btn, .payment-btn, .danger-btn, .icon-btn, .password-toggle, .settings-btn, .counter-btn {
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease, opacity .18s ease;
}
.primary-btn { border-radius: 14px; font-weight: 700; letter-spacing: -.005em; }
.primary-btn:hover:not(:disabled), .secondary-btn:hover:not(:disabled), .payment-btn.active:hover { transform: translateY(-2px); }
.primary-btn:active:not(:disabled), .secondary-btn:active:not(:disabled), .payment-btn.active:active { transform: translateY(0); }
.discount-cta .primary-btn { min-height: 50px; }
.text-input, .select-input, .text-area { border-radius: 14px; }
.contact-grid { grid-template-columns: 1fr 1fr; }

/* Cleaner inquiry counters */
.tab-badge {
  min-width: 24px;
  height: 24px;
  margin-left: 8px;
  padding: 0 7px;
  border: 1px solid rgba(107,51,220,.14);
  border-radius: 999px;
  color: #5b25c8;
  background: #eee6ff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: none;
}
.admin-tab.active .tab-badge { color: #fff; background: linear-gradient(135deg,#7e42ee,#6530dc); border-color: transparent; }
.new-pill { padding: 4px 8px; font-size: 8px; font-weight: 750; letter-spacing: .045em; }

.admin-head-actions { display: flex; align-items: center; gap: 10px; }
.client-link-box { padding: 15px; border: 1px solid #e0d8ef; border-radius: 15px; background: #faf8ff; }
.client-link-box p { margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.client-link-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; align-items: center; }
.client-link-input { height: 42px; font-size: 10px; color: #54566b; background: #fff; }
.mini-btn { min-height: 42px; padding: 0 13px; border: 1px solid #d7cbea; border-radius: 12px; color: #522695; background: #fff; font-size: 10px; font-weight: 700; }
.mini-btn:hover { border-color: #bba4e8; background: #f7f2ff; transform: translateY(-1px); }
.requirement-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.requirement-tag { display: inline-flex; min-height: 24px; align-items: center; padding: 0 8px; border-radius: 999px; background: #f3effb; color: #62577b; font-size: 9px; font-weight: 650; }
.requirement-tag.free { color: #0a7d51; background: #eaf8f1; }
.format-checkboxes { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.format-checkboxes .checkline { padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin: 0; }

@media (max-width: 720px) {
  .free-addon { min-width: 150px; }
  .format-grid { grid-template-columns: 1fr; }
  .client-link-row { grid-template-columns: 1fr 1fr; }
  .client-link-input { grid-column: 1 / -1; }
  .format-checkboxes { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .question-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .free-addon { min-width: 0; align-items: flex-start; }
  .client-loader { width: min(100% - 24px,860px); }
  .contact-grid { grid-template-columns: 1fr; }
}

/* V14 production refinements */
.calculator-hero-content { display: block; }
.summary-hero-content { display: none; }
.app-booting .calculator-hero-content,
.app-booting .summary-hero-content { visibility: hidden; }
.summary-mode .calculator-hero-content { display: none; }
.summary-mode .summary-hero-content { display: block; }
.summary-mode .service-chip { display: none; }
.summary-mode .hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 42px 0 74px;
  text-align: center;
}
.summary-client-address {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 16px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(8px);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .01em;
}
.summary-client-address strong { color: #fff; font-weight: 700; }
.summary-mode .summary-hero-content h1 {
  max-width: 880px;
  margin: 0 auto;
  font-size: clamp(34px, 4.7vw, 52px);
  line-height: 1.08;
  letter-spacing: -.038em;
  font-weight: 700;
}
.summary-mode .summary-hero-content p {
  max-width: 760px;
  margin: 16px auto 0;
  color: rgba(255,255,255,.84);
  font-size: 15px;
  line-height: 1.7;
}

/* Keep the full estimate in view on wider screens. */
@media (min-width: 981px) {
  .calculator-grid { align-items: start; }
  .estimate-panel {
    position: -webkit-sticky;
    position: sticky;
    top: 18px;
    align-self: start;
    height: max-content;
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d9d0ee transparent;
  }
  .estimate-panel::-webkit-scrollbar { width: 5px; }
  .estimate-panel::-webkit-scrollbar-thumb { background: #d9d0ee; border-radius: 999px; }
}

/* Compact always-visible mobile/tablet estimate. */
.mobile-estimate-bar { display: none; }
@media (max-width: 980px) {
  .mobile-estimate-bar {
    position: fixed;
    z-index: 54;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: block;
    overflow: hidden;
    border: 1px solid rgba(218,209,238,.96);
    border-radius: 19px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 55px rgba(35,14,75,.22);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translateZ(0);
  }
  .summary-mode .mobile-estimate-bar { display: none; }
  .mobile-estimate-toggle {
    width: 100%;
    min-height: 70px;
    padding: 11px 14px 11px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 0;
    background: linear-gradient(180deg,rgba(255,255,255,.98),rgba(250,247,255,.98));
    color: var(--ink);
    text-align: left;
  }
  .mobile-estimate-copy { display: grid; gap: 2px; }
  .mobile-estimate-copy small {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.2;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .085em;
  }
  .mobile-estimate-copy strong {
    color: var(--purple);
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -.035em;
    font-weight: 750;
  }
  .mobile-estimate-action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 11px;
    border-radius: 11px;
    color: #5829bc;
    background: #f0eaff;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
  }
  .mobile-estimate-chevron { font-size: 13px; line-height: 1; }
  .mobile-estimate-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 16px;
    transition: max-height .22s ease, opacity .18s ease, padding .22s ease;
  }
  .mobile-estimate-bar.expanded .mobile-estimate-details {
    max-height: min(42vh, 330px);
    overflow-y: auto;
    opacity: 1;
    padding: 16px 16px 2px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-estimate-details-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 10px; }
  .mobile-estimate-details-head span { color: var(--ink-soft); font-size: 12px; font-weight: 750; }
  .mobile-estimate-details-head small { color: var(--muted-2); font-size: 9px; }
  .mobile-estimate-breakdown .breakdown { margin: 0; padding: 0 0 12px; border: 0; }
  .mobile-estimate-breakdown .breakdown-row { padding: 4px 0; }
  .mobile-estimate-breakdown .empty-estimate { padding-bottom: 14px; }
  body:not(.summary-mode) .client-main { padding-bottom: 155px; }
}
@media (max-width: 520px) {
  .mobile-estimate-bar { left: 9px; right: 9px; bottom: max(8px, env(safe-area-inset-bottom)); border-radius: 17px; }
  .mobile-estimate-toggle { min-height: 66px; padding: 10px 11px 10px 14px; }
  .mobile-estimate-copy strong { font-size: 22px; }
  .mobile-estimate-action { padding: 0 9px; font-size: 9px; }
  .summary-mode .hero { padding: 30px 0 64px; }
  .summary-mode .summary-hero-content h1 { font-size: clamp(30px, 9vw, 40px); }
  .summary-mode .summary-hero-content p { font-size: 13px; line-height: 1.65; }
}

/* Cleaner new-inquiry counters */
.tab-badge {
  min-width: 27px;
  height: 27px;
  margin-left: 9px;
  padding: 0 8px;
  border: 1px solid #d8caf8;
  border-radius: 999px;
  color: #6030c2;
  background: #f5f0ff;
  font-size: 12px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -.01em;
  box-shadow: 0 2px 7px rgba(84,43,166,.07);
}
.admin-tab.active .tab-badge {
  color: #5a28bd;
  background: #fff;
  border-color: rgba(255,255,255,.82);
  box-shadow: none;
}
.new-pill {
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid #dfd3fb;
  background: #f5f0ff;
  color: #6530c6;
  font-size: 8px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .055em;
}



/* Inquiry pagination and clearly visible selected publishing formats */
.table-pagination {
  min-height: 62px;
  padding: 12px 15px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
}
.pagination-copy { color: var(--muted); font-size: 11px; font-weight: 600; white-space: nowrap; }
.pagination-controls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #ded7ec;
  border-radius: 10px;
  background: #fff;
  color: #545163;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: .15s ease;
}
.page-btn:hover:not(:disabled) { border-color: #bba7ed; color: var(--purple); background: #faf8ff; }
.page-btn.active { border-color: #7040e8; color: #fff; background: linear-gradient(135deg,#7e42ff,#6530ea); box-shadow: 0 5px 12px rgba(101,48,234,.18); }
.page-btn:disabled { opacity: .38; cursor: default; }
.requirement-formats { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 6px; }
.requirement-formats-label { color: #8a8499; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .055em; }
.format-tag { display: inline-flex; align-items: center; min-height: 21px; padding: 0 7px; border: 1px solid #ddd0fb; border-radius: 999px; background: #f6f1ff; color: #6430c8; font-size: 9px; font-weight: 720; white-space: nowrap; }
.drawer-format-summary { margin-bottom: 12px; padding: 11px 12px; border: 1px solid #e5dcf7; border-radius: 12px; background: #faf8ff; }
.drawer-format-summary strong { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 10px; }
.drawer-format-summary .requirement-formats { margin-top: 0; }
@media (max-width: 720px) {
  .table-pagination { align-items: flex-start; flex-direction: column; }
  .pagination-controls { width: 100%; justify-content: flex-start; }
}

.app-booting .mobile-estimate-bar { display: none !important; }


/* V17 typography, configurable admin columns, and no horizontal table scrolling */
.summary-mode .summary-hero-content h1 {
  max-width: 820px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.045;
  letter-spacing: -.032em;
  font-weight: 650;
  text-wrap: balance;
}
.summary-title-line { display: block; }
.summary-title-line + .summary-title-line { margin-top: 5px; }
.summary-mode .summary-hero-content p {
  max-width: 710px;
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.72;
  font-weight: 430;
  letter-spacing: -.006em;
}

.table-toolbar-actions { position: relative; display: flex; align-items: center; gap: 9px; }
.column-picker { position: relative; }
.column-picker-btn { display: inline-flex; align-items: center; gap: 8px; }
.column-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: #6030c2;
  background: #f3edff;
  font-size: 10px;
  font-weight: 750;
}
.column-menu {
  position: absolute;
  z-index: 35;
  top: calc(100% + 9px);
  right: 0;
  width: min(360px, calc(100vw - 44px));
  padding: 14px;
  border: 1px solid #ddd5eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(39,18,76,.18);
}
.column-menu-head { display: grid; gap: 3px; margin-bottom: 11px; }
.column-menu-head strong { color: var(--ink); font-size: 12px; }
.column-menu-head span { color: var(--muted); font-size: 10px; }
.column-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.column-menu-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #ece7f4;
  border-radius: 10px;
  background: #fcfbfe;
  color: #595568;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}
.column-menu-grid label:hover { border-color: #d5c7f2; background: #faf7ff; }
.column-menu-grid input { accent-color: var(--purple); cursor: pointer; }
.column-menu-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 11px; padding-top: 11px; border-top: 1px solid #eeeaf4; }

.table-wrap { overflow-x: hidden; }
table { min-width: 0; width: 100%; table-layout: fixed; }
th, td { padding: 12px 11px; vertical-align: top; overflow-wrap: anywhere; }
th[data-col="client"] { width: 11%; }
th[data-col="email"] { width: 13%; }
th[data-col="phone"] { width: 10%; }
th[data-col="requirements"] { width: 19%; }
th[data-col="submitted"] { width: 12%; }
th[data-col="reference"] { width: 13%; }
th[data-col="originalPrice"] { width: 9%; }
th[data-col="finalPrice"] { width: 8%; }
th[data-col="status"] { width: 9%; }
.table-contact { white-space: normal; }
td[data-col="phone"] .table-contact,
td[data-col="originalPrice"], td[data-col="finalPrice"] { white-space: nowrap; }
.quote-reference { overflow-wrap: anywhere; word-break: break-word; }
.status-pill { white-space: normal; text-align: center; justify-content: center; }
.column-hidden { display: none !important; }

@media (max-width: 900px) {
  .table-toolbar-actions { width: 100%; justify-content: flex-end; }
  .column-menu { right: auto; left: 0; }
  table { table-layout: auto; }
}
@media (max-width: 560px) {
  .column-menu-grid { grid-template-columns: 1fr; }
  .summary-mode .summary-hero-content h1 { font-size: clamp(29px, 8.2vw, 37px); line-height: 1.07; }
  .summary-title-line + .summary-title-line { margin-top: 3px; }
}

/* V20 — full-screen quote workspace + live client summary */
body.admin-editor-open { overflow: hidden; }
.drawer-backdrop { background: rgba(27, 12, 55, .56); backdrop-filter: blur(5px); }
.drawer {
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  border-radius: 0;
  box-shadow: none;
  background: #f4f2f8;
}
.drawer-head {
  flex: 0 0 auto;
  padding: 16px clamp(18px, 3vw, 42px);
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 16px rgba(31, 11, 73, .05);
}
.drawer-head span { font-size: 10px; }
.drawer-head h2 { font-size: clamp(22px, 2vw, 30px); margin-top: 4px; }
.drawer-quote-id { font-size: 11px; }
.drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 24px clamp(18px, 3vw, 42px) 34px;
  background: #f4f2f8;
}
.drawer-footer {
  flex: 0 0 auto;
  padding: 13px clamp(18px, 3vw, 42px);
  box-shadow: 0 -8px 30px rgba(31, 11, 73, .08);
  z-index: 4;
}
.admin-editor-workspace {
  width: min(1680px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(480px, .98fr);
  gap: 24px;
  align-items: start;
}
.admin-editor-pane {
  min-width: 0;
  border: 1px solid #e4dfec;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 11, 73, .06);
  overflow: hidden;
}
.workspace-section { padding: 24px; border-bottom: 1px solid var(--line); }
.workspace-section:last-child { border-bottom: 0; }
.workspace-section-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.workspace-section-head h3 { margin: 2px 0 0; font-size: 17px; letter-spacing: -.025em; }
.workspace-kicker { display: block; color: #7b7489; font-size: 9px; line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.workspace-help { margin: -4px 0 13px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.source-of-truth-pill { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; color: #5e29bf; background: #f2ebff; border: 1px solid #ded0fb; font-size: 9px; font-weight: 780; }
.editor-requirements-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.editor-requirements-grid .full-span { grid-column: 1 / -1; }
.editor-requirements-grid.nested-grid { padding: 14px; border-radius: 14px; background: #faf9fc; border: 1px solid #e7e2ef; }
.admin-format-checkboxes { margin-top: 4px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.admin-format-checkboxes .checkline { margin: 0; min-height: 44px; padding: 9px 11px; border: 1px solid #dfd7ed; border-radius: 11px; background: #fff; }
.workspace-pricing { margin-top: 16px; }
.workspace-notes { margin-top: 13px; }

.admin-preview-pane { min-width: 0; }
.admin-preview-sticky { position: sticky; top: 0; }
.admin-preview-label { display: flex; align-items: center; gap: 7px; margin: 0 0 9px 2px; color: #665d78; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #6e35dc; box-shadow: 0 0 0 4px rgba(110,53,220,.12); }
.admin-preview-browser { overflow: hidden; border: 1px solid #ded8e9; border-radius: 22px; background: #f7f5fa; box-shadow: 0 16px 42px rgba(31,11,73,.10); }
.admin-preview-hero { padding: 34px 34px 30px; text-align: center; color: #fff; background: linear-gradient(118deg,#8c3bf0 0%,#7130df 48%,#4f1da8 100%); position: relative; overflow: hidden; }
.admin-preview-hero::after { content:""; position:absolute; inset:-40% auto -40% 62%; width:28%; background:rgba(36,6,86,.16); transform:skewX(-22deg); }
.admin-preview-hero h2 { position:relative; z-index:1; margin:0; font-size: clamp(26px,2.3vw,38px); line-height:1.07; letter-spacing:-.04em; font-weight:680; }
.admin-preview-hero p { position:relative; z-index:1; max-width:620px; margin:12px auto 0; color:rgba(255,255,255,.86); font-size:11px; line-height:1.65; }
.admin-preview-body { padding: 18px; }
.admin-preview-confirm { display:flex; gap:12px; align-items:center; margin-bottom:14px; padding:14px 15px; border:1px solid #e2daf2; border-radius:14px; background:#fff; }
.admin-preview-confirm > span { display:grid; place-items:center; flex:0 0 30px; width:30px; height:30px; border-radius:50%; color:#6f35dc; background:#f0e8ff; font-weight:800; }
.admin-preview-confirm strong { font-size:12px; }
.admin-preview-confirm p { margin:3px 0 0; color:var(--muted); font-size:10px; line-height:1.45; }
.admin-preview-card { padding:18px; border:1px solid #e0dbe9; border-radius:16px; background:#fff; }
.admin-preview-card-head { display:flex; justify-content:space-between; gap:15px; padding-bottom:13px; border-bottom:1px solid var(--line); color:var(--muted); font-size:9px; font-weight:800; text-transform:uppercase; letter-spacing:.09em; }
.admin-preview-card-head > div { text-align:right; }
.admin-preview-card-head small { display:block; color:var(--muted); font-size:8px; }
.admin-preview-card-head strong { display:block; margin-top:3px; color:var(--ink); font-size:10px; text-transform:none; letter-spacing:0; }
.admin-preview-requirements { display:grid; gap:8px; padding:14px 0 4px; }
.admin-preview-totals { display:grid; gap:9px; margin-top:9px; padding-top:13px; border-top:1px solid var(--line); }
.admin-preview-line { display:flex; align-items:baseline; justify-content:space-between; gap:20px; color:var(--muted); font-size:11px; }
.admin-preview-line strong { color:var(--ink); font-weight:720; text-align:right; }
.admin-preview-line.discount, .admin-preview-line.discount strong { color:#6830d8; }
.admin-preview-line.final { margin-top:5px; padding-top:13px; border-top:1px solid var(--line); color:var(--ink); font-weight:720; }
.admin-preview-line.final strong { color:#7135e6; font-size:24px; letter-spacing:-.035em; }
.admin-preview-extra { margin-top:14px; padding:12px 13px; border:1px solid #dcd0f6; border-radius:12px; background:#faf7ff; }
.admin-preview-extra strong { font-size:11px; color:#5b27bb; }
.admin-preview-extra p { margin:4px 0 0; color:var(--muted); font-size:10px; line-height:1.45; }
.admin-preview-review { margin-top:14px; padding:13px; border:1px solid #e2ddeb; border-radius:12px; background:#fbfafc; }
.admin-preview-review strong { font-size:11px; }
.admin-preview-review p { margin:4px 0 0; color:var(--muted); font-size:10px; line-height:1.5; }
.admin-preview-payment { width:100%; min-height:44px; margin-top:14px; border:0; border-radius:11px; color:#aaa5b1; background:#eceaf0; font-weight:780; cursor:default; }
.admin-preview-payment.active { color:#fff; background:linear-gradient(135deg,#2fac67,#238b55); }

@media (max-width: 1100px) {
  .admin-editor-workspace { grid-template-columns: 1fr; }
  .admin-preview-pane { order: -1; }
  .admin-preview-sticky { position: static; }
  .admin-preview-browser { max-width: 760px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .drawer-body { padding: 14px 10px 24px; }
  .drawer-head, .drawer-footer { padding-left: 14px; padding-right: 14px; }
  .drawer-footer { align-items: stretch; flex-direction: column-reverse; }
  .drawer-footer-right { display:grid; grid-template-columns:1fr 1.25fr; }
  .drawer-footer button { min-height: 44px; }
  .workspace-section { padding: 18px 15px; }
  .editor-requirements-grid { grid-template-columns: 1fr; }
  .editor-requirements-grid .full-span { grid-column: auto; }
  .admin-format-checkboxes { grid-template-columns: 1fr; }
  .client-link-row { flex-wrap: wrap; }
  .client-link-input { flex: 1 1 100%; width:100%; }
  .admin-preview-hero { padding:28px 18px 24px; }
  .admin-preview-hero h2 { font-size:28px; }
  .admin-preview-body { padding:12px; }
  .admin-preview-card { padding:14px; }
}


/* V27 service-form enhancements */
.choice-grid.two-col-grid, .format-grid.two-col-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.choice-grid.compact-choices .choice-card label { min-height: 54px; }
.always-open { display: block; }
.question-note-box {
  padding: 14px 16px;
  border: 1px solid #e3dcf2;
  border-radius: 15px;
  background: linear-gradient(180deg,#fcfbff,#f8f5ff);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.info-question .question-head { margin-bottom: 12px; }
.service-note-row { padding: 10px 12px; border-radius: 12px; background:#faf7ff; border:1px solid #e2d8f7; color:#6a5d89; font-size:11px; line-height:1.5; }
.admin-preview-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: 18px;
  align-self: start;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #d9d0ee transparent;
}
.admin-preview-sticky::-webkit-scrollbar { width: 5px; }
.admin-preview-sticky::-webkit-scrollbar-thumb { background: #d9d0ee; border-radius: 999px; }
.admin-preview-pane { align-self: start; }
@media (max-width: 980px) {
  .choice-grid.two-col-grid, .format-grid.two-col-grid { grid-template-columns: 1fr; }
}

/* V28: let the admin preview follow the editor scroll on desktop. */
@media (min-width: 1101px) {
  .admin-preview-pane { align-self: stretch; min-height: 100%; }
  .admin-preview-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 18px;
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
  }
}

/* Payment-link activity */
.payment-activity-card { margin-top: 14px; padding: 15px; border: 1px solid #e1d9ee; border-radius: 15px; background: #fbfaff; }
.payment-activity-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.payment-activity-stat { padding: 11px; border: 1px solid #e7e1f0; border-radius: 12px; background: #fff; }
.payment-activity-stat span { display: block; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.payment-activity-stat strong { display: block; margin-top: 5px; color: var(--ink); font-size: 13px; line-height: 1.35; }
.payment-history-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.payment-history-head strong { font-size: 11px; }
.payment-history-list { display: grid; gap: 7px; margin-top: 9px; }
.payment-history-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid #e8e2f1; border-radius: 10px; background: #fff; color: var(--ink-soft); font-size: 10px; }
.payment-history-item small { color: var(--muted); }
.payment-history-empty { padding: 10px 0 2px; color: var(--muted); font-size: 10px; line-height: 1.5; }
@media (max-width: 700px) { .payment-activity-summary { grid-template-columns: 1fr; } }

/* V31 final admin workspace polish */
.admin-page {
  background:
    radial-gradient(circle at 8% 0%, rgba(125, 72, 219, .08), transparent 28%),
    radial-gradient(circle at 95% 18%, rgba(90, 42, 173, .05), transparent 24%),
    #f6f4f9;
}
.admin-topbar {
  min-height: 72px;
  padding-inline: clamp(18px, 3vw, 40px);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 35px rgba(54, 16, 102, .16);
}
.admin-topbar .brand-logo { height: 52px; }
.admin-top-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: rgba(255,255,255,.94);
  background: rgba(255,255,255,.09);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}
.admin-top-context i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #70ecb1;
  box-shadow: 0 0 0 4px rgba(112,236,177,.13);
}
.admin-content { width: min(1500px, calc(100% - 52px)); padding-top: 28px; }
.admin-heading-premium {
  align-items: center;
  margin-bottom: 20px;
  padding: 26px 28px;
  border: 1px solid #e3deeb;
  border-radius: 24px;
  background:
    linear-gradient(118deg, rgba(255,255,255,.98), rgba(251,248,255,.98)),
    #fff;
  box-shadow: 0 16px 46px rgba(48, 19, 91, .07);
  position: relative;
  overflow: hidden;
}
.admin-heading-premium::after {
  content: "";
  position: absolute;
  top: -70px;
  right: -45px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,65,224,.11), rgba(125,65,224,0) 70%);
  pointer-events: none;
}
.admin-heading-copy { position: relative; z-index: 1; }
.admin-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #6e32d7;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.admin-heading h1 { font-size: clamp(28px, 2.4vw, 36px); }
.admin-heading p { max-width: 760px; font-size: 12px; line-height: 1.6; }
.admin-heading-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.admin-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #e3d9f4;
  border-radius: 999px;
  color: #625b70;
  background: #faf7ff;
  font-size: 9px;
  font-weight: 720;
}
.admin-meta-chip strong { color: #6025c2; font-size: 10px; }
.admin-sync-dot { width: 6px; height: 6px; border-radius: 50%; background: #28ae70; box-shadow: 0 0 0 3px rgba(40,174,112,.10); }
.admin-refresh-btn { position: relative; z-index: 1; min-height: 43px; padding-inline: 16px; gap: 7px; border-color: #d8ccef; color: #5521a6; background: #fff; box-shadow: 0 7px 20px rgba(61,25,120,.07); }
.admin-refresh-btn:hover { border-color: #bda7e7; background: #faf7ff; transform: translateY(-1px); }
.admin-refresh-btn span { font-size: 17px; line-height: 1; }
.admin-section-label { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 2px 8px; }
.admin-section-label span { color: #373144; font-size: 11px; font-weight: 800; }
.admin-section-label small { color: #8b8498; font-size: 9px; }
.admin-tabs {
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px;
  border-color: #dfd9e8;
  border-radius: 18px;
  background: rgba(235,231,242,.80);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.admin-tab { min-height: 44px; padding-inline: 16px; border-radius: 12px; font-size: 10px; }
.admin-tab.active { color: #421779; box-shadow: 0 7px 20px rgba(55,20,105,.09); }
.metric-grid { gap: 14px; margin-bottom: 18px; }
.metric-card {
  min-height: 118px;
  padding: 19px 20px;
  border-color: #e2dde9;
  border-radius: 19px;
  box-shadow: 0 10px 28px rgba(45,20,83,.055);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.metric-card::before { content:""; position:absolute; left:0; top:0; right:0; height:3px; background:#7a3fe1; }
.metric-card.metric-unread::before { background:#d19b33; }
.metric-card.metric-ready::before { background:#3984da; }
.metric-card.metric-paid::before { background:#2aa76d; }
.metric-card > div { align-self: flex-start; }
.metric-card span { font-size: 9px; letter-spacing: .08em; }
.metric-card small { display:block; margin-top:5px; color:#a09aaa; font-size:9px; font-weight:650; }
.metric-card strong { margin:0; color:#21172f; font-size:34px; line-height:1; }
.table-panel { border-color: #ded9e6; border-radius: 22px; box-shadow: 0 16px 42px rgba(42,17,76,.07); }
.table-panel-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 19px 20px 16px;
  border-bottom: 1px solid #ece8f1;
  background: linear-gradient(180deg,#fff,#fdfcff);
}
.table-panel-titlebar h2 { margin: 4px 0 0; color:#282032; font-size:18px; letter-spacing:-.025em; }
.table-panel-titlebar p { margin:5px 0 0; color:#8a8394; font-size:10px; line-height:1.45; }
.table-toolbar { padding: 13px 14px; background:#fbfafd; }
.search-input { max-width: 520px; }
.table-wrap { max-height: min(62vh, 720px); overflow: auto; }
table { min-width: 1260px; }
th { position: sticky; top: 0; z-index: 2; padding-top: 12px; padding-bottom: 12px; background: rgba(249,247,252,.97); backdrop-filter: blur(8px); }
td { padding-top: 14px; padding-bottom: 14px; }
tbody tr.clickable:hover { background: #faf7ff; }
tbody tr.clickable:hover td:first-child strong { color:#5a22ae; }
.status-pill { min-height: 27px; padding-inline: 9px; border: 1px solid transparent; }
.status-pill.new { border-color:#e4d7fb; }
.status-pill.payment-link-sent { border-color:#d7e8ff; }
.status-pill.paid { border-color:#caeddc; }
.final-price-cell { font-size: 13px; }
.column-picker-btn, #exportBtn { min-height: 42px; }
.drawer-head { background: linear-gradient(180deg,#fff,#fcfbfe); }
.workspace-section-head h3 { font-size: 18px; }
.payment-activity-card { background: linear-gradient(180deg,#fcfbff,#faf7ff); }

@media (max-width: 900px) {
  .admin-content { width: min(100% - 24px, 1180px); }
  .admin-heading-premium { padding: 22px; align-items: flex-start; }
  .admin-heading-meta { display: none; }
  .admin-top-context { display: none; }
  .metric-card { min-height: 100px; }
}
@media (max-width: 640px) {
  .admin-heading-premium { padding: 18px; border-radius: 19px; }
  .admin-refresh-btn { width: 100%; justify-content: center; }
  .admin-section-label small { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 94px; padding: 15px; }
  .metric-card strong { font-size: 28px; }
  .table-panel-titlebar { padding: 16px; }
}


/* =========================================================
   V32 — true mobile/tablet responsive layout
   ========================================================= */

/* Tablet/mobile client flow */
@media (max-width: 980px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .container { width: min(100% - 24px, 1180px); }
  .calculator-grid { display: block; }
  body:not(.summary-mode) .calculator-grid > .estimate-panel { display: none; }
  body:not(.summary-mode) .client-main { padding-bottom: 190px; }

  .mobile-estimate-bar {
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    border-radius: 18px;
  }
  .mobile-estimate-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }
  .mobile-estimate-toggle {
    min-width: 0;
    min-height: 68px;
    padding: 10px 10px 10px 15px;
    gap: 9px;
  }
  .mobile-estimate-action {
    min-height: 32px;
    padding: 0 8px;
    font-size: 9px;
  }
  .mobile-estimate-submit {
    min-width: 118px;
    margin: 9px 9px 9px 0;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg,#7d43f0,#6530df);
    box-shadow: 0 8px 20px rgba(95,43,199,.24);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
  }
  .mobile-estimate-submit:active { transform: translateY(1px); }
  .mobile-estimate-bar.expanded .mobile-estimate-details {
    max-height: min(45dvh, 360px);
    padding: 14px 14px 8px;
  }

  dialog {
    width: min(680px, calc(100% - 20px));
    max-height: calc(100dvh - 20px);
    overflow: hidden;
  }
  .modal-card {
    display: flex;
    max-height: calc(100dvh - 20px);
    flex-direction: column;
  }
  .modal-body { overflow-y: auto; overscroll-behavior: contain; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 18px); }
  .topbar {
    min-height: 72px;
    padding-block: 7px;
  }
  .brand-logo { height: 50px; max-width: 48vw; }
  .service-chip { display: inline-flex; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: 25px 0 54px; }
  .hero h1 { font-size: clamp(31px, 9vw, 42px); line-height: 1.05; }
  .hero p { margin-top: 12px; font-size: 13px; line-height: 1.6; }
  .client-main { margin-top: -34px; }
  .form-panel, .result-card { padding: 18px 15px; border-radius: 20px; }
  .form-heading { font-size: 18px; }
  .form-subheading { font-size: 11px; line-height: 1.5; }
  .question { padding: 20px 0; }
  .question:first-of-type { margin-top: 16px; }
  .question-head { margin-bottom: 11px; gap: 8px; }
  .question-title { max-width: none; font-size: 13px; line-height: 1.45; }
  .question-price { font-size: 10px; }
  .free-addon { min-width: 0; align-items: flex-start; }
  .free-addon small { text-align: left; }
  .choice-grid, .choice-grid.three, .choice-grid.two-col-grid { grid-template-columns: 1fr; gap: 8px; }
  .choice-card label { min-height: 50px; padding-inline: 12px; border-radius: 13px; font-size: 12px; }
  .conditional-options { margin-top: 13px; padding: 13px; border-radius: 15px; }
  .conditional-section + .conditional-section { margin-top: 15px; padding-top: 15px; }
  .format-grid, .format-grid.two-col-grid { grid-template-columns: 1fr; gap: 8px; }
  .format-card label { min-height: 58px; padding: 9px 11px; border-radius: 13px; }
  .counter-line { width: 100%; }
  .number-input { min-width: 0; flex: 1 1 auto; }
  .range-wrap { margin-top: 12px; }

  .result-wrap { width: 100%; }
  .result-confirm { padding: 15px; border-radius: 17px; }
  .result-card-head { gap: 10px; }
  .result-breakdown-row, .price-line { gap: 12px; }
  .result-breakdown-row span, .price-line span { min-width: 0; }
  .result-breakdown-row strong, .price-line strong { flex: 0 0 auto; text-align: right; }
  .price-line.final strong { font-size: 26px; }

  .mobile-estimate-bar { left: 7px; right: 7px; bottom: max(6px, env(safe-area-inset-bottom)); border-radius: 16px; }
  .mobile-estimate-toggle { min-height: 62px; padding: 8px 8px 8px 12px; }
  .mobile-estimate-copy small { font-size: 8px; }
  .mobile-estimate-copy strong { font-size: 20px; }
  .mobile-estimate-action { min-height: 29px; padding: 0 7px; }
  .mobile-estimate-submit { min-width: 104px; margin: 7px 7px 7px 0; padding: 0 11px; border-radius: 11px; font-size: 10px; }
  body:not(.summary-mode) .client-main { padding-bottom: 170px; }

  .modal-head { padding: 18px 17px 14px; }
  .modal-head h2 { font-size: 18px; }
  .modal-head p { font-size: 10px; }
  .modal-body { padding: 16px 17px 18px; }
  .contact-grid, .field-grid { grid-template-columns: 1fr; }
  .contact-grid .full-span, .field-grid .full-span { grid-column: auto; }
}

@media (max-width: 380px) {
  .mobile-estimate-action { display: none; }
  .mobile-estimate-submit { min-width: 98px; }
  .mobile-estimate-copy strong { font-size: 19px; }
  .service-chip { display: none; }
}

/* Admin dashboard: tabs and inquiry table become touch-friendly */
@media (max-width: 900px) {
  .admin-content { width: calc(100% - 20px); padding-top: 16px; }
  .admin-heading-premium { padding: 18px; border-radius: 18px; }
  .admin-heading { gap: 12px; }
  .admin-heading h1 { font-size: 27px; }
  .admin-tabs {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  .admin-tabs::-webkit-scrollbar { display: none; }
  .admin-tab { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
  .table-toolbar, .table-toolbar-left { align-items: stretch; }
  .table-toolbar-actions { justify-content: stretch; }
  .table-toolbar-actions > * { flex: 1 1 auto; }
  .column-picker-btn, #exportBtn { width: 100%; justify-content: center; }
}

@media (max-width: 760px) {
  .admin-topbar { min-height: 60px; padding: 7px 10px; }
  .admin-topbar .brand-logo { height: 43px; max-width: 130px; }
  .admin-top-actions { gap: 5px; }
  .settings-btn, #logoutBtn { min-height: 36px; padding: 0 9px; font-size: 10px; }
  .admin-heading-premium { margin-bottom: 12px; padding: 15px; }
  .admin-heading h1 { font-size: 24px; }
  .admin-heading p { font-size: 10px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { min-height: 84px; padding: 12px; border-radius: 15px; }
  .metric-card span { font-size: 8px; }
  .metric-card strong { font-size: 25px; }
  .metric-card small { display: none; }
  .admin-section-label { margin-top: 2px; }
  .admin-tabs { margin-bottom: 12px; padding: 5px; border-radius: 14px; }
  .admin-tab { min-height: 39px; padding-inline: 12px; }
  .table-panel { border-radius: 17px; overflow: hidden; }
  .table-panel-titlebar { padding: 14px; }
  .table-panel-titlebar h2 { font-size: 16px; }
  .table-panel-titlebar p { font-size: 9px; }
  .table-toolbar { padding: 10px; }
  .table-wrap { max-height: none; overflow: visible; padding: 8px; background: #f8f6fb; }
  table, tbody { display: block; width: 100%; }
  thead { display: none; }
  table { min-width: 0 !important; table-layout: auto !important; }
  tbody tr {
    display: block;
    margin: 0 0 9px;
    padding: 8px 0;
    border: 1px solid #e2ddea;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(41,18,75,.04);
  }
  tbody tr:last-child { margin-bottom: 0; }
  tbody td {
    display: grid;
    grid-template-columns: 92px minmax(0,1fr);
    gap: 10px;
    width: 100% !important;
    padding: 6px 11px;
    border: 0;
    align-items: start;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  tbody td::before {
    color: #918a9e;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .07em;
    line-height: 1.5;
  }
  tbody td[data-col="client"]::before { content: "Client"; }
  tbody td[data-col="email"]::before { content: "Email"; }
  tbody td[data-col="phone"]::before { content: "Phone"; }
  tbody td[data-col="requirements"]::before { content: "Requirements"; }
  tbody td[data-col="submitted"]::before { content: "Submitted"; }
  tbody td[data-col="reference"]::before { content: "Reference"; }
  tbody td[data-col="originalPrice"]::before { content: "Original"; }
  tbody td[data-col="finalPrice"]::before { content: "Final"; }
  tbody td[data-col="status"]::before { content: "Status"; }
  tbody td[data-col="client"] strong { font-size: 13px; }
  .requirement-formats { margin-top: 5px; }
  .status-pill { justify-self: start; }
  .table-pagination { padding: 10px; }
  .pagination-copy { white-space: normal; }
}

/* Admin editor: mobile is edit-first, preview-second; nothing is hidden above the fold. */
@media (max-width: 1100px) {
  .admin-editor-workspace { grid-template-columns: minmax(0,1fr); }
  .admin-editor-pane { order: 1; }
  .admin-preview-pane { order: 2; }
  .admin-preview-sticky {
    position: static !important;
    top: auto;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 700px) {
  .drawer { height: 100dvh; min-height: 100dvh; }
  .drawer-head {
    padding: 10px 12px;
    min-height: 68px;
    align-items: center;
  }
  .drawer-head span { font-size: 8px; }
  .drawer-head h2 { margin-top: 2px; font-size: 19px; }
  .drawer-quote-id { margin-top: 2px; font-size: 9px; }
  .drawer-head .icon-btn { flex: 0 0 auto; }
  .drawer-body {
    padding: 10px 8px 22px;
    scroll-padding-bottom: 130px;
    -webkit-overflow-scrolling: touch;
  }
  .admin-editor-workspace { gap: 12px; }
  .admin-editor-pane, .admin-preview-browser { border-radius: 16px; }
  .workspace-section { padding: 15px 13px; }
  .workspace-section-head { margin-bottom: 12px; gap: 8px; }
  .workspace-section-head h3 { font-size: 16px; }
  .source-of-truth-pill { padding: 5px 7px; font-size: 8px; }
  .workspace-help { font-size: 10px; line-height: 1.5; }
  .editor-requirements-grid { grid-template-columns: 1fr !important; gap: 10px; }
  .editor-requirements-grid .full-span { grid-column: auto; }
  .admin-format-checkboxes { grid-template-columns: 1fr 1fr; gap: 7px; }
  .client-link-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
  .client-link-input { grid-column: 1 / -1; }
  .mini-btn { min-height: 40px; padding: 0 8px; }
  .drawer-pricing { padding: 11px; }
  .payment-activity-card { padding: 12px; }
  .payment-activity-summary { grid-template-columns: 1fr 1fr; }
  .payment-history-item { align-items: flex-start; flex-direction: column; gap: 3px; }

  .admin-preview-label { margin-top: 2px; }
  .admin-preview-hero { padding: 22px 14px 19px; }
  .admin-preview-hero h2 { font-size: 24px; }
  .admin-preview-hero p { font-size: 9px; }
  .admin-preview-body { padding: 10px; }
  .admin-preview-confirm { padding: 11px; }
  .admin-preview-card { padding: 12px; }
  .admin-preview-card-head { gap: 8px; }
  .admin-preview-line { gap: 10px; font-size: 10px; }
  .admin-preview-line.final strong { font-size: 22px; }

  .drawer-footer {
    padding: 8px 9px max(8px, env(safe-area-inset-bottom));
    gap: 7px;
    background: rgba(255,255,255,.98);
  }
  .drawer-footer-right { grid-template-columns: .8fr 1.2fr; gap: 7px; }
  .drawer-footer button { min-height: 42px; padding-inline: 8px; font-size: 10px; }
  #deleteDrawerBtn { min-height: 38px; }
}

@media (max-width: 420px) {
  .admin-format-checkboxes { grid-template-columns: 1fr; }
  .payment-activity-summary { grid-template-columns: 1fr; }
  .drawer-footer-right { grid-template-columns: 1fr 1.35fr; }
}


/* =========================================================
   V33 — final simplified mobile conversion bar
   ========================================================= */
@media (max-width: 980px) {
  body:not(.summary-mode) .client-main {
    padding-bottom: calc(225px + env(safe-area-inset-bottom));
  }

  .mobile-estimate-bar {
    display: block;
    left: 10px;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    border: 1px solid rgba(218,209,238,.98);
    border-radius: 20px;
    background: rgba(255,255,255,.985);
    box-shadow: 0 20px 54px rgba(40,18,82,.22), 0 2px 10px rgba(40,18,82,.08);
    overflow: hidden;
  }

  .mobile-estimate-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 7px;
  }

  .mobile-estimate-toggle {
    width: 100%;
    min-height: 59px;
    padding: 8px 10px 8px 13px;
    border: 0;
    border-radius: 14px;
    background: #f8f5ff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
  }

  .mobile-estimate-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
  }
  .mobile-estimate-copy small {
    color: #716881;
    font-size: 9px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
  }
  .mobile-estimate-copy strong {
    color: #6d34df;
    font-size: 23px;
    line-height: 1.05;
    letter-spacing: -.035em;
  }
  .mobile-estimate-action {
    flex: 0 0 auto;
    min-height: 31px;
    padding: 0 10px;
    border: 1px solid #ddd0fb;
    border-radius: 999px;
    background: #fff;
    color: #6630c9;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
  }

  .mobile-estimate-submit {
    width: 100%;
    min-width: 0;
    min-height: 66px;
    margin: 7px 0 0;
    padding: 9px 12px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg,#7f42ef 0%,#6b31df 55%,#5820bd 100%);
    box-shadow: 0 11px 24px rgba(94,42,198,.25);
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
  }
  .mobile-estimate-submit:active { transform: translateY(1px); }
  .mobile-cta-badge {
    display: grid;
    place-items: center;
    min-width: 54px;
    height: 38px;
    padding: 0 8px;
    border-radius: 11px;
    color: #5f28c3;
    background: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -.01em;
  }
  .mobile-cta-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
  }
  .mobile-cta-copy strong {
    color: #fff;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: -.015em;
  }
  .mobile-cta-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255,255,255,.78);
    font-size: 8.5px;
    line-height: 1.2;
    font-weight: 650;
  }
  .mobile-cta-arrow {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
  }

  .mobile-estimate-details {
    max-height: 0;
    overflow: hidden;
    padding: 0 14px;
    background: #fff;
    transition: max-height .2s ease, padding .2s ease;
  }
  .mobile-estimate-bar.expanded .mobile-estimate-details {
    max-height: min(46dvh, 410px);
    padding: 14px 14px 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid #eee8f7;
  }
  .mobile-estimate-details-head {
    position: sticky;
    top: -14px;
    z-index: 2;
    padding: 2px 0 8px;
    background: #fff;
  }
  .mobile-estimate-breakdown .breakdown-row {
    gap: 12px;
    padding: 6px 0;
    font-size: 10px;
  }
  .mobile-estimate-breakdown .breakdown-row span { min-width: 0; }
  .mobile-estimate-breakdown .breakdown-row strong { flex: 0 0 auto; text-align: right; }

  .mobile-discount-preview {
    margin-top: 10px;
    padding: 11px 12px;
    border: 1px solid #e4d8fa;
    border-radius: 13px;
    background: #faf7ff;
    display: grid;
    gap: 7px;
  }
  .mobile-discount-preview > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    color: #716881;
    font-size: 9.5px;
  }
  .mobile-discount-preview strong { color: #25183d; font-size: 11px; }
  .mobile-discount-preview-save, .mobile-discount-preview-save strong { color: #6a31d7 !important; }
  .mobile-discount-preview-final {
    margin-top: 2px;
    padding-top: 8px;
    border-top: 1px solid #e4daf5;
    color: #25183d !important;
    font-weight: 800;
  }
  .mobile-discount-preview-final strong {
    color: #6d34df;
    font-size: 16px;
    letter-spacing: -.02em;
  }

  .question:last-child { padding-bottom: 26px; }
}

@media (max-width: 640px) {
  body:not(.summary-mode) .client-main {
    padding-bottom: calc(215px + env(safe-area-inset-bottom));
  }
  .mobile-estimate-bar { left: 7px; right: 7px; border-radius: 17px; }
  .mobile-estimate-main { padding: 6px; }
  .mobile-estimate-toggle { min-height: 56px; padding: 7px 9px 7px 11px; border-radius: 12px; }
  .mobile-estimate-copy strong { font-size: 21px; }
  .mobile-estimate-action { min-height: 29px; padding: 0 8px; font-size: 8.5px; }
  .mobile-estimate-submit { min-height: 63px; margin-top: 6px; padding: 8px 10px; border-radius: 12px; gap: 8px; }
  .mobile-cta-badge { min-width: 49px; height: 35px; border-radius: 10px; font-size: 10px; }
  .mobile-cta-copy strong { font-size: 12px; }
  .mobile-cta-copy small { font-size: 8px; }
  .mobile-cta-arrow { width: 25px; height: 25px; font-size: 15px; }
}

@media (max-width: 380px) {
  .mobile-estimate-action { display: inline-flex; }
  .mobile-estimate-copy strong { font-size: 20px; }
  .mobile-estimate-submit { grid-template-columns: auto minmax(0,1fr); }
  .mobile-cta-arrow { display: none; }
  .mobile-cta-copy strong { font-size: 11.5px; }
  .mobile-cta-copy small { font-size: 7.7px; }
}


/* V34: reveal discount value only on submitted summary */
.mobile-discount-locked .mobile-discount-message {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding-top:10px;
  margin-top:8px;
  border-top:1px solid rgba(109,72,184,.12);
}
.mobile-discount-locked .mobile-discount-message span {
  color:var(--muted);
  font-size:10px;
  font-weight:650;
}
.mobile-discount-locked .mobile-discount-message strong {
  color:#6f35dc;
  font-size:10px;
  font-weight:800;
  text-align:right;
}


/* Live-chat clearance: keep the mobile estimate bar (and its Submit button) above the
   MultiDesk chat widget, which is pinned to the bottom of the screen.
   Widget footprint: up to ~102px tall on tablets, 88px (76px bar + 12px gap) on phones. */
@media (max-width: 980px) {
  .mobile-estimate-bar { bottom: calc(112px + env(safe-area-inset-bottom)); }
  body:not(.summary-mode) .client-main { padding-bottom: calc(330px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .mobile-estimate-bar { bottom: calc(98px + env(safe-area-inset-bottom)); }
  body:not(.summary-mode) .client-main { padding-bottom: calc(310px + env(safe-area-inset-bottom)); }
}


/* Two-line Submit button in the price summary */
.primary-btn.unlock-btn-stacked { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: auto; padding-top: 12px; padding-bottom: 12px; line-height: 1.1; }
.unlock-btn-stacked .unlock-btn-main { font-size: 18px; font-weight: 800; letter-spacing: .08em; }
.unlock-btn-stacked .unlock-btn-sub { font-size: 12px; font-weight: 600; opacity: .85; }


/* Mobile bar: same look as the desktop Submit button — a white pill on the purple offer strip,
   with SUBMIT (large) over "view discounted price" (small) in purple. */
.mobile-estimate-submit.mobile-submit-stacked { display: block; min-height: 0; padding: 8px; text-align: center; }
.mobile-cta-copy.mobile-cta-submit {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 54px; padding: 9px 12px; border-radius: 12px;
  background: #fff; box-shadow: 0 9px 22px rgba(26,3,57,.18);
}
.mobile-cta-copy.mobile-cta-submit strong { color: #5b25ca; font-size: 20px; font-weight: 800; letter-spacing: .08em; line-height: 1.1; }
.mobile-cta-copy.mobile-cta-submit small { color: #6f35dc; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: normal; overflow: visible; }


/* Integrated ABP website navigation */
.back-to-main-site{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border:1px solid rgba(255,255,255,.22);border-radius:999px;color:#fff;text-decoration:none;font-size:12px;font-weight:700;letter-spacing:.01em;transition:background .2s ease,border-color .2s ease,transform .2s ease;white-space:nowrap}.back-to-main-site:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.38);transform:translateY(-1px)}.landing-back-link{margin-top:18px}.admin-main-site-link{min-height:34px;padding:0 12px}@media(max-width:680px){.topbar{gap:10px;flex-wrap:wrap}.topbar .back-to-main-site{order:3;width:100%}.landing-back-link{width:auto}.admin-main-site-link{display:none}}

/* V39 readability and form clarity. */
html{text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.form-subheading{font-size:14px;line-height:1.6}
.question-title{font-size:15px;line-height:1.5}
.question-price{font-size:13px}
.choice-card label{font-size:13.5px;line-height:1.4}
.estimate-kicker{font-size:12px;line-height:1.4}
.estimate-note,.breakdown-row{font-size:13px;line-height:1.55}
.modal-head p{font-size:13px;line-height:1.6}
.field label{font-size:12px;line-height:1.4}
.text-input,.select-input{height:52px;padding:0 15px;font-size:14px}
.text-area{min-height:112px;padding:14px 15px;font-size:14px;line-height:1.55}
.text-input,.select-input,.text-area{border-color:#cfc7db;background:#fff;box-shadow:0 5px 16px rgba(45,30,73,.06)}
.text-input:focus,.select-input:focus,.text-area:focus{border-color:#9b78ed;box-shadow:0 0 0 4px rgba(113,57,246,.13),0 7px 20px rgba(45,30,73,.08)}
.checkline{font-size:12.5px;line-height:1.55}
.service-note-row{font-size:12.5px;line-height:1.55}
.metric-card small{font-size:11px;line-height:1.4}
.table-panel-titlebar p{font-size:12px;line-height:1.5}
.mobile-discount-locked .mobile-discount-message span,
.mobile-discount-locked .mobile-discount-message strong{font-size:12px;line-height:1.4}
.admin-preview-hero p{font-size:13px}
.admin-preview-confirm p,.admin-preview-extra p,.admin-preview-review p{font-size:12px;line-height:1.5}
.admin-preview-card-head{font-size:11px}
.admin-preview-card-head small{font-size:10px}
.admin-preview-card-head strong,.admin-preview-line,.admin-preview-extra strong,.admin-preview-review strong{font-size:12px}
