/* ============================================
   FamTubeX — Component Styles (Premium Neon)
   ============================================ */

/* ── Profile Card ── */
.profile-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  aspect-ratio: 3/4;
  border: none;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
  /* Stagger animation */
  opacity: 0;
  animation: cardStaggerIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

@keyframes cardStaggerIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-card:active { transform: scale(0.96); }

/* Gradient fallback when image fails */
.profile-card .card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  z-index: 0;
}

.profile-card .card-placeholder.g1 { background: linear-gradient(135deg, #1a0a1e, #2d1036, #1a0a1e); }
.profile-card .card-placeholder.g2 { background: linear-gradient(135deg, #0a1a1e, #0e2a2e, #0a1a1e); }
.profile-card .card-placeholder.g3 { background: linear-gradient(135deg, #1e0a0a, #2e1414, #1e0a0a); }
.profile-card .card-placeholder.g4 { background: linear-gradient(135deg, #0a0a1e, #141430, #0a0a1e); }
.profile-card .card-placeholder.g5 { background: linear-gradient(135deg, #1e1a0a, #2e2414, #1e1a0a); }
.profile-card .card-placeholder.g6 { background: linear-gradient(135deg, #1e0a16, #2e1424, #1e0a16); }
.profile-card .card-placeholder.g7 { background: linear-gradient(135deg, #0a1e14, #142e22, #0a1e14); }

.profile-card .card-img,
.profile-card .card-video {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.3s ease, opacity 0.4s ease;
  z-index: 1;
  filter: brightness(0.95) contrast(1.05);
}

/* Live preview video: hidden by default, shown on hover */
.profile-card .card-preview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s ease;
  filter: brightness(0.95) contrast(1.05);
  pointer-events: none;
}

.profile-card:hover .card-preview-video.playing {
  opacity: 1;
}

.profile-card:hover .card-img,
.profile-card:hover .card-video {
  transform: scale(1.06);
}

.profile-card:hover .card-preview-video {
  transform: scale(1.06);
}

/* Offline cards: subtle desaturation */
.profile-card-offline .card-img,
.profile-card-offline .card-video {
  filter: saturate(0.7) brightness(0.85) contrast(1.05);
}

/* Favorite heart button — meets touch-min */
.card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.card-fav-btn:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.12);
}

.card-fav-btn.fav-active {
  animation: favPop 0.35s ease;
}

@keyframes favPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Bottom gradient overlay — taller, cinematic */
.profile-card .card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 72px 14px 14px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.88) 100%);
  z-index: 3;
}

.profile-card .card-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

.profile-card .card-age {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.profile-card .card-location {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
}

.profile-card .card-location svg { width: 11px; height: 11px; opacity: 0.5; }

/* ── Verified Badge ── */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #60A5FA;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.4));
}
.verified-badge svg {
  width: 14px;
  height: 14px;
  fill: #60A5FA;
  stroke: #fff;
  stroke-width: 2;
}
.card-name .verified-badge { margin-left: 3px; vertical-align: middle; }
.chat-verified-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  color: #60A5FA;
  filter: drop-shadow(0 0 3px rgba(96, 165, 250, 0.35));
}
.chat-verified-badge svg { width: 13px; height: 13px; fill: #60A5FA; stroke: #fff; stroke-width: 2; }

/* ── VIP Tier Badges ── */
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.vip-badge.silver {
  background: linear-gradient(135deg, rgba(192,192,192,0.15), rgba(220,220,220,0.08));
  border: 1px solid rgba(192,192,192,0.25);
  color: #C0C0C0;
}
.vip-badge.gold {
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(255,215,0,0.08));
  border: 1px solid rgba(245,158,11,0.3);
  color: #F5A623;
}
.vip-badge.diamond {
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(96,165,250,0.08));
  border: 1px solid rgba(168,85,247,0.3);
  color: #A855F7;
  animation: diamondShimmer 3s ease-in-out infinite;
}
@keyframes diamondShimmer {
  0%, 100% { border-color: rgba(168,85,247,0.3); }
  50% { border-color: rgba(96,165,250,0.4); }
}
.vip-badge-icon { font-size: 0.75rem; }
.vip-tier-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.vip-tier-card .vip-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 10px;
}
.vip-tier-card .vip-progress-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}
.vip-tier-card .vip-progress-fill.silver { background: linear-gradient(90deg, #C0C0C0, #E0E0E0); }
.vip-tier-card .vip-progress-fill.gold { background: linear-gradient(90deg, #F5A623, #FFD700); }
.vip-tier-card .vip-progress-fill.diamond { background: linear-gradient(90deg, #A855F7, #60A5FA); }
.vip-tier-card .vip-progress-fill.none { background: rgba(255,255,255,0.15); }

/* ── LIVE card — neon red glow (stronger) ── */
.profile-card-live {
  border: 2px solid rgba(255, 23, 68, 0.35);
  animation: cardStaggerIn 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards, liveCardGlow 3s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 60ms), 0s;
}

@keyframes liveCardGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 23, 68, 0.15), 0 4px 24px rgba(0,0,0,0.4); }
  50% { box-shadow: 0 0 24px 4px rgba(255, 23, 68, 0.3), 0 4px 24px rgba(0,0,0,0.4); }
}

/* ── ONLINE card — teal indicator ── */
.profile-card-online {
  border-bottom: 2px solid rgba(0, 212, 170, 0.35);
}

/* ── NEW badge for recent profiles ── */
.card-new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 61, 127, 0.3);
}

/* Status badge wrapper */
.status-badge-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  z-index: 5;
}

/* Viewer count badge */
.viewer-count-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 100px;
  font-size: 0.58rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
}

.viewer-count-badge svg { width: 10px; height: 10px; opacity: 0.8; }

/* Status dot badges */
.status-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.status-dot.live {
  background: rgba(255, 23, 68, 0.92);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.5), 0 0 20px rgba(255, 23, 68, 0.2);
  animation: liveBadgePulse 2s ease-in-out infinite;
}

.status-dot.live::before {
  content: '';
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulseDot 1.2s ease-in-out infinite;
}

.status-dot.online {
  background: rgba(0, 212, 170, 0.2);
  color: var(--teal);
  border: 1px solid rgba(0, 212, 170, 0.15);
}

.status-dot.online::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.status-dot.offline {
  background: rgba(107, 101, 128, 0.3);
  color: var(--text-muted);
}

.status-dot.offline::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
}

