/* ===== HOME ===== */
.hero {
  padding: var(--s-3xl) 0;
  background: var(--g-hero);
  margin-bottom: var(--s-2xl);
}
.hero-landing {
  padding: 5rem 0 4rem;
}
.hero-compact {
  padding: 2rem 0 1.5rem;
}
.hero-compact .hero-title { font-size: 2rem; margin-bottom: var(--s-xs); }
.hero-compact .hero-tagline { font-size: var(--f-size-base); max-width: 600px; }
.hero-compact .hero-tagline-sub { font-size: var(--f-size-sm); max-width: 600px; }
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: var(--s-md);
  letter-spacing: -0.04em;
}
@media (max-width: 768px) { .hero-title { font-size: 2rem; } }
.hero-subtitle {
  font-size: var(--f-size-lg);
  max-width: 600px;
  margin: 0 auto;
}
.hero-tagline {
  font-size: var(--f-size-xl);
  font-weight: var(--f-weight-semi);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.5;
}
.hero-tagline-sub {
  font-size: var(--f-size-lg);
  max-width: 500px;
  margin: var(--s-sm) auto 0;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .hero-landing { padding: 3rem 0 2.5rem; }
  .hero-tagline { font-size: var(--f-size-lg); }
}
.home-section {
  margin-bottom: var(--s-3xl);
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-lg);
}
.section-title {
  font-size: var(--f-size-xl);
  background: var(--g-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.card-img-placeholder {
  background: linear-gradient(135deg, var(--c-bg-darker), var(--c-bg-dark));
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Welcome / Onboarding */
.welcome-card {
  position: relative;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--s-lg) var(--s-xl);
}
.welcome-dismiss {
  position: absolute;
  top: var(--s-sm);
  right: var(--s-md);
  color: var(--c-text-muted);
  font-size: var(--f-size-xl);
  line-height: 1;
  cursor: pointer;
  padding: var(--s-xs);
  transition: color var(--t-fast);
}
.welcome-dismiss:hover { color: var(--c-text); }
.welcome-title {
  font-size: var(--f-size-lg);
  font-weight: var(--f-weight-bold);
  margin-bottom: var(--s-md);
}
.welcome-profile {
  margin-bottom: var(--s-md);
}
.welcome-progress-track {
  height: 4px;
  background: var(--c-glass);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--s-xs);
}
.welcome-progress-fill {
  height: 100%;
  background: var(--g-primary);
  transition: width var(--t-slow);
}
.welcome-progress-label {
  font-size: var(--f-size-xs);
  color: var(--c-text-muted);
}
.welcome-progress-label a { color: var(--c-primary-light); }
.welcome-body {
  font-size: var(--f-size-sm);
  line-height: 1.6;
  color: var(--c-text-muted);
}
.welcome-body p { margin-bottom: var(--s-sm); }
.welcome-features {
  display: flex;
  flex-direction: column;
  gap: var(--s-xs);
  padding-left: 0;
}
.welcome-features li {
  list-style: none;
  padding-left: var(--s-md);
  position: relative;
}
.welcome-features li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--c-primary);
  font-weight: bold;
}
.welcome-features a {
  color: var(--c-primary-light);
  font-weight: var(--f-weight-semi);
}
@media (max-width: 768px) {
  .welcome-card { padding: var(--s-md); }
}

