/* 🔥 SW CLUB LUXURY & PASSION DARK THEME - 100% RESPONSIVE */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-deep: #07080b;
  --bg-surface: #10121a;
  --bg-card: #151824;
  --bg-glass: rgba(22, 25, 38, 0.7);
  
  --crimson-fire: #ff1a53;
  --crimson-glow: rgba(255, 26, 83, 0.45);
  --crimson-gradient: linear-gradient(135deg, #ff1a53 0%, #d9044b 50%, #990033 100%);
  --hot-pink: #f43f5e;
  --violet-neon: #a855f7;
  --gold-glow: #f59e0b;
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --cyan-verified: #06b6d4;
  
  --text-white: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #8b9bb4;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 26, 83, 0.3);
  
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-deep);
}

body {
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 26, 83, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(168, 85, 247, 0.1) 0%, transparent 45%);
  color: var(--text-main);
  display: flex;
  justify-content: center;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 460px;
  position: relative;
  background: var(--bg-deep);
  overflow: hidden;
}

/* Header */
.app-header {
  height: 52px;
  min-height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 12, 17, 0.85);
  backdrop-filter: blur(20px);
  z-index: 50;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: 0.6px;
  background: linear-gradient(135deg, #ffffff 0%, #ff5c8a 50%, #ff1a53 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(255, 26, 83, 0.5);
}

.icon-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

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

/* Content Area */
.tab-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: none;
  min-height: 0;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
}

/* --- ADAPTIVE DISCOVER (SWIPE) TAB --- */
#tab-discover.active {
  display: flex;
  flex-direction: column;
  height: calc(100% - 114px); /* 100% minus header 52px minus bottom-nav 62px */
  padding: 8px 12px 6px 12px;
}

.card-stack-container {
  flex: 1;
  min-height: 0;
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swipe-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  touch-action: none;
  will-change: transform;
  display: flex;
  flex-direction: column;
}

.card-photo-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  background: #08090d;
}

.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-photo.blurred {
  filter: blur(32px) brightness(0.6);
  transform: scale(1.1);
}

.private-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(16, 18, 26, 0.8) 0%, rgba(7, 8, 11, 0.95) 100%);
  backdrop-filter: blur(16px);
  z-index: 10;
  padding: 20px;
  text-align: center;
}

.private-badge {
  background: rgba(255, 26, 83, 0.2);
  border: 1px solid var(--crimson-fire);
  color: #ff85a1;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 15px var(--crimson-glow);
}

/* Indicators */
.photo-indicators {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 4px;
  z-index: 25;
}

.indicator-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  transition: all 0.25s ease;
}

.indicator-bar.active {
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.tap-nav {
  position: absolute;
  top: 0;
  bottom: 80px;
  width: 50%;
  z-index: 15;
}
.tap-left { left: 0; }
.tap-right { right: 0; }

/* Card Info Overlay (Dynamic Fit) */
.card-info-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, 
    rgba(7, 8, 11, 0.98) 0%, 
    rgba(10, 12, 17, 0.85) 60%, 
    rgba(10, 12, 17, 0) 100%
  );
  padding: 28px 14px 14px 14px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 48%;
  overflow-y: auto;
}

.card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
}

.card-name-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

.card-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.card-age {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ff94b4;
}

.card-badges {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}

