
:root {
  --bg-1: #07090f;
  --bg-2: #0f1322;
  --bg-3: #131a30;
  --surface: rgba(17, 24, 39, 0.78);
  --surface-2: rgba(30, 41, 59, 0.72);
  --stroke: rgba(255,255,255,0.08);
  --text: #f8fafc;
  --muted: #94a3b8;
  --brand: #f472b6;
  --brand-2: #8b5cf6;
  --ok: #22c55e;
  --warn: #f59e0b;
}

body.theme-light {
  --bg-1: #eff6ff;
  --bg-2: #ffffff;
  --bg-3: #e2e8f0;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-2: rgba(241, 245, 249, 0.88);
  --stroke: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #475569;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(244,114,182,0.18), transparent 20%),
    radial-gradient(circle at top right, rgba(139,92,246,0.16), transparent 24%),
    linear-gradient(180deg, var(--bg-2), var(--bg-1));
  color: var(--text);
  min-height: 100vh;
}

body.rtl {
  direction: rtl;
  font-family: 'Noto Nastaliq Urdu', 'Inter', sans-serif;
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 40px rgba(0,0,0,0.22);
}

.glass-soft {
  background: var(--surface-2);
  backdrop-filter: blur(12px);
  border: 1px solid var(--stroke);
}

.brand-gradient {
  background-image: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.heading-font { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; }

.glow-ring {
  box-shadow: 0 0 0 1px rgba(244,114,182,0.2), 0 0 28px rgba(244,114,182,0.15);
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

.profile-card,
.modal-panel,
.icon-btn,
.quick-chip,
.bottom-nav-btn,
.filter-input {
  transition: all 0.24s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.profile-cover {
  aspect-ratio: 4 / 5;
  background: linear-gradient(145deg, rgba(244,114,182,0.24), rgba(139,92,246,0.16)), var(--bg-3);
  position: relative;
  overflow: hidden;
}

.profile-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2), transparent 24%), radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 18%), linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.35) 100%);
}

.avatar-badge {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.22);
  background: linear-gradient(135deg, rgba(244,114,182,0.5), rgba(139,92,246,0.45));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 1;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(34,197,94,0.12);
}

.badge-pill {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1rem;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2,6,23,0.75);
  z-index: 60;
}

.modal-panel {
  width: min(100%, 920px);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border-radius: 1.5rem;
}

.modal-open {
  display: flex;
  animation: fadeIn 0.24s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast-wrap {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
  min-width: 240px;
}

.cookie-banner,
.install-banner,
.exit-intent-card {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
}

.cookie-banner { bottom: 1rem; width: min(100% - 1.25rem, 900px); }
.install-banner { bottom: 6.5rem; width: min(100% - 1.25rem, 760px); display: none; }

.floating-social {
  position: fixed;
  right: 1rem;
  bottom: 7rem;
  z-index: 40;
}

.floating-social a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  margin-top: 0.65rem;
  color: white;
  box-shadow: 0 12px 30px rgba(0,0,0,0.22);
}

.bottom-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
}

.bottom-nav {
  position: sticky;
  bottom: 1rem;
  z-index: 35;
}

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  background-size: 200% 100%;
  animation: pulse 1.2s infinite linear;
}

@keyframes pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.swipe-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.swipe-track > article { scroll-snap-align: center; }

.fade-mask {
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.ad-slot {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(255,255,255,0.18);
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.03);
}

[data-hidden='true'] { display: none !important; }

footer a, .legal-list a { text-decoration: none; }
footer a:hover, .legal-list a:hover { text-decoration: underline; }

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background-image: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 0.18s linear;
}

.lang-flag {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  font-size: 0.85rem;
}

.empty-illustration {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(244,114,182,0.24), rgba(139,92,246,0.22));
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 2rem;
}

@media (min-width: 1024px) {
  .swipe-track { grid-auto-columns: 34%; }
}

@media (max-width: 768px) {
  .avatar-badge { width: 70px; height: 70px; font-size: 1.6rem; }
  .floating-social { display: none; }
  .cookie-banner { bottom: 5.25rem; }
}