/* Activity Feed */
.activity-feed {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.af-item {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: 0.5rem var(--s-md);
  color: var(--c-text);
  text-decoration: none;
  transition: background var(--t-fast);
}
.af-item:hover { background: var(--c-glass); }
.af-item + .af-item { border-top: 1px solid rgba(255,255,255,0.04); }
[data-theme="light"] .af-item + .af-item { border-top-color: rgba(0,0,0,0.05); }

/* Colored dot with icon */
.af-dot {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.af-dot--primary { background: rgba(255,0,110,0.15); color: var(--c-primary-light); }
.af-dot--success { background: rgba(6,214,160,0.15); color: var(--c-success); }
.af-dot--accent  { background: rgba(255,209,102,0.15); color: var(--c-accent); }
.af-dot--info    { background: rgba(100,140,255,0.15); color: #8cacff; }

/* Text: single line, truncated */
.af-text {
  flex: 1;
  min-width: 0;
  font-size: var(--f-size-xs);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right-side meta */
.af-meta {
  display: flex;
  align-items: center;
  gap: var(--s-xs);
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--c-text-muted);
}
.af-reactions {
  background: rgba(255,0,110,0.12);
  color: var(--c-primary-light);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-weight: var(--f-weight-semi);
}
.af-reactions::before { content: '\2764\FE0F '; font-size: 0.6rem; }
.af-time { white-space: nowrap; }

/* ===== ARTICLE ===== */
.article-detail {
  max-width: 720px;
  margin: 0 auto;
}
.article-hero-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--s-lg);
}
.article-content {
  line-height: 1.8;
  font-size: var(--f-size-lg);
  color: var(--c-text);
}
.article-content h2 {
  font-size: var(--f-size-xl);
  margin: var(--s-xl) 0 var(--s-md);
  color: var(--c-primary-light);
}
.article-content h3 {
  font-size: var(--f-size-lg);
  margin: var(--s-lg) 0 var(--s-sm);
}
.article-content p { margin-bottom: var(--s-md); }
.article-content a { color: var(--c-primary-light); text-decoration: underline; }
.article-content img { border-radius: var(--radius-md); margin: var(--s-md) 0; }
.article-content ul, .article-content ol { margin: var(--s-md) 0; padding-left: var(--s-xl); }
.article-content li { margin-bottom: var(--s-xs); }
.eml { cursor: pointer; color: var(--c-primary-light); text-decoration: underline; }
.eml-at { font-size: 0.8em; opacity: 0.7; }

/* ===== POLL ===== */
.poll-choices {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
  max-width: 700px;
}
.poll-choice {
  position: relative;
  padding: var(--s-md) var(--s-lg);
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.poll-choice-selectable:hover {
  border-color: var(--c-primary);
  background: rgba(255, 0, 110, 0.05);
}
.poll-choice-mine {
  border-color: var(--c-primary);
  background: rgba(255, 0, 110, 0.04);
}
.poll-choice-result:hover { border-color: var(--c-primary-light, #ff4d94); }
.poll-choice-bar {
  position: absolute;
  inset: 0;
  right: auto;
  background: rgba(255, 0, 110, 0.12);
  transition: width var(--t-slow);
  pointer-events: none;
}
.poll-choice-mine .poll-choice-bar {
  background: rgba(255, 0, 110, 0.22);
}
.poll-choice-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}
.poll-choice-stat {
  display: flex;
  align-items: center;
  gap: var(--s-xs);
  white-space: nowrap;
}
.poll-check {
  color: var(--c-primary);
  font-weight: 700;
  margin-right: var(--s-xs);
}

/* ===== QUIZ ===== */
.quiz-answer {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: var(--s-md);
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--t-fast);
}
.quiz-answer:hover { border-color: var(--c-primary); }
.quiz-answer.selected { border-color: var(--c-primary); background: rgba(255,0,110,0.1); }
.quiz-answer-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.quiz-answer.selected .quiz-answer-radio {
  border-color: var(--c-primary);
  background: var(--c-primary);
  box-shadow: inset 0 0 0 3px var(--c-bg-darker);
}

/* Quiz Result */
.quiz-result-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.quiz-result-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: var(--s-3xl) var(--s-xl);
  position: relative;
  overflow: hidden;
}
.quiz-result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--g-primary);
}
.quiz-result-label {
  font-size: var(--f-size-sm);
  font-weight: var(--f-weight-semi);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--s-sm);
}
.quiz-result-name {
  font-size: var(--f-size-3xl);
  font-weight: var(--f-weight-bold);
  background: var(--g-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--s-lg);
}
.quiz-result-divider {
  width: 60px;
  height: 3px;
  background: var(--g-primary);
  border-radius: 2px;
  margin: 0 auto var(--s-lg);
}
.quiz-result-desc {
  font-size: var(--f-size-lg);
  line-height: 1.7;
  color: var(--c-text);
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s-sm);
}
.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-base);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-del {
  position: absolute;
  top: var(--s-xs);
  right: var(--s-xs);
  background: rgba(0,0,0,0.7);
  border-radius: var(--radius-full);
  padding: var(--s-xs);
  color: var(--c-danger);
  display: none;
  cursor: pointer;
}
.gallery-item:hover .gallery-item-del { display: flex; }

