:root {
  --bg-dark: #0f0b12; /* Deep background acting as border around frame */
  --bg-app: #1A1A1E; /* Matte dark surface inside the app */
  --text-primary: #FFFFFF;
  --text-muted: #8E8D94;
  
  --neon-pink: #FF206A;
  --neon-pink-glow: rgba(255, 32, 106, 0.4);
  --neon-green: #29D072;
  
  --font-main: 'Inter', sans-serif;
}

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

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

/* Global Burgundy Ambient Background */
.v6-global-bg {
  position: absolute; top: 0; left: 0; right: 0; height: 120vh; z-index: -1;
  background: radial-gradient(circle at 50% 20%, #461C2C 0%, #0F0B12 70%);
}

/* 1. HERO - APP FRAME */
.v6-hero {
  padding: 60px 0 80px;
  display: flex; justify-content: center;
}
.v6-app-frame {
  width: 100%; max-width: 420px;
  background: var(--bg-app);
  border-radius: 40px; border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  padding-bottom: 24px;
}

/* App Header */
.v6-app-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 24px 16px;
}
.v6-user-info { display: flex; align-items: center; gap: 12px; }
.v6-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,32,106,0.15); color: var(--neon-pink);
  display: flex; justify-content: center; align-items: center; font-size: 16px;
}
.v6-greeting { display: flex; flex-direction: column; }
.v6-greeting-sub { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.v6-greeting-main { font-size: 18px; font-weight: 700; color: #fff; }

.v6-top-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: 0.2s;
}
.v6-top-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.v6-top-btn svg { width: 18px; height: 18px; }

/* Tabs */
.v6-tabs {
  display: flex; gap: 12px; padding: 0 24px 24px;
}
.v6-tab {
  flex: 1; padding: 12px 16px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--text-muted);
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s;
}
.v6-tab--active {
  background: var(--neon-pink); color: #fff; border-color: var(--neon-pink);
  box-shadow: 0 8px 16px var(--neon-pink-glow);
}

/* Swiping Deck (Listalka) */
.v6-deck-wrapper {
  position: relative; height: 440px; padding: 0 16px; margin-bottom: 24px;
}
#lp-hero-sizer { width: 100%; height: 100%; position: relative; }
.v6-deck-inner { position: absolute; inset: 0; }
.v6-deck-link { position: absolute; inset: 0; z-index: 20; }
.v6-showcase { position: absolute; inset: 0; z-index: 1; }

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

/* Rotating logic simulating physical cards inside the frame */
.heart[data-pos="front"] { transform: translate3d(0, 0, 0) scale(1) rotate(0); opacity: 1; z-index: 5; }
.heart[data-pos="back"] { transform: translate3d(20px, 30px, 0) scale(0.95) rotate(4deg); opacity: 0.7; z-index: 4; }
.heart[data-pos="left1"] { transform: translate3d(35px, 50px, 0) scale(0.9) rotate(8deg); opacity: 0.3; 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(-5deg); opacity: 0; }

/* Deck Glass UI Overlay */
.v6-deck-ui {
  position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  pointer-events: none; z-index: 6; display: flex; align-items: flex-end;
  /* Instead of pure glass, making it match the reference: a glass pill holding content over the photo */
  padding: 16px;
}
.v6-deck-glass {
  width: 100%; background: rgba(30, 30, 35, 0.6); backdrop-filter: blur(20px);
  border-radius: 24px; padding: 18px 24px; position: relative;
  display: flex; justify-content: space-between; align-items: center;
  border: 1px solid rgba(255,255,255,0.08); pointer-events: auto;
}
.v6-deck-info { display: flex; flex-direction: column; gap: 4px; }
.v6-deck-name {
  font-size: 20px; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.v6-online-dot { width: 8px; height: 8px; background: var(--neon-green); border-radius: 50%; box-shadow: 0 0 8px var(--neon-green); }
.v6-deck-meta { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.8); }

.v6-action-btn {
  width: 44px; height: 44px; border-radius: 50%; background: var(--neon-pink);
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 8px 16px var(--neon-pink-glow);
}
.v6-action-btn svg { width: 22px; height: 22px; }

/* Bottom Dark Nav */
.v6-nav-bar {
  background: rgba(0,0,0,0.3); margin: 0 40px; border-radius: 100px;
  display: flex; justify-content: space-around; padding: 12px;
  margin-top: 10px; border: 1px solid rgba(255,255,255,0.03);
}
.v6-nav-item {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: 0.3s;
}
.v6-nav-item svg { width: 20px; height: 20px; }
.v6-nav-item--active { background: var(--neon-pink); color: #fff; box-shadow: 0 4px 12px var(--neon-pink-glow); }

/* Globals for other sections */
.v6-section { padding: 60px 0; }
.v6-head { margin-bottom: 40px; }
.v6-head--center { text-align: center; }
.v6-h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -0.5px; }
.v6-p { font-size: 15px; color: var(--text-muted); max-width: 400px; margin: 0 auto; }

/* 2. PROFILES GRID */
.v6-group { margin-bottom: 30px; }
.v6-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px;
}

