/* ==========================================================================
   BETWEEN US — Midnight Secret Talks Web Application Stylesheet
   Theme: Midnight Romantic Neon / Glassmorphism / Cyber Luxe
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-dark: #07070f;
  --bg-deep: #0d0c1a;
  --bg-card: rgba(18, 16, 34, 0.72);
  --bg-card-elevated: rgba(28, 24, 52, 0.85);
  --bg-input: rgba(13, 11, 26, 0.8);
  
  --neon-pink: #ff2a7a;
  --neon-pink-glow: rgba(255, 42, 122, 0.45);
  --neon-purple: #9d4edd;
  --neon-purple-glow: rgba(157, 78, 221, 0.4);
  --neon-cyan: #00f5d4;
  --neon-cyan-glow: rgba(0, 245, 212, 0.35);
  --neon-gold: #ffd166;
  --neon-gold-glow: rgba(255, 209, 102, 0.45);
  --neon-orange: #ff9e00;

  --text-primary: #ffffff;
  --text-secondary: #c4c1e0;
  --text-muted: #726f91;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-neon: rgba(255, 42, 122, 0.35);
  --border-purple: rgba(157, 78, 221, 0.35);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at 50% 0%, #1e1035 0%, #07070f 65%, #030308 100%);
  position: relative;
}

/* Ambient Animated Midnight Gradients */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: floatAmbient 18s ease-in-out infinite alternate;
}

.ambient-1 {
  top: -150px;
  left: 10%;
  background: radial-gradient(circle, var(--neon-pink) 0%, transparent 70%);
}

.ambient-2 {
  bottom: -200px;
  right: 10%;
  background: radial-gradient(circle, var(--neon-purple) 0%, transparent 70%);
  animation-delay: -9s;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
  100% { transform: translate(-40px, 80px) scale(0.9); }
}

/* --- Main App Container Shell --- */
.app-container {
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: 920px;
  background: rgba(10, 8, 22, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(157, 78, 221, 0.15);
}

@media (min-width: 540px) {
  .app-container {
    height: 92vh;
    border-radius: 36px;
  }
}

/* --- Top Navigation Header --- */
.app-header {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(13, 11, 26, 0.6);
  backdrop-filter: blur(12px);
  z-index: 50;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
  cursor: pointer;
}

.brand-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 15px var(--neon-pink-glow);
}

.brand-title {
  background: linear-gradient(90deg, #ffffff, #e0aaff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.online-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.25);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neon-cyan);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: blinkPulse 1.8s infinite;
}

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

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.vip-btn {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(255, 158, 0, 0.15));
  border-color: rgba(255, 209, 102, 0.4);
  color: var(--neon-gold);
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.2);
}

/* --- Screen Container & View Routing --- */
.screen-viewport {
  flex: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}

.screen-viewport::-webkit-scrollbar {
  width: 4px;
}
.screen-viewport::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
  overflow-y: auto;
}

.screen.active {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

/* ==========================================================================
   SCREEN 1: Poster Splash Hero
   ========================================================================== */
.splash-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  padding: 32px 24px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.splash-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(7, 7, 15, 0.2) 0%, rgba(7, 7, 15, 0.6) 50%, #07070f 95%);
  z-index: 1;
}

.splash-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.splash-tagline {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.splash-tagline span {
  background: linear-gradient(135deg, var(--neon-pink), #ff9e00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.splash-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.splash-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.btn-primary {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  border: none;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 25px var(--neon-pink-glow);
  transition: var(--transition-fast);
  margin-top: 12px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--neon-pink-glow);
}

.btn-primary:active {
  transform: translateY(1px);
}

/* ==========================================================================
   SCREEN 2: Disguise Profile Setup
   ========================================================================== */
.profile-view {
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

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

/* Avatar Mask Carousel Grid */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.avatar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 6px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-bounce);
}

.avatar-item:hover {
  background: var(--bg-card-elevated);
  transform: translateY(-3px);
}

.avatar-item.selected {
  background: rgba(255, 42, 122, 0.15);
  border-color: var(--neon-pink);
  box-shadow: 0 0 18px var(--neon-pink-glow);
}

