:root {
  --bg-outer: #FFECF2; /* Light dusty pink */
  --bg-app: #100C12; /* Very deep purple/black */
  --accent-pink: #FF3366;
  --accent-glow: rgba(255, 51, 102, 0.4);
  --text-main: #FFFFFF;
  --text-muted: #8A818F;
  --glass: rgba(255, 255, 255, 0.1);
  
  --font-main: 'Plus Jakarta Sans', sans-serif;
}

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

.v7-wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* Light Pink Grid Pattern outside the app */
.v7-global-bg {
  position: fixed; inset: 0; z-index: -1;
  background-color: var(--bg-outer);
  background-image: linear-gradient(rgba(255,51,102, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,51,102, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* App Frame */
.v7-hero { padding: 40px 0; display: flex; justify-content: center; }
.v7-app {
  width: 100%; max-width: 100%;
  background: var(--bg-app);
  border-radius: 32px;
  position: relative; overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.15);
  padding-bottom: 24px; border: 1px solid rgba(255,255,255,0.05);
}

/* Topographic overlay inside app */
.v7-app-bg {
  position: absolute; inset: 0; opacity: 0.15; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at top right, var(--accent-pink) 0%, transparent 60%);
}

.v7-app-head {
  position: relative; z-index: 10;
  display: flex; justify-content: center; align-items: center;
  padding: 30px 24px 20px; margin: 0 auto; max-width: 420px;
}
.v7-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.v7-logo svg { width: 22px; height: 22px; color: var(--accent-pink); fill: transparent; }
.v7-head-actions { display: flex; gap: 12px; }
.v7-icon-btn { color: var(--text-muted); transition: color 0.2s; }
.v7-icon-btn svg { width: 22px; height: 22px; }
.v7-icon-btn:hover { color: #fff; }

/* Stories Visual Strip */
.v7-stories-strip {
  position: relative; z-index: 10;
  display: flex; justify-content: center; gap: 16px; padding: 0 24px 20px; overflow-x: auto;
  scrollbar-width: none;
}
.v7-stories-strip::-webkit-scrollbar { display: none; }
.v7-story-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.v7-story-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  border: 2px solid transparent; background-size: cover; background-position: center;
}
/* Mock gradient border for active stories */
.v7-story-item:not(:first-child) .v7-story-avatar {
  border-color: var(--accent-pink); padding: 2px; background-clip: content-box;
}
.v7-story-add {
  background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.2);
  display: flex; justify-content: center; align-items: center; color: var(--text-muted);
}
.v7-story-name { font-size: 11px; font-weight: 600; color: var(--text-muted); }

/* Global Section titles inside App */
.v7-section-title {
  position: relative; z-index: 10; display: flex; justify-content: space-between; align-items: flex-end; padding: 10px 16px; margin: 0 auto; max-width: 420px;
}
.v7-h2 { font-size: 20px; font-weight: 800; }
.v7-view-all { font-size: 12px; font-weight: 700; color: var(--text-muted); }

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

.heart {
  position: absolute; inset: 0; border-radius: 32px; overflow: hidden;
  background: #111; will-change: transform, opacity;
  transition: transform 0.6s cubic-bezier(0.3, 0.8, 0.2, 1), opacity 0.6s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}
.heart__img { width: 100%; height: 100%; object-fit: cover; }
.heart--empty { opacity: 0.1; }

/* Slanted cards like in Tinder/DreamDate */
.heart[data-pos="front"] { transform: scale(1) rotate(0); opacity: 1; z-index: 5; }
.heart[data-pos="back"] { transform: translate3d(15px, 25px, 0) scale(0.95) rotate(3deg); opacity: 0.8; z-index: 4; }
.heart[data-pos="left1"] { transform: translate3d(-30px, 45px, 0) scale(0.9) rotate(-5deg); opacity: 0.4; z-index: 3; }
.heart[data-pos="left2"], .heart[data-pos="left3"] { opacity: 0; }
.heart[data-pos="next"] { transform: translate3d(-40px, -20px, 0) scale(0.9) rotate(-10deg); opacity: 0; }

