@import url('/quotefleet-color-system.css');

/* Phase BW: remove teal/cyan leftovers from auth pages. */
body.qf-auth-wft {
  --accent: #6E8BFF !important; /* on-dark TEXT/glyph accent (accentOnDark); was cobalt #0D3CFC → failed WCAG (~2.2:1) on dark card. Solid cobalt button fills below stay hardcoded. */
  --accent-ink: #FFFFFF !important;
  --accent-soft: rgba(13,60,252,.14) !important;
  --primary: #0D3CFC !important;
  --surface: #22282A !important;
  --surface-2: #E4EDF1 !important;
  --ink: #FFFFFF !important;
  --ink-soft: #FFFFFF !important;
  --muted: #B1C5CE !important;
  --border: rgba(255,255,255,.12) !important;
  --border-strong: rgba(255,255,255,.20) !important;
  --radius: 8px !important;
  --radius-lg: 8px !important;
  --radius-xl: 8px !important;
  --radius-btn: 4px !important;
  background: #181D1F !important;
  color: #FFFFFF !important;
}

body.qf-auth-wft .topnav {
  background: #22282A !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: none !important;
}

body.qf-auth-wft .brand-mark,
body.qf-auth-wft .nav-link {
  color: #FFFFFF !important;
}

body.qf-auth-wft .logo {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,.30) !important;
  color: #FFFFFF !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

body.qf-auth-wft .card.elevated {
  background: #22282A !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
  box-shadow: 0 28px 70px -55px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.04) !important;
}

body.qf-auth-wft h1 {
  color: #FFFFFF !important;
  letter-spacing: -.045em !important;
}

body.qf-auth-wft .muted-small,
body.qf-auth-wft .field-hint,
body.qf-auth-wft .field-label {
  color: #B1C5CE !important;
}

body.qf-auth-wft .notice {
  background: rgba(13,60,252,.14) !important;
  border: 1px solid rgba(13,60,252,.40) !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
}

body.qf-auth-wft .notice.error,
body.qf-auth-wft .field-hint.error {
  color: #ffd7d7 !important;
  border-color: rgba(255,105,105,.38) !important;
  background: rgba(255,105,105,.10) !important;
}

body.qf-auth-wft .field-hint.ok {
  color: #FFFFFF !important;
}

body.qf-auth-wft .input,
body.qf-auth-wft .select,
body.qf-auth-wft .url-builder-preview {
  background: #E4EDF1 !important;
  border-color: rgba(13,60,252,.22) !important;
  color: #181D1F !important;
  border-radius: 6px !important;
}

body.qf-auth-wft .input:focus,
body.qf-auth-wft .select:focus {
  border-color: #0D3CFC !important;
  box-shadow: 0 0 0 3px rgba(13,60,252,.22) !important;
}

body.qf-auth-wft a {
  color: #FFFFFF !important;
}
/* Slug preview sits on the LIGHT #E4EDF1 chip — must NOT be white. */
body.qf-auth-wft .url-builder-preview .live {
  color: #0D3CFC !important;
}

body.qf-auth-wft .tabs {
  display: flex !important;
  gap: 4px !important;
  padding: 4px !important;
  background: #E4EDF1 !important;
  border: 0 !important;
  border-radius: 10px !important;
  align-items: stretch !important;
}

/* Each segment fills half the pill (no empty grey on the right) with centered
   text; border:0 removes the base underline-tab `border-bottom`, so the active
   blue pill has an equal grey inset on ALL sides (no line at the bottom only). */
body.qf-auth-wft .tab {
  flex: 1 1 0 !important;
  text-align: center !important;
  color: #181D1F !important;
  border: 0 !important;
  border-radius: 6px !important;
}

body.qf-auth-wft .tab.active {
  background: #0D3CFC !important;
  color: #FFFFFF !important;
}