html {
  scrollbar-gutter: stable;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(244,114,182,0.55) rgba(255,255,255,0.05);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(244,114,182,0.8), rgba(139,92,246,0.8));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.search-shell {
  position: sticky;
  top: 5.25rem;
  z-index: 20;
}

#featuredSlider,
#swipeTrack {
  scroll-snap-type: x proximity;
}

.featured-slider-shell {
  position: relative;
}

.slider-arrow {
  height: 46px;
  width: 46px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.2);
  transition: transform 0.22s ease, background 0.22s ease;
}

.slider-arrow:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255,255,255,0.12);
}

.social-launcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
}

.social-fab-toggle {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 20px 40px rgba(244,114,182,0.22), 0 12px 28px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.social-fab-toggle:hover {
  transform: translateY(-2px) scale(1.03);
}

.social-fab-menu {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.social-launcher.is-open .social-fab-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.social-launcher.is-open .social-fab-toggle {
  transform: rotate(-8deg) scale(1.02);
}

.social-fab-link {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 0.85rem;
}

.image-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,0.14), transparent 28%, transparent 60%, rgba(255,255,255,0.08));
  mix-blend-mode: screen;
}

.profile-cover-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(3,7,18,0.12) 10%, rgba(3,7,18,0.65) 100%);
}

.modal-hero-image {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  min-height: 430px;
  background: var(--bg-3);
}

.compact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.compact-row {
  display: grid;
  grid-template-columns: 72px minmax(0,1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem;
  border-radius: 1.25rem;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.compact-row:hover {
  transform: translateY(-2px);
  border-color: rgba(244,114,182,0.2);
  background: rgba(255,255,255,0.06);
}

.compact-thumb {
  width: 72px;
  height: 72px;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
}

.compact-actions {
  align-self: center;
}

.pager-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pager-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
}

.pager-btn.is-active {
  background-image: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(244,114,182,0.18);
}

.pager-btn.is-disabled,
.pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cta-panel {
  background:
    radial-gradient(circle at top left, rgba(244,114,182,0.14), transparent 35%),
    radial-gradient(circle at top right, rgba(139,92,246,0.12), transparent 36%),
    var(--surface);
}

.timeline-step {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
}

.timeline-step span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(135deg, rgba(244,114,182,0.9), rgba(139,92,246,0.9));
  color: white;
  font-weight: 700;
}

.timeline-step p {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.7;
}

.profile-modal-view {
  animation: fadeIn 0.24s ease;
}

.featured-card,
.compact-row,
.pager-btn,
.social-fab-link,
.social-fab-toggle,
.slider-arrow {
  will-change: transform;
}

@media (max-width: 1024px) {
  .search-shell {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .social-launcher {
    right: 0.9rem;
    bottom: 5.75rem;
  }

  .modal-hero-image {
    min-height: 360px;
  }

  .compact-row {
    grid-template-columns: 64px minmax(0,1fr);
  }

  .compact-actions {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

html {
  scrollbar-gutter: stable;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(244,114,182,0.55) rgba(255,255,255,0.05);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(244,114,182,0.8), rgba(139,92,246,0.8));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.search-shell {
  position: sticky;
  top: 5.25rem;
  z-index: 20;
}

#featuredSlider,
#swipeTrack {
  scroll-snap-type: x proximity;
}

.featured-slider-shell {
  position: relative;
}

.slider-arrow {
  height: 46px;
  width: 46px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.07);
  color: var(--text);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.2);
  transition: transform 0.22s ease, background 0.22s ease;
}

.slider-arrow:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255,255,255,0.12);
}

.social-launcher {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 55;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
}

.social-fab-toggle {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 20px 40px rgba(244,114,182,0.22), 0 12px 28px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.18);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.social-fab-toggle:hover {
  transform: translateY(-2px) scale(1.03);
}

.social-fab-menu {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.social-launcher.is-open .social-fab-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.social-launcher.is-open .social-fab-toggle {
  transform: rotate(-8deg) scale(1.02);
}

.social-fab-link {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  box-shadow: 0 14px 28px rgba(0,0,0,0.22);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-size: 0.85rem;
}

.image-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255,255,255,0.14), transparent 28%, transparent 60%, rgba(255,255,255,0.08));
  mix-blend-mode: screen;
}