/* ===== MAP ===== */
.map-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--s-lg);
  height: 600px;
}
.member-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
}
.member-list {
  overflow-y: auto;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--s-md);
}
.member-card {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: var(--s-sm);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--t-fast);
}
.member-card:hover { background: var(--c-glass); }
@media (max-width: 768px) {
  .map-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .member-map { height: 350px; }
  .member-list { max-height: 300px; }
}

/* Map markers */
.map-marker-pin {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-marker-pin span {
  display: block;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  background: var(--c-primary);
  box-shadow: 0 0 4px var(--c-primary);
}
.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-success);
  box-shadow: 0 0 4px var(--c-success);
  flex-shrink: 0;
  margin-left: auto;
}

/* ===== MESSAGES ===== */
/* Conversation list */
.conversation-list {
  max-width: 700px;
  margin: 0 auto;
}
.conversation-item {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  padding: var(--s-md);
  border-bottom: 1px solid var(--c-border);
  cursor: pointer;
  transition: background var(--t-fast);
}
.conversation-item:hover { background: var(--c-glass); }
.conversation-info { flex: 1; min-width: 0; }
.conversation-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.online-dot-sm {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-success);
  border: 2px solid var(--c-bg-dark);
  box-shadow: 0 0 4px var(--c-success);
}
[data-theme="light"] .online-dot-sm { border-color: var(--c-bg-darker); }
.conversation-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-date { flex-shrink: 0; }

/* Thread */
.thread-layout {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--nav-height) - var(--s-xl) * 2);
}
@media (max-width: 768px) {
  .thread-layout {
    height: calc(100vh - var(--nav-height) - var(--bottombar-height) - var(--s-xl) * 2);
  }
}
.thread-header {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  padding-bottom: var(--s-md);
  border-bottom: 1px solid var(--c-border);
  flex-shrink: 0;
}
.thread-back {
  color: var(--c-text-muted);
  display: flex;
  padding: var(--s-xs);
}
.thread-back:hover { color: var(--c-text); }
.thread-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--s-md) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}
.bubble-row {
  display: flex;
}
.bubble-row.mine {
  justify-content: flex-end;
}
.bubble {
  max-width: 75%;
  padding: var(--s-sm) var(--s-md);
  border-radius: var(--radius-lg);
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  line-height: 1.5;
}
.bubble-row.mine .bubble {
  background: rgba(255, 0, 110, 0.12);
  border-color: rgba(255, 0, 110, 0.25);
}
.bubble p { font-size: var(--f-size-sm); white-space: pre-wrap; word-break: break-word; }
.bubble-time {
  display: block;
  font-size: var(--f-size-xs);
  color: var(--c-text-muted);
  margin-top: var(--s-xs);
  text-align: right;
}
.thread-input {
  display: flex;
  gap: var(--s-sm);
  padding-top: var(--s-md);
  border-top: 1px solid var(--c-border);
  flex-shrink: 0;
}
.thread-input .form-input { flex: 1; }

