/* ==========================================================================
   Lofthela - auth pages (sign up / sign in / activation)
   Builds on the alina template's .auth-container / .form-container.
   ========================================================================== */

:root {
  --lf-grad: linear-gradient(135deg, rgb(var(--primary)) 0%, #5b3fd9 100%);
  --lf-radius: 18px;
  --lf-ease: cubic-bezier(.22, 1, .36, 1);
}

body.lf-auth {
  font-family: "Lexend Deca", sans-serif;
  overflow-x: hidden;
}

/* ---------- background orbs ---------- */
.lf-auth .auth-container {
  position: relative;
  overflow: hidden;
  padding: 2rem 1rem;
}
.lf-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .45;
  pointer-events: none;
  animation: lf-float 14s ease-in-out infinite alternate;
}
.lf-orb.one   { width: 380px; height: 380px; background: rgb(var(--primary)); top: -120px; left: -100px; }
.lf-orb.two   { width: 320px; height: 320px; background: #8b5cf6; bottom: -120px; right: -80px; animation-delay: -4s; }
.lf-orb.three { width: 220px; height: 220px; background: rgb(var(--success)); top: 45%; left: 70%; opacity: .25; animation-delay: -8s; }
@keyframes lf-float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.12); }
}

/* ---------- card ---------- */
.lf-auth .form-container {
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, .86) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 26px !important;
  box-shadow: 0 30px 70px -20px rgba(15, 30, 60, .35) !important;
  animation: lf-rise .8s var(--lf-ease) both;
}
.lf-auth .form-container .card-body { width: 520px; padding: 2rem 2.25rem 1.75rem; }
.lf-auth .form-container.lf-narrow .card-body { width: 440px; }
@keyframes lf-rise {
  from { opacity: 0; transform: translateY(28px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.lf-stagger > * { animation: lf-rise .7s var(--lf-ease) both; }
.lf-stagger > *:nth-child(1) { animation-delay: .08s; }
.lf-stagger > *:nth-child(2) { animation-delay: .14s; }
.lf-stagger > *:nth-child(3) { animation-delay: .20s; }
.lf-stagger > *:nth-child(4) { animation-delay: .26s; }
.lf-stagger > *:nth-child(5) { animation-delay: .32s; }
.lf-stagger > *:nth-child(6) { animation-delay: .38s; }
.lf-stagger > *:nth-child(7) { animation-delay: .44s; }
.lf-stagger > *:nth-child(8) { animation-delay: .50s; }
.lf-stagger > *:nth-child(9) { animation-delay: .56s; }

/* ---------- brand ---------- */
.lf-brand {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(var(--primary), .7);
}
.lf-brand img { width: 100%; height: 100%; display: block; }
.lf-brand::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 25px;
  border: 2px solid rgba(var(--primary), .35);
  animation: lf-pulse 2.6s ease-out infinite;
}
@keyframes lf-pulse {
  0%   { transform: scale(.92); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0; }
}
.lf-title { font-weight: 700; letter-spacing: -.3px; }
.lf-title .lf-grad-text {
  background: var(--lf-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- fields ---------- */
.lf-auth .app-form .form-label {
  font-size: .78rem;
  font-weight: 600;
  color: rgba(var(--dark), .75);
  margin-bottom: .35rem;
}
.lf-field { position: relative; }
.lf-field > .lf-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: rgba(var(--secondary), .8);
  transition: color .25s;
  pointer-events: none;
  z-index: 3;
}
/* .lf-auth .app-form prefix: the template's ".app-form .form-control:focus"
   shrinks padding-left on focus, which slid the text under the icon. */
.lf-auth .app-form .lf-field .form-control,
.lf-auth .app-form .lf-field .form-select,
.lf-auth .app-form .lf-field .form-control:focus,
.lf-auth .app-form .lf-field .form-select:focus {
  height: 48px;
  border-radius: 14px;
  padding: 0 42px 0 44px;
  color: rgb(var(--dark));
  font-weight: 500;
  font-size: 14px;
  text-overflow: ellipsis;
  background-color: rgba(255, 255, 255, .9);
  border: 1.5px solid rgba(var(--dark), .1);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.lf-auth .app-form .lf-field .form-select,
.lf-auth .app-form .lf-field .form-select:focus { padding-right: 2.25rem; }
.lf-auth .app-form .lf-field.has-eye .form-control,
.lf-auth .app-form .lf-field.has-eye .form-control:focus { padding-right: 80px; }
.lf-auth .app-form .lf-field .form-control:focus,
.lf-auth .app-form .lf-field .form-select:focus {
  border-color: rgb(var(--primary));
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(var(--primary), .12) !important;
}
.lf-field:focus-within > .lf-ico { color: rgb(var(--primary)); }

/* right-side state icon */
.lf-state {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) scale(.4);
  opacity: 0;
  font-size: 18px;
  transition: all .3s var(--lf-ease);
  z-index: 3;
  pointer-events: none;
}
.lf-field.is-checking .lf-state,
.lf-field.is-ok .lf-state,
.lf-field.is-bad .lf-state { opacity: 1; transform: translateY(-50%) scale(1); }
.lf-field.is-checking .lf-state { color: rgb(var(--primary)); }
.lf-field.is-checking .lf-state i { display: inline-block; animation: lf-spin .8s linear infinite; }
.lf-field.is-ok .lf-state { color: rgb(var(--success)); }
.lf-field.is-bad .lf-state { color: rgb(var(--danger)); }
.lf-auth .app-form .lf-field.is-ok .form-control  { border-color: rgba(var(--success), .7); }
.lf-auth .app-form .lf-field.is-bad .form-control,
.lf-auth .app-form .lf-field.is-bad .form-select  { border-color: rgba(var(--danger), .7); }
.lf-field.is-bad { animation: lf-shake .4s; }
@keyframes lf-spin  { to { transform: rotate(360deg); } }
@keyframes lf-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.lf-msg {
  font-size: .74rem;
  min-height: 1.1rem;
  margin-top: .3rem;
  padding-left: 2px;
  color: rgba(var(--secondary), 1);
  transition: color .2s;
}
.lf-msg.ok  { color: rgb(var(--success)); }
.lf-msg.bad { color: rgb(var(--danger)); }

/* password eye button */
.lf-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: rgba(var(--secondary), .9);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  z-index: 4;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lf-eye:hover { background: rgba(var(--primary), .08); color: rgb(var(--primary)); }
.lf-field.has-eye .lf-state { right: 46px; }

/* strength meter */
.lf-strength { display: flex; gap: 5px; margin-top: .5rem; }
.lf-strength span {
  flex: 1;
  height: 5px;
  border-radius: 10px;
  background: rgba(var(--dark), .08);
  transition: background .35s, transform .35s;
}
.lf-strength[data-level="1"] span:nth-child(-n+1) { background: rgb(var(--danger)); }
.lf-strength[data-level="2"] span:nth-child(-n+2) { background: rgb(var(--warning)); }
.lf-strength[data-level="3"] span:nth-child(-n+3) { background: rgb(var(--info)); }
.lf-strength[data-level="4"] span                 { background: rgb(var(--success)); }

/* sign-up progress: one segment per completed detail */
.lf-meter { display: flex; gap: 5px; }
.lf-meter span {
  flex: 1;
  height: 6px;
  border-radius: 10px;
  background: rgba(var(--dark), .08);
  transition: background .4s, box-shadow .4s;
}
.lf-meter span.on { background: var(--lf-grad); }
.lf-meter.full span { background: rgb(var(--success)); box-shadow: 0 0 10px rgba(var(--success), .5); }

/* phone (intl-tel-input) */
.lf-field .iti { width: 100%; display: block; }
.lf-field .iti__selected-flag {
  border-radius: 14px 0 0 14px;
  padding: 0 10px 0 14px;
  background-color: rgba(var(--primary), .06) !important;
  border-right: 1.5px solid rgba(var(--dark), .08);
}
.lf-field .iti__selected-dial-code { color: rgb(var(--dark)); font-weight: 600; }
/* The country list is attached to <body> (dropdownContainer) so the
   animated fields below it can't paint over it. */
.iti--container { z-index: 2500; }
.iti--container .iti__country-list,
.lf-field .iti__country-list {
  background-color: #fff !important;
  color: rgb(var(--dark));
  border-radius: 14px;
  border: 1px solid rgba(var(--dark), .08);
  box-shadow: 0 24px 50px -16px rgba(15, 30, 60, .35);
  max-width: 360px;
  max-height: 260px;
  font-family: "Lexend Deca", sans-serif;
  font-size: .85rem;
}
.iti__country.iti__highlight { background-color: rgba(var(--primary), .08) !important; }
.iti__country .iti__dial-code { color: rgba(var(--secondary), 1); }

/* invited-by chip */
.lf-invite {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .9rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--primary), .08), rgba(139, 92, 246, .1));
  border: 1px dashed rgba(var(--primary), .35);
}
.lf-invite .lf-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--lf-grad);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

