@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); } }

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; }

.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); }
.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; }
.progress-fill { transition: width 1s linear; }

.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; }
}