/* ===== CONFESSIONS ===== */
.confession-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-md);
}
.confession-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--s-lg);
  backdrop-filter: blur(8px);
}
.confession-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-md);
}
.confession-card-body {
  display: block;
  font-style: italic;
  line-height: 1.7;
  color: var(--c-text);
  margin-bottom: var(--s-sm);
}
.confession-card-body:hover { color: var(--c-primary-light); }
.confession-detail {
  max-width: 720px;
  margin: 0 auto;
}
.confession-detail-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  padding: var(--s-xl);
  backdrop-filter: blur(8px);
}
.confession-detail-content {
  font-style: italic;
  font-size: var(--f-size-lg);
  line-height: 1.8;
  margin: var(--s-lg) 0;
}
.confession-form-wrapper { max-width: 720px; }

/* Category badges */
.badge-fantasme { background: rgba(255, 0, 110, 0.15); color: var(--c-primary-light); }
.badge-vecu { background: rgba(6, 214, 160, 0.15); color: var(--c-success); }
.badge-question { background: rgba(255, 209, 102, 0.15); color: var(--c-accent); }

/* ===== UNIFIED PROFILE (UserProfile + MyAccount) ===== */
.up-header {
  display: flex;
  gap: var(--s-lg);
  align-items: flex-start;
  margin-bottom: var(--s-lg);
}
.up-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.up-avatar-edit {
  position: absolute;
  bottom: 0;
  right: -4px;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid var(--c-bg-dark);
  transition: transform var(--t-fast);
}
.up-avatar-edit:hover { transform: scale(1.1); }
.up-online-dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c-success);
  border: 2px solid var(--c-bg-dark);
  box-shadow: 0 0 6px var(--c-success);
}
.up-info { flex: 1; min-width: 0; }
.up-name-row {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
}
.up-name {
  font-size: var(--f-size-xl);
  font-weight: var(--f-weight-bold);
}
.up-quick-actions {
  display: flex;
  gap: var(--s-xs);
  margin-left: auto;
}
.up-action-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  cursor: pointer;
  transition: all var(--t-fast);
}
.up-action-btn:hover { border-color: var(--c-primary); color: var(--c-primary-light); }
.up-action-primary {
  background: rgba(255, 0, 110, 0.1);
  border-color: rgba(255, 0, 110, 0.25);
  color: var(--c-primary-light);
}
.up-action-primary:hover { background: rgba(255, 0, 110, 0.2); }
.up-meta {
  font-size: var(--f-size-sm);
  color: var(--c-text-muted);
  margin-top: var(--s-xs);
}
.up-since { opacity: 0.7; }
.up-bio {
  margin-top: var(--s-sm);
  font-size: var(--f-size-sm);
  line-height: 1.6;
  white-space: pre-wrap;
}
@media (max-width: 480px) {
  .up-header { flex-direction: column; align-items: center; text-align: center; }
  .up-name-row { justify-content: center; }
  .up-quick-actions { margin-left: 0; }
}

/* Ask session banner */
.up-ask-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-sm) var(--s-md);
  background: rgba(255, 0, 110, 0.06);
  border: 1px solid rgba(255, 0, 110, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: var(--s-lg);
}
.up-ask-info { display: flex; align-items: center; gap: var(--s-sm); }
.up-ask-label {
  font-size: var(--f-size-xs);
  font-weight: var(--f-weight-semi);
  color: var(--c-primary-light);
}
.up-ask-time { font-size: var(--f-size-xs); color: var(--c-text-muted); }

/* Sections */
.up-section {
  margin-top: var(--s-xl);
  padding-top: var(--s-xl);
  border-top: 1px solid var(--c-border);
}
.up-section-title {
  font-size: var(--f-size-lg);
  font-weight: var(--f-weight-semi);
  margin-bottom: var(--s-md);
}
.up-subsection {
  padding: var(--s-md) 0;
}
.up-subsection + .up-subsection {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
[data-theme="light"] .up-subsection + .up-subsection { border-top-color: rgba(0, 0, 0, 0.06); }

/* Edit profile card */
.up-edit-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--s-lg);
  margin-bottom: var(--s-lg);
}

/* Settings section (de-emphasized) */
.up-settings {
  opacity: 0.7;
  transition: opacity var(--t-base);
}
.up-settings:hover { opacity: 1; }

