/* ==============================================================================
   FUSEDHEARTS DATING APP - MODERN GLASSMORPHIC DARK STYLES
   ============================================================================== */

:root {
  --primary-pink: #ff3b75;
  --primary-purple: #8b5cf6;
  --accent-gold: #f59e0b;
  --accent-green: #10b981;
  --accent-blue: #3b82f6;
  --bg-dark: #0a0b10;
  --bg-card: rgba(18, 20, 32, 0.85);
  --bg-surface: #131622;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 59, 117, 0.4);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --gradient-brand: linear-gradient(135deg, #ff3b75 0%, #a855f7 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 8px 25px rgba(255, 59, 117, 0.3);
}

/* ==============================================================================
   LIGHT THEME DESIGN ENGINE
   ============================================================================== */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.96);
  --bg-surface: #ffffff;
  --border-glass: rgba(15, 23, 42, 0.08);
  --border-focus: rgba(255, 59, 117, 0.6);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --shadow-lg: 0 16px 36px -10px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 8px 25px rgba(255, 59, 117, 0.2);
}

[data-theme="light"] body {
  background-color: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .ambient-glow {
  opacity: 0.10;
}

/* Desktop Header */
[data-theme="light"] .desktop-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .brand-badge {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}
[data-theme="light"] .ctrl-btn {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .ctrl-btn:hover {
  background: #f8fafc;
}

/* Smartphone Wrapper */
[data-theme="light"] .smartphone-frame {
  background: #ffffff;
  box-shadow: 0 0 0 10px #e2e8f0, 0 30px 60px rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .phone-screen {
  background: #f8fafc;
}

/* Screen Top Header */
[data-theme="light"] .screen-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .tool-btn {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #1e293b;
}
[data-theme="light"] .tool-btn:hover {
  background: #e2e8f0;
}

/* Bottom Nav */
[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}
[data-theme="light"] .nav-item {
  color: #64748b;
}
[data-theme="light"] .nav-item.active {
  color: var(--primary-pink);
}

/* Profile Tab & Settings */
[data-theme="light"] .profile-card,
[data-theme="light"] .profile-menu-card,
[data-theme="light"] .vip-banner-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .profile-menu-card h4 {
  color: #0f172a;
}
[data-theme="light"] .menu-desc {
  color: #64748b;
}
[data-theme="light"] .profile-details h3 {
  color: #0f172a;
}
[data-theme="light"] .profile-bio {
  color: #475569;
}
[data-theme="light"] .stats-pill {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .stat-num {
  color: #0f172a;
}
[data-theme="light"] .stat-label {
  color: #64748b;
}
[data-theme="light"] .tag {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .btn-outline {
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: #0f172a;
}
[data-theme="light"] .btn-outline:hover {
  background: #f1f5f9;
}
[data-theme="light"] .my-voice-player {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Chat Tab & Matches List */
[data-theme="light"] .match-row {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .match-name {
  color: #0f172a;
}
[data-theme="light"] .match-preview {
  color: #64748b;
}
[data-theme="light"] .match-meta span {
  color: #94a3b8;
}
[data-theme="light"] .matches-search-box input {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .matches-search-box input::placeholder {
  color: #94a3b8;
}
[data-theme="light"] .story-name {
  color: #334155;
}

/* Chat Room & Messaging */
[data-theme="light"] .chat-room-container {
  background: #f8fafc;
}
[data-theme="light"] .chat-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .btn-chat-back {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}
[data-theme="light"] #chat-header-name {
  color: #0f172a;
}
[data-theme="light"] #chat-header-status {
  color: #10b981;
}
[data-theme="light"] .online-dot {
  border-color: #ffffff;
}
[data-theme="light"] .chat-messages-body {
  background: #f8fafc;
}
[data-theme="light"] .msg-bubble.incoming {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .msg-bubble.incoming .msg-time {
  color: #94a3b8;
}
[data-theme="light"] .chat-shortcuts-bar {
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
[data-theme="light"] .shortcut-chip {
  background: #ffffff;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .shortcut-chip.highlight {
  background: rgba(139, 92, 246, 0.12);
  color: #7c3aed;
  border-color: rgba(139, 92, 246, 0.3);
}
[data-theme="light"] .chat-input-row {
  background: rgba(255, 255, 255, 0.98) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}
[data-theme="light"] .chat-input-row input[type="text"] {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
}
[data-theme="light"] .chat-input-row input[type="text"]::placeholder {
  color: #94a3b8 !important;
}
[data-theme="light"] .btn-chat-tool {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #1e293b;
}
[data-theme="light"] .btn-chat-tool:hover {
  background: #e2e8f0;
}

/* Modals & Dialogs */
[data-theme="light"] .store-card,
[data-theme="light"] .match-profile-card,
[data-theme="light"] .blind-date-card,
[data-theme="light"] .edit-profile-card,
[data-theme="light"] .icebreaker-modal-card {
  background: #ffffff !important;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .store-header h3,
[data-theme="light"] .match-profile-name,
[data-theme="light"] .payment-gateway-label,
[data-theme="light"] .edit-profile-header h3 {
  color: #0f172a;
}
[data-theme="light"] .store-sub,
[data-theme="light"] .match-profile-location {
  color: #64748b;
}
[data-theme="light"] .pkg-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
[data-theme="light"] .pkg-card.featured {
  background: rgba(255, 59, 117, 0.04);
  border-color: var(--primary-pink);
}
[data-theme="light"] .pkg-card.vip {
  background: rgba(245, 158, 11, 0.04);
  border-color: var(--accent-gold);
}
[data-theme="light"] .pkg-price {
  color: #0f172a;
}
[data-theme="light"] .pkg-perk {
  color: #64748b;
}
[data-theme="light"] .btn-close-store,
[data-theme="light"] .btn-close-modal {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #64748b;
}
[data-theme="light"] .btn-close-store:hover,
[data-theme="light"] .btn-close-modal:hover {
  background: #e2e8f0;
  color: #0f172a;
}
[data-theme="light"] .form-group label {
  color: #334155;
}
[data-theme="light"] .form-input,
[data-theme="light"] .form-textarea,
[data-theme="light"] .form-select {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .match-profile-scrim {
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(255,255,255,0.95) 90%, #ffffff 100%);
}
[data-theme="light"] .match-profile-section h4 {
  color: #0f172a;
}
[data-theme="light"] .match-profile-tag {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .match-profile-bio {
  color: #475569;
}
[data-theme="light"] .match-voice-player {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Speed Blind Date */
[data-theme="light"] .speed-header-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .speed-header-card h2 {
  color: #0f172a;
}
[data-theme="light"] .speed-subtitle {
  color: #64748b;
}
[data-theme="light"] .speed-timer-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .clock-display {
  background: #f8fafc;
  color: #ff3b75;
}
[data-theme="light"] .timer-hint {
  color: #64748b;
}

/* Deck Action Buttons */
[data-theme="light"] .action-btn {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Theme Toggle Button Component */
.btn-theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-theme-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .btn-theme-pill {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.12);
  color: #0f172a;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Glows */
.ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.glow-pink {
  top: -100px;
  right: -100px;
  background: var(--primary-pink);
}
.glow-purple {
  bottom: -150px;
  left: -150px;
  background: var(--primary-purple);
}

/* Desktop Header */
.desktop-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(10, 11, 16, 0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-desktop-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}
.logo-flame {
  font-size: 24px;
}
.brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-badge {
  font-size: 9px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.desktop-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ctrl-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.coin-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  color: #fbbf24;
}
.coin-add-plus {
  background: #f59e0b;
  color: #000;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ==============================================================================
   SMARTPHONE FRAME (MOCKUP / PWA WRAPPER)
   ============================================================================== */

.app-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  position: relative;
  z-index: 5;
}

.smartphone-frame {
  width: 100%;
  max-width: 420px;
  height: min(840px, calc(100vh - 110px));
  background: #000;
  border-radius: 48px;
  box-shadow: 0 0 0 10px #1f2333, 0 30px 60px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

/* Fullscreen mode toggle */
.smartphone-frame.fullscreen {
  max-width: 520px;
  height: min(880px, calc(100vh - 90px));
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.smartphone-frame.fullscreen .phone-dynamic-island {
  display: none;
}

.phone-dynamic-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 32px;
  background: #000;
  border-radius: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 14px;
}
.island-camera {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #111422;
  box-shadow: inset 0 0 2px #334;
}

.phone-screen {
  flex: 1;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding-top: 36px;
}

/* Screen Top Header */
.screen-header {
  height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}
.header-profile {
  position: relative;
  cursor: pointer;
}
.avatar-sm {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-pink);
}
.vip-crown {
  position: absolute;
  bottom: -4px;
  right: -4px;
  font-size: 13px;
}
.header-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.header-by-goinfi {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--text-muted);
  opacity: 0.78;
}
[data-theme="light"] .header-by-goinfi {
  color: #475569;
  opacity: 0.85;
}
.app-header-logo {
  height: 23px;
  max-width: 155px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.app-header-logo:hover {
  transform: scale(1.03);
}
.modal-brand-heart {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}
.logo-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.swipe-energy-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 9px;
  border-radius: 16px;
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.swipe-energy-pill:hover {
  transform: scale(1.05);
}
.swipe-energy-pill.low {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #f87171;
  animation: pulseLow 1s infinite alternate;
}
@keyframes pulseLow {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.tool-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
}

/* ==============================================================================
   3-HOUR SWIPE RECHARGE STATION MODAL
   ============================================================================== */
.recharge-card {
  text-align: center;
  padding: 24px 20px;
}
.recharge-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  position: relative;
}
.recharge-bolt {
  font-size: 32px;
}
.recharge-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.5);
  animation: pulseDot 1.2s infinite;
}
.recharge-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fff;
}
.recharge-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 16px;
}
.recharge-timer-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 18px;
}
.recharge-timer-label {
  font-size: 10px;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 1px;
}
.recharge-clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 6px 0 10px;
  letter-spacing: 2px;
}
.recharge-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}
.recharge-progress-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 3px;
  transition: width 0.5s ease;
}
.recharge-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-reward-ad {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-reward-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6);
  filter: brightness(1.1);
}
.ad-reward-pill {
  background: #fef08a;
  color: #854d0e;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

/* Rewarded Video Ad Modal */
#rewarded-ad-modal {
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
}
.rewarded-ad-container {
  width: 92%;
  max-width: 420px;
  height: 85vh;
  max-height: 640px;
  background: #090d16;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ad-top-bar {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}
.ad-network-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ad-tag-pill {
  background: #f59e0b;
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
}
.ad-network-name {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}
.ad-timer-pill {
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
}
.ad-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 9999px;
  cursor: not-allowed;
  transition: all 0.2s ease;
}
.ad-close-btn.can-close {
  background: #ef4444;
  border-color: #f87171;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.6);
}
.ad-content-frame {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #000000;
}
#rewarded-video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ad-brand-card {
  position: relative;
  z-index: 5;
  margin: 12px;
  padding: 14px;
  background: rgba(11, 14, 23, 0.88);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.ad-brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.ad-brand-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #b45309, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.ad-brand-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}
.ad-brand-sub {
  font-size: 11px;
  color: #94a3b8;
}
.ad-brand-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 10px;
}
.btn-ad-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: linear-gradient(135deg, #ff3b75, #a855f7);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 59, 117, 0.4);
}
.btn-ad-cta:hover {
  filter: brightness(1.1);
}
.ad-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
}
.ad-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  transition: width 0.25s linear;
}

