/* =========================================================
   LampFans — wireframe stylesheet v3
   Public/logged-out only. Mirrors OnlyFans' logged-out
   profile structure with an Edison-amber palette.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* LampFans Brand Kit v1.0 — official tokens */
  --lf-primary:        #FF8C1A;   /* Primary Orange — wordmark, CTAs */
  --lf-primary-hover:  #E0651A;   /* Deep Burnt Orange — hover/active */
  --lf-primary-deep:   #E0651A;   /* Deep Burnt Orange — monogram L, accents */
  --lf-primary-soft:   #FFE2BC;   /* Cream Glow — reverse marks, soft surfaces */
  --lf-primary-ring:   rgba(255,140,26,0.18);
  --lf-glow:           #FFE2BC;   /* Cream Glow */
  --lf-verified:       #E0651A;   /* Deep Burnt Orange for verified badge */

  --lf-ink:            #141218;   /* Charcoal Night — primary text */
  --lf-ink-2:          #3A3640;
  --lf-ink-3:          #8A8590;
  --lf-line:           #ECE6DE;
  --lf-line-2:         #F4EFE6;
  --lf-bg:             #FFF8F1;   /* Lamp White — surfaces */
  --lf-bg-locked:      #F4EFE6;
  --lf-bg-hover:       #FFE2BC;   /* Cream Glow hover */
  --lf-online:         #34D058;

  --lf-shadow-sm:      0 1px 2px rgba(31,27,22,.06);
  --lf-shadow-md:      0 8px 28px rgba(31,27,22,.08);

  --lf-radius-card:    8px;
  --lf-radius-pill:    999px;

  --lf-font-display:   'Nunito', system-ui, sans-serif;
  --lf-font-body:      'Inter', 'Roboto', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--lf-font-body);
  color: var(--lf-ink);
  background: #F4F4F4;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lf-primary); text-decoration: none; }
a:hover { color: var(--lf-primary-hover); }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ===== Intro splash: hard-cut to centered logo, then hard-cut to app ===== */
.intro {
  position: fixed; inset: 0;
  background: #FFFFFF;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  /* Visible immediately, no fade-in (matches OF's no-animation pattern) */
}
.intro.hide { display: none; }
/* Failsafe: hide the splash via CSS after 1.4s even if JS doesn't run */
.intro { animation: lf-splash-hide 0s ease 1400ms forwards; }
@keyframes lf-splash-hide { to { opacity: 0; visibility: hidden; pointer-events: none; } }
.intro svg, .intro .lf-lockup { width: 360px; height: auto; display: block; }
@media (max-width: 600px) {
  .intro svg, .intro .lf-lockup { width: 70vw; }
}

/* App shell becomes visible after intro; spinner moment between */
.app-shell {
  opacity: 0;
  transition: opacity 220ms ease;
}
.app-shell.ready { opacity: 1; }
/* Failsafe: if JS doesn't run, still show the app after 2s via pure CSS */
.app-shell { animation: lf-reveal 0s ease 2000ms forwards; }
@keyframes lf-reveal { to { opacity: 1; } }

/* Failsafe: hide the spinner via CSS after 1.8s */
.boot-spinner { animation: lf-spin-hide 0s ease 1800ms forwards; }
@keyframes lf-spin-hide { to { opacity: 0; visibility: hidden; } }

