:root {
  --bg-page: #FAF8F4;
  --bg-card: #FFFFFF;
  --bg-secondary: #F0EDE8;
  --bg-dark: #080A0A;
  --text-primary: #080A0A;
  --text-secondary: #5F5E5A;
  --text-tertiary: #888780;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #B8B5AE;
  --border: rgba(8, 10, 10, 0.12);
  --border-strong: rgba(8, 10, 10, 0.24);
  --accent-blue: #185FA5;
  --accent-blue-bg: #E6F1FB;
  --accent-blue-text: #0C447C;
  --accent-teal: #0F6E56;
  --accent-teal-bg: #E1F5EE;
  --accent-green: #3B6D11;
  --accent-green-bg: #EAF3DE;
  --accent-pink: #D4537E;
  --accent-success-bg: #C0DD97;
  --accent-success-text: #173404;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

/* ============================
   Cross-page transitions
   Page content fades/rises in on load. While you drag the nav pill, a faded
   live preview of whatever destination you're hovering is rendered underneath
   the pill; releasing loads that page for real. The nav is lifted above the
   preview so the pill stays crisp under your finger.
   ============================ */
@keyframes pageContentIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

main.container > *:not(.site-nav) {
  animation: pageContentIn 0.4s cubic-bezier(0.16, 0.84, 0.44, 1) both;
}

/* Faded live preview of the drag target. The opaque backdrop masks the current
   page so you only see the (faded) destination. */
.pill-preview {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg-page);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pill-preview.is-shown {
  opacity: 1;
}

.pill-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--bg-page);
  opacity: 0.4;
}

/* Keep the nav pill sharp and interactive above the preview overlay. */
nav.site-nav.pill-preview-lift {
  position: relative;
  z-index: 901;
}

@media (prefers-reduced-motion: reduce) {
  main.container > *:not(.site-nav) {
    animation: none;
  }
  .pill-preview {
    transition: none;
  }
}

.quote-credits-hidden {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.container-wide {
  max-width: 1480px;
}

.container-wide .quote-page {
  padding: 2.5rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Center the nav pill more in the header on desktop. */
@media (min-width: 900px) {
  .nav-left {
    flex: 1;
    min-width: 0;
  }
  .nav-left .nav-menu {
    margin: 0 auto;
  }
}

.nav-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Signed-in account widget (email stacked above the Sign out button). */
.nav-account {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.nav-account-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 240px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-account-email i {
  font-size: 15px;
  color: var(--text-tertiary);
  flex: none;
}

.nav-signout-btn {
  padding: 6px 12px;
  font-size: 11px;
}

.nav-menu {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-secondary);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.nav-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-link i { font-size: 14px; }

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--text-primary);
  color: var(--bg-card);
}

/* Sliding highlight shared by track-style pill toggles (nav menu, billing
   toggle, admin edit-mode tabs). A single glider slides behind the active
   option instead of each option's background snapping on/off. */
.pill-glider {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-radius: var(--radius-pill);
  background: var(--text-primary);
  box-shadow: 0 2px 8px rgba(8, 10, 10, 0.16);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.4, 0.8, 0.3, 1),
    width 0.32s cubic-bezier(0.4, 0.8, 0.3, 1),
    height 0.32s cubic-bezier(0.4, 0.8, 0.3, 1);
}

.nav-menu.pill-sliding,
.billing-toggle.pill-sliding,
.admin-edit-mode-tabs.pill-sliding {
  position: relative;
}

.pill-sliding > a,
.pill-sliding > button {
  position: relative;
  z-index: 1;
}

/* The glider draws the active fill, so remove each item's own active styling. */
.pill-sliding .nav-link.active,
.pill-sliding.billing-toggle button.active,
.pill-sliding .admin-edit-mode-tab.active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .pill-glider {
    transition: none;
  }
}

/* Drag-to-traverse on the nav pill: grab the highlight and slide between pages. */
.nav-menu.pill-draggable {
  cursor: grab;
}

.nav-menu.pill-draggable .nav-link {
  cursor: inherit;
}

.nav-menu.pill-dragging,
.nav-menu.pill-dragging .nav-link {
  cursor: grabbing;
}

.nav-menu.pill-dragging {
  user-select: none;
}

/* Snap a touch quicker while the finger is down so it feels responsive. */
.nav-menu.pill-dragging .pill-glider {
  transition-duration: 0.16s;
}

/* While dragging, the glider sits on the candidate item, so drive the
   highlighted text color from the candidate rather than the real active link. */
.nav-menu.pill-dragging .nav-link.active {
  color: var(--text-secondary);
}

.nav-menu.pill-dragging .nav-link.pill-drag-active {
  color: var(--bg-card);
}

.nav-link-button {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

/* Admin Center button is hidden for non-admin users (see auth gating). */
#admin-toggle-btn[hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .nav-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .nav-menu {
    flex-wrap: wrap;
  }
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 28px;
  width: auto;
  display: block;
}

.admin-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.admin-toggle-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent-blue);
  margin-bottom: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.hero-title {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero-title-muted {
  color: var(--text-tertiary);
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
}

.billing-toggle button {
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: color 0.15s, background 0.15s;
}

.billing-toggle button:hover {
  color: var(--text-primary);
}

.billing-toggle button.active {
  background: var(--text-primary);
  color: var(--bg-card);
  font-weight: 500;
}

.badge-savings {
  background: var(--accent-success-bg);
  color: var(--accent-success-text);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.controls-note {
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.config-panel {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.config-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.config-label {
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.reset-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.reset-btn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-card);
}

.reset-btn i {
  font-size: 13px;
}

.config-field label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.volume-sliders {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1rem;
}

.volume-sliders:empty {
  margin-top: 0;
}

.volume-empty {
  margin-top: 1rem;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}

.uc-slider-row {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uc-slider-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.uc-slider-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.uc-info-boxes {
  display: flex;
  gap: 6px;
}

.uc-info-box {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 10px;
  white-space: nowrap;
}

.uc-info-price {
  background: var(--accent-blue-bg);
  color: var(--accent-blue-text);
  border-color: transparent;
}

.uc-slider-row .uc-slider-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.uc-volume-number {
  width: 100px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color 0.15s;
}

.uc-volume-number:hover { border-color: var(--border-strong); }
.uc-volume-number:focus { outline: none; border-color: var(--text-primary); }

.uc-volume-suffix {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.uc-slider-row input[type="range"] {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.uc-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--bg-dark);
  border-radius: 50%;
  cursor: grab;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 1px var(--bg-dark);
}

.uc-slider-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--bg-dark);
  border-radius: 50%;
  cursor: grab;
  border: 3px solid var(--bg-dark);
  box-shadow: 0 0 0 1px var(--bg-dark);
}

.recommendation-note {
  margin-top: 1rem;
  background: var(--accent-blue-bg);
  color: var(--accent-blue-text);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.recommendation-note i {
  font-size: 14px;
}

/* display:flex above overrides the default [hidden] behavior, so hide
   explicitly when the note is toggled off. */
.recommendation-note[hidden] {
  display: none;
}

.quote-preview-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 14px 18px;
  border-radius: var(--radius-lg, 16px);
  background: var(--accent-blue-bg);
  border: 1px solid color-mix(in srgb, var(--accent-blue-text) 22%, transparent);
}

.quote-preview-banner[hidden] {
  display: none !important;
}

.quote-preview-banner-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-blue-text);
}

.quote-preview-banner-info > i {
  font-size: 22px;
  flex-shrink: 0;
}

.quote-preview-banner-title {
  font-size: 13px;
  font-weight: 600;
}

.quote-preview-banner-label {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.quote-preview-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .quote-preview-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .quote-preview-banner-actions {
    justify-content: stretch;
  }
  .quote-preview-banner-actions button {
    flex: 1;
    justify-content: center;
  }
}

.tier-card.disabled {
  opacity: 0.4;
  pointer-events: none;
  filter: grayscale(60%);
}

.tier-card.disabled:hover {
  border-color: var(--border);
  transform: none;
  box-shadow: none;
}

.tier-card.fits {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(24, 95, 165, 0.15);
}

.dropdown-trigger {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  min-height: 40px;
  transition: border-color 0.15s, border-radius 0.15s;
  position: relative;
  z-index: 2;
}

.dropdown-trigger:hover { border-color: var(--border-strong); }

.dropdown-trigger.open {
  border-color: var(--border-strong);
  border-bottom-color: transparent;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.dropdown-trigger i { transition: transform 0.15s; color: var(--text-secondary); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.chip-placeholder {
  font-size: 13px;
  color: var(--text-tertiary);
  padding: 2px 4px;
}

.chip {
  background: var(--accent-blue-bg);
  color: var(--accent-blue-text);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 500;
}

.chip i {
  font-size: 10px;
  cursor: pointer;
  opacity: 0.6;
}

.chip i:hover { opacity: 1; }

.chip-more {
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 2px 4px;
}

.dropdown-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  padding: 1rem;
  margin-top: -1px;
  position: relative;
  z-index: 1;
  max-height: 360px;
  overflow-y: auto;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.dropdown-menu[hidden] { display: none; }

.menu-group { margin-bottom: 0.6rem; }
.menu-group:last-child { margin-bottom: 0; }

.menu-group-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.menu-group-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.uc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  transition: background 0.1s;
}

.uc-row:hover { background: var(--bg-secondary); }

.uc-row input {
  width: 14px;
  height: 14px;
  margin: 0;
  flex: 0 0 auto;
  cursor: pointer;
}

.uc-row span { line-height: 1; }

.slider-control {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

#volume-readout {
  font-size: 13px;
  font-weight: 500;
  min-width: 70px;
}

#volume-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--text-primary);
  border-radius: 50%;
  cursor: pointer;
}

#volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--text-primary);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

#volume-suffix {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.tier-card:hover {
  background: var(--accent-blue-bg);
  color: var(--text-primary);
  border: 2px solid var(--accent-blue);
  padding: calc(1.5rem - 1px);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24, 95, 165, 0.12);
}

.tier-card:focus-visible {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.2);
}

.tier-card[aria-pressed="true"] {
  background: var(--accent-blue-bg);
  color: var(--text-primary);
  border: 2px solid var(--accent-blue);
  padding: calc(1.5rem - 1px);
  box-shadow: 0 0 0 2px rgba(24, 95, 165, 0.15);
}

/* Quote-preview lock: while a saved quote is loaded, only the previewed tier
   stays interactive. The other cards drop back to their base state — no hover,
   no pointer, not clickable. */
#landing-view.preview-locked .tier-card:not([aria-pressed="true"]) {
  pointer-events: none;
  cursor: default;
}

#landing-view.preview-locked .tier-card[aria-pressed="true"] {
  cursor: pointer;
}

.tier-card:hover h3,
.tier-card:hover .price,
.tier-card[aria-pressed="true"] h3,
.tier-card[aria-pressed="true"] .price { color: var(--text-primary); }

.tier-card:hover .tier-header p,
.tier-card:hover .period,
.tier-card:hover .tier-features,
.tier-card:hover .extra-credits,
.tier-card:hover .annual-note,
.tier-card[aria-pressed="true"] .tier-header p,
.tier-card[aria-pressed="true"] .period,
.tier-card[aria-pressed="true"] .tier-features,
.tier-card[aria-pressed="true"] .extra-credits,
.tier-card[aria-pressed="true"] .annual-note { color: var(--text-secondary); }

.tier-card:hover .tier-features li i,
.tier-card[aria-pressed="true"] .tier-features li i { color: var(--text-secondary); }

/* Force active tier states to stay blue (not dark). */
.tier-card:hover,
.tier-card[aria-pressed="true"],
.tier-card.fits {
  background: var(--accent-blue-bg) !important;
  color: var(--text-primary) !important;
  border-color: var(--accent-blue) !important;
}

.tier-card:hover h3,
.tier-card:hover .price,
.tier-card[aria-pressed="true"] h3,
.tier-card[aria-pressed="true"] .price,
.tier-card.fits h3,
.tier-card.fits .price {
  color: var(--text-primary) !important;
}

.tier-card:hover .tier-header p,
.tier-card:hover .period,
.tier-card:hover .tier-features,
.tier-card:hover .extra-credits,
.tier-card:hover .annual-note,
.tier-card[aria-pressed="true"] .tier-header p,
.tier-card[aria-pressed="true"] .period,
.tier-card[aria-pressed="true"] .tier-features,
.tier-card[aria-pressed="true"] .extra-credits,
.tier-card[aria-pressed="true"] .annual-note,
.tier-card.fits .tier-header p,
.tier-card.fits .period,
.tier-card.fits .tier-features,
.tier-card.fits .extra-credits,
.tier-card.fits .annual-note,
.tier-card:hover .tier-features li i,
.tier-card[aria-pressed="true"] .tier-features li i,
.tier-card.fits .tier-features li i {
  color: var(--text-secondary) !important;
}

.featured-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-pink);
  color: var(--text-on-dark);
  font-size: 10px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.tier-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 1rem;
}

.tier-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.icon-blue { background: var(--accent-blue-bg); color: var(--accent-blue); }
.icon-teal { background: var(--accent-teal-bg); color: var(--accent-teal); }
.icon-green { background: var(--accent-green-bg); color: var(--accent-green); }
.icon-pink { background: rgba(212, 83, 126, 0.14); color: var(--accent-pink); }
.icon-on-dark { background: rgba(212, 83, 126, 0.14); color: var(--accent-pink); }

.tier-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
}

.tier-header p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.tier-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 0.25rem;
}

.price {
  font-size: 24px;
  font-weight: 500;
}

.period {
  font-size: 12px;
  color: var(--text-secondary);
}

.annual-note {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
  min-height: 14px;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 12px;
  line-height: 1.6;
}

.tier-features li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.tier-features li i {
  font-size: 13px;
  color: var(--text-secondary);
}

.tier-card-featured .tier-features li i { color: var(--text-secondary); }

.extra-credits {
  font-size: 10px;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.cta {
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  margin-top: auto;
  font-family: inherit;
  transition: opacity 0.15s, transform 0.05s;
}

.cta:active { transform: scale(0.98); }
.cta:hover { opacity: 0.85; }

.cta-secondary {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}

.cta-primary {
  background: var(--bg-card);
  color: var(--bg-dark);
  border: none;
}

.comparison-toggle {
  text-align: center;
  margin-top: 2rem;
}

.comparison-link-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.comparison-link-btn:hover {
  border-color: var(--border-strong);
  background: var(--bg-secondary);
}

.comparison-link-btn i {
  font-size: 14px;
  transition: transform 0.2s ease;
}

.comparison-link-btn[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.comparison-table {
  margin-top: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: fadeSlide 0.25s ease-out;
}

.comparison-table[hidden] {
  display: none;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.comparison-table thead th {
  background: var(--bg-secondary);
  text-align: left;
  padding: 12px 16px;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}

.comparison-table thead th[data-selected="true"] {
  background: rgba(24, 95, 165, 0.08);
  color: var(--accent-blue-text);
}

.comparison-table tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  transition: background 0.2s, color 0.2s;
}

.comparison-table tbody td[data-selected="true"] {
  background: rgba(24, 95, 165, 0.08);
  font-weight: 500;
}

.comparison-table tbody td[data-selected="true"] .check {
  color: var(--accent-blue);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .section-row td {
  background: var(--bg-secondary);
  font-weight: 500;
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 16px;
}

.comparison-table .check {
  color: var(--accent-teal);
  font-size: 16px;
}

.comparison-table .cross {
  color: var(--text-tertiary);
  font-size: 16px;
  opacity: 0.5;
}

.admin-center {
  position: relative;
  background: #fdfcfa;
  border: 1px solid rgba(8, 10, 10, 0.06);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(8, 10, 10, 0.03),
    0 24px 60px -34px rgba(8, 10, 10, 0.26);
  padding: 1.9rem 2rem;
  overflow: hidden;
}

.admin-center::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24, 95, 165, 0.35), rgba(15, 110, 86, 0.28), transparent);
  opacity: 0.85;
}

@keyframes accentFlow {
  to {
    background-position: 220% 0;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-center::before,
  .quote-page::before {
    animation: none;
  }
}

.admin-center-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(8, 10, 10, 0.08);
}

.admin-center-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--text-tertiary);
  background: transparent;
  border: 1px solid rgba(8, 10, 10, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  margin-bottom: 12px;
}

.admin-center-label i {
  color: var(--accent-blue);
}

.admin-center h2 {
  margin: 0;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.admin-center-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0.9rem 0 1.25rem;
  max-width: 760px;
}

.admin-mode-panel {
  background: #ffffff;
  border: 1px solid rgba(8, 10, 10, 0.07);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(8, 10, 10, 0.03);
}

.admin-mode-header {
  margin-bottom: 10px;
}

.admin-mode-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.admin-mode-subtitle {
  font-size: 12px;
  color: #66635c;
}

.admin-edit-mode-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 10px;
  background: #f5f2ed;
  border: 1px solid rgba(8, 10, 10, 0.08);
  border-radius: 999px;
  padding: 4px;
}

.admin-edit-mode-tab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 7px 12px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.admin-edit-mode-tab.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--text-on-dark);
  box-shadow: 0 2px 8px rgba(8, 10, 10, 0.18);
}

.admin-sync-experience {
  display: grid;
  gap: 10px;
  margin-top: 0.5rem;
}

/* The display:grid above overrides the default [hidden] behavior, so the
   Step 1/2/3 panels would otherwise leak into per-job mode. Force it hidden. */
.admin-sync-experience[hidden] {
  display: none;
}

.admin-sync-step {
  background: #ffffff;
  border: 1px solid rgba(8, 10, 10, 0.07);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(8, 10, 10, 0.03);
  transition: border-color 0.2s ease;
}

.admin-sync-step:hover {
  border-color: rgba(8, 10, 10, 0.12);
}

.admin-sync-step-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  min-width: 56px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue-text);
  background: var(--accent-blue-bg);
  border: 1px solid color-mix(in srgb, var(--accent-blue-text) 14%, transparent);
  margin-bottom: 10px;
}

.admin-sync-step h3 {
  margin: 0 0 4px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.admin-sync-step p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 12px;
}

.admin-sync-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  align-items: end;
}

.admin-sync-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #66635c;
  font-weight: 500;
}

.admin-sync-field-label {
  display: block;
  line-height: 1.3;
  font-weight: 600;
}

.admin-sync-fields input {
  width: 100%;
  height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(8, 10, 10, 0.14);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.admin-sync-fields input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}

.admin-sync-estimate {
  margin-top: 10px;
  border-top: 1px dashed rgba(8, 10, 10, 0.16);
  padding-top: 10px;
  display: grid;
  gap: 6px;
}

.admin-sync-estimate-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}

.admin-sync-estimate-row strong {
  color: var(--text-primary);
  font-weight: 700;
  display: inline-block;
  transform-origin: right center;
}

.admin-sync-estimate-row strong.value-bump {
  animation: valueBump 0.45s ease;
}