@keyframes liveBadgePulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 23, 68, 0.5), 0 0 20px rgba(255, 23, 68, 0.2); }
  50% { box-shadow: 0 0 16px rgba(255, 23, 68, 0.7), 0 0 30px rgba(255, 23, 68, 0.3); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── Card CTA — Single premium pill ── */
.card-cta-bar {
  position: absolute;
  bottom: 54px;
  left: 0; right: 0;
  display: flex;
  gap: 6px;
  padding: 0 12px;
  z-index: 4;
  opacity: 1;          /* Always visible — mobile-first; the 1-on-1 cam CTA */
  transform: translateY(0);  /* needs to be discoverable without hover. */
  transition: opacity 0.2s ease;
}

.profile-card:hover .card-cta-bar { opacity: 1; }

.card-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 0;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-cta:active { transform: scale(0.95); }
.card-cta svg { width: 13px; height: 13px; }

.card-cta.cta-chat { background: rgba(0, 212, 170, 0.85); }
.card-cta.cta-call { background: rgba(168, 85, 247, 0.85); }
.card-cta.cta-live { background: linear-gradient(135deg, rgba(255, 23, 68, 0.9), rgba(255, 61, 127, 0.9)); }
.card-cta.cta-tip { background: rgba(245, 158, 11, 0.85); }
/* 1-on-1 private webcam — premium gold→amber gradient with subtle glow. */
.card-cta.cta-private {
  background: linear-gradient(135deg, rgba(245, 196, 64, 0.95), rgba(217, 119, 6, 0.95));
  color: #1A1306;
  box-shadow: 0 2px 10px rgba(245, 196, 64, 0.3);
}

/* Quick-action overlay on cards (legacy) */
.card-actions {
  position: absolute;
  bottom: 56px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 5;
}

.profile-card:hover .card-actions { opacity: 1; transform: translateY(0); }

@media (hover: none) {
  .card-actions { opacity: 1; transform: translateY(0); }
}

.card-action-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card-action-btn svg { width: 16px; height: 16px; }
.card-action-btn.chat-btn { background: rgba(0, 212, 170, 0.85); color: #fff; }
.card-action-btn.call-btn { background: rgba(168, 85, 247, 0.85); color: #fff; }
.card-action-btn:active { transform: scale(0.9); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
  white-space: nowrap;
  min-height: var(--touch-min);
}

.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.96); }

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 77, 141, 0.3);
}

.btn-primary:hover {
  background: var(--accent-gradient-h);
  box-shadow: 0 6px 30px rgba(255, 77, 141, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  border-color: var(--pink);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  background: transparent;
  color: var(--pink);
  border: 1.5px solid rgba(255, 77, 141, 0.5);
}

.btn-outline:hover { background: rgba(255, 77, 141, 0.1); border-color: var(--pink); }

.btn-sm { padding: 10px 18px; font-size: var(--text-sm); border-radius: var(--radius-sm); min-height: 40px; }
.btn-lg { padding: 18px 36px; font-size: 1.05rem; min-height: 56px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--touch-min); height: var(--touch-min); padding: 0; border-radius: 50%; }