.avatar-emoji {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.avatar-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Alias Input & Randomizer */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.alias-box {
  display: flex;
  gap: 10px;
}

.input-field {
  flex: 1;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.input-field:focus {
  border-color: var(--neon-purple);
  box-shadow: 0 0 14px var(--neon-purple-glow);
}

.randomize-btn {
  padding: 0 18px;
  border-radius: var(--radius-md);
  background: rgba(157, 78, 221, 0.15);
  border: 1px solid var(--border-purple);
  color: var(--neon-purple);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.randomize-btn:hover {
  background: rgba(157, 78, 221, 0.3);
  transform: rotate(45deg);
}

/* Selectable Pills (Gender, Preference, Mood, Language) */
.pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  flex: 1;
  min-width: 80px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
}

.pill:hover {
  background: var(--bg-card-elevated);
}

.pill.selected {
  background: rgba(157, 78, 221, 0.2);
  border-color: var(--neon-purple);
  color: #ffffff;
  box-shadow: 0 0 12px var(--neon-purple-glow);
}

/* Language Grid */
.language-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.language-grid::-webkit-scrollbar {
  width: 4px;
}
.language-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.lang-pill {
  padding: 10px 14px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.lang-pill.selected {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--neon-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.lang-indicator {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.25);
  display: inline-block;
  margin-top: 4px;
}

.lang-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neon-cyan);
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid rgba(0, 245, 212, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.mood-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mood-chip {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-fast);
}

.mood-chip:hover {
  background: var(--bg-card-elevated);
}

.mood-chip.selected {
  background: rgba(0, 245, 212, 0.12);
  border-color: var(--neon-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px var(--neon-cyan-glow);
}

/* ==========================================================================
   SCREEN 3: Sonar Radar Scanner
   ========================================================================== */
.radar-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 36px 20px 28px;
  position: relative;
}

.radar-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.radar-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
}

.radar-status {
  font-size: 0.9rem;
  color: var(--neon-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Concentric Radar Disc */
.radar-arena {
  width: 280px;
  height: 280px;
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 42, 122, 0.18);
  box-shadow: inset 0 0 15px rgba(255, 42, 122, 0.05);
}

.ring-1 { width: 100%; height: 100%; }
.ring-2 { width: 75%; height: 75%; }
.ring-3 { width: 50%; height: 50%; }
.ring-4 { width: 25%; height: 25%; }

.radar-sweep {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 42, 122, 0.4) 0deg, rgba(157, 78, 221, 0.15) 60deg, transparent 90deg);
  animation: radarRotate 3.2s linear infinite;
}

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

.radar-crosshair-h, .radar-crosshair-v {
  position: absolute;
  background: rgba(255, 255, 255, 0.06);
}

.radar-crosshair-h { width: 100%; height: 1px; }
.radar-crosshair-v { width: 1px; height: 100%; }

.radar-center-user {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  z-index: 5;
  box-shadow: 0 0 24px var(--neon-pink);
  position: relative;
}

/* Floating Blip Nodes */
.radar-blip {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card-elevated);
  border: 1px solid var(--neon-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 0 15px var(--neon-cyan-glow);
  animation: floatBlip 2.5s ease-in-out infinite alternate;
  z-index: 4;
}

.blip-1 { top: 25px; right: 40px; }
.blip-2 { bottom: 40px; left: 35px; animation-delay: -1.2s; }
.blip-3 { top: 80px; left: 20px; animation-delay: -0.6s; }

@keyframes floatBlip {
  0% { transform: scale(0.9) translateY(0); }
  100% { transform: scale(1.1) translateY(-6px); }
}

