:root {
  --bg: #08080b;
  --bg-soft: #111116;
  --card: #15151c;
  --card-2: #1b1b24;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #a9a9b2;
  --muted-2: #777783;
  --accent: #ff3f8f;
  --accent-2: #ff6cab;
  --success: #42d392;
  --danger: #ff5b6e;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(
      circle at top,
      rgba(255, 63, 143, 0.08),
      transparent 28%
    ),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 30px;
}


/* =========================================================
   HEADER
========================================================= */

.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:
    calc(16px + var(--safe-top))
    18px
    14px;
  position: sticky;
  top: 0;
  z-index: 20;
  background:
    linear-gradient(
      to bottom,
      rgba(8, 8, 11, 0.98),
      rgba(8, 8, 11, 0.9)
    );
  backdrop-filter: blur(16px);
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 800;
  background:
    linear-gradient(
      135deg,
      var(--accent),
      #8f4dff
    );
  box-shadow:
    0 8px 28px rgba(255, 63, 143, 0.24);
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
}


/* =========================================================
   SEARCH
========================================================= */

.search-wrap {
  padding: 0 18px 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  min-height: 48px;
  border-radius: 15px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.search-icon {
  color: var(--muted);
  flex: 0 0 auto;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-box input::placeholder {
  color: var(--muted-2);
}


/* =========================================================
   TABS
========================================================= */

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 4px 18px 14px;
}

.tab {
  border: 0;
  border-radius: 13px;
  min-height: 42px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  background:
    linear-gradient(
      135deg,
      rgba(255, 63, 143, 0.2),
      rgba(143, 77, 255, 0.12)
    );
  color: #fff;
  border: 1px solid rgba(255, 63, 143, 0.18);
}


/* =========================================================
   MAIN
========================================================= */

.main-content {
  padding: 2px 18px 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.section-eyebrow {
  color: var(--accent-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-bottom: 4px;
}

.featured-label {
  color: var(--accent-2);
  border: 1px solid rgba(255, 63, 143, 0.2);
  background: rgba(255, 63, 143, 0.08);
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.result-count {
  color: var(--muted);
  font-size: 12px;
  display: inline-block;
  margin-top: 4px;
}


/* =========================================================
   FEATURED
========================================================= */

.featured-section {
  margin-bottom: 28px;
}

.featured-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 42%);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.featured-rail::-webkit-scrollbar {
  display: none;
}

.featured-card {
  position: relative;
  min-height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  scroll-snap-align: start;
  cursor: pointer;
}

.featured-card img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}


/* =========================================================
   CREATOR GRID
========================================================= */

.creator-section {
  padding-bottom: 40px;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.creator-card {
  position: relative;
  aspect-ratio: 0.76;
  min-height: 230px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
}

.creator-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-gradient {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.28) 42%,
      transparent 68%
    );
}

.card-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card-meta {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.plan-pill {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.empty-state {
  padding: 40px 12px;
  text-align: center;
  color: var(--muted);
}


/* =========================================================
   PROFILE MODAL
========================================================= */

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.profile-screen {
  min-height: 100vh;
  background: var(--bg);
}

.profile-media {
  position: relative;
  width: 100%;
  height: min(68vh, 620px);
  min-height: 470px;
  overflow: hidden;
  background: #111;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-photo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.42) 0%,
      transparent 20%,
      transparent 50%,
      rgba(0, 0, 0, 0.78) 100%
    );
}

.profile-top-button {
  position: absolute;
  top: calc(14px + var(--safe-top));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 12, 16, 0.62);
  color: #fff;
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 4;
}

.profile-close {
  left: 14px;
}

.profile-report {
  right: 14px;
}

.photo-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 42px;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.36);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  z-index: 4;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.photo-nav-left {
  left: 10px;
}

.photo-nav-right {
  right: 10px;
}

.photo-dots {
  position: absolute;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}

.photo-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  transition: 0.2s ease;
}

.photo-dot.active {
  width: 18px;
  background: #fff;
}

.profile-photo-info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 28px;
  z-index: 4;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-name-row h1 {
  margin: 0;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.verified-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.profile-location {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}


/* =========================================================
   PROFILE CONTENT
========================================================= */

.profile-content {
  position: relative;
  margin-top: -1px;
  padding:
    18px
    18px
    calc(26px + var(--safe-bottom));
  background: var(--bg);
}

.profile-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.status-pill,
.verified-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.status-pill {
  color: #c8f7df;
  background: rgba(66, 211, 146, 0.08);
  border: 1px solid rgba(66, 211, 146, 0.16);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow:
    0 0 0 4px rgba(66, 211, 146, 0.08);
}

.verified-profile-pill {
  color: #e7dfff;
  background: rgba(143, 77, 255, 0.08);
  border: 1px solid rgba(143, 77, 255, 0.16);
}

.profile-about {
  margin-bottom: 20px;
}

.profile-section-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 800;
  margin-bottom: 9px;
}

.profile-bio {
  margin: 0;
  color: #eeeeF4;
  font-size: 15px;
  line-height: 1.6;
}

.profile-safety-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.profile-safety-note svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--accent-2);
}


/* =========================================================
   PRIVATE CHAT CTA
========================================================= */

.private-chat-button {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 18px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--accent),
      #c841ff
    );
  box-shadow:
    0 14px 34px rgba(255, 63, 143, 0.22);
}

.private-chat-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  flex: 0 0 auto;
}

.private-chat-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.private-chat-title {
  font-size: 15px;
  font-weight: 800;
}

.private-chat-subtitle {
  font-size: 11px;
  opacity: 0.78;
  margin-top: 2px;
}

.private-chat-arrow {
  font-size: 28px;
  opacity: 0.9;
}

.profile-report-text {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted-2);
  margin-top: 14px;
  padding: 10px;
  font-size: 12px;
  cursor: pointer;
}

.profile-bottom-space {
  height: 8px;
}


/* =========================================================
   HOVER / ACTIVE
========================================================= */

@media (hover: hover) {
  .creator-card,
  .featured-card,
  .icon-button,
  .tab,
  .private-chat-button,
  .profile-top-button,
  .photo-nav {
    transition:
      transform 0.18s ease,
      opacity 0.18s ease,
      border-color 0.18s ease;
  }

  .creator-card:hover,
  .featured-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.13);
  }

  .private-chat-button:hover {
    transform: translateY(-1px);
  }
}

button:active {
  transform: scale(0.98);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {
  .app-shell {
    max-width: 100%;
  }

  .top-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .tabs {
    padding-left: 14px;
    padding-right: 14px;
  }

  .main-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .search-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }

  .featured-rail {
    grid-auto-columns: 44%;
  }

  .creator-grid {
    gap: 10px;
  }

  .creator-card {
    min-height: 215px;
  }

  .profile-media {
    height: 64vh;
    min-height: 440px;
  }

  .profile-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* =========================================================
   LARGE SCREEN
========================================================= */

@media (min-width: 761px) {
  .profile-modal {
    display: flex;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
  }

  .profile-screen {
    width: 100%;
    max-width: 560px;
    min-height: 100vh;
  }
}