.badge-tag {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-type { 
  background: rgba(168, 85, 247, 0.2); 
  color: #d8b4fe; 
  border: 1px solid rgba(168, 85, 247, 0.5); 
}
.badge-verified { 
  background: rgba(6, 182, 212, 0.2); 
  color: #67e8f9; 
  border: 1px solid rgba(6, 182, 212, 0.5); 
}
.badge-vip { 
  background: rgba(245, 158, 11, 0.2); 
  color: #fde047; 
  border: 1px solid rgba(245, 158, 11, 0.6); 
}
.badge-city { 
  background: rgba(255, 255, 255, 0.1); 
  color: #cbd5e1; 
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sw-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.sw-pill {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(255, 26, 83, 0.15);
  color: #ff9db5;
  border: 1px solid rgba(255, 26, 83, 0.35);
  font-weight: 600;
}

.taboo-pill {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
  font-weight: 600;
}

.card-about {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.35;
  margin-top: 2px;
  max-height: 55px;
  overflow-y: auto;
}

/* --- ACTION BUTTONS (CLEANLY POSITIONED BELOW CARD) --- */
.swipe-action-bar {
  height: 64px;
  min-height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 6px;
  z-index: 40;
}

.action-btn {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
  border: none;
  outline: none;
}

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

.btn-dislike {
  width: 52px;
  height: 52px;
  background: #151722;
  border: 2px solid #ef4444;
  color: #ef4444;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.25);
}

.btn-superlike {
  width: 44px;
  height: 44px;
  background: #131b2c;
  border: 2px solid #06b6d4;
  color: #06b6d4;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25);
}

.btn-like {
  width: 60px;
  height: 60px;
  background: var(--crimson-gradient);
  color: #ffffff;
  box-shadow: 0 6px 25px var(--crimson-glow);
}

/* Stamps */
.stamp {
  position: absolute;
  top: 30px;
  padding: 4px 16px;
  font-size: 1.7rem;
  font-weight: 900;
  border-radius: 12px;
  border: 3.5px solid;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  z-index: 30;
  pointer-events: none;
}
.stamp.like {
  right: 18px;
  color: #22c55e;
  border-color: #22c55e;
  transform: rotate(12deg);
}
.stamp.nope {
  left: 18px;
  color: #ef4444;
  border-color: #ef4444;
  transform: rotate(-12deg);
}
.stamp.superlike {
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  color: #06b6d4;
  border-color: #06b6d4;
}

/* --- BOTTOM NAVIGATION BAR --- */
.bottom-nav {
  height: 62px;
  min-height: 62px;
  background: rgba(10, 12, 17, 0.96);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(24px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 60;
  padding-bottom: env(safe-area-inset-bottom, 4px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  font-size: 0.68rem;
  font-weight: 600;
  transition: all 0.2s ease;
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 4px 0;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.nav-item.active {
  color: var(--crimson-fire);
}

.nav-item.active svg {
  stroke: var(--crimson-fire);
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px var(--crimson-glow));
}

.nav-badge {
  position: absolute;
  top: 1px;
  right: calc(50% - 14px);
  background: var(--crimson-fire);
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-shadow: 0 0 10px var(--crimson-glow);
}

/* Scroll Containers */
.scroll-container {
  flex: 1;
  overflow-y: auto;
  padding: 14px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-overflow-scrolling: touch;
}

/* Match Cards */
.match-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.match-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  transition: transform 0.15s;
}

.match-card:active {
  transform: scale(0.96);
  border-color: var(--crimson-fire);
}

.match-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 8px 6px 8px;
  background: linear-gradient(to top, rgba(7, 8, 11, 0.95) 0%, transparent 100%);
}

/* Modals & Sheets */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

#user-profile-modal {
  z-index: 350 !important;
}

#photo-viewer-modal {
  z-index: 500 !important;
}

#vip-modal, #verification-modal, #filter-modal, #profile-modal {
  z-index: 450 !important;
}

/* Dedicated Fullscreen Onboarding / Profile Creator Screen */
.onboarding-screen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: radial-gradient(circle at 50% 10%, #151928 0%, #090b12 60%, #050608 100%) !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px 40px 16px !important;
  box-sizing: border-box !important;
}

.onboarding-screen:not(.active) {
  display: none !important;
}

.onboarding-container {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}





