/* Potrivire - design system
   Paleta: bold, calda, gandita pentru shareability (Spotify Wrapped / Instagram
   Story, nu chestionar clinic). Fonturi Google: Sora (titluri, geometric,
   apasat) + Inter (text, foarte lizibil, suport diacritice complet). */

:root {
  --pink: #ff4d6d;
  --amber: #ffb020;
  --teal: #2dd4bf;
  --violet: #8b5cf6;
  --ink: #1a1025;
  --ink-soft: #2c1c3f;
  --cream: #fff8f0;
  --cream-soft: #fff1e0;
  --white: #ffffff;
  --gray: #6b6478;
  --gradient-hero: linear-gradient(135deg, #ff4d6d 0%, #8b5cf6 60%, #4f46e5 100%);
  --gradient-warm: linear-gradient(135deg, #ff4d6d 0%, #ffb020 100%);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 18px 40px -12px rgba(26, 16, 37, 0.35);
  --max-width: 480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

p { line-height: 1.55; margin: 0 0 16px; color: var(--ink); }
a { color: inherit; }

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 48px;
  min-height: 100vh;
}

.shell-admin {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 20px 48px;
  min-height: 100vh;
}

.center-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  border-radius: 999px;
  border: none;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--gradient-warm);
  color: var(--white);
  box-shadow: 0 12px 24px -8px rgba(255, 77, 109, 0.55);
}
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 12px 24px -8px rgba(37, 211, 102, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--gray);
  font-weight: 600;
  box-shadow: none;
}

/* ---------- Cards ---------- */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}

.badge {
  display: inline-block;
  background: var(--cream-soft);
  color: var(--pink);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

/* ---------- Hero (landing) ---------- */

.hero {
  background: var(--gradient-hero);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 24px 28px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.hero h1 { font-size: 32px; }
.hero p { color: rgba(255,255,255,0.92); font-size: 16px; }
.hero .emoji-row { font-size: 28px; margin-bottom: 14px; }

.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.pill {
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 8px;
}
.price-row .amount { font-family: "Sora", sans-serif; font-size: 40px; font-weight: 800; }
.price-row .unit { font-size: 15px; color: var(--gray); font-weight: 600; }

/* ---------- Progress ---------- */

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--cream-soft);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}
.progress-fill {
  height: 100%;
  background: var(--gradient-warm);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.step-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

/* ---------- Quiz question ---------- */

.question-text {
  font-family: "Sora", sans-serif;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 22px;
}

.scale-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.option-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--cream-soft);
  background: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.option-btn:active { transform: scale(0.98); }
.option-btn.selected {
  border-color: var(--pink);
  background: var(--cream-soft);
}

/* ---------- "Tu sau Eu?" duel questions ---------- */

.duel-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.duel-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 14px;
  border-radius: var(--radius-md);
  border: 2px solid var(--cream-soft);
  background: var(--white);
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
  text-align: center;
}
.duel-btn:active { transform: scale(0.96); }
.duel-btn.selected {
  border-color: var(--violet);
  background: var(--cream-soft);
}
.duel-emoji { font-size: 34px; line-height: 1; }

.mini-quiz-intro {
  background: var(--cream-soft);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--gray);
  margin-bottom: 14px;
}
.framework-note {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  line-height: 1.5;
}

.input-text {
  width: 100%;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--cream-soft);
  font-size: 16px;
  font-family: "Inter", sans-serif;
  background: var(--white);
  color: var(--ink);
}
.input-text:focus { outline: none; border-color: var(--pink); }

.nav-row { display: flex; gap: 10px; margin-top: 24px; }
.nav-row .btn { flex: 1; }

/* ---------- Report / Wrapped style ---------- */

