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

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

body {
  font-family: 'Poppins', sans-serif;
  background: #0F0F1A;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #FF6B8A, #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: #A0A0B8;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero .features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.feature-item span:first-child {
  font-size: 24px;
}

.feature-item span:last-child {
  color: #D0D0E0;
  font-size: 0.9rem;
}

.btn-primary {
  display: inline-block;
  padding: 16px 48px;
  background: linear-gradient(135deg, #FF6B8A, #7C3AED);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 107, 138, 0.3);
}

/* Quiz */
.quiz-section {
  display: none;
  padding: 20px 0;
  min-height: 100vh;
}

.quiz-section.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  margin-bottom: 32px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF6B8A, #7C3AED);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.step-counter {
  text-align: center;
  color: #A0A0B8;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

/* Quiz step */
.quiz-step {
  display: none;
}

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

.quiz-step h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
}

.quiz-step p.subtitle {
  text-align: center;
  color: #A0A0B8;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

/* Text input */
.text-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

.text-input:focus {
  border-color: #FF6B8A;
}

.text-input::placeholder {
  color: #666;
}

/* Options grid */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.option-card:hover {
  border-color: rgba(255, 107, 138, 0.3);
  background: rgba(255, 107, 138, 0.05);
}

.option-card.selected {
  border-color: #FF6B8A;
  background: rgba(255, 107, 138, 0.15);
}

.option-card .option-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.option-card .option-label {
  font-size: 0.9rem;
  font-weight: 500;
}

/* Navigation */
.quiz-nav {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.btn-back {
  flex: 1;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #A0A0B8;
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-next {
  flex: 2;
  padding: 14px;
  background: linear-gradient(135deg, #FF6B8A, #7C3AED);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-next:hover {
  transform: translateY(-1px);
}

.btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* Result screen */
.result-section {
  display: none;
  text-align: center;
  padding: 40px 20px;
  min-height: 100vh;
}

.result-section.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeIn 0.5s ease;
}

.result-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B8A, #7C3AED);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.result-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.result-section .result-desc {
  color: #A0A0B8;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.result-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.trait-tag {
  padding: 6px 16px;
  background: rgba(255, 107, 138, 0.15);
  border: 1px solid rgba(255, 107, 138, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  color: #FF6B8A;
}

.session-code {
  display: inline-block;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-family: monospace;
  font-size: 1.4rem;
  letter-spacing: 4px;
  color: #FF6B8A;
  margin-bottom: 8px;
}

.code-hint {
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 32px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 48px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Loading */
.loading {
  display: none;
}

.loading.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #FF6B8A;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

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

.loading p {
  color: #A0A0B8;
}

/* Multi-select hint */
.multi-hint {
  text-align: center;
  color: #7C3AED;
  font-size: 0.8rem;
  margin-bottom: 16px;
}

/* Validation error */
.error-msg {
  color: #FF6B8A;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 8px;
  display: none;
}

.error-msg.visible {
  display: block;
}
