/* ==========================================================================
   Guru Friends | Romantasy Lounge — Telegram Mini App (TMA)
   Design System: Ultra-Polished Dark-Velvet Glassmorphism
   Target: Standalone Browser & Telegram WebApp (iOS / Android / Desktop)
   ========================================================================== */

:root {
  /* Deep Velvet Wine & Midnight Sanctuary Tones */
  --bg-obsidian: #12050E;
  --bg-velvet: #1F0717;
  --bg-card-glass: rgba(31, 7, 23, 0.78);
  --bg-card-glass-hover: rgba(45, 12, 34, 0.88);
  --bg-modal-glass: rgba(18, 5, 14, 0.96);
  
  /* Sensual Crimson Glow & Champagne Rose Gold Accents */
  --crimson-glow: #BE123C;
  --crimson-glow-bright: #E11D48;
  --rose-glow: #E11D48;
  --rose-glow-muted: rgba(225, 29, 72, 0.35);
  --champagne-rose: #F3C5B6;
  --champagne-muted: rgba(243, 197, 182, 0.3);
  --orchid-glow: #BE123C;
  --orchid-glow-muted: rgba(190, 18, 60, 0.3);
  --gold-glow: #F3C5B6;
  --gold-antique: #F59E0B;
  --gold-glow-muted: rgba(243, 197, 182, 0.35);
  --amber-candle: #F59E0B;
  --emerald-poison: #10b981;
  --emerald-glow-muted: rgba(16, 185, 129, 0.3);
  --crimson-blood: #BE123C;
  --crimson-glow-muted: rgba(190, 18, 60, 0.35);

  /* Typography & High-Contrast Accents */
  --text-main: #FFF1F2;
  --text-muted: #F3C5B6;
  --text-dim: #B99B9E;
  --text-gold: #F3C5B6;

  /* Gradients */
  --accent-gradient: linear-gradient(135deg, #BE123C 0%, #E11D48 50%, #F3C5B6 100%);
  --champagne-gradient: linear-gradient(135deg, #F3C5B6 0%, #F59E0B 100%);
  --gold-gradient: linear-gradient(135deg, #F3C5B6 0%, #F59E0B 100%);
  --velvet-gradient: linear-gradient(165deg, rgba(31, 7, 23, 0.92) 0%, rgba(18, 5, 14, 0.98) 100%);
  --card-border-gradient: linear-gradient(135deg, rgba(225, 29, 72, 0.5) 0%, rgba(243, 197, 182, 0.35) 50%, rgba(245, 158, 11, 0.4) 100%);

  /* Typography Families */
  --font-serif: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Physics & Layout Metrics */
  --card-radius: 28px;
  --modal-radius: 24px;
  --pill-radius: 20px;
  --glass-blur: blur(20px);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* ==========================================================================
   Celestial Starlight Particle Canvas & Ambient Background Orbs
   ========================================================================== */
.celestial-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.stars-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 120px 180px, #ffd166, rgba(0,0,0,0)),
    radial-gradient(1px 1px at 240px 70px, #ff2a7a, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 320px 280px, #ffffff, rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 450px 120px, #9b1fe8, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 380px 380px;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  top: -90px;
  right: -90px;
  width: 360px;
  height: 360px;
  background: rgba(155, 31, 232, 0.28);
}

.orb-2 {
  bottom: 8%;
  left: -90px;
  width: 340px;
  height: 340px;
  background: rgba(255, 42, 122, 0.22);
  animation-duration: 22s;
  animation-direction: alternate-reverse;
}

.orb-3 {
  top: 45%;
  right: -120px;
  width: 280px;
  height: 280px;
  background: rgba(255, 209, 102, 0.12);
  animation-duration: 26s;
}

@keyframes floatOrb {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -40px, 0) scale(1.08); }
  100% { transform: translate3d(-20px, 30px, 0) scale(0.95); }
}

/* ==========================================================================
   App Container & Safe Area Handling
   ========================================================================== */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(48px + env(safe-area-inset-bottom, 0px));
}

/* ==========================================================================
   Header & Sanctuary Crest
   ========================================================================== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.brand-crest {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 42, 122, 0.2) 0%, rgba(155, 31, 232, 0.2) 100%);
  border: 1px solid var(--rose-glow-muted);
  box-shadow: 0 0 20px rgba(255, 42, 122, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  position: relative;
  overflow: hidden;
}

.brand-crest .crest-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.brand-crest::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: var(--card-border-gradient);
  z-index: -1;
  opacity: 0.5;
}

.brand-titles {
  flex: 1;
  margin-left: 12px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 2px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
}

.brand-subtitle {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.8px;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
}

.vip-pill {
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.45);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-glow);
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.2);
  transition: transform 0.2s ease;
}

.vip-pill:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Navigation Tabs (Glassmorphic)
   ========================================================================== */
.nav-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  background: rgba(18, 8, 36, 0.82);
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(6, 2, 14, 0.7);
}

