:root {
  --bg-color: #F4F7F9;
  --bg-card: #FFFFFF;
  --text-dark: #1A1D29;
  --text-muted: #98A1B3;
  --primary: #946CFE; /* Neon purple */
  --grad-main: linear-gradient(135deg, #7F65FF 0%, #E364FF 100%);
  --grad-text: linear-gradient(90deg, #4FA3FF, #A364FF, #FF66B1);
  
  --font-main: 'Nunito', sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.4);
}

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

/* 1. SPLASH SCREEN (Left Screen: Slanted Grid) */
.v11-splash { position: relative; height: 100vh; min-height: 650px; display: flex; flex-direction: column; overflow: hidden; background: #fff; }

.v11-collage-wrap { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.v11-slanted-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  width: 140vw; max-width: 800px; transform: rotate(-15deg) translateY(-20px);
}
.v11-collage-item {
  width: 100%; aspect-ratio: 0.7; border-radius: 24px;
  background-color: #F0F4F8; box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  background-size: cover; background-position: center; border: 4px solid #fff;
  opacity: 0; animation: v11FadeInTop 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.v11-collage-item:nth-child(even) { transform: translateY(40px); }

/* Falbacks if no images */
.v11-gradient-1 { background: linear-gradient(135deg, #FF66A3, #A562FF); }
.v11-gradient-2 { background: linear-gradient(135deg, #7F65FF, #4D8EFF); }
.v11-gradient-3 { background: linear-gradient(135deg, #FFD166, #FF66A3); }

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

.v11-splash-content { padding: 40px 30px 60px; text-align: center; position: relative; z-index: 10; background: linear-gradient(0deg, #fff 70%, rgba(255,255,255,0)); }
.v11-h1 { font-size: 32px; font-weight: 900; line-height: 1.2; margin-bottom: 12px; color: var(--text-dark); }
.v11-gradient-text { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.v11-splash-p { font-size: 15px; color: var(--text-muted); font-weight: 600; margin-bottom: 30px; max-width: 300px; margin-inline: auto; }

.v11-go-btn { display: inline-flex; justify-content: center; align-items: center; }
.v11-go-btn-inner {
  width: 60px; height: 60px; border-radius: 50%; background: var(--grad-main); color: #fff;
  display: flex; justify-content: center; align-items: center; box-shadow: 0 10px 20px rgba(165, 98, 255, 0.4);
  animation: pulse 2s infinite;
}
.v11-go-btn-inner svg { width: 28px; height: 28px; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(165, 98, 255, 0.4); } 70% { box-shadow: 0 0 0 15px rgba(165, 98, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(165, 98, 255, 0); } }


/* 2. MAIN APP SECTION */
.v11-main { padding: 40px 0; }
.v11-wrap { max-width: 480px; margin: 0 auto; }
.v11-app-frame { border-radius: 40px; padding: 20px 20px 40px; }

/* Top Nav */
.v11-app-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.v11-nav-btn { width: 44px; height: 44px; background: #fff; border-radius: 14px; display: flex; justify-content: center; align-items: center; color: var(--primary); box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.v11-nav-btn svg { width: 22px; height: 22px; }
.v11-nav-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: flex; justify-content: center; align-items: center; color: #fff; background: var(--grad-text); box-shadow: 0 5px 15px rgba(165, 98, 255, 0.3); }
.v11-nav-avatar svg { width: 24px; height: 24px; }

/* Fake Search Bar */
.v11-search-bar-fake {
  display: flex; align-items: center; gap: 12px; background: #fff; padding: 16px 20px;
  border-radius: 20px; margin-bottom: 30px; box-shadow: 0 10px 25px rgba(0,0,0,0.03); color: var(--text-muted); font-size: 14px; font-weight: 600;
}
.v11-search-bar-fake svg { width: 20px; height: 20px; color: #C0C5D2; }
.v11-search-icon-right { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: #F4F7F9; display: flex; justify-content: center; align-items: center; color: var(--primary); }
.v11-search-icon-right svg { width: 16px; height: 16px; }

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

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

.heart[data-pos="front"] { transform: translate3d(0, 0, 0) scale(1) rotate(0); opacity: 1; z-index: 5; }
.heart[data-pos="back"] { transform: translate3d(15px, 20px, 0) scale(0.9) rotate(8deg); opacity: 0.8; z-index: 4; }
.heart[data-pos="left1"] { transform: translate3d(-30px, 15px, 0) scale(0.9) rotate(-10deg); opacity: 0.5; z-index: 3; display: none; }
.heart[data-pos="next"] { transform: translate3d(50px, -20px, 0) scale(0.9) rotate(15deg); opacity: 0; }

/* Deck Glassmorphism Overlay (Matching Middle Screen) */
.v11-card-ui { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.v11-match-tag {
  position: absolute; top: 20px; left: -10px; background: rgba(255,255,255,0.25); backdrop-filter: blur(8px);
  color: #fff; font-size: 13px; font-weight: 800; padding: 6px 14px; border-radius: 0 12px 12px 0; border: 1px solid rgba(255,255,255,0.4);
}
.v11-glass-info {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 16px 20px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.3);
  color: #fff; box-shadow: 0 10px 20px rgba(0,0,0,0.1); text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.v11-gi-top { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.v11-gi-bot { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; opacity: 0.9; }

/* Bottom Action Buttons */
.v11-deck-actions { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; }
.v11-action {
  width: 56px; height: 56px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05); transition: 0.2s; background: #fff;
}
.v11-action:hover { transform: scale(1.05); }
.v11-action--x { color: var(--primary); }
.v11-action--x svg { width: 22px; height: 22px; }
.v11-action--heart { background: var(--grad-main); color: #fff; box-shadow: 0 10px 20px rgba(165, 98, 255, 0.4); }
.v11-action--heart svg { width: 26px; height: 26px; }

/* 3. PROFILES GRID (Right Screen Style) */
.v11-section { margin-bottom: 60px; }
.v11-sect-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.v11-back-btn, .v11-filter-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #EBEEF4; display: flex; justify-content: center; align-items: center; color: var(--text-dark); background: #fff; }
.v11-filter-btn svg { width: 18px; height: 18px; }

.v11-h3 { font-size: 20px; font-weight: 800; }
.v11-h4 { font-size: 18px; font-weight: 800; margin-bottom: 20px; }

.v11-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.pcard {
  position: relative; border-radius: 20px; overflow: hidden; background: #fff;
  aspect-ratio: 3/4; box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}
.pcard:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.08); transform: translateY(-3px); }
.pcard__media { position: absolute; inset: 0; }
.pcard__img { width: 100%; height: 100%; object-fit: cover; }

/* Frosted glass block inside small cards */
.pcard__body {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 12px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.3); color: #fff;
  display: flex; flex-direction: column; text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.pcard__name { font-size: 13px; font-weight: 800; margin-bottom: 2px; padding-right: 30px; }
.pcard__meta { font-size: 10px; font-weight: 600; opacity: 0.9; }

/* Age badge in the grid */
.pcard__age { 
  display: flex !important; position: absolute; bottom: 12px; right: 12px; 
  background: var(--primary); /* Lilac/Purple neon background */
  color: #fff; font-size: 10px; font-weight: 800; 
  padding: 4px 8px; border-radius: 12px; 
  box-shadow: 0 4px 10px rgba(165, 98, 255, 0.4); border: 1px solid rgba(255,255,255,0.3);
  z-index: 10;
}
.pcard__heart, .pcard__pin { display: none; }
.v11-error { color: var(--primary); font-size: 14px; text-align: center; }

/* 4. SEARCH FORM */
.v11-form-card { background: #fff; border-radius: 30px; padding: 30px 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid #EBEEF4; }
.v11-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.v11-lbl { display: block; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.v11-select-wrap { position: relative; }
.v11-select-wrap::after {
  content: '▼'; position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 10px; color: var(--primary); pointer-events: none;
}
.v11-select {
  width: 100%; appearance: none; border: 1px solid #EBEEF4; border-radius: 16px; background: #FAFCFE;
  padding: 14px 16px; font-family: inherit; font-size: 15px; font-weight: 700; color: var(--text-dark); outline: none; transition: 0.2s;
}
.v11-select:focus { border-color: var(--primary); }

.v11-age-txt { margin-bottom: 12px; }
.v11-age-val { font-size: 15px; font-weight: 800; color: var(--text-dark); margin-top: 4px; }

.v11-slider { position: relative; height: 24px; display: flex; align-items: center; margin-top: 10px; }
.v11-slider__track { position: absolute; left: 0; right: 0; height: 6px; background: #EBEEF4; border-radius: 3px; }
.v11-slider__track::after {
  content: ''; position: absolute; top: 0; bottom: 0; background: var(--grad-main); border-radius: 3px;
  left: calc(var(--min-p, 0) * 1%); width: calc((var(--max-p, 100) - var(--min-p, 0)) * 1%);
}
.v11-slider__input { position: absolute; width: 100%; appearance: none; background: transparent; pointer-events: none; }
.v11-slider__input::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 4px solid var(--primary); box-shadow: 0 4px 10px rgba(165, 98, 255, 0.3); pointer-events: auto; cursor: pointer;
}

.v11-btn-submit {
  width: 100%; display: block; background: var(--grad-main); color: #fff;
  font-size: 16px; font-weight: 800; padding: 18px; border-radius: 100px;
  transition: 0.2s; margin-top: 30px; box-shadow: 0 10px 20px rgba(165, 98, 255, 0.3);
}
.v11-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(165, 98, 255, 0.4); }
.v11-warn { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 16px; }

/* 5. TEXTS */
.v11-stories-list { display: flex; flex-direction: column; gap: 16px; }
.v11-story { display: flex; gap: 16px; align-items: center; background: #fff; padding: 20px; border-radius: 24px; box-shadow: 0 5px 15px rgba(0,0,0,0.03); }
.v11-story-img { width: 56px; height: 56px; border-radius: 18px; display: flex; justify-content: center; align-items: center; font-size: 24px; flex-shrink: 0; }
.v11-story-txt strong { display: block; font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.v11-story-txt p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

.v11-footer { text-align: center; padding: 40px 0; margin-top: 40px; }
.v11-f-logo { font-size: 18px; font-weight: 800; color: var(--text-muted); margin-bottom: 12px; opacity: 0.6; }
.v11-f-links { display: flex; justify-content: center; gap: 24px; }
.v11-f-links a { font-size: 13px; font-weight: 700; color: var(--text-muted); }

@media (max-width: 600px) {
  .v11-splash-content { padding: 30px 20px 40px; }
  .v11-h1 { font-size: 36px; }
  .v11-deck-wrap { height: 400px; }
}
