/* ================================================================
   Landing Page Styles - NudgeFlow Theme
   ================================================================ */

/* Landing page main layout */
.nf-landing-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ================================================================
   Hero Section
   ================================================================ */
.nf-landing-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}

.nf-landing-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--nf-primary);
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--nf-primary), var(--nf-accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nf-landing-subtitle {
  font-size: 1.1rem;
  color: var(--nf-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ================================================================
   Progress Steps Indicator
   ================================================================ */
.nf-landing-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--nf-surface);
  border-radius: 16px;
  border: 1px solid var(--nf-border);
  box-shadow: 0 4px 12px rgba(42, 14, 92, 0.04);
}

.nf-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.nf-progress-step-active {
  opacity: 1;
}

.nf-progress-step-number {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--nf-bg);
  border: 2px solid var(--nf-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--nf-text-muted);
  transition: all 0.3s ease;
}

.nf-progress-step-active .nf-progress-step-number {
  background: linear-gradient(135deg, var(--nf-accent-pink), var(--nf-accent-orange));
  border-color: transparent;
  color: #ffffff;
  transform: scale(1.1);
}

.nf-progress-step-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--nf-text-muted);
}

.nf-progress-step-active .nf-progress-step-label {
  color: var(--nf-primary);
  font-weight: 600;
}

.nf-progress-step-divider {
  width: 60px;
  height: 2px;
  background: var(--nf-border);
  margin: 0 1rem;
  margin-bottom: 1.5rem;
}

/* ================================================================
   Section Layout
   ================================================================ */
.nf-landing-section {
  margin-bottom: 0.75rem;
}

.nf-section-header {
  text-align: center;
  margin-bottom: 1rem;
}

.nf-section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--nf-primary);
  margin-bottom: 0.5rem;
}

.nf-section-subtitle {
  font-size: 1rem;
  color: var(--nf-text-muted);
}

/* Section visibility */
.nf-section-hidden {
  display: none;
}

.nf-section-visible {
  display: block;
  animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================
   Card Grid
   ================================================================ */
.nf-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 0;
}

/* ================================================================
   Scenario Cards - Hero Image Style with Text Overlay
   ================================================================ */
.nf-scenario-card {
  position: relative;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(42, 14, 92, 0.06);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 2px solid transparent;
}

.nf-scenario-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(42, 14, 92, 0.18);
}

.nf-scenario-card:hover .nf-scenario-card-bg-img {
  transform: scale(1.05);
}

.nf-scenario-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 15, 111, 0.3);
  border-color: var(--nf-accent-pink);
}

/* Selected state */
.nf-scenario-card.selected {
  border-color: var(--nf-accent-pink);
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(255, 15, 111, 0.15), 0 12px 28px rgba(42, 14, 92, 0.12);
}

.nf-scenario-card.selected .nf-scenario-card-checkmark {
  opacity: 1;
  transform: scale(1);
}

