:root {
  --brand: #ff4d6d;
  --brand-dark: #d6336c;
  --ink: #202228;
  --muted: #6b7280;
  --bg: #f8fafc;
  --card: #ffffff;
  --glow: 0 18px 40px rgba(214, 51, 108, 0.15);
  --premium-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --line: rgba(148, 163, 184, 0.18);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 227, 236, 0.9) 0, transparent 32%),
    radial-gradient(circle at 90% 5%, rgba(255, 216, 226, 0.85) 0, transparent 28%),
    linear-gradient(180deg, #fffafc 0%, #f8fafc 55%, #f4f7fb 100%);
  min-height: 100vh;
}

.premium-nav {
  background: linear-gradient(120deg, #111827, #1f2937);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.premium-nav .navbar-brand,
.premium-nav .nav-link,
.premium-nav .btn-outline-light {
  color: #fff;
}

.premium-nav .nav-link.active,
.premium-nav .nav-link:hover {
  color: #ffd6e1;
}

.hero-card,
.feature-card,
.panel-card,
.chat-panel {
  border: 0;
  border-radius: 22px;
  background: var(--card);
  box-shadow: var(--glow);
}

.hero-card {
  background: linear-gradient(140deg, #ffffff, #fff1f5);
}

.btn-brand {
  background: linear-gradient(130deg, var(--brand), var(--brand-dark));
  color: #fff;
  border: 0;
  box-shadow: 0 14px 30px rgba(214, 51, 108, 0.22);
}

.btn-brand:hover {
  color: #fff;
  opacity: 0.95;
}

.avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
}

.avatar-lg {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 20px;
}

.interest-chip {
  display: inline-block;
  border-radius: 100px;
  padding: 0.3rem 0.7rem;
  background: #ffe8ef;
  color: #9d174d;
  font-size: 0.8rem;
  margin: 0.15rem;
}

.chat-box {
  height: 420px;
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
}

.msg {
  max-width: 75%;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  margin-bottom: 0.6rem;
}

.msg-me {
  margin-left: auto;
  background: #ffd7e2;
}

.msg-them {
  background: #eef2ff;
}

.home-hero {
  padding-top: 0.5rem;
}

.home-hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(249, 250, 251, 0.96));
  box-shadow: var(--premium-shadow);
}

.home-hero-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.55;
  pointer-events: none;
}

.home-hero-orb-one {
  width: 220px;
  height: 220px;
  background: rgba(214, 51, 108, 0.15);
  top: -40px;
  right: 8%;
}

.home-hero-orb-two {
  width: 180px;
  height: 180px;
  background: rgba(14, 165, 233, 0.14);
  bottom: -40px;
  left: -20px;
}

.home-kicker,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9d174d;
}

.home-kicker::before,
.section-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), transparent);
}

.home-subheadline {
  font-size: 1.12rem;
  line-height: 1.75;
  color: #4b5563;
  max-width: 700px;
}

.home-spotlight-card {
  border-radius: 24px;
  background: linear-gradient(160deg, #111827, #1f2937 55%, #334155);
  color: #fff;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.26);
}

.home-signal-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #86efac);
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.12);
}

.home-mini-stat {
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-mini-stat strong {
  display: block;
  font-size: 1rem;
}

.home-mini-stat span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}

.home-insight-panel {
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
}

