/* --- Design Tokens --- */
:root {
  /* Type — Use platform system-ui so Android inherits user-configured device font */
  --font-display: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Brand — Ember (primary action) */
  --flame-1: #D13A63;
  --flame-2: #7A1638;
  --flame-grad: linear-gradient(135deg, #D13A63 0%, #7A1638 100%);

  /* Gold — VIP/premium accent ONLY. Do not use for general UI. */
  --gold-1: #E3B34D;
  --gold-2: #A07628;
  --gold-grad: linear-gradient(135deg, #E3B34D 0%, #A07628 100%);

  /* Gold foil card edge — exclusive to swipe card only */
  --card-gold-edge: linear-gradient(180deg, #E3B34D 0%, #7A4F10 100%);
  --card-gold-edge-size: 2.5px;

  /* Super-like blue — kept as local values, not a global brand colour */
  --super-blue: #4BB0FF;
  --super-blue-grad: linear-gradient(135deg, #5FC7FF 0%, #2690FF 100%);

  /* Match green */
  --green-match: #21B06B;
  --green-grad: linear-gradient(135deg, #25D366 0%, #21B06B 100%);

  /* Backgrounds — warm obsidian, plum undertone */
  --bg: #0A0710;
  --bg-surface: #140F1B;
  --bg-elevated: #1E1626;
  --bg-card: #191220;
  --bg-glass: rgba(227,179,77,0.04);

  /* Text — warm ivory, not stark white */
  --txt-primary: #F5EEE4;
  --txt-secondary: #D4CCBC;
  --txt-muted: #9E97AA;
  --txt-on-flame: #FFFFFF;

  /* Borders */
  --border: rgba(255,255,255,0.07);
  --border-active: rgba(209,58,99,0.5);
  --border-gold: rgba(227,179,77,0.3);

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl: 0 24px 72px rgba(0,0,0,0.7);
  --shadow-flame: 0 8px 28px rgba(209,58,99,0.38);
  --shadow-gold: 0 8px 28px rgba(160,118,40,0.35);

  /* Radii — semantic, not one-size */
  --r-xs: 6px;      /* tight chip labels */
  --r-sm: 12px;     /* small cards, bubbles */
  --r-md: 18px;     /* cards, panels */
  --r-lg: 24px;     /* sheets, modals */
  --r-xl: 32px;     /* swipe card */
  --r-pill: 999px;  /* actions, tags */
  --r-input: 10px;  /* form inputs — tighter, functional */

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --t-fast: 0.15s;
  --t-mid: 0.28s;

  /* Legacy aliases — keep for backward compat with JS-generated HTML */
  --text-muted: var(--txt-muted);
  --text-primary: var(--txt-primary);
  --accent-pink: var(--flame-1);
  --border-color: var(--border);
  --card-dark: var(--bg-card);
  --r-full: var(--r-pill);
  --font: var(--font-body);
  --t-slow: 0.45s;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

html {
  font-size: 16px;
  height: 100%;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--txt-primary);
  display: flex;
  justify-content: center;
  align-items: stretch;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100%;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  overscroll-behavior: none;
}

/* Zero-flash instant boot for authenticated users */
html.user-logged-in #ageGateOverlay {
  display: none !important;
}

html.age-gate-passed #ageGateOverlay {
  display: none !important;
}

/* Mobile Screens: True 100% full-screen without letterboxing or black bars */
@media (max-width: 768px) {

  html,
body {
    background: var(--bg) !important;
    width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  

}

/* Desktop/Simulation: Flush full-height container with seamless background */
@media (min-width: 769px) {

  body {
    background: var(--bg) !important;
    padding: 0 !important;
  }
  [data-theme="light"] body {
    background: var(--bg) !important;
  }
  

}

/* ============================================================
   APP HEADER
   ============================================================ */

body.keyboard-visible #globalFloatingSearchBtn,
body.keyboard-open #globalFloatingSearchBtn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.story-close-btn.is-hidden,
.story-close-btn[style*="display: none"],
.story-close-btn[style*="display:none"],
#storyDeleteBtn.is-hidden,
#storyAddMoreBtn.is-hidden {
  display: none !important;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

/* Particle sparkles (pure CSS) */

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

/* Bottom form section */

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ============================================================
   SIGN UP — Multi-Step
   ============================================================ */

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* Interest tags */
.interest-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Swipe Counter Badge ── */

@keyframes subtlePulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Card info overlay (bottom) */

.verified-icon {
  color: #5FC7FF;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(95,199,255,0.7));
}

/* A brief accent-colored ring flash on tap — added via JS (pulseClick())
   so the "this responded" feedback is reliable even on a very fast tap,
   not just whatever :active manages to render in that instant. */

@keyframes circBtnClickPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.55); }
  60%  { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Message bubbles — Tinder style */

@keyframes bubblePop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Profile form */

#editBio::-webkit-scrollbar,
#signupBio::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* AI Lab card — no gold border, plain surface */

.ai-picker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  background: var(--bg-elevated);
  transition: all var(--t-fast) var(--ease);
}
.ai-picker-item:hover { border-color: rgba(95,199,255,0.3); }
.ai-picker-item.selected {
  border-color: var(--super-blue);
  background: rgba(95,199,255,0.08);
  box-shadow: 0 0 14px rgba(95,199,255,0.15);
}
.ai-picker-item img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.ai-picker-item.selected img { border-color: var(--super-blue); }
.ai-picker-item span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--txt-secondary);
}
.ai-picker-item.selected span { color: var(--super-blue); }