.radar-countdown-box {
  background: var(--bg-card);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

/* ==========================================================================
   SCREEN 4: Secret Chat Room
   ========================================================================== */
.chat-screen-view {
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Partner Info Bar */
.partner-bar {
  padding: 12px 18px;
  background: rgba(13, 11, 26, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.partner-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.partner-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.25), rgba(255, 42, 122, 0.25));
  border: 2px solid var(--neon-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 15px var(--neon-pink-glow);
}

.partner-meta {
  display: flex;
  flex-direction: column;
}

.partner-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.partner-status-text {
  font-size: 0.72rem;
  color: var(--neon-cyan);
}

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

.compatibility-badge {
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 42, 122, 0.15);
  border: 1px solid var(--border-neon);
  color: var(--neon-pink);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Icebreaker Suggestion Carousel */
.icebreakers-tray {
  padding: 8px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(7, 7, 15, 0.4);
}

.icebreakers-tray::-webkit-scrollbar {
  display: none;
}

.icebreaker-chip {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.icebreaker-chip:hover {
  background: rgba(255, 42, 122, 0.15);
  border-color: var(--neon-pink);
  color: #ffffff;
}

.icebreaker-chip.ai-refresh-chip {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.2), rgba(157, 78, 221, 0.25));
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.15);
}

.icebreaker-chip.ai-refresh-chip:hover {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.35), rgba(157, 78, 221, 0.4));
  color: #ffffff;
  box-shadow: 0 0 14px var(--neon-cyan-glow);
}

.icebreaker-chip.dynamic-rp-chip {
  background: rgba(157, 78, 221, 0.12);
  border-color: rgba(157, 78, 221, 0.35);
  color: rgba(255, 255, 255, 0.9);
}

.icebreaker-chip.dynamic-rp-chip:hover {
  background: rgba(157, 78, 221, 0.25);
  border-color: var(--neon-purple);
  color: #ffffff;
  box-shadow: 0 0 12px var(--neon-purple-glow);
}

/* Message Stream */
.messages-stream {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.msg-row {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  animation: popIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.msg-row.self {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-row.partner {
  align-self: flex-start;
  align-items: flex-start;
}

.msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
}

.msg-row.self .msg-bubble {
  background: linear-gradient(135deg, #ff2a7a, #9d4edd);
  color: #ffffff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 18px rgba(255, 42, 122, 0.3);
}

.msg-row.partner .msg-bubble {
  background: var(--bg-card-elevated);
  border: 1px solid rgba(157, 78, 221, 0.3);
  color: #ffffff;
  border-bottom-left-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.msg-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
  padding: 0 4px;
}

/* Audio Whisper Component */
.whisper-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  min-width: 190px;
}

.whisper-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #07070f;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.whisper-waveform {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}

.waveform-bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 2px;
  height: 6px;
  transition: height 0.2s ease;
}

.whisper-card.playing .waveform-bar {
  animation: waveAnim 0.6s ease-in-out infinite alternate;
}

.whisper-card.playing .waveform-bar:nth-child(2) { animation-delay: 0.1s; }
.whisper-card.playing .waveform-bar:nth-child(3) { animation-delay: 0.2s; }
.whisper-card.playing .waveform-bar:nth-child(4) { animation-delay: 0.3s; }
.whisper-card.playing .waveform-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes waveAnim {
  0% { height: 4px; }
  100% { height: 22px; }
}

/* Blurred Photo Component */
.blur-photo-box {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.blur-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) brightness(0.65);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.blur-photo-box.revealed .blur-photo-img {
  filter: blur(0px) brightness(1);
  transform: scale(1.03);
}

.blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  transition: opacity 0.4s ease;
}

.blur-photo-box.revealed .blur-overlay {
  opacity: 0;
  pointer-events: none;
}

/* Typing Indicator */
.typing-row {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--neon-pink);
  animation: jumpDot 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes jumpDot {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
}

/* Chat Input Bar */
.chat-input-bar {
  padding: 12px 16px;
  background: rgba(13, 11, 26, 0.85);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-fast);
}

.chat-input:focus {
  border-color: var(--neon-pink);
  box-shadow: 0 0 12px var(--neon-pink-glow);
}

.send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 0 15px var(--neon-pink-glow);
  transition: var(--transition-fast);
}

.send-btn:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   SCREEN 5: Secret Vault Archive
   ========================================================================== */
