/* HaloMeet Core Theme Stylesheet */
:root {
  --bg-dark: #0b0512;
  --bg-card: rgba(22, 10, 36, 0.85);
  --bg-card-hover: rgba(35, 16, 56, 0.95);
  --primary-pink: #ff2a7a;
  --primary-purple: #8a2be2;
  --primary-blue: #00d2ff;
  --gold-accent: #ffd700;
  --text-main: #ffffff;
  --text-muted: #a09cb0;
  --border-glow: rgba(255, 42, 122, 0.25);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

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

html, body {
  height: 100%;
  height: 100dvh;
  min-height: -webkit-fill-available;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(138, 43, 226, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(255, 42, 122, 0.15) 0%, transparent 40%);
}

/* Mobile App Viewport Container */
.app-container {
  width: 100%;
  max-width: 440px;
  height: 880px;
  max-height: calc(100vh - 40px);
  background-color: #0d0714;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 42, 122, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 768px) {
  html, body {
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    height: -webkit-fill-available !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #0d0714 !important;
  }

  .app-container {
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    height: -webkit-fill-available !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .top-bar {
    flex-shrink: 0 !important;
    width: 100% !important;
    height: 58px !important;
    padding: 10px 16px !important;
    background: rgba(13, 7, 20, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    z-index: 1000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .main-screen {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    width: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 14px 14px 20px 14px !important;
    position: relative !important;
  }

  .view-section {
    display: none;
    width: 100%;
  }

  .view-section.active {
    display: block !important;
  }

  .main-screen.no-padding {
    padding: 0 !important;
    overflow: hidden !important;
  }

  #section-matches.active {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 62px !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
    background: rgba(18, 9, 30, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.7) !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
  }

  .wa-input-bar {
    margin-bottom: 0 !important;
  }
}

/* Top Navigation Bar */
.top-bar {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(13, 7, 20, 0.8);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-logo-small {
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(255, 42, 122, 0.6));
}

.app-name-title {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-badge {
  background: linear-gradient(135deg, rgba(255, 42, 122, 0.2), rgba(138, 43, 226, 0.2));
  border: 1px solid rgba(255, 42, 122, 0.4);
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff9ec6;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wallet-badge:hover {
  transform: scale(1.04);
  border-color: var(--primary-pink);
  box-shadow: 0 0 12px rgba(255, 42, 122, 0.4);
}

.demo-switch-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

/* App Main Content Area */
.main-screen {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 16px 80px 16px;
  position: relative;
}

.main-screen.no-padding {
  padding: 0 !important;
  overflow: hidden !important;
}

.main-screen::-webkit-scrollbar {
  width: 4px;
}

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

/* View Sections Toggle */
.view-section {
  display: none;
  width: 100%;
  height: auto;
  animation: fadeIn 0.25s ease-in-out forwards;
}

.view-section.active {
  display: block;
}

#section-matches.active {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

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

/* Bottom Navigation Bar */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 64px;
  background: rgba(18, 9, 30, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: var(--glass-border);
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
  flex-shrink: 0;
}

.nav-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 28px;
}

.nav-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: all 0.2s ease;
}

.nav-item i {
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

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

.nav-item.active i {
  color: var(--primary-pink);
  filter: drop-shadow(0 0 10px rgba(255, 42, 122, 0.9));
  transform: translateY(-1px) scale(1.1);
}

/* Buttons & Badges */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 42, 122, 0.4);
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 42, 122, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

/* Discover Card Styling */
.profile-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: var(--glass-border);
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.profile-card-image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.profile-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(11, 5, 18, 0.95) 0%, rgba(11, 5, 18, 0.6) 60%, transparent 100%);
}

.profile-name-age {
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.monetized-badge {
  background: linear-gradient(135deg, #00d2ff, #0072ff);
  color: white;
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}

.rate-chips {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.chip {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chip-voice {
  background: rgba(255, 42, 122, 0.15);
  border: 1px solid rgba(255, 42, 122, 0.4);
  color: #ff9ec6;
}

.chip-video {
  background: rgba(138, 43, 226, 0.15);
  border: 1px solid rgba(138, 43, 226, 0.4);
  color: #c79aff;
}

.card-action-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
}

.action-circle-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: var(--glass-border);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.action-circle-btn.btn-voice-call {
  background: linear-gradient(135deg, #00d2ff, #0072ff);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.4);
}

.action-circle-btn.btn-video-call {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  box-shadow: 0 0 16px rgba(255, 42, 122, 0.5);
}

.action-circle-btn:hover {
  transform: scale(1.1);
}

/* Call Overlay Screens */
.call-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #060209;
  z-index: 100;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 24px;
}

.call-overlay.active {
  display: flex;
}

/* Fullscreen Zego Call Container */
.zego-call-root {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: #060209;
}

.zego-call-root.active {
  display: block !important;
}

.video-stream-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.local-video-pip {
  position: absolute;
  bottom: 120px;
  right: 20px;
  width: 100px;
  height: 140px;
  border-radius: 16px;
  border: 2px solid var(--primary-pink);
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.call-header-info {
  z-index: 20;
  text-align: center;
}

.call-timer-badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.4);
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(0, 210, 255, 0.2);
}

.call-billing-indicator {
  margin-top: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ff9ec6;
  background: rgba(255, 42, 122, 0.18);
  border: 1px solid rgba(255, 42, 122, 0.35);
  padding: 4px 14px;
  border-radius: 20px;
  display: inline-block;
}

.call-talktime-badge {
  margin-top: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #00e676;
  background: rgba(0, 230, 118, 0.14);
  border: 1px solid rgba(0, 230, 118, 0.3);
  padding: 3px 12px;
  border-radius: 12px;
  display: inline-block;
}

.call-status-pill-secure {
  font-size: 0.72rem;
  font-weight: 700;
  color: #00d2ff;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.25);
  padding: 4px 12px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.3px;
}

.call-low-balance-banner {
  background: linear-gradient(135deg, rgba(255, 59, 48, 0.95), rgba(255, 149, 0, 0.95));
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px auto 0 auto;
  max-width: 90%;
  box-shadow: 0 4px 18px rgba(255, 59, 48, 0.5);
  animation: pulseAlert 1.5s infinite alternate;
  z-index: 30;
}

@keyframes pulseAlert {
  from { transform: scale(0.98); opacity: 0.9; }
  to { transform: scale(1.02); opacity: 1; }
}

/* Audio Pulse Rings */
.call-avatar-pulse-container {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.caller-big-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-pink);
  box-shadow: 0 0 25px rgba(255, 42, 122, 0.6);
  position: relative;
  z-index: 2;
}

.pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 42, 122, 0.4);
  animation: pulseRingAnim 2.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

.pulse-ring.ring-1 { width: 120px; height: 120px; animation-delay: 0s; }
.pulse-ring.ring-2 { width: 145px; height: 145px; animation-delay: 0.7s; }
.pulse-ring.ring-3 { width: 170px; height: 170px; animation-delay: 1.4s; }

@keyframes pulseRingAnim {
  0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
  50% { opacity: 0.35; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

/* Audio Waveform Equalizer Bars */
.audio-waveform-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  margin: 14px auto 8px auto;
}

.audio-waveform-bars .bar {
  width: 4px;
  height: 8px;
  background: linear-gradient(to top, var(--primary-pink), #00d2ff);
  border-radius: 3px;
  animation: waveAnim 1.2s ease-in-out infinite alternate;
}

.audio-waveform-bars .bar:nth-child(1) { height: 12px; animation-delay: 0.1s; }
.audio-waveform-bars .bar:nth-child(2) { height: 24px; animation-delay: 0.25s; }
.audio-waveform-bars .bar:nth-child(3) { height: 16px; animation-delay: 0.4s; }
.audio-waveform-bars .bar:nth-child(4) { height: 28px; animation-delay: 0.15s; }
.audio-waveform-bars .bar:nth-child(5) { height: 10px; animation-delay: 0.35s; }

@keyframes waveAnim {
  0% { height: 6px; opacity: 0.4; }
  100% { height: 26px; opacity: 1; }
}

.call-route-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  color: #e0e0e0;
  margin-top: 10px;
}

.call-route-chip.speaker-active {
  background: rgba(0, 210, 255, 0.15);
  border-color: rgba(0, 210, 255, 0.4);
  color: #00d2ff;
}

/* Call Summary Modal Styles */
.call-summary-modal-content {
  text-align: center;
  padding: 26px 20px 24px 20px;
  max-width: 360px;
  border-radius: 24px;
  background: #140b24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.call-summary-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.35);
  color: #ff3b30;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto;
}

.call-summary-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 14px 0;
}

.call-summary-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-pink);
}