.score-hero {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 24px 28px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -16px rgba(26, 16, 37, 0.55);
  animation: hero-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.score-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, #ff4d6d, #ffb020, #2dd4bf, #8b5cf6, #ff4d6d);
  opacity: 0.28;
  filter: blur(40px);
  animation: hero-spin 16s linear infinite;
}
@keyframes hero-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .score-hero, .score-hero::before { animation: none; }
}
.score-hero .inner { position: relative; z-index: 1; }
.score-hero .logo-mark {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 10px;
}
.score-hero .big-score {
  font-family: "Sora", sans-serif;
  font-size: 76px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ff4d6d, #ffb020, #2dd4bf, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.score-hero .percent-sign { font-size: 34px; }
.score-hero .overall-label {
  font-family: "Sora", sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 10px 0 6px;
}
.score-hero .names { font-size: 14px; color: rgba(255,255,255,0.7); font-weight: 600; letter-spacing: 0.03em; }

.hero-mini-scores {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-mini-scores .mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hero-mini-scores .mini-value {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 19px;
}
.hero-mini-scores .mini-label {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.62);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}
.hero-mini-scores .mini-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.category-card {
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 14px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.category-card .cat-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.category-card .cat-label {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 17px;
}
.category-card .cat-score {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 28px;
}
.category-card p { color: rgba(255,255,255,0.95); font-size: 14.5px; margin-bottom: 10px; }
.category-card .tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.category-card .tag {
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
}

.bonus-card {
  background: var(--white);
  border-left: 6px solid var(--violet);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}
.bonus-card .bonus-head { font-family: "Sora", sans-serif; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.bonus-card p { margin-bottom: 0; font-size: 14.5px; }

.type-pair-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.type-chip {
  display: inline-flex;
  flex-direction: column;
  background: var(--cream-soft);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: "Sora", sans-serif;
}
.type-chip .type-chip-who { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray); }
.type-chip .type-chip-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.type-plus { font-size: 18px; font-weight: 800; color: var(--violet); }

.duel-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.duel-summary .duel-count {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--violet);
}
.duel-summary .duel-total { font-size: 14px; color: var(--gray); font-weight: 600; }

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.highlight-item {
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
}
.highlight-item.aligned { background: rgba(45, 212, 191, 0.14); border: 1px solid rgba(45, 212, 191, 0.3); }
.highlight-item.different { background: rgba(255, 176, 32, 0.14); border: 1px solid rgba(255, 176, 32, 0.3); }

.closing-card {
  background: linear-gradient(135deg, #1a1025 0%, #2c1c3f 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  margin-bottom: 20px;
}
.closing-card p { color: rgba(255,255,255,0.92); margin-bottom: 0; }
.closing-card .closing-title { color: rgba(255,255,255,0.6); }

.share-image-block {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}
.share-image-block img {
  width: 100%;
  max-width: 260px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: 0 14px 30px -12px rgba(26, 16, 37, 0.4);
}
.share-btn-row { display: flex; gap: 10px; }
.share-btn-row .btn { flex: 1; }
.btn-image {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 24px -8px rgba(26, 16, 37, 0.5);
}

.section-title {
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin: 28px 0 14px;
}

.footer-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--gray);
  margin-top: 30px;
  line-height: 1.6;
}
.footer-note a { text-decoration: underline; }

.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  gap: 16px;
}
.spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 5px solid var(--cream-soft);
  border-top-color: var(--pink);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.checklist { list-style: none; padding: 0; margin: 0 0 20px; }
.checklist li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 15px; }
.checklist li::before { content: "✓"; color: var(--teal); font-weight: 800; }

.logo {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 18px;
}
.logo .dot { color: var(--pink); }

.small-print { font-size: 12.5px; color: var(--gray); }

.consent-box {
  background: var(--cream-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--gray);
  margin: 16px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.consent-box input { margin-top: 3px; }

.share-bar {
  position: sticky;
  bottom: 0;
  padding: 14px 0 6px;
  background: linear-gradient(180deg, rgba(255,248,240,0) 0%, var(--cream) 30%);
}

.mock-badge {
  display: inline-block;
  background: #fff3cd;
  color: #8a6d00;
  border: 1px solid #ffe58a;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 16px;
}

@media (min-width: 520px) {
  .score-hero .big-score { font-size: 88px; }
}