/* Background image layer */
.nf-scenario-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.nf-scenario-card-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Fallback gradient when no image */
.nf-scenario-card-bg-fallback {
  background: linear-gradient(135deg, var(--nf-primary) 0%, var(--nf-primary-light) 50%, var(--nf-accent-pink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nf-scenario-bg-emoji {
  font-size: 4rem;
  opacity: 0.25;
  filter: grayscale(100%) brightness(10);
}

/* Dark overlay for text readability */
.nf-scenario-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}

/* Card Content - positioned over image */
.nf-scenario-card-content {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
}

.nf-scenario-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nf-scenario-card-description {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin: 0 0 0.6rem 0;
}

/* Card Footer */
.nf-scenario-card-footer {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nf-scenario-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nf-badge-difficulty {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

.nf-badge-duration {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

/* Demo badge - green pill, positioned top-left */
.nf-demo-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: rgba(16, 185, 129, 0.9);
  color: #ffffff;
  backdrop-filter: blur(4px);
}

/* Locked/subscription-required scenario cards */
.nf-scenario-card-locked {
  cursor: default;
  opacity: 0.55;
  filter: grayscale(40%);
  pointer-events: none;
}

.nf-scenario-card-locked:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(42, 14, 92, 0.06);
}

.nf-scenario-card-locked:hover .nf-scenario-card-bg-img {
  transform: none;
}

/* Subscription overlay - lock icon badge */
.nf-subscription-overlay {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
}

/* Checkmark (hidden by default) */
.nf-scenario-card-checkmark {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nf-accent-pink), var(--nf-accent-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
  z-index: 3;
}

.nf-scenario-card-checkmark svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

/* ================================================================
   Client Cards - Enhanced with Large Avatar & More Button
   ================================================================ */
.nf-client-card {
  position: relative;
  background: var(--nf-surface);
  border: 2px solid var(--nf-border);
  border-radius: 16px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(42, 14, 92, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nf-client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(42, 14, 92, 0.12);
  border-color: var(--nf-primary-light);
}

.nf-client-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 15, 111, 0.2);
  border-color: var(--nf-accent-pink);
}

/* Selected state */
.nf-client-card.selected {
  border-color: var(--nf-accent-pink);
  border-width: 3px;
  padding: calc(1.5rem - 1px);
  background: linear-gradient(135deg, rgba(255, 15, 111, 0.05), rgba(255, 122, 48, 0.02));
}

.nf-client-card.selected .nf-client-card-checkmark {
  opacity: 1;
  transform: scale(1);
}

/* Large centered avatar */
.nf-client-avatar-lg {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nf-accent-pink), var(--nf-accent-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(255, 15, 111, 0.2);
}

.nf-client-initials-lg {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
}

/* Client Thumbnail Styles */
.nf-client-thumbnail-container {
  background: var(--nf-bg);
  border: 3px solid var(--nf-border);
}

.nf-client-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.nf-client-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--nf-primary);
  margin: 0 0 0.15rem 0;
}

.nf-client-role {
  font-size: 0.85rem;
  color: var(--nf-text-muted);
  margin: 0 0 0.25rem 0;
}

.nf-client-meta {
  font-size: 0.8rem;
  color: var(--nf-primary-light);
  font-weight: 500;
  margin: 0 0 0.5rem 0;
}

/* Client Body */
.nf-client-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.nf-client-traits {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nf-trait-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(255, 15, 111, 0.1);
  color: var(--nf-accent-pink);
}

.nf-client-description {
  font-size: 0.85rem;
  color: var(--nf-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* More button */
.nf-client-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--nf-border);
  border-radius: 999px;
  background: var(--nf-bg);
  color: var(--nf-primary-light);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.35rem;
}

.nf-client-more-btn:hover {
  background: var(--nf-primary);
  color: #ffffff;
  border-color: var(--nf-primary);
}

.nf-client-more-btn svg {
  transition: transform 0.2s ease;
}

.nf-client-more-btn:hover svg {
  transform: translateY(1px);
}

/* Checkmark */
.nf-client-card-checkmark {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nf-accent-pink), var(--nf-accent-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
}

.nf-client-card-checkmark svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

/* ================================================================
   Client Detail Modal - Apple-Inspired Design
   ================================================================ */
.nf-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nf-modal-backdrop.nf-modal-active {
  opacity: 1;
}

.nf-modal {
  background: var(--nf-surface);
  border-radius: 24px;
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  position: relative;
  box-shadow: 0 24px 80px rgba(42, 14, 92, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nf-modal-backdrop.nf-modal-active .nf-modal {
  transform: scale(1) translateY(0);
}

/* Scrollbar styling */
.nf-modal::-webkit-scrollbar {
  width: 6px;
}
.nf-modal::-webkit-scrollbar-track {
  background: transparent;
}
.nf-modal::-webkit-scrollbar-thumb {
  background: rgba(42, 14, 92, 0.15);
  border-radius: 3px;
}

/* Close button */
.nf-modal-close {
  position: sticky;
  top: 1rem;
  float: right;
  margin: 1rem 1rem 0 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--nf-text-muted);
  z-index: 10;
}

.nf-modal-close:hover {
  background: var(--nf-accent-pink);
  color: #ffffff;
  transform: scale(1.1);
}

/* ---- Hero Section (centered) ---- */
.nfm-hero {
  text-align: center;
  padding: 2.5rem 2rem 1.75rem;
  background: linear-gradient(180deg, rgba(42, 14, 92, 0.03) 0%, transparent 100%);
}

.nfm-hero-avatar {
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--nf-accent-pink), var(--nf-accent-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(255, 15, 111, 0.25);
}

.nfm-hero-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nf-primary);
  margin: 0 0 0.2rem 0;
  letter-spacing: -0.01em;
}

