*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000;
  --bg: #0a0a0a;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.5);
  --dim: rgba(255, 255, 255, 0.35);
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.08);
  --of-blue: #00AFF0;
  --radius: 18px;
}

html {
  background: var(--black);
}

body {
  font-family: 'Sora', sans-serif;
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Hero Banner ─────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  height: 52vh;
  height: 52dvh;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.hero__gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 25%,
    rgba(0, 0, 0, 0.6) 60%,
    var(--black) 100%
  );
  pointer-events: none;
}

/* ─── Profile Section ─────────────────────────────────────────────────────── */

.profile {
  position: relative;
  z-index: 10;
  max-width: 420px;
  margin: -32px auto 0;
  padding: 0 24px;
  padding-bottom: max(40px, env(safe-area-inset-bottom, 40px));
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── Name + Badge ────────────────────────────────────────────────────────── */

.profile__name {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile__badge {
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.5));
}

/* ─── Handle ──────────────────────────────────────────────────────────────── */

.profile__handle {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
  text-align: center;
}

/* ─── Social Icons Row ────────────────────────────────────────────────────── */

.socials {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  justify-content: center;
}

.social {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 180ms ease, box-shadow 180ms ease;
  text-decoration: none;
  overflow: hidden;
}

.social svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* Colored circle backgrounds per platform */
.social--onlyfans { background: #00AFF0; }
.social--instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social--snapchat { background: #FFFC00; }
.social--snapchat svg { fill: #333; }
.social--snapchat svg path { fill: #333; }
.social--tiktok { background: #010101; }
.social--twitter { background: #000; border: 1px solid rgba(255,255,255,0.15); }

.social:hover {
  transform: scale(1.12);
}

.social:active {
  transform: scale(0.96);
}

/* Platform-specific hover glows */
.social--onlyfans:hover {
  box-shadow: 0 0 20px rgba(0, 175, 240, 0.4);
}
.social--instagram:hover {
  box-shadow: 0 0 20px rgba(220, 39, 67, 0.4);
}
.social--snapchat:hover {
  box-shadow: 0 0 20px rgba(255, 252, 0, 0.35);
}
.social--tiktok:hover {
  box-shadow: 0 0 20px rgba(254, 44, 85, 0.35);
}
.social--twitter:hover {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* ─── Follower Count ──────────────────────────────────────────────────────── */

.followers {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--card-border);
  cursor: default;
  font-size: 13px;
}

.followers__count {
  font-weight: 700;
  color: var(--white);
}

.followers__label {
  font-weight: 400;
  color: var(--muted);
}

.followers__chevron {
  color: var(--dim);
  margin-left: 2px;
}

/* ─── Bio ─────────────────────────────────────────────────────────────────── */

.profile__bio {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 300px;
}

/* ─── Featured OnlyFans Card ──────────────────────────────────────────────── */

.featured {
  display: block;
  width: 100%;
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 420px;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 175, 240, 0.15);
}

.featured:active {
  transform: translateY(0);
}

.featured__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 400ms ease;
}

.featured:hover .featured__img {
  transform: scale(1.04);
}

/* Badge floating top-left */
.featured__badge-tl {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--of-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 175, 240, 0.5);
}

.featured__badge-tl svg {
  width: 22px;
  height: 22px;
}

/* Label at bottom center */
.featured__bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.3) 60%,
    transparent 100%
  );
  display: flex;
  justify-content: center;
  z-index: 2;
}

.featured__label {
  font-size: 17px;
  font-weight: 600;
  color: var(--of-blue);
  letter-spacing: 0.3px;
}

/* ─── Age Gate ────────────────────────────────────────────────────────────── */

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.age-gate__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px 36px 40px;
  text-align: center;
  max-width: 340px;
  width: 100%;
}

.age-gate__icon {
  margin-bottom: 20px;
}

.age-gate__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.age-gate__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 32px;
}

.age-gate__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.age-gate__btn {
  padding: 14px 32px;
  border-radius: 14px;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 180ms ease;
  letter-spacing: 0.1px;
}

.age-gate__btn--enter {
  background: var(--white);
  color: var(--black);
}

.age-gate__btn--enter:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}

.age-gate__btn--enter:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.7);
}

.age-gate__btn--leave {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.age-gate__btn--leave:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* ─── Animations ──────────────────────────────────────────────────────────── */

.anim-up {
  opacity: 0;
  transform: translateY(16px);
  animation: animUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes animUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Utility ─────────────────────────────────────────────────────────────── */

.hidden {
  display: none !important;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ─── Safe Area (notched phones) ──────────────────────────────────────────── */

@supports (padding: env(safe-area-inset-top)) {
  .hero {
    padding-top: env(safe-area-inset-top);
  }
  .profile {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
}