/* ==============================================================================
   TABS & NAVIGATION
   ============================================================================== */

.tab-content {
  flex: 1;
  display: none !important;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.tab-content.active {
  display: flex !important;
}

/* Bottom Persistent Navbar */
.bottom-nav {
  height: 66px;
  background: rgba(13, 15, 24, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 6px;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}
.nav-item.active {
  color: var(--primary-pink);
}
.nav-icon {
  font-size: 20px;
}
.nav-label {
  font-size: 11px;
  font-weight: 600;
}
.nav-badge {
  position: absolute;
  top: -2px;
  right: 6px;
  background: var(--primary-pink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  padding: 1px 5px;
}

/* ==============================================================================
   TAB 1: SWIPE DECK & CARDS
   ============================================================================== */

.deck-container {
  flex: 1;
  position: relative;
  margin: 10px 14px 4px 14px;
  border-radius: 26px;
  overflow: hidden;
}

.swipe-card {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #0b0e17;
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  user-select: none;
  cursor: grab;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease-out;
  touch-action: none;
  isolation: isolate;
  overflow: hidden;
}
.swipe-card:active {
  cursor: grabbing;
}

/* Stacking and Visibility - NEVER OVERLAP TEXT */
.swipe-card.top-card {
  z-index: 10;
  transform: scale(1) translateY(0);
  opacity: 1;
}

.swipe-card.under-card {
  z-index: 5;
  transform: scale(0.95) translateY(12px);
  opacity: 0.92;
  pointer-events: none;
  filter: brightness(0.9);
}

.swipe-card.under-card .card-info,
.swipe-card.under-card .card-top-row,
.swipe-card.under-card .card-voice-prompt,
.swipe-card.under-card .stamp {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Card gradient shadows for text readability */
.card-top-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  pointer-events: none;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  z-index: 1;
}
.card-bottom-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 75%;
  background: linear-gradient(to top, rgba(10,11,16,0.98) 0%, rgba(10,11,16,0.85) 50%, rgba(10,11,16,0.2) 80%, transparent 100%);
  pointer-events: none;
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  z-index: 1;
}

/* Top Badges */
.card-top-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vibe-match-pill {
  background: rgba(139, 92, 246, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}
.photo-pagination-bars {
  display: flex;
  gap: 4px;
  flex: 1;
  max-width: 130px;
  margin-left: 10px;
}
.photo-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 2px;
}
.photo-bar.active {
  background: #fff;
}

/* Card Info Area */
.card-info {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}
.card-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
.card-name {
  font-size: 23px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
  line-height: 1.15;
}
.card-age {
  font-size: 19px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.blue-tick {
  font-size: 16px;
}

.card-loc {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Voice Prompt Player in Card */
.card-voice-prompt {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 6px 10px;
  margin-bottom: 6px;
}
.voice-q {
  font-size: 10px;
  font-weight: 600;
  color: #f472b6;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.voice-control-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-play-voice {
  background: var(--gradient-brand);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.voice-wave-bars {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 16px;
}
.voice-wave-bars span {
  width: 3px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}
.voice-wave-bars.playing span {
  animation: wave 0.8s infinite ease-in-out alternate;
}
.voice-wave-bars.playing span:nth-child(2) { animation-delay: 0.2s; }
.voice-wave-bars.playing span:nth-child(3) { animation-delay: 0.4s; }
.voice-wave-bars.playing span:nth-child(4) { animation-delay: 0.1s; }
.voice-wave-bars.playing span:nth-child(5) { animation-delay: 0.5s; }

@keyframes wave {
  0% { height: 3px; }
  100% { height: 16px; background: #ec4899; }
}

.voice-time {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}

.card-bio {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.tag-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  color: #cbd5e1;
}

/* Swipe STAMPS (LIKE & NOPE) */
.stamp {
  position: absolute;
  top: 50px;
  padding: 6px 18px;
  border-radius: 10px;
  border: 4px solid;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity 0.1s ease;
}
.stamp-like {
  right: 20px;
  border-color: #10b981;
  color: #10b981;
  transform: rotate(15deg);
}
.stamp-nope {
  left: 20px;
  border-color: #ef4444;
  color: #ef4444;
  transform: rotate(-15deg);
}
.stamp-super {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-5deg);
  border-color: #38bdf8;
  color: #38bdf8;
}

/* Floating Deck Controls */
.deck-controls {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 10px;
}

.action-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}
.action-btn:hover {
  transform: scale(1.1);
}
.action-btn:active {
  transform: scale(0.92);
}

.btn-rewind, .btn-boost {
  width: 44px;
  height: 44px;
  font-size: 18px;
}
.btn-rewind { color: #f59e0b; }
.btn-boost { color: #a855f7; }

.btn-pass, .btn-like {
  width: 58px;
  height: 58px;
  font-size: 26px;
}
.btn-pass {
  color: #ef4444;
}
.btn-pass:hover {
  background: rgba(239, 68, 68, 0.15);
}

.btn-like {
  color: #10b981;
}
.btn-like:hover {
  background: rgba(16, 185, 129, 0.15);
}

.btn-superlike {
  width: 48px;
  height: 48px;
  font-size: 20px;
  color: #38bdf8;
  position: relative;
}
.btn-superlike:hover {
  background: rgba(56, 189, 248, 0.15);
}
.superlike-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  line-height: 17px;
  border-radius: 9999px;
  text-align: center;
  border: 1.5px solid #0b0e17;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.6);
  pointer-events: none;
}

/* Loader / Empty Deck State */
.card-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary-pink);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin-bottom: 14px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==============================================================================
   TAB 2: SPEED DATING & BLIND DATE
   ============================================================================== */

.speed-dating-hub {
  padding: 20px 16px;
  overflow-y: auto;
  flex: 1;
}

.speed-header-card {
  text-align: center;
  padding: 20px 10px;
}
.pulse-indicator {
  position: relative;
  width: 20px;
  height: 20px;
  margin: 0 auto 12px auto;
}
.pulse-core {
  position: absolute;
  inset: 3px;
  background: #10b981;
  border-radius: 50%;
}
.pulse-ring {
  position: absolute;
  inset: -4px;
  background: rgba(16, 185, 129, 0.4);
  border-radius: 50%;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

.speed-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 6px;
}

.speed-timer-card {
  background: linear-gradient(145deg, rgba(255, 59, 117, 0.12), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(255, 59, 117, 0.3);
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  margin: 16px 0;
}
.timer-badge {
  display: inline-block;
  background: rgba(255, 59, 117, 0.2);
  color: #ff3b75;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.clock-display {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.timer-hint {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.speed-rules-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 16px 18px;
}
.speed-rules-card h4 {
  font-size: 14px;
  margin-bottom: 10px;
}
.speed-rules-card ul {
  list-style: none;
}
.speed-rules-card li {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

/* ==============================================================================
   TAB 3: MATCHES & CHAT
   ============================================================================== */

.matches-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.matches-carousel-section {
  padding: 14px 16px 10px 16px;
  border-bottom: 1px solid var(--border-glass);
}
.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.badge-count {
  background: var(--primary-pink);
  color: #fff;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
}

.matches-stories-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.matches-stories-row::-webkit-scrollbar { display: none; }

.match-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.story-avatar-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2px;
  background: var(--gradient-brand);
}
.story-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-dark);
}
.countdown-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #f59e0b;
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 6px;
}
.story-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  max-width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.messages-list-section {
  flex: 1;
  padding: 12px 16px;
  overflow-y: auto;
}
.conversation-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.conversation-item:hover {
  background: rgba(255, 255, 255, 0.05);
}
.conversation-item .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.conversation-info {
  flex: 1;
  overflow: hidden;
}
.conv-top-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}
.conv-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.conv-time {
  font-size: 10px;
  color: var(--text-dim);
}
.conv-snippet {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==============================================================================
   CHAT ROOM OVERLAY
   ============================================================================== */

.chat-room-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 100dvh !important;
  background: var(--bg-dark);
  z-index: 1000 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
.chat-room-overlay.hidden { display: none !important; }

.chat-room-container {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.chat-header {
  height: auto !important;
  min-height: calc(58px + env(safe-area-inset-top, 0px)) !important;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(13, 15, 24, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 50 !important;
  box-sizing: border-box !important;
  touch-action: none;
}
.btn-chat-back {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, background 0.15s ease;
  position: relative;
  z-index: 60;
}
.btn-chat-back:active {
  transform: scale(0.92);
  background: rgba(255, 59, 117, 0.22);
}
.chat-header-user {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.chat-header-user .avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.chat-header-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1.5px solid rgba(255, 59, 117, 0.45);
}
.chat-header-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#chat-header-name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text-main);
  margin: 0 !important;
  line-height: 1.25 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid var(--bg-dark);
}
.chat-status {
  font-size: 11px !important;
  color: #10b981;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  line-height: 1.25;
}
.ghost-timer {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 12px;
  flex-shrink: 0;
}

.chat-messages-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  padding: 16px;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.msg-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 13px;
  line-height: 1.45;
  position: relative;
  word-wrap: break-word;
}
.msg-bubble.incoming {
  align-self: flex-start;
  background: var(--bg-surface);
  color: #fff;
  border-bottom-left-radius: 4px;
}
.msg-bubble.outgoing {
  align-self: flex-end;
  background: var(--gradient-brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg-time {
  font-size: 9px;
  opacity: 0.6;
  margin-top: 4px;
  text-align: right;
}

/* Date Invite Card in Chat */
.date-invite-card {
  background: rgba(255, 59, 117, 0.12);
  border: 1px solid rgba(255, 59, 117, 0.3);
  border-radius: 16px;
  padding: 12px;
  align-self: center;
  max-width: 90%;
  text-align: center;
}
.invite-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.invite-place {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.btn-accept-date {
  background: #10b981;
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
}

/* -------------------------------------------------------------
   REALTIME TYPING INDICATOR (HEADER & CHAT STREAM)
   ------------------------------------------------------------- */
.typing-header-indicator {
  color: #38bdf8 !important;
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  animation: typingHeaderPulse 1.2s infinite ease-in-out;
}
@keyframes typingHeaderPulse {
  0%, 100% { opacity: 0.7; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

.chat-typing-container {
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 4px 16px;
  background: rgba(13, 15, 24, 0.7);
  z-index: 6;
  animation: typingSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.chat-typing-container.hidden {
  display: none !important;
}
@keyframes typingSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.typing-avatar-mini img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #38bdf8;
  display: block;
}
.typing-dots-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  display: inline-block;
  animation: typingDotBouncing 1.3s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }
.typing-dot:nth-child(3) { animation-delay: 0s; }

@keyframes typingDotBouncing {
  0%, 80%, 100% {
    transform: scale(0.6);
    opacity: 0.35;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
    background: #ec4899;
  }
}
.typing-partner-name {
  font-size: 11px;
  color: #38bdf8;
  font-style: italic;
  font-weight: 500;
}

[data-theme="light"] .chat-typing-container {
  background: rgba(248, 250, 252, 0.9);
}
[data-theme="light"] .typing-dots-pill {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .typing-partner-name {
  color: #0284c7;
}

.chat-shortcuts-bar {
  flex-shrink: 0;
  display: flex;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(13, 15, 24, 0.85);
  overflow-x: auto;
  z-index: 5;
}
.chat-shortcuts-bar::-webkit-scrollbar { display: none; }
.shortcut-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 14px;
  white-space: nowrap;
  cursor: pointer;
}
.shortcut-chip.highlight {
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
  border-color: rgba(139, 92, 246, 0.4);
}

.hidden, input[type="file"].hidden, input[type="file"] {
  display: none !important;
}

.chat-input-row {
  flex-shrink: 0;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px !important;
  background: rgba(13, 15, 24, 0.98) !important;
  border-top: 1px solid var(--border-glass) !important;
  box-sizing: border-box !important;
  width: 100% !important;
  z-index: 10;
  transition: padding-bottom 0.15s ease;
}
.chat-input-row.keyboard-active {
  padding-bottom: 6px !important;
}
.chat-input-row input[type="text"] {
  flex: 1 !important;
  min-width: 0 !important;
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-glass) !important;
  color: #fff !important;
  padding: 9px 16px !important;
  border-radius: 22px !important;
  font-size: 16px !important;
  line-height: 1.3 !important;
  outline: none !important;
  box-sizing: border-box !important;
}
.chat-input-row input[type="text"]:focus {
  border-color: var(--border-focus) !important;
}
.btn-chat-send {
  background: var(--gradient-brand);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ephemeral Chat Media & Attachment Buttons (Camera & Gallery) */
.btn-chat-tool {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.btn-chat-tool:hover, .btn-chat-tool:active {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  transform: scale(1.08);
}
.btn-chat-camera {
  color: #38bdf8;
}
.btn-chat-gallery {
  color: #a855f7;
}

/* Match Profile Inspector Modal (Header click) */
#match-profile-modal {
  z-index: 99999;
}
.match-profile-card {
  width: 92%;
  max-width: 390px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 28px;
  background: #0b0e17;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0;
  display: flex;
  flex-direction: column;
}
.match-profile-photo-wrap {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
  background: #000;
}
.match-profile-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.match-profile-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 40%, rgba(11,14,23,0.95) 90%, #0b0e17 100%);
  pointer-events: none;
}
.match-profile-header {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
}
.match-profile-header .btn-close-store {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}
.match-profile-badge-row {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.vibe-score-tag {
  background: linear-gradient(135deg, #a855f7, #ff3b75);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.5);
}
.verified-tag {
  background: rgba(14, 165, 233, 0.85);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 9999px;
  backdrop-filter: blur(6px);
}
.match-profile-title-block {
  position: absolute;
  bottom: 12px;
  left: 18px;
  right: 18px;
  z-index: 5;
}
.match-profile-title-block h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
.match-profile-title-block p {
  font-size: 12px;
  color: #94a3b8;
}
.match-profile-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.profile-voice-widget {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}
.voice-widget-icon {
  font-size: 22px;
  color: #38bdf8;
}
.voice-widget-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.voice-widget-question {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.voice-widget-sub {
  font-size: 10px;
  color: #94a3b8;
}
.btn-voice-play-widget {
  background: linear-gradient(135deg, #ff3b75, #a855f7);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(255, 59, 117, 0.4);
}
.profile-sec-label {
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: block;
}
.profile-sec-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
}
.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.profile-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 4px;
}
.meta-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 12px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}
.meta-label {
  font-size: 9px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}
.meta-val {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}
.match-profile-footer {
  padding: 14px 18px 20px 18px;
  display: flex;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-half {
  flex: 1;
}

/* Ephemeral Preview Modal */
.ephemeral-preview-card {
  width: 90%;
  max-width: 380px;
  background: #0f131f;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ephemeral-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ephemeral-shield-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #38bdf8;
}
.ephemeral-preview-frame {
  width: 100%;
  height: 200px;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ephemeral-preview-frame img,
.ephemeral-preview-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ephemeral-picker-label {
  font-size: 10px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}
.ephemeral-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.ephemeral-opt-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
}
.ephemeral-opt-btn .opt-icon {
  font-size: 18px;
  margin-bottom: 3px;
}
.ephemeral-opt-btn .opt-title {
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
}
.ephemeral-opt-btn .opt-desc {
  font-size: 8px;
  color: #94a3b8;
  line-height: 1.1;
}
.ephemeral-opt-btn.active {
  background: rgba(255, 59, 117, 0.15);
  border-color: #ff3b75;
  box-shadow: 0 0 14px rgba(255, 59, 117, 0.35);
}
.ephemeral-security-note {
  font-size: 10px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  line-height: 1.3;
}

/* Ephemeral Secure Fullscreen Viewer */
#ephemeral-viewer-modal {
  z-index: 100000;
  background: rgba(0, 0, 0, 0.98);
}
.ephemeral-viewer-container {
  width: 100%;
  height: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}
.ephemeral-viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 14px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  z-index: 10;
}
.ephemeral-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ff3b75;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(255, 59, 117, 0.6);
}
.ephemeral-viewer-countdown {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
}
.btn-close-viewer {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
}
.ephemeral-media-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  -webkit-touch-callout: none;
}
.ephemeral-media-wrapper img,
.ephemeral-media-wrapper video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  pointer-events: none;
  -webkit-touch-callout: none;
  user-select: none;
}
.watermark-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.16);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 2px;
  transform: rotate(-30deg);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.8);
}
.ephemeral-viewer-footer {
  text-align: center;
  padding: 14px;
  font-size: 10px;
  color: #64748b;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
}