.nfm-hero-role {
  font-size: 0.95rem;
  color: var(--nf-text-muted);
  margin: 0 0 0.75rem 0;
}

.nfm-hero-desc {
  font-size: 0.9rem;
  color: var(--nf-text-muted);
  line-height: 1.65;
  margin: 0 auto;
  max-width: 520px;
  font-style: italic;
}

/* ---- Quick Stats Tiles ---- */
.nfm-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1px;
  background: var(--nf-border);
  border-top: 1px solid var(--nf-border);
  border-bottom: 1px solid var(--nf-border);
}

.nfm-stat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 1rem 0.5rem;
  background: var(--nf-surface);
  text-align: center;
}

.nfm-stat-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.nfm-stat-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nf-text);
  line-height: 1.3;
}

.nfm-stat-label {
  font-size: 0.68rem;
  color: var(--nf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* ---- Body container ---- */
.nfm-body {
  padding: 1.75rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ---- Section headings ---- */
.nfm-section-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nf-text-muted);
  margin: 0 0 0.85rem 0;
}

/* ---- Trait Pills ---- */
.nfm-trait-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nfm-trait-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 15, 111, 0.08), rgba(255, 122, 48, 0.06));
  color: var(--nf-accent-pink-mid);
  border: 1px solid rgba(255, 15, 111, 0.12);
  transition: transform 0.15s ease;
}

.nfm-trait-pill:hover {
  transform: translateY(-1px);
}

/* ---- Scale Bars (personality spectrum) ---- */
.nfm-scales-container {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.nfm-scale {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nfm-scale-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nf-text);
}

.nfm-scale-track {
  position: relative;
  height: 8px;
  background: var(--nf-bg);
  border-radius: 999px;
  overflow: visible;
}

.nfm-scale-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nf-accent-pink), var(--nf-accent-orange));
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nfm-scale-dot {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  border: 3px solid var(--nf-accent-pink);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(255, 15, 111, 0.25);
  z-index: 1;
  cursor: default;
}

.nfm-scale-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--nf-primary);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.nfm-scale-dot:hover .nfm-scale-tooltip {
  opacity: 1;
}

.nfm-scale-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--nf-text-muted);
  letter-spacing: 0.02em;
}

/* ---- Reaction Cards ---- */
.nfm-reactions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.65rem;
}

.nfm-reaction-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--nf-bg);
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nfm-reaction-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(42, 14, 92, 0.06);
}

.nfm-reaction-emoji {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.nfm-reaction-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.nfm-reaction-trigger {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nf-primary-light);
}

.nfm-reaction-text {
  font-size: 0.85rem;
  color: var(--nf-text);
  line-height: 1.5;
}

/* ---- Communication Chips ---- */
.nfm-chip-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nfm-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  background: var(--nf-bg);
  border-radius: 14px;
  border: 1px solid var(--nf-border);
  transition: border-color 0.15s ease;
}

.nfm-chip:hover {
  border-color: var(--nf-primary-light);
}

.nfm-chip-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.nfm-chip-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nf-text-muted);
}

.nfm-chip-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nf-text);
}

/* ---- Goal / Motivation Cards ---- */
.nfm-goals-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nfm-goal-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid transparent;
}

.nfm-goal-card > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.nfm-goal-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.nfm-goal-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nf-text-muted);
}

.nfm-goal-text {
  font-size: 0.88rem;
  color: var(--nf-text);
  line-height: 1.5;
}

.nfm-goal-primary {
  background: rgba(90, 62, 156, 0.06);
  border-color: rgba(90, 62, 156, 0.12);
}

.nfm-goal-secondary {
  background: rgba(255, 122, 48, 0.06);
  border-color: rgba(255, 122, 48, 0.12);
}

.nfm-goal-fear {
  background: rgba(220, 53, 69, 0.05);
  border-color: rgba(220, 53, 69, 0.12);
}

/* ---- Domain Context ---- */
.nfm-ctx-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--nf-bg);
  border-radius: 16px;
  padding: 1.25rem;
}

.nfm-ctx-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.nfm-ctx-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nf-primary-light);
  margin: 0;
}

.nfm-ctx-text {
  font-size: 0.88rem;
  color: var(--nf-text);
  line-height: 1.6;
  margin: 0;
}