/* Moderation (bottom, ghost) */
.up-moderation {
  margin-top: var(--s-xl);
  padding-top: var(--s-md);
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: center;
  gap: var(--s-md);
  opacity: 0.5;
  transition: opacity var(--t-base);
}
.up-moderation:hover { opacity: 1; }

/* ===== VOICE ROOM ===== */
.voice-page {
  min-height: calc(100vh - var(--nav-height) - 56px);
  border-radius: var(--r-lg);
  position: relative;
  transition: background-image 0.3s ease;
}
.voice-overlay {
  min-height: calc(100vh - var(--nav-height) - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-2xl) var(--s-md);
  background: var(--c-overlay);
  border-radius: var(--r-lg);
}

/* Teaser (non-auth) */
.voice-teaser {
  text-align: center;
  max-width: 520px;
}
.voice-teaser-icon {
  margin-bottom: var(--s-lg);
  opacity: 0.7;
}
.voice-teaser h1 {
  font-size: var(--f-size-3xl);
  font-weight: var(--f-weight-bold);
  margin-bottom: var(--s-md);
}
.voice-teaser-lead {
  font-size: var(--f-size-xl);
  font-weight: var(--f-weight-semi);
  color: var(--c-primary-light);
  margin-bottom: var(--s-lg);
}
.voice-teaser-desc {
  font-size: var(--f-size-base);
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: var(--s-lg);
}
.voice-teaser-cta {
  font-size: var(--f-size-sm);
  color: var(--c-primary);
  font-weight: var(--f-weight-semi);
}

/* Authenticated room */
.voice-room {
  width: 100%;
  max-width: 540px;
}
.voice-room h1 {
  font-size: var(--f-size-2xl);
  margin-bottom: var(--s-lg);
}
.voice-participants {
  background: var(--c-card);
  border-radius: var(--r-md);
  padding: var(--s-lg);
}
.voice-participants h3 {
  font-size: var(--f-size-base);
  font-weight: var(--f-weight-semi);
  margin-bottom: var(--s-md);
  color: var(--c-text-muted);
}
.voice-empty {
  color: var(--c-text-muted);
  font-size: var(--f-size-sm);
  padding: var(--s-md) 0;
}
.voice-participant-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.voice-participant {
  display: flex;
  align-items: center;
  gap: var(--s-sm);
  padding: var(--s-sm) 0;
  border-bottom: 1px solid var(--c-border);
}
.voice-participant:last-child {
  border-bottom: none;
}
.voice-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-success);
  flex-shrink: 0;
}
.voice-dot.muted {
  background: var(--c-text-muted);
}
.voice-pseudo {
  font-weight: var(--f-weight-semi);
  flex: 1;
}
.voice-you {
  font-size: var(--f-size-xs);
  color: var(--c-text-muted);
}
.voice-muted-badge {
  color: var(--c-danger);
  display: flex;
  align-items: center;
}
.voice-speaking-badge {
  color: var(--c-success);
  display: flex;
  align-items: center;
}
.btn-warning {
  background: var(--c-accent);
  color: var(--c-text-dark);
}
.btn-warning:hover {
  opacity: 0.85;
}

