/* Intimate Match - Premium Stylesheet */

/* --- Core Custom Properties & Design Tokens --- */
:root {
  /* Color Palette (HSL Tailored) */
  --bg-main: hsl(240, 18%, 10%);
  --bg-card: hsla(240, 15%, 15%, 0.7);
  --bg-card-hover: hsla(240, 15%, 18%, 0.85);
  --bg-header: hsla(240, 18%, 8%, 0.85);
  
  --border-color: hsla(240, 15%, 25%, 0.4);
  --border-color-glow: hsla(330, 85%, 60%, 0.3);
  
  --primary: hsl(330, 85%, 60%);        /* Hot Rose */
  --primary-glow: hsla(330, 85%, 60%, 0.4);
  --secondary: hsl(245, 82%, 67%);      /* Electric Indigo */
  --secondary-glow: hsla(245, 82%, 67%, 0.4);
  
  --text-main: hsl(220, 20%, 96%);
  --text-muted: hsl(220, 12%, 70%);
  --text-dark: hsl(240, 18%, 8%);
  
  --accent-gold: hsl(40, 95%, 60%);     /* Premium Gold */
  --accent-green: hsl(150, 80%, 45%);    /* Safe/Success */
  --accent-red: hsl(0, 85%, 60%);        /* Danger/Warning Red */
  --accent-red-glow: hsla(0, 85%, 60%, 0.4);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  --gradient-glow: linear-gradient(135deg, var(--secondary-glow) 0%, var(--primary-glow) 100%);
  --gradient-gold: linear-gradient(135deg, var(--accent-gold) 0%, hsl(20, 95%, 60%) 100%);
  --gradient-dark: linear-gradient(180deg, hsl(240, 18%, 8%) 0%, hsl(240, 18%, 13%) 100%);
  
  /* Glassmorphism & Shadow */
  --glass-backdrop: blur(16px);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  
  /* Fonts */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* --- Base & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(at 10% 20%, hsla(245, 82%, 20%, 0.25) 0px, transparent 50%),
    radial-gradient(at 90% 80%, hsla(330, 85%, 20%, 0.25) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- Typo Utilities --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

p {
  color: var(--text-muted);
}

/* --- Layout Elements --- */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  z-index: 100;
  box-shadow: var(--glass-shadow);
}

.header-container {
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
  color: var(--text-main);
  font-size: 1.35rem;
  font-weight: 700;
}
.logo-icon {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-item i {
  width: 18px;
  height: 18px;
}
.nav-item:hover, .nav-item.active {
  color: var(--text-main);
  background: hsla(240, 15%, 20%, 0.6);
}
.nav-item.active {
  background: var(--gradient-primary);
  box-shadow: 0 4px 15px var(--primary-glow);
}

.premium-badge-nav {
  background: var(--gradient-gold) !important;
  color: var(--text-dark) !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
}

.badge {
  background-color: var(--primary);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  border: 1px solid var(--bg-main);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.app-container {
  flex: 1;
  max-width: 1300px;
  width: 100%;
  margin: 72px auto 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* --- Common Buttons & Controls --- */
.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn i,
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn-lg i,
.btn-lg svg {
  width: 20px;
  height: 20px;
}
.btn-xs i,
.btn-xs svg {
  width: 14px;
  height: 14px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--text-main);
  box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--primary-glow), 0 0 10px var(--secondary-glow);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: hsla(240, 15%, 20%, 0.8);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  background: hsla(240, 15%, 25%, 0.9);
  border-color: var(--text-muted);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--text-main);
  background: hsla(240, 15%, 20%, 0.4);
}

.btn-premium {
  background: var(--gradient-gold);
  color: var(--text-dark);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}
.btn-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.4);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}
.btn-xs {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: 20px;
}
.btn-block {
  width: 100%;
}

button:disabled, .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Form Controls */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: hsla(240, 15%, 8%, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s;
}
select.form-control,
input.form-control:not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
  height: 48px;
  padding-top: 0;
  padding-bottom: 0;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}
.form-row {
  display: flex;
  gap: 16px;
}
.col-6 {
  flex: 0 0 calc(50% - 8px);
}

.slider-val-container {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider-control {
  flex: 1;
  -webkit-appearance: none;
  background: var(--border-color);
  height: 6px;
  border-radius: 3px;
  outline: none;
}
.slider-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
  transition: transform 0.1s;
}
.slider-control::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}
.slider-value {
  font-weight: 600;
  font-size: 0.95rem;
  min-width: 40px;
}

/* --- Screens Navigation --- */
.screen {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
  opacity: 0;
}
.screen.active {
  display: block;
}

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

/* --- SCREEN 1: Landing Page --- */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  min-height: calc(100vh - 200px);
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-top: 15px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.15;
}

.hero-lead {
  font-size: 1.15rem;
  margin-bottom: 35px;
  max-width: 580px;
}

.premium-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: hsla(330, 85%, 60%, 0.15);
  border: 1px solid var(--primary-glow);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

.hero-stats {
  display: flex;
  gap: 30px;
  align-items: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* Hero Visual & Simulation Card */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-visual::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  background: var(--gradient-primary);
  filter: blur(120px);
  opacity: 0.3;
  border-radius: 50%;
  z-index: -1;
}

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-radius: 24px;
  width: 340px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transform: rotate(2deg);
  transition: all 0.5s;
}
.preview-card:hover {
  transform: rotate(0deg) scale(1.02);
  border-color: var(--primary);
}