/* Matching reference: profile cards with deep pink gradient overlay */
.pcard {
  position: relative; display: block; border-radius: 28px;
  overflow: hidden; aspect-ratio: 3/4; background: #2D2C32;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3); transition: transform 0.3s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(0,0,0,0.4); }
.pcard__media { position: absolute; inset: 0; z-index: 1; }
.pcard__img { width: 100%; height: 100%; object-fit: cover; }
.pcard__img--empty { opacity: 0.2; }

/* Hide redundant elements added by app.js */
.pcard__heart { display: none; }
.pcard__age { display: none; } /* Show in text overlay instead if needed */
.pcard__pin { display: none; }

.pcard__body {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 80px 16px 20px;
  /* Pure magical neon pink fade */
  background: linear-gradient(180deg, rgba(23,19,25,0) 0%, rgba(255,32,106,0.9) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.pcard__name {
  font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 2px;
  display: flex; align-items: center; gap: 6px;
}
.pcard__name::before {
  content: ''; display: block; width: 6px; height: 6px;
  background: var(--neon-green); border-radius: 50%; box-shadow: 0 0 6px var(--neon-green);
}
.pcard__meta { font-size: 12px; color: rgba(255,255,255,0.9); font-weight: 500; }
.v6-error { background: rgba(255,32,106,0.1); color: var(--neon-pink); padding: 16px; border-radius: 12px; font-size: 14px; text-align: center; }

/* 3. SEARCH FORM */
.v6-form-container {
  max-width: 600px; margin: 0 auto;
  background: var(--bg-app); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 40px; padding: 40px; box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.v6-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.v6-form-col { margin-bottom: 24px; }
.v6-label { display: block; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

.v6-select {
  width: 100%; appearance: none;
  background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
  padding: 16px 20px; font-family: inherit; font-size: 15px; font-weight: 600; color: #fff; outline: none;
}
.v6-select option { background: var(--bg-app); color: #fff; }
.v6-select:focus { border-color: var(--neon-pink); }

.v6-label-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.v6-val { font-size: 15px; font-weight: 800; color: var(--neon-pink); }

.v6-slider { position: relative; height: 28px; display: flex; align-items: center; }
.v6-slider__track { position: absolute; left: 0; right: 0; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
.v6-slider__track::after {
  content: ''; position: absolute; top: 0; bottom: 0; background: var(--neon-pink); border-radius: 3px;
  box-shadow: 0 0 10px var(--neon-pink-glow);
  left: calc(var(--min-p, 0) * 1%); width: calc((var(--max-p, 100) - var(--min-p, 0)) * 1%);
}
.v6-slider__input { position: absolute; width: 100%; appearance: none; background: transparent; outline: none; pointer-events: none; }
.v6-slider__input::-webkit-slider-thumb {
  appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; display: block; box-shadow: 0 4px 10px rgba(0,0,0,0.5); pointer-events: auto; cursor: pointer;
}

.v6-btn-primary {
  width: 100%; display: block; text-align: center;
  background: var(--neon-pink); color: #fff;
  font-size: 16px; font-weight: 800; padding: 18px; border-radius: 100px;
  box-shadow: 0 12px 24px var(--neon-pink-glow); transition: 0.2s;
}
.v6-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px var(--neon-pink-glow); }
.v6-form-warning { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 16px; }

/* 4. STORIES */
.v6-stories-wrap { position: relative; }
.v6-stories-controls { position: absolute; top: -70px; right: 0; display: flex; gap: 8px; }
.v6-st-btn {
  width: 40px; height: 40px; border-radius: 50%; background: var(--bg-app);
  border: 1px solid rgba(255,255,255,0.05); color: #fff; font-size: 18px;
  display: flex; justify-content: center; align-items: center; transition: 0.2s;
}
.v6-st-btn:hover { background: var(--neon-pink); border-color: var(--neon-pink); }

.v6-scroller {
  display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.v6-scroller::-webkit-scrollbar { display: none; }
.v6-st-card {
  flex: 0 0 clamp(280px, 50vw, 340px); scroll-snap-align: start;
  background: var(--bg-app); padding: 32px; border-radius: 32px;
  border: 1px solid rgba(255,255,255,0.03); box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.v6-st-icon { font-size: 32px; margin-bottom: 16px; }
.v6-st-who { font-size: 18px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.v6-st-text { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* 5. FOOTER */
.v6-footer { padding: 60px 0; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); }
.v6-footer-inner { text-align: center; }
.v6-brand-logo { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: 1px; margin-bottom: 20px; opacity: 0.5; }
.v6-f-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; }
.v6-f-links a { font-size: 13px; font-weight: 600; color: var(--text-muted); transition: color 0.2s; }
.v6-f-links a:hover { color: var(--neon-pink); }
.v6-f-text { font-size: 12px; color: rgba(255,255,255,0.2); max-width: 500px; margin: 0 auto; }

/* Responsive adjustments */
@media (max-width: 600px) {
  .v6-hero { padding: 40px 0 60px; }
  .v6-app-frame { border-radius: 0; border: none; padding-bottom: 10px; max-width: 100%; box-shadow: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
  .v6-deck-wrapper { height: 400px; }
  .v6-form-container { padding: 32px 20px; border-radius: 32px; }
  .v6-form-row { grid-template-columns: 1fr; gap: 0; }
  .v6-grid { grid-template-columns: repeat(2, 1fr); }
  .v6-wrap { padding: 0 16px; }
}