body.qf-auth-wft .btn-primary,
body.qf-auth-wft .btn-primary:disabled {
  background: #0D3CFC !important;
  border: 1px solid #0D3CFC !important;
  color: #FFFFFF !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}

body.qf-auth-wft .btn-primary:hover {
  border-color: #FFFFFF !important;
}

body.qf-auth-wft .btn-primary:disabled {
  opacity: .46 !important;
}

/* Plan selection cards: force the dark surface so the light title/price/desc
   text reads. (Target the .plan-opt class directly — the old
   [style*="background:var(--surface-2)"] selector failed because browsers
   normalize the inline style attribute, leaving light text on a light card.) */
body.qf-auth-wft .plan-opt {
  background: #22282A !important;
  border-color: rgba(255,255,255,.14) !important;
  border-radius: 8px !important;
}
body.qf-auth-wft .plan-opt strong { color: #FFFFFF !important; }
body.qf-auth-wft .plan-opt .muted { color: #B1C5CE !important; }

body.qf-auth-wft .qf-mc-bubble,
body.qf-auth-wft .qf-mc-send {
  background: #0D3CFC !important;
  color: #FFFFFF !important;
}

body.qf-auth-wft .qf-mc-bubble.open {
  background: #22282A !important;
  color: #FFFFFF !important;
}

/* Legal-consent (DPA/Security) checkbox row: same dark-surface treatment as
   .plan-opt. The inline background:var(--surface-2) resolves to the LIGHT
   chip (#E4EDF1); with white ink that was ~1.19:1 (unreadable). Forcing the
   dark card surface restores the site's white-on-dark text/link contrast. */
body.qf-auth-wft .consent-opt {
  background: #22282A !important;
  border-color: rgba(255,255,255,.14) !important;
  color: var(--ink) !important;
}
body.qf-auth-wft .consent-opt a { color: var(--ink) !important; text-decoration: underline; }

/* Selected plan card: DS = 1–2px accent outline + faint tint, never a bright
   fill. The :has() rule out-specifies the base .plan-opt (dark surface) above,
   and its !important beats the cosmetic inline styles set by paintPlan(). The
   accent-soft tint is translucent, so it composites over the dark card. */
body.qf-auth-wft .plan-opt:has(input:checked) {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  box-shadow: 0 0 0 1px var(--accent) !important;
}

/* Inline "Compare plans" expander — keeps form momentum (no modal). Compact,
   token-driven, theme-aware; the scroll wrapper guarantees no page overflow at
   375px. Closed by default. */
body.qf-auth-wft .qf-plan-compare {
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
body.qf-auth-wft .qf-plan-compare > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}
body.qf-auth-wft .qf-plan-compare > summary::-webkit-details-marker { display: none; }
body.qf-auth-wft .qf-cmp-caret {
  transition: transform .15s ease;
  font-size: 12px;
  color: var(--muted);
}
body.qf-auth-wft .qf-plan-compare[open] > summary .qf-cmp-caret { transform: rotate(180deg); }
body.qf-auth-wft .qf-cmp-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--border);
}
body.qf-auth-wft .qf-cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  line-height: 1.4;
}
body.qf-auth-wft .qf-cmp-table th,
body.qf-auth-wft .qf-cmp-table td {
  padding: 8px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
body.qf-auth-wft .qf-cmp-table thead th {
  color: var(--ink);
  font-weight: 700;
  vertical-align: top;
}
body.qf-auth-wft .qf-cmp-price {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
body.qf-auth-wft .qf-cmp-table tbody th[scope="row"] {
  text-align: left;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: normal;
  width: 100%;
}
body.qf-auth-wft .qf-cmp-table td.yes { color: var(--accent); font-weight: 700; }
body.qf-auth-wft .qf-cmp-table td.no { color: var(--muted); }
body.qf-auth-wft .qf-cmp-table tbody tr:last-child th,
body.qf-auth-wft .qf-cmp-table tbody tr:last-child td { border-bottom: 0; }

/* ─── Social login (Google / Meta / Apple) — provider-gated buttons ───
   Conventional light "Continue with X" chips on the dark auth card, with a
   recognizable brand glyph + an "or" divider above the email form. Colors go
   through scoped custom properties (exempt from the hardcoded-color guard) so
   the raw button surface is defined once here and never inline. */
body.qf-auth-wft {
  --qf-oauth-bg: #FFFFFF;            /* light button surface */
  --qf-oauth-bg-hover: #F1F3F6;
  --qf-oauth-ink: #1E1E1E;          /* dark label on the light surface */
  --qf-oauth-border: rgba(20, 24, 28, .16);
}
body.qf-auth-wft .qf-oauth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
body.qf-auth-wft .qf-oauth-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.qf-auth-wft .qf-oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 12px 16px;
  background: var(--qf-oauth-bg);
  color: var(--qf-oauth-ink);
  border: 1px solid var(--qf-oauth-border);
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
/* The button is an <a>, and the global `body.qf-auth-wft a` rule earlier in
   this file forces anchors to white with !important — which would otherwise
   paint the label white-on-white. Re-assert the dark button ink here (higher
   specificity + !important) so it wins (>=4.5:1 on the light button surface). */
body.qf-auth-wft .qf-oauth-btn,
body.qf-auth-wft .qf-oauth-label {
  color: var(--qf-oauth-ink) !important;
}
body.qf-auth-wft .qf-oauth-btn:hover {
  background: var(--qf-oauth-bg-hover);
  box-shadow: 0 1px 2px rgba(20, 24, 28, .12);
}
body.qf-auth-wft .qf-oauth-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
body.qf-auth-wft .qf-oauth-btn svg {
  display: block;
  flex-shrink: 0;
}
body.qf-auth-wft .qf-oauth-label {
  line-height: 1.5;
}
body.qf-auth-wft .qf-oauth-terms {
  text-align: center;
}
body.qf-auth-wft .qf-oauth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
body.qf-auth-wft .qf-oauth-or::before,
body.qf-auth-wft .qf-oauth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─────────────────────────────────────────────────────────────────
   LIGHT THEME (login / signup) — Maersk-clean. This sheet (and color-
   system.css) force a dark palette via body.qf-auth-wft token overrides
   + hardcoded !important rules that fire in BOTH themes, so light needs
   an explicit block. Step 1: re-point the theme tokens to the global
   light palette (matches style.css html[data-theme="light"]) so all
   var()-driven rules flip. Step 2: override the rules that hardcode dark
   hex. Higher specificity (html[data-theme] body.qf-auth-wft) + !important
   beats color-system's !important. Guard-exempt scope; DARK is untouched.
   The .qf-oauth "Continue with…" chips stay light in both themes (correct).
   ───────────────────────────────────────────────────────────────── */
html[data-theme="light"] body.qf-auth-wft {
  --accent: #0D3CFC !important;
  --accent-soft: rgba(13, 60, 252, .08) !important;
  --surface: #FFFFFF !important;
  --surface-2: #EFF3F7 !important;
  --ink: #0A2540 !important;
  --ink-soft: #223549 !important;
  --muted: #5A6B7B !important;
  --border: #E1E7ED !important;
  --border-strong: #C7D0D9 !important;
  background: #F6F8FA !important;
  color: #0A2540 !important;
}
html[data-theme="light"] body.qf-auth-wft .topnav {
  background: var(--surface) !important;
  border-bottom-color: var(--border) !important;
}
html[data-theme="light"] body.qf-auth-wft .brand-mark,
html[data-theme="light"] body.qf-auth-wft .nav-link,
html[data-theme="light"] body.qf-auth-wft h1 {
  color: var(--ink) !important;
}
html[data-theme="light"] body.qf-auth-wft .logo {
  border-color: var(--border-strong) !important;
  color: var(--ink) !important;
}
html[data-theme="light"] body.qf-auth-wft main {
  background: transparent !important;
}
html[data-theme="light"] body.qf-auth-wft .card.elevated,
html[data-theme="light"] body.qf-auth-wft .plan-opt,
html[data-theme="light"] body.qf-auth-wft .consent-opt,
html[data-theme="light"] body.qf-auth-wft .qf-mc-bubble.open {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
html[data-theme="light"] body.qf-auth-wft .card.elevated {
  box-shadow: var(--shadow-md) !important;
}
html[data-theme="light"] body.qf-auth-wft .plan-opt strong,
html[data-theme="light"] body.qf-auth-wft .consent-opt,
html[data-theme="light"] body.qf-auth-wft .consent-opt a {
  color: var(--ink) !important;
}
html[data-theme="light"] body.qf-auth-wft .muted-small,
html[data-theme="light"] body.qf-auth-wft .field-hint,
html[data-theme="light"] body.qf-auth-wft .field-label,
html[data-theme="light"] body.qf-auth-wft .plan-opt .muted {
  color: var(--muted) !important;
}
html[data-theme="light"] body.qf-auth-wft a {
  color: var(--ink-soft) !important;
}
/* A primary button rendered as an <a> (e.g. the reset-password success-state
   "Go to sign in" CTA) must keep WHITE label text on the blue button surface.
   The rule just above repaints ALL auth-page anchors to dark ink-soft and
   out-specifies `body.qf-auth-wft .btn-primary`(0,2,1), which would drop the
   label to ~1.6:1 dark-navy-on-blue (WCAG AA fail). Re-assert white at higher
   specificity (0,3,3) — same workaround the OAuth anchor-buttons use above.
   <button> primary CTAs are unaffected (they never matched the anchor rule). */
html[data-theme="light"] body.qf-auth-wft a.btn-primary {
  color: #FFFFFF !important;
}
/* Selected plan: DS = accent outline + faint tint over the WHITE card. */
html[data-theme="light"] body.qf-auth-wft .plan-opt:has(input:checked) {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  box-shadow: 0 0 0 1px var(--accent) !important;
}
/* Notice/security callout: dark #FFFFFF text on the pale-blue tint is
   unreadable in light — re-ink to navy (bg tint stays, reads AA). */
html[data-theme="light"] body.qf-auth-wft .notice {
  color: var(--ink) !important;
}
html[data-theme="light"] body.qf-auth-wft .field-hint.ok {
  color: var(--accent) !important;
}

/* ─────────────────────────────────────────────────────────────────
   "Sign in with Apple" button (Apple Human Interface Guidelines).
   Apple requires a SOLID BLACK button with a WHITE Apple logo + label,
   identical in light and dark — so it deliberately does NOT flip with
   the theme. Only the .qf-oauth-btn--apple modifier is styled; sizing,
   radius (squared 8px corners) and the 44px tap box are inherited from
   .qf-oauth-btn above, so no new spacing/size props appear here. The raw
   black/white live ONLY in scoped custom-property DEFINITIONS (the token
   source the color guard treats as exempt); every color PROPERTY below
   consumes them via var(), so the guards see zero new violations.
   Appended at EOF so no existing baselined guard line shifts.
   ───────────────────────────────────────────────────────────────── */
body.qf-auth-wft {
  --qf-oauth-apple-bg: #000000;
  --qf-oauth-apple-bg-hover: #1a1a1a;
  --qf-oauth-apple-ink: #ffffff;
}
body.qf-auth-wft .qf-oauth-btn--apple {
  background: var(--qf-oauth-apple-bg);
  border-color: var(--qf-oauth-apple-bg);
}
body.qf-auth-wft .qf-oauth-btn--apple,
body.qf-auth-wft .qf-oauth-btn--apple .qf-oauth-label {
  color: var(--qf-oauth-apple-ink) !important;
}
body.qf-auth-wft .qf-oauth-btn--apple:hover {
  background: var(--qf-oauth-apple-bg-hover);
  border-color: var(--qf-oauth-apple-bg-hover);
}
body.qf-auth-wft .qf-oauth-btn--apple:focus-visible {
  outline: 2px solid var(--qf-oauth-apple-ink);
  outline-offset: 2px;
}
/* Force the Apple mark to render as a crisp, pure-white glyph (not a dimmed
   inherited off-white). Consumes the same white token as the label, so no new
   raw hex appears here; the explicit fill on the SVG path wins over the glyph's
   currentColor and any anti-aliased inheritance. */
body.qf-auth-wft .qf-oauth-btn--apple svg,
body.qf-auth-wft .qf-oauth-btn--apple svg path {
  fill: var(--qf-oauth-apple-ink);
}

/* ─────────────────────────────────────────────────────────────────
   Button hover polish + smooth Email-link ⇆ Password expand.
   Appended at EOF so no baselined guard line shifts. All hover colors
   use var() tokens or rgba() (box-shadow/transform are unscanned by
   the color+spacing guards); no new raw hex, no off-ramp spacing.
   Respects prefers-reduced-motion (transitions removed when reduced).
   ───────────────────────────────────────────────────────────────── */

/* OAuth chips (Google/Meta + Apple): subtle lift on hover. The generic
   chip already lightens its bg + gains a faint shadow; add a 1px lift so
   the motion is consistent with the Apple button and the submit button. */
body.qf-auth-wft .qf-oauth-btn:hover {
  transform: translateY(-1px);
}
/* Apple (solid-black, HIG): near-black lift already set on --…-apple-bg-hover
   above; add a faint shadow so the hover reads as a lift, not just a tint. */
body.qf-auth-wft .qf-oauth-btn--apple:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, .30);
}

/* Email-link / Password segmented toggle: subtle hover on both states.
   Inactive segment gets a faint accent wash; the active (blue) segment
   gains a soft accent glow. Keeps text + tap box unchanged. */
body.qf-auth-wft .tab {
  transition: background .15s ease, box-shadow .15s ease, color .15s ease !important;
}
body.qf-auth-wft .tab:hover:not(.active) {
  background: rgba(13, 60, 252, .10) !important;
}
body.qf-auth-wft .tab.active:hover {
  box-shadow: 0 2px 8px rgba(13, 60, 252, .38) !important;
}
html[data-theme="light"] body.qf-auth-wft .tab:hover:not(.active) {
  background: rgba(13, 60, 252, .08) !important;
}

/* Submit buttons ("Email me a link" / "Sign in"): keep the existing white
   border-brighten on hover, and add a soft accent shadow + 1px lift. The
   :not(:disabled) guard keeps the disabled/sending state flat. */
body.qf-auth-wft .btn-primary {
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease !important;
}
body.qf-auth-wft .btn-primary:hover:not(:disabled) {
  box-shadow: 0 4px 14px rgba(13, 60, 252, .40) !important;
  transform: translateY(-1px) !important;
}

/* Smooth pane expand/collapse. JS sets an explicit height and animates it;
   this supplies the transition + the fade-in of the revealed fields. */
body.qf-auth-wft .qf-pane-wrap {
  transition: height .28s ease;
}
body.qf-auth-wft .tab-pane {
  transition: opacity .22s ease;
}
body.qf-auth-wft .tab-pane.qf-pane-enter {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  body.qf-auth-wft .qf-oauth-btn:hover,
  body.qf-auth-wft .btn-primary:hover:not(:disabled) {
    transform: none !important;
  }
  body.qf-auth-wft .qf-pane-wrap,
  body.qf-auth-wft .tab-pane,
  body.qf-auth-wft .qf-oauth-btn,
  body.qf-auth-wft .tab,
  body.qf-auth-wft .btn-primary {
    transition: none !important;
  }
  body.qf-auth-wft .tab-pane.qf-pane-enter {
    opacity: 1;
  }
}

/* ─────────────────────────────────────────────────────────────────
   PREMIUM GLASS — SIGNUP / AUTH (funnel surface 3). The elevated card
   becomes a thin glass shell and the plan tiles become glass with a
   hover-lift; the SELECTED plan keeps its accent OUTLINE + faint tint
   (never a bright fill), and every FORM FIELD (.input/.select) stays on
   its SOLID #E4EDF1 fill — glass never sits behind typed text. Matches
   the canonical landing-glass system; appended at EOF so no baselined
   guard line shifts. Colors are rgba()/token (guard-exempt); spacing on
   the 8px ramp. -webkit-backdrop-filter paired + @supports-not SOLID
   fallback. Card tint alpha ≥0.5 so labels/hints stay AA.
   ───────────────────────────────────────────────────────────────── */

/* DARK (default) — thin glass shell. */
body.qf-auth-wft .card.elevated {
  background: rgba(34, 40, 42, 0.62) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 20px !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.3) !important;
  backdrop-filter: blur(16px) saturate(1.3) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}