.nav-btn {
  background: transparent;
  border: none;
  padding: 9px 4px;
  border-radius: 12px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-btn .nav-icon {
  font-size: 17px;
  transition: transform 0.25s ease;
}

.nav-btn:hover {
  color: var(--text-main);
}

.nav-btn.active {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(255, 42, 122, 0.45);
}

.nav-btn.active .nav-icon {
  transform: scale(1.15);
}

.nav-btn:active {
  transform: scale(0.96);
}

/* Tab Content Visibility & Animation */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: tabTransitionIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tabTransitionIn {
  0% { opacity: 0; transform: translateY(12px) scale(0.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.section-title-wrap {
  margin-bottom: 18px;
}

.section-title-wrap h2 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
}

.section-title-wrap p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.45;
}

/* ==========================================================================
   MODULE 1: 3D Tilt Dating Card Studio
   ========================================================================== */

/* Finish Palette Selector Bar */
.palette-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 8, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 12px;
  margin-bottom: 16px;
  backdrop-filter: blur(12px);
}

.palette-bar-label {
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gold-glow);
}

.palette-selector-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.palette-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.palette-pill:hover {
  background: rgba(255, 255, 255, 0.1);
}

.palette-pill.active {
  border-color: var(--gold-glow);
  background: rgba(255, 209, 102, 0.16);
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.3);
}

.palette-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot-obsidian { background: #ff2a7a; box-shadow: 0 0 6px #ff2a7a; }
.dot-orchid { background: #9b1fe8; box-shadow: 0 0 6px #9b1fe8; }
.dot-gold { background: #ffd166; box-shadow: 0 0 6px #ffd166; }
.dot-emerald { background: #10b981; box-shadow: 0 0 6px #10b981; }
.dot-blood { background: #e11d48; box-shadow: 0 0 6px #e11d48; }

.palette-name {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

/* 3D Tilt Perspective Container */
.card-preview-wrapper {
  perspective: 1000px;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
}

.card-preview {
  width: 100%;
  border-radius: var(--card-radius);
  padding: 24px 20px 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out, box-shadow 0.25s ease;
}

/* Specular Glare Overlay */
.specular-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--glare-x, 50%) var(--glare-y, 50%),
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 42, 122, 0.15) 30%,
    transparent 70%
  );
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: var(--glare-opacity, 0);
  transition: opacity 0.3s ease;
  z-index: 5;
  border-radius: inherit;
}

/* Palette Finishes */
.card-preview.palette-obsidian {
  background: linear-gradient(165deg, rgba(38, 16, 68, 0.88) 0%, rgba(14, 6, 30, 0.96) 100%);
  border: 2px solid rgba(255, 42, 122, 0.45);
  box-shadow: 0 18px 40px rgba(10, 3, 20, 0.85), 0 0 28px rgba(255, 42, 122, 0.22);
}

.card-preview.palette-orchid {
  background: linear-gradient(165deg, rgba(28, 12, 54, 0.9) 0%, rgba(10, 4, 22, 0.98) 100%);
  border: 2px solid rgba(155, 31, 232, 0.5);
  box-shadow: 0 18px 40px rgba(10, 3, 20, 0.85), 0 0 28px rgba(155, 31, 232, 0.28);
}

.card-preview.palette-gold {
  background: linear-gradient(165deg, rgba(40, 26, 8, 0.9) 0%, rgba(15, 10, 3, 0.98) 100%);
  border: 2px solid rgba(255, 209, 102, 0.55);
  box-shadow: 0 18px 40px rgba(10, 3, 20, 0.85), 0 0 28px rgba(255, 209, 102, 0.26);
}

.card-preview.palette-emerald {
  background: linear-gradient(165deg, rgba(7, 34, 22, 0.9) 0%, rgba(3, 16, 10, 0.98) 100%);
  border: 2px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 18px 40px rgba(10, 3, 20, 0.85), 0 0 28px rgba(16, 185, 129, 0.25);
}

.card-preview.palette-blood {
  background: linear-gradient(165deg, rgba(46, 8, 18, 0.9) 0%, rgba(18, 3, 7, 0.98) 100%);
  border: 2px solid rgba(225, 29, 72, 0.55);
  box-shadow: 0 18px 40px rgba(10, 3, 20, 0.85), 0 0 28px rgba(225, 29, 72, 0.28);
}

.card-glass-glow {
  position: absolute;
  top: -45px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 90px;
  background: radial-gradient(circle, rgba(255, 42, 122, 0.35) 0%, transparent 70%);
  filter: blur(25px);
  pointer-events: none;
}

/* Card Header Crest */
.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-edition-badge {
  font-family: var(--font-serif);
  font-size: 9.5px;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  font-weight: 700;
}

.card-top-badge {
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.5);
  border-radius: 20px;
  padding: 3px 12px;
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-glow);
  text-shadow: 0 0 8px rgba(255, 209, 102, 0.4);
}

