:root {
  --bg: #0a0909;
  --bg-elev: #121011;
  --text: #f7f3f2;
  --muted: #9b9194;
  --faint: #6f676a;
  --line: rgba(255, 255, 255, 0.07);
  --accent: #f43f5e;
  --accent-2: #fb7185;
  --accent-deep: #e11d48;
  --online: #4ade80;
  --verify: #1d8fff;
  --page-w: 420px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(14px, 4vw, 20px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  color: var(--text);
  font-family: Outfit, sans-serif;
  background: #050405;
  -webkit-font-smoothing: antialiased;
  display: grid;
  place-items: start center;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% -8%, rgba(244, 63, 94, 0.22), transparent 58%),
    radial-gradient(ellipse 50% 35% at 15% 90%, rgba(190, 18, 60, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 30% at 90% 70%, rgba(56, 189, 248, 0.05), transparent 45%),
    #050405;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100%, var(--page-w));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 20%),
    var(--bg);
  padding-bottom: calc(76px + var(--safe-b));
}

/* ——— Banner (blank canvas) ——— */
.banner {
  position: relative;
  flex: 0 0 auto;
  height: clamp(150px, 28vw, 200px);
  overflow: hidden;
}

.banner__slot {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(244, 63, 94, 0.18), transparent 42%),
    radial-gradient(circle at 78% 30%, rgba(255, 255, 255, 0.06), transparent 35%),
    linear-gradient(160deg, #1c1216 0%, #0c0b0c 55%, #141820 100%);
  overflow: hidden;
}

.banner__slot::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: inherit;
  animation: bannerShift 16s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes bannerShift {
  from {
    transform: scale(1) translate(0, 0);
  }
  to {
    transform: scale(1.08) translate(-2%, 1%);
  }
}

.banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.banner__fade {
  position: absolute;
  inset: auto 0 0;
  height: 70%;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 92%);
  z-index: 2;
  pointer-events: none;
}

/* ——— Content ——— */
.body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.profile {
  padding: 0 var(--pad);
  margin-top: -44px;
  position: relative;
  z-index: 4;
  animation: rise 0.75s var(--ease) both;
}

.profile__top {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
}

.avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: linear-gradient(145deg, #2a1e22, #121011);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar__status {
  position: absolute;
  right: 3px;
  bottom: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--online);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25);
}

.identity h1 {
  font-family: "Space Grotesk", Outfit, sans-serif;
  font-size: clamp(24px, 7vw, 28px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verify {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  top: 0.5px;
  filter: drop-shadow(0 0 6px rgba(56, 152, 255, 0.45));
}

.verify svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.handle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.stats {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  margin: 18px 0 16px;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  position: relative;
}

.stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--line);
}

.stat b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat span,
.stat__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.stat__label svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  opacity: 0.85;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #fb7185 0%, #f43f5e 45%, #e11d48 100%);
  color: #fff;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s var(--ease);
}

.cta:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.cta:active {
  transform: scale(0.985);
}

.cta svg {
  width: 16px;
  height: 16px;
}

.disclaimer {
  margin-top: 11px;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.4;
}

.disclaimer a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.bio {
  margin-top: 16px;
  color: #d8d0d2;
  font-size: 14px;
  line-height: 1.5;
}

.bio__extra {
  display: none;
  margin-top: 6px;
  color: var(--muted);
}

.bio.is-open .bio__extra {
  display: block;
  animation: rise 0.3s var(--ease);
}

.more {
  margin-top: 8px;
  background: none;
  border: 0;
  color: var(--accent-2);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
}

.more em {
  font-style: normal;
}

.more svg {
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}

.more.is-open svg {
  transform: rotate(180deg);
}

/* ——— Grid ——— */
.exclusive {
  margin-top: 8px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: rise 0.75s var(--ease) 0.1s both;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad) 10px;
}