.profile-cover-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(3,7,18,0.12) 10%, rgba(3,7,18,0.65) 100%);
}

.modal-hero-image {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  min-height: 430px;
  background: var(--bg-3);
}

.compact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.compact-row {
  display: grid;
  grid-template-columns: 72px minmax(0,1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.95rem;
  border-radius: 1.25rem;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.compact-row:hover {
  transform: translateY(-2px);
  border-color: rgba(244,114,182,0.2);
  background: rgba(255,255,255,0.06);
}

.compact-thumb {
  width: 72px;
  height: 72px;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
}

.compact-actions {
  align-self: center;
}

.pager-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pager-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
}

.pager-btn.is-active {
  background-image: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(244,114,182,0.18);
}

.pager-btn.is-disabled,
.pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cta-panel {
  background:
    radial-gradient(circle at top left, rgba(244,114,182,0.14), transparent 35%),
    radial-gradient(circle at top right, rgba(139,92,246,0.12), transparent 36%),
    var(--surface);
}

.timeline-step {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
}

.timeline-step span {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(135deg, rgba(244,114,182,0.9), rgba(139,92,246,0.9));
  color: white;
  font-weight: 700;
}

.timeline-step p {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.7;
}

.profile-modal-view {
  animation: fadeIn 0.24s ease;
}

.featured-card,
.compact-row,
.pager-btn,
.social-fab-link,
.social-fab-toggle,
.slider-arrow {
  will-change: transform;
}

@media (max-width: 1024px) {
  .search-shell {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .social-launcher {
    right: 0.9rem;
    bottom: 5.75rem;
  }

  .modal-hero-image {
    min-height: 360px;
  }

  .compact-row {
    grid-template-columns: 64px minmax(0,1fr);
  }

  .compact-actions {
    grid-column: 1 / -1;
    justify-self: end;
  }
}


/* ===== v3 UI polish overrides ===== */
.bottom-nav {
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
}
.bottom-nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.45), inset 0 1px 0 rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(15,23,42,0.88), rgba(2,6,23,0.88));
}
.bottom-nav-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 58px;
  border-radius: 20px;
  color: rgba(226,232,240,0.9);
  transition: transform .24s ease, background-color .24s ease, color .24s ease, box-shadow .24s ease;
}
.bottom-nav-btn i { font-size: 18px; }
.bottom-nav-btn span { font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.bottom-nav-btn.is-active,
.bottom-nav-btn:hover {
  background: linear-gradient(135deg, rgba(236,72,153,0.24), rgba(168,85,247,0.24));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 20px rgba(236,72,153,.16);
  transform: translateY(-1px);
}

.profile-discover {
  position: relative;
  min-height: 330px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.28);
}
.profile-discover-cover { position: relative; min-height: 330px; }
.profile-card-meta {
  background: linear-gradient(180deg, transparent, rgba(2,6,23,.35) 18%, rgba(2,6,23,.84));
}
.profile-action-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.overlay-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,.58);
  border: 1px solid rgba(255,255,255,.14);
  color: white;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(2,6,23,.28);
  transition: transform .24s ease, background-color .24s ease, box-shadow .24s ease;
}
.overlay-icon-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(30,41,59,.82);
  box-shadow: 0 18px 40px rgba(2,6,23,.38);
}
.overlay-icon-btn.is-favorite,
.overlay-icon-btn.text-pink-300 {
  background: rgba(236,72,153,.18);
}
.profile-mini-badge {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,.55);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 10px 24px rgba(2,6,23,.22);
}
.profile-mini-badge.success { color: #86efac; }
.profile-mini-badge.accent { color: #f5d0fe; }
.discover-name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.swipe-stack-shell {
  position: relative;
  min-height: 470px;
}
.swipe-track {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}
.swipe-deck-card {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 70px rgba(2,6,23,.42);
  touch-action: pan-y;
  user-select: none;
  transition: transform .28s ease, opacity .28s ease, filter .28s ease;
  background: #0f172a;
}
.swipe-deck-card.is-top { z-index: 4; }
.swipe-deck-card.is-next {
  z-index: 3;
  transform: translateY(16px) scale(.96);
  opacity: .82;
  filter: saturate(.92);
}
.swipe-deck-card.is-third {
  z-index: 2;
  transform: translateY(30px) scale(.92);
  opacity: .56;
  filter: saturate(.8);
}
.swipe-deck-card.is-dragging { transition: none; }
.swipe-deck-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swipe-deck-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,6,23,.08), rgba(2,6,23,.18) 22%, rgba(2,6,23,.74));
}
.swipe-card-top,
.swipe-card-footer {
  position: absolute;
  left: 16px;
  right: 16px;
  z-index: 1;
}
.swipe-card-top {
  top: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.swipe-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swipe-card-footer {
  bottom: 16px;
  display: grid;
  gap: 14px;
}
.swipe-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(15,23,42,.45);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
}
.swipe-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.swipe-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 0;
  transition: transform .2s ease, background-color .2s ease, width .2s ease;
}
.swipe-dot.is-active {
  width: 28px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.modal-primary-cta {
  letter-spacing: .01em;
  box-shadow: 0 18px 40px rgba(236,72,153,.22);
}
.modal-ad-shell {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.signup-steps-grid {
  display: grid;
  gap: 14px;
}
.signup-step-card {
  position: relative;
  border-radius: 24px;
  padding: 18px 18px 18px 58px;
  background: linear-gradient(180deg, rgba(15,23,42,.72), rgba(15,23,42,.45));
  border: 1px solid rgba(255,255,255,.08);
  min-height: 84px;
  display: flex;
  align-items: center;
}
.signup-step-card h3 {
  font-weight: 600;
  line-height: 1.55;
  color: rgba(241,245,249,.96);
}
.signup-step-badge {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(236,72,153,.96), rgba(168,85,247,.96));
  color: white;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(236,72,153,.22);
}

@media (max-width: 767px) {
  .profile-discover,
  .profile-discover-cover {
    min-height: 292px;
  }
  .social-launcher {
    right: 16px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 104px);
  }
  .overlay-icon-btn {
    width: 40px;
    height: 40px;
  }
}

