/* PsycheMatch - Modern Psychological Connections & Pay-per-Read Stylesheet */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  --bg-primary: #0b0f19;
  --bg-secondary: #111827;
  --bg-tertiary: #1f2937;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-glass: rgba(31, 41, 55, 0.65);

  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-purple: #8b5cf6;
  --accent-teal: #06b6d4;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(245, 158, 11, 0.5);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow-gold: 0 0 25px rgba(245, 158, 11, 0.25);
  --shadow-glow-purple: 0 0 25px rgba(139, 92, 246, 0.25);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(245, 158, 11, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

/* APP SHELL & HEADER */
.psyche-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.psyche-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
}

.header-container {
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #8b5cf6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-gold);
}

.logo-symbol {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.brand-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fbbf24, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

/* Header Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(31, 41, 55, 0.5);
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
}

.nav-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.nav-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(139, 92, 246, 0.2));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.badge-bubble {
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  position: absolute;
  top: 2px;
  right: 4px;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Header Actions: Wallet & User Badge */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wallet-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.wallet-pill:hover {
  border-color: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.wallet-icon {
  font-size: 16px;
}

.wallet-text {
  display: flex;
  flex-direction: column;
}

.wallet-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fbbf24;
  font-weight: 700;
}

.wallet-amount {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.wallet-add-btn {
  background: #f59e0b;
  color: #111827;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.user-badge-header {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px 4px 4px;
  border-radius: 9999px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.user-badge-header:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar-tiny {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-mini-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.user-mini-badge {
  font-size: 10px;
  color: #10b981;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: #1f2937;
  border: 1px solid var(--accent-gold);
  box-shadow: var(--shadow-glow-gold);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  animation: slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

/* MAIN LAYOUT */
.main-content {
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  flex: 1;
}

/* EXPLORE VIEW */
.explore-hero {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.7) 0%, rgba(17, 24, 39, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
}

.verified-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 16px;
}

.explore-hero h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: #ffffff;
}

.explore-hero p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 800px;
  margin-bottom: 20px;
}

.policy-reminder-badge {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #fde68a;
  max-width: 850px;
}

/* Filters Bar */
.filters-card {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr;
  gap: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 24px;
  align-items: center;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-item label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
}

.search-input-wrapper .input {
  padding-left: 36px;
}

.input {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.input:focus {
  border-color: var(--accent-gold);
}

.range-slider {
  accent-color: var(--accent-gold);
  cursor: pointer;
}

/* Candidates Grid */
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header-row h2 {
  font-size: 22px;
  font-weight: 700;
}

.sort-hint {
  font-size: 13px;
  color: #fbbf24;
}

.candidates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.candidate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.candidate-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verified-pill {
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 5px;
}

.green-dot {
  font-size: 10px;
  color: #10b981;
}

.match-pill {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 10px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.match-num {
  font-size: 14px;
  font-weight: 800;
  color: #fbbf24;
}

.match-text {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.card-profile-header {
  display: flex;
  gap: 16px;
}

.avatar-wrapper {
  position: relative;
}

.cand-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
}

.temp-indicator-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 9999px;
  white-space: nowrap;
}

.badge-melancholic {
  background: #3b82f6;
  color: #ffffff;
}

.badge-phlegmatic {
  background: #10b981;
  color: #ffffff;
}

.badge-sanguine {
  background: #f59e0b;
  color: #111827;
}

.badge-choleric {
  background: #ef4444;
  color: #ffffff;
}

.cand-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.cand-name {
  font-size: 18px;
  font-weight: 700;
}

.cand-age {
  font-weight: 400;
  color: var(--text-secondary);
}

.cand-location, .cand-occupation {
  font-size: 12px;
  color: var(--text-secondary);
}

.cand-archetype-box {
  background: rgba(31, 41, 55, 0.6);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.archetype-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.archetype-val {
  font-size: 12px;
  font-weight: 700;
  color: #c084fc;
}

.cand-bio-snippet {
  font-size: 13px;
  color: var(--text-secondary);
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Radar Mini Progress */
.psych-radar-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radar-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

.bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 9999px;
}

.fill-temp {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.fill-attachment {
  background: linear-gradient(90deg, #8b5cf6, #c084fc);
}

.cand-values-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.value-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary-custom {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #111827;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.btn-primary-custom:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-1px);
}

.btn-secondary-custom {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary-custom:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* SIMULATOR VIEW */
.simulator-header-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 32px;
}

.section-badge {
  display: inline-block;
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border: 1px solid rgba(139, 92, 246, 0.4);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.simulator-header-box h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.simulator-header-box p {
  color: var(--text-secondary);
  font-size: 14px;
}

.sim-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
}

.sim-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.sim-sidebar h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.sim-candidates-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-candidate-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-candidate-item:hover {
  border-color: var(--border-focus);
}

.sim-candidate-item.selected {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
}

.sim-avatar-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.sim-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sim-item-name {
  font-size: 13px;
  font-weight: 700;
}

.sim-item-archetype {
  font-size: 11px;
  color: var(--text-secondary);
}

.sim-check {
  color: var(--accent-gold);
  font-weight: 800;
}

/* Simulation Main Panel */
.sim-main-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.sim-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.sim-empty-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.sim-vs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 24px;
}

.sim-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sim-person-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
}

.sim-person div {
  display: flex;
  flex-direction: column;
}

.sim-person strong {
  font-size: 15px;
}

.sim-person span {
  font-size: 12px;
  color: var(--text-secondary);
}

.sim-vs-badge {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #f59e0b, #8b5cf6);
  color: #111827;
  padding: 6px 14px;
  border-radius: 9999px;
}

/* Scenario Selector */
.scenario-selector {
  margin-bottom: 24px;
}

.scenario-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
}

.scenario-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.scenario-pill-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-pill-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.scenario-pill-btn.active {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border-color: #8b5cf6;
}

/* Dilemma Card */
.dilemma-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.dilemma-cat {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.dilemma-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.dilemma-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.dilemma-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.options-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.dilemma-opt-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: all 0.2s ease;
  font-size: 14px;
}

.dilemma-opt-btn:hover {
  border-color: var(--accent-gold);
  transform: translateX(4px);
}

.opt-letter {
  font-size: 11px;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Simulation Result Box */
.sim-result-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
}

.result-badge {
  font-size: 13px;
  font-weight: 700;
  color: #34d399;
}

.result-score {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.result-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.result-column {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.result-column strong {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

.result-column p {
  font-size: 13px;
  color: var(--text-primary);
}

.sim-psych-advice {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--accent-gold);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.advice-title {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
  display: block;
  margin-bottom: 4px;
}

.sim-psych-advice p {
  font-size: 13px;
  color: #fde68a;
}

.sim-actions-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

/* CHAT & PAY-PER-READ VIEW */
.chat-view {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 780px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chat-sidebar {
  border-right: 1px solid var(--border-subtle);
  background: rgba(17, 24, 39, 0.95);
  display: flex;
  flex-direction: column;
}

.chat-sidebar-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-sidebar-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.sidebar-count {
  font-size: 11px;
  color: var(--text-secondary);
}

.chat-matches-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chat-match-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-match-item:hover {
  background: var(--bg-tertiary);
}

.chat-match-item.active {
  background: rgba(245, 158, 11, 0.12);
  border-left: 3px solid var(--accent-gold);
}

.avatar-badge-wrap {
  position: relative;
}

.chat-thumb-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
}

.chat-status-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid var(--bg-primary);
  border-radius: 50%;
  position: absolute;
  bottom: -2px;
  right: -2px;
}

.chat-thumb-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-thumb-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.thumb-name {
  font-size: 13px;
  font-weight: 700;
}

.thumb-match {
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
}

.thumb-archetype {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Chat Main Window */
.chat-main-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-primary);
}

.chat-active-header {
  padding: 14px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.active-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.active-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
}

.active-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.active-name-row h4 {
  font-size: 16px;
  font-weight: 700;
}

.badge-verified {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}

.active-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.chat-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-outline-sim {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-outline-sim:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-unlock-batch {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  border: none;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Pay Policy Banner */
.pay-policy-strip {
  background: rgba(245, 158, 11, 0.1);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #fde68a;
}

.policy-icon-box {
  font-size: 16px;
}

.policy-text-box {
  flex: 1;
}

.btn-wallet-link {
  background: #f59e0b;
  color: #111827;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

/* Chat Message Flow */
.chat-messages-flow {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-empty-convo {
  text-align: center;
  margin: auto;
  max-width: 450px;
}

.empty-sparkle {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.chat-empty-convo h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.chat-empty-convo p {
  color: var(--text-secondary);
  font-size: 13px;
}

.chat-message-bubble-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.chat-message-bubble-wrapper.sent-by-me {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-message-bubble-wrapper.received {
  align-self: flex-start;
  align-items: flex-start;
}

.icebreaker-tag-pill {
  font-size: 10px;
  color: #c084fc;
  font-weight: 700;
  margin-bottom: 4px;
}

.message-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.bubble-me {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.bubble-them {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.msg-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-top: 6px;
  text-align: right;
}

/* LOCKED MESSAGE COMPONENT ($1 USD PAY-PER-READ) */
.bubble-locked {
  background: rgba(31, 41, 55, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  padding: 18px 20px;
  min-width: 320px;
}

.locked-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lock-icon-gold {
  font-size: 16px;
}

.locked-title {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex: 1;
  margin-left: 8px;
}

.locked-fee-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.locked-blur-preview {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.15em;
  filter: blur(4px);
  user-select: none;
  margin-bottom: 16px;
}

.locked-actions-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(11, 15, 25, 0.6);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.locked-info-sub {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
}

.btn-unlock-msg {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #111827;
  border: none;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: transform 0.2s ease;
}

.btn-unlock-msg:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.unlocked-paid-badge {
  font-size: 10px;
  color: #34d399;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.check-gold {
  color: #10b981;
}

/* Icebreakers Strip */
.icebreakers-strip {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}

.icebreakers-title {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  white-space: nowrap;
}

.icebreakers-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.icebreaker-chip {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.icebreaker-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.icebreaker-chip.selected {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: #f59e0b;
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 16px 24px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
}

.chat-text-input {
  flex: 1;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}

.chat-text-input:focus {
  border-color: var(--accent-gold);
}

.btn-send-msg {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #111827;
  border: none;
  font-weight: 800;
  font-size: 14px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* PSICO-PASSPORT VIEW */
.passport-view {
  max-width: 1080px;
  margin: 0 auto;
}

.passport-card-metal {
  background: linear-gradient(145deg, #182133 0%, #0d131f 100%);
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), var(--shadow-glow-gold);
  overflow: hidden;
}

.passport-metal-header {
  padding: 24px 32px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.passport-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.passport-emblem {
  font-size: 36px;
  color: #fbbf24;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.passport-title-main {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fbbf24;
}

.passport-title-sub {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.passport-validity {
  text-align: right;
}

.valid-status {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #10b981;
}

.valid-date {
  font-size: 11px;
  color: var(--text-muted);
}

.passport-metal-body {
  padding: 32px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
}

.passport-metal-id {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.passport-photo {
  width: 150px;
  height: 150px;
  border-radius: 24px;
  object-fit: cover;
  border: 3px solid #fbbf24;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  margin-bottom: 16px;
}

.passport-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}

.passport-details-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.passport-occ {
  font-size: 12px;
  color: #c084fc;
  font-weight: 600;
  margin-bottom: 16px;
}

.passport-archetype-pill {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #c084fc;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 9999px;
  margin-bottom: 24px;
}

.btn-retake-test {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-retake-test:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* Passport Metal Stats */
.passport-metal-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-block-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fbbf24;
}

.temperament-quadrants {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quad-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.quad-name {
  font-size: 11px;
  color: var(--text-secondary);
  display: block;
}

.quad-pct {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  display: block;
  margin-bottom: 6px;
}

.quad-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.quad-bar div {
  height: 100%;
  background: #fbbf24;
}

/* Ocean Grid */
.ocean-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ocean-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.ocean-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.ocean-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.ocean-fill {
  height: 100%;
  background: #8b5cf6;
}

.relational-pills-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.relational-badge {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.badge-tag-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

.badge-tag-val {
  font-size: 12px;
  font-weight: 700;
  color: #34d399;
}

.passport-notes-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.note-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.note-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  display: block;
  margin-bottom: 8px;
}

.tags-cluster {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cluster-tag {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 6px;
}

.tag-warning {
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* TEST VIEW */
.test-view {
  max-width: 800px;
  margin: 0 auto;
}

.test-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.test-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.test-step-badge {
  font-size: 12px;
  font-weight: 800;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.test-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.test-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #8b5cf6);
  transition: width 0.3s ease;
}

.test-category-label {
  font-size: 12px;
  font-weight: 700;
  color: #c084fc;
  display: block;
  margin-bottom: 8px;
}

.test-q-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}

.test-q-scenario {
  font-size: 15px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.6;
}

.test-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.test-option-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--text-primary);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
}

.test-option-btn:hover {
  border-color: var(--accent-gold);
}

.test-option-btn.selected {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
}

.opt-radio {
  color: var(--accent-gold);
  font-size: 16px;
}

.test-nav-actions {
  display: flex;
  justify-content: space-between;
}

.btn-finish-test {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-dialog-large {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-md);
}

.modal-dialog-wallet {
  background: var(--bg-secondary);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-glow-gold);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

/* Wallet Modal Details */
.wallet-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.wallet-header-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.wallet-modal-header h2 {
  font-size: 22px;
  font-weight: 800;
}

.wallet-modal-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.wallet-balance-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(31, 41, 55, 0.8) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.balance-label {
  font-size: 12px;
  text-transform: uppercase;
  color: #fbbf24;
  font-weight: 700;
  display: block;
}

.balance-value-big {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
}

.balance-value-big .curr {
  font-size: 18px;
  color: var(--text-secondary);
}

.stat-spent-label {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
}

.stat-spent-val {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.wallet-policy-explainer {
  background: rgba(31, 41, 55, 0.6);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.explainer-icon {
  font-size: 18px;
}

.wallet-reload-section h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.reload-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.btn-reload-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.btn-reload-card:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

.btn-reload-card.popular {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
}

.badge-pop {
  position: absolute;
  top: -8px;
  background: #f59e0b;
  color: #111827;
  font-size: 8px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 9999px;
}

.reload-amt {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.reload-sub {
  font-size: 10px;
  color: var(--text-secondary);
}

/* History */
.wallet-history-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.tx-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 140px;
  overflow-y: auto;
}

.tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tertiary);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
}

.tx-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.tx-in {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.tx-out {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

.tx-desc {
  display: block;
  font-weight: 600;
}

.tx-date {
  font-size: 10px;
  color: var(--text-muted);
}

.amt-pos {
  color: #34d399;
  font-weight: 700;
}

.amt-neg {
  color: #f87171;
  font-weight: 700;
}

.wallet-modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

/* Report Modal */
.report-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.report-avatar-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.report-avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.report-match-widget {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  text-align: center;
}

.match-val-huge {
  font-size: 32px;
  font-weight: 900;
  color: #fbbf24;
  display: block;
}

.match-val-sub {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.synergy-callout {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
}

.synergy-callout h4 {
  font-size: 13px;
  color: #c084fc;
  margin-bottom: 8px;
}

.synergy-callout ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-primary);
}

.report-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.report-col h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #fbbf24;
}

.temp-bars-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.temp-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.temp-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.fill-melancholic { height: 100%; background: #3b82f6; }
.fill-phlegmatic { height: 100%; background: #10b981; }
.fill-sanguine { height: 100%; background: #f59e0b; }
.fill-choleric { height: 100%; background: #ef4444; }

.behavior-traits-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trait-card {
  background: var(--bg-tertiary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.trait-card strong {
  color: var(--text-secondary);
  display: block;
}

.report-bio-full {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}

.report-bio-full h3 {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.report-bio-full p {
  font-size: 14px;
  font-style: italic;
  color: var(--text-primary);
}

.report-cost-note {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid #f59e0b;
  padding: 10px 14px;
  font-size: 12px;
  color: #fde68a;
  margin-bottom: 24px;
}

.report-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* RESPONSIVENESS */
@media (max-width: 900px) {
  .sim-layout, .chat-view, .passport-metal-body, .filters-card {
    grid-template-columns: 1fr;
  }
  
  .chat-view {
    height: auto;
  }

  .chat-sidebar {
    max-height: 240px;
  }

  .report-grid-2col {
    grid-template-columns: 1fr;
  }

  .reload-options-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* UI UTILITIES & ADDITIONAL COMPONENT CLASSES */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: #94a3b8;
}

.empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.hint {
  font-size: 0.8rem;
  color: #64748b;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.balance-info-left {
  display: flex;
  flex-direction: column;
}

.balance-info-right {
  text-align: right;
}

.candidates-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.check-mark {
  color: #10b981;
  font-weight: bold;
}

.explore-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}

.loading-label {
  color: #94a3b8;
  font-size: 0.95rem;
}

.locked-message-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg-text {
  font-size: 0.92rem;
  line-height: 1.5;
}

.no-tx {
  padding: 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

.opt-text {
  font-size: 0.95rem;
  line-height: 1.4;
}

.passport-hero {
  margin-bottom: 24px;
}

.policy-icon {
  font-size: 1.5rem;
}

.quad-choleric {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}

.quad-melancholic {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.25);
}

.quad-phlegmatic {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.quad-sanguine {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
}

.report-meta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.report-modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(85vh - 140px);
}

.shield-icon {
  font-size: 1.2rem;
}

.sim-active-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
}

.simulator-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tab-icon {
  font-size: 1.1rem;
}

.test-question-card {
  background: #1e293b;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tx-amt {
  font-weight: 700;
  font-size: 0.9rem;
}

.user-mini-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.valid-label {
  font-size: 0.8rem;
  color: #10b981;
  font-weight: 600;
}