.card-realm-sigil {
  font-size: 14px;
}

/* Avatar Circle */
.card-avatar-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 3px solid var(--rose-glow);
  box-shadow: 0 0 24px rgba(255, 42, 122, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 12px;
  position: relative;
}

.avatar-aura-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 209, 102, 0.4);
  animation: spinAura 20s linear infinite;
}

@keyframes spinAura {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* User Identity Info */
.card-user-info {
  text-align: center;
  margin-bottom: 16px;
}

.card-user-info h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.archetype-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.archetype-motto {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: var(--text-gold);
  margin-top: 5px;
  opacity: 0.9;
}

/* Tags Grid */
.card-tags-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.card-tag-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
}

.tag-title {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: block;
}

.tag-value {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Manifesto Box */
.card-manifesto-box {
  background: rgba(12, 4, 24, 0.85);
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.manifesto-label {
  font-family: var(--font-serif);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold-glow);
  display: block;
  margin-bottom: 4px;
}

.manifesto-quote {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: #ecdfff;
  line-height: 1.45;
  word-break: break-word;
}

/* Footer Deck Actions */
.card-footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.card-action-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  user-select: none;
}

.card-action-btn:active {
  transform: scale(0.9);
}

.action-pass {
  background: rgba(255, 77, 77, 0.12);
  border: 2px solid #ff4d4d;
  color: #ff4d4d;
  font-size: 19px;
  font-weight: bold;
}

.action-star {
  width: 54px;
  height: 54px;
  background: rgba(255, 209, 102, 0.2);
  border: 2px solid var(--gold-glow);
  font-size: 24px;
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.4);
}

.action-like {
  background: rgba(255, 42, 122, 0.2);
  border: 2px solid var(--rose-glow);
  font-size: 21px;
  box-shadow: 0 0 18px rgba(255, 42, 122, 0.4);
}

.tilt-hint-pill {
  text-align: center;
  margin-bottom: 20px;
}

.tilt-hint-pill span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 14px;
  display: inline-block;
}

/* Studio Customization Form */
.form-container {
  background: var(--bg-card-glass);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--modal-radius);
  padding: 22px 18px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 30px rgba(5, 1, 12, 0.7);
}

.form-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.form-header-row h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: #ffffff;
}

.live-sync-indicator {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 8px;
  border-radius: 10px;
}

.form-row-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-group {
  margin-bottom: 14px;
  position: relative;
}

.input-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

input, select, textarea {
  width: 100%;
  background: rgba(10, 4, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--rose-glow);
  box-shadow: 0 0 12px rgba(255, 42, 122, 0.3);
}

select option {
  background: #140926;
  color: #ffffff;
}

