/* Heifereum enrollment modal + auth pages — theme-native styling */

/* ===== Modal ===== */
.hfp-overlay {
  position: fixed; inset: 0; z-index: 99990;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 2, 2, 0.72);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
  padding: 20px;
}
.hfp-overlay.hfp-show { opacity: 1; pointer-events: auto; }
.hfp-card {
  position: relative; width: 100%; max-width: 480px;
  border: 1px solid transparent; border-radius: 20px; padding: 36px 34px 26px;
  background:
    linear-gradient(180deg, #120e1c 0%, #0a0810 100%) padding-box,
    linear-gradient(120deg, rgba(160, 111, 214, 0.6), rgba(29, 131, 168, 0.45) 55%, rgba(160, 111, 214, 0.12)) border-box;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 90px rgba(160, 111, 214, 0.15);
  transform: translateY(14px) scale(0.98); transition: transform 0.25s ease;
}
.hfp-overlay.hfp-show .hfp-card { transform: none; }
.hfp-close {
  position: absolute; top: 14px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04);
  color: #c6c6cb; font-size: 20px; line-height: 1; cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.hfp-close:hover { border-color: rgba(160, 111, 214, 0.5); color: #fff; }
.hfp-eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-family: Manrope, Arial, sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: #a06fd6;
}
.hfp-title { color: #fff; font-family: Switzer, Arial, sans-serif; font-size: 22px; font-weight: 600; margin: 0 0 18px; }
.hfp-body { min-height: 90px; }
.hfp-loading { color: #8b8b92; font-family: Manrope, Arial, sans-serif; font-size: 14px; padding: 18px 0; }
.hfp-msg { font-family: Manrope, Arial, sans-serif; font-size: 14.5px; line-height: 1.6; padding: 4px 0 14px; }
.hfp-msg-info { color: #cdc8c8; }
.hfp-msg-warn { color: #e8b7b7; }
.hfp-plans { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.hfp-plan {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 12px; padding: 14px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-family: Manrope, Arial, sans-serif;
}
.hfp-plan:hover { border-color: rgba(160, 111, 214, 0.45); }
.hfp-plan:has(input:checked) { border-color: rgba(160, 111, 214, 0.65); background: rgba(160, 111, 214, 0.07); }
.hfp-plan input { accent-color: #a06fd6; }
.hfp-plan-name { color: #e9e9ee; font-size: 14.5px; flex: 1; }
.hfp-plan-price { color: #fff; font-family: Switzer, Arial, sans-serif; font-size: 16px; font-weight: 600; }
.hfp-account { color: #8b8b92; font-family: Manrope, Arial, sans-serif; font-size: 13px; margin-bottom: 16px; }
.hfp-account strong { color: #c9a5f5; font-weight: 600; }
.hfp-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hfp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 90px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04); color: #e9e9ee; cursor: pointer;
  font-family: Manrope, Arial, sans-serif; font-size: 15px; font-weight: 600; text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.hfp-btn:hover { transform: translateY(-1px); border-color: rgba(160, 111, 214, 0.5); }
.hfp-btn-primary {
  border: none; color: #fff;
  background-image: linear-gradient(96deg, #a06fd6, #1d83a8);
}
.hfp-btn-primary:hover { box-shadow: 0 10px 26px rgba(160, 111, 214, 0.35); }
.hfp-btn[disabled] { opacity: 0.6; cursor: default; transform: none; }
.hfp-err { color: #e8b7b7; font-family: Manrope, Arial, sans-serif; font-size: 13.5px; margin-top: 12px; }
.hfp-foot { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #6f6f76; font-family: Manrope, Arial, sans-serif; font-size: 12.5px; }
.hfp-foot a { color: #a98fd0; text-decoration: none; }

/* ===== Post-checkout banner ===== */
.hfp-banner {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 99991; max-width: min(92vw, 560px);
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px; border-radius: 14px;
  font-family: Manrope, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.hfp-banner-ok { background: linear-gradient(120deg, rgba(37, 99, 76, 0.95), rgba(23, 62, 48, 0.95)); border: 1px solid rgba(110, 231, 183, 0.35); }
.hfp-banner-no { background: linear-gradient(120deg, rgba(64, 52, 88, 0.95), rgba(38, 31, 53, 0.95)); border: 1px solid rgba(160, 111, 214, 0.4); }
.hfp-banner-x { background: none; border: none; color: rgba(255, 255, 255, 0.7); font-size: 18px; cursor: pointer; }

/* ===== Auth pages (login / signup) ===== */
.hf-auth-section {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 130px 20px 80px;
  background: #000202;
}
.hf-auth-card {
  position: relative; z-index: 2; width: 100%; max-width: 440px;
  border: 1px solid transparent; border-radius: 20px; padding: 40px 38px 32px;
  background:
    linear-gradient(180deg, #120e1c 0%, #0a0810 100%) padding-box,
    linear-gradient(120deg, rgba(160, 111, 214, 0.55), rgba(29, 131, 168, 0.4) 55%, rgba(160, 111, 214, 0.12)) border-box;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 90px rgba(160, 111, 214, 0.12);
}
.hf-auth-card h1 { color: #fff; font-family: Switzer, Arial, sans-serif; font-size: 26px; font-weight: 600; margin: 0 0 6px; }
.hf-auth-sub { color: #9a93a8; font-family: Manrope, Arial, sans-serif; font-size: 14px; line-height: 1.55; margin: 0 0 26px; }
.hf-auth-field { margin-bottom: 16px; }
.hf-auth-field label { display: block; color: #c6c6cb; font-family: Manrope, Arial, sans-serif; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.hf-auth-field input {
  width: 100%; box-sizing: border-box;
  background: #0e0e12; border: 1px solid #232329; border-radius: 10px;
  color: #fff; font-family: Manrope, Arial, sans-serif; font-size: 15px;
  padding: 13px 14px; outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.hf-auth-field input:focus { border-color: rgba(160, 111, 214, 0.65); box-shadow: 0 0 0 3px rgba(160, 111, 214, 0.14); }
.hf-auth-field input::placeholder { color: #5d5d66; }
.hf-auth-submit {
  width: 100%; margin-top: 8px;
  padding: 14px 26px; border: none; border-radius: 90px; cursor: pointer;
  background-image: linear-gradient(96deg, #a06fd6, #1d83a8);
  color: #fff; font-family: Manrope, Arial, sans-serif; font-size: 15px; font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.hf-auth-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(160, 111, 214, 0.3); }
.hf-auth-submit[disabled] { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.hf-auth-alt { margin-top: 20px; text-align: center; color: #8b8b92; font-family: Manrope, Arial, sans-serif; font-size: 13.5px; }
.hf-auth-alt a { color: #c9a5f5; text-decoration: none; font-weight: 600; }
.hf-auth-msg { border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-family: Manrope, Arial, sans-serif; font-size: 13.5px; line-height: 1.5; }
.hf-auth-msg[hidden] { display: none; }
.hf-auth-msg-err { background: rgba(180, 60, 60, 0.12); border: 1px solid rgba(220, 120, 120, 0.35); color: #e8b7b7; }
.hf-auth-msg-ok { background: rgba(46, 160, 110, 0.12); border: 1px solid rgba(110, 231, 183, 0.3); color: #b7e8d0; }
.hf-auth-otp { letter-spacing: 0.5em; text-align: center; font-size: 20px !important; font-family: Switzer, Arial, sans-serif !important; }
.hf-auth-resend { background: none; border: none; color: #c9a5f5; cursor: pointer; font: inherit; font-weight: 600; padding: 0; }
@media (max-width: 640px) {
  .hf-auth-card { padding: 32px 24px 26px; }
  .hfp-card { padding: 30px 22px 22px; }
}
