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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #16161f;
  --bg-input: #1a1a25;
  --border-color: #2a2a3a;
  --border-focus: #22c55e;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b0;
  --text-muted: #606070;
  --accent: #22c55e;
  --accent-glow: rgba(34, 197, 94, 0.4);
  --accent-dark: #16a34a;
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --success: #22c55e;
  --success-bg: rgba(34, 197, 94, 0.1);
  --warning: #f59e0b;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Animated background orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

.glow-orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.glow-orb-2 {
  width: 300px;
  height: 300px;
  background: #8b5cf6;
  bottom: -50px;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

/* Container */
.container {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 20px;
  animation: fadeInUp 0.6s ease-out;
}

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

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

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo-icon {
  font-size: 2.5rem;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.logo h1 {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #4ade80);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Info Box */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 1rem;
}

.info-icon {
  font-size: 1.2rem;
}

.info-box ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-box li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.info-box a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.info-box a:hover {
  border-bottom-color: var(--accent);
}


.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  gap: 10px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.step-item.active {
  opacity: 1;
}

.step-item .step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-input);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
}

.step-item.active .step-number {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  border-color: var(--accent);
  box-shadow: 0 4px 15px var(--accent-glow);
}

.step-item .step-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.step-item.active .step-label {
  color: var(--accent);
}

.step-line {
  width: 60px;
  height: 2px;
  background: var(--border-color);
  margin: 0 10px;
}


.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Form */
.form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.label-icon {
  font-size: 1rem;
}

.required {
  color: var(--error);
}

.char-count {
  position: absolute;
  right: 12px;
  top: 42px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

input, textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}

input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea {
  resize: vertical;
  min-height: 120px;
}


.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-label {
  display: flex;
  align-items: center;
  padding: 12px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.radio-label:hover {
  border-color: var(--accent);
  background: var(--bg-secondary);
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  margin-right: 12px;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.radio-label input[type="radio"]:checked ~ .radio-custom {
  border-color: var(--accent);
  background: var(--accent);
}

.radio-label input[type="radio"]:checked ~ .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.radio-text {
  font-weight: 500;
  color: var(--text-primary);
}

/* Add to your CSS file */
.name-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  margin-top: 8px;
  min-height: 20px;
}

.name-status.available {
  color: var(--accent);
}

.name-status.taken {
  color: var(--error);
}

.name-status.checking {
  color: var(--text-muted);
}


.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.checkbox-label:hover {
  border-color: var(--accent);
  background: var(--bg-secondary);
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  margin-right: 12px;
  position: relative;
  transition: var(--transition);
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
  border-color: var(--accent);
  background: var(--accent);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.checkbox-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkbox-text strong {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 15px;
}

.checkbox-text small {
  color: var(--text-secondary);
  font-size: 13px;
}




.confirmation-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.confirmation-item {
  padding: 12px;
  background: var(--bg-input);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.confirmation-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.confirmation-value {
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  font-family: var(--font-mono);
}

.confirmation-value.feature-enabled {
  color: var(--accent);
}

.confirmation-value.feature-disabled {
  color: var(--text-muted);
}

.submit-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.submit-btn:hover:not(:disabled)::before {
  left: 100%;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}


.submit-btn.secondary {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

.submit-btn.secondary:hover:not(:disabled) {
  background: var(--bg-input);
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap; /* allows buttons to wrap on small screens */
}

.button-row .submit-btn {
  flex: 1 1 auto; /* grow and shrink as needed */
  min-width: 80px; /* ensures text fits */
  white-space: nowrap; /* prevent breaking text */
}

.btn-icon {
  font-size: 1.1rem;
}


.spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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


.message {
  display: none;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.show {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.message-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.message-content strong {
  display: block;
  margin-bottom: 4px;
}

.message-content p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.success-message {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: var(--success);
}

.error-message {
  background: var(--error-bg);
  border: 1px solid var(--error);
  color: var(--error);
}

/* Disclaimer */
.disclaimer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
  border-radius: 8px;
  color: var(--warning);
  font-size: 0.85rem;
  margin-bottom: 24px;
}


.terms-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.terms-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.terms-icon {
  font-size: 1.2rem;
}

.terms-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.terms-section li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.term-icon {
  font-size: 1rem;
}


.admin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.admin-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Footer */
footer {
  text-align: center;
  padding: 24px 20px;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

footer a:hover {
  text-decoration: underline;
}


@media (max-width: 768px) {
  .step-indicator {
    margin: 20px 0;
  }
  
  .step-line {
    width: 40px;
  }
  
  .radio-label,
  .checkbox-label {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 24px 16px;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .logo-icon {
    font-size: 2rem;
  }
  
  .form {
    padding: 20px 16px;
  }
  
  .glow-orb-1 {
    width: 250px;
    height: 250px;
  }
  
  .glow-orb-2 {
    width: 200px;
    height: 200px;
  }
  
  .step-item .step-number {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .step-item .step-label {
    font-size: 11px;
  }
}