@keyframes valueBump {
  0% { transform: scale(1); }
  35% { transform: scale(1.12); color: var(--accent-blue); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .admin-sync-estimate-row strong.value-bump {
    animation: none;
  }
}

.admin-sync-job-list {
  display: grid;
  gap: 8px;
}

.admin-sync-job-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
}

.admin-sync-job-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.admin-sync-job-volume {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-sync-job-volume input {
  width: 100px;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 12px;
}

.admin-sync-job-volume span {
  font-size: 11px;
  color: var(--text-tertiary);
}

.admin-sync-single-volume {
  max-width: 360px;
}

.admin-sync-single-volume label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.admin-sync-single-volume-row {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-sync-single-volume-row input {
  width: 160px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: inherit;
}

.admin-sync-single-volume-row span {
  font-size: 11px;
  color: var(--text-tertiary);
}

.admin-sync-volume-card {
  background: #f7f4ef;
  border: 1px solid rgba(8, 10, 10, 0.1);
  border-radius: 12px;
  padding: 12px;
  display: inline-block;
  margin-bottom: 10px;
}

.admin-sync-volume-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.admin-sync-volume-input-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-sync-volume-input-row input {
  width: 180px;
  padding: 10px 12px;
  border: 1px solid rgba(8, 10, 10, 0.16);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
}

.admin-sync-volume-input-row span {
  font-size: 12px;
  color: var(--text-tertiary);
}

.admin-sync-usecase-title {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

/* --- Sync-mode ramp-up step --- */
.admin-ramp-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-ramp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-ramp-field .admin-sync-volume-input-row input {
  width: 150px;
}

.admin-ramp-field input[readonly] {
  background: #f7f4ef;
  color: var(--text-secondary);
  cursor: default;
}

.admin-ramp-table-wrap {
  border: 1px solid rgba(8, 10, 10, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.admin-ramp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-ramp-table th,
.admin-ramp-table td {
  text-align: right;
  padding: 8px 14px;
}

.admin-ramp-table th:first-child,
.admin-ramp-table td:first-child {
  text-align: left;
}

.admin-ramp-table thead th {
  background: #f7f4ef;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
}

.admin-ramp-table tbody tr + tr td {
  border-top: 1px solid rgba(8, 10, 10, 0.06);
}

.admin-ramp-table tbody tr.is-ramp-complete td {
  background: var(--accent-blue-bg);
  color: var(--accent-blue-text);
  font-weight: 600;
}

.admin-ramp-note {
  margin: 10px 2px 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-tertiary);
}

.admin-ramp-note strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- Ramp-up table on the quote page --- */
.quote-rampup-table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.quote-rampup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.quote-rampup-table th,
.quote-rampup-table td {
  padding: 9px 16px;
}

.quote-rampup-table th.num,
.quote-rampup-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.quote-rampup-table thead th {
  background: var(--bg-secondary);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 600;
  text-align: left;
}

.quote-rampup-table tbody tr + tr td {
  border-top: 1px solid var(--border);
}

.quote-rampup-note {
  margin: 10px 2px 0;
  font-size: 12px;
  color: var(--text-tertiary);
}

.admin-sync-usecase-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-sync-usecase-chip {
  display: inline-flex;
  align-items: center;
  background: #f7f4ef;
  border: 1px solid rgba(8, 10, 10, 0.12);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-secondary);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.admin-sync-usecase-chip:hover {
  border-color: var(--border-strong);
}

.admin-sync-usecase-chip.active {
  background: var(--accent-blue-bg);
  border-color: var(--accent-blue);
  color: var(--accent-blue-text);
  font-weight: 600;
}

.sync-preview-controls {
  margin-top: 1rem;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
}

.sync-preview-controls label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.sync-preview-volume-row {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sync-preview-volume-row input {
  width: 160px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: inherit;
}

/* Frozen entries field while viewing a saved quote. */
.sync-preview-controls.is-locked .sync-preview-volume-row input {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.sync-preview-controls.is-locked .sync-preview-volume-row input::-webkit-outer-spin-button,
.sync-preview-controls.is-locked .sync-preview-volume-row input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sync-preview-volume-row span {
  font-size: 11px;
  color: var(--text-tertiary);
}

.sync-preview-note {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}

.admin-saved-quotes-panel {
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid rgba(8, 10, 10, 0.08);
  border-radius: 12px;
  padding: 10px;
}

/* Always-visible saved-quotes list at the bottom of the Admin Center. */
.admin-saved-quotes-standalone {
  margin: 1.75rem 0 0.5rem;
  padding: 14px 16px;
  border-radius: 16px;
}

.admin-saved-quotes-header {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.admin-saved-quotes-standalone .admin-saved-quotes-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}

.admin-saved-quotes-standalone .admin-saved-quotes-header i {
  font-size: 15px;
  color: var(--accent-blue);
}

.admin-saved-quotes-list {
  display: flex;
  flex-direction: column;
}

.admin-saved-quote-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  border-radius: 10px;
  padding: 10px 8px;
  background: transparent;
  transition: background 0.15s ease;
}

.admin-saved-quote-card + .admin-saved-quote-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--border);
}

.admin-saved-quote-card:hover { background: var(--bg-secondary); }
.admin-saved-quote-card:hover::after,
.admin-saved-quote-card:hover + .admin-saved-quote-card::after { background: transparent; }

/* Highlight the quote currently loaded into the editor with a soft accent
   tint and a subtle ring, rather than a harsh solid fill. */
.admin-saved-quote-card.is-loaded {
  background: var(--accent-blue-bg);
  box-shadow: inset 0 0 0 1px rgba(24, 95, 165, 0.28);
}
.admin-saved-quote-card.is-loaded:hover { background: var(--accent-blue-bg); }
.admin-saved-quote-card.is-loaded::after,
.admin-saved-quote-card.is-loaded + .admin-saved-quote-card::after { background: transparent; }
.admin-saved-quote-card.is-loaded .admin-saved-quote-title { color: var(--accent-blue-text); }

.admin-saved-quote-main {
  min-width: 0;
  flex: 1;
}

.admin-saved-quote-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-saved-quote-meta {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-tertiary);
}

.quote-tag-roi {
  background: var(--accent-teal-bg);
  color: var(--accent-teal);
}

.admin-saved-quote-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.admin-saved-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-saved-quote-btn:hover {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.admin-saved-quote-btn.is-active {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
  cursor: default;
}
.admin-saved-quote-btn.is-active:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

.admin-saved-quote-btn.is-danger {
  padding: 6px 9px;
  color: var(--text-tertiary);
}

/* On the loaded card, keep the delete icon legible against the tint. */
.admin-saved-quote-card.is-loaded .admin-saved-quote-btn.is-danger {
  background: transparent;
  border-color: rgba(24, 95, 165, 0.25);
}

.admin-saved-quote-btn.is-danger i { font-size: 15px; }

.admin-saved-quote-btn.is-danger:hover {
  background: #FCE9E7;
  border-color: #FCE9E7;
  color: #C0392B;
}

.admin-saved-quotes-empty {
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
}

.admin-tier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.9rem;
}

.admin-billing-toggle {
  margin-bottom: 1rem;
}

.admin-tier-tab {
  border: 1px solid rgba(8, 10, 10, 0.12);
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.08s;
}

.admin-tier-tab:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: #f7f4ef;
}

.admin-tier-tab.active {
  background: var(--text-primary);
  color: var(--text-on-dark);
  border-color: var(--text-primary);
  box-shadow: 0 2px 8px -3px rgba(8, 10, 10, 0.3);
}

.admin-tier-tab.active:hover {
  background: var(--text-primary);
  color: var(--text-on-dark);
}

.admin-platform-row {
  margin-bottom: 1rem;
}

.admin-platform-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.admin-platform-row input {
  width: 240px;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(8, 10, 10, 0.14);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
}

.admin-platform-row input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15);
}

.admin-quote-display-section {
  margin-bottom: 1rem;
  background: #ffffff;
  border: 1px solid rgba(8, 10, 10, 0.07);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(8, 10, 10, 0.03);
  padding: 14px 16px;
}

.admin-quote-display-header {
  margin-bottom: 10px;
}

.admin-quote-display-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-quote-display-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: #66635c;
}

.admin-quote-display-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.admin-quote-display-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #66635c;
  font-weight: 600;
}

.admin-quote-display-input-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid rgba(8, 10, 10, 0.14);
  border-radius: 10px;
  background: #fff;
  min-width: 240px;
  width: min(360px, 100%);
}

.admin-quote-display-field input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  padding: 2px 0;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: transparent;
}

.admin-quote-display-input-row:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}

#admin-display-credits-suffix {
  font-size: 11px;
  color: #7a776f;
  font-weight: 600;
  white-space: nowrap;
}

.admin-quote-display-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #55524b;
  font-weight: 500;
  padding: 9px 10px;
  border: 1px solid rgba(8, 10, 10, 0.12);
  border-radius: 10px;
  background: #f7f4ef;
  white-space: nowrap;
}