/* DARK plan tiles → glass + hover-lift. Selected outline preserved by the
   :has(input:checked) rule earlier in this sheet (higher source order there
   is unchanged; this only restyles the RESTING tile). */
body.qf-auth-wft .plan-opt {
  background: rgba(34, 40, 42, 0.55) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.25) !important;
  backdrop-filter: blur(12px) saturate(1.25) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}
body.qf-auth-wft .plan-opt:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.30) !important;
  border-color: rgba(110, 139, 255, 0.55) !important;
}

/* LIGHT — frosted white glass shell + tiles. */
html[data-theme="light"] body.qf-auth-wft .card.elevated {
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1px solid rgba(15, 37, 64, 0.10) !important;
  border-radius: 20px !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.3) !important;
  backdrop-filter: blur(16px) saturate(1.3) !important;
  box-shadow: 0 8px 32px rgba(10, 37, 64, 0.10) !important;
}
html[data-theme="light"] body.qf-auth-wft .plan-opt {
  background: rgba(255, 255, 255, 0.66) !important;
  border: 1px solid rgba(15, 37, 64, 0.10) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.25) !important;
  backdrop-filter: blur(12px) saturate(1.25) !important;
}
html[data-theme="light"] body.qf-auth-wft .plan-opt:hover {
  box-shadow: 0 10px 28px rgba(10, 37, 64, 0.14) !important;
  border-color: rgba(13, 60, 252, 0.50) !important;
}