/* Spinner shown between splash and content */
.boot-spinner {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 3px solid #E5E5E5;
  border-top-color: var(--lf-primary);
  animation: spin 750ms linear infinite;
  z-index: 5;
}
.boot-spinner.hide { display: none; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* ========== Cookie banner (top, fixed) ========== */
.cookie {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid var(--lf-line);
  padding: 10px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--lf-ink);
}
.cookie .ck-text a { color: var(--lf-primary); font-weight: 600; }
.cookie .ck-actions { display: flex; gap: 10px; flex: none; align-items: center; }
.cookie .ck-link {
  background: transparent; border: none;
  color: var(--lf-primary); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.cookie .ck-accept {
  background: var(--lf-primary); color: #fff;
  border: none;
  border-radius: var(--lf-radius-pill);
  padding: 9px 18px;
  font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.cookie .ck-accept:hover { background: var(--lf-primary-hover); }

/* ========== Three-column layout ========== */
.app {
  display: grid;
  grid-template-columns: 320px minmax(0, 540px) 360px;
  gap: 0;
  max-width: 1320px;
  margin: 0 auto;
  background: var(--lf-bg);
  min-height: 100vh;
}

/* ===== Left sidebar (LOGGED-OUT minimal) ===== */
.sidebar {
  position: sticky; top: 0;
  height: 100vh;
  border-right: 1px solid var(--lf-line);
  background: var(--lf-bg);
  padding: 18px 16px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 22px 8px;
  text-decoration: none;
}
.brand .lf-lockup { height: 34px; width: auto; display: block; }
.guest-pill {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 8px 18px;
  color: var(--lf-ink-3);
}
.guest-pill .av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #F1F2F4;
  border: 1px solid var(--lf-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--lf-ink-3);
}

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a, .nav button {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--lf-ink);
  font-weight: 600;
  font-size: 16px;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.nav a:hover, .nav button:hover { background: var(--lf-bg-hover); }
.nav a.active { background: var(--lf-primary-soft); color: var(--lf-primary-hover); font-weight: 800; }
.nav .ico {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--lf-ink-2);
}
.nav a.active .ico { color: var(--lf-primary); }

/* "More" popover (opens upward from More item) */
.more-pop {
  position: absolute;
  left: 12px; bottom: 90px;
  width: 240px;
  background: #fff;
  border: 1px solid var(--lf-line);
  border-radius: 12px;
  box-shadow: var(--lf-shadow-md);
  padding: 6px;
  display: none;
  z-index: 30;
}
.more-pop.open { display: block; }
.more-pop .row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px; color: var(--lf-ink);
  cursor: pointer;
  background: transparent; border: none; width: 100%; text-align: left;
}
.more-pop .row:hover { background: var(--lf-bg-hover); }
.more-pop hr { border: none; border-top: 1px solid var(--lf-line-2); margin: 4px 0; }
.more-pop .row.login { color: var(--lf-primary); font-weight: 700; }

.sidebar .grow { flex: 1; }

/* ===== Main column ===== */
.main {
  border-right: 1px solid var(--lf-line);
  background: var(--lf-bg);
  min-height: 100vh;
  position: relative;
}

/* Sticky mini-header — appears overlaid on the cover */
.mini-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0,0,0,0);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  transition: background 200ms ease, color 200ms ease, text-shadow 200ms ease;
}
.mini-head.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lf-line);
  color: var(--lf-ink);
  text-shadow: none;
}
.mini-head .back {
  border: none; background: transparent; padding: 6px;
  color: inherit; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.mini-head .back:hover { background: rgba(255,255,255,.18); }
.mini-head.scrolled .back:hover { background: var(--lf-bg-hover); }
.mini-head .who { flex: 1; min-width: 0; }
.mini-head .who b {
  font-family: var(--lf-font-display);
  font-weight: 800; font-size: 15px;
  display: inline-flex; align-items: center; gap: 6px;
}
.mini-head .who small {
  display: block; font-size: 12px; opacity: 0.92;
}
.mini-head .share {
  width: 36px; height: 36px; border-radius: 50%;
  background: transparent; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  color: inherit;
}
.mini-head .share:hover { background: rgba(255,255,255,.18); }
.mini-head.scrolled .share:hover { background: var(--lf-bg-hover); color: var(--lf-primary); }

/* Cover banner — wide & short (~3.35:1) */
.cover {
  position: relative;
  aspect-ratio: 3.35 / 1;
  background:
    radial-gradient(120% 80% at 30% 20%, #FFD27A 0%, #F08A1C 45%, #8C4A0F 100%);
  overflow: hidden;
  margin-top: -56px; /* pull cover up under sticky mini-head */
  padding-top: 56px;
}
.cover.has-image { background: #000; }
.cover img.cover-img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cover::after {
  /* subtle dark gradient at top so the mini-head text always reads */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.30) 0%, rgba(0,0,0,0) 40%);
  pointer-events: none;
}

/* Profile body */
.profile-body { padding: 0 18px 14px 18px; }
.profile-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: -44px;
  margin-bottom: 4px;
  position: relative;
}
.avatar-lg {
  width: 82px; height: 82px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: linear-gradient(135deg,#FFE6B0,#F08A1C);
  box-shadow: var(--lf-shadow-md);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--lf-font-display);
  font-weight: 900;
  font-size: 32px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.18);
  overflow: hidden;
}
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.avatar-lg .online {
  position: absolute; right: 4px; bottom: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--lf-online);
  border: 2.5px solid #fff;
}
.share-top {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid var(--lf-line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--lf-primary);
  margin-bottom: 4px;
}
.share-top:hover { background: var(--lf-primary-soft); }