.nfm-ctx-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.nfm-ctx-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}

.nfm-ctx-tag-goal {
  background: rgba(90, 62, 156, 0.1);
  color: var(--nf-primary-light);
}

.nfm-ctx-tag-concern {
  background: rgba(255, 122, 48, 0.1);
  color: var(--nf-accent-orange);
}

.nfm-ctx-tag-hidden {
  background: rgba(220, 53, 69, 0.08);
  color: #c0392b;
}

/* ---- Modal Responsive ---- */
@media (max-width: 640px) {
  .nf-modal {
    border-radius: 20px;
    max-height: 92vh;
  }

  .nfm-hero {
    padding: 2rem 1.25rem 1.25rem;
  }

  .nfm-hero-avatar {
    width: 80px;
    height: 80px;
  }

  .nfm-hero-name {
    font-size: 1.25rem;
  }

  .nfm-body {
    padding: 1.25rem 1.25rem 2rem;
    gap: 1.5rem;
  }

  .nfm-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nfm-reactions-grid {
    grid-template-columns: 1fr;
  }

  .nfm-chip-row {
    gap: 0.4rem;
  }

  .nfm-chip {
    padding: 0.4rem 0.7rem;
  }
}

/* ================================================================
   Call to Action
   ================================================================ */
.nf-landing-cta {
  text-align: center;
  padding: 1.75rem 1.5rem;
  margin-top: 0.75rem;
}

.nf-button-group {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 640px) {
  .nf-button-group {
    flex-direction: column;
    width: 100%;
  }

  .nf-button-group .btn {
    width: 100%;
  }
}

.nf-btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.nf-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nf-btn-cta:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 15, 111, 0.3);
}

.nf-btn-cta:not(:disabled):active {
  transform: translateY(0);
}

.nf-btn-cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(50%);
}

.nf-btn-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.nf-btn-cta:not(:disabled):hover .nf-btn-icon {
  transform: translateX(4px);
}

/* Loading state */
.nf-btn-cta.loading .nf-btn-text {
  opacity: 0;
}

.nf-btn-cta.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* CTA Hint */
.nf-cta-hint {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--nf-text-muted);
}

/* ================================================================
   Empty States
   ================================================================ */
.nf-empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.nf-empty-icon {
  font-size: 4rem;
  opacity: 0.3;
  margin-bottom: 1rem;
}

.nf-empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--nf-text);
  margin-bottom: 0.5rem;
}

.nf-empty-message {
  font-size: 1rem;
  color: var(--nf-text-muted);
}

/* Loading States */
.nf-loading-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--nf-text-muted);
}

.nf-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--nf-border);
  border-top-color: var(--nf-accent-pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

/* ================================================================
   Accessibility
   ================================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ================================================================
   Conversation Page Specific Styles
   ================================================================ */
.nf-session-info-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nf-text);
  padding: 0.5rem 0.75rem;
  background: var(--nf-bg);
  border-radius: 8px;
  border: 1px solid var(--nf-border);
}

/* ================================================================
   Responsive Design
   ================================================================ */
@media (max-width: 768px) {
  .nf-landing-main {
    padding: 1rem;
  }

  .nf-landing-title {
    font-size: 1.75rem;
  }

  .nf-landing-subtitle {
    font-size: 1rem;
  }

  .nf-landing-progress {
    flex-direction: column;
    gap: 1rem;
  }

  .nf-progress-step-divider {
    width: 2px;
    height: 40px;
    margin: 0;
  }

  .nf-card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .nf-scenario-card {
    min-height: 180px;
  }

  .nf-client-card {
    padding: 1.25rem;
  }

  .nf-client-card.selected {
    padding: calc(1.25rem - 1px);
  }

  .nf-client-avatar-lg {
    width: 80px;
    height: 80px;
  }

  .nf-client-initials-lg {
    font-size: 1.6rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .nf-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .nf-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ================================================================
   Toast Notifications
   ================================================================ */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: block !important;
    min-width: 300px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #4A154B;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast.success {
    border-left-color: #10B981;
}

.toast.error {
    border-left-color: #EF4444;
}

.toast.warning {
    border-left-color: #F59E0B;
}

.toast.info {
    border-left-color: #3B82F6;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #1F2937;
}

.toast-message {
    font-size: 13px;
    color: #6B7280;
}