.section-title {
  font-size: clamp(1.85rem, 2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.home-feature-card,
.home-benefit-card,
.home-step-card,
.home-stat-card,
.home-testimonial-card {
  box-shadow: var(--premium-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-feature-card:hover,
.home-benefit-card:hover,
.home-step-card:hover,
.home-stat-card:hover,
.home-testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 65px rgba(15, 23, 42, 0.16);
}

.home-icon-chip,
.home-step-icon,
.home-stat-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 1.35rem;
  color: #9d174d;
  background: linear-gradient(145deg, #fff1f5, #ffe4ec);
}

.home-step-card {
  position: relative;
  overflow: hidden;
}

.home-step-number {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(15, 23, 42, 0.26);
}

.home-stat-card {
  background: linear-gradient(180deg, #ffffff, #fff8fb);
}

.home-stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.75rem;
  color: #111827;
}

.home-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fee2e2, #fce7f3);
  color: #9d174d;
  font-weight: 700;
}

.home-testimonial-card {
  background: linear-gradient(180deg, #ffffff, #fdf7fa);
}

.home-review-stars {
  color: #d97706;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.home-review-stars .home-review-star-empty {
  color: rgba(15, 23, 42, 0.22);
}

.home-reviews-empty {
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #fdf7fa);
}

.review-rating-input .review-star-btn {
  border-radius: 999px;
}

.review-rating-input .review-star-btn:has(input:checked) {
  background: rgba(251, 191, 36, 0.35);
  border-color: #d97706;
  color: #92400e;
}

.review-thank-you-panel {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 45%, #fff7fb 100%);
  color: #14532d;
}

.review-thank-you-panel .text-secondary {
  color: #3f6212 !important;
}

.personality-quiz-shell {
  background: linear-gradient(180deg, #ffffff, #fff8fc);
  box-shadow: var(--premium-shadow);
}

.personality-quiz-badge {
  border: 1px solid #fbcfe8;
  background: #fff1f7;
  color: #9d174d;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
}

.personality-quiz-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.personality-quiz-type-row span {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.personality-question-card {
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 1rem;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.personality-option {
  margin: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  background: #fcfdff;
  transition: all 0.2s ease;
}

.personality-option:hover {
  border-color: #f9a8d4;
  background: #fff5fb;
}

.personality-option .form-check-input {
  margin-top: 0.25rem;
}

.personality-option .form-check-input:checked {
  background-color: #d6336c;
  border-color: #d6336c;
}

.personality-option:has(.form-check-input:checked) {
  border-color: #f472b6;
  background: #fff1f7;
}

.personality-submit-wrap {
  position: sticky;
  bottom: 0.75rem;
  padding-top: 0.35rem;
}

.home-benefit-card {
  background: linear-gradient(180deg, #ffffff, #fff8fb);
}

.home-cta-section {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 45%, #ec4899 100%);
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.26);
}

.home-cta-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.1), transparent 30%);
  pointer-events: none;
}

.home-cta-eyebrow,
.home-cta-eyebrow::before {
  color: rgba(255, 255, 255, 0.8);
}

.home-cta-eyebrow::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), transparent);
}

.home-cta-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.8;
}

.home-cta-button {
  background: #ffffff;
  color: #111827;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(255, 255, 255, 0.18);
}

.home-cta-button:hover {
  color: #111827;
  background: #f8fafc;
}

@media (max-width: 992px) {
  .home-spotlight-card {
    margin-top: 0.5rem;
  }
}

@media (max-width: 768px) {
  .chat-box {
    height: 320px;
  }

  .home-hero-card,
  .home-cta-section,
  .home-spotlight-card,
  .home-stat-card,
  .home-testimonial-card {
    border-radius: 20px;
  }

  .home-subheadline {
    font-size: 1rem;
  }

  .home-stat-value {
    font-size: 1.7rem;
  }

  .home-cta-copy {
    font-size: 0.98rem;
  }
}

.chat-shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
}

.chat-header {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.chat-sidebar {
  min-height: 100%;
}

.chat-contact-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-contact-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
}

.chat-stream {
  height: 480px;
  overflow-y: auto;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top left, rgba(255, 228, 236, 0.55), transparent 26%),
    radial-gradient(circle at bottom right, rgba(219, 234, 254, 0.6), transparent 30%),
    linear-gradient(180deg, #fffafc 0%, #f8fafc 100%);
}

