/* ============================================================
   MieterScore AI — Funnel Page Styles
   7-step application funnel with progress bar, forms, uploads,
   loading states, result cards, social profiles and score display
   ============================================================ */


/* ============================================================
   1. FUNNEL LAYOUT — Sidebar + Content
   ============================================================ */

.funnel-layout {
  display: flex;
  min-height: calc(100vh - 64px);
  position: relative;
}

/* ---- Sidebar ---- */
.funnel-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-5);
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-header {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: none;
}

.sidebar-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.sidebar-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Step items ---- */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sidebar-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: default;
  transition: all 0.2s ease;
  position: relative;
}

/* Connector dots removed — clean vertical list */

.sidebar-step.active {
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-step.completed {
  cursor: pointer;
}

.sidebar-step.completed:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Number indicator */
.sidebar-step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.sidebar-step.active .sidebar-step-indicator {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.sidebar-step.completed .sidebar-step-indicator {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.sidebar-step.completed .sidebar-step-indicator span {
  display: none;
}

.sidebar-step.completed .sidebar-step-indicator::after {
  content: '✓';
  font-size: 0.8rem;
  color: #fff;
}

/* Step text */
.sidebar-step-text {
  min-width: 0;
}

.sidebar-step-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
  transition: color 0.2s ease;
}

.sidebar-step.active .sidebar-step-label {
  color: #fff;
}

.sidebar-step.completed .sidebar-step-label {
  color: rgba(255, 255, 255, 0.8);
}

.sidebar-step-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 2px;
}

.sidebar-step.active .sidebar-step-desc {
  color: rgba(255, 255, 255, 0.55);
}

/* Sidebar footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-security {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---- Content area ---- */
.funnel-content {
  flex: 1;
  min-width: 0;
  max-width: 760px;
  padding: var(--space-6) var(--space-8) var(--space-10);
  background: var(--bg);
  position: relative;
  z-index: 1;
}

/* ---- Mobile: sidebar collapses to top bar ---- */
@media (max-width: 860px) {
  .funnel-layout {
    flex-direction: column;
  }

  .funnel-sidebar {
    width: 100%;
    position: relative;
    top: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: var(--space-3) var(--space-4);
    gap: var(--space-4);
    overflow-x: auto;
  }

  .sidebar-header {
    display: none;
  }

  .sidebar-nav {
    flex-direction: row;
    gap: 4px;
    flex: none;
  }

  .sidebar-step {
    padding: 6px 10px;
    white-space: nowrap;
  }

  .sidebar-step + .sidebar-step::before {
    display: none;
  }

  .sidebar-step-desc {
    display: none;
  }

  .sidebar-step-indicator {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .sidebar-step-label {
    font-size: 0.78rem;
  }

  .sidebar-footer {
    display: none;
  }

  .funnel-content {
    padding: var(--space-5) var(--space-4) var(--space-8);
  }
}

/* Legacy classes — keep for any remaining references */
.funnel-container {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-10);
}

.funnel-header { display: none; }
.progress-bar { display: none; }
.progress-step-connector { display: none; }


/* ============================================================
   3. STEP CONTAINERS — Single visible at a time, fade transition
   ============================================================ */

.step {
  display: none;
  opacity: 0;
  transition: opacity var(--transition-md);
}

.step.active {
  display: block;
  opacity: 1;
}

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

.step-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-2);
}

.step-subtitle {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin-bottom: var(--space-6);
  max-width: 60ch;
}

.step-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  margin-bottom: var(--space-5);
}


/* ============================================================
   4. FORM LAYOUTS
   ============================================================ */

.form-section {
  margin-bottom: var(--space-5);
}

.form-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-xlight);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-group label .required-mark {
  color: var(--danger);
  margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.625rem var(--space-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-xlight);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.form-group.error::after {
  content: attr(data-error);
  font-size: 0.8125rem;
  color: var(--danger);
  margin-top: -var(--space-1);
}

.field-error {
  font-size: 0.8125rem;
  color: var(--danger);
  display: none;
}

.form-group.error .field-error {
  display: block;
}

/* Two-column layout for short fields */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  align-items: end;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-4);
  align-items: end;
}