.section-title {
  font-family: "Space Grotesk", Outfit, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.pill {
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #c9c2c4;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(96px, 1fr);
  gap: 2px;
  flex: 1 1 auto;
  min-height: 200px;
  padding: 0 2px;
}

.tile {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  min-height: 96px;
  background: #1a1416;
  transition: filter 0.3s var(--ease);
}

.tile:hover {
  filter: brightness(1.08);
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.tile--preview img {
  filter: none;
  transform: none;
}

.tile--locked img {
  filter: blur(8px) saturate(0.9) brightness(0.72);
  transform: scale(1.12);
}

.tile--locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 5, 6, 0.18);
  z-index: 1;
}

.lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
}

.lock svg {
  width: 38px;
  height: 38px;
  padding: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fb7185, #e11d48);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s var(--ease);
}

.tile:hover .lock svg {
  transform: scale(1.07);
}

/* ——— Bottom CTA ——— */
.bottom-bar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + var(--safe-b));
  transform: translateX(-50%);
  width: min(calc(100% - 24px), calc(var(--page-w) - 24px));
  z-index: 30;
}

.bottom-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(244, 63, 94, 0.45);
  background: rgba(10, 9, 9, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--accent-2);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.bottom-cta:hover {
  border-color: var(--accent-2);
  background: rgba(24, 12, 16, 0.88);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Legal ——— */
.legal {
  position: relative;
  z-index: 1;
  width: min(100%, var(--page-w));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 28px var(--pad) 48px;
  background: var(--bg);
}

.legal a.back {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.legal h1 {
  margin: 18px 0 14px;
  font-family: "Space Grotesk", Outfit, sans-serif;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.legal p {
  color: #c9c2c4;
  line-height: 1.65;
  margin-bottom: 12px;
  font-size: 14.5px;
}

/* ——— Mobile tweaks ——— */
@media (max-width: 380px) {
  .banner {
    height: 140px;
  }

  .avatar-wrap,
  .avatar {
    width: 76px;
    height: 76px;
  }

  .profile {
    margin-top: -38px;
  }

  .identity h1 {
    font-size: 22px;
  }

  .cta {
    height: 48px;
    font-size: 15px;
  }
}

/* ——— Desktop / tablet: no scroll, fit viewport ——— */
@media (min-width: 768px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    place-items: center;
    height: 100dvh;
  }

  .page {
    width: min(100%, 400px);
    height: min(100dvh - 32px, 860px);
    max-height: calc(100dvh - 32px);
    min-height: 0;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.4),
      0 40px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    padding-bottom: 72px;
  }

  .banner {
    height: 22%;
    min-height: 120px;
    max-height: 180px;
  }

  .profile {
    margin-top: -36px;
  }

  .avatar-wrap,
  .avatar {
    width: 72px;
    height: 72px;
  }

  .identity h1 {
    font-size: 24px;
  }

  .stats {
    margin: 12px 0 12px;
  }

  .stat {
    padding: 6px 4px;
  }

  .stat b {
    font-size: 15px;
  }

  .cta {
    height: 46px;
    font-size: 14.5px;
  }

  .disclaimer {
    margin-top: 8px;
    font-size: 11.5px;
  }

  .bio {
    margin-top: 10px;
    font-size: 13px;
  }

  .more {
    margin-top: 4px;
    font-size: 12.5px;
  }

  .section-head {
    padding: 8px var(--pad) 8px;
  }

  .grid {
    min-height: 0;
    grid-auto-rows: 1fr;
  }

  .tile {
    min-height: 0;
  }

  .lock svg {
    width: 34px;
    height: 34px;
    padding: 8px;
  }

  .bottom-bar {
    position: absolute;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .bottom-cta {
    height: 46px;
    font-size: 14px;
  }

  .legal {
    height: min(100dvh - 32px, 860px);
    max-height: calc(100dvh - 32px);
    min-height: 0;
    overflow: auto;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (min-width: 768px) and (max-height: 740px) {
  .banner {
    height: 18%;
    min-height: 96px;
  }

  .bio,
  .more {
    display: none;
  }

  .bio.is-open,
  .more.is-open {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner__slot,
  .profile,
  .exclusive,
  .bio.is-open .bio__extra,
  .cta,
  .tile,
  .lock svg {
    animation: none !important;
    transition: none !important;
  }
}