/* Chat Header Media Timer Pill */
.media-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.media-timer-pill:hover {
  background: rgba(239, 68, 68, 0.25);
  transform: scale(1.03);
}
.media-timer-pill.mode-24h {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
.media-timer-pill.mode-1w {
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}
.media-timer-pill.mode-none {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* ==============================================================================
   SNAPCHAT / INSTAGRAM DM STYLE SNAP MEDIA CARDS (DELIVERED & OPENED)
   ============================================================================== */
.snap-status-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  min-width: 175px;
  max-width: 240px;
  user-select: none;
  transition: all 0.25s ease;
  position: relative;
}

/* Photo Snap (Red) */
.snap-status-card.photo.delivered {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.snap-status-card.photo.delivered .snap-icon-box {
  background: #ef4444;
  color: #fff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

/* Video Snap (Purple) */
.snap-status-card.video.delivered {
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.4);
}
.snap-status-card.video.delivered .snap-icon-box {
  background: #a855f7;
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

/* Opened Snap (Hollow / Subdued) */
.snap-status-card.opened {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: default;
}
.snap-status-card.opened.photo .snap-icon-box {
  background: transparent;
  border: 2px solid #ef4444;
  color: #ef4444;
}
.snap-status-card.opened.video .snap-icon-box {
  background: transparent;
  border: 2px solid #a855f7;
  color: #a855f7;
}

/* Icon Box inside Snap Card */
.snap-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.snap-status-card.incoming.delivered {
  cursor: pointer;
  animation: snapPulseRed 2s infinite ease-in-out;
}
.snap-status-card.incoming.delivered:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}
@keyframes snapPulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
  50% { box-shadow: 0 0 14px 2px rgba(239, 68, 68, 0.25); }
}
.snap-status-card.incoming.video.delivered {
  animation: snapPulsePurple 2s infinite ease-in-out;
}
@keyframes snapPulsePurple {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
  50% { box-shadow: 0 0 14px 2px rgba(168, 85, 247, 0.25); }
}

.snap-content-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.snap-status-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 5px;
}
.snap-status-sub {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
}