.char-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 10px;
  color: var(--text-dim);
  pointer-events: none;
}

/* Studio Actions Grid */
.studio-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.studio-actions-grid .primary-btn {
  grid-column: span 2;
}

.primary-btn {
  width: 100%;
  background: var(--accent-gradient);
  border: none;
  border-radius: 14px;
  padding: 13px 18px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 42, 122, 0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.primary-btn:active {
  transform: scale(0.97);
}

.glow-effect:hover {
  box-shadow: 0 0 25px rgba(255, 42, 122, 0.6);
}

.export-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 8px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.export-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.export-btn:active {
  transform: scale(0.97);
}

.share-tg-btn {
  border-color: rgba(0, 136, 204, 0.4);
  color: #4dc5ff;
}

.bot-deck-btn {
  border-color: rgba(255, 209, 102, 0.4);
  color: var(--gold-glow);
}

/* ==========================================================================
   MODULE 2: 7-Question Romantasy Oracle & Tarot Synastry Quiz
   ========================================================================== */
.quiz-container {
  background: var(--bg-card-glass);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--modal-radius);
  padding: 24px 20px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 30px rgba(5, 1, 12, 0.7);
}

.quiz-header-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.quiz-question-number {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold-glow);
}

.quiz-score-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-fill {
  height: 100%;
  background: var(--accent-gradient);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(255, 42, 122, 0.5);
}

.scenario-dimension-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--orchid-glow);
  background: rgba(155, 31, 232, 0.14);
  border: 1px solid rgba(155, 31, 232, 0.4);
  padding: 3px 8px;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 10px;
}

.scenario-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  line-height: 1.45;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.quiz-option-btn:hover {
  background: rgba(255, 42, 122, 0.1);
  border-color: rgba(255, 42, 122, 0.4);
}

.quiz-option-btn:active {
  transform: scale(0.98);
  background: rgba(255, 42, 122, 0.2);
  border-color: var(--rose-glow);
}

.opt-letter-badge {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 11px;
  color: var(--gold-glow);
  background: rgba(255, 209, 102, 0.12);
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 8px;
  padding: 2px 7px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* 3D Tarot Card Draw Chamber */
.tarot-chamber {
  background: linear-gradient(165deg, rgba(32, 14, 60, 0.9) 0%, rgba(12, 5, 26, 0.96) 100%);
  border: 2px solid rgba(255, 209, 102, 0.4);
  border-radius: var(--modal-radius);
  padding: 24px 18px;
  box-shadow: 0 15px 45px rgba(6, 2, 16, 0.8), 0 0 25px rgba(255, 209, 102, 0.2);
  backdrop-filter: var(--glass-blur);
  text-align: center;
  animation: tabTransitionIn 0.4s ease;
}

.tarot-eyebrow {
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold-glow);
  display: block;
}

.tarot-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #ffffff;
  margin: 6px 0 4px;
}

.tarot-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.tarot-spread-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

/* 3D Tarot Card Flip Mechanics */
.tarot-card-scene {
  perspective: 800px;
  height: 180px;
  cursor: pointer;
}

.tarot-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  border-radius: 16px;
}

.tarot-card-scene.flipped .tarot-card-inner {
  transform: rotateY(180deg);
}

.tarot-card-front, .tarot-card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* Front Face (Face Down) */
.tarot-card-front {
  background: linear-gradient(145deg, #1d0e33 0%, #0c0517 100%);
  border: 2px solid rgba(255, 209, 102, 0.45);
}

.tarot-card-border {
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255, 209, 102, 0.3);
  border-radius: 12px;
  pointer-events: none;
}

.tarot-card-sigil {
  font-size: 26px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px rgba(255, 209, 102, 0.5));
}

.tarot-card-label {
  font-family: var(--font-serif);
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--text-gold);
  font-weight: 700;
}

.tarot-card-type {
  font-family: var(--font-serif);
  font-size: 9px;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 6px;
  line-height: 1.2;
}

.tarot-tap-prompt {
  font-size: 8px;
  font-weight: 800;
  color: var(--rose-glow);
  background: rgba(255, 42, 122, 0.15);
  border-radius: 8px;
  padding: 2px 6px;
}

