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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf9 30%, #f0e6ff 70%, #fce4ec 100%);
  min-height: 100vh;
  color: #1d1d1f;
  line-height: 1.6;
}

.container {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 32px;
}

.logo-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 8px;
}

.header h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 4px;
}

.subtitle {
  color: #6e6e73;
  font-size: 0.95rem;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
}

/* Steps */
.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-number {
  position: absolute;
  top: -12px;
  right: 24px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007aff, #5856d6);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1d1d1f;
}

.step-desc {
  color: #6e6e73;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3a3a3c;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d1d1d6;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: #1d1d1f;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.form-group input::placeholder {
  color: #aeaeb2;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #007aff, #5856d6);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #f2f2f7;
  color: #007aff;
  margin-top: 12px;
}

.btn-secondary:hover {
  background: #e5e5ea;
}

.btn-ghost {
  background: transparent;
  color: #ff3b30;
  font-size: 0.9rem;
  padding: 8px;
  width: auto;
  margin: 0 auto;
  display: block;
}

.btn-ghost:hover {
  background: rgba(255, 59, 48, 0.08);
  border-radius: 8px;
}

.btn-large {
  padding: 16px 24px;
  font-size: 1.1rem;
}

.btn-loader {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* Error message */
.error-msg {
  color: #ff3b30;
  font-size: 0.85rem;
  margin-top: 12px;
  text-align: center;
}

/* Info box */
.info-box {
  background: #f0f7ff;
  border: 1px solid #bde0fe;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 20px;
  font-size: 0.82rem;
  color: #1d4ed8;
  line-height: 1.5;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(135deg, #f0f7ff, #e8f4fd);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  border: 1px solid #bde0fe;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #007aff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: #6e6e73;
  font-weight: 500;
}

/* Progress bar */
.progress-bar-container {
  width: 100%;
  height: 8px;
  background: #e5e5ea;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 20px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #007aff, #5856d6);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-text {
  text-align: center;
  font-size: 0.85rem;
  color: #6e6e73;
  margin-top: 8px;
}

/* Success box */
.success-box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  margin-top: 20px;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.success-box p {
  font-weight: 600;
  color: #15803d;
}

.success-detail {
  font-weight: 400 !important;
  font-size: 0.85rem;
  color: #6e6e73 !important;
  margin-top: 4px;
}

/* Loading state */
.loading-state {
  text-align: center;
  padding: 40px 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e5ea;
  border-top-color: #007aff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

.loading-state p {
  color: #6e6e73;
  font-size: 0.9rem;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 32px;
  padding: 16px;
}

.footer p {
  color: #aeaeb2;
  font-size: 0.78rem;
}

/* Utilities */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 20px 12px;
  }

  .card {
    padding: 24px 20px;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }
}