.preview-card-img {
  height: 380px;
  width: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
}
.preview-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-primary);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.preview-card-info {
  padding: 20px;
}
.preview-card-info h3 {
  font-size: 1.35rem;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.verified-icon i {
  width: 18px;
  height: 18px;
  fill: var(--secondary);
  color: var(--text-main);
}
.preview-subtitle {
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.compat-bar-container {
  margin-bottom: 15px;
}
.compat-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.compat-bar {
  height: 6px;
  background: hsla(240, 15%, 8%, 0.8);
  border-radius: 3px;
  overflow: hidden;
}
.compat-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-pill {
  font-size: 0.7rem;
  background: hsla(240, 15%, 20%, 0.6);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
}
.tag-pill i {
  width: 12px;
  height: 12px;
}

/* Features Grid */
.features-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}
.section-title {
  font-size: 2.25rem;
  margin-bottom: 12px;
}
.text-center {
  text-align: center;
}
.section-subtitle {
  max-width: 600px;
  margin: 0 auto 50px auto;
  font-size: 1rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 35px 25px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s;
}
.feature-card:hover {
  border-color: var(--secondary);
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow);
}
.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-glow);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  color: var(--primary);
}
.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 0.9rem;
}

/* --- SCREEN 2: Onboarding Questionnaire --- */
.onboarding-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  padding: 20px 0;
  min-height: calc(100vh - 150px);
}

.onboarding-sidebar {
  border-right: 1px solid var(--border-color);
  padding-right: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.onboarding-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.step-indicator {
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.step-indicator.active {
  opacity: 1;
}
.step-indicator.completed {
  opacity: 0.7;
}
.step-indicator.completed .step-num {
  background: var(--accent-green);
  color: var(--text-dark);
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  transition: all 0.3s;
}
.step-indicator.active .step-num {
  background: var(--gradient-primary);
  box-shadow: 0 0 10px var(--primary-glow);
}
.step-name {
  font-size: 0.95rem;
  font-weight: 500;
}

.sidebar-quote {
  background: hsla(240, 15%, 8%, 0.4);
  border-left: 2px solid var(--primary);
  padding: 15px 20px;
  border-radius: 0 12px 12px 0;
}
.sidebar-quote p {
  font-size: 0.85rem;
  font-style: italic;
}

.onboarding-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-backdrop);
}

.onboarding-header {
  margin-bottom: 30px;
}
.progress-bar-wrapper {
  height: 8px;
  background: hsla(240, 15%, 8%, 0.8);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
  font-weight: 500;
}

.question-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 250px;
}
.question-category {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 8px;
}
.question-text {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 25px;
}

/* Question Option Types */
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.option-btn {
  background: hsla(240, 15%, 8%, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  color: var(--text-main);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.option-btn:hover {
  background: hsla(240, 15%, 15%, 0.8);
  border-color: var(--text-muted);
}
.option-btn.selected {
  border-color: var(--primary);
  background: hsla(330, 85%, 60%, 0.08);
  box-shadow: 0 0 10px rgba(330, 85%, 60%, 0.15);
}
.option-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.7rem;
}
.option-btn.selected .option-check {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-main);
}

.slider-question-box {
  padding: 20px 0;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.text-input-box input {
  font-size: 1.1rem;
  padding: 16px;
}

.onboarding-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  border-top: 1px solid var(--border-color);
  padding-top: 25px;
}

/* --- SCREEN 3: Discover / Dashboard --- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  padding: 10px 0;
}

.dashboard-sidebar {
  align-self: start;
}
.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-backdrop);
}
.sidebar-section h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.matches-stats-section .mini-stat {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
}
.mini-stat-label {
  color: var(--text-muted);
}
.mini-stat-val {
  font-weight: 700;
  color: var(--primary);
}

/* Profiles Grid */
.feed-container {
  display: flex;
  flex-direction: column;
}
.feed-header {
  margin-bottom: 24px;
}
.feed-header h2 {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

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

.match-card {
  transform: none !important; /* Reset rotating landing effect */
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 540px;
  width: 100% !important;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.match-card:hover {
  transform: translateY(-5px) !important;
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

.match-card .preview-card-img {
  height: 280px;
}

.match-card .preview-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.match-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.match-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
}
.match-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.match-card-compat {
  background: var(--gradient-primary);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.match-highlights {
  margin: 10px 0;
  min-height: 50px;
}
.highlight-pill {
  font-size: 0.7rem;
  background: hsla(245, 82%, 67%, 0.1);
  border: 1px solid var(--secondary-glow);
  color: var(--secondary);
  padding: 3px 8px;
  border-radius: 10px;
  margin-right: 4px;
  margin-bottom: 4px;
  display: inline-block;
}

.btn-card-action {
  width: 100%;
  margin-top: auto;
  font-size: 0.8rem;
  padding: 8px 12px;
}

/* --- SCREEN 4: Profile Details --- */
.btn-back {
  margin-bottom: 24px;
}

.profile-detail-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
}

.profile-sticky-card {
  position: sticky;
  top: 96px;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-backdrop);
}

.detail-img {
  height: 380px;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
.detail-img-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(0deg, var(--bg-main) 0%, transparent 100%);
}

.detail-header-info {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
}
.detail-header-info h2 {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.compatibility-badge-large {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-glow);
  border: 1px solid var(--primary-glow);
  padding: 12px;
  border-radius: 16px;
  margin-bottom: 20px;
}
.compat-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}
.compat-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
}
.compat-text p {
  font-size: 0.75rem;
}

.detail-actions-btn {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Detail Main Body Scrollable */
.profile-detail-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.detail-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-backdrop);
}
.detail-section-card h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}
.detail-section-card h3 i {
  color: var(--primary);
}