.name-row {
  margin-top: 8px;
  font-family: var(--lf-font-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 8px;
  color: var(--lf-ink);
}
.verified {
  width: 18px; height: 18px;
  background: var(--lf-verified);
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900;
  flex: none;
}
.handle-row {
  color: var(--lf-ink-3);
  font-size: 13px;
  margin-top: 2px;
  display: flex; align-items: center; gap: 6px;
}
.handle-row .dot { color: var(--lf-ink-3); }
.handle-row .online-pill {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--lf-ink-3);
}
.handle-row .online-pill::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lf-online);
}

.bio { margin: 12px 0 6px; font-size: 14px; line-height: 1.55; color: var(--lf-ink); white-space: pre-line; }
.bio .more-info { color: var(--lf-primary); font-weight: 700; }

.links { display:flex; flex-wrap:wrap; gap:8px; margin-top: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #F4F4F6;
  color: var(--lf-ink);
  font-weight: 600; font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--lf-radius-pill);
}
.chip svg { color: var(--lf-primary); }

/* Subscription block */
.sub-label {
  margin: 18px 0 8px;
  font-family: var(--lf-font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--lf-ink-3);
  text-transform: uppercase;
}
.sub-btn {
  width: 100%;
  background: var(--lf-primary);
  color: #fff;
  border: none;
  border-radius: var(--lf-radius-pill);
  padding: 12px 18px;
  font-family: var(--lf-font-body);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer;
  text-decoration: none;
}
.sub-btn:hover { background: var(--lf-primary-hover); color: #fff; }
.sub-btn .price-side { display: inline-flex; align-items: center; gap: 8px; }

/* Tabs */
.tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--lf-line);
  padding: 18px 18px 0;
  margin-top: 18px;
}
.tab {
  border: none; background: transparent;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 12px;
  color: var(--lf-ink-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid transparent;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  cursor: pointer;
}
.tab:hover { color: var(--lf-ink); }
.tab.active { color: var(--lf-ink); border-bottom-color: var(--lf-ink); }

/* Feed */
.feed { padding: 0 0 60px; display: flex; flex-direction: column; }

.post {
  background: var(--lf-bg);
  border-bottom: 1px solid var(--lf-line);
  padding: 16px 18px 12px;
}
.post-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.post-head .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg,#FFE6B0,#F08A1C);
  flex: none; position: relative; overflow: hidden;
}
.post-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-head .avatar .online {
  position: absolute; right: 0; bottom: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--lf-online); border: 2px solid #fff;
}
.post-head .who { flex: 1; min-width: 0; }
.post-head .who b {
  font-family: var(--lf-font-display);
  font-weight: 800; font-size: 14px;
  display: inline-flex; align-items: center; gap: 5px;
}
.post-head .who small { display: block; color: var(--lf-ink-3); font-size: 12px; }
.post-head .ts { color: var(--lf-ink-3); font-size: 12px; margin-left: auto; }
.post-head .menu {
  margin-left: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: transparent; color: var(--lf-ink-3);
  display: inline-flex; align-items: center; justify-content: center;
}
.post-head .menu:hover { background: var(--lf-bg-hover); color: var(--lf-ink); }

