:root {
  color-scheme: dark;
  --bg: #090a0c;
  --surface: #111419;
  --surface-strong: #171b22;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f8fbff;
  --muted: #a7b0bd;
  --cyan: #19d7e7;
  --blue: #1b8ef2;
  --yellow: #ffe500;
  --orange: #ff7a00;
  --magenta: #ff3b9d;
  --danger: #ff6d6d;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 229, 0, 0.13), transparent 24rem),
    radial-gradient(circle at 94% 12%, rgba(25, 215, 231, 0.12), transparent 22rem),
    linear-gradient(160deg, #08090b 0%, #111318 48%, #08090b 100%);
  color: var(--text);
}

body.is-loading {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 43%, rgba(25, 215, 231, 0.18), transparent 13rem),
    radial-gradient(circle at 50% 57%, rgba(255, 122, 0, 0.12), transparent 15rem),
    linear-gradient(160deg, #050607 0%, #101217 48%, #050607 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.page-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 68%);
  opacity: 0.45;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-stage {
  position: relative;
  display: grid;
  width: min(86vw, 390px);
  aspect-ratio: 1.2;
  place-items: center;
  perspective: 1100px;
  transform-style: preserve-3d;
  isolation: isolate;
}

.loader-logo {
  position: relative;
  z-index: 4;
  width: min(76vw, 340px);
  height: auto;
  object-fit: contain;
  animation: logoReveal3d 2000ms cubic-bezier(0.17, 0.9, 0.22, 1) both;
  filter:
    saturate(1.22)
    contrast(1.05)
    drop-shadow(0 32px 42px rgba(0, 0, 0, 0.74))
    drop-shadow(0 0 18px rgba(25, 215, 231, 0.58))
    drop-shadow(0 0 28px rgba(255, 122, 0, 0.2));
  transform-origin: center;
}

.loader-orbit,
.loader-glow,
.loader-shine,
.loader-spark {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.loader-orbit {
  z-index: 2;
  width: 86%;
  height: 42%;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, transparent 0 18%, var(--cyan) 24%, var(--yellow) 38%, transparent 52%, var(--orange) 67%, var(--magenta) 78%, transparent 92%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: orbitSweep3d 950ms linear infinite;
  opacity: 0.92;
  transform: rotateX(72deg) rotateZ(0deg) translateY(34%);
  filter: drop-shadow(0 0 16px rgba(25, 215, 231, 0.4));
}

.loader-glow {
  z-index: 1;
  width: 74%;
  height: 24%;
  bottom: 16%;
  background: radial-gradient(ellipse at center, rgba(25, 215, 231, 0.42), rgba(255, 122, 0, 0.2), transparent 70%);
  animation: glowLift 2000ms ease-in-out both;
  transform: rotateX(72deg);
  filter: blur(14px);
}

.loader-shine {
  z-index: 5;
  width: 28%;
  height: 150%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.74), transparent);
  opacity: 0;
  transform: rotate(18deg) translateX(-210%);
  mix-blend-mode: screen;
  animation: logoFlash 2000ms ease-out both;
}

.loader-spark {
  z-index: 3;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 18px currentColor;
  opacity: 0;
}

.spark-one {
  top: 24%;
  left: 18%;
  color: var(--yellow);
  animation: sparkPop 2000ms ease-out 160ms both;
}

.spark-two {
  top: 30%;
  right: 16%;
  color: var(--cyan);
  animation: sparkPop 2000ms ease-out 360ms both;
}

.spark-three {
  right: 27%;
  bottom: 26%;
  color: var(--orange);
  animation: sparkPop 2000ms ease-out 560ms both;
}

.page-loader p {
  position: relative;
  z-index: 2;
  margin: -12px 0 0;
  color: #d7dde6;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(25, 215, 231, 0.34);
  animation: loaderTextPulse 2000ms ease both;
}

.app-shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 14px 36px;
}

.hero {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 220px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(17, 20, 25, 0.94), rgba(10, 12, 15, 0.96)),
    #0b0d10;
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -16% -22px 18%;
  height: 76px;
  background: linear-gradient(90deg, var(--yellow), var(--orange), var(--magenta), var(--cyan));
  opacity: 0.92;
  transform: rotate(-7deg);
  filter: saturate(1.25);
}

.brand-logo {
  position: relative;
  z-index: 1;
  width: min(210px, 72vw);
  height: auto;
  justify-self: center;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.54));
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: end;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 12vw, 3.55rem);
  line-height: 0.95;
}

.hero p:last-child,
.terms-copy p,
.success-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.registration-form,
.success-panel {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.form-section,
.success-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 20, 25, 0.9);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.26);
}

.form-section {
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.step {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(25, 215, 231, 0.42);
  border-radius: 999px;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 800;
}

h2 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.field-grid {
  display: grid;
  gap: 13px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.field:last-child {
  margin-bottom: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  outline: none;
  background: #090c10;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input,
select {
  padding: 0 14px;
}

input::placeholder,
select::placeholder {
  color: #687382;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  background: #0d1117;
  box-shadow: 0 0 0 4px rgba(25, 215, 231, 0.14);
}

input:user-invalid,
select:user-invalid {
  border-color: var(--danger);
}

.total-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 229, 0, 0.13), rgba(255, 122, 0, 0.11), rgba(25, 215, 231, 0.1));
  color: var(--muted);
  font-weight: 700;
}

.total-panel strong {
  color: var(--yellow);
  font-size: 1.25rem;
}

.terms-section {
  border-color: rgba(255, 229, 0, 0.18);
}

.terms-copy {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(255, 122, 0, 0.08);
}