.modal-sheet {
  background: #0f1118;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  border-top: 1px solid rgba(255, 26, 83, 0.3);
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  padding: 20px 18px 30px 18px;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-backdrop.open .modal-sheet {
  transform: translateY(0);
}

.match-popup {
  background: radial-gradient(circle, #240a18 0%, #0c0810 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--crimson-fire);
  width: 90%;
  max-width: 360px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 0 45px var(--crimson-glow);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.match-open .match-popup {
  transform: scale(1);
}

/* Form Styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-input, .form-select, .form-textarea {
  background: #141722;
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--crimson-fire);
}

.btn-primary {
  background: var(--crimson-gradient);
  color: white;
  border: none;
  padding: 13px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px var(--crimson-glow);
  transition: transform 0.15s;
}

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

.btn-secondary {
  background: #181b28;
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 11px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

/* Profile Avatar Box */
.avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 3px;
  background: var(--crimson-gradient);
  box-shadow: 0 0 20px var(--crimson-glow);
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #111;
  display: block;
}

.avatar-edit-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #1e1b26;
  border: 1.5px solid var(--crimson-fire);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

/* Album Item Stats */
.photo-stat-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 6px 4px 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #fff;
  font-weight: 700;
}

/* Photo Viewer Modal */
.photo-viewer-sheet {
  background: #0d0f17;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  border-top: 1px solid rgba(255, 26, 83, 0.4);
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.9);
}

.viewer-header {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.viewer-img-container {
  width: 100%;
  max-height: 42vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.viewer-img-container img {
  width: 100%;
  height: 100%;
  max-height: 42vh;
  object-fit: contain;
}

.viewer-actions {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: #111420;
}

.like-btn-viewer {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.comments-feed {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 25vh;
}

.comment-bubble {
  background: #161926;
  border-radius: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border-subtle);
}

.comment-input-bar {
  padding: 10px 14px;
  display: flex;
  gap: 8px;
  background: #111420;
  border-top: 1px solid var(--border-subtle);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  gap: 10px;
}

.empty-icon {
  width: 56px;
  height: 56px;
  color: #475569;
}

/* 📍 City Autocomplete Dropdown */
.city-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #141724;
  border: 1px solid rgba(255, 26, 83, 0.35);
  border-radius: 12px;
  max-height: 190px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  margin-top: 4px;
}

.city-dropdown-item {
  padding: 9px 14px;
  font-size: 0.84rem;
  color: #f1f5f9;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.city-dropdown-item:last-child {
  border-bottom: none;
}

.city-dropdown-item:hover, .city-dropdown-item:active {
  background: rgba(255, 26, 83, 0.18);
  color: #fff;
}

.city-country-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* 📍 Card Distance Badge */
.card-distance-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 6px;
}

/* ==========================================================================
   💬 IN-APP DIRECT CHAT & CONVERSATIONS STYLES
   ========================================================================== */

.conv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.conv-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #111420;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.conv-item:active {
  transform: scale(0.98);
  background: #171b2b;
}

.conv-avatar-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.conv-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 26, 83, 0.35);
}

.conv-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid #111420;
  border-radius: 50%;
}

.conv-info {
  flex: 1;
  min-width: 0;
}

.conv-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.conv-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conv-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 6px;
}

.conv-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.conv-snippet {
  font-size: 0.8rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 82%;
}

.conv-item.unread .conv-snippet {
  color: #f1f5f9;
  font-weight: 700;
}

.conv-unread-badge {
  background: var(--crimson-fire);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 10px var(--crimson-glow);
}

/* --- In-App Fullscreen Chat Screen / Dialog --- */
#chat-dialog-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-deep);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#chat-dialog-modal.open {
  transform: translateY(0);
}

.chat-dialog-header {
  height: 58px;
  min-height: 58px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 18, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 10;
}

.chat-back-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
}

.chat-partner-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--crimson-fire);
  cursor: pointer;
}

.chat-partner-info {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.chat-partner-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-partner-status {
  font-size: 0.72rem;
  color: #10b981;
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 26, 83, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.04) 0%, transparent 40%);
}