.vault-view {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vault-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vault-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.vault-card:hover {
  background: var(--bg-card-elevated);
  border-color: var(--neon-purple);
  transform: translateY(-2px);
}

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

.vault-partner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.vault-snippet {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vault-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   VIP Modal & Toast System
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.vip-modal-card {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(160deg, #18142e 0%, #0c0a18 100%);
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 209, 102, 0.2);
  position: relative;
}

.vip-badge-glow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-gold), var(--neon-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 25px var(--neon-gold);
  margin: 0 auto;
}

.vip-perks {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.perk-icon {
  color: var(--neon-gold);
  font-size: 1.1rem;
}

.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: rgba(18, 16, 34, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-neon);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--neon-pink-glow);
  opacity: 0;
  transition: var(--transition-bounce);
  z-index: 200;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- Wallet Chip in Header --- */
.wallet-chip-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid rgba(0, 245, 212, 0.35);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-cyan);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.wallet-chip-btn:hover {
  background: rgba(0, 245, 212, 0.22);
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.3);
}

/* --- Wallet & Auth Modals --- */
.wallet-card, .auth-card {
  max-width: 420px;
}

.wallet-balance-display {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.wallet-balance-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.wallet-balance-num {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 4px 0;
  font-family: var(--font-heading);
}

.wallet-bonus-badge {
  font-size: 0.75rem;
  color: var(--neon-gold);
  font-weight: 600;
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pack-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.pack-card:hover {
  border-color: rgba(0, 245, 212, 0.4);
  transform: translateY(-2px);
}

.pack-card.selected {
  border-color: var(--neon-cyan);
  background: rgba(0, 245, 212, 0.12);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.25);
}

.pack-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon-orange);
  color: #000;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.pack-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.pack-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin: 2px 0;
}

.pack-msgs {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.transactions-drawer {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  max-height: 100px;
  overflow-y: auto;
}

.tx-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tx-row:last-child {
  border-bottom: none;
}

.tx-positive { color: var(--neon-cyan); }
.tx-negative { color: var(--neon-pink); }

.auth-status-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  margin-bottom: 12px;
}

/* ==========================================================================
   Bottom Navigation Bar (Parity with Android NavigationBar)
   ========================================================================== */
.app-bottom-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(13, 11, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  z-index: 50;
  padding: 0 8px;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 0;
  transition: var(--transition-fast);
  border-radius: var(--radius-sm);
}

.nav-item:hover {
  color: var(--text-secondary);
}

.nav-item.active {
  color: var(--neon-pink);
}

.nav-icon {
  font-size: 1.25rem;
  transition: var(--transition-bounce);
}

.nav-item.active .nav-icon {
  transform: scale(1.18);
  filter: drop-shadow(0 0 8px var(--neon-pink-glow));
}

.nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ==========================================================================
   SCREEN 2: Auth Gate & Onboarding Styles
   ========================================================================== */
.auth-view, .vault-view, .wallet-view, .persona-view {
  padding: 20px 18px 80px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-gate-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--neon-purple) 0%, rgba(157, 78, 221, 0.2) 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 12px auto;
  box-shadow: 0 0 25px var(--neon-purple-glow);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.auth-tab-btn {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.auth-tab-btn.active {
  background: var(--neon-pink);
  color: #fff;
  box-shadow: 0 0 14px var(--neon-pink-glow);
}

.auth-step-panel {
  display: none;
}

.auth-step-panel.active {
  display: block;
}

.auth-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(16px);
}

.btn-link {
  background: none;
  border: none;
  color: var(--neon-cyan);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition-fast);
}

.btn-link:hover {
  color: #fff;
}

.otp-input {
  letter-spacing: 6px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  font-family: monospace;
}

/* ==========================================================================
   User Summary Card & Daily Roleplay Banner (Radar Screen)
   ========================================================================== */
.user-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.user-summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-summary-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 42, 122, 0.2), rgba(157, 78, 221, 0.25));
  border: 1px solid var(--border-neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.user-summary-alias {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.user-summary-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.wallet-badge {
  padding: 4px 10px;
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid rgba(0, 245, 212, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--neon-cyan);
}

.daily-roleplay-card {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.18), rgba(255, 42, 122, 0.12));
  border: 1px solid rgba(157, 78, 221, 0.4);
  border-radius: var(--radius-md);
  padding: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.roleplay-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--neon-gold);
  letter-spacing: 0.8px;
}

.roleplay-refresh-btn {
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.roleplay-refresh-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}