.info-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  margin-bottom: 16px;
  padding: 0 14px;
  border: 1px solid rgba(255, 229, 0, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 229, 0, 0.08);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.info-button span:last-child {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--yellow);
  color: #111419;
  font-weight: 900;
}

.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: start;
  margin-top: 12px;
  color: #dbe4ee;
  font-size: 0.92rem;
  line-height: 1.45;
}

.check-row input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  accent-color: var(--cyan);
}

.form-error {
  min-height: 22px;
  margin: 0;
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 700;
}

.submit-button,
.ghost-button,
.modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  border: 0;
  border-radius: var(--radius);
  color: #071014;
  cursor: pointer;
  font-weight: 900;
}

.submit-button {
  position: sticky;
  bottom: 14px;
  z-index: 2;
  width: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--orange) 48%, var(--cyan));
  box-shadow: 0 16px 34px rgba(255, 122, 0, 0.26);
}

.submit-button:hover,
.ghost-button:hover,
.modal-button:hover,
.info-button:hover,
.icon-button:hover {
  filter: brightness(1.04);
}

.submit-button:disabled {
  cursor: wait;
  filter: grayscale(0.18) brightness(0.82);
  opacity: 0.78;
}

.modal-button:disabled {
  cursor: wait;
  filter: grayscale(0.18) brightness(0.82);
  opacity: 0.78;
}

.success-panel {
  padding: 22px;
  text-align: center;
}

.success-mark {
  display: inline-grid;
  width: 52px;
  height: 52px;
  place-items: center;
  justify-self: center;
  border-radius: 999px;
  background: var(--cyan);
  color: #061012;
  font-size: 1.6rem;
  font-weight: 900;
}

.payment-copy {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 16px 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(25, 215, 231, 0.12), rgba(255, 229, 0, 0.09));
  text-align: center;
}

.payment-copy p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.payment-copy .payment-error {
  color: var(--danger);
  font-weight: 800;
}

.payment-mark {
  display: inline-grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 999px;
  background: var(--cyan);
  color: #061012;
  font-size: 1.5rem;
  font-weight: 900;
}

.success-panel h2 {
  font-size: 1.5rem;
}

#summary-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 4px;
  text-align: left;
}

#summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

#summary-list dt {
  color: var(--muted);
  font-weight: 700;
}

#summary-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  text-align: right;
}

.ghost-button {
  width: 100%;
  margin-top: 6px;
  border: 1px solid rgba(25, 215, 231, 0.34);
  background: rgba(25, 215, 231, 0.12);
  color: var(--text);
}

.terms-modal {
  width: min(calc(100% - 28px), 520px);
  padding: 0;
  border: 1px solid rgba(25, 215, 231, 0.28);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
}

.terms-modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.modal-content {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(17, 20, 25, 0.98), rgba(9, 12, 16, 0.98)),
    var(--surface);
  box-shadow: var(--shadow);
}

.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.modal-button {
  width: 100%;
  background: linear-gradient(90deg, var(--yellow), var(--orange));
}

[hidden] {
  display: none !important;
}

@keyframes logoReveal3d {
  0% {
    opacity: 0;
    transform: rotateX(72deg) rotateY(-42deg) rotateZ(-12deg) translateY(28px) scale(0.52);
    filter:
      saturate(1.6)
      contrast(1.1)
      drop-shadow(0 34px 36px rgba(0, 0, 0, 0.72))
      drop-shadow(0 0 0 rgba(25, 215, 231, 0));
  }

  24% {
    opacity: 1;
    transform: rotateX(-12deg) rotateY(24deg) rotateZ(4deg) translateY(-4px) scale(1.18);
  }

  46% {
    transform: rotateX(8deg) rotateY(-18deg) rotateZ(-2deg) translateY(0) scale(0.96);
  }

  68% {
    transform: rotateX(-3deg) rotateY(9deg) rotateZ(1deg) scale(1.04);
  }

  100% {
    opacity: 1;
    transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg) scale(1);
  }
}

@keyframes orbitSweep3d {
  0% {
    opacity: 0;
    transform: rotateX(72deg) rotateZ(-90deg) translateY(34%) scale(0.76);
  }

  24% {
    opacity: 1;
  }

  100% {
    opacity: 0.92;
    transform: rotateX(72deg) rotateZ(270deg) translateY(34%) scale(1);
  }
}

@keyframes glowLift {
  0%,
  100% {
    opacity: 0.62;
    transform: rotateX(72deg) scale(0.74);
  }

  48% {
    opacity: 1;
    transform: rotateX(72deg) scale(1.18);
  }
}

@keyframes logoFlash {
  0%,
  26% {
    opacity: 0;
    transform: rotate(18deg) translateX(-210%);
  }

  38% {
    opacity: 0.68;
  }

  58%,
  100% {
    opacity: 0;
    transform: rotate(18deg) translateX(210%);
  }
}

@keyframes sparkPop {
  0%,
  22% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.2);
  }

  38% {
    opacity: 1;
    transform: translate3d(10px, -18px, 40px) scale(1);
  }

  72%,
  100% {
    opacity: 0;
    transform: translate3d(26px, -34px, 60px) scale(0.3);
  }
}

@keyframes loaderTextPulse {
  0%,
  18% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }

  42%,
  86% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0.78;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 680px) {
  .app-shell {
    padding-top: 30px;
  }

  .hero {
    grid-template-columns: 240px 1fr;
    align-items: end;
    min-height: 260px;
  }

  .brand-logo {
    width: 240px;
  }

  .field-grid {
    grid-template-columns: 1fr 1fr;
  }

  .submit-button {
    position: static;
  }
}