.chat-message-row {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.chat-message-row.self {
  justify-content: flex-end;
}

.chat-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.chat-message-stack {
  max-width: min(78%, 420px);
}

.chat-message-stack.self {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.chat-bubble {
  background: #ffffff;
  color: #111827;
  border-radius: 22px 22px 22px 8px;
  padding: 0.85rem 1rem;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.chat-bubble.self {
  background: linear-gradient(135deg, #ff4d6d, #d6336c);
  color: #fff;
  border-radius: 22px 22px 8px 22px;
}

.chat-bubble-image {
  width: 100%;
  max-width: 240px;
  border-radius: 16px;
  display: block;
  margin-bottom: 0.5rem;
}

.chat-message-text {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}

.chat-audio-player {
  width: 100%;
  max-width: 260px;
  display: block;
  margin-bottom: 0.5rem;
}

.chat-meta {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.chat-meta.self {
  text-align: right;
}

.chat-status {
  color: #0f766e;
  font-weight: 600;
}

.chat-composer {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.92);
  padding: 1rem 1.1rem 1.1rem;
}

.chat-composer-input-wrap {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 0.2rem 0.3rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.chat-text-input {
  border: 0;
  box-shadow: none !important;
  background: transparent;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
}

@media (max-width: 768px) {
  .chat-stream {
    height: 380px;
    padding: 0.9rem;
  }

  .chat-message-stack {
    max-width: 86%;
  }

  .chat-bubble {
    padding: 0.75rem 0.9rem;
  }

  .chat-header,
  .chat-composer {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
}

.dashboard-shell {
  position: relative;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 26%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #111827 0%, #1d4ed8 52%, #ec4899 100%);
  color: #fff;
  box-shadow: 0 28px 65px rgba(15, 23, 42, 0.22);
}

.dashboard-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.dashboard-title {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

.dashboard-subtitle {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.8;
}

.dashboard-highlight-card {
  border-radius: 24px;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.dashboard-highlight-label {
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.08em;
}

.dashboard-highlight-value {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.dashboard-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.dashboard-progress-bar .progress-bar {
  background: linear-gradient(90deg, #f9fafb, #fbcfe8);
  border-radius: 999px;
}

.dashboard-verified-badge,
.dashboard-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-verified-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.dashboard-mini-badge {
  background: #ecfeff;
  color: #0f766e;
}

.dashboard-stat-card {
  height: 100%;
  border-radius: 22px;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,244,247,0.9));
  box-shadow: var(--premium-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-stat-card:hover,
.dashboard-profile-card:hover,
.dashboard-match-card:hover,
.dashboard-timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 65px rgba(15, 23, 42, 0.16);
}

.dashboard-stat-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff1f5, #ffe4ec);
  color: #be185d;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.dashboard-stat-label {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.dashboard-stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
}

.dashboard-profile-card,
.dashboard-match-card,
.dashboard-timeline-card,
.dashboard-quick-actions,
.dashboard-conversation-item,
.dashboard-empty-state {
  border-radius: 22px;
}

.dashboard-profile-photo,
.dashboard-match-photo {
  object-fit: cover;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.dashboard-profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 26px;
}

.dashboard-match-photo {
  width: 70px;
  height: 70px;
  border-radius: 20px;
}

.dashboard-progress-ring {
  --progress: 0;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: conic-gradient(#ff4d6d calc(var(--progress) * 1%), #e5e7eb 0);
  padding: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.dashboard-progress-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #111827;
}

.dashboard-progress-ring-inner strong {
  font-size: 1.1rem;
  line-height: 1;
}

.dashboard-progress-ring-inner span {
  font-size: 0.72rem;
  color: #6b7280;
}

.dashboard-action-link,
.dashboard-conversation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-decoration: none;
}

.dashboard-action-link {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fff7fa);
  color: #111827;
  border: 1px solid rgba(148, 163, 184, 0.16);
  margin-bottom: 0.75rem;
}

.dashboard-action-link span {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.dashboard-action-link i:last-child {
  color: #9ca3af;
}

.dashboard-timeline {
  position: relative;
}

.dashboard-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 21px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 77, 109, 0.28), rgba(59, 130, 246, 0.12));
}

.dashboard-timeline-item {
  position: relative;
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff1f5, #ffe4ec);
  color: #be185d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 12px 24px rgba(244, 114, 182, 0.16);
  z-index: 1;
}

.dashboard-timeline-card {
  flex: 1;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #fff, #fff8fb);
  box-shadow: var(--premium-shadow);
}

.dashboard-match-card {
  padding: 1.15rem;
  background: linear-gradient(180deg, #ffffff, #fff8fb);
  box-shadow: var(--premium-shadow);
}

.dashboard-match-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 34px;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: linear-gradient(130deg, #ff4d6d, #d6336c);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(214, 51, 108, 0.22);
}

.dashboard-conversation-list {
  display: grid;
  gap: 0.85rem;
}

.dashboard-conversation-item {
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.dashboard-conversation-item:hover,
.dashboard-action-link:hover {
  transform: translateY(-2px);
  color: #111827;
}

.dashboard-presence-dot {
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.dashboard-presence-dot.online {
  background: #22c55e;
}

.dashboard-presence-dot.offline {
  background: #94a3b8;
}

.dashboard-empty-state {
  padding: 1.4rem;
  background: linear-gradient(180deg, #fff, #fff8fb);
  color: #6b7280;
  border: 1px dashed rgba(148, 163, 184, 0.32);
}

@media (max-width: 991px) {
  .dashboard-profile-photo {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 768px) {
  .dashboard-hero,
  .dashboard-stat-card,
  .dashboard-profile-card,
  .dashboard-match-card,
  .dashboard-timeline-card,
  .dashboard-conversation-item,
  .dashboard-empty-state,
  .dashboard-quick-actions {
    border-radius: 18px;
  }

  .dashboard-title {
    font-size: 2rem;
  }

  .dashboard-highlight-value,
  .dashboard-stat-value {
    font-size: 1.7rem;
  }

  .dashboard-profile-photo {
    width: 84px;
    height: 84px;
  }

  .dashboard-progress-ring {
    width: 84px;
    height: 84px;
  }
}
.network-dashboard {
  position: relative;
}

.network-hero,
.network-profile-card,
.network-links-card,
.network-section-card,
.network-match-card,
.network-horizontal-card,
.network-activity-card,
.network-conversation-card,
.network-empty-state,
.network-stat-chip {
  backdrop-filter: blur(14px);
}

.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.78), rgba(255,255,255,0.58));
  border: 1px solid rgba(255,255,255,0.42);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.network-hero {
  border-radius: 28px;
  padding: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.5rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.26), transparent 24%),
    radial-gradient(circle at 100% 100%, rgba(255,255,255,0.18), transparent 20%),
    linear-gradient(135deg, rgba(17,24,39,0.95) 0%, rgba(29,78,216,0.88) 52%, rgba(236,72,153,0.82) 100%);
  color: #fff;
}

.network-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
}

.network-hero h1 {
  font-size: clamp(2rem, 2.8vw, 3rem);
  font-weight: 800;
  margin: 0.85rem 0 0.55rem;
}

.network-hero p {
  margin: 0;
  max-width: 700px;
  line-height: 1.8;
  color: rgba(255,255,255,0.86);
}

.network-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-self: stretch;
}

.network-stat-chip {
  border-radius: 22px;
  padding: 1rem 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
}

.network-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.16);
  font-size: 1.1rem;
}

.network-stat-chip small {
  display: block;
  color: rgba(255,255,255,0.72);
  margin-bottom: 0.1rem;
}

.network-stat-chip strong {
  font-size: 1.4rem;
  line-height: 1;
}

.network-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.92fr) minmax(0, 1.55fr) minmax(260px, 0.95fr);
  gap: 1.5rem;
  align-items: start;
}