/* Back Face (Revealed) */
.tarot-card-back {
  background: linear-gradient(145deg, #2a1147 0%, #110522 100%);
  border: 2px solid var(--rose-glow);
  transform: rotateY(180deg);
  box-shadow: 0 0 20px rgba(255, 42, 122, 0.35);
}

.tarot-back-border {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 42, 122, 0.35);
  border-radius: 12px;
  pointer-events: none;
}

.tarot-revealed-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.tarot-revealed-title {
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-glow);
  line-height: 1.2;
  margin-bottom: 4px;
}

.tarot-revealed-meaning {
  font-size: 8.5px;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 6px;
  padding: 0 2px;
}

.tarot-card-tag {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--rose-glow);
  background: rgba(255, 42, 122, 0.18);
  border-radius: 6px;
  padding: 1px 6px;
}

.tarot-proceed-btn {
  margin-top: 6px;
}

.tarot-proceed-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Quiz Result & Synastry Card */
.quiz-result-card {
  background: linear-gradient(165deg, rgba(38, 14, 68, 0.92) 0%, rgba(12, 5, 28, 0.98) 100%);
  border: 2px solid var(--border-glow);
  border-radius: var(--card-radius);
  padding: 28px 20px;
  text-align: center;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 20px 50px rgba(5, 1, 14, 0.85);
  animation: tabTransitionIn 0.4s ease;
}

.result-crest-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--gold-glow);
  box-shadow: 0 0 25px rgba(255, 209, 102, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.result-crest {
  font-size: 34px;
}

.result-eyebrow {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold-glow);
  display: block;
}

.result-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 4px;
}

.result-motto {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 12.5px;
  color: var(--rose-glow);
  margin-bottom: 12px;
}

.result-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
  text-align: left;
  background: rgba(0, 0, 0, 0.35);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* 4-Vector Breakdown Card */
.vector-breakdown-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
  text-align: left;
}

.vector-title {
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold-glow);
  display: block;
  margin-bottom: 12px;
}

.vector-bars-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vector-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

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

.vector-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fill-fire { background: linear-gradient(90deg, #ff4d4d, #ff2a7a); box-shadow: 0 0 8px rgba(255, 42, 122, 0.6); }
.fill-slowburn { background: linear-gradient(90deg, #9b1fe8, #b49fd6); box-shadow: 0 0 8px rgba(155, 31, 232, 0.6); }
.fill-mystery { background: linear-gradient(90deg, #ffd166, #ff9e00); box-shadow: 0 0 8px rgba(255, 209, 102, 0.6); }
.fill-devotion { background: linear-gradient(90deg, #10b981, #06b6d4); box-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }

/* Shadow Trait Card */
.shadow-trait-card {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 16px;
  text-align: left;
}

.shadow-header {
  margin-bottom: 6px;
}

.shadow-badge {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--crimson-blood);
  display: block;
}

.shadow-header h4 {
  font-family: var(--font-serif);
  font-size: 15px;
  color: #ffffff;
  margin-top: 2px;
}

.shadow-desc {
  font-size: 12.5px;
  color: #ecdfff;
  line-height: 1.45;
  margin-bottom: 8px;
}

.shadow-cure {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold-glow);
  display: block;
}

/* Synastry Radar Card */
.synastry-radar-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 22px;
  text-align: left;
}

.radar-title {
  font-family: var(--font-serif);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold-glow);
  display: block;
  margin-bottom: 10px;
}

.synastry-matches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.synastry-match-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.synastry-match-item.highlight {
  border-color: rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.08);
}

.match-tier {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: block;
}

.match-info strong {
  font-size: 13px;
  color: #ffffff;
}

.match-percent {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gold-glow);
}

.quiz-result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.secondary-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 12px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* ==========================================================================
   MODULE 3: Midnight Whispers Confessions Wall
   ========================================================================== */
.confession-actions-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.confession-actions-bar::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  color: #ffffff;
}

.pill-btn.active {
  background: rgba(255, 42, 122, 0.22);
  border-color: var(--rose-glow);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 42, 122, 0.3);
}

