/* EG Solar Financing Portal — finance.egsolar.app
   "EG Solar Daylight Ice + Star-Lightning + Frosted Crystal Glass"
   Easy-to-read bright theme with glacier-blue atmospheric edges, 60fps star-lightning (fx.js),
   translucent specular-rimmed glass cards, slim sticky header (58px -> 46px), and bug-free mobile layout. */

html[data-look="light"] {
  --paper: #f1f7fd;
  --text: #071220;
  --t90: #0d1d31;
  --t80: #1d3148;
  --t60: #3a5068;
  --t50: #4d647d;
  --t40: #607892;
  --hair: rgba(12, 34, 62, 0.1);
  --hair-25: rgba(12, 34, 62, 0.22);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-hover: rgba(255, 255, 255, 0.82);
  --card: rgba(255, 255, 255, 0.72);
  --link: #026aa7;
  --display: "Outfit", "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;
  --ui: "Figtree", "Instrument Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --serif: "Outfit", "Figtree", -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: light;
}

body {
  background: var(--paper);
  color: var(--t80);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* Star-Lightning Canvas (fx.js) — fixed behind glass cards, above backdrop */
.fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* EG Solar Signature Reverse-Vignette Backdrop in Daylight Glacier-Ice + Solar Gold */
[data-look="light"] .backdrop {
  background-color: #eef5fc;
  background-image:
    radial-gradient(52% 84% at -6% 62%, rgba(76, 148, 230, 0.34), rgba(56, 189, 248, 0.12) 48%, transparent 74%),
    radial-gradient(52% 84% at 106% 62%, rgba(76, 148, 230, 0.34), rgba(56, 189, 248, 0.12) 48%, transparent 74%),
    radial-gradient(72% 46% at 50% -6%, rgba(56, 189, 248, 0.24), transparent 70%),
    radial-gradient(58% 40% at 50% 104%, rgba(245, 178, 68, 0.13), transparent 70%),
    linear-gradient(180deg, #eaf3fc 0%, #f5f9fe 46%, #edf5fc 100%);
}

[data-look="light"] .backdrop::before {
  background: radial-gradient(
    90% 80% at 50% 44%,
    rgba(255, 255, 255, 0.72) 28%,
    rgba(244, 250, 255, 0.25) 76%,
    transparent 100%
  );
}

[data-look="light"] .backdrop .grain {
  opacity: 0.32;
}

/* ---------- Sleek Frosted-Crystal Sticky Header (58px -> 46px on scroll) ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 58px;
  min-height: 0;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.56);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  backdrop-filter: blur(22px) saturate(1.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 0 rgba(14, 62, 118, 0.06);
  transition: height 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.top.scrolled {
  height: 46px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(26px) saturate(1.55);
  backdrop-filter: blur(26px) saturate(1.55);
  box-shadow: 0 1px 0 rgba(14, 82, 152, 0.1), 0 8px 24px -6px rgba(10, 36, 72, 0.07);
}

.top .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 700 19px/1.05 var(--display);
  letter-spacing: -0.024em;
  color: #071220;
  margin-right: auto;
  min-width: 0;
}

.top .brand img {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  filter: drop-shadow(0 3px 8px rgba(37, 99, 235, 0.22));
  transition: width 0.18s ease, height 0.18s ease;
}

.top.scrolled .brand img {
  width: 28px;
  height: 28px;
}

.top .brand small {
  display: block;
  font: 600 10.5px/1.1 var(--ui);
  color: #46607c;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.top.scrolled .brand small {
  display: none;
}

.top .nav a {
  color: #1d3148;
  font: 600 13.5px/1 var(--ui);
  padding: 7px 12px;
  border-radius: var(--pill);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.top .nav a[aria-current="page"],
.top .nav a:hover {
  color: #071220;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(14, 116, 204, 0.18);
  opacity: 1;
}

.top-cta .pill {
  height: 34px;
  padding: 0 15px;
  font: 700 13px/1 var(--ui);
  background: linear-gradient(180deg, #10243e 0%, #071324 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 14px rgba(14, 116, 204, 0.22);
  transition: height 0.18s ease, transform 0.14s ease, box-shadow 0.15s ease;
}

.top.scrolled .top-cta .pill {
  height: 30px;
  padding: 0 13px;
  font-size: 12.5px;
}

.top-cta .pill:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 18px rgba(14, 165, 233, 0.32);
  opacity: 1;
}

.header-step-pill {
  margin: 0 !important;
  padding: 5px 12px !important;
  font-size: 12px !important;
}

/* ---------- Slightly Glassy Specular-Rimmed Crystal Cards ---------- */
.card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.62) 100%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 0 0 1px rgba(20, 74, 134, 0.09),
    0 18px 42px -12px rgba(10, 40, 80, 0.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.45);
  backdrop-filter: blur(24px) saturate(1.45);
}

.fin-wrap {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px var(--gutter) 76px;
}

.fin-hero {
  text-align: center;
  max-width: 770px;
  margin: 6px auto 28px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(14, 116, 204, 0.16), 0 6px 18px rgba(14, 116, 204, 0.08);
  font: 700 12px/1.2 var(--ui);
  letter-spacing: 0.02em;
  color: #0b223b;
  margin-bottom: 14px;
}

.status-pill .dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.24), 0 0 10px rgba(14, 165, 233, 0.65);
}

.fin-hero h1 {
  font: 700 clamp(30px, 4.5vw, 50px)/1.08 var(--display);
  letter-spacing: -0.028em;
  background: linear-gradient(180deg, #06101e 0%, #102a49 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: #071220;
  margin: 0 0 12px;
  text-wrap: balance;
}

.fin-hero p {
  font: 500 clamp(15.5px, 1.85vw, 17.5px)/1.52 var(--ui);
  color: #344a63;
  max-width: 62ch;
  margin: 0 auto;
}

/* ---------- Sleek Glass Payment Estimator Bar ---------- */
.estimator {
  padding: 20px 24px;
  border-radius: 18px;
  margin-bottom: 20px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.82) 0%, rgba(242, 249, 255, 0.68) 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 0 0 1px rgba(14, 132, 212, 0.16),
    0 18px 42px -12px rgba(12, 52, 98, 0.11);
}

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

