:root {
  --bg-dark: #0A0A0C; /* Pitch black */
  --bg-light: #18181A; /* Slightly lighter black for elements */
  --text-main: #FFFFFF;
  --text-muted: #8E8D94;
  --neon-pink: #FF1268;
  
  --font-main: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-dark);
  font-family: var(--font-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { border: none; background: none; font-family: inherit; cursor: pointer; outline: none; }

.v9-container { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* Abstract dark fluid background */
.v9-global-bg, .v9-fluid-app {
  position: absolute; inset: 0; z-index: -1;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(255, 18, 104, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
  /* Imitating the black fluid worms using repeated SVG data URL */
  background-size: 100% 100%;
}
.v9-fluid-app {
  background-image: url('data:image/svg+xml;utf8,<svg width="400" height="400" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"><path d="M 10 100 Q 100 50, 150 150 T 300 200" stroke="%23141416" stroke-width="60" fill="none" stroke-linecap="round"/><path d="M 300 -50 Q 200 100, 350 250" stroke="%23141416" stroke-width="40" fill="none" stroke-linecap="round"/><path d="M -50 300 Q 150 350, 200 450" stroke="%23141416" stroke-width="50" fill="none" stroke-linecap="round"/></svg>');
  background-size: 200px 200px; opacity: 0.8;
}

/* 1. HERO SECTION */
.v9-hero { padding: 40px 0; position: relative; }
.v9-app {
  max-width: 440px; margin: 0 auto;
  position: relative; overflow: hidden; padding-bottom: 40px;
}
.v9-app-head { text-align: center; margin-bottom: 40px; padding: 0 20px; }
.v9-top-text { font-size: 14px; font-weight: 500; color: var(--text-muted); line-height: 1.4; }

/* Carousel / Deck */
.v9-deck-wrap { position: relative; height: 380px; width: 100%; z-index: 10; margin-bottom: 40px; }
#lp-hero-sizer { width: 100%; height: 100%; position: relative; }
.v9-deck-inner { position: absolute; inset: 0; }
.v9-deck-link { position: absolute; inset: 0; z-index: 20; }
.v9-showcase { position: absolute; inset: 0; z-index: 1; }

.heart {
  position: absolute; top: 10%; bottom: 10%; left: 15%; right: 15%;
  border-radius: 20px; border: 4px solid #fff;
  background: var(--bg-light); will-change: transform, opacity;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}
.heart__img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.heart--empty { opacity: 0.1; }

/* Swiping rotations resembling middle screen UI */
.heart[data-pos="front"] { transform: translate3d(0, 0, 0) scale(1) rotate(0); opacity: 1; z-index: 5; }
.heart[data-pos="back"] { transform: translate3d(-30px, 15px, 0) scale(0.9) rotate(-8deg); opacity: 0.8; z-index: 4; }
.heart[data-pos="left1"] { transform: translate3d(35px, 25px, 0) scale(0.85) rotate(12deg); opacity: 0.4; z-index: 3; }
.heart[data-pos="left2"], .heart[data-pos="left3"] { opacity: 0; }
.heart[data-pos="next"] { transform: translate3d(60px, -20px, 0) scale(0.9) rotate(20deg); opacity: 0; }

/* Small bubble UI element */
.v9-card-ui { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.v9-mini-badge {
  position: absolute; bottom: 30px; right: 15%; margin-right: -12px; margin-bottom: -12px;
  width: 44px; height: 44px; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px);
  border: 2px solid #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff;
}
.v9-mini-badge svg { width: 20px; height: 20px; }
.v9-hero-name-block {
  position: absolute; bottom: 50px; left: 15%; right: 15%;
  text-align: center; font-size: 20px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.v9-online { color: #00FF66; margin-left: 4px; text-shadow: 0 0 8px #00FF66; }

/* Hero Text & CTA */
.v9-hero-content { text-align: center; padding: 0 20px; }
.v9-h1 { font-size: 38px; font-weight: 800; line-height: 1.1; margin-bottom: 12px; letter-spacing: -1px; }
.v9-p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.v9-slider-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 30px; }
.v9-dot { width: 16px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.2); }
.v9-dot--active { background: var(--neon-pink); width: 32px; }

.v9-btn-pink {
  display: inline-block; width: 100%; max-width: 300px;
  background: var(--neon-pink); color: #fff; font-size: 18px; font-weight: 700;
  padding: 18px; border-radius: 100px; text-align: center; box-shadow: 0 10px 20px rgba(255, 18, 104, 0.3);
  transition: 0.2s;
}
.v9-btn-pink:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(255, 18, 104, 0.4); }

/* 2. GRID COLLAGE (Left Screen Style) */
.v9-main { position: relative; z-index: 10; padding: 40px 0; }
.v9-sect-head { margin-bottom: 24px; text-align: center; }
.v9-emoji-wrap { font-size: 40px; margin-bottom: 12px; }
.v9-h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }

/* Tight Collage Grid */
.v9-collage {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px;
}
.pcard {
  position: relative; border-radius: 16px; overflow: hidden; background: var(--bg-light);
  aspect-ratio: 3/4; border: 2px solid rgba(255,255,255,0.05); transition: 0.2s;
}
.pcard:nth-child(even) { aspect-ratio: 4/5; } /* Slight masonry unevenness */
.pcard:hover { border-color: rgba(255,255,255,0.2); transform: scale(1.02); }

.pcard__media { position: absolute; inset: 0; }
.pcard__img { width: 100%; height: 100%; object-fit: cover; }
.pcard__img--empty { opacity: 0.1; }

.pcard__body { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px; background: linear-gradient(0deg, rgba(0,0,0,0.8), rgba(0,0,0,0)); }
.pcard__name { font-size: 12px; font-weight: 700; color: #fff; }
.pcard__meta { font-size: 10px; color: rgba(255,255,255,0.6); }

/* Age badge over dark cards */
.pcard__age {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  color: #fff; font-size: 10px; font-weight: 700;
  padding: 4px 8px; border-radius: 8px;
}

.pcard__heart, .pcard__pin { display: none; }
.v9-error { color: var(--neon-pink); font-size: 14px; text-align: center; padding: 20px; }

/* 3. SEARCH FORM (Chat bubble style) */
.v9-section--chat { margin: 60px 0; }
.v9-chat-app {
  max-width: 500px; margin: 0 auto; background: var(--bg-light);
  border-radius: 32px; border: 1px solid rgba(255,255,255,0.05); overflow: hidden;
}
.v9-graffiti-header {
  height: 120px;
  background-image: url('data:image/svg+xml;utf8,<svg width="400" height="120" xmlns="http://www.w3.org/2000/svg"><path d="M10 20 Q 50 -10, 100 40 T 200 10" stroke="%23ff1268" stroke-width="4" fill="none"/><path d="M80 80 Q 150 120, 250 60 T 400 90" stroke="%2300ff66" stroke-width="5" fill="none"/><path d="M220 20 Q 280 -20, 320 50 T 400 10" stroke="%234b90fa" stroke-width="6" fill="none"/></svg>');
  background-size: cover; background-position: center; position: relative;
}
.v9-chat-avatar {
  position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 80px; background: #fff; color: #111; border-radius: 50%;
  display: flex; justify-content: center; align-items: center; border: 4px solid var(--bg-light);
}
.v9-chat-avatar svg { width: 40px; height: 40px; }

.v9-chat-body { padding: 50px 24px 24px; text-align: center; }
.v9-chat-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.v9-chat-p { font-size: 14px; color: var(--text-muted); margin-bottom: 30px; }

.v9-bubbles-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 16px; }
.v9-bubble-field { position: relative; }
.v9-lbl { display: none; } /* Hide labels for chat bubble look */

.v9-bubble-select {
  appearance: none; background: rgba(255,255,255,0.05); color: #fff;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 100px;
  padding: 12px 20px; font-family: inherit; font-size: 14px; font-weight: 500;
  outline: none; transition: 0.2s; cursor: pointer; text-align: center;
}
.v9-bubble-select:focus { border-color: var(--text-main); background: rgba(255,255,255,0.1); }
.v9-bubble-select option { background: var(--bg-dark); }

.v9-bubble-field--wide { width: 100%; max-width: 300px; margin: 0 auto 30px; background: rgba(255,255,255,0.05); border-radius: 20px; padding: 16px; border: 1px solid rgba(255,255,255,0.05); }
.v9-age-top { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; font-weight: 500; }
.v9-age-top .v9-lbl { display: block; color: var(--text-muted); }

.v9-slider { position: relative; height: 20px; display: flex; align-items: center; }
.v9-slider__track { position: absolute; left: 0; right: 0; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.v9-slider__track::after {
  content: ''; position: absolute; top: 0; bottom: 0; background: var(--text-main); border-radius: 2px;
  left: calc(var(--min-p, 0) * 1%); width: calc((var(--max-p, 100) - var(--min-p, 0)) * 1%);
}
.v9-slider__input { position: absolute; width: 100%; appearance: none; background: transparent; pointer-events: none; }
.v9-slider__input::-webkit-slider-thumb {
  appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--text-main); pointer-events: auto; cursor: pointer;
}

.v9-chat-input-bar {
  display: flex; align-items: center; background: rgba(255,255,255,0.08);
  border-radius: 100px; padding: 4px 4px 4px 20px;
}
.v9-chat-submit { flex: 1; text-align: left; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.5); }
.v9-mic { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; justify-content: center; align-items: center; color: #fff; }
.v9-mic svg { width: 20px; height: 20px; }

/* 4. STORIES BUBBLES */
.v9-stories-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px;
}
.v9-st-bubble {
  flex: 0 0 clamp(260px, 70vw, 320px); background: #1C1C1E; border-radius: 24px 24px 24px 4px;
  padding: 24px; scroll-snap-align: start; margin-bottom: 10px;
}
.v9-st-bubble--alt { background: #232326; border-radius: 24px 24px 4px 24px; align-self: flex-end; }
.v9-st-name { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.v9-st-bubble p { font-size: 14px; color: var(--text-muted); }

.v9-story-controls { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.v9-ctrl { font-size: 13px; font-weight: 600; color: var(--text-muted); background: rgba(255,255,255,0.05); padding: 8px 16px; border-radius: 100px; }

.v9-footer { text-align: center; padding: 40px 0 60px; border-top: 1px solid rgba(255,255,255,0.05); }
.v9-f-logo { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.v9-f-text { font-size: 12px; color: #666; max-width: 500px; margin: 0 auto 20px; }
.v9-f-links { display: flex; justify-content: center; gap: 20px; }
.v9-f-links a { font-size: 12px; color: #888; }