.primary-btn-sm {
  background: var(--accent-gradient);
  border: none;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  cursor: pointer;
  margin-left: auto;
  box-shadow: 0 2px 10px rgba(255, 42, 122, 0.35);
  transition: transform 0.2s ease;
}

.primary-btn-sm:active {
  transform: scale(0.95);
}

/* Pinterest-Style Masonry Grid Layout */
.confessions-stream.masonry-container {
  column-count: 2;
  column-gap: 12px;
}

@media (max-width: 380px) {
  .confessions-stream.masonry-container {
    column-count: 1;
  }
}

.confession-item {
  background: var(--bg-card-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  break-inside: avoid;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 6px 18px rgba(5, 1, 12, 0.6);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.confession-item:hover {
  border-color: rgba(255, 42, 122, 0.35);
  transform: translateY(-2px);
}

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

.confession-num {
  font-family: var(--font-serif);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold-glow);
}

.confession-category {
  font-size: 8.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text-muted);
}

.confession-text {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: #f1e9ff;
  line-height: 1.45;
  margin-bottom: 12px;
  word-break: break-word;
}

/* Reply snippet on masonry card */
.confession-reply-preview {
  background: rgba(0, 0, 0, 0.3);
  border-left: 2px solid var(--orchid-glow);
  padding: 4px 8px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 10px;
  font-size: 10.5px;
  color: var(--text-muted);
  font-style: italic;
}

.confession-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
}

.confess-interact-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.confess-like-btn {
  background: transparent;
  border: none;
  color: var(--rose-glow);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
}

.confess-star-btn {
  background: transparent;
  border: none;
  color: var(--gold-glow);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

.confess-reply-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
}

.confess-reply-btn:hover {
  color: #ffffff;
}

/* Floating Heart Burst Animation */
.floating-heart {
  position: fixed;
  font-size: 18px;
  pointer-events: none;
  z-index: 999;
  animation: floatHeart 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatHeart {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx, 0px), -60px) scale(1.6) rotate(var(--rot, 20deg));
  }
}

/* ==========================================================================
   MODULE 4: AI Wingman Banter Lab
   ========================================================================== */
.wingman-card {
  background: var(--bg-card-glass);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--modal-radius);
  padding: 22px 18px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 30px rgba(5, 1, 12, 0.7);
}

.wingman-input-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.quick-sample-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 10px;
  color: var(--gold-glow);
  cursor: pointer;
}

.wingman-mode-label {
  font-family: var(--font-serif);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold-glow);
  display: block;
  margin: 12px 0 8px;
}

.wingman-style-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.style-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.style-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

.style-pill.active {
  background: rgba(155, 31, 232, 0.25);
  border-color: var(--orchid-glow);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(155, 31, 232, 0.4);
}

.wingman-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.wingman-result-item {
  background: rgba(10, 4, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s ease;
}

.wingman-result-item:hover {
  border-color: rgba(255, 42, 122, 0.4);
}

.wingman-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.wingman-vibe-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--gold-glow);
  letter-spacing: 0.5px;
}

.wingman-charisma-score {
  font-size: 10.5px;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 7px;
  border-radius: 8px;
}

.wingman-text {
  font-size: 13.5px;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 12px;
  word-break: break-word;
}

.wingman-copy-row {
  display: flex;
  justify-content: flex-end;
}

.copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 42, 122, 0.2);
  border-color: var(--rose-glow);
}

.copy-btn.copied {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #ffffff;
}

/* ==========================================================================
   Modals & Backdrop Overlays
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 1, 10, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}

.modal-card {
  background: linear-gradient(165deg, #1d0c36 0%, #0a0316 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--modal-radius);
  padding: 24px 20px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 42, 122, 0.2);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

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

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  color: #ffffff;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 42, 122, 0.3);
  color: #ffffff;
}

.modal-hint {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Reply Thread Modal Specifics */
.reply-modal-card {
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.reply-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reply-thread-num {
  font-family: var(--font-serif);
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-glow);
  letter-spacing: 1.5px;
}

.reply-thread-cat {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
}

.original-whisper-quote-box {
  background: rgba(0, 0, 0, 0.4);
  border-left: 3px solid var(--rose-glow);
  border-radius: 0 12px 12px 0;
  padding: 10px 12px;
  margin-bottom: 14px;
  position: relative;
}