.network-left-column,
.network-center-column,
.network-right-column {
  min-width: 0;
}

.network-profile-card,
.network-links-card,
.network-section-card {
  border-radius: 26px;
  padding: 1.35rem;
}

.network-profile-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.network-profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.82);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.network-profile-card h2,
.network-section-title-row h3,
.network-match-card h4,
.network-horizontal-card h4 {
  margin: 0;
}

.network-profile-meta,
.network-section-title-row p,
.network-match-meta,
.network-activity-card small,
.network-online-item span {
  color: #6b7280;
}

.network-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 0.45rem;
}

.network-badge.verified {
  background: #ecfeff;
  color: #0f766e;
}

.network-badge.pending {
  background: #fff7ed;
  color: #b45309;
}

.network-progress-ring {
  --progress: 0;
  width: 114px;
  height: 114px;
  border-radius: 50%;
  background: conic-gradient(#ff4d6d calc(var(--progress) * 1%), rgba(203, 213, 225, 0.45) 0);
  padding: 9px;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
}

.network-progress-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255,255,255,0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.network-progress-ring-inner strong {
  font-size: 1.15rem;
}

.network-progress-ring-inner span {
  font-size: 0.72rem;
  color: #6b7280;
}

.network-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.network-button-stack {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.network-link-item,
.network-conversation-card,
.network-online-item {
  text-decoration: none;
}

.network-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(148,163,184,0.14);
  color: #111827;
  margin-bottom: 0.7rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.network-link-item span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

.network-section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.network-section-title-row p {
  margin: 0.3rem 0 0;
  font-size: 0.92rem;
}

.network-section-title-row a {
  color: #be185d;
  text-decoration: none;
  font-weight: 600;
}

.network-match-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.network-match-card,
.network-horizontal-card,
.network-activity-card,
.network-conversation-card,
.network-empty-state {
  background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,250,252,0.74));
  border: 1px solid rgba(255,255,255,0.48);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.network-match-card {
  border-radius: 22px;
  padding: 1rem;
}

.network-match-head {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 0.85rem;
}

.network-match-photo,
.network-horizontal-photo,
.network-online-photo {
  object-fit: cover;
}

.network-match-photo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
}