.est-label {
  font: 700 12px/1.25 var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0369a1;
}

.est-amount {
  font: 700 clamp(26px, 3.4vw, 38px)/1 var(--display);
  font-variant-numeric: tabular-nums;
  color: #071220;
}

.amt-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px 6px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(14, 132, 212, 0.34);
  box-shadow: inset 0 1px 2px rgba(12, 40, 76, 0.04), 0 2px 10px rgba(14, 132, 212, 0.08);
  cursor: text;
  max-width: 100%;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.amt-input-wrap:focus-within {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.amt-prefix {
  font: 700 clamp(22px, 2.9vw, 31px)/1 var(--display);
  color: #0284c7;
}

.amt-input {
  width: 6.8ch;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  padding: 0;
  margin: 0;
  font: 700 clamp(22px, 2.9vw, 31px)/1 var(--display);
  font-variant-numeric: tabular-nums;
  color: #071220;
  text-align: left;
}

.amt-edit-hint {
  padding: 4px 9px;
  border-radius: var(--pill);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(14, 165, 233, 0.22);
  color: #0369a1;
  font: 700 10.5px/1 var(--ui);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.est-slider {
  width: 100%;
  accent-color: #0284c7;
  height: 6px;
  cursor: pointer;
  margin: 6px 0 14px;
}

.est-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.est-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.est-pill {
  padding: 7px 15px;
  border-radius: var(--pill);
  border: 1px solid rgba(14, 116, 204, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #162b42;
  font: 700 13px/1 var(--ui);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all 0.16s ease;
}

.est-pill:hover {
  background: #ffffff;
  border-color: rgba(14, 165, 233, 0.5);
}

.est-pill.active {
  background: linear-gradient(180deg, #0f243e 0%, #071324 100%);
  border-color: rgba(56, 189, 248, 0.55);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(14, 116, 204, 0.24);
}

.est-note {
  font: 500 12.5px/1.35 var(--ui);
  color: #4d647d;
}

/* ---------- Frosted Glass Filter Tabs ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 22px;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(15, 52, 96, 0.1), 0 4px 12px rgba(12, 38, 72, 0.04);
  color: #1d3148;
  font: 700 13px/1.2 var(--ui);
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-tab:hover {
  background: rgba(255, 255, 255, 0.88);
  color: #071220;
}

.filter-tab.active {
  background: linear-gradient(180deg, #102540 0%, #071324 100%);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 8px 20px -4px rgba(14, 116, 204, 0.28);
  color: #ffffff;
}

.lane[hidden],
.lanes[hidden] {
  display: none !important;
}

/* ---------- Balanced 2x2 Financing Cards Grid ---------- */
.lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}

.lanes.single-col {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.lanes.single-wide {
  grid-template-columns: minmax(0, 1080px);
  justify-content: center;
}

.lanes.stack-clean {
  grid-template-columns: minmax(0, 980px);
  justify-content: center;
}

.lanes.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lanes.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lane-wide {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  .lanes,
  .lanes.three-col,
  .lanes.two-col,
  .lanes.single-col,
  .lanes.single-wide,
  .lanes.stack-clean {
    grid-template-columns: 1fr;
  }
}

.lane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 25px 24px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

/* Top-edge specular prism line on every card */
.lane::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.65), transparent);
  pointer-events: none;
}

.lane:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 0 0 1px rgba(14, 132, 212, 0.2),
    0 24px 50px -12px rgba(10, 48, 96, 0.15);
}

.lane.recommended-pick {
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 0 0 2px #0284c7,
    0 22px 48px -10px rgba(14, 116, 204, 0.22) !important;
}

.lane.paypal::before {
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.65), transparent);
}
.lane.klarna::before {
  background: linear-gradient(90deg, transparent, rgba(244, 63, 94, 0.55), transparent);
}
.lane.square::before {
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.55), transparent);
}
.lane.guaranteed::before,
.lane.acorn::before {
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.68), rgba(56, 189, 248, 0.55), transparent);
}
.lane.heloc::before {
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.68), transparent);
}
.lane.cecu::before,
.lane.primary::before {
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.72), rgba(245, 158, 11, 0.45), transparent);
}
.lane.nopaynow::before {
  background: linear-gradient(90deg, transparent, rgba(13, 148, 136, 0.72), rgba(245, 158, 11, 0.55), transparent);
}

.lane.acorn {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.82) 0%, rgba(240, 251, 250, 0.68) 100%);
}

.lane.nopaynow {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.84) 0%, rgba(236, 253, 249, 0.68) 100%);
}

/* Badges */
.lane-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--pill);
  font: 700 11px/1.2 var(--ui);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  margin-bottom: 11px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lane.primary .lane-badge,
.badge-sky {
  background: rgba(14, 165, 233, 0.11);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.28);
}

.lane.paypal .lane-badge {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.26);
}

.lane.klarna .lane-badge {
  background: rgba(244, 63, 94, 0.1);
  color: #be123c;
  border: 1px solid rgba(244, 63, 94, 0.26);
}

.lane.square .lane-badge {
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.lane.guaranteed .lane-badge,
.lane.acorn .lane-badge,
.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.3);
}

