:root {
  --bg-global: #F4E0E5; /* Soft pastel pink */
  --bg-app: linear-gradient(160deg, #4B1745 0%, #821E4E 100%); /* Deep plum to burgundy */
  --text-main: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.7);
  --accent: #E55877; /* Soft hot pink */
  
  --font-main: 'Poppins', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-global);
  font-family: var(--font-main);
  color: #222;
  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; }

.v8-wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Global Background */
.v8-global-bg { position: fixed; inset: 0; z-index: -1; background-color: var(--bg-global); }

/* 1. HERO SECTION */
.v8-hero {
  background: var(--bg-app);
  color: var(--text-main);
  padding: 40px 0 80px;
  border-radius: 0 0 50px 50px;
  box-shadow: 0 20px 50px rgba(75, 23, 69, 0.3);
}
.v8-app-head {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 460px; margin: 0 auto 30px;
}
.v8-logo { font-size: 20px; font-weight: 800; }
.v8-user-avatar {
  width: 44px; height: 44px; background: rgba(255,255,255,0.1); border-radius: 50%;
  display: flex; justify-content: center; align-items: center; color: #f2ceac;
}
.v8-user-avatar svg { width: 24px; height: 24px; }

.v8-app-title { font-size: 24px; font-weight: 500; text-align: center; max-width: 460px; margin: 0 auto 30px; }
.v8-app-title span { font-size: 32px; font-weight: 800; display: block; margin-top: 4px; }

/* The Carousel Deck */
.v8-deck-wrap { position: relative; height: 480px; max-width: 360px; margin: 0 auto; z-index: 10; }
#lp-hero-sizer { width: 100%; height: 100%; position: relative; }
.v8-deck-inner { position: absolute; inset: 0; }
.v8-deck-link { position: absolute; inset: 0; z-index: 20; }
.v8-showcase { position: absolute; inset: 0; z-index: 1; }

.heart {
  position: absolute; inset: 0; border-radius: 36px; overflow: visible;
  background: #fff; 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.4);
}
/* We use clip-path or border-radius on the image instead of overflow:hidden on the wrapper 
   so the heart button can stick out! */
.heart__img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.heart--empty { opacity: 0.2; }

/* Slanted cards imitating the left screen from screenshot! */
.heart[data-pos="front"] { transform: translate3d(0, 0, 0) scale(1) rotate(0); opacity: 1; z-index: 5; }
.heart[data-pos="back"] { transform: translate3d(-35px, 30px, 0) scale(0.9) rotate(-15deg); opacity: 0.7; z-index: 4; }
.heart[data-pos="left1"] { transform: translate3d(40px, 40px, 0) scale(0.85) rotate(15deg); opacity: 0.4; z-index: 3; }
.heart[data-pos="left2"], .heart[data-pos="left3"] { opacity: 0; }
.heart[data-pos="next"] { transform: translate3d(50px, -20px, 0) scale(0.9) rotate(10deg); opacity: 0; }

/* Deck UI Overlay */
.v8-card-ui { position: absolute; inset: 0; pointer-events: none; z-index: 6; border-radius: 36px; }

/* Left Floating Toolkit */
.v8-left-tools { position: absolute; top: 20px; left: 16px; display: flex; flex-direction: column; gap: 12px; }
.v8-tool-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.4); backdrop-filter: blur(8px);
  display: flex; justify-content: center; align-items: center; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.v8-tool-dot svg { width: 18px; height: 18px; }

/* Name Info on Photo */
.v8-card-info {
  position: absolute; bottom: 40px; left: 0; right: 0; text-align: center;
  padding-bottom: 20px;
}
.v8-card-name { font-size: 26px; font-weight: 800; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }
.v8-card-city { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.9); text-shadow: 0 1px 5px rgba(0,0,0,0.4); }

/* Prominent Floating Heart at the precise bottom border */
.v8-heart-button-wrapper { position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%); pointer-events: auto; }
.v8-heart-button {
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; justify-content: center; align-items: center;
  border: 4px solid var(--bg-global); /* Matches global background to look cut out but here it's dark plum bg so border is plum */
  border-color: #721c4b; /* Hack to blend with plum background */
  box-shadow: 0 10px 20px rgba(0,0,0,0.3); pointer-events: none;
}
.v8-heart-button svg { width: 26px; height: 26px; }