/* Light Theme Overrides for Snap Cards */
[data-theme="light"] .snap-status-card.opened {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .snap-status-title {
  color: #0f172a;
}
[data-theme="light"] .snap-status-sub {
  color: #64748b;
}

/* ==============================================================================
   APP PERMISSIONS APPROVAL MODAL (Tinder / Snapchat Style)
   ============================================================================== */
.permission-card {
  width: 92%;
  max-width: 400px;
  background: #0f1322 !important;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

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

.permission-brand-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary-pink);
}

.permission-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.permission-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 16px;
}

.permission-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.permission-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 12px;
  transition: all 0.2s ease;
}
.permission-item-row:hover {
  background: rgba(255, 255, 255, 0.07);
}

.perm-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.perm-icon-wrap.perm-loc {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.perm-icon-wrap.perm-cam {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.perm-icon-wrap.perm-mic {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.perm-info {
  flex: 1;
}
.perm-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}
.perm-info p {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.3;
}

.btn-perm-toggle {
  background: rgba(255, 59, 117, 0.15);
  border: 1px solid rgba(255, 59, 117, 0.4);
  color: #ff3b75;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-perm-toggle:hover {
  background: rgba(255, 59, 117, 0.28);
  transform: scale(1.03);
}
.btn-perm-toggle.granted {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #10b981;
}

.permission-privacy-badge {
  text-align: center;
  font-size: 10px;
  color: #64748b;
  margin-bottom: 14px;
}

/* Light Mode Overrides for Permission Modal */
[data-theme="light"] .permission-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .permission-title {
  color: #0f172a;
}
[data-theme="light"] .permission-desc {
  color: #475569;
}
[data-theme="light"] .permission-item-row {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}
[data-theme="light"] .perm-info h4 {
  color: #0f172a;
}
[data-theme="light"] .perm-info p {
  color: #64748b;
}
[data-theme="light"] .permission-privacy-badge {
  color: #94a3b8;
}
.ephemeral-media-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  cursor: pointer;
  background: rgba(255, 59, 117, 0.12);
  border: 1px solid rgba(255, 59, 117, 0.35);
  transition: all 0.2s ease;
  min-width: 180px;
}
.ephemeral-media-card:hover {
  background: rgba(255, 59, 117, 0.22);
  transform: translateY(-1px);
}
.ephemeral-media-icon {
  font-size: 24px;
}
.ephemeral-media-info {
  display: flex;
  flex-direction: column;
}
.ephemeral-media-title {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}
.ephemeral-media-sub {
  font-size: 10px;
  color: #f43f5e;
  font-weight: 600;
}
.ephemeral-burned-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(100, 116, 139, 0.15);
  border: 1px dashed rgba(100, 116, 139, 0.4);
  color: #94a3b8;
  font-size: 11px;
  font-style: italic;
}

/* ==============================================================================
   MODALS: "IT'S A MATCH" & COIN STORE
   ============================================================================== */

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }

.match-popup-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.match-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.match-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.match-avatars-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0 24px 0;
}
.avatar-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 3px;
  background: var(--gradient-brand);
}
.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.my-match-avatar {
  transform: translateX(12px) rotate(-6deg);
}
.their-match-avatar {
  transform: translateX(-12px) rotate(6deg);
}
.match-heart-pulse {
  position: absolute;
  font-size: 28px;
  z-index: 2;
  animation: heartPulse 1.2s infinite ease-in-out;
}
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

.ai-cupid-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 20px;
  text-align: left;
}
.cupid-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.badge-smart {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
}
.cupid-prompts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cupid-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.cupid-item:hover {
  background: rgba(255, 59, 117, 0.15);
  border-color: rgba(255, 59, 117, 0.3);
}
.cupid-tag {
  font-size: 10px;
  font-weight: 700;
  color: #f472b6;
  margin-bottom: 2px;
}
.cupid-text {
  font-size: 12px;
  color: #e2e8f0;
}

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

/* ==============================================================================
   PROFILE TAB & SETTINGS
   ============================================================================== */

.profile-view {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.profile-hero-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 10px 20px 10px;
}
.profile-avatar-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-bottom: 12px;
}
.profile-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-pink);
}
.btn-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
}
.my-location {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 10px 0;
}
.vip-badge-pill {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 16px;
  letter-spacing: 0.5px;
}

.profile-menu-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}
.coin-store-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(249, 115, 22, 0.1));
  border-color: rgba(245, 158, 11, 0.3);
}
.coin-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.coin-big {
  font-size: 28px;
}

.menu-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.menu-desc {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  transition: .3s;
  border-radius: 24px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--primary-pink); }
input:checked + .slider:before { transform: translateX(20px); }

