@keyframes float {
  0%, 100% { transform: translateY(0); opacity: .25; }
  50% { transform: translateY(-18px); opacity: .65; }
}

@keyframes appear {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes recovery-spinner-rotate { to { transform: rotate(1turn); } }

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #0B3D2E 0%, #086348 52%, #45b993 100%) !important;
  color: #172A32;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.hidden { display: none !important; }

section[aria-labelledby="portal-title"] {
  border-radius: 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 70px rgba(3, 35, 25, .28);
  backdrop-filter: blur(18px);
}

.brand-banner {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: center;
}

.brand-banner-logo {
  display: block;
  width: min(100%, 220px);
  max-height: 100px;
  object-fit: contain;
}

#submitButton {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #0B3D2E !important;
  color: #fff !important;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  opacity: 1 !important;
}

#submitButton:hover { background: #086348 !important; }
#submitButton:disabled { cursor: wait; opacity: .7 !important; }

.session-card {
  background: #0B3D2E !important;
  color: #fff !important;
}

.remaining-label { color: rgba(255, 255, 255, .78) !important; }
.countdown { color: #fff !important; }
.status-badge {
  background: rgba(16, 185, 129, .28) !important;
  color: #A7F3D0 !important;
}

.progress-track { background: rgba(255, 255, 255, .2) !important; }
.progress-fill { background: #10B981 !important; }

/* PIN Input Boxes */
.login-pin-field {
  width: 100%;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 1rem;
}

.login-pin-boxes {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.login-pin-box {
  flex: 0 0 14px;
  width: 14px;
  min-width: 14px;
  height: 14px;
  padding: 0 !important;
  border: 1.5px solid #d1d5db !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none;
  color: transparent !important;
  font-size: 16px;
  text-align: center;
  outline: none;  
  caret-color: transparent;
  transition: background .15s ease, border-color .15s ease;
}

/* .login-pin-box:not(:placeholder-shown) {
  background: #10B981 !important;
  border-color: #10B981 !important;
} */

.login-pin-box:focus {
  border-color: #16845b !important;
  box-shadow: 0 0 0 3px rgba(22, 132, 91, 0.15) !important;
}

/* Filled PIN circle */
.login-pin-box.filled {
  background: #10B981 !important;
  border-color: #10B981 !important;
}

/* PIN Login View */
#mpinLoginView .portal-footer-links {
  display: none !important;
}
body.pin-login-active .portal-footer-links {
  display: none !important;
}

/* Recovery OTP Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(4, 35, 26, .62);
  backdrop-filter: blur(8px);
}

.modal-backdrop.hidden { display: none; }
.payment-modal { width: min(100%, 390px); }
.recovery-otp-backdrop { 
  z-index: 40;
}
.recovery-otp-modal {
  width: min(100%, 26rem);
  box-sizing: border-box;
  padding: 1.5rem;
  border: none;

  /* border: 1px solid rgba(16, 100, 72, .12); */
  border-radius: 1.5rem;
  background: #fff;
  color: #172A32;
  box-shadow: 0 24px 70px  rgba(5, 105, 74, 0.35);
}
.recovery-otp-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.recovery-otp-header h2 { margin: 0; color: #0B3D2E; font-size: 1.3rem; font-weight: 800; }
.recovery-otp-close { display: grid; width: 2.25rem; height: 2.25rem; flex: 0 0 auto; place-items: center; border: 0; border-radius: .6rem; background: #f1f6f3; color: #0B3D2E; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.recovery-otp-description { margin: 1rem 0 0; color: #52635b; font-size: .9rem; line-height: 1.5; }
.recovery-otp-digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; margin-top: 1.5rem; }
.recovery-otp-digit { width: 100%; box-sizing: border-box; border: 1px solid #d5e2dc; border-radius: .7rem; padding: .8rem 0; background: #fff; color: #0B3D2E; font: inherit; font-size: 1.25rem; font-weight: 750; text-align: center; }
.recovery-otp-digit:focus { border-color: #10B981; outline: 2px solid rgba(16, 185, 129, .2); }
.recovery-otp-status { min-height: 1.25rem; margin: .85rem 0 0; color: #b42318; font-size: .85rem; }
.recovery-otp-primary, .recovery-otp-resend { display: flex; min-height: 3rem; width: 100%; align-items: center; justify-content: center; gap: .5rem; border-radius: .75rem; font: inherit; font-size: .9rem; font-weight: 750; cursor: pointer; }
.recovery-otp-primary { border: 0; background: #0B3D2E; color: #fff; }
.recovery-otp-primary:hover { background: #086348; }
.recovery-otp-primary:disabled, .recovery-otp-resend:disabled { cursor: wait; opacity: .65; }
.recovery-otp-resend { margin-top: .75rem; border: 1px solid rgba(8, 99, 72, .2); background: #fff; color: #086348; }
.recovery-otp-resend:hover { background: #f1f8f4; }
.portal-input-field {
  position: relative;
  display: flex;
  min-height: 3.25rem;
  align-items: center;
  border: 1px solid rgba(23, 42, 50, .15);
  border-radius: .75rem;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.portal-input-field:focus-within {
  border-color: #10B981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .16) !important;
}
.portal-input-field > .portal-input-control {
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  box-sizing: border-box;
  border: 0;
  border-radius: 0;
  padding: .875rem 1rem;
  background: transparent;
  box-shadow: none;
  color: #172A32;
  font: inherit;
  font-size: 1rem;
  outline: 0;
  transition: padding .18s ease;
}
.portal-input-field > .portal-input-control::placeholder {
  color: #687a72;
  opacity: 1;
  transition: color .18s ease;
}
.portal-input-field > .portal-input-control:focus {
  border: 0;
  outline: 0;
  box-shadow: none;
}
.portal-input-label {
  position: absolute;
  top: 50%;
  left: 1rem;
  z-index: 1;
  max-width: calc(100% - 2rem);
  overflow: hidden;
  color: #52635b;
  font-size: .75rem;
  font-weight: 650;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  text-overflow: ellipsis;
  transform: translateY(-50%);
  transition: top .18s ease, transform .18s ease, opacity .18s ease;
  white-space: nowrap;
}
.phone-country-prefix {
  position: absolute;
  left: 1rem;
  z-index: 1;
  color: #172A32;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}
.phone-number-field > #contactInput,
.phone-number-field:focus-within > #contactInput,
.phone-number-field > #contactInput:not(:placeholder-shown) {
  padding-left: 5.25rem !important;
}
.phone-number-field > #contactInput + .portal-input-label {
  left: 5.25rem;
  max-width: calc(100% - 5.75rem);
}
.portal-input-field:focus-within > .portal-input-control,
.portal-input-control:not(:placeholder-shown) {
  padding-top: 1.2rem !important;
  padding-bottom: .35rem !important;
}
.portal-input-field:focus-within > .portal-input-control::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}
.portal-input-field:focus-within > .portal-input-control + .portal-input-label,
.portal-input-control:not(:placeholder-shown) + .portal-input-label {
  top: .45rem;
  opacity: 1;
  transform: none;
}
.pin-input-wrap > .portal-input-control {
  padding-right: 3rem !important;
}
.pin-input-wrap > .portal-input-control + .portal-input-label {
  max-width: calc(100% - 4rem);
}
.pin-input-wrap { position: relative; }
.pin-visibility-toggle { position: absolute; top: 50%; right: .75rem; display: grid; width: 2rem; height: 2rem; place-items: center; transform: translateY(-50%); border: 0; border-radius: .5rem; background: transparent; color: #52635b; cursor: pointer; }
.pin-visibility-toggle:hover { background: #f1f8f4; color: #0B3D2E; }
.pin-visibility-toggle:focus-visible { outline: 2px solid #10B981; outline-offset: 2px; }
.pin-eye-icon, .pin-eye-off-icon { width: 1.25rem; height: 1.25rem; }
.terms-dialog {
  width: min(100% - 1rem, 42rem);
  max-width: none;
  max-height: calc(100dvh - 1rem);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 1.25rem;
  background: #fff;
  color: #172A32;
  box-shadow: 0 24px 70px rgba(3, 35, 25, .35);
}
.terms-dialog::backdrop { background: rgba(4, 35, 26, .68); backdrop-filter: blur(5px); }
.terms-dialog-panel { display: flex; max-height: calc(100dvh - 1rem); flex-direction: column; }
.terms-dialog-header, .terms-dialog-footer { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
.terms-dialog-header { border-bottom: 1px solid #e4ebe7; }
.terms-dialog-header h2 { margin: 0; color: #0B3D2E; font-size: 1.15rem; font-weight: 800; }
.terms-dialog-close { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border: 0; border-radius: .6rem; background: #f1f6f3; color: #0B3D2E; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.terms-dialog-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1.25rem; -webkit-overflow-scrolling: touch; }
.terms-dialog-content h1, .terms-dialog-content h2, .terms-dialog-content h3 { margin: 1.25rem 0 .55rem; color: #0B3D2E; line-height: 1.25; }
.terms-dialog-content h1:first-child { margin-top: 0; font-size: 1.5rem; }
.terms-dialog-content h2 { font-size: 1.1rem; }
.terms-dialog-content p, .terms-dialog-content li { color: #405149; font-size: .9rem; line-height: 1.65; }
.terms-dialog-content ul, .terms-dialog-content ol { display: grid; gap: .35rem; padding-left: 1.4rem; }
.terms-dialog-content a { color: #086348; text-decoration: underline; text-underline-offset: .15em; }
.terms-dialog-footer { justify-content: flex-end; padding-bottom: max(1rem, env(safe-area-inset-bottom)); border-top: 1px solid #e4ebe7; }
.terms-dialog-agree { min-width: 7rem; padding: .8rem 1.25rem; border: 0; border-radius: .75rem; background: #0B3D2E; color: #fff; font: inherit; font-weight: 750; cursor: pointer; }
.terms-dialog-agree:disabled { cursor: not-allowed; opacity: .5; }
html.terms-dialog-open, body.terms-dialog-open { overflow: hidden; }
@media (max-width: 560px) {
  .terms-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - .5rem); border-radius: 1rem; }
  .terms-dialog-panel { max-height: calc(100dvh - .5rem); }
  .terms-dialog-header, .terms-dialog-footer { padding-right: 1rem; padding-left: 1rem; }
  .terms-dialog-content { padding: .85rem 1rem; }
}
.unlimited .countdown, .unlimited .progress-track { display: none; }
.powered-by { margin: 0; color: rgba(255, 255, 255, .82); font-size: .75rem; letter-spacing: .04em; }
.powered-by strong { color: #D1FAE5; font-weight: 700; }

.particle { animation: float 7s ease-in-out infinite; }
.particle:nth-child(2n) { animation-delay: -2s; animation-duration: 9s; }
.particle:nth-child(3n) { animation-delay: -4s; animation-duration: 6s; }
.appear { animation: appear .55s ease-out both; }
.spinner { animation: spin .8s linear infinite; }
.recovery-spinner {
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  border: 2px solid transparent;
  border-radius: 50%;
  border-right-color: #004dff;
  animation: recovery-spinner-rotate 1s linear infinite;
}
.recovery-spinner::before,
.recovery-spinner::after {
  content: "";
  grid-area: 1 / 1;
  margin: 1px;
  border: inherit;
  border-radius: 50%;
  animation: recovery-spinner-rotate 2s infinite;
}
.recovery-spinner::after {
  margin: 4px;
  animation-duration: 3s;
}
.progress-fill { transition: width 1s linear; }

/* USER GUIDES REPORT ISSUES */

.portal-guide-link,
.portal-support-link {
  display: inline-block;
  width: fit-content;
  margin: 0;
  color: #086348;
  font-size: .75rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.portal-guide-link:hover,
.portal-support-link:hover {
  color: #0B3D2E;
}

.portal-guide-link:focus-visible,
.portal-support-link:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 3px;
}

.portal-footer-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin-top: 16px;
}

.portal-guide-link:hover { color: #0B3D2E; }
.portal-guide-link:focus-visible { outline: 2px solid #10B981; outline-offset: 3px; }
.portal-support-link { display: block; width: fit-content; margin: .4rem 0 0 auto; color: #086348; font-size: .75rem; font-weight: 650; text-decoration: underline; text-underline-offset: .2em; }
.portal-support-link:focus-visible { outline: 2px solid #10B981; outline-offset: 3px; }

.portal-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}

.portal-footer-links a {
  display: inline-block;
  white-space: nowrap;
} */

.status-page {
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0B3D2E 0%, #086348 52%, #45b993 100%) !important;
}

.status-layout {
  display: flex;
  width: min(100%, 28rem);
  min-height: 100vh;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  z-index: 1;
}

.card {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 1.75rem;
  padding: 2.25rem 1.5rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(3, 35, 25, .28);
  text-align: center;
  animation: appear .55s ease-out both;
}

.status-icon {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  background: #FDE8E7;
  color: #C2413B;
  font-size: 2rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0;
  color: #059669;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.card h1 {
  margin: .75rem 0 0;
  color: #0B3D2E;
  font-size: clamp(1.8rem, 7vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}

.muted {
  margin: 1rem auto 0;
  max-width: 23rem;
  color: rgba(23, 42, 50, .68);
  font-size: .95rem;
  line-height: 1.6;
}

.btn {
  display: flex;
  min-height: 3.25rem;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  margin-top: 1.75rem;
  border-radius: .75rem;
  background: #0B3D2E;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.btn:hover { background: #086348; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid #A7F3D0; outline-offset: 3px; }

.status-help {
  margin: 1rem 0 0;
  color: rgba(23, 42, 50, .48);
  font-size: .75rem;
}

.status-glow {
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: rgba(167, 243, 208, .12);
  filter: blur(3rem);
}

.status-glow-top { top: -10rem; left: -8rem; }
.status-glow-bottom { right: -8rem; bottom: -12rem; background: rgba(4, 35, 26, .16); }

@media (min-width: 640px) {
  .status-layout { padding: 2rem; }
  .card { padding: 2.75rem 2.5rem; }
}

/* Verification loader animation */
.verification-loader {
  color: forest-green;
  font-weight: bold;
  position: relative;
}

.verification-loader::after {
  content: "";
  position: absolute;
  left: 105%;
  animation: verificationDots 3s infinite linear;
}

@keyframes verificationDots {
  0%, 100% { content: ""; }
  10% { content: "."; }
  40% { content: ".."; }
  70% { content: "..."; }
}
