/* VelvetVibe — Dark-Glamour Mobile-First Stylesheet & Native Layout Fallbacks */

:root {
  --bg-primary: #09090e;
  --bg-surface: #13131d;
  --bg-surface-elevated: #1b1b29;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --rose-start: #f43f5e;
  --pink-end: #ec4899;
  --gold-vip: #f59e0b;
  --emerald-live: #10b981;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Desktop ambient glow + mobile shell fallback */
body {
  background-image:
    radial-gradient(circle at 50% 0%, rgba(244, 63, 94, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(245, 158, 11, 0.08) 0%, transparent 40%);
}

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--bg-primary);
  position: relative;
  overflow-x: hidden;
  padding-bottom: 24px;
}

.app-shell.has-sticky-ad {
  padding-bottom: 84px; /* Clearance when sticky bottom anchor banner is active */
}

@media (min-width: 520px) {
  .app-shell {
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.85);
  }
}

/* Native Grid & Flex Fallbacks (instant render before Tailwind CDN loads) */
.vv-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.vv-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.vv-glass-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 14, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

/* Anti-CLS 3:4 Media Frame */
.aspect-3-4 {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(145deg, #1b1525 0%, #13131d 100%);
}

.aspect-3-4 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback card when external image fails */
.img-fallback-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.28) 0%, rgba(19, 19, 29, 0.96) 55%, rgba(245, 158, 11, 0.25) 100%);
  color: var(--text-primary);
  text-align: center;
  padding: 0.75rem;
}

.img-fallback-initials {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--rose-start), var(--gold-vip));
  color: #fff;
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.35);
}

/* Blur Teaser Overlay */
.blur-teaser-img {
  filter: blur(12px);
  transform: scale(1.08);
  transition: transform 0.35s ease;
}

/* Slightly softer blur for animated WebP/GIF VIP video preview on unlock.html so motion stays visible */
.blur-video-preview {
  filter: blur(9px);
  transform: scale(1.06);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.frosted-lock-pill {
  background: rgba(15, 15, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Primary & VIP CTAs */
.btn-rose-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--rose-start) 0%, var(--pink-end) 100%);
  box-shadow: 0 10px 28px rgba(244, 63, 94, 0.34);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-rose-cta:active {
  transform: scale(0.98);
}

.btn-vip-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 0.95rem;
  font-weight: 800;
  color: #09090e;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #fb7185 100%);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.38);
  transition: transform 0.15s ease;
}

.btn-vip-gold:active {
  transform: scale(0.98);
}

/* Animations */
@keyframes pulseSoft {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.45);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(244, 63, 94, 0);
  }
}

.animate-cta-pulse {
  animation: pulseSoft 2.1s infinite;
}

@keyframes livePing {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--emerald-live);
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: var(--emerald-live);
  animation: livePing 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Ad Slot Wrappers (Anti-CLS + Zero Horizontal Overflow) */
.ad-slot-wrapper {
  max-width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  direction: ltr;
}

.ad-sponsored-box {
  width: 100%;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(19, 19, 29, 0.72);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem;
}

/* Sticky Bottom Anchor Ad */
.sticky-anchor-ad {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  z-index: 45;
  background: rgba(9, 9, 14, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 4px 8px;
  direction: ltr;
}

/* Retention Toast */
.retention-toast {
  position: fixed;
  bottom: 68px;
  left: 50%;
  transform: translate(-50%, 140%);
  width: calc(100% - 24px);
  max-width: 456px;
  z-index: 50;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.retention-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

/* Horizontal Filter Pill Strip */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