/* Buttons & Utils */
.btn {
  padding: 12px 20px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-full { width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 12px; }
.btn-gradient { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-glow); }
.btn-gold { background: var(--gradient-gold); color: #000; font-weight: 800; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-outline { background: transparent; border: 1px solid var(--border-glass); color: var(--text-muted); }

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==============================================================================
   COIN STORE MODAL
   ============================================================================== */

.store-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 20px;
}
.store-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.btn-close-store {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
}
.store-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.package-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.pkg-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.pkg-card:hover, .pkg-card.selected {
  border-color: var(--primary-pink);
  background: rgba(255, 59, 117, 0.1);
}
.pkg-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.pkg-coin {
  font-size: 14px;
  font-weight: 800;
  margin: 6px 0 2px 0;
}
.pkg-perk {
  font-size: 9px;
  color: var(--text-muted);
  height: 24px;
}
.pkg-price {
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  margin-top: 6px;
}

.payment-gateway-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.gateway-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.gateway-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  padding: 8px 4px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.gateway-btn.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
}

/* ========================================================= */
/* 4. LIVE BLIND SPEED DATING MODAL                          */
/* ========================================================= */
.blind-date-card {
  width: 92%;
  max-width: 440px;
  background: #111422;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(236, 72, 153, 0.2);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

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

.blind-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ec4899;
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  background: #ec4899;
  border-radius: 50%;
  animation: pulseDot 1s infinite alternate;
}

@keyframes pulseDot {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px #ec4899; }
}

.blind-timer-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
}

.blind-avatar-stage {
  text-align: center;
  margin-bottom: 10px;
}

.blind-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 8px;
  position: relative;
  overflow: hidden;
  border: 3px solid #ec4899;
  box-shadow: 0 0 25px rgba(236, 72, 153, 0.4);
}

.blind-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.8s ease;
}

.blind-blur-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 20, 34, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.blind-partner-name {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.blind-partner-city {
  font-size: 11px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.blind-prompt-card {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #ec4899;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.blind-prompt-card p {
  font-size: 12px;
  color: #f1f5f9;
  margin: 4px 0 0;
}

.blind-chat-feed {
  flex: 1;
  min-height: 180px;
  max-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  margin-bottom: 10px;
}

.blind-msg {
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 12px;
  max-width: 80%;
  line-height: 1.4;
}

.blind-msg.me {
  align-self: flex-end;
  background: var(--gradient-brand);
  color: #fff;
}

.blind-msg.partner {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
}

.blind-decision-box {
  background: rgba(236, 72, 153, 0.15);
  border: 1px dashed #ec4899;
  border-radius: 14px;
  padding: 12px;
  text-align: center;
  margin-bottom: 10px;
}

.blind-decision-box p {
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #f472b6;
}

.blind-decision-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.blind-decision-actions .action-btn {
  width: 50px;
  height: 50px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 14px;
}

.blind-input-row {
  display: flex;
  gap: 8px;
}

.blind-input-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 10px 14px;
  color: #fff;
  font-size: 12px;
  outline: none;
}

/* ========================================================= */
/* 5. EDIT PROFILE MODAL & FORMS                             */
/* ========================================================= */
.edit-profile-card {
  max-height: 85vh;
  overflow-y: auto;
}

.edit-profile-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #ec4899;
}

.form-group select option {
  background: #111422;
  color: #fff;
}

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

.file-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.file-upload-row input[type="file"] {
  padding: 4px;
  font-size: 11px;
}

/* ========================================================= */
/* 6. LIVE AUDIO RECORDER PANEL                              */
/* ========================================================= */
.voice-record-panel {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  animation: fadeIn 0.2s ease;
}

.record-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #fca5a5;
  margin-bottom: 8px;
}

.record-pulse-dot {
  width: 10px;
  height: 10px;
  background: #ef4444;
  border-radius: 50%;
  animation: pulseDot 0.6s infinite alternate;
}

.record-seconds {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #fff;
}

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

/* ==============================================================================
   MOBILE RESPONSIVE & ZERO-SCROLL LOCK ENGINE (Smartphones & Tablets)
   ============================================================================== */
@media (max-width: 768px), (pointer: coarse) and (max-height: 920px) {
  html, body {
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !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;
    overscroll-behavior: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ambient-glow {
    display: none !important;
  }

  /* Hide desktop header on actual mobile devices */
  .desktop-header {
    display: none !important;
  }

  .app-container {
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: stretch !important;
  }

  .smartphone-frame {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .phone-dynamic-island {
    display: none !important;
  }

  .phone-screen {
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    padding-top: calc(env(safe-area-inset-top, 0px) + 6px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .screen-header {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 14px !important;
  }

  .app-header-logo {
    height: 21px !important;
    max-width: 138px !important;
  }
  .header-by-goinfi {
    font-size: 8px !important;
    letter-spacing: 1.5px !important;
  }
  .header-logo .flame-icon {
    font-size: 20px;
  }
  .header-logo .logo-title {
    font-size: 19px;
  }

  .tab-content {
    display: none !important;
    height: 100% !important;
  }

  .tab-content.active {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
  }

  #tab-explore.active,
  #tab-reels.active {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: relative !important;
  }

  #tab-explore:not(.active),
  #tab-reels:not(.active) {
    display: none !important;
  }

  /* Non-explore tabs scroll smoothly without dragging the page */
  #tab-matches.active,
  #tab-speed.active,
  #tab-profile.active {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 24px !important;
  }

  .deck-container {
    flex: 1 !important;
    min-height: 0 !important;
    margin: 4px 10px 4px 10px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .deck-controls {
    height: 64px !important;
    min-height: 64px !important;
    padding: 0 !important;
    gap: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .action-btn.btn-pass, .action-btn.btn-like {
    width: 52px !important;
    height: 52px !important;
    font-size: 22px !important;
  }

  .action-btn.btn-superlike {
    width: 42px !important;
    height: 42px !important;
    font-size: 18px !important;
  }

  .action-btn.btn-rewind, .action-btn.btn-boost {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
  }

  .bottom-nav {
    height: 56px !important;
    min-height: 56px !important;
    padding-bottom: env(safe-area-inset-bottom, 4px) !important;
  }
}

/* ==============================================================================
   IPHONE (iOS) PWA INSTALLATION STYLES & SMART BANNER
   ============================================================================== */
.install-ctrl-btn {
  background: linear-gradient(135deg, rgba(255, 59, 117, 0.2), rgba(139, 92, 246, 0.2)) !important;
  border-color: rgba(255, 59, 117, 0.4) !important;
  color: #fff !important;
}
.install-ctrl-btn:hover {
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple)) !important;
  border-color: transparent !important;
}

.pwa-install-banner {
  background: linear-gradient(135deg, rgba(255, 59, 117, 0.12), rgba(139, 92, 246, 0.12)) !important;
  border: 1px solid rgba(255, 59, 117, 0.3) !important;
}
.pwa-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pwa-apple-logo {
  font-size: 28px;
  background: rgba(255, 255, 255, 0.08);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* iOS Install Modal */
.ios-install-card {
  width: 92%;
  max-width: 430px;
  background: #0f1322 !important;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-app-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  border-radius: 18px;
  margin-bottom: 18px;
}
.ios-app-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(255, 59, 117, 0.35);
  flex-shrink: 0;
}
.ios-app-info h3 {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
.ios-app-info p {
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.ios-tag {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.ios-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.ios-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px;
  border-radius: 14px;
}
.ios-step-num {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.ios-step-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}
.ios-step-content p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}
.ios-share-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 12px;
  color: #fff;
}
.highlight-pink {
  color: var(--primary-pink);
  font-weight: 700;
}

.ios-install-footer-note {
  font-size: 11px;
  color: #64748b;
  text-align: center;
  margin-bottom: 14px;
}
.apk-link {
  color: var(--primary-pink);
  text-decoration: underline;
  font-weight: 600;
}

/* Floating Smart Banner for Mobile Browsers */
.ios-smart-banner {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 92%;
  max-width: 420px;
  background: rgba(15, 19, 34, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 59, 117, 0.4);
  border-radius: 18px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 900;
  animation: slideUpBanner 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpBanner {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.ios-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ios-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(255, 59, 117, 0.3);
}
.ios-banner-text strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.ios-banner-text p {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
}
.ios-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-banner-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #94a3b8;
  font-size: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.btn-banner-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Light Mode Overrides */
[data-theme="light"] .ios-install-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .ios-app-preview {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .ios-app-info h3 {
  color: #0f172a;
}
[data-theme="light"] .ios-step-item {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .ios-step-content h4 {
  color: #0f172a;
}
[data-theme="light"] .ios-smart-banner {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 59, 117, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .ios-banner-text strong {
  color: #0f172a;
}
[data-theme="light"] .btn-banner-close {
  background: rgba(0, 0, 0, 0.06);
  color: #64748b;
}

/* ==============================================================================
   PHOTO & VIDEO CHAT BUBBLES WITH SENT / DELIVERED / OPENED STATUS (WHATSAPP/INSTA STYLE)
   ============================================================================== */
.msg-bubble.photo-bubble {
  padding: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  max-width: 250px;
}
.chat-photo-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  max-width: 240px;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.chat-photo-wrap:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.chat-photo-wrap:active {
  transform: scale(0.98);
}
.chat-photo-img {
  display: block;
  width: 100%;
  max-height: 290px;
  min-height: 120px;
  object-fit: cover;
  border-radius: 16px;
  user-select: none;
}
.chat-video-player {
  display: block;
  width: 100%;
  max-height: 290px;
  border-radius: 16px;
  background: #000;
}
.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.chat-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 22px 10px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 10px;
  color: #fff;
  pointer-events: none;
}
.chat-photo-time {
  opacity: 0.9;
  font-size: 10px;
  font-family: inherit;
}

/* Status Indicators (Sent ✓ / Delivered ✓✓ / Opened ✓✓) */
.msg-status {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: all 0.25s ease;
}
.msg-status .status-ticks {
  font-size: 11px;
  letter-spacing: -1.5px;
  font-weight: 800;
}
.msg-status.sending {
  color: rgba(255, 255, 255, 0.6);
}
.msg-status.sent {
  color: rgba(255, 255, 255, 0.75);
}
.msg-status.delivered {
  color: rgba(255, 255, 255, 0.92);
}
.msg-status.opened {
  color: #38bdf8 !important;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
  font-weight: 800;
}

/* Text message footer layout */
.msg-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 4px;
  font-size: 9px;
}
.msg-time-text {
  opacity: 0.7;
  font-size: 9px;
}
.msg-bubble.outgoing .msg-footer {
  color: rgba(255, 255, 255, 0.85);
}
.msg-bubble.incoming .msg-footer {
  color: rgba(255, 255, 255, 0.55);
}
[data-theme="light"] .msg-bubble.outgoing .msg-status.opened {
  color: #38bdf8 !important;
  text-shadow: 0 0 6px rgba(56, 189, 248, 0.5);
}

/* Fullscreen Photo Lightbox */
.photo-lightbox-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  position: relative;
}
.photo-lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 14px 20px;
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(14px);
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.photo-lightbox-sender {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.photo-lightbox-icon {
  font-size: 16px;
}
.btn-close-lightbox {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-close-lightbox:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
.photo-lightbox-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}
.lightbox-media-img {
  max-width: 95vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.85);
  animation: zoomInLightbox 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox-media-video {
  max-width: 95vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.85);
  animation: zoomInLightbox 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==============================================================================
   NEPAL-FIRST VIRAL FEATURES SUITE (MOOD RADAR, VIBE GAME, GIFTS, DEALS, 2V2, VOUCH, SHIELD, STORY)
   ============================================================================== */

/* 1. Right-Now Mood Radar Strip in Explore */
.mood-radar-strip {
  display: flex !important;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 2px 12px;
  overflow-x: auto;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
}
.mood-radar-strip::-webkit-scrollbar { display: none; }
.mood-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.mood-chip.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 59, 117, 0.35);
}
[data-theme="light"] .mood-chip {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  color: #475569;
}
[data-theme="light"] .mood-chip.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
}