/* terms */
.lf-auth .form-check-input { width: 1.15em; height: 1.15em; cursor: pointer; }
.lf-auth .form-check-input:checked { background-color: rgb(var(--primary)); border-color: rgb(var(--primary)); }

/* ---------- submit button ---------- */
.lf-btn {
  position: relative;
  overflow: hidden;
  height: 52px;
  border: 0;
  border-radius: 16px;
  background: var(--lf-grad);
  color: #fff !important;
  font-weight: 600;
  letter-spacing: .3px;
  box-shadow: 0 16px 30px -14px rgba(var(--primary), .9);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.lf-btn:hover  { transform: translateY(-2px); box-shadow: 0 20px 36px -14px rgba(var(--primary), 1); }
.lf-btn:active { transform: translateY(0); }
.lf-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg);
  transition: left .7s;
}
.lf-btn:hover::before { left: 130%; }
.lf-btn .lf-btn-loader { display: none; }
.lf-btn.is-loading { pointer-events: none; opacity: .92; }
.lf-btn.is-loading .lf-btn-text { display: none; }
.lf-btn.is-loading .lf-btn-loader { display: inline-flex; align-items: center; gap: .5rem; }
.lf-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: #fff; display: inline-block;
  animation: lf-bounce 1s infinite ease-in-out;
}
.lf-dots span:nth-child(2) { animation-delay: .15s; }
.lf-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes lf-bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .5; } 40% { transform: scale(1); opacity: 1; } }