@keyframes spin { to { transform: rotate(360deg); } }

/* Real-Time Notification Badge Beside Heart Matches Logo */

@keyframes badgePopAnim {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Profile Photos Preview Strip ── */

.profile-strip-thumb {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.profile-strip-thumb:hover {
  transform: scale(1.08);
  border-color: var(--flame-1, #FF2E70);
}

.profile-strip-thumb.main {
  border-color: #2ed573;
}

/* Custom Scrollbar for Match Popup */

@keyframes matchGradShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes matchBounce {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes ringPulse {
  0% { transform: scale(0.96); opacity: 0.85; }
  50% { transform: scale(1.1); opacity: 0.25; }
  100% { transform: scale(0.96); opacity: 0.85; }
}

@keyframes slideLeft {
  from { transform: translateX(-50px) rotate(-15deg); opacity: 0; }
  to { transform: translateX(0) rotate(-4deg); opacity: 1; }
}
@keyframes slideRight {
  from { transform: translateX(50px) rotate(15deg); opacity: 0; }
  to { transform: translateX(0) rotate(4deg); opacity: 1; }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.18); }
  60% { transform: scale(1.08); }
}

/* ============================================================
   BRAND LOGO STYLING — hookmebysam
   ============================================================ */

@keyframes flamePulse {
  0%, 100% { transform: scale(1) rotate(-3deg); filter: drop-shadow(0 0 8px rgba(209, 58, 99, 0.6)); }
  50% { transform: scale(1.15) rotate(3deg); filter: drop-shadow(0 0 16px rgba(224, 86, 127, 0.9)); }
}

/* ============================================================
   LIGHT MODE THEME SYSTEM
   ============================================================ */

html[data-theme="light"],
body[data-theme="light"],
[data-theme="light"] {
  --bg: #FAF5EC;
  --bg-surface: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-card: #FAF5EC;
  --bg-glass: rgba(0, 0, 0, 0.04);

  --txt-primary: #15111E;
  --txt-secondary: #4E4456;
  --txt-muted: #82768E;

  --border: #EDE3D3;
  --border-active: rgba(209, 58, 99, 0.5);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 20px 50px rgba(15, 23, 42, 0.12);
}

/* Text clarity and readability enforcement for both themes */
body {
  color: var(--txt-primary);
}

[data-theme="light"] {
  --txt-primary: #150E1C;
  --txt-secondary: #4A3E4E;
  --txt-muted: #726578;
}

[data-theme="light"] label {
  color: #382C3D !important;
}

[data-theme="dark"] label {
  color: #DDD4C6;
}

/* Shimmer sweep animation on crown body */
@keyframes crownShimmer {
  0%   { filter: drop-shadow(0 2px 8px rgba(244,197,80,0.55)) brightness(1); }
  50%  { filter: drop-shadow(0 4px 20px rgba(244,197,80,0.9)) brightness(1.3); }
  100% { filter: drop-shadow(0 2px 8px rgba(244,197,80,0.55)) brightness(1); }
}

/* Float animation for large paywall crown */
@keyframes crownFloat {
  0%, 100% { transform: translateY(0)    rotate(0deg);   }
  30%       { transform: translateY(-6px) rotate(-2deg);  }
  70%       { transform: translateY(-4px) rotate(2deg);   }
}

/* ============================================================
   BOOST BUTTON — Action Row 5th Button
   ============================================================ */

@keyframes boostPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(184,132,43,0.5); }
  50%       { box-shadow: 0 6px 32px rgba(184,132,43,0.9); transform: scale(1.06); }
}

