/* ── Score de Compatibilité ── */

/* Layout */
.compat-body {
  min-height: 100vh;
  padding-bottom: 4rem;
}

/* Hero */
.compat-hero {
  text-align: center;
  padding: 3.5rem 1.5rem 2rem;
  max-width: 680px;
  margin: 0 auto;
}
.compat-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(168,85,247,0.18), rgba(244,114,182,0.14));
  border: 1px solid rgba(168,85,247,0.3);
  color: rgba(255,255,255,0.85);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.2rem;
}
.compat-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.compat-hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 520px;
}

/* Step indicator */
.compat-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 2.5rem;
  max-width: 480px;
  padding: 0 1rem;
}
.compat-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 1;
}
.compat-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
  background: var(--card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}
.compat-step-item.active .compat-step-dot {
  border-color: var(--purple);
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  box-shadow: 0 0 16px rgba(168,85,247,0.5);
}
.compat-step-item.done .compat-step-dot {
  border-color: rgba(168,85,247,0.4);
  background: rgba(168,85,247,0.15);
  color: var(--purple);
}
.compat-step-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.compat-step-item.active .compat-step-label { color: var(--text); }
.compat-step-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 1.4rem;
}
.compat-step-line.done { background: rgba(168,85,247,0.35); }

/* Profile cards */
.compat-profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (max-width: 640px) {
  .compat-profiles { grid-template-columns: 1fr; }
}

.profile-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 1.8rem;
  transition: border-color 0.3s;
}
.profile-card:first-child {
  border-color: rgba(168,85,247,0.3);
}
.profile-card:last-child {
  border-color: rgba(244,114,182,0.3);
}
.profile-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--card-border);
}
.profile-card:first-child .profile-card-title { color: var(--purple); }
.profile-card:last-child .profile-card-title { color: var(--pink); }

/* Form groups */
.compat-field {
  margin-bottom: 1.1rem;
}
.compat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.compat-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: 11px;
  border: 1px solid var(--card-border);
  background: var(--input-bg, rgba(255,255,255,0.05));
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239492b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.compat-select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}
.compat-select option {
  background: #1a1a2e;
  color: var(--text);
}

/* Submit button */
.compat-submit-wrap {
  text-align: center;
  margin: 2.5rem auto 0;
  max-width: 820px;
  padding: 0 1.5rem;
}
.compat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.5rem;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 24px rgba(168,85,247,0.4);
}
.compat-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 32px rgba(168,85,247,0.55); }
.compat-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Loading */
.compat-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
  text-align: center;
}
.compat-loading.active { display: flex; }
.compat-loading-spinner {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(168,85,247,0.15);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.compat-loading-text { color: var(--muted); font-size: 0.95rem; }

/* Results section */
.compat-result {
  display: none;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  animation: fadeUp 0.5s ease both;
}
.compat-result.active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* DNA Card */
.dna-card {
  background: var(--card-bg);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 24px;
  padding: 2.2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.dna-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(168,85,247,0.12), transparent 70%);
  pointer-events: none;
}
.dna-overall-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.dna-ring {
  position: relative;
  width: 130px;
  height: 130px;
  flex-shrink: 0;
}
.dna-ring svg {
  width: 130px;
  height: 130px;
  transform: rotate(-90deg);
}
.dna-ring-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 10; }
.dna-ring-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 346;
  stroke-dashoffset: 346;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1);
}
.dna-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}
.dna-ring-pct {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.dna-ring-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dna-verdict-block { text-align: left; flex: 1; min-width: 200px; }
.dna-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.dna-verdict {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.dna-type {
  display: inline-block;
  background: linear-gradient(135deg, rgba(168,85,247,0.18), rgba(244,114,182,0.14));
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 8px;
  padding: 0.3rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple);
}

/* Dimensions bars */
.dim-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
  text-align: left;
}
.dim-row { display: flex; flex-direction: column; gap: 0.3rem; }
.dim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dim-name {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.dim-score {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--muted);
}
.dim-bar-track {
  height: 7px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.dim-bar-fill {
  height: 100%;
  border-radius: 99px;
  width: 0;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}
.dim-bar-fill.high   { background: linear-gradient(90deg, #22d3ee, #a855f7); }
.dim-bar-fill.medium { background: linear-gradient(90deg, #fbbf24, #f97316); }
.dim-bar-fill.low    { background: linear-gradient(90deg, #ef4444, #ec4899); }

/* Strengths & Tensions */
.compat-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 520px) {
  .compat-insights { grid-template-columns: 1fr; }
}
.insight-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.3rem 1.5rem;
}
.insight-card.strengths { border-color: rgba(34,197,94,0.2); }
.insight-card.tensions  { border-color: rgba(239,68,68,0.2); }
.insight-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.insight-card.strengths .insight-title { color: #22c55e; }
.insight-card.tensions  .insight-title { color: #ef4444; }
.insight-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.insight-list li {
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.4;
}
.insight-list li::before { flex-shrink: 0; margin-top: 0.1rem; }
.insight-card.strengths .insight-list li::before { content: "✓"; color: #22c55e; font-weight: 700; }
.insight-card.tensions  .insight-list li::before { content: "!"; color: #ef4444; font-weight: 700; }

/* Tip card */
.compat-tip {
  background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(244,114,182,0.07));
  border: 1px solid rgba(168,85,247,0.2);
  border-radius: 16px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.compat-tip-icon { font-size: 1.4rem; flex-shrink: 0; }
.compat-tip-text { font-size: 0.92rem; color: var(--text); line-height: 1.6; }

/* Share / Reset */
.compat-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.compat-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: 11px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.compat-action-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(168,85,247,0.3);
  transform: translateY(-1px);
}
.compat-action-btn.primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 16px rgba(168,85,247,0.35);
}
.compat-action-btn.primary:hover { box-shadow: 0 5px 24px rgba(168,85,247,0.5); }

/* Cross-promo */
.compat-promo {
  text-align: center;
  margin-top: 2rem;
  padding: 1.2rem;
  border-top: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 0.88rem;
}
.compat-promo a {
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
}
.compat-promo a:hover { text-decoration: underline; }

/* Ring color variants */
.dna-ring-fill.high   { stroke: url(#grad-high); }
.dna-ring-fill.medium { stroke: url(#grad-medium); }
.dna-ring-fill.low    { stroke: url(#grad-low); }