.btn-video { background: var(--accent-gradient); color: #fff; }
.btn-audio { background: var(--purple-gradient); color: #fff; }
.btn-chat { background: var(--teal-gradient); color: #fff; }
.btn-gift { background: var(--gold-gradient); color: #fff; }

/* ── Input Fields ── */
.input-group { margin-bottom: 16px; }

.input-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 600;
}

.input-field {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font);
  transition: var(--transition);
  outline: none;
  min-height: var(--touch-min);
}

.input-field:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.input-field::placeholder { color: var(--text-muted); }

/* Floating label input */
.input-float-group {
  position: relative;
}

.input-float-group .input-field {
  padding-top: 22px;
  padding-bottom: 10px;
}

.input-float-group .float-label {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.2s ease;
}

.input-float-group .input-field:focus ~ .float-label,
.input-float-group .input-field:not(:placeholder-shown) ~ .float-label {
  top: 12px;
  transform: translateY(0);
  font-size: 0.7rem;
  color: var(--pink);
  font-weight: 600;
}

.phone-input {
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 4px;
  font-weight: 600;
}

/* Split OTP boxes */
.otp-boxes { display: flex; gap: 12px; justify-content: center; }

.otp-box {
  width: 56px; height: 64px;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
  caret-color: var(--pink);
}

.otp-box:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Chat Header — Premium ── */
.chat-avatar-ring {
  width: 44px; height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  flex-shrink: 0;
}

.chat-avatar-ring img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-primary);
}

.chat-online-status {
  font-size: 0.7rem;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-online-dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 1.5s ease-in-out infinite;
}

/* ── Chat Bubbles ── */
.chat-container { display: flex; flex-direction: column; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}

.chat-bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 22px;
  font-size: var(--text-base);
  line-height: 1.55;
  animation: bubbleSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes bubbleSlideIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Sent bubble — slides from right */