/* Deck UI Overlay */
.v7-card-ui {
  position: absolute; inset: 0; pointer-events: none; z-index: 6;
  display: flex; flex-direction: column; justify-content: space-between;
}
.v7-card-top { padding: 20px; }
.v7-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(10px);
  padding: 6px 12px; border-radius: 20px; font-size: 11px; font-weight: 700;
}
.v7-dot { width: 8px; height: 8px; background: #00FF66; border-radius: 50%; box-shadow: 0 0 8px #00FF66; }

/* Soft Frosted Glass Bottom Overlay */
.v7-card-glass {
  padding: 80px 20px 24px;
  background: linear-gradient(180deg, rgba(255,51,102,0) 0%, rgba(255,51,102,0.8) 100%);
  border-radius: 0 0 32px 32px;
}
.v7-tags { display: flex; gap: 8px; margin-bottom: 12px; }
.v7-tag {
  background: rgba(255,255,255,0.2); backdrop-filter: blur(5px);
  font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
}
.v7-card-name { font-size: 24px; font-weight: 800; margin-bottom: 4px; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.v7-card-desc { font-size: 12px; font-weight: 500; opacity: 0.9; text-shadow: 0 2px 5px rgba(0,0,0,0.2); }

/* Floating Actions next to deck */
.v7-deck-actions {
  position: relative; z-index: 10; display: flex; justify-content: center; gap: 20px; margin-top: -30px;
}
.v7-action-btn {
  width: 60px; height: 60px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: center; align-items: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2); transition: transform 0.2s; pointer-events: auto;
}
.v7-action-btn:hover { transform: translateY(-3px); }
.v7-action-btn--gray { background: #1A151A; color: var(--text-muted); }
.v7-action-btn--gray svg { width: 24px; height: 24px; color: #fff; }
.v7-action-btn--glow { background: var(--accent-pink); width: 70px; height: 70px; margin-top: -10px; box-shadow: 0 15px 30px var(--accent-glow); color: #fff;}
.v7-action-btn--glow svg { width: 34px; height: 34px; }
.v7-action-btn--dark { background: #1A151A; color: var(--text-muted); }
.v7-action-btn--dark svg { width: 26px; height: 26px; }

/* Bottom Pill Nav */
.v7-pill-nav {
  margin: 30px auto 0; max-width: 400px;
  background: #1C1820; border-radius: 100px;
  display: flex; justify-content: space-around; padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.02);
}
.v7-nav-item { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #666; }
.v7-nav-item svg { width: 22px; height: 22px; }
.v7-nav-item--active { background: var(--accent-pink); color: #fff; box-shadow: 0 8px 16px var(--accent-glow); }

/* Globals for inner sections */
.v7-main {
  position: relative; z-index: 10; margin-top: 40px; border-top-left-radius: 40px; border-top-right-radius: 40px;
}
.v7-section { padding: 60px 0; }
.v7-section-head { text-align: center; margin-bottom: 40px; }
.v7-title { font-size: 28px; font-weight: 800; color: #222; margin-bottom: 8px; }
.v7-p { font-size: 15px; color: #666; max-width: 400px; margin: 0 auto; }
.v7-subtitle { font-size: 16px; font-weight: 700; color: #333; margin-bottom: 20px; }

/* 2. PCARD Styling to match */
/* For the external grids we inverse the color since they are drawn out of the dark container */
.v7-section { background: transparent; }
.v7-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }

.pcard {
  position: relative; display: block; border-radius: 24px; padding: 8px;
  background: #fff; box-shadow: 0 10px 20px rgba(255,51,102,0.1); transition: transform 0.3s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(255,51,102,0.15); }
.pcard__media { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #ffe8ef; position: relative; }
.pcard__img { width: 100%; height: 100%; object-fit: cover; }
.pcard__img--empty { opacity: 0.1; }

.pcard__heart { position: absolute; bottom: 8px; right: 8px; width: 32px; height: 32px; background: rgba(0,0,0,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.pcard__heart svg { width: 16px; height: 16px; fill: #fff; }
.pcard__age { display: none; }
.pcard__pin { display: none; }

.pcard__body { padding: 12px 4px 4px; }
.pcard__name { font-size: 15px; font-weight: 800; color: #111; display: flex; align-items: center; gap: 6px; }
.pcard__name::before { content: ''; display: block; width: 6px; height: 6px; background: #00FF66; border-radius: 50%; box-shadow: 0 0 4px #00FF66; }
.pcard__meta { font-size: 12px; color: #888; font-weight: 500; }
.v7-error { color: var(--accent-pink); font-size: 14px; font-weight: bold; background: rgba(255,51,102,0.1); padding: 16px; border-radius: 12px; text-align: center; }

/* 3. Search Form Outside App */
.v7-form-wrap {
  max-width: 500px; margin: 0 auto; background: #fff; padding: 40px; border-radius: 40px;
  box-shadow: 0 20px 40px rgba(255,51,102,0.05); border: 2px solid #fff;
}
.v7-form-wrap { background: #fff; }
.v7-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.v7-field { margin-bottom: 20px; }
.v7-label { display: block; font-size: 12px; font-weight: 800; color: #9ca3af; text-transform: uppercase; margin-bottom: 8px; }

.v7-select {
  width: 100%; border: 2px solid #f3f4f6; border-radius: 16px; background: #fafafa;
  padding: 16px 20px; font-family: inherit; font-size: 15px; font-weight: 700; color: #111; outline: none; transition: 0.2s;
}
.v7-select:focus { border-color: var(--accent-pink); }
.v7-field-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.v7-val { font-size: 16px; font-weight: 800; color: var(--accent-pink); }

.v7-slider { position: relative; height: 24px; display: flex; align-items: center; }
.v7-slider__track { position: absolute; left: 0; right: 0; height: 6px; background: #f3f4f6; border-radius: 3px; }
.v7-slider__track::after {
  content: ''; position: absolute; top: 0; bottom: 0; background: var(--accent-pink); border-radius: 3px;
  left: calc(var(--min-p, 0) * 1%); width: calc((var(--max-p, 100) - var(--min-p, 0)) * 1%);
}
.v7-slider__input { position: absolute; width: 100%; appearance: none; background: transparent; pointer-events: none; }
.v7-slider__input::-webkit-slider-thumb {
  appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent-pink); box-shadow: 0 4px 8px rgba(255,51,102,0.3); pointer-events: auto; cursor: pointer;
}

.v7-submit {
  width: 100%; display: block; background: var(--accent-pink); color: #fff;
  font-size: 15px; font-weight: 800; padding: 18px; border-radius: 100px;
  box-shadow: 0 10px 20px rgba(255,51,102,0.3); transition: 0.2s; margin-top: 24px; text-align: center;
}
.v7-submit:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(255,51,102,0.4); }
.v7-warning { text-align: center; font-size: 12px; color: #888; margin-top: 16px; }

/* Features & Stories */
.v7-features { display: flex; flex-direction: column; gap: 20px; max-width: 500px; margin: 0 auto 60px; }
.v7-feat { color: inherit; text-decoration: none; cursor: pointer; display: flex; align-items: center; gap: 16px; background: #fff; padding: 24px; border-radius: 24px; box-shadow: 0 10px 20px rgba(255,51,102,0.05); }
.v7-feat-img { font-size: 32px; }
.v7-feat-text { font-size: 14px; font-weight: 600; color: #555; }

.v7-stories-slider {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 20px; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.v7-stories-slider::-webkit-scrollbar { display: none; }
.v7-st { flex: 0 0 clamp(280px, 60vw, 320px); background: #fff; border-radius: 32px; padding: 32px; box-shadow: 0 15px 30px rgba(0,0,0,0.03); scroll-snap-align: start; }
.v7-st-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.v7-st-head strong { font-size: 18px; font-weight: 800; color: #111; }
.v7-st-head span { font-size: 12px; font-weight: 700; color: var(--accent-pink); background: rgba(255,51,102,0.1); padding: 4px 10px; border-radius: 12px; }
.v7-st p { font-size: 14px; color: #666; line-height: 1.6; }

.v7-story-controls { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.v7-circle-btn { width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 6px 12px rgba(0,0,0,0.05); display: flex; justify-content: center; align-items: center; font-size: 20px; font-weight: bold; color: #111; }
.v7-circle-btn:hover { background: var(--accent-pink); color: #fff; }

.v7-footer { text-align: center; padding: 60px 0;  }
.v7-brand { font-size: 16px; font-weight: 800; color: #333; margin-bottom: 12px; }
.v7-f-text { font-size: 12px; color: #888; margin-bottom: 24px; }
.v7-links { display: flex; justify-content: center; gap: 24px; }
.v7-links a { font-size: 13px; font-weight: 700; color: #666; }
.v7-links a:hover { color: var(--accent-pink); }

@media (max-width: 600px) {
  .v7-hero { padding: 0 0 40px; }
  .v7-app { border-radius: 0 0 40px 40px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
  .v7-deck-wrap { height: 440px; }
  .v7-form-grid { grid-template-columns: 1fr; gap: 0; }
  .v7-grid { grid-template-columns: repeat(2, 1fr); }
  .v7-wrap { padding: 0 20px; }
}