.admin-quote-display-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.admin-table-wrap {
  background: #ffffff;
  border: 1px solid rgba(8, 10, 10, 0.07);
  border-radius: 14px;
  overflow-x: auto;
  box-shadow: 0 1px 2px rgba(8, 10, 10, 0.03);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.admin-table th {
  font-size: 12px;
  color: var(--text-secondary);
  background: #f7f4ef;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-table td {
  font-size: 13px;
  background: #fff;
}

.admin-table tbody tr:nth-child(even) td {
  background: #fcfbf8;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(8, 10, 10, 0.14);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-card);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.admin-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.admin-table input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15);
}

.admin-table input[readonly] {
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.admin-volume-field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-volume-field input {
  width: 96px;
}

.admin-volume-field span {
  font-size: 11px;
  color: var(--text-tertiary);
}

.admin-center-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(8, 10, 10, 0.08);
}

.admin-save-btn {
  border: none;
  background: var(--text-primary);
  color: var(--text-on-dark);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 12px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.08s;
}

.admin-save-btn:hover {
  opacity: 0.9;
}

.admin-save-btn:active {
  transform: translateY(1px);
}

.admin-password-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 10, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.admin-password-modal[hidden] {
  display: none;
}

.admin-password-card {
  width: min(420px, calc(100% - 2rem));
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.25rem;
}

.admin-password-card h3 {
  margin: 0 0 0.4rem;
  font-size: 20px;
}

.admin-password-card p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 13px;
}

.admin-password-card label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.admin-password-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
}

.admin-password-card input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15);
}

.admin-password-error {
  color: #B42318;
  font-size: 12px;
  margin-top: 8px;
}

.admin-password-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.quote-cta-wrap {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.create-quote-btn {
  border: none;
  background: var(--text-primary);
  color: var(--text-on-dark);
  border-radius: var(--radius-pill);
  padding: 11px 20px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(8, 10, 10, 0.12);
  transition: transform 0.12s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.create-quote-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -8px rgba(8, 10, 10, 0.45);
}

.create-quote-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(8, 10, 10, 0.12);
}

.quote-page {
  position: relative;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(24, 95, 165, 0.05) 0%, rgba(24, 95, 165, 0) 42%),
    linear-gradient(180deg, #ffffff 0%, #fbf9f6 100%);
  border: 1px solid rgba(8, 10, 10, 0.07);
  border-radius: 22px;
  box-shadow:
    0 1px 2px rgba(8, 10, 10, 0.04),
    0 18px 44px -20px rgba(8, 10, 10, 0.22);
  padding: 2rem;
  overflow: hidden;
}

.quote-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal), var(--accent-pink), var(--accent-teal), var(--accent-blue));
  background-size: 220% 100%;
  opacity: 0.9;
  animation: accentFlow 9s linear infinite;
}

/* Staggered entrance for the quote + admin surfaces */
.quote-page > *:not([hidden]),
.admin-center > *:not([hidden]) {
  animation: riseIn 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.quote-page > *:nth-child(1),
.admin-center > *:nth-child(1) { animation-delay: 0.04s; }
.quote-page > *:nth-child(2),
.admin-center > *:nth-child(2) { animation-delay: 0.09s; }
.quote-page > *:nth-child(3),
.admin-center > *:nth-child(3) { animation-delay: 0.14s; }
.quote-page > *:nth-child(4),
.admin-center > *:nth-child(4) { animation-delay: 0.19s; }
.quote-page > *:nth-child(5),
.admin-center > *:nth-child(5) { animation-delay: 0.24s; }
.quote-page > *:nth-child(6),
.admin-center > *:nth-child(6) { animation-delay: 0.29s; }
.quote-page > *:nth-child(n + 7),
.admin-center > *:nth-child(n + 7) { animation-delay: 0.34s; }

/* Per-row reveal applied on first quote render */
.quote-table tbody tr.qp-row-in {
  animation: riseIn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .quote-page > *,
  .admin-center > *,
  .quote-table tbody tr.qp-row-in {
    animation: none !important;
  }
}

.quote-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(8, 10, 10, 0.08);
}

.quote-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-blue-text);
  background: var(--accent-blue-bg);
  border: 1px solid color-mix(in srgb, var(--accent-blue-text) 16%, transparent);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  margin-bottom: 10px;
}

.quote-header h1 {
  margin: 0;
  font-size: 33px;
  letter-spacing: -0.015em;
  font-weight: 600;
  line-height: 1.12;
}

.quote-meta {
  font-size: 13px;
  color: #66635c;
  text-align: right;
  display: grid;
  gap: 3px;
}

.quote-back-link {
  border: 1px solid rgba(8, 10, 10, 0.14);
  border-radius: var(--radius-pill);
  padding: 8px 15px;
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.quote-back-link:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: #f7f4ef;
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border: 1px solid rgba(8, 10, 10, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(8, 10, 10, 0.04);
}

.quote-table th,
.quote-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(8, 10, 10, 0.08);
  text-align: left;
  font-size: 13px;
}

.quote-table th {
  font-size: 11px;
  color: #66635c;
  background: #f6f3ee;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 1;
}

.quote-table tbody tr:nth-child(even) td {
  background: #fcfbf8;
}

.quote-table tbody tr:last-child td {
  border-bottom: none;
}

.quote-table .num {
  text-align: right;
}

.quote-totals {
  margin-top: 1.25rem;
  margin-left: auto;
  width: min(440px, 100%);
  background: #ffffff;
  border: 1px solid rgba(8, 10, 10, 0.08);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(8, 10, 10, 0.04), 0 16px 32px -20px rgba(8, 10, 10, 0.25);
  padding: 1.25rem;
}

.quote-total-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 11px;
  font-size: 13px;
  color: var(--text-secondary);
}

.quote-total-row strong {
  color: var(--text-primary);
  font-weight: 600;
}

.quote-total-row:last-child {
  margin-bottom: 0;
}

.quote-total-row.grand {
  margin-top: 14px;
  padding: 13px 16px;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 8px 20px -10px rgba(8, 10, 10, 0.55);
}

.quote-total-row.grand span,
.quote-total-row.grand strong {
  color: var(--text-on-dark);
}

.quote-empty {
  background: #ffffff;
  border: 1px dashed rgba(8, 10, 10, 0.18);
  border-radius: 12px;
  padding: 1.1rem;
  color: var(--text-secondary);
  font-size: 13px;
}

/* Cost breakdown bar */
.quote-breakdown {
  margin-top: 1.25rem;
  margin-left: auto;
  width: min(440px, 100%);
  background: #ffffff;
  border: 1px solid rgba(8, 10, 10, 0.08);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(8, 10, 10, 0.04), 0 16px 32px -20px rgba(8, 10, 10, 0.25);
  padding: 1.1rem 1.25rem 1.25rem;
}

.quote-breakdown-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.quote-breakdown-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #66635c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quote-breakdown-total {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.quote-breakdown-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #f1ede6;
  box-shadow: inset 0 1px 2px rgba(8, 10, 10, 0.08);
}

.quote-breakdown-seg {
  height: 100%;
  width: 0;
  transition: width 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.quote-breakdown-seg + .quote-breakdown-seg {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.5);
}

.quote-breakdown-legend {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.quote-breakdown-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.quote-breakdown-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}

.quote-breakdown-legend-val {
  color: var(--text-primary);
  font-weight: 600;
}

/* Quote table row hover */
.quote-table tbody tr {
  transition: background 0.12s ease;
}

.quote-table tbody tr:hover td {
  background: var(--accent-blue-bg);
}

/* Save success button */
.create-quote-btn.is-saved {
  background: var(--accent-teal);
  animation: savedPop 0.4s ease;
}

@keyframes savedPop {
  0% { transform: scale(1); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

/* Confetti */
.confetti-piece {
  position: fixed;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  z-index: 9999;
  pointer-events: none;
  will-change: transform, opacity;
  animation: confettiFly 1.2s cubic-bezier(0.16, 0.84, 0.44, 1) forwards;
}

@keyframes confettiFly {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .quote-breakdown-seg { transition: none; }
  .create-quote-btn.is-saved { animation: none; }
}

#quote-view-toggle {
  margin-bottom: 1rem;
  background: #f5f2ed;
  border: 1px solid rgba(8, 10, 10, 0.08);
  border-radius: 999px;
  padding: 4px;
}

.quote-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 1rem;
  background: #ffffff;
  border: 1px solid rgba(8, 10, 10, 0.08);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 3px 10px rgba(8, 10, 10, 0.03);
}

.quote-actions input {
  flex: 1;
  min-width: 220px;
  height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(8, 10, 10, 0.14);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.quote-actions input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}

.quote-save-note {
  margin-bottom: 1rem;
  font-size: 12px;
  color: #0f6e56;
  background: #e8f7f1;
  border: 1px solid rgba(15, 110, 86, 0.22);
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 500;
}

.quote-sync-summary {
  background: #ffffff;
  border: 1px solid rgba(8, 10, 10, 0.1);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(8, 10, 10, 0.04);
  padding: 14px;
  margin-bottom: 1rem;
}

.quote-sync-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.quote-sync-grid > div {
  background: #fcfbf8;
  border: 1px solid rgba(8, 10, 10, 0.08);
  border-radius: 10px;
  padding: 10px;
}

.quote-sync-grid span {
  display: block;
  font-size: 11px;
  color: #66635c;
  margin-bottom: 3px;
}

.quote-sync-grid strong {
  font-size: 15px;
}

.quote-sync-usecases-label {
  font-size: 11px;
  color: #66635c;
  margin-bottom: 5px;
  font-weight: 600;
}

.quote-sync-usecases #quote-sync-usecase-list {
  font-size: 13px;
  color: var(--text-primary);
  background: #f7f4ef;
  border: 1px solid rgba(8, 10, 10, 0.08);
  border-radius: 10px;
  padding: 8px 10px;
}

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .config-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 40px; }
}