.network-score-pill,
.network-inline-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.network-score-pill {
  min-width: 56px;
  height: 34px;
  padding: 0 0.8rem;
  background: linear-gradient(130deg, #ff4d6d, #d6336c);
  color: #fff;
}

.network-inline-score {
  padding: 0.3rem 0.7rem;
  background: #eef2ff;
  color: #4338ca;
  font-size: 0.8rem;
}

.network-recommended-list,
.network-activity-list,
.network-conversation-rail {
  display: grid;
  gap: 0.9rem;
}

.network-horizontal-card,
.network-conversation-card {
  border-radius: 20px;
  padding: 0.95rem 1rem;
}

.network-horizontal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.network-horizontal-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 1;
}

.network-horizontal-photo {
  width: 70px;
  height: 70px;
  border-radius: 20px;
}

.network-activity-card {
  border-radius: 18px;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.network-activity-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fff1f5, #ffe4ec);
  color: #be185d;
}

.network-online-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.network-online-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 0.6rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
  color: #111827;
  border: 1px solid rgba(148,163,184,0.14);
}

.network-online-photo {
  width: 58px;
  height: 58px;
  border-radius: 50%;
}

.network-online-item span {
  font-size: 0.82rem;
  text-align: center;
}

.network-conversation-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #111827;
}

.network-presence-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.network-presence-dot.online {
  background: #22c55e;
}

.network-presence-dot.offline {
  background: #94a3b8;
}

.network-empty-state {
  border-radius: 18px;
  padding: 1rem 1.1rem;
  color: #6b7280;
  border: 1px dashed rgba(148,163,184,0.28);
}

.network-link-item:hover,
.network-match-card:hover,
.network-horizontal-card:hover,
.network-activity-card:hover,
.network-conversation-card:hover,
.network-online-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
  color: #111827;
}

@media (max-width: 1199px) {
  .network-grid {
    grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.25fr);
  }

  .network-right-column {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .network-right-column > .mt-4 {
    margin-top: 0 !important;
  }
}

@media (max-width: 991px) {
  .network-hero {
    grid-template-columns: 1fr;
  }

  .network-grid,
  .network-right-column {
    grid-template-columns: 1fr;
  }

  .network-match-grid {
    grid-template-columns: 1fr;
  }

  .network-horizontal-card {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 767px) {
  .network-hero,
  .network-profile-card,
  .network-links-card,
  .network-section-card {
    border-radius: 22px;
    padding: 1.1rem;
  }

  .network-stats-grid,
  .network-online-grid {
    grid-template-columns: 1fr 1fr;
  }

  .network-profile-top,
  .network-horizontal-main {
    align-items: flex-start;
  }

  .network-profile-photo {
    width: 82px;
    height: 82px;
  }

  .network-progress-ring {
    width: 96px;
    height: 96px;
  }
}

.network-welcome-banner {
  border-radius: 28px;
  padding: 1.8rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.28), transparent 24%),
    linear-gradient(135deg, rgba(17,24,39,0.95) 0%, rgba(29,78,216,0.86) 58%, rgba(236,72,153,0.82) 100%);
  color: #fff;
}