.caption { font-size: 14px; line-height: 1.55; margin: 4px 0 12px; white-space: pre-line; }

/* Locked media placeholder (OF-accurate: gray card, watermark, lock, inline CTA) */
.locked-card {
  position: relative;
  background: var(--lf-bg-locked);
  border-radius: var(--lf-radius-card);
  overflow: hidden;
  min-height: 290px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 24px 18px;
}
.locked-card::before {
  /* faint oversized LF monogram watermark (per brand kit) */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('brand/lampfans-icon.png');
  background-repeat: no-repeat;
  background-position: center 30%;
  background-size: 50% auto;
  opacity: 0.08;
  pointer-events: none;
}
.locked-card .lock-ico {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  color: var(--lf-ink-3);
  margin-bottom: 12px;
  position: relative;
}
.locked-card .lock-msg {
  font-size: 13px;
  color: var(--lf-ink-3);
  margin-bottom: 14px;
  position: relative;
}
.locked-card .inline-unlock {
  position: relative;
  background: var(--lf-primary);
  color: #fff;
  border: none;
  border-radius: var(--lf-radius-pill);
  padding: 11px 24px;
  font-family: var(--lf-font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.locked-card .inline-unlock:hover { background: var(--lf-primary-hover); color: #fff; }

/* Multi-image locked grid */
.locked-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  border-radius: var(--lf-radius-card); overflow: hidden;
}
.locked-grid .locked-card { min-height: 180px; border-radius: 0; }

/* ===== Media formats ===== */

/* Format A: full-image free post */
.media-img {
  border-radius: var(--lf-radius-card);
  overflow: hidden;
  background: #EEE9E0;
  position: relative;
}
.media-img img { width: 100%; height: auto; display: block; }

/* Format B: teaser post — top of image visible, bottom faded into a locked CTA zone */
.media-teaser {
  position: relative;
  border-radius: var(--lf-radius-card);
  overflow: hidden;
  background: var(--lf-bg-locked);
}
.media-teaser .img-wrap {
  position: relative;
  overflow: hidden;
  /* show ~62% of the image height before the locked zone */
  max-height: 360px;
}
.media-teaser .img-wrap img { width: 100%; height: auto; display: block; }
.media-teaser .img-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(246,247,249,0) 0%, rgba(246,247,249,0.85) 60%, var(--lf-bg-locked) 100%);
  pointer-events: none;
}
.media-teaser .locked-zone {
  position: relative;
  background: var(--lf-bg-locked);
  padding: 14px 18px 18px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 10px;
}
.media-teaser .locked-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('brand/lampfans-icon.png');
  background-repeat: no-repeat;
  background-position: center 30%;
  background-size: 40% auto;
  opacity: 0.08;
  pointer-events: none;
}
.media-teaser .lock-row {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--lf-ink-3);
  position: relative;
}
.media-teaser .inline-unlock {
  position: relative;
}

/* Format C: multi-image grid with mixed visible + locked tiles */
.media-mixed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border-radius: var(--lf-radius-card);
  overflow: hidden;
  position: relative;
}
.media-mixed.three { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.media-mixed.three .tile:first-child { grid-row: 1 / span 2; }
.media-mixed .tile {
  position: relative;
  background: #EEE9E0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.media-mixed .tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-mixed .tile.locked {
  background: var(--lf-bg-locked);
  display: flex; align-items: center; justify-content: center;
  color: var(--lf-ink-3);
}
.media-mixed .tile.locked::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('brand/lampfans-icon.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50% auto;
  opacity: 0.08;
  pointer-events: none;
}
.media-mixed .tile.locked .more-count {
  position: relative;
  background: rgba(0,0,0,.55); color: #fff;
  font-weight: 800; font-size: 12px;
  padding: 4px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.media-mixed .unlock-bar {
  grid-column: 1 / -1;
  background: var(--lf-bg-locked);
  padding: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* Post footer */
.post-foot {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 0 0;
  color: var(--lf-ink-3);
  font-size: 13px;
}
.post-foot .act {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 999px;
  background: transparent; border: none;
  color: inherit; cursor: pointer;
}
.post-foot .act:hover { background: var(--lf-bg-hover); color: var(--lf-primary); }
.post-foot .right { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; }
.likes-line { font-size: 13px; color: var(--lf-ink-3); padding: 6px 0 0; }

/* Comments */
.comments {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--lf-line-2);
  display: flex; flex-direction: column; gap: 10px;
}
.comment {
  display: flex; gap: 10px;
  align-items: flex-start;
}
.comment .av {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg,#FFE6B0,#F08A1C);
  flex: none; overflow: hidden;
}
.comment .av img { width: 100%; height: 100%; object-fit: cover; }
.comment .body { flex: 1; min-width: 0; }
.comment .body .top {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
}
.comment .body .top b {
  font-family: var(--lf-font-display);
  font-weight: 800;
  display: inline-flex; align-items: center; gap: 4px;
}
.comment .body .top .when { color: var(--lf-ink-3); font-size: 11px; margin-left: 4px; }
.comment .body p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--lf-ink); }