.lane.heloc .lane-badge {
  background: rgba(245, 158, 11, 0.13);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.lane.cecu .lane-badge {
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.lane.nopaynow .lane-badge {
  background: rgba(13, 148, 136, 0.12);
  color: #0f766e;
  border: 1px solid rgba(13, 148, 136, 0.32);
}

.lane h2 {
  font: 700 clamp(20.5px, 2.4vw, 24px)/1.18 var(--display);
  letter-spacing: -0.02em;
  color: #071220;
  margin: 0 0 7px;
}

.lane-sub {
  font: 500 14px/1.48 var(--ui);
  color: #3a5068;
  margin: 0 0 16px;
}

/* Frosted Ice-Glass Paybox */
.lane-paybox {
  background: linear-gradient(145deg, rgba(235, 246, 255, 0.78), rgba(255, 255, 255, 0.65));
  border: 1px solid rgba(56, 162, 238, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  border-radius: 13px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lane.guaranteed .lane-paybox,
.lane.acorn .lane-paybox,
.lane.nopaynow .lane-paybox {
  background: linear-gradient(145deg, rgba(232, 251, 244, 0.78), rgba(255, 255, 255, 0.66));
  border-color: rgba(16, 185, 129, 0.28);
}

.lane-paybox .lbl {
  font: 600 12.5px/1.35 var(--ui);
  color: #1d3148;
  min-width: 0;
}

.lane-paybox .val {
  font: 700 28px/1 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: #071220;
  white-space: nowrap;
  flex-shrink: 0;
}

.lane-paybox .val small {
  font: 600 13px/1 var(--ui);
  color: #46607c;
}

/* Speed Chips */
.speed-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -4px 0 15px;
}

.speed-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 116, 204, 0.18);
  color: #0d223a;
  font: 700 11.5px/1.2 var(--ui);
}

/* Checklists */
.lane-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 9px;
  flex: 1;
}

.compact-list {
  margin-bottom: 0;
}

.lane-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font: 500 14px/1.44 var(--ui);
  color: #1d3148;
}

.lane-list li strong {
  color: #071220;
}

.lane-list .chk {
  flex: 0 0 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.15);
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
}

.lane.paypal .lane-list .chk {
  background: rgba(37, 99, 235, 0.14);
  color: #1d4ed8;
}

.lane.klarna .lane-list .chk {
  background: rgba(244, 63, 94, 0.13);
  color: #be123c;
}

.lane.square .lane-list .chk {
  background: rgba(124, 58, 237, 0.13);
  color: #6d28d9;
}

.lane.guaranteed .lane-list .chk,
.lane.acorn .lane-list .chk {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}

.lane.heloc .lane-list .chk {
  background: rgba(245, 158, 11, 0.18);
  color: #b45309;
}

.lane.nopaynow .lane-list .chk {
  background: rgba(13, 148, 136, 0.16);
  color: #0f766e;
}

/* ---------- Signature EG Solar Obsidian-Ice Underglow CTA Buttons ---------- */
.lane-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.cta-paypal,
.cta-klarna,
.cta-square,
.cta-denefits-api,
.cta-acorn,
.cta-aven,
.cta-cecu,
.cta-nopaynow,
.cta-hfs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 49px;
  height: auto;
  padding: 12px 18px;
  border-radius: 11px;
  font: 700 15px/1.25 var(--ui);
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  color: #ffffff !important;
  cursor: pointer;
  background: linear-gradient(180deg, #102642 0%, #071324 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-bottom: 1.5px solid rgba(56, 189, 248, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 26px -6px rgba(14, 116, 204, 0.3);
  transition: transform 0.15s ease, box-shadow 0.16s ease, filter 0.15s ease, opacity 0.15s ease;
}