.network-welcome-banner h1 {
  font-size: clamp(2rem, 2.6vw, 2.85rem);
  font-weight: 800;
  margin: 0.85rem 0 0.45rem;
}

.network-welcome-banner p {
  margin: 0;
  color: rgba(255,255,255,0.84);
  line-height: 1.8;
}

.network-banner-progress {
  border-radius: 22px;
  padding: 1.2rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.2);
}

.network-banner-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.network-banner-progress-head span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.76);
}

.network-banner-progress-head strong {
  font-size: 1.45rem;
}

.network-banner-progress-bar {
  height: 10px;
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
}

.network-banner-progress-bar .progress-bar {
  background: linear-gradient(90deg, #ffffff, #fbcfe8);
  border-radius: 999px;
}

.network-banner-progress small {
  display: block;
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.75);
}

.network-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.network-stat-card {
  border-radius: 22px;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,250,252,0.9));
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.08);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.network-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
}

.network-stat-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.9rem;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fff1f5, #ffe4ec);
  color: #be185d;
  font-size: 1.15rem;
}

.network-stat-card strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
  color: #111827;
}

.network-stat-card small {
  display: block;
  margin-top: 0.45rem;
  color: #6b7280;
}

.structured-network-grid {
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.5fr) minmax(280px, 0.95fr);
}

.structured-match-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1199px) {
  .network-welcome-banner {
    grid-template-columns: 1fr;
  }

  .network-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .structured-network-grid {
    grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1.2fr);
  }

  .structured-network-grid .network-right-column {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .structured-network-grid .network-right-column > .mt-4 {
    margin-top: 0 !important;
  }
}

@media (max-width: 991px) {
  .structured-network-grid,
  .structured-network-grid .network-right-column,
  .network-stats-row,
  .structured-match-grid {
    grid-template-columns: 1fr;
  }
}

.chat-empty-state {
  min-height: 560px;
  background:
    radial-gradient(circle at top left, rgba(255, 228, 236, 0.42), transparent 24%),
    radial-gradient(circle at bottom right, rgba(219, 234, 254, 0.5), transparent 28%),
    linear-gradient(180deg, #fffafc 0%, #f8fafc 100%);
}

.chat-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fff1f5, #ffe4ec);
  color: #be185d;
  font-size: 1.8rem;
  box-shadow: 0 18px 36px rgba(244, 114, 182, 0.16);
}

@media (max-width: 768px) {
  .chat-empty-state {
    min-height: 360px;
    padding: 2rem 1rem !important;
  }
}

/* User presence (online / last seen) */
.presence-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
}

.presence-dot--online {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.22);
}

.presence-dot--offline {
  background: #94a3b8;
}

.chat-contact-card.active .chat-contact-presence--active .text-success,
.chat-contact-card.active .chat-contact-presence--active .text-secondary {
  color: rgba(255, 255, 255, 0.75) !important;
}

.chat-contact-card.active .chat-contact-presence--active .presence-dot--online {
  background: #86efac;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.chat-contact-card.active .chat-contact-presence--active .presence-dot--offline {
  background: rgba(255, 255, 255, 0.45);
}

/* Profile boost (discovery priority) */
.profile-card-boosted {
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.55), 0 8px 28px rgba(190, 24, 93, 0.12);
  border-color: rgba(212, 175, 55, 0.45) !important;
}

.profile-boost-badge,
.profile-boost-badge-inline {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.7rem;
  vertical-align: middle;
}

.profile-boost-badge-inline {
  display: inline-block;
  padding: 0.2em 0.5em;
  border-radius: 999px;
}