.chat-bubble.sent {
  align-self: flex-end;
  background: var(--accent-gradient);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 2px 16px rgba(255, 77, 141, 0.2);
  animation: bubbleSentIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes bubbleSentIn {
  from { opacity: 0; transform: translateX(16px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Received bubble — slides from left with pink accent border */
.chat-bubble.received {
  align-self: flex-start;
  background: #1C1C28;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 2px solid rgba(255, 77, 141, 0.4);
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  animation: bubbleRecvIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes bubbleRecvIn {
  from { opacity: 0; transform: translateX(-16px) scale(0.97); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

.chat-bubble .time {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.chat-bubble.received .time { color: var(--text-muted); }

/* Date separator pill */
.chat-date-pill {
  align-self: center;
  padding: 4px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  margin: 12px 0;
}

/* Read receipt check marks */
.read-check { display: inline-flex; margin-left: 2px; }
.read-check svg { width: 14px; height: 14px; }
.read-check.read { color: #60A5FA; }
.read-check.delivered { color: rgba(255, 255, 255, 0.4); }

/* Image message in chat */
.chat-bubble .chat-image {
  border-radius: var(--radius-sm);
  max-width: 220px;
  cursor: pointer;
  transition: transform 0.2s;
}
.chat-bubble .chat-image:active { transform: scale(0.97); }

/* Typing indicator */
.typing-indicator {
  display: flex; gap: 4px;
  padding: 12px 16px;
  align-self: flex-start;
}

.typing-indicator span {
  width: 8px; height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
}

/* Voice note bubble in chat */
.voice-bubble {
  min-width: 200px;
  max-width: 280px;
}
.voice-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.voice-play-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent, #FF3D7F);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.voice-play-btn:active { transform: scale(0.9); }
.voice-play-btn.playing { background: var(--accent-dark, #e0356e); }
.voice-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  height: 28px;
}
.voice-wave-bar {
  width: 3px;
  border-radius: 2px;
  background: var(--text-muted, #666);
  transition: height 0.2s;
}
/* Random heights for waveform bars */
.voice-wave-bar:nth-child(1)  { height: 8px; }
.voice-wave-bar:nth-child(2)  { height: 16px; }
.voice-wave-bar:nth-child(3)  { height: 10px; }
.voice-wave-bar:nth-child(4)  { height: 22px; }
.voice-wave-bar:nth-child(5)  { height: 14px; }
.voice-wave-bar:nth-child(6)  { height: 20px; }
.voice-wave-bar:nth-child(7)  { height: 8px; }
.voice-wave-bar:nth-child(8)  { height: 18px; }
.voice-wave-bar:nth-child(9)  { height: 12px; }
.voice-wave-bar:nth-child(10) { height: 24px; }
.voice-wave-bar:nth-child(11) { height: 10px; }
.voice-wave-bar:nth-child(12) { height: 16px; }
.voice-wave-bar.animating {
  animation: waveAnimate 0.5s ease-in-out infinite alternate;
  background: var(--accent, #FF3D7F);
}
.voice-wave-bar.animating:nth-child(2)  { animation-delay: 0.05s; }
.voice-wave-bar.animating:nth-child(3)  { animation-delay: 0.1s; }
.voice-wave-bar.animating:nth-child(4)  { animation-delay: 0.15s; }
.voice-wave-bar.animating:nth-child(5)  { animation-delay: 0.2s; }
.voice-wave-bar.animating:nth-child(6)  { animation-delay: 0.25s; }
.voice-wave-bar.animating:nth-child(7)  { animation-delay: 0.3s; }
.voice-wave-bar.animating:nth-child(8)  { animation-delay: 0.35s; }
.voice-wave-bar.animating:nth-child(9)  { animation-delay: 0.4s; }
.voice-wave-bar.animating:nth-child(10) { animation-delay: 0.45s; }
.voice-wave-bar.animating:nth-child(11) { animation-delay: 0.5s; }
.voice-wave-bar.animating:nth-child(12) { animation-delay: 0.55s; }
@keyframes waveAnimate {
  0%   { transform: scaleY(0.4); }
  100% { transform: scaleY(1.3); }
}
.voice-duration {
  font-size: 11px;
  color: var(--text-muted, #888);
  flex-shrink: 0;
  min-width: 28px;
}
/* Received voice note colors */
.received .voice-play-btn { background: var(--accent, #FF3D7F); }
.received .voice-wave-bar { background: rgba(255,255,255,0.3); }
.received .voice-wave-bar.animating { background: #fff; }

/* Chat input — enhanced mobile UX */
.chat-input-bar {
  display: flex; align-items: flex-end; gap: 8px;
  padding: 12px 14px calc(12px + var(--safe-bottom, 0px));
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-input-bar .gift-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245, 158, 11, 0.1); border: none;
  border-radius: 50%;
  color: var(--gold); cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  animation: giftBtnPulse 4s ease-in-out infinite;
}

@keyframes giftBtnPulse {
  0%, 85%, 100% { transform: scale(1); }
  90% { transform: scale(1.08); }
  95% { transform: scale(1); }
}

.chat-input-bar .gift-btn svg { width: 20px; height: 20px; }
.chat-input-bar .gift-btn:active { transform: scale(0.9); }

.chat-input-bar .img-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.chat-input-bar .img-btn svg { width: 20px; height: 20px; }
.chat-input-bar .img-btn:active { color: var(--pink); }

.chat-input-bar .chat-textarea {
  flex: 1;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  min-height: 44px;
  max-height: 120px;
  line-height: 1.4;
  overflow-y: auto;
}

.chat-input-bar .chat-textarea:focus { border-color: rgba(255, 77, 141, 0.5); }
.chat-input-bar .chat-textarea::placeholder { color: var(--text-muted); }

/* Backwards compat for pages still using input */
.chat-input-bar input {
  flex: 1;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font);
  outline: none;
  transition: border-color 0.2s;
  min-height: 44px;
}

.chat-input-bar input:focus { border-color: rgba(255, 77, 141, 0.5); }

.chat-input-bar .send-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-gradient);
  border: none; border-radius: 50%;
  color: #fff; cursor: pointer;
  transition: var(--transition-spring);
  box-shadow: 0 2px 12px rgba(255, 77, 141, 0.3);
  flex-shrink: 0;
}

.chat-input-bar .send-btn svg { width: 20px; height: 20px; }
.chat-input-bar .send-btn:active { transform: scale(0.85); }

/* Mic mode (when input is empty) */
.chat-input-bar .send-btn.mic-mode {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.chat-input-bar .send-btn.mic-mode:active { background: rgba(255, 77, 141, 0.2); }

/* ── Modal / Bottom Sheet ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  z-index: 200;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-sheet {
  width: 100%; max-width: 500px; max-height: 85dvh;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 24px;
  padding-bottom: calc(24px + var(--safe-bottom, 0px));
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-top: 1px solid rgba(255, 77, 141, 0.12);
}

/* Standardized bottom sheet */
.btm-sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none; align-items: flex-end; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.btm-sheet-backdrop.show { display: flex; }

.btm-sheet {
  width: 100%; max-width: 500px;
  background: #16161F;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 16px 20px calc(20px + var(--safe-bottom, 0px));
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 85dvh;
  overflow-y: auto;
}

.btm-sheet-handle {
  width: 40px; height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  margin: 0 auto 16px;
  cursor: grab;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-handle {
  width: 40px; height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  margin: 0 auto 20px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ── Credit Plan Cards ── */
.plan-card {
  position: relative;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.04);
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.plan-card:hover, .plan-card.selected {
  border-color: var(--pink);
  box-shadow: 0 0 24px rgba(255, 77, 141, 0.15);
}

.plan-card.popular {
  border-color: var(--purple);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.08), rgba(255, 77, 141, 0.05));
}

.plan-card.popular.selected { box-shadow: var(--neon-purple); }

.plan-card .popular-tag {
  position: absolute;
  top: -1px; right: 16px;
  background: var(--purple-gradient);
  color: #fff;
  font-size: 0.6rem; font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 4px;
}

.plan-card .popular-tag svg { width: 12px; height: 12px; }
.plan-card .plan-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.plan-card .plan-credits {
  font-size: 1.5rem; font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.plan-card .plan-price { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.plan-card .plan-bonus { font-size: 0.8rem; color: var(--teal); font-weight: 600; }
.plan-card .plan-rate { font-size: 0.75rem; color: var(--text-muted); }

/* ── Gift Grid ── */
.gift-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }

.gift-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.gift-item:hover, .gift-item.selected {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
  background: rgba(245, 158, 11, 0.06);
}

.gift-item .gift-emoji { font-size: 1.8rem; }
.gift-item .gift-cost {
  font-size: 0.7rem; color: var(--text-secondary); font-weight: 600;
  display: flex; align-items: center; gap: 2px;
}
.gift-item .gift-cost svg { width: 10px; height: 10px; color: var(--purple); }

/* ── Call Screen ── */
.call-screen {
  position: fixed; inset: 0;
  background: #000;
  z-index: 300;
  display: flex; flex-direction: column;
}

.call-video-container { flex: 1; position: relative; overflow: hidden; }
.call-video-container video { width: 100%; height: 100%; object-fit: cover; }

.call-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 24px 16px;
  background: linear-gradient(rgba(0,0,0,0.3) 0%, transparent 30%, transparent 60%, rgba(0,0,0,0.6) 100%);
}

.call-info { text-align: center; }
.call-info .call-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.call-info .call-timer { font-size: 2rem; font-weight: 300; font-variant-numeric: tabular-nums; margin-top: 4px; }
.call-info .call-rate { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

.call-controls { display: flex; justify-content: center; gap: 24px; }

.call-controls .ctrl-btn {
  width: 64px; height: 64px;
  border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}

.ctrl-btn svg { width: 26px; height: 26px; }
.ctrl-btn.end-call {
  background: var(--red); color: #fff;
  width: 72px; height: 72px;
  box-shadow: 0 0 24px rgba(255, 23, 68, 0.5);
}
.ctrl-btn:active { transform: scale(0.9); }
.ctrl-btn.mute, .ctrl-btn.speaker {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  color: #fff;
}
.ctrl-btn.mute.active, .ctrl-btn.speaker.active { background: rgba(255,255,255,0.25); }

.preview-banner {
  position: absolute; top: 80px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.85rem; font-weight: 600;
  color: var(--gold);
  border: 1px solid rgba(245,158,11,0.25);
  white-space: nowrap;
}

/* ── Live Room ── */
.live-room { display: flex; flex-direction: column; height: 100dvh; }

.live-video-section {
  position: relative; width: 100%;
  aspect-ratio: 9/16; max-height: 55dvh;
  overflow: hidden; background: #000;
}

.live-video-section video { width: 100%; height: 100%; object-fit: cover; }

.live-top-bar {
  position: absolute; top: 0; left: 0; right: 0;
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(rgba(0,0,0,0.6), transparent);
  z-index: 10;
}

.live-badge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 23, 68, 0.9);
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700; color: #fff;
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.4);
}

.live-badge .dot {
  width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  animation: pulseDot 1.5s ease-in-out infinite;
}

.viewer-count {
  display: flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,0.4);
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.8rem;
  backdrop-filter: blur(8px);
}

.viewer-count svg { width: 14px; height: 14px; }

.live-chat-section {
  flex: 1; display: flex; flex-direction: column;
  background: var(--bg-secondary); min-height: 0;
}

.live-chat-feed {
  flex: 1; overflow-y: auto;
  padding: 12px 16px;
  display: flex; flex-direction: column; gap: 6px;
}

.live-chat-msg {
  font-size: 0.85rem; line-height: 1.3;
  animation: fadeSlideIn 0.3s ease-out;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.live-chat-msg .username { font-weight: 700; color: var(--pink); margin-right: 6px; }

.live-gift-bar {
  display: flex; gap: 8px; padding: 8px 16px;
  overflow-x: auto; scrollbar-width: none;
}
.live-gift-bar::-webkit-scrollbar { display: none; }

/* ── Transaction List ── */
.tx-list { display: flex; flex-direction: column; gap: 8px; }

.tx-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.03);
}

.tx-item .tx-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-right: 12px; flex-shrink: 0;
}

.tx-item .tx-icon svg { width: 18px; height: 18px; }
.tx-item .tx-icon.purchase { background: rgba(168, 85, 247, 0.15); color: var(--purple); }
.tx-item .tx-icon.gift { background: rgba(245, 158, 11, 0.15); color: var(--gold); }
.tx-item .tx-icon.call { background: rgba(255, 77, 141, 0.15); color: var(--pink); }
.tx-item .tx-icon.chat { background: rgba(0, 212, 170, 0.15); color: var(--teal); }

.tx-item .tx-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.tx-item .tx-type { font-size: 0.85rem; font-weight: 600; }
.tx-item .tx-date { font-size: 0.7rem; color: var(--text-muted); }
.tx-item .tx-amount { font-size: 0.95rem; font-weight: 700; }
.tx-item .tx-amount.positive { color: var(--green); }
.tx-item .tx-amount.negative { color: var(--red); }

.tx-item .tx-status { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 100px; }
.tx-status.pending { background: rgba(245,158,11,0.15); color: var(--gold); }
.tx-status.approved { background: rgba(34,197,94,0.15); color: var(--green); }
.tx-status.rejected { background: rgba(239,68,68,0.15); color: var(--red); }

/* ── Profile Detail Page ── */
.profile-hero { position: relative; width: 100%; height: 60vh; overflow: hidden; }
.profile-hero img, .profile-hero-video { width: 100%; height: 100%; object-fit: cover; }
.profile-hero-img { position: absolute; top: 0; left: 0; }

.profile-hero .hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 80px 20px 20px;
  background: linear-gradient(transparent, rgba(10, 10, 15, 1));
}

.profile-action-bar {
  display: flex; gap: 10px;
  padding: 0 20px; margin-top: -24px;
  position: relative; z-index: 10;
}

.profile-action-pill {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 8px;
  border-radius: var(--radius);
  font-size: var(--text-sm); font-weight: 700;
  border: none; cursor: pointer;
  transition: var(--transition);
  color: #fff;
  min-height: var(--touch-min);
}

.profile-action-pill svg { width: 18px; height: 18px; }
.profile-action-pill:active { transform: scale(0.95); }

/* Primary full-width CTA for profile */
.profile-primary-cta {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
  font-size: var(--text-base); font-weight: 700;
  font-family: var(--font-display);
  border: none; cursor: pointer;
  transition: var(--transition);
  color: #fff;
  min-height: 56px;
  margin-bottom: 12px;
}
.profile-primary-cta svg { width: 20px; height: 20px; }
.profile-primary-cta:active { transform: scale(0.97); }
.profile-primary-cta.cta-chat { background: var(--teal-gradient); box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3); }
.profile-primary-cta.cta-live { background: var(--live-gradient); box-shadow: 0 4px 20px rgba(255, 23, 68, 0.3); }
.profile-primary-cta.cta-call { background: var(--accent-gradient); box-shadow: 0 4px 20px rgba(255, 77, 141, 0.3); }

/* Sticky action bar */
.sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 500px;
  display: flex; gap: 10px;
  padding: 12px 20px calc(12px + var(--safe-bottom, 0px));
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
  transition: transform 0.3s ease;
}
.sticky-action-bar.visible { transform: translateX(-50%) translateY(0); }
.profile-action-pill.video { background: var(--accent-gradient); }
.profile-action-pill.audio { background: var(--purple-gradient); }
.profile-action-pill.chat { background: var(--teal-gradient); }
.profile-action-pill.gift-pill { background: var(--gold-gradient); }

.profile-detail-info { padding: 16px 20px 20px; }
.profile-detail-info .detail-name { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; }
.profile-detail-info .detail-meta { font-size: 0.9rem; color: var(--text-secondary); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.profile-detail-info .detail-bio { font-size: 0.9rem; color: var(--text-secondary); margin-top: 10px; line-height: 1.6; }

/* Pricing grid */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 20px; margin-top: 20px; }

.pricing-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,0.03);
}

.pricing-item .pricing-icon {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pricing-item .pricing-icon svg { width: 16px; height: 16px; }
.pricing-item .pricing-icon.video-icon { background: rgba(255,77,141,0.15); color: var(--pink); }
.pricing-item .pricing-icon.audio-icon { background: rgba(168,85,247,0.15); color: var(--purple); }
.pricing-item .pricing-icon.chat-icon { background: rgba(0,212,170,0.15); color: var(--teal); }
.pricing-item .pricing-icon.free-icon { background: rgba(34,197,94,0.15); color: var(--green); }
.pricing-item .pricing-label { font-size: 0.72rem; color: var(--text-muted); }
.pricing-item .pricing-value { font-size: 0.82rem; font-weight: 700; }

.profile-actions { display: flex; gap: 10px; padding: 0 20px; margin-top: 16px; }
.profile-actions .btn { flex: 1; }

/* ── QR Section ── */
.qr-section {
  text-align: center; padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius); margin-top: 16px;
  border: 1px solid rgba(255,255,255,0.03);
}
.qr-section .qr-instruction { font-size: 0.85rem; color: var(--text-secondary); margin-top: 12px; line-height: 1.5; }

/* Upload area */
.upload-area {
  margin-top: 16px; padding: 32px;
  border: 2px dashed rgba(255, 77, 141, 0.2);
  border-radius: var(--radius);
  text-align: center; cursor: pointer;
  transition: var(--transition);
}
.upload-area:hover { border-color: var(--pink); background: rgba(255,77,141,0.04); }
.upload-area .upload-icon { margin-bottom: 8px; color: var(--pink); }
.upload-area .upload-icon svg { width: 32px; height: 32px; }
.upload-area .upload-text { font-size: 0.85rem; color: var(--text-secondary); }

/* ── Credits Carousel ── */
.credits-carousel {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0 16px 16px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.credits-carousel::-webkit-scrollbar { display: none; }

.carousel-slide {
  min-width: 260px; padding: 20px;
  border-radius: var(--radius);
  scroll-snap-align: start;
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}

.carousel-slide.coral { background: linear-gradient(135deg, rgba(255,77,141,0.2), rgba(255,61,127,0.1)); border: 1px solid rgba(255,77,141,0.15); }
.carousel-slide.purple { background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(124,58,237,0.1)); border: 1px solid rgba(168,85,247,0.15); }
.carousel-slide.gold { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(217,119,6,0.1)); border: 1px solid rgba(245,158,11,0.15); }

.carousel-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.carousel-icon svg { width: 20px; height: 20px; }
.carousel-slide.coral .carousel-icon { background: rgba(255,77,141,0.2); color: var(--pink); }
.carousel-slide.purple .carousel-icon { background: rgba(168,85,247,0.2); color: var(--purple); }
.carousel-slide.gold .carousel-icon { background: rgba(245,158,11,0.2); color: var(--gold); }

.carousel-text .carousel-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; }
.carousel-text .carousel-desc { font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }

.carousel-dots { display: flex; justify-content: center; gap: 6px; padding: 4px 0 12px; }
.carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.15); transition: var(--transition); }
.carousel-dot.active { width: 20px; border-radius: 3px; background: var(--accent-gradient); }