.cta-paypal {
  background: linear-gradient(180deg, #1d4ed8 0%, #1538a6 100%);
  border-color: rgba(96, 165, 250, 0.45);
  border-bottom-color: #93c5fd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 10px 26px -6px rgba(29, 78, 216, 0.32);
}

.cta-klarna {
  background: linear-gradient(180deg, #162235 0%, #09111e 100%);
  border-color: rgba(244, 63, 94, 0.32);
  border-bottom-color: #fda4af;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 26px -6px rgba(190, 18, 60, 0.2);
}

.cta-square {
  background: linear-gradient(180deg, #3b1d7a 0%, #241052 100%);
  border-color: rgba(167, 139, 250, 0.4);
  border-bottom-color: #c4b5fd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 26px -6px rgba(91, 33, 182, 0.28);
}

.cta-denefits-api {
  background: linear-gradient(180deg, #059669 0%, #047250 100%);
  border-color: rgba(110, 231, 183, 0.45);
  border-bottom-color: #6ee7b7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 26px -6px rgba(5, 150, 105, 0.3);
}

.cta-acorn {
  background: linear-gradient(180deg, #0d263b 0%, #061423 100%);
  border-color: rgba(52, 211, 153, 0.4);
  border-bottom-color: #6ee7b7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 12px 28px -6px rgba(13, 148, 136, 0.3);
}

.cta-aven {
  background: linear-gradient(180deg, #1b283b 0%, #091322 100%);
  border-color: rgba(251, 191, 36, 0.38);
  border-bottom-color: #fcd34d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 26px -6px rgba(180, 83, 9, 0.22);
}

.cta-cecu {
  background: linear-gradient(180deg, #0369a1 0%, #074c78 100%);
  border-color: rgba(125, 211, 252, 0.45);
  border-bottom-color: #7dd3fc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 26px -6px rgba(2, 132, 199, 0.28);
}

.cta-nopaynow {
  background: linear-gradient(180deg, #0f766e 0%, #0a4f4a 100%);
  border-color: rgba(94, 234, 212, 0.45);
  border-bottom-color: #5eead4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 12px 28px -6px rgba(13, 148, 136, 0.32);
}

.cta-paypal:hover:not(:disabled),
.cta-klarna:hover:not(:disabled),
.cta-square:hover:not(:disabled),
.cta-denefits-api:hover:not(:disabled),
.cta-acorn:hover,
.cta-aven:hover,
.cta-cecu:hover,
.cta-nopaynow:hover:not(:disabled),
.cta-hfs:hover:not(:disabled) {
  opacity: 1;
  filter: brightness(1.08);
  transform: translateY(-1.5px);
}

.cta-paypal:disabled,
.cta-klarna:disabled,
.cta-square:disabled,
.cta-denefits-api:disabled,
.cta-nopaynow:disabled,
.cta-hfs:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.inline-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: #026aa7;
  font: 700 13px/1.35 var(--ui);
  text-decoration: underline;
  cursor: pointer;
}

.cta-sublink {
  text-align: center;
  font: 500 12.5px/1.4 var(--ui);
  color: #4d647d;
  overflow-wrap: anywhere;
}

.cta-sublink a {
  color: #026aa7;
  font-weight: 700;
}

/* ---------- Denefits Controls, Drawer & Embedded Slot ---------- */
.combo-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  margin: -2px 0 11px;
  border-radius: 10px;
  background: rgba(230, 241, 250, 0.65);
  border: 1px solid rgba(14, 82, 152, 0.12);
}

.combo-btn {
  padding: 8px 10px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: #344a63;
  font: 700 12px/1.25 var(--ui);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.combo-btn.active {
  background: rgba(255, 255, 255, 0.94);
  color: #071220;
  box-shadow: 0 2px 8px rgba(12, 38, 72, 0.08), inset 0 0 0 1px rgba(5, 150, 105, 0.34);
}

.combo-step1-btn {
  min-height: 45px;
  font-size: 14px;
}

.term-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
}

.term-pill {
  padding: 7px 6px;
  border-radius: 8px;
  border: 1px solid rgba(14, 72, 134, 0.15);
  background: rgba(255, 255, 255, 0.72);
  color: #1d3148;
  font: 700 12px/1 var(--ui);
  cursor: pointer;
  transition: all 0.14s ease;
}

.term-pill:hover,
.term-pill.active {
  background: rgba(236, 253, 245, 0.92);
  border-color: #059669;
  color: #065f46;
}

.denefits-drawer {
  padding: 12px;
  border-radius: 11px;
  background: rgba(240, 252, 247, 0.78);
  border: 1px solid rgba(5, 150, 105, 0.28);
}

.denefits-drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.denefits-drawer .input {
  width: 100%;
  min-height: 42px;
  height: 42px;
  padding: 8px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 38, 68, 0.2);
  color: #071220;
  font: 500 15px/1.2 var(--ui);
}

.dnf-err,
.deal-err {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font: 600 13px/1.35 var(--ui);
}

.enter-amt-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(236, 253, 245, 0.72);
  border: 1px dashed rgba(5, 150, 105, 0.42);
  color: #1d3148;
  font: 500 12.5px/1.3 var(--ui);
}

.enter-amt-bar strong {
  color: #047857;
  font-weight: 700;
}

.enter-copy-btn {
  flex: none;
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid rgba(5, 150, 105, 0.4);
  background: rgba(255, 255, 255, 0.9);
  color: #065f46;
  font: 700 11.5px/1 var(--ui);
  cursor: pointer;
}

.enter-copy-btn:hover {
  background: #d1fae5;
}

.denefits-btn-slot {
  width: 100%;
  display: flex;
  justify-content: center;
}

.denefits-btn-slot [data-denefits-button-code] {
  width: 100% !important;
  min-height: 47px !important;
  height: auto !important;
  padding: 11px 16px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.85) !important;
  border: 1.5px solid #059669 !important;
  color: #065f46 !important;
  font-family: var(--ui) !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  line-height: 1.25 !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.denefits-btn-slot [data-denefits-button-code]:hover {
  background: #ecfdf5 !important;
}

/* ---------- Full-Width Acorn 13-Lender Subprime-to-Prime Glass Showcase ---------- */
.acorn-wide-grid {
  display: grid;
  grid-template-columns: 1.04fr 1.16fr;
  gap: 24px;
  align-items: stretch;
}

@media (max-width: 980px) {
  .acorn-wide-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.acorn-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.acorn-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 10px;
  padding: 17px;
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(240, 251, 249, 0.78), rgba(255, 255, 255, 0.62));
  border: 1px solid rgba(13, 148, 136, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.sublender-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(12, 42, 76, 0.09);
}

.sublender-title {
  font: 700 13.5px/1.25 var(--ui);
  color: #071220;
}

.sublender-tag {
  padding: 4px 10px;
  border-radius: var(--pill);
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(5, 150, 105, 0.34);
  color: #065f46;
  font: 700 11px/1 var(--ui);
}

.sublender-tier {
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(14, 52, 96, 0.1);
}

.sublender-tier.tier-flex {
  border-color: rgba(16, 185, 129, 0.36);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(255, 255, 255, 0.88) 70%);
}

.sublender-tier.tier-mid {
  border-color: rgba(14, 165, 233, 0.28);
}

.sublender-tier.tier-prime {
  border-color: rgba(245, 158, 11, 0.3);
}

.tier-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
  font: 700 12px/1.25 var(--ui);
  color: #071220;
}

.tier-flex .tier-bar strong {
  color: #047857;
}

.tier-mid .tier-bar strong {
  color: #0369a1;
}

.tier-prime .tier-bar strong {
  color: #b45309;
}

.tier-bar span {
  font: 600 11px/1 var(--ui);
  color: #4d647d;
}

.lender-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lender-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 42, 76, 0.12);
  font: 500 12px/1.25 var(--ui);
  color: #1d3148;
}

.lender-chip b {
  font-weight: 700;
  color: #071220;
}

.lender-chip em {
  font-style: normal;
  font-size: 11.5px;
  color: #46607c;
}

.sublender-foot {
  margin: 2px 0 0;
  font: 500 11.5px/1.42 var(--ui);
  color: #4d647d;
}