@media (max-width: 560px) {
  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}

/* Inline form-group: label + control on same row */
.form-group.form-group--inline {
  flex-direction: row;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.form-group.form-group--inline > label:first-child {
  margin-bottom: 0;
}

.form-group.form-group--inline .field-error {
  width: 100%;
}

/* Radio group */
.radio-group {
  display: flex;
  gap: var(--space-4);
  flex-wrap: nowrap;
  align-items: center;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text);
  padding: 0.5rem var(--space-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  user-select: none;
}

.radio-option input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.radio-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.radio-option:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  transition: border-color var(--transition);
}

.checkbox-group input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  font-weight: 400;
  line-height: 1.5;
}

.checkbox-group:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-xlight);
  margin-top: -var(--space-2);
}


/* ============================================================
   5. STEP NAVIGATION — Weiter / Zurück buttons
   ============================================================ */

.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  gap: var(--space-4);
}

.step-nav-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.625rem var(--space-4);
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-back:hover {
  border-color: var(--border-strong);
  color: var(--text);
  background: var(--bg-subtle);
  text-decoration: none;
}

.btn-next {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem var(--space-6);
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-accent);
}

.btn-next:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-next:active {
  transform: translateY(0);
}

.btn-next:disabled {
  background: var(--border-strong);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-skip {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-xlight);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.btn-skip:hover {
  color: var(--text-light);
}


/* ============================================================
   6. UPLOAD ZONES — Drag & drop, file preview
   ============================================================ */

.upload-zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

@media (max-width: 600px) {
  .upload-zones {
    grid-template-columns: 1fr;
  }
}

.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-md);
  background: var(--bg-white);
  position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}

.upload-zone.has-file {
  border-color: var(--success);
  background: var(--success-light);
  border-style: solid;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: var(--space-2);
  display: block;
  line-height: 1;
}

.upload-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.upload-hint {
  font-size: 0.8125rem;
  color: var(--text-xlight);
  margin-bottom: 0;
}

.upload-optional {
  display: inline-block;
  margin-top: var(--space-2);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  color: var(--text-light);
}

.upload-file-preview {
  display: none;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: var(--success-light);
  border: 1px solid var(--success);
  border-radius: var(--radius-sm);
  text-align: left;
  position: relative;
  z-index: 2;
}

.upload-zone.has-file .upload-file-preview {
  display: flex;
}

.upload-file-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.upload-file-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.upload-file-size {
  font-size: 0.75rem;
  color: var(--text-xlight);
}

.upload-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-xlight);
  padding: 2px;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1;
  transition: color var(--transition);
  z-index: 3;
  position: relative;
}

.upload-remove-btn:hover {
  color: var(--danger);
}

.upload-action-area {
  margin-top: var(--space-3);
}

.btn-analyze {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem var(--space-4);
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-analyze:hover:not(:disabled) {
  background: var(--primary-light);
}

.btn-analyze:disabled {
  background: var(--border-strong);
  cursor: not-allowed;
}

/* Upload result area */
.upload-result {
  display: none;
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.upload-result.success {
  display: block;
  background: var(--success-light);
  border: 1px solid var(--success);
  color: #166534;
}

.upload-result.error {
  display: block;
  background: var(--danger-light);
  border: 1px solid var(--danger);
  color: #991b1b;
}

.upload-result.warning {
  display: block;
  background: var(--warning-light);
  border: 1px solid var(--warning);
  color: #92400e;
}


/* ============================================================
   7. LOADING ANIMATION — Spinning circle + pulsing dots
   ============================================================ */

.loading-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-5);
  gap: var(--space-4);
  text-align: center;
}

.loading-state.active {
  display: flex;
}

.loading-spinner {
  width: 52px;
  height: 52px;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

.loading-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.loading-dots {
  display: flex;
  gap: var(--space-2);
}

.loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse-dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1;   }
}

.loading-sub {
  font-size: 0.875rem;
  color: var(--text-xlight);
  margin: 0;
}