.quote-icon {
  font-family: Georgia, serif;
  font-size: 24px;
  color: var(--rose-glow);
  line-height: 1;
  opacity: 0.6;
}

.original-quote-text {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 12.5px;
  color: #ecdfff;
  line-height: 1.4;
}

.replies-stream-label {
  font-family: var(--font-serif);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold-glow);
  margin-bottom: 8px;
  display: block;
}

.replies-stream-list {
  flex: 1;
  overflow-y: auto;
  max-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  margin-bottom: 14px;
}

.reply-stream-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}

.reply-stream-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.reply-author-moniker {
  color: var(--orchid-glow);
  font-weight: 700;
}

.reply-stream-content {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: #ffffff;
  line-height: 1.4;
}

.add-reply-box label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.reply-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.reply-input-row textarea {
  flex: 1;
}

/* ==========================================================================
   Global Toast Notification
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 90vw;
}

.toast-msg {
  background: rgba(18, 7, 36, 0.95);
  border: 1px solid var(--rose-glow);
  border-radius: 14px;
  padding: 10px 18px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), 0 0 16px rgba(255, 42, 122, 0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(16px);
  animation: toastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-msg.toast-leave {
  animation: toastSlideDown 0.3s ease forwards;
}

@keyframes toastSlideUp {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlideDown {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(15px) scale(0.95); }
}

/* General Utilities */
.hidden {
  display: none !important;
}

.ready-pulse {
  animation: readyPulse 1.8s ease-in-out infinite alternate;
}

@keyframes readyPulse {
  0% { transform: scale(1); box-shadow: 0 4px 20px rgba(255, 42, 122, 0.4); }
  100% { transform: scale(1.02); box-shadow: 0 0 30px rgba(255, 209, 102, 0.7); }
}

.sanctuary-toast {
  display: flex;
  align-items: center;
  gap: 8px;
}

.whisper-reply-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}

.reply-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.reply-author {
  color: var(--orchid-glow);
  font-weight: 700;
}

.reply-time {
  color: var(--text-dim);
}

.reply-body {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: #ffffff;
  line-height: 1.4;
}

.confess-like-btn.liked {
  color: var(--rose-glow) !important;
  text-shadow: 0 0 8px rgba(255, 42, 122, 0.6);
}

/* Responsive Micro Adjustments */
@media (max-width: 420px) {
  .app-container {
    padding-left: 12px;
    padding-right: 12px;
  }
  .form-row-dual {
    grid-template-columns: 1fr;
  }
  .card-footer-actions {
    gap: 16px;
  }
  .tarot-spread-grid {
    gap: 6px;
  }
  .tarot-card-scene {
    height: 160px;
  }
}

/* ==========================================================================
   5. Floating Indian Soul Music Player
   ========================================================================== */
.floating-music-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 480px;
  background: rgba(31, 7, 23, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(243, 197, 182, 0.28);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 24px rgba(190, 18, 60, 0.25);
  border-radius: 40px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.music-info-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.music-crest-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(190, 18, 60, 0.4), rgba(243, 197, 182, 0.2));
  border: 1px solid rgba(243, 197, 182, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 12px rgba(190, 18, 60, 0.3);
  flex-shrink: 0;
}

.music-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.music-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

.music-artist {
  font-size: 10px;
  color: var(--champagne-rose);
  opacity: 0.85;
}

/* Sound Wave Equalizer */
.sound-equalizer {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
  padding: 0 4px;
}

.equalizer-bar {
  width: 3px;
  background: var(--champagne-rose);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

.sound-equalizer.playing .equalizer-bar:nth-child(1) {
  animation: eqBounce 0.8s infinite ease-in-out alternate;
}
.sound-equalizer.playing .equalizer-bar:nth-child(2) {
  animation: eqBounce 1.1s infinite ease-in-out alternate 0.2s;
}
.sound-equalizer.playing .equalizer-bar:nth-child(3) {
  animation: eqBounce 0.7s infinite ease-in-out alternate 0.4s;
}
.sound-equalizer.playing .equalizer-bar:nth-child(4) {
  animation: eqBounce 1.2s infinite ease-in-out alternate 0.1s;
}

@keyframes eqBounce {
  0% { height: 3px; }
  100% { height: 16px; }
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.music-btn {
  background: transparent;
  border: none;
  color: var(--champagne-rose);
  cursor: pointer;
  font-size: 16px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.music-btn:hover {
  transform: scale(1.1);
  color: #fff;
}

.music-btn.play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson-glow), var(--crimson-glow-bright));
  color: #fff;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.5);
  font-size: 15px;
}