/* v3 premium profile-card redesign */
.profile-discover {
  position: relative;
  min-height: 352px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(180deg, rgba(15,23,42,0.7), rgba(15,23,42,0.88));
  box-shadow: 0 26px 70px rgba(2,6,23,0.34);
  isolation: isolate;
  animation: cardReveal .46s ease both;
  animation-delay: calc(var(--card-delay, 0) * 48ms);
}
.profile-discover::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.02), rgba(244,114,182,0.18));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .78;
}
.profile-discover::after {
  content: '';
  position: absolute;
  inset: auto -25% -35% auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244,114,182,0.22), transparent 68%);
  filter: blur(8px);
  opacity: .65;
  pointer-events: none;
}
.profile-discover:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 34px 90px rgba(2,6,23,0.46);
}
.profile-discover.is-featured {
  box-shadow: 0 30px 84px rgba(236,72,153,0.18), 0 26px 70px rgba(2,6,23,0.34);
}
.profile-discover.accent-pink::after { background: radial-gradient(circle, rgba(244,114,182,0.26), transparent 68%); }
.profile-discover.accent-violet::after { background: radial-gradient(circle, rgba(139,92,246,0.26), transparent 68%); }
.profile-discover.accent-cyan::after { background: radial-gradient(circle, rgba(34,211,238,0.22), transparent 68%); }