.call-type-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary-pink);
  margin-top: 3px;
}

.call-summary-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.summary-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-stat-box .stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.summary-stat-box .stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.summary-stat-box .stat-val--highlight {
  color: #00d2ff;
}

.history-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.history-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.connected-user-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.22s ease-in-out;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.connected-user-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 42, 122, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 42, 122, 0.15);
}

.quick-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.quick-action-btn.voice {
  background: rgba(0, 210, 255, 0.15);
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: #00d2ff;
}

.quick-action-btn.video {
  background: rgba(255, 42, 122, 0.15);
  border: 1px solid rgba(255, 42, 122, 0.4);
  color: #ff9ec6;
}

.quick-action-btn.chat {
  background: rgba(0, 168, 132, 0.15);
  border: 1px solid rgba(0, 168, 132, 0.4);
  color: #00a884;
}

.quick-action-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 12px currentColor;
}

/* REAL-TIME NOTIFICATION TOAST & BADGES */
.notification-toast {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  background: rgba(17, 27, 33, 0.95);
  border: 1px solid rgba(0, 168, 132, 0.6);
  border-radius: 18px;
  padding: 12px 14px;
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 120;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 168, 132, 0.3);
  backdrop-filter: blur(16px);
  cursor: pointer;
  animation: slideDownToast 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.notification-toast.active {
  display: flex;
}

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