/* ── Profile Wizard ─────────────────────────────────────── */
.wizard-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(26, 26, 46, 0.96);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-md);
}
.wizard-box {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.wizard-progress-track {
  height: 4px;
  background: var(--c-glass);
  border-radius: var(--radius-full) var(--radius-full) 0 0;
  overflow: hidden;
  flex-shrink: 0;
}
.wizard-progress-fill {
  height: 100%;
  background: var(--g-primary);
  transition: width var(--t-slow);
}
.wizard-body {
  padding: var(--s-xl) var(--s-xl) var(--s-md);
  flex: 1;
}
.wizard-step-indicator {
  font-size: var(--f-size-xs);
  color: var(--c-text-muted);
  margin-bottom: var(--s-md);
}
.wizard-emoji {
  font-size: 2rem;
  margin-bottom: var(--s-sm);
}
.wizard-title {
  font-size: var(--f-size-xl);
  font-weight: var(--f-weight-bold);
  margin-bottom: var(--s-xs);
}
.wizard-subtitle {
  color: var(--c-text-muted);
  font-size: var(--f-size-sm);
  margin-bottom: var(--s-lg);
}
.wizard-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-lg);
  font-size: var(--f-size-xs);
  color: var(--c-text-muted);
  margin-bottom: var(--s-md);
  padding: var(--s-sm) var(--s-md);
  background: var(--c-glass);
  border-radius: var(--radius-md);
  line-height: 1.6;
}
.wizard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
  margin-bottom: var(--s-sm);
}
.wizard-tag {
  padding: var(--s-sm) var(--s-md);
  border-radius: var(--radius-full);
  border: 1px solid var(--c-border);
  cursor: pointer;
  font-size: var(--f-size-sm);
  transition: all var(--t-fast);
  user-select: none;
  background: transparent;
  color: var(--c-text-muted);
  font-family: var(--f-family);
  line-height: 1.4;
}
.wizard-tag:hover:not(:disabled) {
  border-color: var(--c-primary-light);
  color: var(--c-text);
}
.wizard-tag:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.wizard-tag.selected,
.wizard-tag.hot {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.wizard-tag.dream {
  background: transparent;
  border-color: var(--c-accent);
  color: var(--c-accent);
}
.wizard-count {
  font-size: var(--f-size-xs);
  color: var(--c-text-muted);
  text-align: right;
  margin-bottom: var(--s-md);
}
.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-md) var(--s-xl);
  border-top: 1px solid var(--c-border);
  flex-shrink: 0;
  gap: var(--s-sm);
}
.btn-outline-muted {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
}
.btn-outline-muted:hover {
  border-color: var(--c-text-muted);
  color: var(--c-text);
}

/* ── Profile Tags (public profile) ─────────────────────── */
.profile-tags {
  display: flex;
  flex-direction: column;
  gap: var(--s-lg);
  text-align: left;
}
.profile-tags-group {
  display: flex;
  flex-direction: column;
  gap: var(--s-sm);
}
.profile-tags-label {
  font-size: var(--f-size-xs);
  font-weight: var(--f-weight-semi);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
}
.profile-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs) var(--s-sm);
}
.profile-tag {
  padding: 3px var(--s-sm);
  border-radius: var(--radius-full);
  font-size: var(--f-size-xs);
  line-height: 1.6;
}
.profile-tag--simple {
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
}
.profile-tag--hot {
  background: rgba(255, 0, 110, 0.15);
  border: 1px solid rgba(255, 0, 110, 0.4);
  color: var(--c-primary-light);
}
.profile-tag--dream {
  background: rgba(255, 209, 102, 0.1);
  border: 1px solid rgba(255, 209, 102, 0.35);
  color: var(--c-accent);
}

/* ── Lexique auto-links in content ────────────────────── */
.article-content a.lex-link,
.confession-detail-content a.lex-link,
a.lex-link {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: 1px dotted rgba(255, 0, 110, 0.6);
  transition: border-color var(--t-fast);
  cursor: help;
}
.article-content a.lex-link:hover,
.confession-detail-content a.lex-link:hover,
a.lex-link:hover {
  border-bottom-color: var(--c-primary);
  border-bottom-style: solid;
  color: inherit !important;
  text-decoration: none !important;
}
[data-theme="light"] a.lex-link {
  border-bottom-color: rgba(255, 0, 110, 0.35);
}

/* ── Lexique ──────────────────────────────────────────── */
.lex-letters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs);
}
.lex-letter {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--c-glass);
  border: 1px solid var(--c-border);
  font-size: var(--f-size-sm);
  font-weight: var(--f-weight-bold);
  cursor: pointer;
  transition: all var(--t-fast);
  color: var(--c-text-muted);
}
.lex-letter:hover { border-color: var(--c-primary); color: var(--c-primary-light); }