.roleplay-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.roleplay-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.roleplay-cta-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: none;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 0 10px var(--neon-purple-glow);
}

.roleplay-cta-btn:hover {
  transform: scale(1.04);
}

.radar-arena-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0;
}

.radar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* ==========================================================================
   Vault (Saved Talks) Screen
   ========================================================================== */
.vault-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vault-empty-state {
  text-align: center;
  padding: 48px 20px;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  opacity: 0.6;
}

.empty-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto;
}

.vault-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: var(--transition-fast);
}

.vault-card:hover {
  border-color: var(--border-purple);
  transform: translateY(-2px);
}

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

.vault-card-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vault-card-avatar {
  font-size: 1.4rem;
}

.vault-card-alias {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.vault-chip {
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 42, 122, 0.15);
  color: var(--neon-pink);
  font-weight: 700;
}

.vault-card-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.vault-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-sm-action {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-sm-action:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Wallet Screen & Details
   ========================================================================== */
.wallet-balance-card {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.12), rgba(157, 78, 221, 0.15));
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.wallet-card-bg-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 245, 212, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.wallet-rate-notice {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.section-subheading {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

/* ==========================================================================
   Persona & Account Screen
   ========================================================================== */
.account-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.account-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
}

.account-meta-row:last-of-type {
  border-bottom: none;
}

.meta-label {
  color: var(--text-muted);
}

.meta-val {
  font-weight: 600;
  color: #fff;
}



/* ==========================================================================
   Firebase Authentication & VIP Subscription Enhancements
   ========================================================================== */
.vip-status-chip-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.4);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--neon-gold);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.vip-status-chip-btn:hover {
  background: rgba(255, 183, 3, 0.25);
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(255, 183, 3, 0.35);
}

.vip-status-chip-btn.active-vip {
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.25), rgba(251, 133, 0, 0.25));
  border-color: var(--neon-gold);
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.4);
}

.btn-google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #1f1f1f;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: var(--transition-smooth);
}

.btn-google-auth:hover {
  background: #f1f3f4;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-google-auth svg {
  width: 20px;
  height: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}

.auth-divider:not(:empty)::before {
  margin-right: .8em;
}

.auth-divider:not(:empty)::after {
  margin-left: .8em;
}

.auth-mode-pills {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
  margin-bottom: 16px;
}

.auth-mode-pill {
  flex: 1;
  text-align: center;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.auth-mode-pill.active {
  background: var(--neon-pink);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.4);
}

.auth-security-notice {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
  line-height: 1.4;
}

/* Chat Quota Banner */
.chat-quota-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(20, 20, 36, 0.85);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.chat-quota-banner.quota-reached {
  background: rgba(255, 42, 122, 0.15);
  border-color: rgba(255, 42, 122, 0.4);
  color: var(--neon-pink);
}

.chat-quota-banner.vip-active {
  background: rgba(255, 183, 3, 0.12);
  border-color: rgba(255, 183, 3, 0.35);
  color: var(--neon-gold);
}

/* Radar Quota Pill */
.radar-quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* Subscription Plan Cards */
.sub-tier-status-card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 183, 3, 0.12), rgba(157, 78, 221, 0.15));
  border: 1px solid rgba(255, 183, 3, 0.35);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 18px;
}

.sub-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.sub-plan-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-smooth);
}

.sub-plan-card:hover {
  border-color: var(--neon-gold);
  transform: translateY(-2px);
}

.sub-plan-card.selected {
  border-color: var(--neon-gold);
  background: rgba(255, 183, 3, 0.14);
  box-shadow: 0 0 18px rgba(255, 183, 3, 0.28);
}

.sub-plan-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--neon-gold), var(--neon-orange));
  color: #07070f;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}

.sub-plan-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 6px;
}

.sub-plan-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin: 4px 0 2px;
  font-family: var(--font-heading);
}

.sub-plan-cadence {
  font-size: 0.65rem;
  color: var(--neon-gold);
  font-weight: 600;
  margin-bottom: 4px;
}

.sub-plan-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  line-height: 1.25;
}

.vip-perk-table {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 18px;
}

.vip-perk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.vip-perk-row:last-of-type {
  border-bottom: none;
}
