/* auth-popup.css — extracted from filter-css.css (fv-auth modal) for standalone use on /plans/. Keep in sync if the homepage auth modal restyles. */
body.fv-modal-open { overflow: hidden; }
/* Scoped border-box reset: homepage inherits this from #fv-wrap, but on /plans/
   the modal sits outside #fv-wrap, so inputs would overflow past the divider. */
.fv-auth-modal, .fv-auth-modal *, .fv-auth-modal *::before, .fv-auth-modal *::after { box-sizing: border-box; }
.fv-auth-modal[hidden] { display: none; }
.fv-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.fv-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 20, 0.55);
  backdrop-filter: blur(2px);
}
.fv-auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  padding: 32px 28px 24px;
  font-family: inherit;
  color: #1a1a1a;
}
.fv-auth-card[data-fv-auth-state="plans"] { max-width: 520px; }
.fv-auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #777;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.fv-auth-close:hover { background: #f5f5f5; color: #222; }

/* Progress bar ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â only visible during prefs flow */
.fv-auth-progress {
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
  margin: 0 0 22px;
}
.fv-auth-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #5064cb, #9f7aea);
  transition: width 0.35s ease;
}

/* Success flash ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â overlays the whole card briefly post-auth */
.fv-auth-flash[hidden] { display: none; }
.fv-auth-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  animation: fvAuthFlashIn 0.25s ease;
}
.fv-auth-flash svg {
  color: #2bb673;
  margin-bottom: 10px;
}
.fv-auth-flash p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}
@keyframes fvAuthFlashIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

.fv-auth-pane[hidden] { display: none; }
.fv-auth-pane { display: block; }

.fv-auth-h {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.25;
  color: #111;
}
.fv-auth-sub {
  font-size: 13px;
  color: #666;
  margin: 0 0 16px;
  line-height: 1.5;
}
.fv-auth-step-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9f7aea;
  margin-bottom: 6px;
}

/* GIS-rendered Google button host ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â Google injects an iframe with the
   official branded button into this div. Center it; let GIS handle width. */
.fv-auth-google-host {
  display: flex;
  justify-content: center;
  min-height: 40px;
}
.fv-auth-google-host > div { width: 100% !important; }
.fv-auth-google-host iframe { margin: 0 auto !important; }

.fv-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #999;
  font-size: 12px;
}
.fv-auth-divider::before,
.fv-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

.fv-auth-form { display: flex; flex-direction: column; gap: 12px; }
.fv-auth-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  position: relative;
}
.fv-auth-label input {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: #111;
  background: #fff;
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.fv-auth-label input:focus {
  border-color: #5064cb;
  box-shadow: 0 0 0 3px rgba(80, 100, 203, 0.15);
}
.fv-auth-link-sm {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: #5064cb;
  font-weight: 500;
  text-decoration: none;
}
.fv-auth-link-sm:hover { text-decoration: underline; }

.fv-auth-error[hidden] { display: none; }
.fv-auth-error {
  margin: 0;
  padding: 8px 10px;
  background: #fff1f0;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #b91c1c;
  font-size: 12px;
}

.fv-auth-submit {
  width: 100%;
  padding: 12px;
  background: #5064cb;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.12s, transform 0.05s;
  margin-top: 6px;
}
.fv-auth-submit:hover:not(:disabled) { background: #404fa0; }
.fv-auth-submit:active:not(:disabled) { transform: translateY(1px); }
.fv-auth-submit:disabled { background: #d0d0d0; color: #888; cursor: not-allowed; }
.fv-auth-submit-step { margin-top: 18px; }

.fv-auth-secondary {
  width: 100%;
  padding: 11px;
  margin-top: 10px;
  background: #f3f3f3;
  color: #333;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
}
.fv-auth-secondary:hover { background: #e8e8e8; }

.fv-auth-foot {
  margin: 16px 0 0;
  font-size: 13px;
  color: #555;
  text-align: center;
}
.fv-auth-foot a { color: #5064cb; font-weight: 600; text-decoration: none; }
.fv-auth-foot a:hover { text-decoration: underline; }
.fv-auth-tos {
  margin: 14px 0 0;
  font-size: 11px;
  color: #888;
  text-align: center;
  line-height: 1.5;
}
.fv-auth-tos a { color: #888; text-decoration: underline; }

/* Step 1 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â type choice row */
.fv-auth-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.fv-auth-choice {
  padding: 14px 8px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.fv-auth-choice:hover { border-color: #9f7aea; }
.fv-auth-choice.is-active {
  border-color: #5064cb;
  background: #eef0fb;
  color: #2c3a8a;
}

/* Steps 2, 3, 4 ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â pill grid */
.fv-auth-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 6px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px 2px;
}
.fv-auth-pill {
  padding: 7px 12px;
  border: 1px solid #d8d8d8;
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: #333;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.fv-auth-pill:hover { border-color: #9f7aea; }
.fv-auth-pill.is-active {
  border-color: #5064cb;
  background: #5064cb;
  color: #fff;
}
.fv-auth-pill-all { font-weight: 700; }
.fv-auth-pane[data-fv-pane="pref-3"] .fv-auth-pill.is-active {
  border-color: #c92020;
  background: #c92020;
}

/* Plans */
.fv-auth-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 6px;
}
@media (max-width: 480px) {
  .fv-auth-plans { grid-template-columns: 1fr; }
}
.fv-auth-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  text-decoration: none;
  color: #1a1a1a;
  transition: border-color 0.12s, transform 0.08s, box-shadow 0.12s;
  background: #fff;
}
.fv-auth-plan:hover {
  border-color: #5064cb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(80, 100, 203, 0.12);
}
.fv-auth-plan-yearly {
  border-color: #9f7aea;
  background: linear-gradient(180deg, #faf5ff 0%, #fff 60%);
}
.fv-auth-plan-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: #e53e3e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
}
.fv-auth-plan-badge-mo {
  background: #5064cb;
}
.fv-auth-discount-flag {
  display: inline-block;
  margin: 6px 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c92020;
}
.fv-auth-plan-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}
.fv-auth-plan-price { font-size: 15px; color: #444; }
.fv-auth-plan-price strong { font-size: 28px; color: #111; font-weight: 800; }
.fv-auth-plan-strike {
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}
.fv-auth-plan-bill {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}