.toast-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--wa-green);
  flex-shrink: 0;
}

.nav-badge {
  position: absolute;
  top: 2px;
  right: 14px;
  background: var(--primary-pink);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 4px;
  box-shadow: 0 0 8px rgba(255, 42, 122, 0.8);
  animation: pulseBadge 1.5s infinite;
}

.unread-pill {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 8px rgba(255, 42, 122, 0.5);
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.voice-call-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  z-index: 20;
}

.caller-big-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-pink);
  box-shadow: 0 0 30px rgba(255, 42, 122, 0.6);
  animation: pulseAvatar 2s infinite;
}

@keyframes pulseAvatar {
  0% { box-shadow: 0 0 0 0 rgba(255, 42, 122, 0.7); }
  70% { box-shadow: 0 0 0 25px rgba(255, 42, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 42, 122, 0); }
}

.call-controls-bar {
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.call-control-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.call-control-btn.end-call {
  background: #ff3b30;
  box-shadow: 0 0 20px rgba(255, 59, 48, 0.6);
}

.call-control-btn.active-muted {
  background: #ff3b30 !important;
  border-color: #ff3b30 !important;
  box-shadow: 0 0 16px rgba(255, 59, 48, 0.7) !important;
  color: white !important;
}

.call-control-btn.active-speaker {
  background: #00d2ff !important;
  border-color: #00d2ff !important;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.7) !important;
  color: white !important;
}

.call-control-btn.active-cam-off {
  background: #ff9500 !important;
  border-color: #ff9500 !important;
  box-shadow: 0 0 16px rgba(255, 149, 0, 0.7) !important;
  color: white !important;
}

/* Modals */
.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  background: rgba(0, 0, 0, 0.86) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  z-index: 1000000 !important;
  display: none;
  justify-content: center;
  align-items: flex-end;
}

.modal-backdrop.active {
  display: flex !important;
}

.modal-content {
  width: 100% !important;
  max-width: 440px !important;
  background: var(--bg-card) !important;
  border-top-left-radius: 28px !important;
  border-top-right-radius: 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 24px 20px 40px 20px !important;
  max-height: calc(100dvh - 110px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 42, 122, 0.2);
  margin-bottom: max(68px, calc(64px + env(safe-area-inset-bottom))) !important;
}

.modal-content::-webkit-scrollbar {
  width: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Premium Crown Visual */
.premium-card {
  background: linear-gradient(135deg, #2c1e05 0%, #170d26 100%);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.crown-icon-big {
  font-size: 3.5rem;
  color: var(--gold-accent);
  filter: drop-shadow(0 0 16px rgba(255, 215, 0, 0.8));
  margin-bottom: 12px;
}

.premium-perks-list {
  text-align: left;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #ffea9f;
}

.perk-item i {
  color: var(--gold-accent);
}

/* Input Fields */
.input-group {
  margin-bottom: 16px;
  text-align: left;
}

.input-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: block;
}

.input-field {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 16px;
  border-radius: 14px;
  color: white;
  font-size: 0.95rem;
  outline: none;
}

.input-field:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 10px rgba(255, 42, 122, 0.3);
}

/* Chat Screen */
.chat-messages-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
}