.bio-text {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Compatibility Visualizer */
.compat-grid-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.compat-metric-card {
  background: hsla(240, 15%, 8%, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
}
.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.metric-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}
.metric-title i {
  width: 16px;
  height: 16px;
  color: var(--secondary);
}
.metric-percentage {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.metric-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* --- Special Intimate / Honesty Styles --- */
.compat-bar-fill.intimate-fill {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%) !important;
}

.compat-metric-card.intimate-special {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, hsla(330, 85%, 60%, 0.12) 0%, hsla(245, 82%, 67%, 0.12) 100%);
  border: 1px solid var(--primary) !important;
  box-shadow: 0 8px 32px hsla(330, 85%, 60%, 0.2);
  position: relative;
  overflow: hidden;
  padding: 24px;
}
.compat-metric-card.intimate-special::before {
  content: 'Ehrlichkeit Belohnt';
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-primary);
  color: var(--text-main);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 8px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.honesty-reward-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, hsla(330, 85%, 60%, 0.15) 0%, hsla(245, 82%, 67%, 0.15) 100%);
  border: 1px solid var(--primary-glow);
  border-radius: 12px;
  padding: 10px 16px;
  margin-top: 15px;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 15px hsla(330, 85%, 60%, 0.1);
}
.honesty-reward-badge i {
  color: var(--primary);
  width: 18px;
  height: 18px;
}

.preview-badge-honesty {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-glow);
  z-index: 2;
}
.preview-badge-honesty i {
  width: 16px;
  height: 16px;
}

/* Detailed side-by-side QA comparison */
.comparison-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.comparison-item {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}
.comparison-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.comparison-q {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.comparison-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.user-ans, .match-ans {
  background: hsla(240, 15%, 8%, 0.5);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.85rem;
}
.ans-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.user-ans {
  border-left: 2.5px solid var(--secondary);
}
.match-ans {
  border-left: 2.5px solid var(--primary);
}
.ans-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  margin-top: 6px;
}
.ans-match-true {
  color: var(--accent-green);
}
.ans-match-false {
  color: var(--text-muted);
}

/* --- SCREEN 5: Chat / Messages --- */
.chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  grid-template-rows: 100%;
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  height: calc(100vh - 150px);
  box-shadow: var(--glass-shadow);
}

.chat-sidebar {
  min-height: 0;
  background: var(--bg-card);
  backdrop-filter: var(--glass-backdrop);
  display: flex;
  flex-direction: column;
}
.chat-sidebar-header {
  flex-shrink: 0;
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}
.conversations-list {
  flex: 1;
  overflow-y: auto;
}

.conversation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid hsla(240, 15%, 25%, 0.2);
  cursor: pointer;
  transition: background 0.2s;
}
.conversation-item:hover {
  background: hsla(240, 15%, 20%, 0.4);
}
.conversation-item.active {
  background: hsla(245, 82%, 67%, 0.1);
  border-left: 3px solid var(--secondary);
}

.conv-avatar-wrapper {
  position: relative;
}
.conv-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}
.status-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-green);
  border: 2px solid var(--bg-main);
}
.status-indicator.offline {
  background: var(--text-muted);
}

.conv-details {
  flex: 1;
  min-width: 0; /* Enable text ellipsis */
}
.conv-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.conv-name-row h4 {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.conv-last-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conversation-item.unread .conv-last-msg {
  color: var(--text-main);
  font-weight: 600;
}
.unread-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-left: 5px;
}

/* Chat Main Area */
.chat-main {
  min-height: 0;
  background: hsla(240, 18%, 8%, 0.5);
  backdrop-filter: var(--glass-backdrop);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chat-window-header {
  flex-shrink: 0;
  padding: 16px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}
.chat-user-desc h4 {
  font-size: 1rem;
  font-weight: 600;
}
.chat-user-desc p {
  font-size: 0.75rem;
}
.chat-action-icons {
  display: flex;
  gap: 15px;
}
.chat-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.chat-action-btn:hover {
  color: var(--text-main);
}
.chat-action-btn#btn-delete-chat:hover {
  color: var(--accent-red);
  filter: drop-shadow(0 0 4px var(--accent-red-glow));
}

/* Empty chat state placeholder */
.chat-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  text-align: center;
  color: var(--text-muted);
  animation: fadeIn 0.4s ease-out;
}
.chat-empty-state i {
  width: 56px;
  height: 56px;
  color: var(--primary);
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}
.chat-empty-state p {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}
.chat-empty-state span {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.4;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Message Bubbles */
.message-bubble {
  max-width: 60%;
  display: flex;
  flex-direction: column;
}
.message-bubble.incoming {
  align-self: flex-start;
}
.message-bubble.outgoing {
  align-self: flex-end;
}
.msg-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  margin-left: 6px;
}
.message-bubble.outgoing .msg-meta {
  text-align: right;
  margin-right: 6px;
}
.msg-text-box {
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.message-bubble.incoming .msg-text-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px;
}
.message-bubble.outgoing .msg-text-box {
  background: var(--gradient-primary);
  color: var(--text-main);
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Quiz system custom block inside chat */
.quiz-invite-card {
  background: hsla(245, 82%, 67%, 0.1);
  border: 1.5px dashed var(--secondary);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  align-self: center;
  max-width: 420px;
  margin: 15px 0;
}
.quiz-invite-card h4 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.quiz-invite-card h4 i {
  color: var(--secondary);
}
.quiz-invite-card p {
  font-size: 0.8rem;
  margin-bottom: 15px;
}

/* Interactive panel */
.chat-utilities {
  flex-shrink: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 10px 16px;
}
.utility-row {
  display: flex;
  gap: 10px;
}

.icebreaker-box {
  margin-top: 10px;
  background: hsla(40, 95%, 60%, 0.08);
  border: 1px solid hsla(40, 95%, 60%, 0.3);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  animation: slideUp 0.3s ease-out;
}
.icebreaker-box p {
  font-size: 0.85rem;
  color: var(--text-main);
  font-style: italic;
}

.quiz-box {
  margin-top: 10px;
  background: hsla(240, 15%, 8%, 0.95);
  border: 1px solid var(--secondary);
  border-radius: 16px;
  padding: 20px;
  animation: slideUp 0.3s ease-out;
  position: relative;
}
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}
.quiz-header h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
}
.btn-close-quiz {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}
.quiz-question {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.quiz-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.quiz-choice-btn {
  background: hsla(240, 15%, 15%, 0.8);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s;
}
.quiz-choice-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}
.quiz-score-show {
  text-align: center;
  padding: 15px 0;
}
.quiz-score-show h3 {
  font-size: 1.5rem;
  color: var(--accent-green);
  margin-bottom: 8px;
}