/* Card Overlay Mood & Friend Vouch Badges */
.card-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.card-live-mood {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.card-vouch-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(139, 92, 246, 0.28);
  border: 1px solid rgba(139, 92, 246, 0.5);
  color: #e9d5ff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.card-vouch-quote {
  font-size: 11px;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  border-left: 2px solid #a855f7;
  padding: 4px 8px;
  border-radius: 6px;
  margin: 4px 0 8px 0;
  font-style: italic;
}

/* 2. Social Subtabs (Blind Date | Double Date | Cafe Deals) */
.social-subtabs {
  display: flex;
  gap: 6px;
  padding: 10px 14px 4px 14px;
  flex-shrink: 0;
}
.social-subtab {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.social-subtab.active {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 59, 117, 0.3);
}
[data-theme="light"] .social-subtab {
  background: #ffffff;
  color: #475569;
  border-color: rgba(15, 23, 42, 0.1);
}
[data-theme="light"] .social-subtab.active {
  background: var(--gradient-brand);
  color: #fff;
}
.social-panel {
  padding: 10px 14px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.social-panel.hidden { display: none !important; }

/* Double Date Squads & Cafe Deals */
.squad-banner-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.16), rgba(255, 59, 117, 0.14));
  border: 1px solid rgba(139, 92, 246, 0.35);
  border-radius: 18px;
  padding: 14px;
}
.squad-banner-card.cafe-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(255, 59, 117, 0.14));
  border-color: rgba(245, 158, 11, 0.35);
}
.squad-banner-card h3 { font-size: 15px; margin-bottom: 4px; color: var(--text-main); }
.squad-banner-card p { font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.squad-bestie-input-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.squad-bestie-input-row input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 16px;
}
[data-theme="light"] .squad-bestie-input-row input {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
}
.squad-cards-list, .cafe-deals-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.squad-card, .cafe-deal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
[data-theme="light"] .squad-card, [data-theme="light"] .cafe-deal-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
.squad-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.squad-avatars {
  display: flex;
  align-items: center;
}
.squad-avatars img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-pink);
}
.squad-avatars img + img {
  margin-left: -14px;
  border-color: var(--primary-purple);
}
.deal-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.deal-badge-offer {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 10px;
  white-space: nowrap;
}