/* ── Balance Card (Wallet) ── */
.balance-card {
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, rgba(168,85,247,0.12), rgba(255,77,141,0.08));
  border: 1px solid rgba(168,85,247,0.15);
  position: relative; overflow: hidden;
}

.balance-card::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,77,141,0.08), transparent);
  border-radius: 50%;
}

.balance-label { font-size: 0.8rem; color: var(--text-muted); }
.balance-amount {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.balance-unit { font-size: 0.8rem; color: var(--text-muted); }

/* ── Image fallback placeholder ── */
.img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: rgba(255,255,255,0.12);
  background: linear-gradient(135deg, #1a1020, #201018);
}

/* ============================================
   Search Trigger & Filter Panel
   ============================================ */

/* ── Unified top-bar search ── */
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 0 6px 0 14px;
  height: 38px;
  flex: 1;
  min-width: 0;
  margin: 0 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.topbar-search.expanded,
.topbar-search:focus-within {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.08);
}
.topbar-search-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  opacity: 0.5;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.topbar-search:focus-within .topbar-search-icon {
  opacity: 0.8;
  color: var(--purple);
}
.topbar-search-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.84rem;
  font-family: inherit;
  font-weight: 500;
  padding: 0;
  height: 100%;
}
.topbar-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.45;
  font-weight: 400;
}
.topbar-search-clear {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.topbar-search-clear:hover { background: rgba(255, 255, 255, 0.18); }
.topbar-filter-btn {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.topbar-filter-btn:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--purple);
}
.topbar-filter-btn:active { transform: scale(0.9); }

