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

body {
  font-family: 'Arial', sans-serif;
  background: #f0f4f8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ── Screens ── */
.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  min-height: 100vh;
  padding: 32px 24px;
  animation: fadeIn 0.35s ease;
  text-align: center;
}
.screen.active { display: flex; }

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

/* ── GAP Logo ── */
.gap-logo {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 8px;
  color: white;
  background: #0055a5;
  padding: 12px 32px;
  border-radius: 8px;
  margin-bottom: 28px;
}
.gap-logo.small {
  font-size: 28px;
  padding: 8px 20px;
  margin-bottom: 16px;
}

/* ── Welcome ── */
.welcome-title {
  font-size: 36px;
  color: #222;
  margin-bottom: 12px;
}
.welcome-sub {
  font-size: 18px;
  color: #666;
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.5;
}

/* ── Step header ── */
.step-header { margin-bottom: 28px; }
.step-indicator {
  display: inline-block;
  background: #0055a5;
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.step-header h2 { font-size: 28px; color: #222; }
.step-sub { font-size: 15px; color: #888; margin-top: 8px; }

/* ── Option cards (occasion / style) ── */
.options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
  max-width: 600px;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 140px;
  padding: 20px 16px;
  background: white;
  border: 3px solid #e0e0e0;
  border-radius: 16px;
  font-size: 36px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.option-card span {
  font-size: 13px;
  font-weight: 700;
  color: #444;
  text-align: center;
  line-height: 1.3;
}
.option-card:hover { border-color: #0055a5; transform: translateY(-3px); }
.option-card.selected {
  border-color: #0055a5;
  background: #e8f0fb;
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(0,85,165,0.2);
}

/* ── Color cards ── */
.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 32px;
  max-width: 520px;
}

.color-card {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--c);
  border: 4px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
  overflow: visible;
  position: relative;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}
.color-card span {
  position: absolute;
  bottom: -22px;
  font-size: 12px;
  font-weight: 700;
  color: #444;
  white-space: nowrap;
}
.color-card:hover { transform: scale(1.1); }
.color-card.selected {
  border-color: #222;
  transform: scale(1.12);
  box-shadow: 0 0 0 3px white, 0 0 0 6px #0055a5;
}

/* ── Name input ── */
.name-input {
  width: 100%;
  max-width: 420px;
  padding: 16px 20px;
  font-size: 20px;
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 24px;
  outline: none;
  transition: border-color 0.2s;
}
.name-input:focus { border-color: #0055a5; }

/* ── Buttons ── */
.btn-primary {
  background: #0055a5;
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.btn-primary:hover { background: #0044cc; transform: translateY(-2px); }
.btn-primary:disabled { background: #aaa; cursor: not-allowed; transform: none; }
.btn-primary.big-btn { padding: 18px 48px; font-size: 20px; border-radius: 14px; }

.btn-secondary {
  background: white;
  color: #0055a5;
  border: 2px solid #0055a5;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: #e8f0fb; }

.skip-btn {
  background: none;
  border: none;
  color: #aaa;
  font-size: 14px;
  cursor: pointer;
  margin-top: 16px;
  text-decoration: underline;
}
.skip-btn:hover { color: #555; }

.nav-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

/* ── Generating screen ── */
.generating-icon { font-size: 72px; margin-bottom: 16px; animation: pulse 1.5s infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
.generating-msg { font-size: 16px; color: #888; margin: 8px 0 24px; }

.spinner {
  width: 56px; height: 56px;
  border: 5px solid #e0e0e0;
  border-top-color: #0055a5;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 8px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.outfit-summary {
  margin-top: 24px;
  font-size: 14px;
  color: #666;
  background: white;
  border-radius: 10px;
  padding: 12px 20px;
  line-height: 1.8;
}

/* ── Result screen ── */
.result-title { font-size: 28px; color: #222; margin-bottom: 20px; }
.image-container {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  margin-bottom: 28px;
  background: white;
}
.image-container img { width: 100%; display: block; }
.result-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ── Success screen ── */
.success-icon { font-size: 80px; margin-bottom: 16px; }