/* ---------- Banners & Trust Strip ---------- */
.paid-banner {
  margin: 0 auto 14px;
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(236, 253, 245, 0.88);
  border: 1.5px solid #10b981;
  color: #064e3b;
  font: 700 14px/1.4 var(--ui);
}

.client-banner {
  display: inline-block;
  margin: 0 auto 12px;
  padding: 8px 18px;
  border-radius: var(--pill);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(14, 165, 233, 0.36);
  box-shadow: 0 4px 14px rgba(14, 116, 204, 0.08);
  color: #0b223b;
  font: 700 13px/1.25 var(--ui);
}

.pick-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 22px;
  padding: 12px 18px;
  border-radius: 13px;
  background: rgba(239, 248, 255, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(14, 165, 233, 0.36);
  color: #0b223b;
  font: 600 13.5px/1.35 var(--ui);
}

.pick-unlock-btn {
  padding: 8px 14px;
  border-radius: var(--pill);
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, #102540 0%, #071324 100%);
  color: #ffffff;
  font: 700 12px/1.2 var(--ui);
  cursor: pointer;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: -12px auto 32px;
  padding: 11px 18px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(14, 72, 134, 0.09);
  color: #162b42;
  font: 600 12.5px/1.35 var(--ui);
}

/* ---------- 3-Step Strip, FAQ & Upgrades ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 34px;
}

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

.step-card {
  padding: 22px;
  border-radius: 15px;
}

.step-num {
  font: 800 12px/1 var(--ui);
  color: #0284c7;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.step-card h3 {
  font: 700 18px/1.25 var(--display);
  color: #071220;
  margin: 0 0 7px;
}

.step-card p {
  font: 500 14px/1.5 var(--ui);
  color: #3a5068;
  margin: 0;
}

.fin-faq {
  padding: 25px 28px;
  border-radius: 18px;
  margin-bottom: 38px;
}

.fin-faq h2 {
  font: 700 22px/1.25 var(--display);
  color: #071220;
  margin: 0 0 12px;
}

.fin-faq details {
  border-top: 1px solid var(--hair);
  padding: 14px 0;
}

.fin-faq summary {
  cursor: pointer;
  font: 700 15px/1.4 var(--ui);
  color: #071220;
  list-style: none;
}

.fin-faq summary::-webkit-details-marker {
  display: none;
}

.fin-faq details p {
  margin: 8px 0 0;
  font: 500 14px/1.55 var(--ui);
  color: #3a5068;
}

.upgrades-section {
  margin-bottom: 38px;
}

.upgrades-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 22px;
}

.upgrades-head h2 {
  font: 700 clamp(23px, 2.9vw, 31px)/1.16 var(--display);
  letter-spacing: -0.02em;
  color: #071220;
  margin: 4px 0 10px;
}

.upgrades-head p {
  font: 500 15px/1.5 var(--ui);
  color: #3a5068;
  margin: 0;
}

.upgrades-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1040px) {
  .upgrades-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.upgrade-item {
  padding: 18px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tier-subhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font: 700 17px/1.35 var(--display);
  color: #071220;
  margin: 0 0 14px;
}

.gift-pill,
.bundle-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--pill);
  font: 700 11.5px/1.1 var(--ui);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.gift-pill,
.mini-tag.gift {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(5, 150, 105, 0.34);
  color: #065f46;
}

.bundle-pill,
.mini-tag.bundle {
  background: rgba(14, 165, 233, 0.13);
  border: 1px solid rgba(2, 132, 199, 0.32);
  color: #075985;
}

.mini-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: var(--pill);
  font: 700 10.5px/1.1 var(--ui);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.upgrade-item h3 {
  font: 700 15.5px/1.26 var(--display);
  color: #071220;
  margin: 0 0 7px;
}

.upgrade-item p {
  font: 500 13.5px/1.48 var(--ui);
  color: #3a5068;
  margin: 0;
}

/* ---------- Bottom GoSunlite Partner Banner ---------- */
.bottom-partner-wrap {
  grid-template-columns: 1fr;
  margin-bottom: 38px;
}

.bottom-partner-card {
  padding: 26px 28px;
}

.bottom-partner-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 26px;
  align-items: center;
}

.bottom-partner-copy,
.bottom-partner-side {
  min-width: 0;
}

@media (max-width: 900px) {
  .bottom-partner-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

.bottom-partner-copy .lane-sub {
  margin-bottom: 14px;
}

.bottom-partner-side {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.bottom-partner-side .lane-paybox {
  margin-bottom: 4px;
}

/* ---------- Footer ---------- */
.fin-foot {
  border-top: 1px solid var(--hair);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font: 500 13px/1.55 var(--ui);
  color: #4d647d;
}

.fin-foot strong {
  color: #071220;
}

.fin-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Closer & Rep Playbook (/reps) ---------- */
.rep-builder {
  padding: 24px 26px;
  border-radius: 18px;
  margin-bottom: 22px;
}

.rep-builder-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.rep-builder-head h2 {
  font: 700 22px/1.2 var(--display);
  color: #071220;
  margin: 0;
}

.rep-mode-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  gap: 5px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(230, 241, 250, 0.72);
  border: 1px solid rgba(14, 82, 152, 0.14);
}

.rep-builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 12px;
  margin-bottom: 14px;
}

.rep-builder-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .rep-builder-grid,
  .rep-builder-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .rep-builder-grid,
  .rep-builder-grid-4 {
    grid-template-columns: 1fr;
  }
}

.rep-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font: 700 12px/1.25 var(--ui);
  color: #1d3148;
}

.rep-field .input {
  width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(14, 62, 118, 0.2);
  color: #071220;
  font: 600 15px/1.2 var(--ui);
}

.rep-field select.input {
  padding-right: 34px;
  background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px;
}

.rep-csz-split {
  display: flex;
  gap: 6px;
  min-width: 0;
}