.lf-link { color: rgb(var(--primary)); font-weight: 600; text-decoration: none; }
.lf-link:hover { text-decoration: underline; }

/* ---------- toasts (rendered inside Toastify) ---------- */
.toastify.lf-toastify {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  max-width: calc(100% - 24px);
  border-radius: 18px;
}
.lf-toast {
  --tone: var(--primary);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  width: 360px;
  max-width: 100%;
  padding: 1rem 2.6rem 1.1rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  color: rgb(var(--dark));
  box-shadow: 0 22px 50px -18px rgba(15, 30, 60, .45), 0 0 0 1px rgba(var(--tone), .15);
  font-family: "Lexend Deca", sans-serif;
}
.lf-toast.success { --tone: var(--success); }
.lf-toast.error   { --tone: var(--danger); }
.lf-toast.warning { --tone: var(--warning); }
.lf-toast.info    { --tone: var(--info); }
.lf-toast-ico {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  color: #fff;
  background: rgb(var(--tone));
  box-shadow: 0 10px 20px -8px rgba(var(--tone), .9);
  animation: lf-pop .5s var(--lf-ease) both;
}
@keyframes lf-pop { from { transform: scale(.3) rotate(-25deg); } to { transform: none; } }
.lf-toast-title { font-weight: 700; font-size: .92rem; margin-bottom: .1rem; }
.lf-toast-text  { font-size: .8rem; color: rgba(var(--secondary), 1); line-height: 1.45; }
.lf-toast-x {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  color: rgba(var(--secondary), .8);
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  border-radius: 8px;
}
.lf-toast-x:hover { background: rgba(var(--dark), .06); }
.lf-toast-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgb(var(--tone));
  transform-origin: left;
  animation: lf-shrink linear forwards;
}
@keyframes lf-shrink { to { transform: scaleX(0); } }

/* ---------- success overlay ---------- */
.lf-success {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 30, 60, .55);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility .4s;
}
.lf-success.show { opacity: 1; visibility: visible; }
.lf-success-card {
  position: relative;
  width: 420px;
  max-width: 100%;
  text-align: center;
  padding: 2.5rem 2rem 2rem;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45);
  transform: scale(.85) translateY(20px);
  transition: transform .6s var(--lf-ease);
  overflow: hidden;
}
.lf-success.show .lf-success-card { transform: none; }
.lf-check { width: 96px; height: 96px; margin: 0 auto 1.25rem; position: relative; }
.lf-check svg { width: 100%; height: 100%; }
.lf-check circle {
  fill: none;
  stroke: rgb(var(--success));
  stroke-width: 4;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
}
.lf-check path {
  fill: none;
  stroke: rgb(var(--success));
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}
.lf-success.show .lf-check circle { animation: lf-draw .7s .2s var(--lf-ease) forwards; }
.lf-success.show .lf-check path   { animation: lf-draw .45s .8s var(--lf-ease) forwards; }
@keyframes lf-draw { to { stroke-dashoffset: 0; } }
.lf-check::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(var(--success), .15);
  transform: scale(0);
}
.lf-success.show .lf-check::before { animation: lf-ring 1.2s .9s ease-out forwards; }
@keyframes lf-ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.lf-progress {
  height: 6px;
  border-radius: 10px;
  background: rgba(var(--dark), .07);
  overflow: hidden;
  margin-top: 1.5rem;
}
.lf-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: var(--lf-grad);
}
.lf-success.show .lf-progress span { animation: lf-fill var(--lf-wait, 2.8s) linear forwards; }
@keyframes lf-fill { to { width: 100%; } }