/* ===== Right sidebar (LOGGED-OUT minimal) ===== */
.rail { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.rail .sub-card {
  background: var(--lf-bg);
  border: 1px solid var(--lf-line);
  border-radius: 10px;
  padding: 16px;
}
.rail .sub-card .lab {
  font-family: var(--lf-font-body);
  font-weight: 800; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--lf-ink-3);
  margin-bottom: 10px;
}
.rail-foot {
  margin-top: 6px;
  color: var(--lf-ink-3);
  font-size: 12px;
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  padding: 0 4px;
}
.rail-foot a { color: var(--lf-ink-3); }
.rail-foot .legal { width: 100%; opacity: 0.7; margin-top: 6px; font-size: 11px; }

/* ===== Floating help bubble ===== */
.help-fab {
  position: fixed; right: 22px; bottom: 22px;
  width: 52px; height: 52px;
  border-radius: 12px; /* OF uses a rounded square, not a circle */
  background: var(--lf-primary);
  color: #fff;
  border: none;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(240,138,28,0.35);
  font-family: var(--lf-font-display);
  font-weight: 900;
  font-size: 22px;
  z-index: 30;
}

/* ===== Featured post links (home page cards linking to profile pages) ===== */
.post-head a.avatar, .post-head a.who, a.caption-link, a.media-img {
  color: inherit;
  text-decoration: none;
}
.post-head a.who:hover b, a.caption-link:hover { color: var(--lf-primary-hover); }
a.media-img { cursor: pointer; }

/* ===== Studio credit footer line ===== */
.studio-credit {
  text-align: center;
  font-size: 12px;
  color: var(--lf-ink-3);
  padding: 14px 16px;
}
.studio-credit a {
  color: var(--lf-ink-3);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.studio-credit a:hover { color: var(--lf-primary-hover); }
.home-foot .studio-credit {
  border-top: 1px solid var(--lf-line);
  margin-top: 28px;
  padding-top: 16px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.rail .studio-credit { padding: 4px 4px 0; }

/* ===== Friends strip (cross-fan friendship callout on profile pages) ===== */
.friends-strip {
  margin: 18px 18px 0;
  background: var(--lf-primary-soft);
  border: 1px solid var(--lf-primary-ring);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--lf-ink-2);
}
.friends-strip .avatars { display: flex; flex: none; }
.friends-strip .avatars a {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--lf-bg);
  overflow: hidden;
  margin-left: -10px;
  display: block;
}
.friends-strip .avatars a:first-child { margin-left: 0; }
.friends-strip .avatars img { width: 100%; height: 100%; object-fit: cover; }
.friends-strip .txt b { color: var(--lf-ink); }
.friends-strip .txt a { color: var(--lf-primary-hover); font-weight: 700; }