.rep-csz-split > input {
  flex: 1.1;
  min-width: 0;
}

.rep-csz-split > select {
  flex: 1;
  min-width: 0;
}

.rep-signpay-fields {
  margin: 4px 0 14px;
  padding: 14px 16px;
  border-radius: 13px;
  background: rgba(235, 246, 255, 0.62);
  border: 1px solid rgba(14, 132, 212, 0.22);
}

.rep-mint-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.rep-mint-btn {
  width: auto;
  min-height: 45px;
  padding: 10px 20px;
  font-size: 14.5px;
}

.rep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 34px;
}

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

.rep-card {
  padding: 24px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 14px;
}

.rep-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 520px) {
  .rep-specs {
    grid-template-columns: 1fr;
  }
}

.rep-spec {
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(14, 62, 118, 0.1);
  min-width: 0;
}

.rep-spec .k {
  display: block;
  font: 700 10.5px/1.2 var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0369a1;
  margin-bottom: 4px;
}

.rep-spec .v {
  display: block;
  font: 700 13.5px/1.35 var(--ui);
  color: #071220;
}

.rep-url-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(235, 245, 255, 0.76);
  border: 1px solid rgba(14, 132, 212, 0.24);
  font: 600 12.5px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #0369a1;
}

.rep-url-bar > span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.rep-builder-url {
  flex-wrap: wrap;
}

.rep-builder-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.copy-btn {
  flex: none;
  padding: 7px 12px;
  border-radius: 7px;
  border: 1px solid rgba(14, 132, 212, 0.34);
  background: rgba(255, 255, 255, 0.9);
  color: #0b223b;
  font: 700 12px/1.1 var(--ui);
  cursor: pointer;
}

.copy-btn:hover {
  background: #e0f2fe;
}

.copy-btn-sms {
  border-color: rgba(5, 150, 105, 0.42);
  background: rgba(236, 253, 245, 0.92);
  color: #065f46;
}

.copy-btn-sms:hover {
  background: #d1fae5;
}

.rep-rule-box {
  padding: 24px 26px;
  border-radius: 18px;
  margin-bottom: 32px;
}

.rep-feed-card {
  padding: 22px 24px;
  border-radius: 18px;
  margin-bottom: 22px;
}

.rep-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.rep-feed-head h2 {
  font: 700 20px/1.22 var(--display);
  color: #071220;
  margin: 0;
}

.rep-feed-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rep-filter-input {
  max-width: 170px;
  min-height: 38px !important;
  height: 38px !important;
  padding: 6px 11px !important;
  font-size: 14px !important;
}

.rep-feed-list {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow-y: auto;
}

.rep-feed-empty {
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  color: #4d647d;
  font: 500 13.5px/1.4 var(--ui);
  text-align: center;
}

.rep-feed-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(14, 62, 118, 0.09);
  font: 500 13.5px/1.35 var(--ui);
}

.ev-badge {
  flex: none;
  padding: 4px 9px;
  border-radius: var(--pill);
  font: 700 11px/1 var(--ui);
  letter-spacing: 0.03em;
}

.ev-paid {
  background: #d1fae5;
  border: 1px solid #10b981;
  color: #065f46;
}

.ev-signed {
  background: #e0f2fe;
  border: 1px solid #0ea5e9;
  color: #075985;
}

.ev-clicked {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
}

.ev-created,
.ev-opened {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.ev-main {
  flex: 1 1 220px;
  min-width: 0;
  color: #334155;
  overflow-wrap: anywhere;
}

.ev-main strong {
  color: #071220;
}

.ev-time {
  flex: none;
  font: 700 12px/1 var(--ui);
  color: #0284c7;
}

/* ---------- /deal/:id Step 1 Unified Signing Portal ---------- */
.deal-wrap {
  max-width: 920px;
}

.deal-progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin: 4px auto 22px;
}

.deal-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13.5px/1.2 var(--ui);
  color: #5b718a;
}

.deal-step.active {
  color: #071220;
  font-weight: 700;
}

.step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #cbd5e1;
  color: #475569;
  font: 700 12.5px/1 var(--ui);
}

.deal-step.active .step-badge {
  background: linear-gradient(135deg, #10b981, #0284c7);
  border-color: transparent;
  color: #ffffff;
}

.deal-step-line {
  width: 36px;
  height: 2px;
  background: rgba(14, 62, 118, 0.16);
}

.deal-card {
  padding: 24px 26px;
  border-radius: 18px;
  margin-bottom: 20px;
}

.deal-title {
  font: 700 clamp(24px, 3.5vw, 34px)/1.14 var(--display);
  color: #071220;
  margin: 4px 0 10px;
}

.deal-summary-grid {
  margin-top: 14px;
}

.deal-pdf-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.deal-pdf-head h2 {
  font: 700 20px/1.22 var(--display);
  color: #071220;
  margin: 0;
}

.deal-pdf-box {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(14, 62, 118, 0.18);
  background: #ffffff;
}

.deal-pdf-box iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
}

.deal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.sig-section {
  margin-bottom: 16px;
}

.sig-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font: 700 13px/1.25 var(--ui);
  color: #071220;
}

.sig-pad-wrap {
  border-radius: 12px;
  background: #ffffff;
  border: 2px solid #0284c7;
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
}

.sig-pad-wrap canvas {
  display: block;
  width: 100%;
  height: 185px;
}

.deal-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 11px;
  background: rgba(240, 249, 255, 0.78);
  border: 1px solid rgba(14, 165, 233, 0.3);
  font: 500 13.5px/1.45 var(--ui);
  color: #1d3148;
  cursor: pointer;
}

.deal-consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: #0284c7;
  flex: none;
}

/* ---------- Denefits Embedded Modal Z-Index & Backdrop ---------- */
#iframe_outer_container {
  z-index: 9999 !important;
  background: rgba(7, 18, 32, 0.72) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 14px;
}