.lex-group { margin-bottom: var(--s-xl); }
.lex-group-letter {
  font-size: var(--f-size-xl);
  font-weight: var(--f-weight-bold);
  color: var(--c-primary);
  margin-bottom: var(--s-sm);
  padding-bottom: var(--s-xs);
  border-bottom: 2px solid rgba(255, 0, 110, 0.2);
}
.lex-entries {
  display: flex;
  flex-direction: column;
}
.lex-entry {
  display: flex;
  align-items: baseline;
  gap: var(--s-md);
  padding: var(--s-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--c-text);
  text-decoration: none;
  transition: background var(--t-fast);
}
[data-theme="light"] .lex-entry { border-bottom-color: rgba(0, 0, 0, 0.05); }
.lex-entry:hover { background: var(--c-glass); }
.lex-entry-title {
  font-weight: var(--f-weight-semi);
  font-size: var(--f-size-sm);
  white-space: nowrap;
  color: var(--c-primary-light);
  min-width: 140px;
}
.lex-entry-def {
  font-size: var(--f-size-xs);
  color: var(--c-text-muted);
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .lex-entry { flex-direction: column; gap: 2px; }
  .lex-entry-title { min-width: auto; }
  .lex-entry-def { white-space: normal; }
}

/* Lexique detail */
.lex-detail-title {
  font-size: var(--f-size-2xl);
  margin-bottom: var(--s-xs);
}
.lex-detail-synonyms {
  font-size: var(--f-size-sm);
  color: var(--c-text-muted);
  font-style: italic;
  margin-bottom: var(--s-lg);
}
.lex-detail-definition {
  font-size: var(--f-size-lg);
  line-height: 1.7;
  color: var(--c-text);
  border-left: 3px solid var(--c-primary);
  padding: var(--s-md) var(--s-lg);
  margin: 0 0 var(--s-xl);
  background: var(--c-glass);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.lex-detail-content { margin-bottom: var(--s-xl); }
.lex-detail-sources {
  font-size: var(--f-size-sm);
  color: var(--c-text-muted);
  border-top: 1px solid var(--c-border);
  padding-top: var(--s-lg);
  margin-bottom: var(--s-xl);
}
.lex-detail-sources h3 {
  font-size: var(--f-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  margin-bottom: var(--s-sm);
}
.lex-detail-related {
  margin-top: var(--s-xl);
}
.lex-detail-related h3 {
  font-size: var(--f-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  margin-bottom: var(--s-sm);
}
.lex-related-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
}
.lex-related-tag {
  padding: var(--s-xs) var(--s-md);
  border-radius: var(--radius-full);
  background: rgba(255, 0, 110, 0.1);
  border: 1px solid rgba(255, 0, 110, 0.25);
  color: var(--c-primary-light);
  font-size: var(--f-size-sm);
  font-weight: var(--f-weight-semi);
  text-decoration: none;
  transition: all var(--t-fast);
}
.lex-related-tag:hover { background: rgba(255, 0, 110, 0.2); }

/* Category badges for lexique */
.badge-pratiques { background: rgba(255, 0, 110, 0.15); color: var(--c-primary-light); }
.badge-relations { background: rgba(6, 214, 160, 0.15); color: var(--c-success); }
.badge-bdsm { background: rgba(239, 71, 111, 0.15); color: var(--c-danger); }
.badge-culture { background: rgba(255, 209, 102, 0.15); color: var(--c-accent); }
.badge-emotions { background: rgba(100, 140, 255, 0.15); color: #8cacff; }
.badge-pratique { background: rgba(6, 214, 160, 0.15); color: var(--c-success); }

/* ── Mode light : couleur "fantasme" lisible ────────────── */
[data-theme="light"] .wizard-tag.dream {
  border-color: #92650A;
  color: #92650A;
}
[data-theme="light"] .profile-tag--dream {
  background: rgba(146, 101, 10, 0.08);
  border-color: rgba(146, 101, 10, 0.35);
  color: #92650A;
}