.profile-discover-cover {
  position: relative;
  min-height: 352px;
  overflow: hidden;
}
.profile-card-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,6,23,0.12) 0%, rgba(2,6,23,0.02) 26%, rgba(2,6,23,0.06) 48%, rgba(2,6,23,0.8) 100%),
    radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(244,114,182,0.18), transparent 32%);
}
.profile-card-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(32px);
  opacity: .42;
  pointer-events: none;
}
.profile-card-orb-a {
  width: 108px;
  height: 108px;
  top: -18px;
  right: -12px;
  background: rgba(244,114,182,0.24);
}
.profile-card-orb-b {
  width: 86px;
  height: 86px;
  bottom: 58px;
  left: -18px;
  background: rgba(139,92,246,0.18);
}
.profile-pill-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 90px);
}
.discover-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .72rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(9,14,28,0.5);
  color: rgba(248,250,252,0.96);
  box-shadow: 0 12px 28px rgba(2,6,23,0.28);
  backdrop-filter: blur(14px);
}
.discover-hero-pill.hot {
  background: linear-gradient(135deg, rgba(244,114,182,0.3), rgba(168,85,247,0.24));
}
.discover-hero-pill.verified {
  color: #d1fae5;
}
.discover-hero-pill.new {
  color: #fef3c7;
}
.profile-icon-dock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(7,10,18,0.44);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(2,6,23,0.32);
}
.overlay-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 24px rgba(2,6,23,0.24);
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.overlay-icon-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 16px 30px rgba(2,6,23,0.34);
}
.overlay-icon-btn.is-favorite,
.overlay-icon-btn.text-pink-300 {
  background: linear-gradient(135deg, rgba(244,114,182,0.28), rgba(219,39,119,0.2));
  border-color: rgba(244,114,182,0.32);
}
.profile-status-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.floating-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  color: rgba(248,250,252,0.94);
  background: rgba(7,10,18,0.42);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(2,6,23,0.24);
}
.floating-stat-pill.is-live {
  color: #d1fae5;
  border-color: rgba(34,197,94,0.24);
}
.discover-info-shell {
  position: relative;
  padding: 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(7,10,18,0.24), rgba(7,10,18,0.72));
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 42px rgba(2,6,23,0.32);
  transform: translateY(0);
  transition: transform .24s ease, background-color .24s ease, border-color .24s ease;
}
.profile-discover:hover .discover-info-shell {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(7,10,18,0.28), rgba(7,10,18,0.8));
  border-color: rgba(255,255,255,0.16);
}
.discover-name {
  font-size: 1.14rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 3px 20px rgba(0,0,0,0.28);
}
.discover-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: rgba(226,232,240,0.88);
  font-size: .88rem;
}
.profile-emoji-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: .95rem;
}
.discover-side-score {
  min-width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(244,114,182,0.22), rgba(139,92,246,0.18));
  border: 1px solid rgba(255,255,255,0.14);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  color: rgba(255,255,255,0.92);
  box-shadow: 0 16px 34px rgba(2,6,23,0.24);
}
.discover-side-score.is-live {
  background: linear-gradient(135deg, rgba(16,185,129,0.24), rgba(14,165,233,0.18));
}
.discover-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.discover-micro-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(248,250,252,0.88);
  font-size: .73rem;
  line-height: 1;
  white-space: nowrap;
}
.discover-micro-pill i {
  font-size: .7rem;
  color: rgba(251,191,36,0.95);
}
.online-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 7px rgba(34,197,94,0.12), 0 0 24px rgba(34,197,94,0.35);
  animation: softPulse 2s infinite;
}
.profile-card-meta { background: none; }

@keyframes softPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 7px rgba(34,197,94,0.12), 0 0 24px rgba(34,197,94,0.25); }
  50% { transform: scale(1.08); box-shadow: 0 0 0 9px rgba(34,197,94,0.08), 0 0 28px rgba(34,197,94,0.4); }
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
  .profile-discover,
  .profile-discover-cover {
    min-height: 315px;
  }
  .profile-icon-dock {
    gap: 6px;
    padding: 5px;
  }
  .overlay-icon-btn {
    width: 36px;
    height: 36px;
  }
  .discover-hero-pill,
  .floating-stat-pill {
    padding: 7px 10px;
    font-size: .68rem;
  }
  .discover-info-shell {
    padding: 12px;
    border-radius: 22px;
  }
  .discover-name {
    font-size: 1rem;
  }
  .discover-side-score {
    min-width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: .64rem;
  }
  .discover-location {
    font-size: .8rem;
  }
  .discover-tag-row {
    gap: 6px;
  }
  .discover-micro-pill {
    font-size: .68rem;
    padding: 7px 10px;
  }
}