#iframe_content {
  border-radius: 14px !important;
  max-width: 1020px !important;
  max-height: 92vh !important;
  overflow: hidden !important;
  position: relative !important;
  box-shadow: 0 24px 70px rgba(7, 18, 32, 0.45) !important;
}

.denefits-modal-close {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 10001;
  background: #071220;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 8px 15px;
  font: 700 13px/1 var(--ui);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* ---------- Comprehensive Mobile Polish (Zero iOS Zoom, Zero Overflow, Clean Grids) ---------- */
@media (max-width: 768px) {
  .input,
  select.input,
  textarea.input,
  .denefits-drawer .input,
  .rep-field .input,
  .rep-filter-input {
    font-size: 16px !important;
  }
}

@media (max-width: 720px) {
  .top {
    height: 50px;
    padding: 0 14px;
    gap: 10px;
  }
  .top.scrolled {
    height: 44px;
  }
  .top .nav {
    display: none;
  }
  .top .brand {
    font-size: 17px;
    gap: 8px;
  }
  .top .brand img {
    width: 30px;
    height: 30px;
  }
  .top.scrolled .brand img {
    width: 26px;
    height: 26px;
  }
  .top .brand small {
    font-size: 10px;
  }
  .top-cta .pill {
    height: 31px;
    padding: 0 12px;
    font-size: 12.5px;
  }
  .fin-wrap {
    padding: 16px 14px 64px;
  }
  .fin-hero {
    margin: 4px auto 22px;
  }
  .estimator,
  .lane,
  .fin-faq,
  .rep-builder,
  .rep-card,
  .rep-rule-box,
  .rep-feed-card,
  .deal-card,
  .bottom-partner-card {
    padding: 20px 16px;
  }
  .acorn-right {
    padding: 14px;
  }
  .denefits-drawer-grid,
  .deal-form-grid {
    grid-template-columns: 1fr;
  }
  .rep-mode-tabs {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rep-mint-btn {
    width: 100%;
  }
  .rep-builder-btns {
    width: 100%;
  }
  .rep-builder-btns .copy-btn {
    flex: 1 1 auto;
    text-align: center;
  }
  .deal-pdf-box iframe {
    height: 360px;
  }
}

@media (max-width: 640px) {
  .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .filter-tab {
    width: 100%;
    padding: 9px 8px;
    font-size: 12px;
    text-align: center;
  }
  .est-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .amt-input-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .amt-input {
    flex: 1;
    width: auto;
  }
  .est-pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    width: 100%;
    gap: 6px;
  }
  .est-pill {
    padding: 8px 4px;
    font-size: 12.5px;
    text-align: center;
  }
  .rep-csz-split {
    flex-direction: column;
  }
  .rep-feed-controls {
    width: 100%;
  }
  .rep-filter-input {
    max-width: none;
    flex: 1;
  }
}

@media (max-width: 440px) {
  .lane-paybox {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 13px 14px;
  }
  .lane-paybox .val {
    font-size: 26px;
  }
  .cta-paypal,
  .cta-klarna,
  .cta-square,
  .cta-denefits-api,
  .cta-acorn,
  .cta-aven,
  .cta-cecu,
  .cta-nopaynow,
  .cta-hfs {
    font-size: 14.5px;
    padding: 12px 14px;
  }
  .deal-step-line {
    display: none;
  }
}

/* ---------- /reps 1-Screen Simple Send Box, 4-Situation Picker & Reference Drawer ---------- */
.rep-simple-wrap {
  padding-top: 18px;
}

.rep-clean-card {
  margin-bottom: 16px;
}

.rep-clean-h1 {
  margin: 0 0 3px;
  font: 700 clamp(22px, 2.8vw, 27px)/1.18 var(--serif);
  color: #071220;
  letter-spacing: -0.02em;
}

.rep-clean-sub {
  margin: 0;
  font: 500 13.5px/1.35 var(--ui);
  color: #4a627b;
}

.quick-lane-wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 8px;
}

.quick-lane-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1.5px solid rgba(14, 72, 134, 0.16);
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-lane-btn:hover {
  border-color: rgba(14, 116, 204, 0.45);
  background: rgba(255, 255, 255, 0.96);
}

.quick-lane-btn.active {
  background: linear-gradient(155deg, rgba(236, 253, 245, 0.96), rgba(224, 242, 254, 0.88));
  border-color: #059669;
  box-shadow: 0 4px 14px -4px rgba(5, 150, 105, 0.25), inset 0 0 0 1px rgba(5, 150, 105, 0.25);
}

.ql-top {
  font: 700 13.5px/1.2 var(--ui);
  color: #071324;
}

.quick-lane-btn.active .ql-top {
  color: #065f46;
}

.ql-sub {
  font: 500 11.5px/1.25 var(--ui);
  color: #4d647d;
}

.more-portals-toggle {
  margin: 0 0 12px;
  font: 600 12.5px/1.35 var(--ui);
  color: #36506b;
}

.more-portals-toggle > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  color: #026aa7;
  user-select: none;
}

.more-portals-toggle > summary::-webkit-details-marker {
  display: none;
}

.backup-portal-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.14);
  color: #0369a1;
  font: 700 11.5px/1.3 var(--ui);
}

.backup-portal-pill[hidden] {
  display: none !important;
}

.more-portals-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(241, 247, 253, 0.85);
  border: 1px solid rgba(14, 72, 134, 0.13);
}

.rep-builder-grid-3 {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.95fr;
  gap: 10px;
}

#rep-signpay-fields .rep-builder-grid-3 {
  grid-template-columns: 1.05fr 0.9fr 1.45fr;
}

.rep-gift-compact {
  margin: 10px 0 12px !important;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(236, 253, 245, 0.65);
  border: 1px solid rgba(5, 150, 105, 0.24);
}