.filter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
  position: absolute;
  top: -1px;
  right: -1px;
  box-shadow: 0 0 6px var(--pink);
}

/* ── Filter panel overlay ── */
.filter-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-primary);
  flex-direction: column;
  animation: filterSlideUp 0.3s ease-out;
}

@keyframes filterSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-panel-header h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.filter-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.filter-close-btn:active {
  background: rgba(255, 255, 255, 0.12);
}

.filter-panel-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 20px;
  overflow-y: auto;
  flex: 1;
}

.filter-section-title {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  border-radius: 20px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-chip:active {
  transform: scale(0.95);
}

.filter-chip.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 77, 141, 0.3);
}

.filter-panel-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-card);
}

.filter-reset-btn {
  flex: 0.4;
  padding: 12px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-reset-btn:active {
  background: rgba(255, 255, 255, 0.06);
}

.filter-apply-btn {
  flex: 0.6;
  padding: 12px;
  border-radius: 12px;
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255, 61, 127, 0.3);
}

.filter-apply-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(255, 61, 127, 0.4);
}

/* ── Low Credits Bottom Sheet (used across chat / live / profile / call) ── */
.ftx-low-credits-overlay {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.ftx-low-credits-overlay.show { opacity: 1; pointer-events: auto; }
.ftx-low-credits-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ftx-low-credits-sheet {
  position: relative;
  background: linear-gradient(180deg, #1A1A22 0%, #0F0F14 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-radius: 22px 22px 0 0;
  padding: 28px 22px calc(20px + var(--safe-bottom, 0px));
  width: 100%;
  max-width: 480px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
}
.ftx-low-credits-overlay.show .ftx-low-credits-sheet { transform: translateY(0); }
.ftx-low-credits-icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(245,196,64,0.12);
  display: flex; align-items: center; justify-content: center;
}
.ftx-low-credits-title {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.ftx-low-credits-body {
  font-size: 0.92rem;
  color: #B7B7B9;
  line-height: 1.5;
  margin: 0 0 22px;
}
.ftx-low-credits-cta {
  width: 100%;
  padding: 16px;
  border-radius: 100px;
  border: none;
  background: var(--accent-gradient, linear-gradient(135deg, #FF3D7F, #A855F7));
  color: #FFFFFF;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  margin-bottom: 8px;
  box-shadow: 0 6px 20px rgba(255,61,127,0.3);
}
.ftx-low-credits-cta:active { transform: scale(0.98); }
.ftx-low-credits-cancel {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  color: #9A9AA0;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

/* ── Live shuffle: home grid re-orders every 6–9s, fade the cards in ── */
#profile-grid.grid-shuffling .profile-card {
  animation: gridShuffleIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#profile-grid.grid-shuffling .profile-card:nth-child(2)  { animation-delay: 0.04s; }
#profile-grid.grid-shuffling .profile-card:nth-child(3)  { animation-delay: 0.08s; }
#profile-grid.grid-shuffling .profile-card:nth-child(4)  { animation-delay: 0.12s; }
#profile-grid.grid-shuffling .profile-card:nth-child(5)  { animation-delay: 0.16s; }
#profile-grid.grid-shuffling .profile-card:nth-child(6)  { animation-delay: 0.20s; }
#profile-grid.grid-shuffling .profile-card:nth-child(7)  { animation-delay: 0.24s; }
#profile-grid.grid-shuffling .profile-card:nth-child(8)  { animation-delay: 0.28s; }
#profile-grid.grid-shuffling .profile-card:nth-child(n+9){ animation-delay: 0.32s; }
@keyframes gridShuffleIn {
  0%   { opacity: 0.35; transform: scale(0.96) translateY(6px); }
  100% { opacity: 1;    transform: scale(1)    translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #profile-grid.grid-shuffling .profile-card { animation: none; }
}

/* Apply the same shuffle-in animation to the Top Free + Couples rows */
#profile-grid.grid-shuffling ~ * .sc-h-grid .profile-card,
.sc-extra-section .sc-h-grid.shuffling .profile-card {
  animation: gridShuffleIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ============================================================
   Voice-call transcript card (rendered in chat after a call ends)
   ============================================================ */
.call-summary-card {
  align-self: stretch;
  margin: 14px auto;
  max-width: 92%;
  background: linear-gradient(135deg, rgba(196,18,48,0.18), rgba(240,196,25,0.08));
  border: 1px solid rgba(196,18,48,0.30);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 4px 18px rgba(196,18,48,0.18);
  color: var(--text, #fff);
}
.call-summary-card .vc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.call-summary-card .vc-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c41230, #f0c419);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(196,18,48,0.40);
}
.call-summary-card .vc-meta { flex: 1; min-width: 0; }
.call-summary-card .vc-title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
}
.call-summary-card .vc-sub {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}
.call-summary-card .vc-toggle {
  background: rgba(255,255,255,0.08);
  border: none;
  color: rgba(255,255,255,0.85);
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s;
}
.call-summary-card .vc-toggle:hover { background: rgba(255,255,255,0.16); }

.call-summary-card .vc-turns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  background: rgba(0,0,0,0.18);
  border-radius: 12px;
}
.call-summary-card .vc-turns.hidden { display: none; }
.call-summary-card .vc-turn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 10px;
  line-height: 1.4;
}
.call-summary-card .vc-user {
  align-self: flex-end;
  background: rgba(196,18,48,0.30);
  border: 1px solid rgba(196,18,48,0.45);
  max-width: 86%;
  text-align: left;
}
.call-summary-card .vc-profile {
  align-self: flex-start;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  max-width: 86%;
}
.call-summary-card .vc-who {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  opacity: 0.7;
}
.call-summary-card .vc-text { font-size: 0.92rem; }
.call-summary-card .vc-note {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}

/* Light theme tweaks (used on /admin chat moderation if rendered there) */
[data-theme="light"] .call-summary-card { background: linear-gradient(135deg, #fff5f6, #fffae6); border-color: rgba(196,18,48,0.25); color: #1a1a2e; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
[data-theme="light"] .call-summary-card .vc-sub  { color: #6b7280; }
[data-theme="light"] .call-summary-card .vc-toggle { background: rgba(0,0,0,0.06); color: #1a1a2e; }
[data-theme="light"] .call-summary-card .vc-toggle:hover { background: rgba(0,0,0,0.12); }
[data-theme="light"] .call-summary-card .vc-turns { background: rgba(0,0,0,0.04); }
[data-theme="light"] .call-summary-card .vc-user { background: linear-gradient(135deg, #c41230, #8e0c20); color: #fff; border-color: transparent; }
[data-theme="light"] .call-summary-card .vc-profile { background: #f1f3f5; color: #1a1a2e; border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .call-summary-card .vc-note { color: #6b7280; }