/* ============================================================
   8. RESULT CARDS — Green / Yellow / Red verification results
   ============================================================ */

.result-card {
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-4);
  display: none;
}

.result-card.active {
  display: block;
}

.result-card--success {
  background: var(--success-light);
  border: 1.5px solid var(--success);
}

.result-card--warning {
  background: var(--warning-light);
  border: 1.5px solid var(--warning);
}

.result-card--danger {
  background: var(--danger-light);
  border: 1.5px solid var(--danger);
}

.result-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.result-card__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.result-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.result-card__body {
  font-size: 0.9rem;
  color: var(--text-light);
}

.result-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.result-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-meta-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-xlight);
}

.result-meta-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}


/* ============================================================
   9. SCHUFA / BONITAET SECTION — Step 4
   ============================================================ */

.dsgvo-notice {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

.dsgvo-notice h4 {
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.dsgvo-notice ul {
  list-style: disc;
  margin-left: var(--space-4);
  margin-top: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.schufa-result {
  display: none;
}

.schufa-result.active {
  display: block;
}

.schufa-score-display {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-4);
}

.schufa-score-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.schufa-score-info {
  flex: 1;
}

.schufa-rating {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.schufa-index {
  font-size: 0.875rem;
  color: var(--text-light);
}

.schufa-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.schufa-detail-item {
  padding: var(--space-3);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
}

.schufa-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-xlight);
  margin-bottom: var(--space-1);
}

.schufa-detail-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.btn-schufa {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem var(--space-5);
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-schufa:hover:not(:disabled) {
  background: var(--primary-light);
}

.btn-schufa:disabled {
  background: var(--border-strong);
  cursor: not-allowed;
  opacity: 0.7;
}


/* ============================================================
   10. SOCIAL PROFILE CARDS — Step 5
   ============================================================ */

.social-search-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-6);
  gap: var(--space-3);
  text-align: center;
  min-height: 320px;
}

.social-search-placeholder.active {
  display: flex;
}

.social-profiles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 560px) {
  .social-profiles-grid {
    grid-template-columns: 1fr;
  }
}

.social-profile-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: border-color var(--transition);
  display: none;
}

.social-profile-card.active {
  display: block;
}

.social-profile-card.confirmed {
  border-color: var(--success);
  background: var(--success-light);
}

.social-profile-card.rejected {
  border-color: var(--border);
  opacity: 0.55;
}