@media (max-width: 700px) {
  .comparison-table {
    overflow-x: auto;
  }
  .comparison-table table {
    min-width: 600px;
  }
}

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .container { padding: 2rem 1rem; }
  .controls-row { flex-direction: column; align-items: stretch; }
  .admin-sync-fields {
    grid-template-columns: 1fr;
  }
  .admin-sync-job-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .admin-saved-quote-card,
  .admin-saved-quote-actions,
  .quote-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-quote-display-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .admin-quote-display-input-row {
    width: 100%;
    min-width: 0;
  }
  .admin-quote-display-field input {
    width: 100%;
  }
  .admin-quote-display-toggle {
    width: 100%;
    justify-content: flex-start;
  }
  .admin-edit-mode-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .admin-center-header {
    flex-direction: column;
    align-items: stretch;
  }
  .admin-center-actions,
  .admin-password-actions {
    flex-direction: column-reverse;
  }
  .admin-center-actions button,
  .admin-password-actions button {
    width: 100%;
  }
  .quote-header {
    flex-direction: column;
  }
  .quote-meta {
    text-align: left;
  }
}

/* ============================
   View toggle (Table / Calc)
   ============================ */
/* ============================
   View containers
   ============================ */
.view-container[hidden] {
  display: none;
}

/* ============================
   Calculator sections
   ============================ */
.calc-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1rem;
}

.calc-section-title {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 1.25rem;
}

/* ============================
   Pricing mode cards
   ============================ */
.pricing-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pricing-mode {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-primary);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.pricing-mode:hover {
  border-color: var(--border-strong);
}

.pricing-mode.active {
  background: var(--text-primary);
  color: var(--bg-card);
  border-color: var(--text-primary);
}

.pricing-mode i {
  font-size: 22px;
  margin-bottom: 8px;
  display: block;
}

.pricing-mode-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.pricing-mode-sub {
  font-size: 12px;
  opacity: 0.7;
}

/* ============================
   Current tier block
   ============================ */
.current-tier {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.current-tier-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 1rem;
}

.current-tier-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.ct-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.ct-value {
  font-size: 14px;
  font-weight: 500;
}

.ct-suffix {
  color: var(--text-tertiary);
  font-weight: 400;
  font-size: 12px;
}

/* ============================
   Mode-specific inputs
   ============================ */
.mode-input {
  margin-top: 1rem;
}

.input-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.text-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color 0.15s;
}

.text-input:hover { border-color: var(--border-strong); }
.text-input:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15); }

.input-hint {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* ============================
   Use case department list
   ============================ */
.department-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.department {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.department:first-child {
  border-top: none;
  padding-top: 0;
}

.department-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 6px 0;
  user-select: none;
}

.department-name {
  font-size: 14px;
  font-weight: 500;
}

.department-header i {
  font-size: 16px;
  color: var(--text-secondary);
  transition: transform 0.2s;
}

.department.collapsed .department-header i {
  transform: rotate(-180deg);
}

.department-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.department.collapsed .department-options {
  display: none;
}

.uc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.uc-card:hover {
  border-color: var(--border-strong);
}

.uc-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
  accent-color: var(--text-primary);
}

.uc-card-body {
  flex: 1;
  min-width: 0;
}

.uc-card-name {
  font-size: 14px;
  font-weight: 500;
}

.uc-card-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.uc-volume-input {
  width: 100px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  text-align: right;
}

.uc-volume-suffix {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

/* ============================
   Add-ons
   ============================ */
.addon-group-label {
  font-size: 13px;
  font-weight: 500;
  margin: 1rem 0 0.75rem;
  color: var(--text-secondary);
}

.addon-group-label:first-child { margin-top: 0; }

.addon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.addon-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s;
}

.addon-card:hover { border-color: var(--border-strong); }

.addon-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--text-primary);
}

.addon-name {
  font-size: 14px;
  font-weight: 500;
}

.addon-price {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.addon-qty {
  margin-top: 8px;
  width: 80px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
}

/* ============================
   ROI calculator
   ============================ */
.roi-input {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.roi-result {
  text-align: center;
  padding: 1rem 0;
}

.roi-result-value {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 6px;
}

.roi-result-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================
   Order summary
   ============================ */
.order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.order-table th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.order-table th.num,
.order-table td.num {
  text-align: right;
}

.order-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.order-table tr:last-child td {
  border-bottom: none;
}

.order-table .badge-base-plan {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  margin-left: 8px;
}

.order-table .item-name {
  font-weight: 500;
}

/* ============================
   Total
   ============================ */
.calc-total {
  text-align: center;
  background: var(--bg-secondary);
  border: none;
}

.calc-total-label {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: left;
}

.calc-total-value {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.calc-total-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.calc-savings {
  font-size: 13px;
  color: #3B6D11;
  font-weight: 500;
}

@media (max-width: 700px) {
  .pricing-mode-grid,
  .addon-grid,
  .department-options { grid-template-columns: 1fr; }
  .current-tier-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================
   ROI Calculator
   ============================ */
.roi-section {
  margin: 2.5rem 0 2rem;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(24, 95, 165, 0.05) 0%, rgba(24, 95, 165, 0) 45%),
    linear-gradient(180deg, #ffffff 0%, #fbf9f6 100%);
  border: 1px solid rgba(8, 10, 10, 0.08);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(8, 10, 10, 0.04), 0 18px 44px -24px rgba(8, 10, 10, 0.22);
  padding: 2rem;
}

.roi-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.roi-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--accent-blue);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.roi-header h2 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.roi-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 auto;
  max-width: 540px;
}

.roi-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  align-items: start;
}

/* Inputs */
.roi-inputs {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.roi-inputs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
}

.roi-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.roi-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roi-field-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.roi-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.roi-input-wrap:hover { border-color: var(--border-strong); }

.roi-input-wrap:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}

.roi-input-wrap input {
  flex: 1;
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  padding: 9px 0;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.roi-input-wrap input::-webkit-outer-spin-button,
.roi-input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.roi-input-prefix,
.roi-input-suffix {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
  flex-shrink: 0;
}

.roi-slider-field {
  margin-top: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.roi-slider-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.roi-slider-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue-text);
  background: var(--accent-blue-bg);
  border-radius: var(--radius-md);
  padding: 2px 10px;
}

.roi-slider-field input[type="range"] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.roi-slider-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: var(--bg-dark);
  border-radius: 50%;
  cursor: grab;
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 1px var(--bg-dark);
}

.roi-slider-field input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--bg-dark);
  border-radius: 50%;
  cursor: grab;
  border: 3px solid var(--bg-dark);
}

/* Output / results */
.roi-output {
  min-height: 100%;
}

.roi-results[hidden] { display: none; }

.roi-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.roi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.roi-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 8px;
}

.roi-card-value {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.roi-card-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.roi-card-sub {
  font-size: 11px;
  color: var(--text-tertiary);
}

.roi-headline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.25rem;
}

.roi-stat {
  text-align: center;
}

.roi-stat-value {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  line-height: 1.1;
}

.roi-stat-accent .roi-stat-value {
  color: #9FD0FF;
}

.roi-stat-label {
  font-size: 11px;
  color: var(--text-on-dark-muted);
  margin-top: 4px;
}

.roi-payback {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-green-bg);
  color: var(--accent-success-text);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 13px;
}

.roi-payback i { font-size: 16px; }
.roi-payback strong { font-weight: 700; }

.roi-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  height: 100%;
  min-height: 260px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--text-tertiary);
  font-size: 13px;
}

.roi-empty[hidden] { display: none; }
.roi-empty i { font-size: 28px; color: var(--text-tertiary); }
.roi-empty span { max-width: 280px; }

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

@media (max-width: 560px) {
  .roi-section { padding: 1.5rem; }
  .roi-field-grid,
  .roi-cards { grid-template-columns: 1fr; }
  .roi-headline { grid-template-columns: 1fr; gap: 16px; }
  .roi-header h2 { font-size: 24px; }
}

/* ============================
   Quotes page
   ============================ */
.quotes-section {
  margin-top: 1rem;
}

.quotes-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.quotes-head .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
}

.quotes-head .hero-eyebrow i { font-size: 14px; color: var(--accent-blue); }

.quotes-head h1 {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.quotes-head p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 44ch;
}

/* Boxed panel that holds the list, matching the surfaces on other pages. */
.quotes-panel {
  margin-top: 0.5rem;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(24, 95, 165, 0.05) 0%, rgba(24, 95, 165, 0) 45%),
    linear-gradient(180deg, #ffffff 0%, #fbf9f6 100%);
  border: 1px solid rgba(8, 10, 10, 0.08);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(8, 10, 10, 0.04), 0 18px 44px -24px rgba(8, 10, 10, 0.22);
  padding: 10px;
}

.quotes-list {
  display: flex;
  flex-direction: column;
}

@keyframes quoteCardIn {
  from { opacity: 0; transform: translateY(8px); }
}

.quote-list-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  background: transparent;
  border: none;
  border-radius: 14px;
  padding: 15px 14px;
  cursor: pointer;
  animation: quoteCardIn 0.4s cubic-bezier(0.16, 0.84, 0.44, 1) backwards;
  transition: background 0.18s ease;
}

/* Hairline divider between rows (skipped on the first). */
.quote-list-card + .quote-list-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: var(--border);
}

.quote-list-card:hover + .quote-list-card::after,
.quote-list-card:hover::after {
  background: transparent;
}

.quote-list-card:nth-child(1) { animation-delay: 0.02s; }
.quote-list-card:nth-child(2) { animation-delay: 0.06s; }
.quote-list-card:nth-child(3) { animation-delay: 0.10s; }
.quote-list-card:nth-child(4) { animation-delay: 0.14s; }
.quote-list-card:nth-child(5) { animation-delay: 0.18s; }
.quote-list-card:nth-child(6) { animation-delay: 0.22s; }

@media (prefers-reduced-motion: reduce) {
  .quote-list-card { animation: none; }
}

