:root {
  --bg: #1a1042;
  --bg-elevated: #251654;
  --accent: #97dffc;
  --accent-dim: rgba(151, 223, 252, 0.15);
  --text: #f3ecf7;
  --text-dim: #c3aed1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #5fb8de);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(151, 223, 252, 0.25);
}

.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.2s;
}

.step-dot.active {
  background: var(--accent);
}

.step-dot.done {
  background: var(--accent);
  opacity: 0.5;
}

.step-line {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.12);
}

.screen h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  text-align: center;
}

.subtitle {
  color: var(--text-dim);
  text-align: center;
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 28px;
}

.platform-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.platform-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-elevated);
  border: 1px solid rgba(151, 223, 252, 0.2);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.2s;
}

.platform-btn:active {
  border-color: var(--accent);
}

.platform-icon {
  font-size: 22px;
}

.primary-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: var(--bg);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn:active {
  opacity: 0.85;
}

.price-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(151, 223, 252, 0.25);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  margin-bottom: 20px;
}

.price-value {
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
}

.price-period {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 4px;
}

.hint {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 24px;
}

.pending-icon {
  font-size: 48px;
  text-align: center;
  margin-bottom: 12px;
}

.key-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(151, 223, 252, 0.25);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}

.key-label {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 6px;
}

.key-value {
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
  color: var(--text);
  margin-bottom: 14px;
  max-height: 80px;
  overflow-y: auto;
}

.copy-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.copy-btn.copied {
  background: var(--accent);
  color: var(--bg);
}

.expiry-note {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 24px;
}

.instructions {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 2;
  padding-left: 20px;
  margin: 0;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(151, 223, 252, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 80px auto;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