.chat-bubble {
  max-width: 75%;
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-bubble.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-bubble.received {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-bottom-left-radius: 4px;
}

.chat-input-bar {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(22, 10, 36, 0.9);
  border-top: var(--glass-border);
  border-radius: 24px;
  margin-top: 10px;
}

/* =======================================================
   SMART FEMALE CREATOR KYC & VIDEO VERIFICATION STYLES
   ======================================================= */
.kyc-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kyc-step-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.kyc-step-pill.active {
  background: linear-gradient(135deg, rgba(255, 42, 122, 0.3), rgba(138, 43, 226, 0.3));
  color: #fff;
  border: 1px solid rgba(255, 42, 122, 0.5);
  box-shadow: 0 4px 15px rgba(255, 42, 122, 0.2);
}

.kyc-step-pill.completed {
  color: #00d2ff;
}

.kyc-step-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.kyc-step-pill.active .kyc-step-num {
  background: var(--primary-pink);
  color: #fff;
}

.kyc-step-pill.completed .kyc-step-num {
  background: #00d2ff;
  color: #0b0512;
}

.kyc-camera-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 280px;
  border-radius: 20px;
  overflow: hidden;
  background: #08030f;
  border: 2px dashed rgba(255, 42, 122, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.kyc-camera-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror front camera */
}

.kyc-face-guide {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 210px;
  border: 2px dashed rgba(255, 255, 255, 0.45);
  border-radius: 50% / 60% 60% 40% 40%;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
}

.kyc-face-guide.recording {
  border-color: #ff2a7a;
  box-shadow: 0 0 20px rgba(255, 42, 122, 0.6), 0 0 0 9999px rgba(0, 0, 0, 0.35);
  animation: guidePulse 1.5s infinite;
}

@keyframes guidePulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.03); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.kyc-timer-overlay {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 42, 122, 0.5);
  z-index: 10;
}

.kyc-rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff2a7a;
  animation: blinkRec 1s infinite;
}

@keyframes blinkRec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.kyc-progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 10;
}

.kyc-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-pink), #00d2ff);
  transition: width 0.1s linear;
}

.kyc-instruction-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.78rem;
  color: #ff9ec6;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.kyc-security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  color: #a09cb0;
  background: rgba(0, 210, 255, 0.06);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 8px 12px;
  border-radius: 12px;
  margin: 12px 0;
}

/* AI Scanner Laser Animation */
.kyc-scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ff2a7a, #00d2ff, transparent);
  box-shadow: 0 0 15px #00d2ff, 0 0 25px #ff2a7a;
  display: none;
  z-index: 8;
  animation: laserScan 2s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% { top: 8%; opacity: 0.8; }
  50% { opacity: 1; }
  100% { top: 92%; opacity: 0.8; }
}

/* AI Verification Result Card */
.kyc-ai-card {
  background: rgba(14, 7, 24, 0.85);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.kyc-ai-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #00d2ff, var(--primary-pink));
}

.kyc-ai-card.failed {
  border-color: rgba(255, 77, 121, 0.5);
}

.kyc-ai-card.failed::before {
  background: #ff4d79;
}

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

.kyc-ai-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kyc-ai-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.4px;
}

.kyc-ai-badge.success {
  background: rgba(0, 210, 160, 0.18);
  color: #00d2a0;
  border: 1px solid rgba(0, 210, 160, 0.4);
}

.kyc-ai-badge.danger {
  background: rgba(255, 77, 121, 0.18);
  color: #ff4d79;
  border: 1px solid rgba(255, 77, 121, 0.4);
}

.kyc-ai-badge.analyzing {
  background: rgba(0, 210, 255, 0.18);
  color: #00d2ff;
  border: 1px solid rgba(0, 210, 255, 0.4);
}

.kyc-ai-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: #d1d5db;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.kyc-ai-val {
  font-weight: 700;
  color: #fff;
}



/* ──────────────────────────────────────────────
   KYC AI: Scanner Laser + AI Card
────────────────────────────────────────────── */

/* Scanner Laser — animated line that sweeps the camera box during AI analysis */
.kyc-scanner-laser {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #00d2ff 40%, rgba(0, 210, 255, 0.9) 50%, #00d2ff 60%, transparent 100%);
  border-radius: 2px;
  z-index: 10;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.8);
  animation: none;
  pointer-events: none;
}

.kyc-scanner-laser.active {
  display: block;
  animation: kycLaserSweep 1.4s ease-in-out infinite;
}

@keyframes kycLaserSweep {
  0%   { top: 0%; opacity: 0.6; }
  50%  { top: calc(100% - 3px); opacity: 1; }
  100% { top: 0%; opacity: 0.6; }
}

/* AI Result Card — shown after AI analysis with gender/confidence/liveness */
.kyc-ai-card {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
}

.kyc-ai-card--success {
  background: rgba(0, 210, 160, 0.1);
  border: 1px solid rgba(0, 210, 160, 0.4);
}

.kyc-ai-card--failed {
  background: rgba(255, 60, 90, 0.1);
  border: 1px solid rgba(255, 60, 90, 0.4);
}

.kyc-ai-card .kyc-ai-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.kyc-ai-card--success .kyc-ai-badge {
  color: #00d2a0;
}

.kyc-ai-card--failed .kyc-ai-badge {
  color: #ff3c5a;
}

.kyc-ai-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kyc-ai-card .kyc-ai-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.77rem;
  color: #c4c9d4;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.kyc-ai-card .kyc-ai-row:last-child {
  border-bottom: none;
}

.kyc-ai-card .kyc-ai-row strong {
  color: #fff;
  font-weight: 700;
}