/* Bottom Mini Actions */
.v8-deck-actions {
  display: flex; justify-content: center; gap: 20px; margin: 40px auto; max-width: 360px;
}
.v8-mini-btn {
  width: 48px; height: 48px; border-radius: 50%; background: #fff;
  display: flex; justify-content: center; align-items: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: transform 0.2s;
}
.v8-mini-btn:hover { transform: translateY(-3px); }
.v8-mini-btn--red { color: #E55877; }
.v8-mini-btn--blue { color: #4B90FA; }
.v8-mini-btn--purple { color: #821E4E; }
.v8-mini-btn svg { width: 22px; height: 22px; }

/* Huge White "Get Started" CTA */
.v8-get-started-wrap { text-align: center; margin-top: 50px; }
.v8-btn-pill {
  display: inline-flex; justify-content: space-between; align-items: center;
  background: #fff; color: #111; padding: 20px 28px; border-radius: 100px;
  font-size: 18px; font-weight: 700; width: 100%; max-width: 400px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.v8-btn-arrow { font-size: 24px; font-weight: 400; color: #111; }

/* 2. PROFILES GRID (MAIN STAGE) */
.v8-main { padding: 60px 0; }
.v8-section { margin-bottom: 60px; }
.v8-head { margin-bottom: 40px; text-align: center; }
.v8-h2 { font-size: 32px; font-weight: 800; color: #3A1439; margin-bottom: 8px; }
.v8-p { font-size: 15px; color: #666; max-width: 500px; margin: 0 auto; }
.v8-h3 { font-size: 20px; font-weight: 700; color: #3A1439; margin-bottom: 24px; }

.v8-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }

/* Match right-screen from screenshot: Dark info box under image inside card */
.pcard {
  position: relative; display: block; border-radius: 24px;
  background: var(--bg-app); overflow: hidden; box-shadow: 0 10px 30px rgba(75, 23, 69, 0.15);
  transition: transform 0.3s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(75, 23, 69, 0.25); }
.pcard__media { height: 200px; width: 100%; background: rgba(0,0,0,0.1); }
.pcard__img { width: 100%; height: 100%; object-fit: cover; }
.pcard__img--empty { opacity: 0.1; }

.pcard__body {
  background: rgba(0,0,0,0.25); /* Dark overlay */
  padding: 16px; display: flex; flex-direction: column;
}
.pcard__name {
  font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.pcard__name::after { content: ''; display: block; width: 8px; height: 8px; background: #FFF; border-radius: 50%; border: 2px solid #4B90FA; }
.pcard__meta { font-size: 11px; color: rgba(255,255,255,0.7); }

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

/* Hide redundant */
.pcard__heart, .pcard__pin { display: none; }
.v8-error { text-align: center; color: #E55877; font-weight: bold; background: rgba(229, 88, 119, 0.1); padding: 16px; border-radius: 12px; }

/* 3. SEARCH FORM SECTION */
.v8-section--dark .v8-form-card {
  background: var(--bg-app); border-radius: 40px; padding: 50px 40px;
  box-shadow: 0 20px 50px rgba(75, 23, 69, 0.2); color: #fff;
}
.v8-form-head { text-align: center; margin-bottom: 40px; }
.v8-form-head .v8-h2 { color: #fff; }
.v8-form-head .v8-p { color: rgba(255,255,255,0.7); }

.v8-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.v8-field { margin-bottom: 24px; }
.v8-label { display: block; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.6); text-transform: uppercase; margin-bottom: 8px; }
.v8-select {
  width: 100%; border: none; border-radius: 12px; background: rgba(255,255,255,0.1);
  padding: 16px; font-family: inherit; font-size: 15px; font-weight: 600; color: #fff; outline: none; transition: 0.2s;
  backdrop-filter: blur(10px);
}
.v8-select option { background: #622765; color: #fff; }

.v8-field-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.v8-val { font-size: 16px; font-weight: 800; color: #fff; }
.v8-slider { position: relative; height: 24px; display: flex; align-items: center; }
.v8-slider__track { position: absolute; left: 0; right: 0; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
.v8-slider__track::after {
  content: ''; position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 3px;
  left: calc(var(--min-p, 0) * 1%); width: calc((var(--max-p, 100) - var(--min-p, 0)) * 1%);
}
.v8-slider__input { position: absolute; width: 100%; appearance: none; background: transparent; pointer-events: none; }
.v8-slider__input::-webkit-slider-thumb {
  appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.3); pointer-events: auto; cursor: pointer;
}

.v8-submit {
  width: 100%; display: block; background: #fff; color: #821E4E;
  font-size: 16px; font-weight: 800; padding: 18px; border-radius: 100px;
  transition: 0.2s; margin-top: 10px; text-align: center;
}
.v8-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.v8-form-warn { text-align: center; font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 16px; }

/* 4. STORIES & FOOTER */
.v8-stories { position: relative; max-width: 800px; margin: 0 auto; }
.v8-stories-nav { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 20px; }
.v8-st-btn { width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid rgba(0,0,0,0.05); font-size: 20px; font-weight: bold; color: #111; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

.v8-stories-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 20px; }
.v8-stories-track::-webkit-scrollbar { display: none; }
.v8-story-card {
  flex: 0 0 clamp(280px, 60vw, 340px); background: #fff; border-radius: 20px;
  padding: 30px; box-shadow: 0 15px 30px rgba(75, 23, 69, 0.05); scroll-snap-align: start;
}
.v8-story-name { font-size: 18px; font-weight: 800; color: #3A1439; }
.v8-story-city { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.v8-story-card p { font-size: 14px; color: #555; line-height: 1.6; }

.v8-footer { text-align: center; padding: 60px 0; border-top: 1px solid rgba(75, 23, 69, 0.05); }
.v8-brand-foot { font-size: 18px; font-weight: 800; color: #3A1439; margin-bottom: 16px; }
.v8-footer-txt { font-size: 12px; color: #888; max-width: 500px; margin: 0 auto 24px; }
.v8-footer-ul { display: flex; justify-content: center; gap: 24px; }
.v8-footer-ul a { font-size: 13px; font-weight: 600; color: #555; transition: 0.2s; }
.v8-footer-ul a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .v8-hero { border-radius: 0 0 30px 30px; padding: 20px 0 60px; }
  .v8-deck-wrap { height: 420px; }
  .v8-form-row { grid-template-columns: 1fr; gap: 0; }
  .v8-section--dark .v8-form-card { padding: 30px 20px; border-radius: 24px; }
  .v8-btn-pill { width: auto; display: flex; margin: 0 20px; }
}
