:root{--bg:#0e0f13;--fg:#f4f5f7;--card:#1a1c22;--accent:#6c7bff;--link-radius:14px;--link-border:none;--link-hover:#23262e}
*{box-sizing:border-box}

/* html carries the fallback dark background on the canvas.              */
/* body must be transparent so the fixed .page-bg div shows through.     */
html{
  background:var(--bg);
  min-height:100%;
}
body{
  margin:0;
  background:transparent;
  color:var(--fg);
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  min-height:100vh;
  overflow-x:hidden;
}

/* ── Background image ─────────────────────────────────────── */
/* Fixed div so it always fills the viewport — body background  */
/* attachment:fixed breaks on iOS Safari, this approach works   */
/* everywhere.                                                   */
.page-bg{
  position:fixed;inset:0;
  z-index:0;
  background-color:var(--bg);              /* shows through letterbox/uncovered areas */
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
}
/* Display modes */
.page-bg--cover  {background-size:cover;background-position:center center;background-repeat:no-repeat}
.page-bg--contain{background-size:contain;background-position:center center;background-repeat:no-repeat}
.page-bg--tile   {background-size:auto;background-position:top left;background-repeat:repeat}
.page-bg--top-fade{background-size:cover;background-position:top center;background-repeat:no-repeat}

/* Darkening overlay; darkness driven by --bg-ov from admin  */
.page-bg-overlay{
  position:absolute;inset:0;
  background:#000;
  opacity:var(--bg-ov, .5);
}
/* Top fade: image stays up top and dissolves into the theme colour by ~60% down. */
.page-bg--top-fade .page-bg-overlay{
  opacity:1;
  background:linear-gradient(to bottom,
    rgba(0,0,0,var(--bg-ov, .5)) 0%,
    rgba(0,0,0,var(--bg-ov, .5)) 20%,
    var(--bg) 60%);
}

/* ── Layout ───────────────────────────────────────────────── */
.lp{
  position:relative;
  z-index:1;   /* sits above the fixed background div */
  width:100%;max-width:580px;
  margin:0 auto;
  padding:clamp(28px,6vw,60px) clamp(16px,5vw,32px);
  text-align:center;
}

/* ── Media ────────────────────────────────────────────────── */
.lp-media{
  display:flex;flex-direction:column;align-items:center;
  gap:16px;margin-bottom:24px;width:100%;
}

/* Base image — shape overridden by .frame-* on <main> */
.lp-img{
  display:block;
  object-fit:cover;
}

/* No frame — width% of container, sharp corners */
.frame-none .lp-img{
  width:calc(var(--img-w, 100) * 1%);
  border-radius:0;
}
/* Square — soft rounded card: thin accent edge, depth shadow, and a subtle
   accent glow. Colours come from the active theme (--accent / --bg / --card). */
.frame-square .lp-img{
  width:calc(var(--img-w, 100) * 1%);
  border-radius:24px;
  margin-top:4px;
  box-shadow:
    0 0 0 1.5px var(--accent),
    0 18px 40px -12px rgba(0,0,0,.6),
    0 0 34px -10px var(--accent);
}
/* Round — avatar with a theme-coloured ring (image → bg gap → accent ring) and
   a soft accent glow, à la a profile photo.                                     */
/* 100% → 160px diameter; 50% → 80px; calc multiplies by 1.6px                   */
.frame-round .lp-img{
  width:calc(var(--img-w, 100) * 1.6px);
  height:calc(var(--img-w, 100) * 1.6px);
  border-radius:50%;
  object-fit:cover;
  margin-top:6px;
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 0 6px var(--accent),
    0 14px 34px -10px rgba(0,0,0,.6),
    0 0 30px -6px var(--accent);
}
@media(max-width:400px){
  .frame-round .lp-img{
    width:calc(var(--img-w, 100) * 1.2px);
    height:calc(var(--img-w, 100) * 1.2px);
  }
}

/* ── Profile meta (online + location on one row, by the profile photo) ── */
.lp-online-wrap{display:flex;justify-content:center;margin-top:8px}
.lp-profile-meta{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}
/* Online and Location share the same font/size — Online sits to the left. */
.lp-location,.lp-online{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13.5px;font-weight:600;color:var(--fg);line-height:1.2;
}
.lp-loc-ic{width:14px;height:14px;flex-shrink:0;color:var(--accent)}
.lp-online-dot{
  width:9px;height:9px;border-radius:50%;
  background:#22c55e;flex-shrink:0;
  box-shadow:0 0 0 0 rgba(34,197,94,.6);
  animation:lp-online-pulse 2s infinite;
}
@keyframes lp-online-pulse{
  0%  {box-shadow:0 0 0 0 rgba(34,197,94,.55)}
  70% {box-shadow:0 0 0 7px rgba(34,197,94,0)}
  100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}
}