/* ===== Wireframe index ===== */
.wf-index { max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; background: #FAF7F1; }
.wf-index .hero {
  padding-bottom: 24px; border-bottom: 1px solid var(--lf-line);
}
.wf-index .hero h1 {
  margin: 8px 0 6px;
  font-family: var(--lf-font-display);
  font-weight: 900;
  font-size: 38px;
  letter-spacing: -0.8px;
}
.wf-index .hero p { color: var(--lf-ink-2); max-width: 620px; margin-top: 6px; }
.wf-index .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.wf-card {
  background: #fff; border: 1px solid var(--lf-line); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
}
.wf-card .thumb {
  aspect-ratio: 4/5;
  background: #1a1a1a;
  position: relative;
  display: flex; align-items: flex-end;
  padding: 16px;
  color: #fff;
  font-family: var(--lf-font-display); font-weight: 900; font-size: 24px;
  letter-spacing: -0.5px;
  overflow: hidden;
}
.wf-card .thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.wf-card .thumb .thumb-label {
  position: relative; z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.7);
}
.wf-card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6) 100%);
}
.wf-card .body { padding: 12px 16px 16px; }
.wf-card h3 { margin: 0 0 6px; font-family: var(--lf-font-display); font-weight: 800; }
.wf-card p { margin: 0 0 10px; color: var(--lf-ink-2); font-size: 13px; }
.wf-card .open {
  display: inline-block;
  background: var(--lf-primary); color: #fff;
  font-family: var(--lf-font-body); font-weight: 700;
  font-size: 12px; padding: 8px 16px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .3px;
}

.wf-note {
  background: #FFFBF3;
  border: 1px dashed var(--lf-primary);
  color: var(--lf-primary-deep);
  font-size: 12px; font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  margin-top: 24px;
}

/* Responsive */
@media (max-width: 1180px) {
  .app { grid-template-columns: 280px minmax(0,1fr); }
  .rail { display: none; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--lf-line); }
  .nav { flex-direction: row; gap: 4px; }
  .wf-index .grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Homepage (OnlyFans-root parody)
   ========================================================= */

.home-shell { background: #F6F7F9; min-height: 100vh; }

/* Split-screen hero */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
  background: var(--lf-bg);
}
.hero-left {
  background: var(--lf-primary);
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: 56px 72px;
  justify-content: flex-start;
}
.hero-left::after {
  content: "";
  position: absolute;
  right: -8%; bottom: -22%;
  width: 520px; height: 520px;
  background-image: url('brand/lampfans-icon.png');
  background-repeat: no-repeat; background-position: center;
  background-size: contain;
  opacity: 0.18;
  pointer-events: none;
}
.hero-left .home-lockup {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center;
  margin-bottom: 80px;
}
.hero-left .home-lockup img { height: 44px; width: auto; }
.hero-headline {
  position: relative; z-index: 2;
  font-family: var(--lf-font-display);
  font-weight: 800;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: #fff;
  max-width: 460px;
  margin: 0;
}