/* ==========================================================================
   6. 3-Minute Blind Chai Date Hub
   ========================================================================== */
.blind-date-hub-card {
  background: var(--wine-gradient);
  border: 1px solid rgba(243, 197, 182, 0.25);
  border-radius: var(--card-radius);
  padding: 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 20px rgba(190, 18, 60, 0.15);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.blind-date-hub-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 18, 60, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

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

.live-queue-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 14px;
  letter-spacing: 0.4px;
}

.live-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.6s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.blind-date-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-main);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.blind-date-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 18px;
}

.questions-preview-box {
  background: rgba(18, 5, 14, 0.6);
  border: 1px solid rgba(243, 197, 182, 0.15);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 18px;
}

.preview-badge {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--champagne-rose);
  display: block;
  margin-bottom: 6px;
}

.preview-question-text {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 12.5px;
  color: #fff;
  line-height: 1.45;
}

.blind-date-safety-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.safety-mini-pill {
  font-size: 10.5px;
  background: rgba(243, 197, 182, 0.08);
  border: 1px solid rgba(243, 197, 182, 0.18);
  color: var(--champagne-rose);
  padding: 3px 8px;
  border-radius: 10px;
}

/* ==========================================================================
   7. Dilli Ki Dastaan Spots & Missed Connections
   ========================================================================== */
.dastaan-spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.spot-card {
  background: rgba(31, 7, 23, 0.75);
  border: 1px solid rgba(243, 197, 182, 0.16);
  border-radius: 20px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.spot-card:hover, .spot-card.active {
  background: rgba(45, 12, 34, 0.9);
  border-color: var(--champagne-rose);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(190, 18, 60, 0.25);
}

.spot-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.spot-emoji {
  font-size: 24px;
}

.spot-notes-count-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--champagne-rose);
  background: rgba(243, 197, 182, 0.12);
  border: 1px solid rgba(243, 197, 182, 0.22);
  padding: 2px 7px;
  border-radius: 10px;
}

.spot-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.spot-tagline {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.35;
  margin-bottom: 10px;
}

.spot-meta-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  color: var(--champagne-rose);
  border-top: 1px solid rgba(243, 197, 182, 0.1);
  padding-top: 8px;
}

/* Missed Connections Wall Stream */
.missed-connections-board {
  margin-top: 16px;
}

.missed-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.missed-card {
  background: rgba(24, 7, 19, 0.85);
  border: 1px solid rgba(243, 197, 182, 0.15);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.missed-card:hover {
  border-color: rgba(243, 197, 182, 0.35);
  transform: translateY(-2px);
}

.missed-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.missed-author {
  color: var(--champagne-rose);
  font-weight: 700;
}

.missed-note-text {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 12px;
}

.missed-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(243, 197, 182, 0.08);
  padding-top: 8px;
}

.missed-tags {
  font-size: 10px;
  color: var(--champagne-rose);
  opacity: 0.85;
}

.missed-like-btn {
  background: rgba(190, 18, 60, 0.15);
  border: 1px solid rgba(190, 18, 60, 0.3);
  color: var(--text-main);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.missed-like-btn:hover, .missed-like-btn.liked {
  background: var(--crimson-glow);
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.5);
}

/* Girl-Friendly Sanctuary Seal */
.sanctuary-safety-banner {
  background: linear-gradient(135deg, rgba(31, 7, 23, 0.95), rgba(45, 12, 34, 0.95));
  border: 1px solid rgba(243, 197, 182, 0.25);
  border-radius: 16px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.safety-shield-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.safety-banner-text {
  font-size: 11px;
  color: var(--champagne-rose);
  line-height: 1.35;
}

.safety-banner-text strong {
  color: #fff;
}