.lp-video{
  width:auto;max-width:100%;border-radius:14px;display:block;
  max-height:60vh;margin:0 auto;
}
.lp-yt-wrap{
  position:relative;width:100%;padding-top:56.25%;
  border-radius:14px;overflow:hidden;
}
.lp-yt{position:absolute;inset:0;width:100%;height:100%;border:0}

/* ── Slider ───────────────────────────────────────────────── */
.lp-slider { margin-bottom:24px; width:100%; }
.lp-slides { position:relative; }
.lp-slide { display:none; flex-direction:column; align-items:center; }
.lp-slide.active { display:flex; }
.lp-arrow {
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(0,0,0,.5); border:none; color:#fff;
  width:38px; height:38px; border-radius:50%;
  font-size:26px; line-height:1; cursor:pointer; z-index:2;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s; padding:0;
  -webkit-tap-highlight-color:transparent;
}
.lp-arrow:hover { background:rgba(0,0,0,.75); }
.lp-prev { left:8px; }
.lp-next { right:8px; }
.lp-dots { display:flex; gap:6px; justify-content:center; margin-top:10px; }
.lp-dot {
  width:8px; height:8px; border-radius:50%;
  background:rgba(255,255,255,.35); cursor:pointer;
  transition:background .2s, transform .2s;
}
.lp-dot.active { background:#fff; transform:scale(1.3); }

/* ── YouTube Short thumbnail card ─────────────────────────── */
.lp-yt-link {
  display:block; position:relative; width:100%;
  border-radius:14px; overflow:hidden; text-decoration:none;
}
.lp-yt-thumb { display:block; width:100%; height:auto; }
.lp-yt-play {
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.38);
  color:#fff; font-size:15px; font-weight:600;
  gap:8px; transition:background .2s;
}
.lp-yt-link:hover .lp-yt-play { background:rgba(0,0,0,.58); }

/* ── Title ────────────────────────────────────────────────── */
.lp-title{
  font-size:clamp(18px,4vw,26px);
  margin:0 0 20px;line-height:1.2;
}
.lp-title p,.lp-title h1,.lp-title h2,.lp-title h3{margin:0;line-height:1.2}
.lp-title .ql-align-center{text-align:center}
.lp-title .ql-align-right{text-align:right}
.lp-title .ql-align-justify{text-align:justify}
.lp-title .ql-size-small{font-size:.75em}
.lp-title .ql-size-large{font-size:1.5em}
.lp-title .ql-size-huge{font-size:2em}

/* Title + verified checkmark row */
.lp-title-row{
  display:flex;align-items:center;justify-content:center;
  gap:8px;flex-wrap:wrap;margin:0 0 20px;
}
.lp-title-row .lp-title{margin:0}
.lp-verified{
  display:inline-flex;flex-shrink:0;align-items:center;
  width:1.05em;height:1.05em;
  font-size:clamp(18px,4vw,26px); /* scale badge with the title */
}
.lp-verified svg{width:100%;height:100%;display:block}

/* ── Body text ────────────────────────────────────────────── */
.lp-text{
  text-align:left;
  margin-bottom:28px;
  line-height:1.75;
  font-size:clamp(14px,2.5vw,16px);
}
.lp-text h1{font-size:1.5em;margin:.6em 0 .3em}
.lp-text h2{font-size:1.25em;margin:.6em 0 .3em}
.lp-text h3{font-size:1.1em;margin:.6em 0 .3em}
.lp-text p{margin:0 0 .8em}
.lp-text a{color:var(--accent)}
.lp-text ul,.lp-text ol{padding-left:1.4em;margin:0 0 .8em}
.lp-text blockquote{
  border-left:3px solid var(--accent);
  margin:0 0 .8em;padding:.25em .8em;
  color:rgba(244,245,247,.7);
}
.lp-text strong{font-weight:600}
.lp-text em{font-style:italic}
/* Quill alignment + size classes */
.lp-text .ql-align-center{text-align:center}
.lp-text .ql-align-right{text-align:right}
.lp-text .ql-align-justify{text-align:justify}
.lp-text .ql-size-small{font-size:.75em}
.lp-text .ql-size-large{font-size:1.5em}
.lp-text .ql-size-huge{font-size:2em}

/* ── Links ────────────────────────────────────────────────── */
.lp-links{display:flex;flex-direction:column;gap:12px}
.lp-link{
  display:flex;align-items:center;gap:12px;justify-content:center;
  padding:14px 18px;
  background:var(--card);
  border-radius:var(--link-radius);
  border:var(--link-border);
  color:var(--fg);text-decoration:none;cursor:pointer;
  transition:transform .12s,background .2s,box-shadow .18s,border-color .2s;
  -webkit-tap-highlight-color:transparent;
}
.lp-link:hover{background:var(--link-hover);transform:translateY(-1px)}
.lp-link:active{transform:translateY(0)}
.lp-link .ic,.lp-link svg{width:22px;height:22px;flex:0 0 22px}