.hero-right {
  background: var(--lf-bg);
  padding: 56px 64px;
  display: flex; flex-direction: column;
  justify-content: center;
}
.auth-card { max-width: 380px; width: 100%; margin: 0 auto; }
.auth-card h2 {
  font-family: var(--lf-font-display);
  font-weight: 800;
  font-size: 28px;
  margin: 0 0 24px;
  color: var(--lf-ink);
}
.auth-field {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--lf-line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  margin-bottom: 14px;
  outline: none;
  font-size: 15px;
}
.auth-field:focus { border-color: var(--lf-primary); box-shadow: 0 0 0 4px var(--lf-primary-ring); }
.auth-field-wrap { position: relative; }
.auth-field-wrap .eye {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  background: transparent; border: none;
  color: var(--lf-ink-3); padding: 6px;
  display: inline-flex; align-items: center;
}
.auth-primary {
  width: 100%;
  background: var(--lf-primary);
  color: #fff; border: none;
  border-radius: var(--lf-radius-pill);
  padding: 14px 18px;
  font-family: var(--lf-font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: block;
  text-align: center;
  text-decoration: none;
  margin-top: 4px;
}
.auth-primary:hover { background: var(--lf-primary-hover); color: #fff; }
.auth-legal {
  margin: 14px 0 18px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--lf-ink-3);
  text-align: center;
}
.auth-legal a { color: var(--lf-primary); font-weight: 600; }
.auth-inline {
  display: flex; justify-content: space-between; align-items: center;
  margin: 4px 0 22px;
  font-size: 13px;
}
.auth-inline a { color: var(--lf-primary); font-weight: 700; }
.auth-social { display: flex; flex-direction: column; gap: 10px; }
.auth-social .btn {
  width: 100%;
  border: none;
  border-radius: var(--lf-radius-pill);
  padding: 12px 18px;
  font-family: var(--lf-font-body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-decoration: none;
}
.auth-social .btn-x { background: #1DA1F3; }
.auth-social .btn-google { background: #4285F4; }
.auth-social .btn-passwordless { background: var(--lf-primary); }
.auth-social .btn-google .g-tile {
  background: #fff; color: #4285F4;
  width: 22px; height: 22px; border-radius: 3px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px;
  font-family: 'Nunito', system-ui, sans-serif;
}
.auth-social .btn:hover { filter: brightness(0.95); }

/* Featured feed */
.featured { background: #F6F7F9; padding: 48px 24px 72px; }
.featured-wrap { max-width: 800px; margin: 0 auto; }
.featured h2 {
  font-family: var(--lf-font-display);
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.6px;
  color: var(--lf-ink);
  margin: 0 0 24px;
}
.featured .post {
  background: #fff;
  border: 1px solid var(--lf-line);
  border-radius: 12px;
  padding: 16px 18px 12px;
  margin-bottom: 16px;
}
.featured .post-head .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--lf-primary);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--lf-font-display);
  font-weight: 900;
  font-size: 16px;
  overflow: hidden;
}
.featured .show-more {
  display: block;
  margin: 24px auto 0;
  background: #fff;
  color: var(--lf-primary);
  border: 1px solid var(--lf-line);
  border-radius: var(--lf-radius-pill);
  padding: 11px 28px;
  font-family: var(--lf-font-body);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
}
.featured .show-more:hover { background: var(--lf-primary-soft); }

/* Footer */
.home-foot {
  background: var(--lf-bg);
  border-top: 1px solid var(--lf-line);
  padding: 48px 64px 32px;
}
.home-foot-cols {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 32px;
}
.home-foot .col h4 {
  font-family: var(--lf-font-display);
  font-weight: 800;
  font-size: 14px;
  margin: 0 0 12px;
  color: var(--lf-ink);
}
.home-foot .col a {
  display: block;
  color: var(--lf-ink-2);
  font-size: 13px;
  padding: 4px 0;
  text-decoration: none;
}
.home-foot .col a:hover { color: var(--lf-primary); }
.home-foot .copy { color: var(--lf-ink-2); font-size: 13px; }
.home-foot .socials { display: flex; gap: 10px; margin: 12px 0 16px; }
.home-foot .socials a {
  width: 32px; height: 32px;
  border: 1px solid var(--lf-line);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--lf-ink-2);
}
.home-foot .socials a:hover { color: var(--lf-primary); border-color: var(--lf-primary); }
.home-foot .lang-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--lf-line);
  border-radius: var(--lf-radius-pill);
  padding: 6px 12px;
  font-size: 13px;
  color: var(--lf-ink-2);
  background: #fff;
  cursor: pointer;
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-left { padding: 40px 28px 60px; }
  .hero-headline { font-size: 36px; }
  .hero-right { padding: 40px 28px; }
  .home-foot { padding: 40px 24px 24px; }
  .home-foot-cols { grid-template-columns: 1fr 1fr; }
}

/* Hero lockup typography */
.hero-left .home-lockup { gap: 8px; }
.hero-left .lf-mark-cream { display: inline-flex; align-items: center; }
.hero-left .lf-wordmark-white {
  font-family: var(--lf-font-display);
  font-weight: 900;
  font-size: 44px;
  letter-spacing: -1.2px;
  color: #FFFFFF;
  line-height: 1;
}