.quote-list-card:hover,
.quote-list-card:focus-visible {
  background: var(--bg-card);
  box-shadow: 0 10px 26px -18px rgba(8, 10, 10, 0.35);
  outline: none;
}

/* Tier monogram mark */
.quote-mark {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.quote-mark[data-accent="blue"] { background: var(--accent-blue-bg); color: var(--accent-blue-text); }
.quote-mark[data-accent="teal"] { background: var(--accent-teal-bg); color: var(--accent-teal); }
.quote-mark[data-accent="green"] { background: var(--accent-green-bg); color: var(--accent-green); }
.quote-mark[data-accent="dark"] { background: var(--bg-dark); color: var(--text-on-dark); }

.quote-mark-sm {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
}

.quote-main {
  flex: 1;
  min-width: 0;
}

.quote-list-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.quote-tag {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--accent-blue-bg);
  color: var(--accent-blue-text);
}

.quote-list-meta {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quote-list-total {
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-primary);
}

.quote-list-total small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-tertiary);
}

.quote-card-delete {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s ease, background 0.15s ease, color 0.15s ease;
}

.quote-list-card:hover .quote-card-delete,
.quote-list-card:focus-within .quote-card-delete {
  opacity: 1;
}

.quote-card-delete:hover {
  background: #FCE9E7;
  color: #C0392B;
}

.quote-card-delete i { font-size: 16px; }

.quote-open-arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--text-tertiary);
  transition: transform 0.2s ease, color 0.2s ease;
}

.quote-list-card:hover .quote-open-arrow,
.quote-list-card:focus-visible .quote-open-arrow {
  color: var(--text-primary);
  transform: translateX(3px);
}

.quotes-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 3.5rem 2rem;
  color: var(--text-secondary);
}

.quotes-empty[hidden] { display: none; }

.quotes-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-blue-bg);
  color: var(--accent-blue);
  margin-bottom: 14px;
  box-shadow: 0 0 0 8px rgba(24, 95, 165, 0.05);
}

.quotes-empty-icon i { font-size: 28px; }

.quotes-empty-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.quotes-empty-sub {
  font-size: 13px;
  color: var(--text-tertiary);
  max-width: 360px;
  line-height: 1.6;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .quotes-head h1 { font-size: 30px; }
  .quote-list-card { gap: 14px; padding: 14px 16px; }
  .quote-mark { width: 42px; height: 42px; }
  .quote-list-total { font-size: 19px; }
  .quote-card-delete { opacity: 1; }
}

/* ============================
   Quote — executive summary hero
   ============================ */
.quote-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.5rem;
}

.quote-hero[hidden] { display: none; }

.quote-hero-primary {
  flex: 1 1 240px;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 16px 32px -22px rgba(8, 10, 10, 0.6);
}

.quote-hero-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-on-dark-muted);
}

.quote-hero-value {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-top: 6px;
}

.quote-hero-meta {
  font-size: 12px;
  color: var(--text-on-dark-muted);
  margin-top: 8px;
}

.quote-hero-roi {
  flex: 2 1 440px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.quote-hero-roi[hidden] { display: none; }

.quote-hero-kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(8, 10, 10, 0.04), 0 16px 32px -24px rgba(8, 10, 10, 0.22);
}

.quote-hero-kpi-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-primary);
}

.quote-hero-kpi-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 6px;
}

.quote-hero-kpi-accent {
  background: var(--accent-blue-bg);
  border-color: transparent;
}

.quote-hero-kpi-accent .quote-hero-kpi-value { color: var(--accent-blue-text); }

.quote-hero-payback {
  margin-top: 14px;
}

.quote-hero-payback[hidden] { display: none; }

/* ============================
   Quote — sections
   ============================ */
.quote-section {
  margin-top: 2rem;
}

.quote-section[hidden] { display: none; }

.quote-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #66635c;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.quote-section-head > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quote-section-head i { color: var(--accent-blue); font-size: 15px; }

.quote-cost-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  align-items: start;
}

.quote-cost-grid .quote-totals,
.quote-cost-grid .quote-breakdown {
  width: 100%;
  margin: 0;
}

/* ============================
   Quote ROI cards
   ============================ */
.quote-roi-tier {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-blue-text);
  background: var(--accent-blue-bg);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0;
}

.quote-roi-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quote-roi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  box-shadow: 0 1px 2px rgba(8, 10, 10, 0.04);
}

.quote-roi-card-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}

.quote-roi-card-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.quote-roi-card-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 3px;
}

.quote-roi-card-sub {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.quote-roi-payback {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-green-bg);
  color: var(--accent-success-text);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-size: 13px;
}

.quote-roi-payback i { font-size: 16px; }
.quote-roi-payback strong { font-weight: 700; }

@media (max-width: 860px) {
  .quote-roi-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .quote-cost-grid { grid-template-columns: 1fr; }
  .quote-hero-roi { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .quote-roi-cards { grid-template-columns: 1fr; }
  .quote-hero-value { font-size: 32px; }
}

/* ============================
   ROI -> quote linking
   ============================ */
.roi-link-bar {
  margin-top: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.roi-link-info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  max-width: 460px;
}

.roi-link-info i {
  font-size: 22px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.roi-link-info strong {
  color: var(--text-primary);
  font-weight: 600;
}

.roi-link-controls {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
}

/* Custom saved-quote dropdown (replaces the native <select> so the open
   options list can be fully themed to match the page). */
.roi-quote-dropdown {
  position: relative;
  display: inline-block;
}

.roi-quote-trigger {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-width: 240px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.roi-quote-trigger:hover { border-color: var(--border-strong); }

.roi-quote-dropdown.is-open .roi-quote-trigger,
.roi-quote-trigger:focus-visible {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15);
}

.roi-quote-trigger:disabled {
  color: var(--text-tertiary);
  background-color: var(--bg-secondary);
  cursor: not-allowed;
}

.roi-quote-trigger i {
  font-size: 16px;
  color: var(--text-tertiary);
  transition: transform 0.2s ease;
}

.roi-quote-dropdown.is-open .roi-quote-trigger i { transform: rotate(180deg); }

.roi-quote-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roi-quote-trigger-label.is-placeholder {
  color: var(--text-tertiary);
  font-weight: 400;
}

.roi-quote-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 60;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 44px -20px rgba(8, 10, 10, 0.35);
  padding: 6px;
  max-height: 300px;
  overflow-y: auto;
  transform-origin: top center;
  animation: roiMenuIn 0.14s ease;
}

.roi-quote-menu[hidden] { display: none; }

@keyframes roiMenuIn {
  from { opacity: 0; transform: translateY(-4px); }
}

.roi-quote-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background-color 0.12s ease;
}

.roi-quote-option + .roi-quote-option { margin-top: 2px; }

.roi-quote-option:hover { background-color: var(--bg-secondary); }

.roi-quote-option-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.roi-quote-option-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roi-quote-option-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 1px;
}

.roi-quote-option-check {
  font-size: 16px;
  color: var(--accent-blue);
  opacity: 0;
  flex-shrink: 0;
}

.roi-quote-option.is-selected .roi-quote-option-check { opacity: 1; }

/* Keep the "Link to quote" button flush with the trigger height. */
.roi-link-controls .create-quote-btn { padding-top: 10px; padding-bottom: 10px; }

.roi-link-note {
  flex-basis: 100%;
  margin-top: 4px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-success-text);
  background: var(--accent-green-bg);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.roi-link-note[hidden] { display: none; }
.roi-link-note a {
  color: var(--accent-blue-text);
  font-weight: 600;
}

.roi-link-note.is-error {
  color: #8a2020;
  background: #fbe6e6;
}

/* ============================
   Generate Deck — modal, dropzone, loading, toast
   ============================ */
#export-deck-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.deck-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 10, 10, 0.55);
  backdrop-filter: blur(4px);
}

.deck-modal[hidden] {
  display: none;
}

.deck-modal-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(8, 10, 10, 0.25);
}

.deck-modal-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.deck-modal-sub {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.deck-drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1.75rem 1rem;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.deck-drop-zone:hover,
.deck-drop-zone:focus-visible,
.deck-drop-zone.is-dragover {
  border-color: var(--accent-blue);
  background: var(--accent-blue-bg);
  outline: none;
}

.deck-drop-zone i {
  font-size: 1.6rem;
  color: var(--accent-blue);
}

.deck-drop-title {
  font-weight: 600;
  color: var(--text-primary);
}

.deck-drop-sub {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

.deck-logo-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
}

.deck-logo-preview img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.deck-logo-filename {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deck-logo-remove {
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.25rem;
}

.deck-logo-remove:hover {
  color: var(--accent-pink);
}

.deck-skip-link {
  display: block;
  margin: 0.85rem auto 0;
  border: none;
  background: transparent;
  color: var(--accent-blue);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
}

.deck-next-steps-field {
  margin-top: 0.9rem;
}

.deck-next-steps-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.deck-next-steps-input {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  max-height: 220px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.deck-next-steps-input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}

.deck-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.deck-loading {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 10, 10, 0.6);
  backdrop-filter: blur(4px);
}

.deck-loading[hidden] {
  display: none;
}

.deck-loading-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 2.5rem;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 60px rgba(8, 10, 10, 0.3);
}

.deck-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--accent-blue);
  border-radius: 50%;
  animation: deck-spin 0.8s linear infinite;
}

@keyframes deck-spin {
  to {
    transform: rotate(360deg);
  }
}

.deck-loading-msg {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
}

.deck-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  max-width: 90vw;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-dark);
  background: var(--bg-dark);
  box-shadow: 0 12px 30px rgba(8, 10, 10, 0.3);
}