.rep-gift-compact > span {
  color: #065f46 !important;
  font-weight: 700 !important;
}

.rep-primary-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
  margin: 4px 0 6px;
}

.rep-action-main,
.rep-action-sms {
  min-height: 48px;
}

.rep-status-line {
  min-height: 18px;
  margin: 2px 0 8px;
  font: 600 12.5px/1.35 var(--ui);
  color: #047857;
}

.rep-status-line:empty {
  display: none;
}

.rep-url-compact {
  margin-top: 6px !important;
  padding: 8px 11px !important;
}

.rep-feed-compact {
  margin-bottom: 16px;
  padding: 18px 22px;
}

.rep-feed-title-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rep-feed-title-inline .lane-badge {
  margin: 0;
}

.rep-feed-title-inline h2 {
  margin: 0;
  font: 700 18px/1.2 var(--serif);
}

.rep-ref-drawer {
  padding: 0 !important;
  overflow: hidden;
  margin-bottom: 18px;
}

.rep-ref-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
  font: 700 15px/1.35 var(--ui);
  color: #0c2540;
  user-select: none;
}

.rep-ref-summary::-webkit-details-marker {
  display: none;
}

.rep-ref-summary:hover {
  background: rgba(14, 165, 233, 0.05);
}

.rep-ref-toggle-lbl {
  font: 700 12.5px/1 var(--ui);
  color: #026aa7;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  white-space: nowrap;
}

.rep-ref-drawer[open] .rep-ref-summary {
  border-bottom: 1px solid rgba(14, 72, 134, 0.12);
}

.rep-ref-body {
  padding: 18px 20px 22px;
}

.rep-state-alert {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin: 0 0 12px;
  padding: 10px 13px;
  border-radius: 10px;
  background: rgba(254, 242, 242, 0.96);
  border: 1px solid rgba(220, 38, 38, 0.38);
  color: #991b1b;
  font: 600 12.5px/1.4 var(--ui);
}

.rep-state-alert[hidden] {
  display: none !important;
}

.state-switch-btn {
  background: #b91c1c !important;
  color: #ffffff !important;
  border-color: #991b1b !important;
  white-space: nowrap;
}

.copy-btn-open-sms {
  background: linear-gradient(180deg, #059669 0%, #047857 100%) !important;
  color: #ffffff !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
  text-decoration: none;
}

@media (max-width: 820px) {
  .quick-lane-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rep-builder-grid-3,
  #rep-signpay-fields .rep-builder-grid-3,
  .more-portals-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .rep-primary-actions {
    grid-template-columns: 1fr;
  }
  .rep-ref-summary {
    padding: 14px 16px;
    font-size: 13.5px;
  }
  .rep-ref-body {
    padding: 14px 12px 16px;
  }
}

/* ---------- Open Dealer-Fee Badges + Partner Live Monthly & Commission Scoreboard ---------- */
.speed-chip.fee-zero {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(5, 150, 105, 0.36);
  color: #065f46;
  font-weight: 700;
}

.speed-chip.fee-mdr {
  background: rgba(14, 165, 233, 0.11);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0c4a6e;
  font-weight: 700;
}

.quick-lane-btn .ql-sub b {
  color: #047857;
  font-weight: 800;
}

.quick-lane-btn[data-quicklane="card"] .ql-sub b {
  color: #0369a1;
}

.quote-comm-bar {
  margin: 12px 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(240, 253, 250, 0.9), rgba(239, 248, 255, 0.9));
  border: 1.5px solid rgba(16, 185, 129, 0.34);
  box-shadow: 0 6px 20px rgba(8, 52, 86, 0.06);
}

.partner-comm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(14, 72, 134, 0.11);
}

.partner-comm-head[hidden],
.qc-cell[hidden],
.partner-upsell-strip[hidden],
.rep-payoff-row[hidden] {
  display: none !important;
}

.rep-payoff-row {
  margin: 0 0 12px;
  padding: 10px 13px;
  border-radius: 11px;
  background: rgba(16, 185, 129, 0.07);
  border: 1px dashed rgba(5, 150, 105, 0.35);
}

.partner-comm-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.partner-comm-title .lane-badge {
  margin: 0;
}

.partner-comm-sub {
  font: 600 12.5px/1.3 var(--ui);
  color: #2c4763;
}

.partner-lead-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(15, 38, 66, 0.07);
}

.quote-comm-grid {
  display: grid;
  gap: 10px;
}

.quote-comm-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-comm-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qc-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 11px 13px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(14, 62, 114, 0.12);
  min-width: 0;
}

.qc-cell.qc-comm {
  background: linear-gradient(145deg, rgba(236, 253, 245, 0.96), rgba(255, 255, 255, 0.96));
  border: 1.5px solid rgba(5, 150, 105, 0.44);
}

.qc-lbl {
  font: 700 11px/1.2 var(--ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #46607c;
  margin-bottom: 4px;
}

.qc-val {
  font: 800 clamp(19px, 2.2vw, 24px)/1.15 var(--display);
  color: #071220;
  font-variant-numeric: tabular-nums;
}

.qc-val.fee-zero-txt {
  color: #047857;
}

.qc-val.fee-mdr-txt {
  color: #b45309;
}

.qc-val.comm-green-txt {
  color: #047857;
}

.qc-note {
  margin-top: 4px;
  font: 600 11.5px/1.35 var(--ui);
  color: #3a526c;
}

.partner-upsell-strip {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed rgba(2, 132, 199, 0.36);
  font: 500 12.5px/1.4 var(--ui);
  color: #0c2b4b;
}

.partner-upsell-strip strong {
  color: #047857;
  font-weight: 700;
}

@media (max-width: 820px) {
  .quote-comm-grid.cols-3,
  .quote-comm-grid.cols-2 {
    grid-template-columns: 1fr;
  }
}
