@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink:     #FF1FBE;
  --cyan:     #00C8FF;
  --bg:       #000;
  --surface:  rgba(255,255,255,0.06);
  --border:   rgba(255,255,255,0.10);
  --text:     #fff;
  --text-dim: #888;
  --radius-lg: 24px;
  --radius-md: 16px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

/* ── App shell ──────────────────────────────── */
.app {
  width: 100%;
  max-width: 430px;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

@media (min-width: 600px) {
  body::before {
    content: 'Please open this on your phone';
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: #000;
    color: rgba(255,255,255,0.3);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    z-index: 9999;
  }
}

/* ── Header ────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 0;
}

.header-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

/* ── Step progress ─────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 32px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.step-label {
  font-size: 10px;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-bottom: 18px;
  transition: background 0.3s ease;
}

.step.completed .step-circle {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.step.completed .step-label { color: var(--pink); }

.step.active .step-circle {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,200,255,0.15);
}
.step.active .step-label { color: var(--cyan); font-weight: 600; }

.check-icon::before { content: '✓'; }

/* ── Button ────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: auto;
  aspect-ratio: 5 / 1;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  width: 67.5%;
  max-width: 290px;
  align-self: center;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
  position: relative;
  z-index: 0;
  letter-spacing: -0.3px;
}

/* Pink-to-cyan gradient border */
.btn::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--cyan), var(--pink));
  z-index: -1;
}

/* Black fill */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #000;
  z-index: -1;
  transition: background 0.2s;
}

.btn:hover::after { background: #1a1a1a; }
.btn:active { transform: scale(0.98); }

.btn-arrow .arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: auto;
  display: flex;
  align-items: center;
  font-size: 0;
}

.btn-secondary::before { background: var(--border); }
.btn-secondary { color: var(--text-dim); }

/* ── Content ───────────────────────────────── */
.content {
  flex: 1;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

/* ── Spinner ───────────────────────────────── */
.spinner {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.spinner span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: bounce 1s infinite;
}

.spinner span:nth-child(1) { background: var(--pink); animation-delay: 0s; }
.spinner span:nth-child(2) { background: var(--cyan); animation-delay: 0.2s; }
.spinner span:nth-child(3) { background: var(--pink); animation-delay: 0.4s; }
.spinner span:nth-child(4) { background: var(--cyan); animation-delay: 0.6s; }

@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-10px); }
}