.deck-toast[hidden] {
  display: none;
}

.deck-toast.is-error {
  background: #8a1f1f;
}

/* ============================
   Generate Deck modal polish
   ============================ */
.deck-modal {
  background: rgba(8, 10, 10, 0.62);
  backdrop-filter: blur(7px);
}

.deck-modal-card {
  max-width: 560px;
  padding: 1.35rem;
  border: 1px solid rgba(8, 10, 10, 0.1);
  border-radius: 18px;
  box-shadow: 0 28px 72px rgba(8, 10, 10, 0.34);
}

.deck-modal-card h3 {
  font-size: 1.45rem;
  letter-spacing: -0.01em;
}

.deck-modal-sub {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.deck-drop-zone {
  border-width: 1.5px;
  border-style: dashed;
  border-color: rgba(8, 10, 10, 0.22);
  border-radius: 14px;
  padding: 1.5rem 1rem;
  background: linear-gradient(180deg, #f8f6f2 0%, #f3f0eb 100%);
}

.deck-drop-zone i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(24, 95, 165, 0.12);
  color: #185fa5;
}

.deck-drop-title {
  font-size: 0.95rem;
}

.deck-drop-sub {
  font-size: 0.8rem;
}

.deck-logo-preview {
  margin-top: 0.65rem;
  border-radius: 12px;
  background: #f7f4ef;
}

.deck-logo-preview img {
  border-radius: 8px;
}

.deck-next-steps-field {
  margin-top: 0.9rem;
}

.deck-next-steps-field label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.deck-next-steps-input {
  background: #fff;
  border-color: rgba(8, 10, 10, 0.14);
  border-radius: 12px;
  min-height: 108px;
  padding: 0.78rem 0.86rem;
  font-size: 0.9rem;
}

.deck-modal-actions {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(8, 10, 10, 0.08);
}

.deck-modal-actions .create-quote-btn,
.deck-modal-actions .reset-btn {
  min-height: 40px;
}

/* display:flex on these defeats the [hidden] attribute, so hide explicitly —
   this is what was leaving the drop zone + an empty/broken preview both on
   screen at once. */
.deck-drop-zone[hidden],
.deck-logo-preview[hidden] {
  display: none;
}

/* Refined "use Reform logo" control — no underline, subtle hover. */
.deck-skip-link {
  text-decoration: none;
  color: var(--text-tertiary);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.deck-skip-link:hover {
  color: var(--text-primary);
  background: rgba(8, 10, 10, 0.04);
}

/* Polished uploaded-logo card. */
.deck-logo-preview {
  padding: 0.7rem 0.8rem;
  gap: 0.85rem;
  border-color: rgba(8, 10, 10, 0.1);
}

.deck-logo-preview img {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid rgba(8, 10, 10, 0.1);
}

.deck-logo-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}

.deck-logo-remove:hover {
  background: rgba(8, 10, 10, 0.05);
}

@media (max-width: 640px) {
  .deck-modal-card {
    max-width: 100%;
    padding: 1rem;
  }
  .deck-modal-actions {
    flex-direction: column-reverse;
  }
  .deck-modal-actions .create-quote-btn,
  .deck-modal-actions .reset-btn {
    width: 100%;
  }
}

/* ============================
   Login page
   ============================ */
.login-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(24, 95, 165, 0.10), transparent 55%),
    radial-gradient(900px 600px at 112% 112%, rgba(15, 110, 86, 0.08), transparent 55%),
    var(--bg-page);
}

/* ============================
   Login backdrop — global trade routes (freight / logistics motif)
   ============================ */
.login-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Faint map-style plotting grid that slowly pans and fades toward the edges. */
.login-bg::before {
  content: "";
  position: absolute;
  inset: -8%;
  background-image: radial-gradient(rgba(8, 10, 10, 0.09) 1px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(120% 110% at 50% 42%, #000 38%, transparent 82%);
  mask-image: radial-gradient(120% 110% at 50% 42%, #000 38%, transparent 82%);
  translate: calc(var(--mx, 0) * 6px) calc(var(--my, 0) * 6px);
  animation: gridPan 24s linear infinite;
  transition: translate 0.3s ease-out;
}

@keyframes gridPan {
  to { background-position: 56px 84px; }
}

/* Slowly drifting aurora wash for ambient colour and depth. */
.login-aurora {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(38% 38% at 25% 30%, rgba(24, 95, 165, 0.20), transparent 60%),
    radial-gradient(42% 42% at 76% 66%, rgba(15, 110, 86, 0.18), transparent 60%),
    radial-gradient(32% 32% at 62% 18%, rgba(24, 95, 165, 0.12), transparent 60%);
  filter: blur(34px);
  animation: auroraDrift 24s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
  0% { transform: translate3d(-3%, -2%, 0) scale(1); }
  100% { transform: translate3d(3%, 3%, 0) scale(1.08); }
}

/* Unified map layer: continents, ports, labels and shipping lanes all share the
   same SVG coordinate space so port markers stay locked to the coastlines. */
.login-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Faint continents: the CC0 map SVG is used as an alpha mask over a brand
   gradient, so the landmasses pick up the app's blue/teal palette. */
.login-continents {
  opacity: 0.18;
}


/* Pointer-driven parallax: each layer shifts by a different amount for depth.
   Uses the `translate` property so it composes with each layer's own transform
   animation instead of overriding it. */
.login-aurora,
.login-map,
.login-compass,
.login-particles {
  transition: translate 0.3s ease-out;
}
.login-aurora    { translate: calc(var(--mx, 0) * 9px)  calc(var(--my, 0) * 9px); }
.login-map       { translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 14px); }
.login-compass   { translate: calc(var(--mx, 0) * 10px) calc(var(--my, 0) * 10px); }
.login-particles { translate: calc(var(--mx, 0) * 6px)  calc(var(--my, 0) * 6px); }

/* Periodic light sweep gliding across the scene. */
.login-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    transparent 43%,
    rgba(24, 95, 165, 0.12) 49%,
    rgba(111, 177, 240, 0.16) 50%,
    rgba(15, 110, 86, 0.10) 51%,
    transparent 57%);
  transform: translateX(-120%);
  animation: scanSweep 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanSweep {
  0% { transform: translateX(-120%); }
  55%, 100% { transform: translateX(120%); }
}

.login-vehicle path {
  fill: var(--accent-blue);
  filter: drop-shadow(0 0 4px rgba(24, 95, 165, 0.6));
}
.login-vehicle--teal path {
  fill: var(--accent-teal);
  filter: drop-shadow(0 0 4px rgba(15, 110, 86, 0.6));
}

/* Large rotating compass / radar ring anchored in the lower-right, partly off-screen. */
.login-compass {
  position: absolute;
  right: -220px;
  bottom: -220px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  border: 1.5px dashed rgba(24, 95, 165, 0.22);
  opacity: 0.6;
  animation: compassSpin 90s linear infinite;
}
.login-compass::before {
  content: "";
  position: absolute;
  inset: 70px;
  border-radius: 50%;
  border: 1px solid rgba(15, 110, 86, 0.20);
}
.login-compass::after {
  content: "";
  position: absolute;
  inset: 160px;
  border-radius: 50%;
  border: 1.5px dashed rgba(24, 95, 165, 0.28);
  background:
    linear-gradient(rgba(24, 95, 165, 0.16), rgba(24, 95, 165, 0.16)) 50% 0 / 1.5px 100% no-repeat,
    linear-gradient(rgba(24, 95, 165, 0.16), rgba(24, 95, 165, 0.16)) 0 50% / 100% 1.5px no-repeat;
}

@keyframes compassSpin {
  to { transform: rotate(360deg); }
}

/* Drifting freight particles rising through the scene. */
.login-particles span {
  position: absolute;
  bottom: -12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-blue);
  opacity: 0;
  animation: particleRise 14s linear infinite;
}
.login-particles span:nth-child(2n) { background: var(--accent-teal); width: 4px; height: 4px; }
.login-particles span:nth-child(1)  { left: 8%;  animation-duration: 15s; animation-delay: -1s; }
.login-particles span:nth-child(2)  { left: 18%; animation-duration: 12s; animation-delay: -6s; }
.login-particles span:nth-child(3)  { left: 27%; animation-duration: 17s; animation-delay: -3s; }
.login-particles span:nth-child(4)  { left: 36%; animation-duration: 13s; animation-delay: -9s; }
.login-particles span:nth-child(5)  { left: 45%; animation-duration: 16s; animation-delay: -4s; }
.login-particles span:nth-child(6)  { left: 54%; animation-duration: 12s; animation-delay: -11s; }
.login-particles span:nth-child(7)  { left: 63%; animation-duration: 18s; animation-delay: -2s; }
.login-particles span:nth-child(8)  { left: 72%; animation-duration: 14s; animation-delay: -7s; }
.login-particles span:nth-child(9)  { left: 81%; animation-duration: 16s; animation-delay: -5s; }
.login-particles span:nth-child(10) { left: 90%; animation-duration: 13s; animation-delay: -10s; }
.login-particles span:nth-child(11) { left: 32%; animation-duration: 19s; animation-delay: -13s; }
.login-particles span:nth-child(12) { left: 68%; animation-duration: 15s; animation-delay: -8s; }

@keyframes particleRise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.5; }
  90%  { opacity: 0.5; }
  100% { transform: translateY(-102vh) translateX(24px); opacity: 0; }
}

.login-lane {
  fill: none;
  stroke-width: 0.9;
  stroke-linecap: round;
  stroke-dasharray: 2.5 6;
  animation: laneFlow 3.4s linear infinite;
}
.login-lane--slow { animation-duration: 5s; }
.login-lane--fast { animation-duration: 2.6s; }