/* ============================================================
   CHAT TYPING INDICATOR
   ============================================================ */

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); background: var(--txt-muted); }
  30%           { transform: translateY(-6px); background: var(--flame-1); }
}

/* ============================================================
   SIGNUP SUCCESS SCREEN
   ============================================================ */

@keyframes successGlowPulse {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

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

/* ============================================================
   REPORT USER MODAL
   ============================================================ */

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

/* ============================================================
   NOTIFICATION BANNER
   ============================================================ */

@keyframes slideDown {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

/* WhatsApp 3-Dot Popup Menu */

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

/* Smart Auto-Suggest Box While Typing */

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

/* ================================================================
   CHAT INPUT BAR — WhatsApp style redesign
   ================================================================ */

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

/* ================================================================
   VOICE RECORDING BAR (WhatsApp-style)
   ================================================================ */

@keyframes arrowBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-4px); }
}
@keyframes bounceLock {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

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

@keyframes liveWaveDefault {
  0%, 100% { height: 6px; opacity: 0.5; }
  50% { height: 22px; opacity: 1; }
}

@keyframes slideShimmer {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 0.95; transform: translateX(-6px); }
}

/* ================================================================
   WHATSAPP FULL-SCREEN IMAGE LIGHTBOX (Screenshot 4 Style)
   ================================================================ */

#lightboxImg {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  will-change: transform, opacity;
  cursor: grab;
}
#lightboxImg.swiping {
  transition: none !important;
}

#lightboxReplyInput {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-size: 14.5px;
  line-height: 1.3;
}
#lightboxReplyInput::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Voice & Video call header actions */

@keyframes callRingSpin { to { transform: rotate(360deg); } }

@keyframes callStatusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

@keyframes signalPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* VIDEO CALL specific */

#remoteVideoStream {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
@keyframes videoCallBgPulse {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(40deg); }
}

/* ================================================================
   WHATSAPP CONTACT INFO PROFILE BOTTOM SHEET
   ================================================================ */

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

/* Amber pencil badge at bottom right */
.simple-avatar-pencil-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E5A93C;
  border: 2.5px solid #0F0A19;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--spring), background-color 0.2s ease;
  z-index: 3;
}
.simple-avatar-pencil-badge:hover {
  transform: scale(1.15);
  background: #F4BA4E;
}
.simple-avatar-pencil-badge svg {
  color: #171120;
}

/* Light Theme Support */

[data-theme="light"] .simple-avatar-pencil-badge {
  border-color: #FFFFFF !important;
}

/* Modal Overlay: fixed full viewport overlay */
.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  width: 100% !important;
  height: 100% !important;
  height: 100dvh !important;
  z-index: 9999 !important;
  box-sizing: border-box !important;
}

/* Ensure background avatar pencil badge cannot show when modal is open */
body:has(#editProfileModal[style*="display: flex"]) .simple-avatar-pencil-badge {
  display: none !important;
}

/* ==========================================================
   MESSAGE REACTIONS
   ========================================================== */

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