/* ── Social icons ─────────────────────────────────────────── */
.lp-socials{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:20px 0}
.lp-social-icon{
  display:flex;align-items:center;justify-content:center;
  width:46px;height:46px;border-radius:50%;
  background:var(--card);border:var(--link-border,none);
  color:var(--fg);text-decoration:none;
  transition:transform .25s cubic-bezier(.34,1.56,.64,1),background .2s,box-shadow .2s;
  flex-shrink:0;
}
.lp-social-icon:hover{
  transform:translateY(-3px) scale(1.18);
  background:var(--link-hover);
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}
.lp-social-icon svg{width:22px;height:22px}

/* ── Countdown ────────────────────────────────────────────── */
.lp-countdown{margin-top:32px;text-align:center}
.lp-countdown-title{font-size:clamp(13px,3vw,16px);font-weight:500;opacity:.75;margin:0 0 16px}
.lp-countdown-timer{display:flex;justify-content:center;align-items:flex-start;gap:6px}
.lp-cd-block{display:flex;flex-direction:column;align-items:center;gap:6px}
.lp-cd-num{
  background:var(--card);
  border:var(--link-border,none);
  border-radius:var(--link-radius,14px);
  font-size:clamp(26px,7vw,44px);
  font-weight:700;
  font-variant-numeric:tabular-nums;
  color:var(--accent);
  min-width:68px;
  padding:10px 14px;
  line-height:1;
  letter-spacing:.02em;
}
.lp-cd-label{font-size:10px;text-transform:uppercase;letter-spacing:.1em;opacity:.5}
.lp-countdown-title p,.lp-countdown-title h1,.lp-countdown-title h2,.lp-countdown-title h3{margin:0;line-height:1.3}
.lp-countdown-title .ql-align-center{text-align:center}
.lp-countdown-title .ql-align-right{text-align:right}
.lp-countdown-title .ql-align-justify{text-align:justify}
.lp-countdown-title .ql-size-small{font-size:.75em}
.lp-countdown-title .ql-size-large{font-size:1.5em}
.lp-countdown-title .ql-size-huge{font-size:2em}
.lp-cd-sep{
  font-size:clamp(22px,5vw,36px);
  font-weight:700;color:var(--accent);
  opacity:.5;padding-top:8px;line-height:1;
}

/* ── Full-width infinite carousel ────────────────────────── */
.lp-carousel-full{
  margin:20px calc(50% - 50vw);
  width:100vw;
  overflow:hidden;
}
.lp-carousel-inner{
  display:flex;
  gap:12px;
  width:max-content;
  animation:lp-carousel-scroll 35s linear infinite;  /* duration overridden inline per page */
}
/* Pause on hover only when enabled (.pause-hover on the wrapper) */
.lp-carousel-full.pause-hover .lp-carousel-inner:hover{animation-play-state:paused}
.lp-carousel-img{
  height:200px;
  width:auto;
  border-radius:8px;
  object-fit:cover;
  flex-shrink:0;
  display:block;
}
@media(max-width:480px){
  .lp-carousel-img{height:150px}
}
@keyframes lp-carousel-scroll{
  from{transform:translateX(0)}
  to{transform:translateX(-33.3333%)}
}

/* ── Confirmation modal ───────────────────────────────────── */
.lp-confirm-overlay{
  position:fixed;inset:0;z-index:100;
  background:rgba(0,0,0,.72);
  display:flex;align-items:center;justify-content:center;
  padding:16px;
}
.lp-confirm-overlay[hidden]{display:none}
.lp-confirm-box{
  background:var(--card);
  border-radius:18px;
  padding:28px 24px;
  max-width:320px;width:100%;
  text-align:center;
  box-shadow:0 8px 40px rgba(0,0,0,.6);
}
.lp-mature-icon{
  display:flex;align-items:center;justify-content:center;
  width:54px;height:54px;margin:0 auto 16px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  color:var(--accent);
}
.lp-mature-icon svg{width:30px;height:30px}
.lp-confirm-msg{margin:0 0 24px;font-size:17px;font-weight:600;line-height:1.4}
.lp-confirm-actions{display:flex;gap:10px}
.lp-confirm-btn{
  flex:1;padding:13px;border:none;border-radius:10px;
  font-size:15px;font-weight:500;cursor:pointer;
  transition:opacity .15s;
}
.lp-confirm-btn:hover{opacity:.82}
.lp-confirm-yes{background:var(--accent);color:#fff}
.lp-confirm-no{background:rgba(255,255,255,.12);color:var(--fg)}