.hidden {
  display: none !important;
}

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

/* Chat Input bar */
.chat-input-form {
  display: flex;
  background: var(--bg-card);
  padding: 12px 16px;
  border-top: 1px solid var(--border-color);
  gap: 12px;
}
.chat-input-form input {
  flex: 1;
  background: hsla(240, 15%, 8%, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: var(--text-main);
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.chat-input-form input:focus {
  outline: none;
  border-color: var(--primary);
}

/* --- SCREEN 6: Premium Paywall --- */
.premium-checkout-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  padding: 40px 0;
  min-height: calc(100vh - 180px);
}

.premium-info-column {
  align-self: center;
}
.premium-badge-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-gold);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}
.premium-info-column h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}
.premium-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 25px;
}
.premium-price .period {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.premium-benefits-list {
  list-style: none;
  margin-bottom: 35px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.premium-benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.premium-benefits-list li i {
  color: var(--accent-gold);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.premium-benefits-list li strong {
  color: var(--text-main);
}
.premium-disclaimer {
  font-size: 0.8rem;
  border-left: 2px solid var(--accent-gold);
  padding-left: 15px;
}

/* Checkout Form styling */
.premium-checkout-column {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-backdrop);
}
.premium-checkout-column h3 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.checkout-subtitle {
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.payment-methods {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.payment-method-btn {
  flex: 1;
  background: hsla(240, 15%, 8%, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.payment-method-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
}
.payment-method-btn.active {
  border-color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.06);
  color: var(--accent-gold);
}

.input-icon-wrapper {
  position: relative;
}
.input-icon-wrapper input {
  padding-right: 40px;
}
.input-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  margin: 24px 0;
  font-size: 0.95rem;
}
.checkout-total strong {
  font-size: 1.2rem;
  color: var(--accent-gold);
}

.checkout-security-notice {
  font-size: 0.75rem;
  text-align: center;
  margin-top: 16px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.checkout-security-notice i {
  width: 14px;
  height: 14px;
}

/* --- MODAL SYSTEM --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  transition: opacity 0.3s;
  overflow-y: auto;
  padding: 40px 16px;
}
.modal.active {
  display: flex;
  opacity: 1;
}
.modal-content {
  background: var(--gradient-dark);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transform: scale(0.95);
  transition: transform 0.3s;
  margin: auto;
}
.modal.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.modal-header h2 {
  font-size: 1.35rem;
}
.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}
.btn-close-modal:hover {
  color: var(--text-main);
}

.modal-alt-text {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 15px;
}
.modal-alt-text a {
  color: var(--primary);
  text-decoration: none;
}
.modal-alt-text a:hover {
  text-decoration: underline;
}

/* --- TOAST SYSTEM --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: var(--glass-backdrop);
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  min-width: 280px;
}
.toast.success {
  border-left-color: var(--accent-green);
}
.toast.info {
  border-left-color: var(--secondary);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- Identity Verification Styles --- */
.verification-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeIn 0.4s ease-out;
}
.verification-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.doc-type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.doc-type-btn {
  background: hsla(240, 15%, 8%, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}
.doc-type-btn i {
  width: 24px;
  height: 24px;
  color: var(--secondary);
}
.doc-type-btn:hover {
  border-color: var(--text-muted);
  background: hsla(240, 15%, 15%, 0.8);
}
.doc-type-btn.selected {
  border-color: var(--primary);
  background: hsla(330, 85%, 60%, 0.08);
  box-shadow: 0 0 12px var(--primary-glow);
}
.doc-type-btn.selected i {
  color: var(--primary);
}

.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  background: hsla(240, 15%, 8%, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: hsla(330, 85%, 60%, 0.04);
}
.upload-zone i {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}
.upload-zone:hover i {
  color: var(--primary);
  animation: bounce 1s infinite alternate;
}
.upload-zone h4 {
  font-size: 1rem;
  color: var(--text-main);
}
.upload-zone p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.verification-actions-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}

/* Camera Simulator */
.camera-simulator {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.camera-viewfinder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.camera-guide-box {
  width: 80%;
  height: 70%;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camera-guide-box::before {
  content: 'Ausweis hier platzieren';
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.6);
  padding: 4px 8px;
  border-radius: 4px;
}
.camera-overlay-controls {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 2;
}
.btn-shutter {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--text-main);
  border: 4px solid var(--border-color);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.2s;
}
.btn-shutter:hover {
  transform: scale(1.1);
  background: var(--primary);
}

.document-preview-box {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  background: hsla(240, 15%, 8%, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.simulated-doc {
  width: 100%;
  max-width: 320px;
  height: 180px;
  background: linear-gradient(135deg, hsl(240, 15%, 25%) 0%, hsl(240, 15%, 15%) 100%);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.simulated-doc::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: rotate(30deg);
  animation: shine 4s infinite linear;
}
.sim-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}
.sim-doc-flag {
  font-size: 0.65rem;
  background: var(--secondary);
  color: var(--text-main);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.sim-doc-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sim-doc-body {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1;
  padding: 10px 0;
}
.sim-doc-photo {
  width: 50px;
  height: 60px;
  background: hsla(240, 15%, 5%, 0.8);
  border: 1.5px solid var(--border-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
}
.sim-doc-photo i {
  width: 24px;
  height: 24px;
}
.sim-doc-details {
  flex: 1;
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sim-doc-details strong {
  color: var(--text-main);
}
.sim-doc-footer {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.25);
  font-family: monospace;
  letter-spacing: 0.1em;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 6px;
}

.verification-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 15px;
  background: hsla(240, 15%, 8%, 0.4);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}
.verification-checkbox-container input {
  margin-top: 4px;
  cursor: pointer;
}
.verification-checkbox-container label {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  cursor: pointer;
}
.verification-checkbox-container label strong {
  color: var(--text-main);
}

.verified-icon-gold i {
  width: 18px;
  height: 18px;
  fill: var(--accent-gold);
  color: var(--text-dark);
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}
@keyframes shine {
  from { transform: translate(-30%, -30%) rotate(30deg); }
  to { transform: translate(30%, 30%) rotate(30deg); }
}

/* --- Responsive Adaptations --- */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
    text-align: center;
  }
  .hero-content h1 {
    font-size: 2.75rem;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  
  .onboarding-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .onboarding-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 20px;
    flex-direction: row;
    align-items: center;
  }
  .onboarding-steps {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  .sidebar-quote {
    display: none;
  }
  
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  
  .profile-detail-layout {
    grid-template-columns: 1fr;
  }
  .profile-sticky-card {
    position: static;
  }
  
  .chat-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 100%;
    height: calc(100vh - 120px) !important;
  }
  .chat-layout.show-sidebar .chat-sidebar {
    display: flex;
    width: 100%;
  }
  .chat-layout.show-sidebar .chat-main {
    display: none;
  }
  .chat-layout.show-chat .chat-sidebar {
    display: none;
  }
  .chat-layout.show-chat .chat-main {
    display: flex;
    width: 100%;
  }
  
  .premium-checkout-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.chat-back-btn {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-main);
  padding: 8px;
  margin-right: 8px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s;
}
.chat-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.chat-back-btn i {
  width: 20px;
  height: 20px;
}

@media (max-width: 576px) {
  .header-actions .btn {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
  .main-nav span {
    display: none;
  }
  .main-nav .nav-item {
    padding: 8px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .col-6 {
    flex: 0 0 100%;
  }
  .logo-text {
    display: none;
  }
  .logo {
    gap: 0;
  }
  .chat-back-btn {
    display: flex !important;
  }
  .modal-content {
    padding: 24px 20px;
    border-radius: 20px;
  }
  
  /* Hero section mobile adjustments */
  .hero-content h1 {
    font-size: 2.1rem !important;
    word-break: break-word;
  }
  .hero-lead {
    font-size: 1rem;
    margin-bottom: 25px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-stats {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }
  .stat-divider {
    display: none;
  }
  .stat-item {
    align-items: center;
    text-align: center;
  }
  
  /* Premium details text sizing */
  .premium-info-column h2 {
    font-size: 1.85rem !important;
  }
}

/* --- Marketing & Privacy Sektion --- */
.marketing-security-section {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

.marketing-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.marketing-copy-col {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.marketing-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.security-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.security-check-list li {
  display: flex;
  gap: 16px;
}

.security-list-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: hsla(245, 82%, 67%, 0.1);
  border: 1px solid var(--secondary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
}

.security-check-list li i {
  width: 20px;
  height: 20px;
}

.security-check-list li strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.security-check-list li p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.marketing-showcase-col {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-main);
}

.showcase-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mock-question-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mock-card {
  background: hsla(240, 15%, 8%, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.3s ease;
}

.mock-card-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

.mock-card-cat i {
  width: 12px;
  height: 12px;
}

.mock-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

.mock-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-opt-btn {
  background: hsla(240, 15%, 15%, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mock-opt-btn.selected {
  border-color: var(--primary);
  background: hsla(330, 85%, 60%, 0.08);
  color: var(--text-main);
  font-weight: 600;
}

.mock-opt-btn.selected i {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

/* Card Glows */
.mock-card.card-glow-pink:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px hsla(330, 85%, 60%, 0.15);
}

.mock-card.card-glow-indigo:hover {
  border-color: var(--secondary);
  box-shadow: 0 4px 20px hsla(245, 82%, 67%, 0.15);
}

.mock-card.card-glow-rose:hover {
  border-color: hsl(350, 80%, 60%);
  box-shadow: 0 4px 20px hsla(350, 80%, 60%, 0.15);
}

.showcase-cta {
  text-align: center;
  padding-top: 10px;
}

.cta-shield-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: hsla(40, 95%, 60%, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.cta-shield-text i {
  width: 14px;
  height: 14px;
}

/* Media Query Adaptations for new section */
@media (max-width: 992px) {
  .marketing-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* --- ADMIN MODERATION PANEL STYLING --- */
#screen-admin {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
  margin-top: 20px;
}

.admin-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.admin-header h2 {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
}

.admin-table-container {
  overflow-x: auto;
  margin-top: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table th {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.admin-table tbody tr:hover {
  background: hsla(240, 15%, 18%, 0.4);
}

.admin-user-info strong {
  font-size: 1rem;
  color: var(--text-main);
  display: block;
}

.admin-user-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-user-details span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-user-details strong {
  color: var(--text-main);
}

.admin-doc-preview-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.admin-doc-preview-link:hover {
  color: var(--text-main);
}

.admin-actions-btns {
  display: flex;
  gap: 10px;
}

.admin-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  gap: 16px;
}

.admin-empty-state h3 {
  font-size: 1.5rem;
  color: var(--text-main);
}

.admin-empty-state p {
  color: var(--text-muted);
}

/* Lightbox Modal Custom Layout */
.lightbox-modal {
  animation: fadeIn 0.3s ease-out;
}

.lightbox-content {
  animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Footer & Legal Modals adjustments */
.main-footer {
  margin-top: auto;
  padding: 40px 20px;
  border-top: 1px solid var(--border-color);
  background: hsla(240, 18%, 8%, 0.5);
  backdrop-filter: var(--glass-backdrop);
}

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

.footer-container p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

/* --- PROFILE PAGE EDITING STYLES --- */
#screen-profile {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: var(--glass-backdrop);
  box-shadow: var(--glass-shadow);
  margin-top: 20px;
}

.profile-page-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.profile-header h2 {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
}

.profile-page-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

.profile-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.profile-avatar-card {
  background: hsla(240, 15%, 8%, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-avatar-big {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  margin-bottom: 15px;
  box-shadow: 0 0 20px var(--primary-glow);
}

.profile-avatar-big i {
  width: 36px;
  height: 36px;
}

.profile-avatar-card h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.profile-avatar-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.profile-nav-tabs .btn {
  text-align: left;
  justify-content: flex-start;
  padding: 12px 20px;
}

.profile-nav-tabs .btn.active {
  background: var(--gradient-primary);
  color: var(--text-main);
  border-color: transparent;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.profile-section-card {
  background: hsla(240, 15%, 8%, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 24px;
}

.profile-section-card h3 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.profile-tab-pane {
  display: none;
}

.profile-tab-pane.active {
  display: block;
}

@media (max-width: 992px) {
  .profile-page-layout {
    grid-template-columns: 1fr;
  }
}

/* Dynamic Matching Analysis Styles */
.metric-analysis {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  font-size: 0.85rem;
}

.analysis-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.analysis-row strong {
  color: var(--text-main);
}

.match-row {
  color: #a3e635; /* Lime green */
}

.diff-row {
  color: #fb923c; /* Orange */
}

.icon-match {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  stroke: #a3e635;
}

.icon-diff {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  stroke: #fb923c;
}

.slider-val-display {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Gallery Thumbnail Styling */
.gallery-thumbnail {
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.gallery-thumbnail:hover {
  transform: scale(1.04);
  border-color: var(--primary) !important;
}

/* --- Dynamic Status & Activity Indicators --- */
.status-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-indicator-dot.online {
  background-color: var(--accent-green, #10b981);
  box-shadow: 0 0 8px var(--accent-green, #10b981);
}
.status-indicator-dot.offline {
  background-color: var(--text-muted, #9ca3af);
}

/* Green Pulse dot for Landing Page */
.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-green, #10b981);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-glow 1.8s infinite ease-in-out;
}

@keyframes pulse-glow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }

}

/* --- Plattform-Erweiterungen (7 Features) --- */

/* 1. Message checkmarks & meta info */
.message-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
  line-height: 1;
}
.message-bubble.incoming .message-meta {
  justify-content: flex-start;
  margin-left: 6px;
}
.message-bubble.outgoing .message-meta {
  justify-content: flex-end;
  margin-right: 6px;
}
.message-checkmark {
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-block;
  letter-spacing: -1px;
}
.message-checkmark.read {
  color: #0284c7; /* Soft Premium Blue */
  text-shadow: 0 0 6px rgba(2, 132, 199, 0.4);
}
.message-checkmark.sent {
  color: rgba(255, 255, 255, 0.3);
}

/* 2. Chat input container & voice recording */
.chat-input-container {
  flex-shrink: 0;
  position: relative;
  width: 100%;
}
.chat-recording-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 10;
  backdrop-filter: blur(10px);
}
.recording-dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  animation: recording-pulse 0.8s infinite alternate;
}
@keyframes recording-pulse {
  from { transform: scale(0.85); opacity: 0.5; }
  to { transform: scale(1.2); opacity: 1; }
}
.recording-text {
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
}
.recording-timer {
  font-size: 0.85rem;
  font-family: monospace;
  color: var(--primary);
  font-weight: 600;
  margin-left: auto;
}
.btn-chat-action-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-chat-action-btn:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
}

/* 3. Chat Search bar */
.chat-search-bar {
  flex-shrink: 0;
  background: rgba(10, 10, 12, 0.4);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px;
  transition: all 0.3s ease;
}
.chat-search-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 4px 12px;
}
.chat-search-wrapper input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.85rem;
  flex-grow: 1;
  padding: 4px 0;
}
.chat-search-wrapper .search-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}
.btn-close-search {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-close-search:hover {
  color: var(--primary);
}
mark.chat-search-highlight {
  background: #f59e0b;
  color: #000;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
}

/* 4. Match Highlights badges on cards */
.compat-highlight-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  margin-bottom: 12px;
  width: 100%;
}
.compat-badge-pill {
  font-size: 0.72rem;
  background: hsla(240, 5%, 20%, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}
.compat-badge-pill:hover {
  background: hsla(330, 85%, 60%, 0.12);
  border-color: rgba(244, 63, 94, 0.25);
  color: var(--text-main);
}

/* 5. Prompts in details card */
.profile-prompts-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
}
.profile-prompt-card {
  background: hsla(240, 10%, 15%, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: var(--glass-backdrop);
}
.prompt-question {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.prompt-answer {
  font-size: 1rem;
  color: var(--text-main);
  font-style: italic;
  line-height: 1.5;
}

/* Prompts editor form */
.prompt-edit-row {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: all 0.2s;
}
.prompt-edit-row:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
.btn-remove-prompt {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-remove-prompt:hover {
  color: #f43f5e;
}

/* 6. Message media content */
.message-bubble img.chat-inline-image {
  max-width: 260px;
  max-height: 200px;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  margin-top: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease;
}
.message-bubble img.chat-inline-image:hover {
  transform: scale(1.02);
  border-color: var(--primary);
}
.message-bubble audio.chat-inline-audio {
  display: none;
}

/* Custom Audio Player */
.custom-audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 10, 12, 0.45);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 30px;
  margin-top: 6px;
  width: 260px;
  max-width: 100%;
  backdrop-filter: var(--glass-backdrop);
}
.audio-play-btn {
  background: var(--gradient-primary);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  box-shadow: 0 4px 10px var(--primary-glow);
  flex-shrink: 0;
}
.audio-play-btn:hover {
  transform: scale(1.08);
}
.audio-play-btn i {
  width: 14px;
  height: 14px;
}
.audio-progress-container {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
.audio-progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  width: 0%;
}
.audio-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: monospace;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Override custom audio player elements inside outgoing bubble to look Harmonious */
.message-bubble.outgoing .custom-audio-player {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
}
.message-bubble.outgoing .audio-play-btn {
  background: var(--text-main);
  color: var(--primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.message-bubble.outgoing .audio-progress-bar {
  background: var(--text-main);
}
.message-bubble.outgoing .audio-time {
  color: rgba(255, 255, 255, 0.8);
}

/* Typing Dots Indicator */
.typing-indicator-bubble .msg-text-box {
  padding: 12px 18px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
}
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 14px;
}
.typing-dots .dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-dot-bounce 1.4s infinite ease-in-out;
}
.typing-dots .dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dots .dot:nth-child(2) { animation-delay: -0.16s; }

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

/* Premium Chat Notification Toast */
.toast.chat-notification {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: var(--glass-backdrop);
  transition: transform 0.2s, border-color 0.2s;
  pointer-events: auto; /* Enable click events */
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast.chat-notification:hover {
  transform: scale(1.03);
  border-color: var(--primary);
}

/* 7. Voice recording overlay control buttons */
.chat-recording-overlay .btn-recording-action {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-recording-overlay .btn-recording-action i {
  width: 14px;
  height: 14px;
}

.chat-recording-overlay .btn-recording-action.discard {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.chat-recording-overlay .btn-recording-action.discard:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: scale(1.08);
}

.chat-recording-overlay .btn-recording-action.submit {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.chat-recording-overlay .btn-recording-action.submit:hover {
  background: rgba(16, 185, 129, 0.3);
  transform: scale(1.08);
}

/* --- ADMIN MEDIA LIBRARY SYSTEM --- */
.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-backdrop);
}
.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}
.media-card-preview {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.media-card-audio-preview {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-card-info {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.media-card-info strong {
  font-size: 0.85rem;
  color: var(--text-main);
}
.media-card-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.media-card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 8px;
  color: white;
  background: rgba(0, 0, 0, 0.6);
}
.media-card-tag.image {
  background: hsla(210, 80%, 50%, 0.75);
}
.media-card-tag.audio {
  background: hsla(280, 80%, 55%, 0.75);
}
.media-card-tag.gallery {
  background: hsla(330, 80%, 55%, 0.75);
}
.media-card-action-btn {
  margin-top: 8px;
  width: 100%;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}
.media-card-action-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* --- Premium Theme Selection Styling --- */
#theme-selector-grid .theme-option {
  cursor: pointer;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

#theme-selector-grid .theme-option span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

#theme-selector-grid .theme-option.active {
  border-color: var(--primary) !important;
  background: rgba(255, 255, 255, 0.06);
}

#theme-selector-grid .theme-option.active span {
  color: #fff;
}

#theme-selector-grid .theme-option:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Switch toggle slider styling */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  flex-shrink: 0;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-toggle {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .4s;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.slider-toggle:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.switch-toggle input:checked + .slider-toggle {
  background-color: var(--primary);
  border-color: var(--primary);
}

.switch-toggle input:checked + .slider-toggle:before {
  transform: translateX(24px);
}

/* --- Premium Themes & Background Gradients --- */

/* Neon Horizon */
.theme-neon {
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.1) 0%, rgba(127, 0, 255, 0.1) 100%), var(--bg-main) !important;
}
.theme-neon .detail-card, 
.theme-neon .detail-section-card,
.theme-neon.preview-card {
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.04) 0%, rgba(127, 0, 255, 0.04) 100%), rgba(20, 20, 25, 0.85) !important;
  border: 1px solid rgba(255, 0, 127, 0.25) !important;
  box-shadow: 0 8px 32px 0 rgba(127, 0, 255, 0.15) !important;
}

/* Midnight Violet */
.theme-midnight {
  background: linear-gradient(135deg, rgba(30, 0, 48, 0.35) 0%, rgba(0, 0, 0, 0.7) 100%), var(--bg-main) !important;
}
.theme-midnight .detail-card,
.theme-midnight .detail-section-card,
.theme-midnight.preview-card {
  background: rgba(18, 10, 28, 0.85) !important;
  border: 1px solid rgba(127, 0, 255, 0.2) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
}

/* Golden Aura */
.theme-gold {
  background: linear-gradient(135deg, rgba(170, 119, 28, 0.08) 0%, rgba(251, 245, 183, 0.03) 50%, rgba(170, 119, 28, 0.08) 100%), var(--bg-main) !important;
}
.theme-gold .detail-card,
.theme-gold .detail-section-card,
.theme-gold.preview-card {
  background: linear-gradient(135deg, rgba(170, 119, 28, 0.03) 0%, rgba(251, 245, 183, 0.01) 100%), rgba(22, 20, 15, 0.85) !important;
  border: 1px solid rgba(170, 119, 28, 0.25) !important;
  box-shadow: 0 8px 32px 0 rgba(170, 119, 28, 0.1) !important;
}

/* Emerald Glade */
.theme-emerald {
  background: linear-gradient(135deg, rgba(5, 117, 230, 0.08) 0%, rgba(0, 242, 96, 0.08) 100%), var(--bg-main) !important;
}
.theme-emerald .detail-card,
.theme-emerald .detail-section-card,
.theme-emerald.preview-card {
  background: linear-gradient(135deg, rgba(5, 117, 230, 0.03) 0%, rgba(0, 242, 96, 0.03) 100%), rgba(15, 22, 20, 0.85) !important;
  border: 1px solid rgba(0, 242, 96, 0.25) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 242, 96, 0.1) !important;
}

/* --- Proximity Radar Sweep & Dot Animations --- */
@keyframes radar-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-sweep {
  animation: radar-rotate 4s linear infinite;
}

.radar-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-gold);
  transform: translate(-50%, -50%);
  animation: radar-dot-fade 2.5s infinite ease-in-out;
}

@keyframes radar-dot-fade {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  30% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
  100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.9); }
}

@keyframes blink {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

#webrtc-call-modal #local-video {
  transform: scaleX(-1); /* mirror local video stream */
}

/* ==========================================
   MOBILE RESPONSIVENESS & SIGNAL CHAT REDESIGN
   ========================================== */

/* 1. Signal-Style Message Bubbles (Globally Applied) */
.message-bubble {
  max-width: 75% !important;
}
.message-bubble.incoming .msg-text-box {
  border-radius: 18px 18px 18px 4px !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}
.message-bubble.outgoing .msg-text-box {
  border-radius: 18px 18px 4px 18px !important;
  background: var(--gradient-primary) !important;
  border: none !important;
  box-shadow: 0 4px 12px var(--primary-glow) !important;
}
.msg-text-box p {
  margin: 0;
  word-break: break-word;
}
.msg-meta {
  display: none !important; /* Hide redundant "Du / Name" tags above 1-on-1 bubbles */
}

/* 2. Sleek Input Pill Layout & Fallbacks (Globally Applied) */
.chat-input-form {
  display: flex !important;
  background: transparent !important;
  border-top: none !important;
  padding: 10px 16px !important;
  gap: 10px !important;
  align-items: center !important;
  width: 100% !important;
}
.chat-input-pill {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  background: hsla(240, 15%, 8%, 0.85) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 28px !important;
  padding: 4px 8px !important;
  gap: 6px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  min-width: 0 !important;
}
.chat-input-pill:focus-within {
  border-color: var(--primary) !important;
  box-shadow: 0 0 8px var(--primary-glow) !important;
}
.chat-input-pill input {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  padding: 8px 12px !important;
  color: var(--text-main) !important;
  outline: none !important;
  font-size: 0.95rem !important;
  min-width: 0 !important;
}

/* Specific button style for send circle (fallback-friendly) */
#btn-send-message, .btn-send-circle {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  background: var(--gradient-primary) !important;
  color: var(--text-main) !important;
  box-shadow: 0 4px 12px var(--primary-glow) !important;
  border: none !important;
  transition: transform 0.2s, opacity 0.2s !important;
}
#btn-send-message:hover, .btn-send-circle:hover {
  transform: scale(1.05) !important;
}
#btn-send-message i, #btn-send-message svg,
.btn-send-circle i, .btn-send-circle svg {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

/* Spacing and flex overrides for fallback items if old HTML is cached */
#chat-message-input {
  flex: 1 !important;
  min-width: 0 !important;
}
#btn-chat-attach, #btn-chat-voice {
  flex-shrink: 0 !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 3. Back Button Stack Visibility Fix */