.chat-message-row {
  display: flex;
  width: 100%;
}

.chat-message-row.mine {
  justify-content: flex-end;
}

.chat-message-row.partner {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.4;
  position: relative;
  word-break: break-word;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.chat-bubble-mine {
  background: linear-gradient(135deg, #ff1a53 0%, #d9044b 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-bubble-partner {
  background: #161925;
  color: #f1f5f9;
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
}

.chat-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.68rem;
  opacity: 0.8;
}

.chat-input-bar-container {
  padding: 8px 12px 14px 12px;
  background: rgba(14, 16, 24, 0.96);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.chat-quick-chips::-webkit-scrollbar { display: none; }

.chat-quick-chip {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 0.74rem;
  color: #cbd5e1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}

.chat-quick-chip:active {
  background: rgba(255, 26, 83, 0.2);
  color: #ff85a1;
}

.chat-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input {
  flex: 1;
  background: #1c2030;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #fff;
  outline: none;
}

.chat-input:focus {
  border-color: var(--crimson-fire);
}

.chat-send-btn {
  background: var(--crimson-gradient);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 15px var(--crimson-glow);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.chat-send-btn:active {
  transform: scale(0.9);
}

/* --- Photo slider & details enhancements for Profile Modal --- */
.profile-modal-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-height: 380px;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.profile-modal-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  font-size: 1rem;
  backdrop-filter: blur(8px);
}

.slider-nav-btn.prev { left: 8px; }
.slider-nav-btn.next { right: 8px; }

.slider-counter-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 15;
}

.mini-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.mini-gallery-item {
  aspect-ratio: 1/1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- In-App Toast Notification --- */
.in-app-toast {
  position: absolute;
  top: -80px;
  left: 12px;
  right: 12px;
  background: linear-gradient(135deg, rgba(26, 30, 46, 0.95), rgba(16, 18, 26, 0.98));
  border: 1px solid rgba(255, 26, 83, 0.4);
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 26, 83, 0.25);
  backdrop-filter: blur(16px);
  z-index: 600;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  transform: translateY(0);
  opacity: 0;
  pointer-events: none;
}

.in-app-toast.show {
  transform: translateY(92px);
  opacity: 1;
  pointer-events: auto;
}

.toast-avatar-wrapper {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--crimson-fire);
  flex-shrink: 0;
}

.toast-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-subtitle {
  font-size: 0.76rem;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

/* --- Online Glow Indicators --- */
.online-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e, 0 0 14px rgba(34, 197, 94, 0.6);
  display: inline-block;
  flex-shrink: 0;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.badge-online {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
  border-color: rgba(34, 197, 94, 0.35) !important;
}

/* --- Onboarding Wizard (Start Creation Flow) --- */
.onboarding-progress-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.onboarding-progress-seg {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.onboarding-progress-seg.active {
  background: linear-gradient(90deg, #ff1a53, #ff85a1);
  box-shadow: 0 0 10px rgba(255, 26, 83, 0.6);
}

.onboarding-step {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: fadeInStep 0.3s ease forwards;
}

.onboarding-step.active {
  display: flex;
}

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

.type-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.type-card-option {
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.type-card-option:hover, .type-card-option.selected {
  background: rgba(255, 26, 83, 0.12);
  border-color: #ff1a53;
  box-shadow: 0 0 18px rgba(255, 26, 83, 0.28);
  transform: translateY(-2px);
}

.type-card-icon {
  font-size: 1.8rem;
}

.type-card-info h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
}

.type-card-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.interactive-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 8px 13px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.interactive-chip.active {
  background: rgba(255, 26, 83, 0.2);
  border-color: #ff1a53;
  color: #ff85a1;
  box-shadow: 0 0 12px rgba(255, 26, 83, 0.3);
}

.interactive-chip.taboo-chip.active {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}