/* confetti pieces */
.lf-confetti {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  opacity: 0;
  animation: lf-fall 2.4s ease-in forwards;
}
@keyframes lf-fall {
  0%   { opacity: 1; transform: translateY(0) rotate(0); }
  100% { opacity: 0; transform: translateY(460px) rotate(600deg); }
}

/* ---------- activation page ---------- */
.lf-due {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 1.5rem;
  color: #fff;
  background: var(--lf-grad);
  box-shadow: 0 20px 40px -18px rgba(var(--primary), .9);
}
.lf-due::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.lf-due .lf-amount { font-size: 2rem; font-weight: 800; letter-spacing: -.5px; }
.lf-steps { list-style: none; padding: 0; margin: 0; }
.lf-steps li { position: relative; display: flex; gap: .85rem; padding-bottom: 1.1rem; }
.lf-steps li:last-child { padding-bottom: 0; }
.lf-steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 4px;
  width: 2px;
  background: rgba(var(--dark), .08);
}
.lf-steps .lf-step-dot {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  background: rgba(var(--dark), .06);
  color: rgba(var(--secondary), 1);
}
.lf-steps li.done .lf-step-dot    { background: rgb(var(--success)); color: #fff; }
.lf-steps li.current .lf-step-dot { background: rgb(var(--primary)); color: #fff; box-shadow: 0 0 0 5px rgba(var(--primary), .15); }

/* ---------- top bar (solid chips - the card's top has a busy pattern) ---------- */
.lf-topbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.lf-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  height: 38px;
  padding: 0 .9rem;
  border-radius: 12px;
  background: #fff;
  color: rgb(var(--dark)) !important;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(var(--dark), .08);
  box-shadow: 0 6px 16px -8px rgba(15, 30, 60, .35);
  transition: transform .2s, box-shadow .2s, color .2s;
}
a.lf-chip:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(15, 30, 60, .45); color: rgb(var(--primary)) !important; }
a.lf-chip.lf-chip-danger:hover { color: rgb(var(--danger)) !important; }
.lf-chip i { font-size: 16px; }
span.lf-chip { min-width: 0; max-width: 60%; }
.lf-chip .lf-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-chip .lf-chip-avatar {
  width: 24px;
  height: 24px;
  margin-left: -.45rem;
  border-radius: 8px;
  background: var(--lf-grad);
  color: #fff;
  font-size: .72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

/* ---------- small utilities ---------- */
.lf-small { font-size: .78rem; }
.lf-pill { border-radius: 12px !important; }
.lf-brand.lf-brand-sm { width: 42px; height: 42px; font-size: 20px; border-radius: 14px; margin: 0; }
.lf-brand.lf-brand-sm::after { border-radius: 18px; inset: -5px; }
.lf-badge-soft {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  border-radius: 30px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .3px;
  background: rgba(255, 255, 255, .2);
  border: 1px solid rgba(255, 255, 255, .3);
}
.lf-note {
  padding: 1rem;
  border-radius: 16px;
  border: 1.5px dashed rgba(var(--primary), .3);
  background: rgba(var(--primary), .04);
}

/* ---------- payment method cards ---------- */
.lf-method {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1rem;
  border-radius: 18px;
  background: #fff;
  color: rgb(var(--dark));
  text-decoration: none;
  border: 1.5px solid rgba(var(--dark), .08);
  transition: transform .25s var(--lf-ease), box-shadow .25s, border-color .25s;
}
.lf-method:hover {
  color: rgb(var(--dark));
  transform: translateY(-3px);
  border-color: var(--brand);
  box-shadow: 0 18px 34px -18px var(--brand);
}
.lf-method-logo {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: -.2px;
  background: var(--brand);
  color: var(--brand-text);
  box-shadow: 0 10px 20px -10px var(--brand);
}
.lf-method-logo-lg { flex-basis: 60px; height: 60px; font-size: .95rem; }
.lf-method-go {
  font-size: 20px;
  color: rgba(var(--secondary), .8);
  transition: transform .25s, color .25s;
}
.lf-method:hover .lf-method-go { transform: translateX(4px); color: rgb(var(--dark)); }

/* ---------- payment guide ---------- */
.lf-pay-head { display: flex; align-items: center; gap: .9rem; }
.lf-pay-head .text-end > div { white-space: nowrap; }
@media (max-width: 420px) {
  .lf-pay-head { flex-wrap: wrap; }
  .lf-pay-head .lf-pay-amount {
    order: 3;
    flex: 1 0 100%;
    margin-left: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .65rem .9rem;
    border-radius: 14px;
    background: rgba(var(--primary), .06);
    text-align: left !important;
  }
}
.lf-guide { list-style: none; padding: 0; margin: 0; }
.lf-guide li {
  position: relative;
  display: flex;
  gap: .85rem;
  padding: .7rem 0;
}
.lf-guide li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 2.6rem;
  bottom: -.45rem;
  width: 2px;
  background: rgba(var(--dark), .07);
}
.lf-guide-no {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .82rem;
  background: var(--brand);
  color: var(--brand-text);
}
.lf-guide-title {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: rgba(var(--secondary), 1);
}
.lf-guide-text { font-size: .9rem; margin-top: .1rem; }
.lf-copy-row { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.lf-copy-val { font-size: 1.05rem; letter-spacing: .5px; }
.lf-copy {
  border: 0;
  border-radius: 9px;
  padding: .2rem .6rem;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(var(--primary), .1);
  color: rgb(var(--primary));
  transition: background .2s, color .2s;
}
.lf-copy:hover { background: rgb(var(--primary)); color: #fff; }
.lf-copy.copied { background: rgb(var(--success)); color: #fff; }

/* ---------- invite friends ---------- */
.lf-share {
  position: relative;
  padding: 1.1rem;
  border-radius: 20px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, rgba(var(--primary), .55), rgba(139, 92, 246, .55), rgba(111, 240, 212, .8)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 18px 40px -26px rgba(var(--primary), .9);
}
.lf-share-ico {
  flex: 0 0 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  background: var(--lf-grad);
  box-shadow: 0 10px 20px -10px rgba(var(--primary), .9);
}
.lf-link-box {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  padding: .45rem .45rem .45rem .85rem;
  border-radius: 14px;
  background: rgba(var(--primary), .05);
  border: 1.5px dashed rgba(var(--primary), .3);
}
.lf-link-box > i { color: rgb(var(--primary)); font-size: 17px; }
.lf-link-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 600;
  color: rgb(var(--dark));
}
.lf-link-box .lf-copy { padding: .45rem .8rem; font-size: .78rem; border-radius: 10px; background: rgb(var(--primary)); color: #fff; }
.lf-link-box .lf-copy:hover { filter: brightness(1.08); }
.lf-link-box .lf-copy.copied { background: rgb(var(--success)); }
.lf-share-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  height: 42px;
  border-radius: 12px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  color: rgb(var(--dark));
  background: #fff;
  border: 1.5px solid rgba(var(--dark), .1);
  transition: transform .2s, box-shadow .2s;
}
.lf-share-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(15, 30, 60, .4); color: rgb(var(--dark)); }
.lf-share-btn i { font-size: 18px; }
.lf-share-wa { background: #25d366; border-color: #25d366; color: #fff !important; }

/* ---------- responsive ---------- */
/* Phones keep the floating card (the template turns it into a full-screen sheet). */
@media (max-width: 576px) {
  .lf-auth .auth-container { padding: 1.5rem .85rem; justify-content: flex-start; }
  .lf-auth .form-container {
    width: 100% !important;
    max-width: 480px;
    margin: auto 0 !important;
    border-radius: 24px !important;
  }
  .lf-auth .form-container .card-body,
  .lf-auth .form-container.lf-narrow .card-body {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 1.6rem 1.1rem 1.4rem;
  }
  .lf-orb.one   { width: 260px; height: 260px; }
  .lf-orb.two   { width: 220px; height: 220px; }
  .lf-orb.three { display: none; }
  .lf-toast { width: 100%; }
}
@media (max-width: 360px) {
  .lf-auth .auth-container { padding: 1rem .6rem; }
  .lf-auth .form-container .card-body,
  .lf-auth .form-container.lf-narrow .card-body { padding: 1.4rem .9rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* long method names (M-PESA) fit their logo badge */
.lf-method-logo.lf-logo-long { font-size: .62rem !important; letter-spacing: -.2px; }
.lf-method-logo-lg.lf-logo-long { font-size: .78rem !important; }

/* ---- Floating "Need help?" button (members not activated yet) ---- */
.lf-help-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 1050; display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 18px 8px 8px; border-radius: 40px; background: linear-gradient(135deg, #2a7be4, #6d4bf0); color: #fff !important; text-decoration: none;
    box-shadow: 0 12px 28px rgba(42, 123, 228, .4); font-weight: 600; font-size: 14px; animation: lfFabIn .5s ease-out both; transition: transform .2s, box-shadow .2s; }
.lf-help-fab:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(42, 123, 228, .5); }
.lf-help-fab-ic { position: relative; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.lf-help-fab-ic::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); animation: lfFabPulse 2.2s ease-out infinite; }
.lf-help-fab-ic b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #ef4444; color: #fff; font-size: 11px; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
@keyframes lfFabPulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes lfFabIn { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 420px) { .lf-help-fab { padding-right: 14px; font-size: 13px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .lf-help-fab, .lf-help-fab-ic::after { animation: none; } }
/* ---- "N new messages" floating button (members not activated yet), sits above "Need help?" ---- */
.lf-msg-fab { position: fixed; right: 18px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 1050; display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px 8px 12px; border-radius: 30px; background: #fff; color: #0f172a !important; text-decoration: none; font-weight: 700; font-size: 13px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .2); border: 2px solid #ef4444; animation: lfFabIn .5s ease-out .15s both, lfMsgNudge 2.8s ease-in-out 1s infinite; }
.lf-msg-fab .ti { font-size: 20px; color: #ef4444; }
.lf-msg-fab b { position: absolute; top: -8px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #ef4444; color: #fff; font-size: 11px; line-height: 20px; text-align: center; box-shadow: 0 0 0 2px #fff; }
@keyframes lfMsgNudge { 0%, 88%, 100% { transform: none; } 92% { transform: rotate(-4deg); } 96% { transform: rotate(4deg); } }
@media (max-width: 420px) { .lf-msg-fab { right: 12px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .lf-msg-fab { animation: none; } }
/* ---- "Try the demo" links (login, register, activation) ---- */
.lf-demo-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; color: #2563eb; text-decoration: none; padding: 7px 14px; border-radius: 20px; background: rgba(37, 99, 235, .08); border: 1px solid rgba(37, 99, 235, .2); }
.lf-demo-link:hover { background: rgba(37, 99, 235, .14); color: #1d4ed8; }
.lf-demo-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: #fff !important;
    background: linear-gradient(135deg, #0ea5e9, #2563eb); box-shadow: 0 10px 22px rgba(37, 99, 235, .28); }
.lf-demo-card strong { display: block; font-size: 14px; }
.lf-demo-card small { display: block; font-size: 12px; opacity: .9; }
.lf-demo-card-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
/* ---- Demo preview strip on the payment page (pay.php) ---- */
.lf-peek { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 18px; text-decoration: none;
    background: #0f172a; color: #fff !important; box-shadow: 0 10px 24px rgba(15, 23, 42, .22); transition: transform .2s; }
.lf-peek:hover { transform: translateY(-2px); }
.lf-peek-faces { display: flex; flex-shrink: 0; }
.lf-peek-faces img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #0f172a; background: #fff; margin-left: -10px; }
.lf-peek-faces img:first-child { margin-left: 0; }
.lf-peek-txt { flex: 1; min-width: 0; line-height: 1.25; }
.lf-peek-txt strong { display: block; font-size: 13.5px; }
.lf-peek-txt small { display: block; font-size: 11.5px; color: #94a3b8; }
.lf-peek-go { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; background: #4ade80; color: #052e16; font-weight: 700; font-size: 12.5px; padding: 7px 11px; border-radius: 12px; }
@media (max-width: 380px) { .lf-peek-faces img:nth-child(n+3) { display: none; } .lf-peek-txt small { display: none; } }@media (max-width: 440px) { .lf-peek-faces img:nth-child(n+3) { display: none; } .lf-peek-txt small { display: none; } }.lf-btn-ghost { border: 1.5px solid #2563eb; color: #1d4ed8; background: #fff; font-weight: 600; border-radius: 14px; padding: 11px 16px; }
.lf-btn-ghost:hover { background: #eef4ff; color: #1d4ed8; }