/* 3. Chat Interactive Cards: Vibe Game, Gift Card, Couple Deal QR Pass */
.shortcut-chip.game { background: rgba(56, 189, 248, 0.16); color: #38bdf8; border-color: rgba(56, 189, 248, 0.35); }
.shortcut-chip.gift { background: rgba(245, 158, 11, 0.16); color: #fbbf24; border-color: rgba(245, 158, 11, 0.35); }
.shortcut-chip.deal { background: rgba(16, 185, 129, 0.16); color: #34d399; border-color: rgba(16, 185, 129, 0.35); }
[data-theme="light"] .shortcut-chip.game { background: #e0f2fe; color: #0284c7; border-color: #7dd3fc; }
[data-theme="light"] .shortcut-chip.gift { background: #fef3c7; color: #d97706; border-color: #fcd34d; }
[data-theme="light"] .shortcut-chip.deal { background: #d1fae5; color: #059669; border-color: #6ee7b7; }

.vibe-game-card, .gift-chat-card, .date-pass-card {
  width: 245px;
  max-width: 100%;
  border-radius: 16px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .vibe-game-card,
[data-theme="light"] .gift-chat-card,
[data-theme="light"] .date-pass-card {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.vibe-game-tag {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.vibe-game-q {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}
.vibe-game-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vibe-opt-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: inherit;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}
[data-theme="light"] .vibe-opt-btn {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}
.vibe-opt-btn.picked-me {
  background: rgba(255, 59, 117, 0.22);
  border-color: #ff3b75;
}
.vibe-opt-btn.picked-both {
  background: rgba(16, 185, 129, 0.24);
  border-color: #10b981;
}
.vibe-match-result {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 5px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.gift-chat-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(255, 59, 117, 0.2)) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  text-align: center;
}
.gift-chat-icon { font-size: 34px; margin-bottom: 4px; }
.gift-chat-title { font-size: 13px; font-weight: 800; }
.gift-chat-sub { font-size: 11px; opacity: 0.85; margin-top: 2px; }

.date-pass-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(15, 23, 42, 0.95)) !important;
  border: 1.5px dashed #10b981 !important;
}
[data-theme="light"] .date-pass-card {
  background: linear-gradient(135deg, #ecfdf5, #ffffff) !important;
}
.pass-qr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  padding: 8px;
  border-radius: 10px;
}
.pass-qr-svg { width: 48px; height: 48px; flex-shrink: 0; }
.pass-code-text { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 800; color: #059669; }

/* 4. Modals: Gifts, Deals Picker, Pose Verify, Vouch, Shield, Story */
.gift-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.gift-item-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.gift-item-card:hover { transform: translateY(-2px); border-color: var(--primary-pink); }
.gift-item-icon { font-size: 28px; margin-bottom: 4px; }
.gift-item-name { font-size: 13px; font-weight: 700; color: var(--text-main); }
.gift-item-price { font-size: 11px; font-weight: 800; color: #fbbf24; margin-top: 2px; }

.deal-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 55vh;
  overflow-y: auto;
}
.deal-pick-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  color: var(--text-main);
  cursor: pointer;
}
.deal-pick-btn:hover { border-color: #10b981; }

.pose-challenge-box {
  text-align: center;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
}
.pose-emoji-big { font-size: 36px; }
.pose-camera-box {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pose-camera-box video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.pose-camera-fallback { color: #94a3b8; font-size: 12px; text-align: center; padding: 12px; }

.vouches-scroll-list {
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.vouch-card {
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 10px;
}
.vouch-card p { font-size: 12px; color: var(--text-main); margin-bottom: 4px; }
.vouch-card span { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.vouch-add-form { display: flex; flex-direction: column; gap: 8px; }
.vouch-add-form input, .shield-input-group input {
  width: 100%;
  min-width: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 16px;
}
.shield-input-group label { display: block; font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.shield-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  max-height: 130px;
  overflow-y: auto;
}
.shield-tag {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
[data-theme="light"] .shield-tag { color: #b91c1c; }
.shield-tag button { background: none; border: none; color: inherit; cursor: pointer; font-weight: 800; }

.story-preview-wrap {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
#vibe-story-canvas {
  width: 220px;
  height: 366px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.vibe-story-banner {
  background: linear-gradient(135deg, rgba(255, 59, 117, 0.14), rgba(56, 189, 248, 0.14)) !important;
  border: 1px solid rgba(255, 59, 117, 0.35) !important;
}
[data-theme="light"] .vouch-add-form input,
[data-theme="light"] .shield-input-group input,
[data-theme="light"] .gift-item-card,
[data-theme="light"] .deal-pick-btn {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .gift-item-name { color: #0f172a; }

/* ==============================================================================
   VIBE REELS (TIKTOK VERTICAL VIDEO FEED) & 30-DAY CREATOR MONETIZATION STUDIO
   ============================================================================== */
#tab-reels {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 0;
  background: #000;
}
.reels-topbar-float {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.reels-topbar-float button, .reels-brand-pill { pointer-events: auto; }
.reels-brand-pill {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.btn-reels-monetize {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}
.btn-reels-upload {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 59, 117, 0.45);
}

.reels-feed-container {
  height: 100%;
  width: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
.reels-feed-container::-webkit-scrollbar { display: none; }

.reel-slide {
  position: relative;
  height: 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #05070e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel-video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reel-bottom-scrim {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 46%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}
.reel-right-actions {
  position: absolute;
  right: 10px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.reel-creator-avatar-btn {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #fff;
  overflow: visible;
  cursor: pointer;
  padding: 0;
  background: #000;
}
.reel-creator-avatar-btn img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.reel-action-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.reel-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.reel-action-btn:active { transform: scale(0.88); }
.reel-action-btn.liked {
  background: rgba(255, 59, 117, 0.85);
  border-color: #ff3b75;
}
.reel-action-count {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.reel-info-overlay {
  position: absolute;
  left: 14px;
  right: 74px;
  bottom: 20px;
  z-index: 15;
  color: #fff;
}
.reel-author-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.reel-author-name {
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}
.reel-monetized-pill {
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde68a;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
}
.reel-caption-text {
  font-size: 13px;
  line-height: 1.35;
  color: #f1f5f9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  margin-bottom: 5px;
}
.reel-tags-text {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}

/* Upload Reel & Creator Monetization Studio Modals */
.reel-upload-dropzone {
  border: 1.5px dashed rgba(255, 59, 117, 0.45);
  border-radius: 16px;
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 59, 117, 0.06);
}
.studio-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 16px;
  box-sizing: border-box;
}
[data-theme="light"] .studio-input {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.14);
}
.creator-monetize-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(16, 185, 129, 0.12)) !important;
  border: 1px solid rgba(245, 158, 11, 0.4) !important;
}
.creator-studio-card {
  max-height: 88vh;
  overflow-y: auto;
}
.creator-earnings-hero {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(255, 59, 117, 0.2));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.creator-status-badge {
  font-size: 10px;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.35);
  color: #fde68a;
  padding: 3px 8px;
  border-radius: 999px;
}
.creator-balance-big {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
  margin-top: 4px;
}
.creator-balance-sub { font-size: 11px; color: var(--text-muted); }
.creator-today-box {
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  padding: 8px 10px;
  border-radius: 12px;
  text-align: center;
  flex-shrink: 0;
}
.studio-req-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0;
}
.studio-req-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 10px;
  font-size: 12px;
}
[data-theme="light"] .studio-req-item {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.08);
}
.studio-req-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
}
.req-progress-bar {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}
.req-progress-fill {
  height: 100%;
  background: var(--gradient-brand);
  border-radius: 999px;
  transition: width 0.35s ease;
}
.studio-payout-box {
  border-top: 1px solid var(--border-glass);
  padding-top: 12px;
}
.studio-payout-box h4 { font-size: 13px; color: var(--text-main); }
.studio-payout-history {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

/* ==============================================================================
   GLOBAL UNIFIED CHECKOUT ("FusedHearts Pay" - International Standard UI)
   ============================================================================== */
.global-pay-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 4px;
}
.gateway-selector.global-methods {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.gateway-selector.global-methods .gateway-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}
.gateway-selector.global-methods .gateway-btn.active {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}
.gw-title { font-size: 12px; font-weight: 800; }
.gw-sub { font-size: 9px; opacity: 0.7; margin-top: 2px; }
.card-element-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 10px;
}
.pay-privacy-seal {
  font-size: 10px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 7px 10px;
  text-align: center;
  margin-bottom: 12px;
}
[data-theme="light"] .gateway-selector.global-methods .gateway-btn {
  background: #f8fafc;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .gateway-selector.global-methods .gateway-btn.active {
  background: #e0f2fe;
  border-color: #0284c7;
}
[data-theme="light"] .card-element-box {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
}
.store-policy-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}
.store-policy-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}
.store-policy-links a:hover { color: #ec4899; text-decoration: underline; }
.legal-footer-links {
  margin-top: 18px;
  padding: 14px 10px 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
[data-theme="light"] .legal-footer-links {
  border-top-color: rgba(15, 23, 42, 0.09);
}
.legal-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.legal-links-row a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.85;
}
.legal-links-row a:hover { color: #ec4899; opacity: 1; }
.legal-meta-note {
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--text-muted);
  opacity: 0.72;
}
.studio-country-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  max-width: 118px;
}
[data-theme="light"] .studio-country-pill {
  background: #f1f5f9;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.14);
}

/* ============================================================================
   TIKTOK-STYLE LIVE & 2-PERSON PK GIFT BATTLE ARENA
   ============================================================================ */
.btn-reels-live {
  background: linear-gradient(135deg, #ff1e56, #ec4899);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(255, 30, 86, 0.55);
  animation: livePulseGlow 2s infinite;
  white-space: nowrap;
}
@keyframes livePulseGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(255, 30, 86, 0.5); }
  50% { box-shadow: 0 0 20px rgba(255, 30, 86, 0.85); }
}

.live-lobby-card { max-height: 88vh; overflow-y: auto; }
.go-live-setup-box {
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.28);
  border-radius: 16px;
  padding: 12px;
}
.live-mode-tabs, .live-opponent-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.live-mode-btn, .live-opp-btn {
  flex: 1;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.live-mode-btn.active, .live-opp-btn.active {
  border-color: #ff2e93;
  background: rgba(255, 46, 147, 0.18);
  color: #fff;
}
[data-theme="light"] .live-mode-btn, [data-theme="light"] .live-opp-btn {
  background: #f1f5f9; color: #0f172a;
}
[data-theme="light"] .live-mode-btn.active, [data-theme="light"] .live-opp-btn.active {
  background: #fce7f3; color: #9d174d; border-color: #ec4899;
}

.live-rooms-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.live-room-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  cursor: pointer;
}
.live-room-card.is-pk {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, rgba(255, 46, 147, 0.12), rgba(0, 212, 255, 0.12));
}
.live-room-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.live-room-avatars img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ff2e93;
}
.live-room-avatars img.avatar-b {
  margin-left: -12px;
  border-color: #00d4ff;
}
.live-room-info { flex: 1; min-width: 0; }
.live-room-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-room-meta {
  font-size: 11px;
  opacity: 0.78;
  margin-top: 2px;
}
.live-room-actions { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }

/* FULL-SCREEN LIVE STAGE */
.live-stage-overlay { padding: 0 !important; background: #05060b !important; }
.live-stage-shell {
  width: 100%;
  max-width: 460px;
  height: 100dvh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #07080f;
  position: relative;
  overflow: hidden;
  color: #fff;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.live-stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 6px;
  z-index: 20;
  background: linear-gradient(180deg, rgba(0,0,0,0.75), transparent);
}
.live-host-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  min-width: 0;
}
.live-host-pill img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #ff2e93;
}
.live-host-name { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.live-host-sub { font-size: 10px; opacity: 0.85; }
.live-top-controls { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.live-ctrl-chip {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.live-ctrl-chip.muted-off { background: rgba(239, 68, 68, 0.65); border-color: #ef4444; }
.live-coin-chip { background: rgba(245, 158, 11, 0.22); border-color: rgba(245, 158, 11, 0.55); color: #fde68a; }
.live-end-chip { background: rgba(239, 68, 68, 0.85); border-color: transparent; }

/* 2-PERSON PK HUD */
.live-pk-hud { padding: 4px 12px 6px; z-index: 20; }
.pk-hud-names {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 4px;
  gap: 4px;
}
.pk-team-a-label { color: #ff7eb6; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-team-b-label { color: #67e8f9; font-weight: 700; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-hud-names em {
  font-style: normal;
  font-size: 9.5px;
  background: rgba(255,255,255,0.14);
  padding: 1px 5px;
  border-radius: 6px;
}
.pk-timer-pill {
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: #fde68a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.pk-progress-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}
.pk-bar-a {
  background: linear-gradient(90deg, #db2777, #ff2e93);
  transition: width 0.35s ease;
}
.pk-bar-b {
  background: linear-gradient(90deg, #00d4ff, #0284c7);
  transition: width 0.35s ease;
}
.pk-vs-spark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  pointer-events: none;
}

.live-mvp-strip {
  display: flex;
  gap: 6px;
  padding: 2px 12px 6px;
  overflow-x: auto;
  z-index: 20;
  min-height: 20px;
}
.mvp-badge {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  white-space: nowrap;
}

/* VIDEO STAGE & SPLIT SCREEN */
.live-video-stage {
  position: relative;
  flex: 1;
  display: flex;
  overflow: hidden;
  background: #0b0d17;
  min-height: 0;
}
.live-video-pane {
  position: relative;
  flex: 1;
  height: 100%;
  overflow: hidden;
  background: #111322;
}
.live-video-stage.is-pk .live-video-pane.selected-target {
  box-shadow: inset 0 0 0 2.5px #ff2e93;
}
.live-video-stage.is-pk .live-video-pane.pane-b.selected-target {
  box-shadow: inset 0 0 0 2.5px #00d4ff;
}
.live-video-stage.is-pk .live-video-pane.pane-a { border-right: 1px solid rgba(255,255,255,0.2); }
.live-video-pane video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.live-pane-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: radial-gradient(circle, rgba(236,72,153,0.24), #0b0d17);
}
.live-pane-fallback img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; }
.live-pane-fallback span { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; background: #ff1e56; padding: 2px 8px; border-radius: 999px; }
.live-pane-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.62);
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}
.badge-b { left: auto; right: 8px; }
.btn-join-cohost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #00d4ff, #2563eb);
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  z-index: 15;
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.45);
}

/* FLOATING HEARTS & GIFT BANNER */
.live-hearts-layer { position: absolute; right: 12px; bottom: 10px; top: 20%; width: 54px; pointer-events: none; z-index: 25; }
.floating-live-heart {
  position: absolute;
  bottom: 0;
  right: 6px;
  font-size: 22px;
  animation: floatLiveHeart 2.1s ease-out forwards;
}
@keyframes floatLiveHeart {
  0% { transform: translateY(0) scale(0.7); opacity: 1; }
  50% { transform: translateY(-90px) translateX(-10px) scale(1.15); opacity: 0.9; }
  100% { transform: translateY(-210px) translateX(8px) scale(0.95); opacity: 0; }
}
.live-gift-banner {
  position: absolute;
  top: 42px;
  left: 12px;
  right: 12px;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.92), rgba(59, 130, 246, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  animation: giftSlideIn 0.35s ease;
}
@keyframes giftSlideIn {
  from { transform: translateX(-24px) scale(0.95); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}
.live-pk-result {
  position: absolute;
  inset: auto 16px 16px;
  background: rgba(10, 11, 18, 0.92);
  border: 1.5px solid #fbbf24;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  z-index: 32;
}
.pk-res-title { font-size: 16px; font-weight: 800; color: #fde68a; }
.pk-res-dare { font-size: 12px; color: #e2e8f0; margin: 6px 0 10px; }

/* BOTTOM LIVE CHAT + TEAM PICKER + GIFT TRAY */
.live-stage-bottom {
  background: linear-gradient(0deg, rgba(5, 6, 11, 0.98) 72%, rgba(5, 6, 11, 0.72) 100%);
  padding: 6px 10px 10px;
  z-index: 25;
}
.live-chat-feed {
  max-height: 92px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}
.live-chat-line {
  font-size: 11.5px;
  line-height: 1.35;
  background: rgba(0, 0, 0, 0.42);
  padding: 3px 8px;
  border-radius: 10px;
  align-self: flex-start;
  max-width: 92%;
}
.live-chat-line strong { color: #f472b6; margin-right: 4px; }

.live-team-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-bottom: 6px;
}
.team-pick-btn {
  flex: 1;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-pick-btn.team-a.active { background: rgba(255, 46, 147, 0.35); border-color: #ff2e93; color: #fff; }
.team-pick-btn.team-b.active { background: rgba(0, 212, 255, 0.3); border-color: #00d4ff; color: #fff; }

.live-gift-tray {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.live-gift-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 6px 9px;
  color: #fff;
  cursor: pointer;
  min-width: 66px;
}
.live-gift-btn:active { transform: scale(0.94); }
.lg-icon { font-size: 18px; line-height: 1.1; }
.lg-name { font-size: 9.5px; font-weight: 700; opacity: 0.9; }
.lg-price { font-size: 9.5px; font-weight: 800; color: #fbbf24; }

.live-input-bar {
  display: flex;
  align-items: center;
  gap: 6px;
}
.live-input-bar input {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 16px;
  outline: none;
}
.btn-live-send, .btn-live-heart {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  flex-shrink: 0;
}
.btn-live-send { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.btn-live-heart { background: rgba(255, 46, 147, 0.35); border: 1px solid #ff2e93; }

/* ============================================================================
   SAFETY COMPLIANCE, REPORT/BLOCK, EMPTY-DECK FALLBACK & REFERRAL STYLES
   ============================================================================ */
.btn-card-report {
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f8fafc;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-chat-safety {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  margin-left: 4px;
}
.btn-danger-outline {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.45);
}
.btn-danger-solid {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  border: none;
  font-weight: 700;
}
.eula-rules-box {
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: 14px;
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  margin-bottom: 12px;
}
.eula-rules-box p + p { margin-top: 6px; }
.eula-agree-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}
.eula-agree-check input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: #ec4899; }
.eula-agree-check a { color: #f472b6; font-weight: 700; }

.referral-card-banner {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(236, 72, 153, 0.08));
}
.empty-deck-hub {
  width: 100%;
  max-width: 330px;
  text-align: center;
  padding: 16px 12px;
}
.empty-deck-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 10px;
}
.empty-deck-action-btn {
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  color: #f8fafc;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.empty-deck-action-btn.primary-expand {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border-color: transparent;
  font-size: 12.5px;
  padding: 11px 12px;
}
.empty-deck-action-btn.live-cta {
  background: rgba(255, 30, 86, 0.22);
  border-color: rgba(255, 30, 86, 0.55);
}
.empty-deck-action-btn.invite-cta {
  grid-column: 1 / -1;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fde68a;
}

/* ==========================================================================
   AUTH MODAL (SIGN IN / SIGN UP WITH EMAIL OTP / LOGOUT)
   ========================================================================== */
.auth-card {
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.auth-tab-btn {
  padding: 8px 6px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.35);
}

.auth-mode-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.auth-mode-pill {
  flex: 1;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.auth-mode-pill.active {
  border-color: #f472b6;
  background: rgba(236, 72, 153, 0.16);
  color: #fbcfe8;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.auth-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.otp-send-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.otp-send-row .studio-input {
  flex: 1;
  margin: 0;
}

.otp-send-btn {
  white-space: nowrap;
  padding: 11px 12px !important;
  font-size: 12px !important;
  border-radius: 12px !important;
}

.auth-status-banner {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.45;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #e0f2fe;
}

.auth-status-banner.error {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.auth-status-banner.success {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.4);
  color: #a7f3d0;
}

.auth-demo-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 10px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.auth-demo-divider::before,
.auth-demo-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.btn-demo-explore {
  width: 100%;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: #fde68a;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* Goinfi Ventures Brand Attribution (Minimal Option A) */
.goinfi-from-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 2px;
}

[data-theme="light"] .goinfi-from-footer {
  border-top-color: rgba(15, 23, 42, 0.08);
}

.goinfi-from-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  opacity: 0.78;
}

.goinfi-from-brand {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f472b6, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-goinfi-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-goinfi-pill strong {
  color: #f9a8d4;
  font-weight: 800;
}

.profile-goinfi-pill a {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 700;
}

[data-theme="light"] .profile-goinfi-pill {
  color: #334155;
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .profile-goinfi-pill strong {
  color: #db2777;
}

/* Hybrid Guest Preview UI */
.header-signin-pill {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(236, 72, 153, 0.5);
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.22), rgba(139, 92, 246, 0.22));
  color: #fbcfe8;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

[data-theme="light"] .header-signin-pill {
  color: #be185d;
  background: rgba(236, 72, 153, 0.12);
}

.guest-profile-cta {
  border: 1px solid rgba(236, 72, 153, 0.35) !important;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(139, 92, 246, 0.12)) !important;
}

.guest-matches-card {
  margin: 14px 4px;
  padding: 20px 16px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .guest-matches-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
}







