:root {
  --bg-deep: #120516;
  --bg-mid: #1f0924;
  --bg-accent: #320c38;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --glow-pink: rgba(236, 72, 153, 0.55);
  --glow-magenta: rgba(217, 70, 239, 0.45);
  --border-glass: rgba(255, 255, 255, 0.12);
  --card-bg: rgba(34, 14, 41, 0.68);
}

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

html,
body {
  min-height: 100%;
  background-color: #09030b;
  color: var(--text-main);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Desktop ambient backdrop */
.ambient-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 15%, rgba(217, 70, 239, 0.22), transparent 52%),
    radial-gradient(circle at 50% 78%, rgba(236, 72, 153, 0.16), transparent 55%),
    linear-gradient(180deg, #0d0410 0%, #15061a 55%, #09030c 100%);
  pointer-events: none;
}

/* Mobile-first shell */
.page-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  background:
    radial-gradient(ellipse 90% 45% at 50% 62%, rgba(192, 38, 211, 0.22), transparent 72%),
    linear-gradient(180deg, #16071b 0%, #200a25 50%, #130517 100%);
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

@media (min-width: 480px) {
  body {
    padding: 24px 16px;
  }

  .page-shell {
    min-height: auto;
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
      0 30px 90px rgba(0, 0, 0, 0.72),
      0 0 60px rgba(217, 70, 239, 0.16);
  }
}

/* Hero Photo */
.hero {
  position: relative;
  width: 100%;
}

.hero-media {
  position: relative;
  width: 100%;
  height: 415px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transform: scale(1.01);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(22, 7, 27, 0.08) 0%,
    rgba(22, 7, 27, 0.06) 38%,
    rgba(31, 9, 36, 0.58) 68%,
    rgba(32, 10, 37, 0.94) 88%,
    #200a25 100%
  );
  pointer-events: none;
}

/* Profile Identity Block */
.profile-info {
  position: relative;
  z-index: 2;
  margin-top: -108px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.name-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-name {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.verified-badge {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.65));
  transform: translateY(1px);
}

.verified-badge svg {
  width: 100%;
  height: 100%;
}

.profile-handle {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Circular Social Row */
.social-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.social-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.social-btn svg {
  width: 24px;
  height: 24px;
}

.social-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fanvue-img {
  transform: scale(1.12);
}

.fansgram-img {
  transform: scale(1.02);
}

.social-btn:hover {
  transform: translateY(-2px) scale(1.05);
}

.social-btn:active {
  transform: scale(0.95);
}

.social-fanvue {
  background: #48f562;
  box-shadow: 0 0 22px rgba(72, 245, 98, 0.45);
}

.social-fansgram {
  background: #ff7e6b;
  box-shadow: 0 0 22px rgba(255, 132, 92, 0.45);
}

.social-telegram {
  background: linear-gradient(180deg, #37aee2 0%, #1e96c8 100%);
  border: 2.5px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 20px rgba(55, 174, 226, 0.45);
}

.social-telegram svg {
  transform: translateX(-1px);
}

/* Main Content */
.content {
  padding: 22px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

/* Featured Glowing Photo Card */
.featured-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(244, 114, 182, 0.95), rgba(192, 38, 211, 0.85), rgba(236, 72, 153, 0.95));
  box-shadow:
    0 0 30px rgba(217, 70, 239, 0.42),
    0 0 12px rgba(244, 114, 182, 0.45),
    0 14px 36px rgba(0, 0, 0, 0.45);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease;
  -webkit-tap-highlight-color: transparent;
}

.featured-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 38px rgba(236, 72, 153, 0.58),
    0 0 16px rgba(244, 114, 182, 0.6),
    0 18px 42px rgba(0, 0, 0, 0.55);
}

.featured-card:active {
  transform: scale(0.985);
}

.featured-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.35;
  border-radius: 20px;
  overflow: hidden;
  background: #140618;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-card:hover .featured-img {
  transform: scale(1.03);
}

/* Top-left translucent lock icon (matching reference) */
.lock-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 24, 38, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-badge svg {
  width: 18px;
  height: 18px;
}

/* Top-right minimal pill */
.status-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(16, 6, 22, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.85);
}

/* Bottom CTA Overlay on Featured Card */
.featured-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 16px 16px;
  background: linear-gradient(
    180deg,
    rgba(16, 6, 22, 0) 0%,
    rgba(16, 6, 22, 0.72) 55%,
    rgba(16, 6, 22, 0.92) 100%
  );
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.featured-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.featured-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.featured-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.featured-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.55);
}

.featured-arrow svg {
  width: 19px;
  height: 19px;
}

/* Secondary Link Cards */
.links-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 18px;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.link-card:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 114, 182, 0.55);
  background: rgba(46, 18, 56, 0.82);
}

.link-card:active {
  transform: scale(0.985);
}

.link-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.link-card-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.link-card-icon svg {
  width: 21px;
  height: 21px;
}

.icon-fansgram {
  background: #ff7e6b;
  border: 1px solid rgba(255, 160, 122, 0.45);
}

.icon-telegram {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(30, 150, 200, 0.24));
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.link-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.link-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.link-card-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

.link-card-chevron {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.link-card:hover .link-card-chevron {
  transform: translateX(2px);
  color: rgba(255, 255, 255, 0.85);
}

.link-card-chevron svg {
  width: 18px;
  height: 18px;
}

/* Footer */
.footer {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.03em;
}

/* Subtle entrance animation */
.profile-info,
.featured-card,
.link-card {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.featured-card {
  animation-delay: 0.08s;
}

.link-card:nth-child(1) {
  animation-delay: 0.14s;
}

.link-card:nth-child(2) {
  animation-delay: 0.2s;
}

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

@media (prefers-reduced-motion: reduce) {
  .profile-info,
  .featured-card,
  .link-card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