/* ==========================================================
   CHAT ACTION SHEET & STORY TOUCH ZONES
   ========================================================== */

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.story-nav-zones {
  position: absolute;
  top: 75px;
  bottom: 140px;
  left: 0;
  right: 0;
  display: flex;
  z-index: 25;
  pointer-events: auto;
}
.story-zone-left {
  flex: 1;
  height: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.story-zone-right {
  flex: 2;
  height: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ============================================================
   PULL TO REFRESH & AUTO-REFRESH INDICATOR (Icon Only - WhatsApp Style)
   ============================================================ */

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

/* The settings page should scroll freely inside the screen, clearing the header and bottom nav. */
#settingsScreen {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  height: 100%;
  box-sizing: border-box;
}

/* ---------- Light mode: consistent readable text ---------- */
[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-card: #F8F7FA;
  --bg-glass: rgba(20, 14, 28, 0.045);
  --txt-primary: #15121A;
  --txt-secondary: #4D4655;
  --txt-muted: #6F6878;
  --border: #E3DEE8;
  --border-active: rgba(242, 38, 112, 0.45);
}

[data-theme="light"] body,
body[data-theme="light"] {
  background: #FFFFFF !important;
  color: #15121A !important;
}

/* Common headings, subtitles, empty states and section labels */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
  color: #15121A !important;
}

[data-theme="light"] p {
  color: #5B5364 !important;
}

/* Forms */
[data-theme="light"] input,
[data-theme="light"] textarea,
[data-theme="light"] select {
  color: #15121A !important;
  background: #FFFFFF !important;
  border-color: #D8D2DE !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
  color: #80778A !important;
  opacity: 1 !important;
}

/* Light-mode modal readability: override legacy inline dark-theme text safely. */

[data-theme="light"] #languageOptionsList button {
  background: #F8F6FA !important;
  color: #15121A !important;
  border: 1px solid #E1DCE5 !important;
}
[data-theme="light"] #languageOptionsList button:hover {
  background: #F0EBF5 !important;
}

/* Paywall Modal Light Mode Precision */

[data-theme="light"] #paywallReason {
  color: #554D60 !important;
}

/* Preserve intentionally dark/image-based experiences only. */
[data-theme="light"] .story-header-area {
  color: #FFFFFF;
}

/* --- WhatsApp-Style Quoted Reply Bar above Input --- */