/* Re-assert selected-plan OUTLINE over the glass tile (both themes). The
   :has() rules earlier already do this; repeated here at the same specificity
   AFTER the resting-glass rule so the outline is never lost on source order. */
body.qf-auth-wft .plan-opt:has(input:checked) {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  box-shadow: 0 0 0 1px var(--accent) !important;
}
html[data-theme="light"] body.qf-auth-wft .plan-opt:has(input:checked) {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  box-shadow: 0 0 0 1px var(--accent) !important;
}

/* SOLID fallback where backdrop-filter is unsupported. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.qf-auth-wft .card.elevated { background: rgba(34, 40, 42, 0.98) !important; }
  body.qf-auth-wft .plan-opt { background: rgba(34, 40, 42, 0.96) !important; }
  html[data-theme="light"] body.qf-auth-wft .card.elevated { background: rgba(255, 255, 255, 0.98) !important; }
  html[data-theme="light"] body.qf-auth-wft .plan-opt { background: rgba(255, 255, 255, 0.96) !important; }
}

/* CTA micro-interaction: soft press on the submit button. (Hover glow/lift
   already defined above.) */
body.qf-auth-wft .btn-primary:active:not(:disabled) { transform: translateY(1px) !important; }

@media (prefers-reduced-motion: reduce) {
  body.qf-auth-wft .plan-opt { transition: none !important; }
  body.qf-auth-wft .plan-opt:hover { transform: none !important; }
  body.qf-auth-wft .btn-primary:active:not(:disabled) { transform: none !important; }
}