.social-profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.social-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.social-avatar--linkedin { background: #0077b5; }
.social-avatar--xing     { background: #006567; }
.social-avatar--instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.social-avatar--facebook  { background: #1877f2; }

.social-profile-meta {
  flex: 1;
  min-width: 0;
}

.social-platform-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-xlight);
  margin-bottom: 2px;
}

.social-profile-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-profile-headline {
  font-size: 0.8125rem;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-profile-details {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-bottom: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.social-profile-detail {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.social-profile-actions {
  display: flex;
  gap: var(--space-2);
}

.btn-confirm-profile {
  flex: 1;
  padding: 0.5rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid var(--success);
  color: var(--success);
  background: transparent;
}

.btn-confirm-profile:hover {
  background: var(--success);
  color: #fff;
}

.btn-confirm-profile.confirmed-state {
  background: var(--success);
  color: #fff;
}

.btn-reject-profile {
  flex: 1;
  padding: 0.5rem;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  border: 1.5px solid var(--border);
  color: var(--text-light);
  background: transparent;
}

.btn-reject-profile:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ── Rich social card structural components ── */

/* Remove padding from card itself — header + body handle it */
.social-profile-card {
  padding: 0;
  overflow: hidden;
}

/* Coloured header bar */
.social-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #fff;
}

.social-card-header--linkedin  { background: #0077b5; }
.social-card-header--xing      { background: #006567; }
.social-card-header--instagram { background: linear-gradient(90deg, #833ab4 0%, #fd1d1d 55%, #fcb045 100%); }
.social-card-header--facebook  { background: #1877f2; }

.social-card-platform-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 900;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.social-card-platform-badge--xing      { background: rgba(255,255,255,0.2); }
.social-card-platform-badge--instagram { background: rgba(255,255,255,0.2); font-size: 1.1rem; }
.social-card-platform-badge--facebook  { background: rgba(255,255,255,0.2); font-size: 1rem; font-style: italic; }

.social-card-platform-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.95;
}

/* Card body — white, with padding */
.social-card-body {
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Avatar row (avatar + badge/connections label) */
.social-card-avatar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

/* Larger avatar for rich cards */
.social-avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 1.2rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.social-card-connections {
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-xlight);
  background: var(--bg-subtle, #f5f5f5);
  padding: 3px 8px;
  border-radius: 20px;
}

/* Sub-line (since, member since) */
.social-profile-sub {
  font-size: 0.75rem;
  color: var(--text-xlight);
  margin-top: 1px;
}

/* ── LinkedIn: Berufserfahrung block ── */
.social-mock-experience {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.social-mock-experience-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-xlight);
  margin-bottom: 6px;
}

.social-mock-experience-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.social-mock-exp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0077b5;
  flex-shrink: 0;
  margin-top: 3px;
}

.social-mock-exp-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.social-mock-exp-company {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* ── Xing: Skills ── */
.social-mock-skills {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.social-mock-skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.social-mock-skill-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(0,101,103,0.08);
  color: #006567;
  border: 1px solid rgba(0,101,103,0.2);
}

/* ── Instagram: stats row ── */
.social-mock-stats {
  display: flex;
  justify-content: space-around;
  margin: 8px 0;
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.social-mock-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.social-mock-stat-num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.social-mock-stat-label {
  font-size: 0.6875rem;
  color: var(--text-xlight);
}

/* ── Instagram: photo grid ── */
.social-mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 8px 0 6px;
  border-radius: 4px;
  overflow: hidden;
}

.mock-photo {
  aspect-ratio: 1;
  border-radius: 2px;
}

.mock-photo:nth-child(1) { background: linear-gradient(135deg, #667eea, #764ba2); }
.mock-photo:nth-child(2) { background: linear-gradient(135deg, #f093fb, #f5576c); }
.mock-photo:nth-child(3) { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.mock-photo:nth-child(4) { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.mock-photo:nth-child(5) { background: linear-gradient(135deg, #fa709a, #fee140); }
.mock-photo:nth-child(6) { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }

/* ── Facebook: activity + mock post ── */
.social-mock-fb-activity {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.social-mock-fb-stats {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}

.social-mock-post {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--bg-subtle, #f7f7f8);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.social-mock-post-author {
  font-size: 0.75rem;
  font-weight: 700;
  color: #1877f2;
  margin-bottom: 4px;
}

.social-mock-post-text {
  font-size: 0.8125rem;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 8px;
}

.social-mock-post-reactions {
  display: flex;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.social-mock-post-like    { color: #1877f2; font-weight: 600; }
.social-mock-post-comment { color: var(--text-light); }

/* Ensure actions have padding inside card (overrides old rule) */
.social-profile-actions {
  padding: 10px 14px 14px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}


/* ============================================================
   11. CHALLENGE / ANTI-FRAUD SECTION — Step 6
   ============================================================ */

.challenge-section {
  margin-bottom: var(--space-5);
}

.challenge-section:last-child {
  margin-bottom: 0;
}

.challenge-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.challenge-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.challenge-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.challenge-description {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: var(--space-3);
}

.challenge-loading {
  display: none;
}

.challenge-loading.active {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.challenge-loading .loading-spinner {
  width: 24px;
  height: 24px;
  border-width: 3px;
}

.challenge-loading-text {
  font-size: 0.875rem;
  color: var(--text-light);
}

.challenge-result {
  display: none;
}

.challenge-result.active {
  display: block;
}


/* ============================================================
   12. SCORE RESULT PAGE — Step 7
   ============================================================ */

.score-hero {
  text-align: center;
  padding: var(--space-6) 0 var(--space-5);
  margin-bottom: var(--space-6);
}

.score-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 8px solid var(--border);
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: border-color 0.6s ease;
}

.score-circle--excellent { border-color: var(--success); }
.score-circle--good      { border-color: var(--success); }
.score-circle--medium    { border-color: var(--warning); }
.score-circle--weak      { border-color: var(--warning); }
.score-circle--critical  { border-color: var(--danger);  }

.score-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.score-max {
  font-size: 0.875rem;
  color: var(--text-xlight);
  font-weight: 500;
}

.score-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.score-recommendation {
  font-size: 0.9375rem;
  color: var(--text-light);
  margin: 0;
}

/* Category bars */
.score-categories {
  margin-bottom: var(--space-6);
}

.score-categories-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-xlight);
  margin-bottom: var(--space-4);
}

.category-bar-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.category-bar-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  width: 110px;
  flex-shrink: 0;
}

.category-bar-track {
  flex: 1;
  height: 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.category-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--accent);
  width: 0%;
  transition: width 1s ease 0.3s;
}

.category-bar-fill--high    { background: var(--success); }
.category-bar-fill--medium  { background: var(--warning); }
.category-bar-fill--low     { background: var(--danger);  }

.category-bar-value {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}

/* Strengths and improvements */
.score-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (max-width: 560px) {
  .score-insights {
    grid-template-columns: 1fr;
  }
}

.insights-box {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
}

.insights-box--strengths {
  border-color: var(--success);
  background: var(--success-light);
}

.insights-box--improvements {
  border-color: var(--warning);
  background: var(--warning-light);
}

.insights-title {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.insights-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.875rem;
  color: var(--text);
}

.insights-item-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* CTA at bottom of results */
.score-cta {
  text-align: center;
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  margin-top: var(--space-4);
}

.score-cta h3 {
  color: #fff;
  margin-bottom: var(--space-2);
}

.score-cta p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-4);
  max-width: 40ch;
  margin-inline: auto;
}

.btn-cta-result {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.875rem var(--space-6);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-cta-result:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}


/* ============================================================
   13. SHARED HEADER — Matches landing page
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-white);
  border-bottom: none;
  box-shadow: none;
}

.header-inner {
  max-width: none;
  margin-inline: 0;
  padding-inline: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}


header nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link-hide {
  padding: var(--space-2) var(--space-3);
  color: var(--text-light);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.nav-link-hide:hover {
  color: var(--primary);
  background: var(--bg-subtle);
  text-decoration: none;
}

.nav-cta {
  padding: 0.5rem var(--space-4);
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}


/* ============================================================
   14. UTILITY / MISC
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge--success { background: var(--success-light); color: #166534; border: 1px solid var(--success); }
.badge--warning { background: var(--warning-light); color: #92400e; border: 1px solid var(--warning); }
.badge--danger  { background: var(--danger-light);  color: #991b1b; border: 1px solid var(--danger);  }
.badge--neutral { background: var(--bg-subtle);     color: var(--text-light); border: 1px solid var(--border); }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-5) 0;
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger);  }
.text-muted   { color: var(--text-xlight); }

/* ---- Mobile: hide nav links, keep only CTA ---- */
@media (max-width: 640px) {
  .site-header .nav-link-hide {
    display: none;
  }

  .header-inner {
    height: 52px;
    padding-inline: var(--space-3);
  }

  .nav-cta {
    font-size: 0.8125rem;
    padding: 6px 14px;
  }

  /* Date picker: keep consistent sizing, ensure tappable */
  .form-group input[type="date"] {
    min-height: 44px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .funnel-content {
    padding: var(--space-4) var(--space-3) var(--space-8);
  }

  .step-title {
    font-size: 1.125rem;
  }

  .step-card {
    padding: var(--space-4);
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .score-circle {
    width: 130px;
    height: 130px;
  }

  .score-number {
    font-size: 2.75rem;
  }

  .category-bar-label {
    width: 80px;
    font-size: 0.8125rem;
  }

  .step-actions {
    flex-direction: column;
    gap: var(--space-2);
  }

  .step-actions .btn-primary,
  .step-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}