@media (max-width: 992px) {
  .chat-back-btn {
    display: flex !important;
  }
}

/* 4. Bottom Tab Bar and Responsive Viewports (max-width: 992px) */
@media (max-width: 992px) {
  /* Move navigation menu to bottom tab bar */
  .main-header .main-nav {
    display: none !important;
  }
  .main-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: rgba(10, 10, 12, 0.92) !important;
    border-top: 1px solid var(--border-color) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 8px !important;
    z-index: 1000 !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
  }
  .main-nav .nav-item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    padding: 6px 0 !important;
    background: none !important;
    border: none !important;
    color: var(--text-muted) !important;
    font-size: 0.68rem !important;
    box-shadow: none !important;
    transition: color 0.2s !important;
    border-radius: 0 !important;
  }
  .main-nav .nav-item i, .main-nav .nav-item svg {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
  }
  .main-nav .nav-item span {
    display: block !important;
  }
  .main-nav .nav-item.active {
    color: var(--primary) !important;
    font-weight: 600 !important;
  }
  
  /* Reset offset for general app container */
  .app-container {
    margin-top: 72px !important;
    margin-bottom: 60px !important;
    padding: 16px !important;
    min-height: calc(100dvh - 132px) !important;
  }
  
  /* Collapsible Filters Drawer on Discover Feed */
  .dashboard-sidebar {
    display: none;
    background: rgba(20, 20, 25, 0.7) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    box-shadow: var(--glass-shadow) !important;
  }
  .dashboard-sidebar.active-mobile {
    display: block !important;
    animation: slideDown 0.3s ease-out forwards;
  }
  .mobile-filter-btn {
    display: inline-flex !important;
    margin-top: 12px !important;
    width: 100% !important;
  }
  
  /* Form inputs stack spacing fix */
  .form-row {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .col-6 {
    flex: 0 0 100% !important;
  }
  
  /* Mobile-only duplicated profile save buttons */
  .mobile-only-save-container {
    display: block !important;
  }
  
  /* Chat window header details truncation to prevent icons overflow */
  .chat-user-info {
    min-width: 0 !important;
    flex: 1 !important;
  }
  .chat-user-desc {
    min-width: 0 !important;
    flex: 1 !important;
  }
  .chat-user-desc h4 {
    font-size: 0.95rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
  }
  .chat-user-desc p {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.7rem !important;
    margin: 2px 0 0 0 !important;
  }
  .chat-action-icons {
    gap: 8px !important;
  }
  .chat-action-btn {
    padding: 4px !important;
  }
  .chat-action-btn i, .chat-action-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* 5. Edge-to-edge Viewport inside Active Chat on Mobile */
@media (max-width: 992px) {
  /* Lock body viewport scroll to prevent scroll-jacking under chat screen */
  body.chat-active-mobile {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  body.chat-active-mobile .main-header,
  body.chat-active-mobile .main-nav,
  body.chat-active-mobile .main-footer {
    display: none !important;
  }
  body.chat-active-mobile .app-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
  body.chat-active-mobile #screen-chat {
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  body.chat-active-mobile #chat-layout {
    height: 100dvh !important;
    max-height: 100dvh !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
  }
  body.chat-active-mobile .chat-main {
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    width: 100% !important;
  }
  body.chat-active-mobile .chat-messages {
    padding: 16px !important;
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}