@keyframes slideUpReply {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --- In-Header WhatsApp Chat Search Bar --- */

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

/* --- Search Result Highlight Pulse Effect --- */

@keyframes highlightGlow {
  0% { box-shadow: 0 0 0 4px rgba(227, 179, 77, 0.85), 0 0 25px rgba(227, 179, 77, 0.6); }
  50% { box-shadow: 0 0 0 3px rgba(227, 179, 77, 0.6), 0 0 15px rgba(227, 179, 77, 0.4); }
  100% { box-shadow: none; }
}

/* ================================================================
   WHATSAPP STATUS CARDS (Screenshot 5 Style)
   ================================================================ */

@keyframes waStatusSpin {
  100% { transform: rotate(360deg); }
}
@keyframes waStatusDash {
  0% { stroke-dashoffset: 110; }
  50% { stroke-dashoffset: 25; transform: rotate(135deg); }
  100% { stroke-dashoffset: 110; transform: rotate(450deg); }
}

/* ================================================================
   WHATSAPP REACTION BOTTOM SHEET (Screenshot 3 Style)
   ================================================================ */

@keyframes reactionOverlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes reactionSheetSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ================================================================
   BESPOKE HOOKME MEDIA PRE-SEND PREVIEW MODAL
   Luxury obsidian glass backdrop, flame gradients, refined pill
   ================================================================ */

@keyframes mpxSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

/* ================================================================
   FLOATING CALL BAR (PICTURE-IN-PICTURE MINIMIZED CALL)
   ================================================================ */

@keyframes fcbSlideDown {
  from { transform: translateY(-120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

@keyframes fcbPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px rgba(16, 185, 129, 1); }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* 2. Hero Identity Card */

@keyframes hkPulseRing {
  0% { transform: scale(0.96); opacity: 0.5; }
  100% { transform: scale(1.05); opacity: 0.85; }
}

/* 3. Profile Strength Box */

.hk-strength-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FF6584;
}

/* ==========================================================================
   MODAL: PREVIEW AS MATCH (Interactive Discovery Card Preview)
   ========================================================================== */

@keyframes hkSlideUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* =============================================================
   ONBOARDING WIZARD
   ============================================================= */

@keyframes obStepIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* =============================================================
   SKELETON LOADING CARDS
   ============================================================= */

@keyframes skeletonShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* =============================================================
   PWA INSTALL BANNER
   ============================================================= */
.pwa-banner-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1E1626;
  border: 1px solid rgba(227,179,77,0.25);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  animation: pwaBannerIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes pwaBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.pwa-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pwa-banner-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pwa-banner-text { flex: 1; min-width: 0; }
.pwa-banner-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #F5EEE4;
}
.pwa-banner-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pwa-banner-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
}
.pwa-banner-install {
  background: linear-gradient(135deg, #D13A63, #7A1638);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 16px;
  cursor: pointer;
  transition: transform 0.15s;
}
.pwa-banner-install:active { transform: scale(0.95); }

[data-theme="light"] .pwa-banner-card {
  background: #fff;
  border-color: rgba(209,58,99,0.2);
}
[data-theme="light"] .pwa-banner-title { color: #1a1a2e; }
[data-theme="light"] .pwa-banner-sub { color: #666; }

/* ==========================================================
   SUPER LIKE STARBURST FX OVERLAY & STAMP
   ========================================================== */
.super-like-fx-burst {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(29, 161, 242, 0.35) 0%, rgba(29, 161, 242, 0) 70%);
  animation: superLikeOverlayFade 1.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes superLikeOverlayFade {
  0% { opacity: 0; transform: scale(0.85); }
  25% { opacity: 1; transform: scale(1.04); }
  75% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1); }
}
.super-like-fx-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid rgba(29, 161, 242, 0.85);
  box-shadow: 0 0 40px rgba(29, 161, 242, 0.8), inset 0 0 30px rgba(29, 161, 242, 0.4);
  animation: superLikeRingPulse 0.9s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes superLikeRingPulse {
  0% { transform: scale(0.2); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.super-like-fx-core {
  font-size: 5rem;
  filter: drop-shadow(0 0 30px #1DA1F2) drop-shadow(0 0 60px #00C6FF);
  animation: superStarPop 0.85s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes superStarPop {
  0% { transform: scale(0) rotate(-45deg); opacity: 0; }
  55% { transform: scale(1.35) rotate(15deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
.super-star-particle {
  position: absolute;
  pointer-events: none;
  font-size: 1.5rem;
  animation: superStarFly 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes superStarFly {
  0% { transform: translate(0, 0) scale(0.5) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1.3) rotate(180deg); opacity: 0; }
}

/* ── Photo Verification / Selfie Check Prompt Card ── */

@keyframes verifyCardShine {
  0% { left: -100%; }
  25%, 100% { left: 200%; }
}

/* ── Selfie Verification Modal ── */

@keyframes countdownPulse {
  0% { transform: scale(1.35); opacity: 0.3; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.85); opacity: 0.2; }
}

@keyframes pulseScanFace {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes scanLaserAnim {
  0% { top: 5%; }
  50% { top: 92%; }
  100% { top: 5%; }
}

/* Universal centering of App Shell & Core Layout */
body {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  background: var(--bg) !important;
  overflow: hidden !important;
}

/* ── PROFILE SCREEN: Perfect Center & Elastic Card Fit ── */
#profileScreen {
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-y;
  overscroll-behavior-y: contain;
  width: 100% !important;
}

#profileScreen.active {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

/* ================================================================
   DISCOVERY PREFERENCES BOTTOM SHEET & FILTER CONTROLS
   ================================================================ */

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

@keyframes filterSheetUp {
  from {
    transform: translateY(28px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.filter-count-preview {
  font-size: 0.82rem;
  opacity: 0.9;
  font-weight: 500;
}

/* Chat Shield Header Button (Strictly hidden from header - accessible via 3-dots dropdown menu) */
#chatSafetyShieldBtn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

/* Stealth Mode Header Badge */

@keyframes stealthPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(168, 85, 247, 0);
  }
  50% {
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
  }
}

/* ============================================================
   GENTLE UNMATCH MODAL DIALOG
   ============================================================ */

@keyframes unmatchPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Light Mode Overrides for Safety & Unmatch */
[data-theme="light"] #chatSafetyShieldBtn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  background: #F3EADB !important;
  border-color: #EDE3D3 !important;
  color: #B8842B !important;
}
