:root {
  --background: #070a23;
  --foreground: #ffffff;
  --card: #111638;
  --card-foreground: #ffffff;
  --primary: #ff3aa7;
  --primary-foreground: #ffffff;
  --secondary: #12183e;
  --secondary-foreground: #ffffff;
  --muted: #171d45;
  --muted-foreground: #aeb6dc;
  --accent: #1b6cff;
  --accent-foreground: #ffffff;
  --border: rgba(255, 255, 255, 0.12);
  --input: rgba(255, 255, 255, 0.12);
  --ring: #ff3aa7;
  --radius: 1.25rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle at 70% 4%, rgba(30, 103, 255, .28), transparent 30rem),
    radial-gradient(circle at 8% 35%, rgba(255, 58, 167, .16), transparent 26rem),
    var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-width: 320px;
}
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: 70px; padding: 0 clamp(1rem, 5vw, 4.5rem);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(7, 10, 35, .82); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .7rem; font-size: 1.35rem; font-weight: 900; letter-spacing: -.04em; }
.brand-mark { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(145deg, #ff4bb0, #ff197f); box-shadow: 0 10px 30px rgba(255, 58, 167, .3); font-size: 1.05rem; }
.topbar nav { display: flex; align-items: center; gap: 1rem; }
.topbar nav > a { color: #bdc5ea; font-weight: 700; font-size: .92rem; }
.icon-button, .more-button { display: grid; place-items: center; border: 0; color: white; background: transparent; }
.login-button { color: white; font-weight: 800; background: rgba(255,255,255,.08); border: 1px solid var(--border); border-radius: 999px; padding: .72rem 1.1rem; }

.cover {
  min-height: 235px; display: grid; place-items: center;
  background:
    linear-gradient(120deg, rgba(7,10,35,.1), rgba(255,58,167,.18)),
    repeating-linear-gradient(135deg, transparent 0 55px, rgba(255,255,255,.035) 55px 56px),
    linear-gradient(115deg, #0b4bd9 0%, #6428cb 52%, #e62298 100%);
  overflow: hidden;
}
.cover-copy { font-size: clamp(1.4rem, 4vw, 3.65rem); font-weight: 950; text-transform: uppercase; letter-spacing: -.05em; opacity: .92; transform: rotate(-3deg); text-shadow: 0 8px 35px rgba(5,8,30,.4); text-align: center; padding: 2rem; }
.page-shell { width: min(1140px, calc(100% - 2rem)); margin: 0 auto; }
.profile { position: relative; display: grid; grid-template-columns: 180px 1fr auto; gap: 1.5rem; align-items: end; margin-top: -78px; padding-bottom: 2rem; }
.avatar-wrap { position: relative; width: 180px; height: 180px; border-radius: 50%; padding: 6px; background: linear-gradient(140deg, #ff3aa7, #367cff); box-shadow: 0 16px 50px rgba(0,0,0,.35); }
.avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 6px solid #080b25; }
.online-dot { position: absolute; right: 12px; bottom: 19px; width: 23px; height: 23px; border-radius: 50%; background: #38df84; border: 5px solid #080b25; }
.profile-copy { padding-top: 5.7rem; }
.eyebrow { color: #ffa8d4; font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: .4rem; }
h1 { margin: .55rem 0 .3rem; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.055em; line-height: .98; display: flex; align-items: center; gap: .5rem; }
.verified { color: white; background: #2589f6; flex: 0 0 auto; width: 25px; height: 25px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .85rem; }
.verified.small { width: 19px; height: 19px; font-size: .7rem; }
.handle { color: #aeb6dc; font-weight: 650; margin: 0 0 .8rem; }
.bio { max-width: 680px; color: #e8eafa; font-size: 1rem; line-height: 1.65; margin: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 1rem; color: #aeb6dc; font-size: .85rem; }
.stats strong { color: white; }
.more-button { align-self: center; margin-top: 5.5rem; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid var(--border); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.4rem; align-items: start; padding-bottom: 5rem; }
.feed { display: grid; gap: 1rem; }
.post, .subscribe-card { border: 1px solid var(--border); background: linear-gradient(155deg, rgba(22,29,70,.95), rgba(12,16,49,.95)); border-radius: 24px; box-shadow: 0 24px 70px rgba(0,0,0,.2); }
.post { padding: 1.2rem; }
.post-head { display: flex; align-items: center; gap: .7rem; }
.post-head > div:nth-child(2) { display: grid; gap: .12rem; }
.post-head strong { font-size: .93rem; }
.post-head span { color: #9ba6d4; font-size: .77rem; }
.mini-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; }
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.featured-post > p { color: #e6e9fb; line-height: 1.6; }
.hero-image-wrap { position: relative; overflow: hidden; border-radius: 17px; height: min(590px, 70vw); background: #071b73; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: center 63%; transition: transform .45s ease; }
.hero-image-wrap:hover .hero-image { transform: scale(1.025); }
.image-label { position: absolute; left: 1rem; bottom: 1rem; padding: .55rem .75rem; border-radius: 999px; background: rgba(7,10,35,.72); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); font-size: .7rem; font-weight: 900; letter-spacing: .08em; }
.post-actions { display: flex; align-items: center; gap: 1rem; padding: .9rem .15rem 0; color: #aeb6dc; font-size: .8rem; }
.post-actions button { display: flex; align-items: center; gap: .4rem; background: transparent; color: #dfe3fa; border: 0; font-weight: 750; padding: .35rem; }
.post-actions button.liked { color: #ff4aa9; }
.post-actions #heart { font-size: 1.45rem; line-height: 1; }
.post-actions > span { margin-left: auto; }

.subscribe-card { position: sticky; top: 90px; padding: 1.25rem; }
.price-row { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.price-row span { color: #aeb6dc; font-weight: 700; }
.price-row strong { font-size: 1.55rem; white-space: nowrap; }
.subscribe-card > p { color: #c8ceeb; line-height: 1.55; font-size: .9rem; }
.subscribe-card ul { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: .8rem; color: #e6e9fb; font-size: .85rem; line-height: 1.4; }
.subscribe-card li { display: flex; gap: .6rem; }
.subscribe-card li span { color: #ff55b1; font-weight: 900; }
.subscribe-button { width: 100%; border: 0; border-radius: 14px; color: white; font-weight: 900; padding: 1rem; background: linear-gradient(120deg, #ff278f, #ff52bd); box-shadow: 0 12px 30px rgba(255,39,143,.28); transition: transform .2s ease, box-shadow .2s ease; }
.subscribe-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(255,39,143,.38); }
.subscribe-button:disabled { cursor: default; background: #239e65; }
.success-message { color: #77efa9 !important; font-weight: 750; margin-bottom: .2rem; }
.subscribe-card small { display: block; text-align: center; color: #7983b7; margin-top: .8rem; }

.locked-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.locked-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); background: #101534; border-radius: 19px; position: relative; }
.locked-art { height: 175px; display: grid; place-items: center; filter: blur(7px); transform: scale(1.08); }
.locked-art span { font-size: 4.5rem; filter: drop-shadow(0 15px 18px rgba(0,0,0,.3)); }
.locked-card.pink .locked-art { background: linear-gradient(145deg,#8d1f78,#ff75c3); }
.locked-card.blue .locked-art { background: linear-gradient(145deg,#073b9d,#44b8ff); }
.locked-card.purple .locked-art { background: linear-gradient(145deg,#391491,#a56cff); }
.lock-overlay { position: absolute; inset: 0 0 35px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .45rem; background: rgba(6,9,31,.34); padding: .8rem; }
.lock-overlay strong { font-size: .9rem; }
.lock-overlay span { color: #d7dbf2; font-size: .72rem; line-height: 1.4; }
.lock-overlay .lock-icon { font-size: 1.25rem; }
.locked-card > p { margin: 0; padding: .65rem .8rem; color: #929cca; font-size: .7rem; }

footer { border-top: 1px solid var(--border); display: flex; justify-content: center; align-items: center; gap: .7rem; color: #9099c4; padding: 2rem 1rem; text-align: center; font-size: .82rem; }
footer p { margin: 0; }

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .subscribe-card { position: static; grid-row: 1; }
  .profile { grid-template-columns: 135px 1fr; align-items: start; }
  .avatar-wrap { width: 135px; height: 135px; }
  .profile-copy { padding-top: 4.8rem; }
  .more-button { display: none; }
}

@media (max-width: 620px) {
  .topbar { height: 62px; padding-inline: 1rem; }
  .topbar nav > a, .icon-button { display: none; }
  .login-button { padding: .6rem .85rem; font-size: .82rem; }
  .cover { min-height: 185px; }
  .cover-copy { font-size: 1.55rem; }
  .profile { grid-template-columns: 1fr; gap: .8rem; margin-top: -62px; }
  .avatar-wrap { width: 125px; height: 125px; }
  .profile-copy { padding-top: 0; }
  .eyebrow { margin-top: .4rem; }
  h1 { font-size: 2.15rem; align-items: flex-start; }
  .stats { gap: .6rem 1rem; }
  .content-grid { padding-bottom: 3rem; }
  .locked-grid { grid-template-columns: 1fr; }
  .locked-art { height: 190px; }
  .post { padding: .9rem; }
  .hero-image-wrap { height: 470px; }
  .post-actions > span { display: none; }
  .post-actions { justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