@keyframes laneFlow {
  to { stroke-dashoffset: -85; }
}

.login-port circle {
  fill: var(--accent-blue);
}
.login-port-ring {
  fill: none;
  stroke: var(--accent-blue);
  stroke-width: 0.6;
  transform-box: fill-box;
  transform-origin: center;
  animation: portPulse 2.8s ease-out infinite;
}
.login-port:nth-of-type(even) .login-port-ring { animation-delay: 1.4s; }

@keyframes portPulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(4.5); opacity: 0; }
  100% { transform: scale(4.5); opacity: 0; }
}

.login-cargo {
  fill: var(--accent-teal);
  filter: drop-shadow(0 0 5px rgba(15, 110, 86, 0.7));
}

/* Logistics glyphs pinned to real geography inside the map's coordinate space:
   ships in open water, trucks/warehouses on land, anchor at the coast, etc.
   Each lives in an SVG <foreignObject> so it scales and parallaxes with the map. */
.login-map foreignObject {
  overflow: visible;
}

.login-glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  font-size: 9px;
  line-height: 1;
  color: var(--accent-blue);
  opacity: 0.22;
  will-change: transform;
  animation: glyphFloat 13s ease-in-out infinite;
}
.login-glyph--teal { color: var(--accent-teal); }

@keyframes glyphFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-3px) rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .login-lane,
  .login-port-ring,
  .login-glyph,
  .login-aurora,
  .login-compass,
  .login-marquee-track,
  .login-bg::before { animation: none; }
  .login-cargo,
  .login-vehicle,
  .login-particles,
  .login-scan { display: none; }
}

/* Catchy header pinned to the top of the screen. */
.login-topbar {
  position: absolute;
  top: clamp(1.25rem, 5vh, 2.75rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 92%;
  text-align: center;
  pointer-events: none;
}
.login-topbar-brand {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--accent-blue-text);
  margin-bottom: 0.45rem;
}
.login-topbar-tag {
  margin: 0;
  font-size: clamp(1.05rem, 2.6vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
.login-topbar-tag .accent {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.login-topbar-sub {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Sliding, translucent "trusted by" logo strip at the bottom of the screen. */
.login-marquee {
  position: absolute;
  bottom: clamp(1rem, 4vh, 2.25rem);
  left: 0;
  width: 100%;
  z-index: 2;
  pointer-events: none;
}
.login-marquee-eyebrow {
  margin: 0 0 0.9rem;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.login-marquee-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.login-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 3.25rem;
  animation: marqueeSlide 36s linear infinite;
}
.login-marquee-track img {
  flex: none;
  height: 4.5rem;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
}

@keyframes marqueeSlide {
  to { transform: translateX(-50%); }
}

.login-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 840px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: rgba(255, 255, 255, 0.44);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 18px 50px -40px rgba(8, 10, 10, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  animation: loginRise 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes loginRise {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Left brand panel */
.login-aside {
  position: relative;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
  color: var(--text-on-dark);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(24, 95, 165, 0.45) 0%, rgba(24, 95, 165, 0) 45%),
    linear-gradient(160deg, rgba(13, 27, 42, 0.8) 0%, rgba(8, 10, 10, 0.78) 70%);
  overflow: hidden;
}

.login-aside-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  right: -150px;
  bottom: -170px;
  background: radial-gradient(circle, rgba(15, 110, 86, 0.5), transparent 60%);
  filter: blur(16px);
  pointer-events: none;
}

.login-logo {
  height: 30px;
  width: auto;
  position: relative;
  z-index: 1;
  /* The brand SVG is dark; invert it to white for the dark panel. */
  filter: brightness(0) invert(1);
}

.login-aside-body { position: relative; z-index: 1; }

.login-aside-title {
  font-size: 1.9rem;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
}

.login-aside-sub {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  margin: 0 0 1.85rem;
  max-width: 34ch;
}

.login-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.login-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
}

.login-feature-list i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  color: #8fc0f0;
  font-size: 16px;
}

.login-aside-foot {
  position: relative;
  z-index: 1;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Right form panel */
.login-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.25rem;
}

.login-card {
  width: 100%;
  max-width: 320px;
}

.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-blue-text);
  background: var(--accent-blue-bg);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 1.1rem;
}

.login-title {
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.login-subtitle {
  color: var(--text-secondary);
  margin: 0 0 1.6rem;
  font-size: 0.92rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.login-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.login-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 0.85rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.login-input-wrap:focus-within {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.15);
  background: var(--bg-card);
}

.login-input-wrap > i {
  color: var(--text-tertiary);
  font-size: 17px;
}

.login-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 0.7rem 0;
}

.login-eye {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-tertiary);
  padding: 4px;
  display: inline-flex;
}

.login-eye:hover { color: var(--text-primary); }

.login-error {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 83, 126, 0.1);
  color: #a01f4b;
  border: 1px solid rgba(212, 83, 126, 0.25);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
}

.login-error[hidden] { display: none; }

.login-submit {
  margin-top: 0.4rem;
  border: none;
  cursor: pointer;
  background: var(--text-primary);
  color: var(--text-on-dark);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.2rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  transition: transform 0.12s, opacity 0.15s;
  box-shadow: 0 10px 24px -10px rgba(8, 10, 10, 0.6);
}

.login-submit:hover { opacity: 0.94; transform: translateY(-1px); }
.login-submit:active { transform: translateY(0); }
.login-submit.is-loading { opacity: 0.7; pointer-events: none; }

.login-foot-note {
  margin: 1.4rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

@keyframes loginShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

.login-form--error .login-submit { animation: loginShake 0.4s; }

@media (max-width: 760px) {
  .login-body { padding: 1rem; }
  .login-shell { grid-template-columns: 1fr; max-width: 420px; }
  .login-aside { min-height: auto; padding: 2rem; }
  .login-feature-list { display: none; }
  .login-aside-title { font-size: 1.45rem; }
  .login-aside-sub { margin-bottom: 0.5rem; }
  .login-body { flex-direction: column; padding-top: 2.5rem; }
  .login-topbar { position: static; transform: none; margin: 0 0 1.5rem; width: auto; }
  .login-topbar-sub { display: none; }
  .login-marquee { display: none; }
}

/* ============================
   Welcome interstitial (post sign-in greeting)
   ============================ */
.welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-page);
  opacity: 0;
  transition: opacity 0.45s ease;
}

/* Soft brand-tinted glow on the light backdrop, matching the app's accent palette. */
.welcome-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(680px 420px at 50% 46%, rgba(251, 249, 246, 0.66), transparent 70%),
    radial-gradient(1200px 600px at 50% -10%, rgba(24, 95, 165, 0.08), transparent 60%),
    radial-gradient(900px 500px at 50% 120%, rgba(15, 110, 86, 0.06), transparent 60%);
  pointer-events: none;
}

.welcome-overlay.is-visible { opacity: 1; }

/* Cloned login backdrop — softly blurred so it reads as ambient texture behind
   the minimal greeting. */
.welcome-scene {
  z-index: 0;
  opacity: 1;
  filter: blur(2.5px) saturate(1.03);
  transform: scale(1.04);
  transition: opacity 0.65s ease;
}

/* On the way out, dissolve the scene + greeting into the overlay's flat page
   color so the hand-off to the (same-colored) pricing page is seamless. */
.welcome-overlay.is-leaving .welcome-scene,
.welcome-overlay.is-leaving .welcome-card { opacity: 0; }

/* Minimal greeting: big, confident type over the softly blurred backdrop. */
.welcome-card {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1.5rem;
  max-width: min(92vw, 760px);
}

.welcome-eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--text-tertiary);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.7s ease 0.1s,
    transform 0.7s cubic-bezier(0.16, 0.84, 0.3, 1) 0.1s;
}

/* Name wipes up from behind a clipping edge, blurring into focus. */
.welcome-name-mask {
  overflow: hidden;
  padding: 0.12em 0;
  margin-top: 0.5rem;
}

.welcome-name {
  font-size: clamp(2.75rem, 9vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text-primary);
  transform: translateY(118%);
  filter: blur(10px);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.16, 0.84, 0.3, 1) 0.2s,
    filter 0.9s ease 0.2s,
    opacity 0.7s ease 0.2s;
}

/* Hairline that draws itself across — doubles as a quiet progress indicator. */
.welcome-line {
  width: 100%;
  max-width: 220px;
  height: 1px;
  margin: 1.6rem auto 0;
  background: rgba(8, 10, 10, 0.10);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease 0.8s;
}

.welcome-line span {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
  transition: transform 1.3s cubic-bezier(0.4, 0, 0.2, 1) 0.9s;
}

.welcome-sub {
  margin-top: 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.7s ease 1s,
    transform 0.7s cubic-bezier(0.16, 0.84, 0.3, 1) 1s;
}

.welcome-overlay.is-visible .welcome-eyebrow,
.welcome-overlay.is-visible .welcome-sub {
  opacity: 1;
  transform: none;
}

.welcome-overlay.is-visible .welcome-name {
  transform: translateY(0);
  filter: blur(0);
  opacity: 1;
}

.welcome-overlay.is-visible .welcome-line { opacity: 1; }
.welcome-overlay.is-visible .welcome-line span { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .welcome-eyebrow,
  .welcome-name,
  .welcome-sub {
    transform: none;
    filter: none;
    opacity: 1;
    transition: opacity 0.3s ease;
  }
  .welcome-line span { transition: none; transform: scaleX(1); }
}
