/* Values measured from linktr.ee/chisaicos (custom theme: FILL buttons, ROUNDED_LG, SHADOW_SM). */
:root {
  --bg: #dd9da3;
  --bg-dim: #c28a8f;
  --tint: rgba(0, 0, 0, 0.4);
  --text: #ffffff;
  --btn: #2f1241;
  --btn-hover: color-mix(in srgb, #2f1241 90%, #ffffff);
  --btn-radius: 16px;
  --btn-inner-radius: 8px;
  --btn-shadow:
    0.3px 0.5px 0.7px rgba(17, 17, 17, 0.02),
    0.9px 1.8px 2.5px -0.6px rgba(17, 17, 17, 0.027),
    2px 4px 5.5px -1.2px rgba(17, 17, 17, 0.03),
    4.6px 9.3px 12.8px -1.7px rgba(17, 17, 17, 0.035);
  --gap: 14px;
  --card-max: 580px;
  --font: "IBM Plex Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-dim);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ---------- Backgrounds ---------- */
.backdrop { display: none; }
.tint { position: absolute; inset: 0; background: var(--tint); }

.card-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg) url("assets/bg-poster.jpg") center / cover no-repeat;
}
.card-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
  }
  .backdrop-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    filter: blur(16px);
    opacity: 0.5;
  }
  .card-bg {
    left: 50%;
    width: min(var(--card-max), 100vw);
    transform: translateX(-50%);
  }
}

/* ---------- Card ---------- */
.card {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: var(--card-max);
  min-height: 100vh;
  min-height: 100lvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .card {
    margin-top: 40px;
    min-height: calc(100lvh - 40px);
    border-radius: 24px 24px 0 0;
    /* clip-path (unlike overflow) also clips the fixed video layer to the card shape */
    clip-path: inset(0 round 24px 24px 0 0);
    box-shadow: 0 24px 32px rgba(0, 0, 0, 0.15);
  }
}

/* ---------- Top buttons ---------- */
.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  height: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 calc(var(--gap) * 2);
}
.icon-btn {
  margin-top: 12px;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(0, 0, 0, 0.12);
  -webkit-backdrop-filter: blur(16px) brightness(0.72);
  backdrop-filter: blur(16px) brightness(0.72);
  outline: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s;
}
.icon-btn:hover { background: rgba(0, 0, 0, 0.25); }

/* ---------- Profile ---------- */
.profile {
  padding-top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.avatar-slot { width: 96px; height: 96px; margin: 8px 0 16px; }
.name {
  margin: 0 24px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
}
.bio {
  margin: 4px 0 0;
  padding: 0 calc(var(--gap) * 3);
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  text-wrap: balance;
}

/* ---------- Links ---------- */
.links {
  margin-top: 32px;
  padding: 0 calc(var(--gap) * 2) 16px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.group { display: flex; flex-direction: column; gap: var(--gap); }
.group + .group { padding-top: var(--gap); }
.group-title {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  text-align: center;
}

.link {
  position: relative;
  border-radius: var(--btn-radius);
  background: var(--btn);
  box-shadow: var(--btn-shadow);
  transition: background 0.15s;
}
.link:hover { background: var(--btn-hover); }
.link.locked { margin-bottom: var(--gap); }
.link-main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  padding: 12px 32px;
  text-align: center;
  letter-spacing: -0.2px;
}
.link.has-thumb .link-main { padding: 12px 64px; }
.link-label {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 500;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 640px) { .link-label { font-size: 16px; } }

.thumb {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 48px;
  height: 48px;
  border-radius: var(--btn-inner-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .mask-icon {
  width: 32px;
  height: 32px;
  background: currentColor;
  -webkit-mask: var(--icon) center / 100% no-repeat;
  mask: var(--icon) center / 100% no-repeat;
}

.link-action {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.15s, background 0.15s;
}
.link-action:hover { opacity: 1; background: rgba(0, 0, 0, 0.1); }
.link-action.badge { opacity: 1; pointer-events: none; }
.link-action.badge svg { width: 20px; height: 20px; transform: scale(0.9); }
.link.unlocked .link-action.badge { opacity: 0.7; }

/* ---------- Featured 18+ destination ---------- */
.feature {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--btn-radius);
  overflow: hidden;
  background: var(--btn);
  box-shadow: var(--btn-shadow);
  text-align: left;
}
.feature > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.4s ease;
}
.feature:hover > img { transform: scale(1.03); }
.feature-body {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 48px 16px 16px;
  background: linear-gradient(to top, rgba(20, 6, 30, 0.92) 0%, rgba(20, 6, 30, 0.55) 60%, transparent);
}
.feature-title { font-size: 20px; line-height: 1.2; font-weight: 700; }
.feature-blurb { font-size: 14px; line-height: 1.3; opacity: 0.85; }
.feature-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--btn);
  font-size: 14px;
  font-weight: 600;
  animation: pop 2s linear infinite;
}
.feature-cta svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .feature-cta { animation: none; } }

@keyframes pop {
  0% { transform: scale(1); }
  12.5% { transform: scale(1.05); }
  25% { transform: scale(1); }
}
.link.pop { animation: pop 2s linear infinite; }
.link.pop:active { animation: none; }
@media (prefers-reduced-motion: reduce) { .link.pop { animation: none; } }

/* ---------- Gallery: one photo per look ---------- */
.looks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.look {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--btn-radius);
  overflow: hidden;
  background: var(--btn);
  box-shadow: var(--btn-shadow);
  text-align: left;
}
.look img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.look:hover img { transform: scale(1.03); }
.look-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--btn);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  pointer-events: none;
}
.look-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 32px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  pointer-events: none;
}
.look-name { display: block; font-size: 15px; line-height: 1.2; font-weight: 600; }
.look-from { display: block; margin-top: 3px; font-size: 13px; line-height: 1.2; opacity: 0.8; }
.looks-empty { text-align: center; font-size: 14px; line-height: 1.4; opacity: 0.8; }

/* ---------- Footer ---------- */
.footer {
  margin-top: auto;
  padding: 80px 16px 24px;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

/* ---------- 18+ sheet ---------- */
.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.6);
}
@media (min-width: 640px) { .sheet-scrim { align-items: center; } }
.sheet {
  width: 100%;
  max-width: 480px;
  padding: 32px 24px 24px;
  border-radius: 32px;
  background: #fbfaf9;
  color: #000;
  box-shadow: 0 16px 32px 4px rgba(0, 0, 0, 0.12);
  text-align: center;
  line-height: 1.4;
}
.sheet h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; line-height: 1.35; }
.sheet p { margin: 0 0 20px; font-size: 15px; color: #444; }
.inapp-help { text-align: left; font-size: 15px; color: #333; margin-bottom: 8px; }
.inapp-help p { margin-bottom: 8px; }
.inapp-help ol { margin: 0 0 16px; padding-left: 20px; }
.inapp-help li { margin-bottom: 4px; }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; }
.sheet-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
}
.sheet-btn.primary { background: var(--btn); color: #fff; }
.sheet-btn.secondary { background: #e7e5e4; color: #000; }
.sheet-btn:focus-visible, .link-main:focus-visible, .feature:focus-visible, .lb-set:focus-visible, .look:focus-visible, .icon-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 4, 14, 0.94);
  touch-action: pan-y;
}
.lb-figure { margin: 0; max-width: min(92vw, 720px); text-align: center; }
.lb-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  margin: 0 auto;
  border-radius: 12px;
  object-fit: contain;
}
.lb-figure figcaption { margin-top: 14px; font-size: 16px; line-height: 1.3; font-weight: 600; }
.lb-figure figcaption span { display: block; font-size: 14px; font-weight: 400; opacity: 0.75; }
.lb-set {
  margin-top: 14px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--btn);
  font-size: 15px;
  font-weight: 600;
}
.lb-btn {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 639px) { .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Max page ---------- */
.feature-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ff3d7f;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-top: var(--gap);
}
.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.15s;
}
.social-icon:hover { background: rgba(0, 0, 0, 0.4); }
.social-icon .mask-icon {
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--icon) center / 100% no-repeat;
  mask: var(--icon) center / 100% no-repeat;
}

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  width: min(var(--card-max), 100%);
  padding: 12px calc(var(--gap) * 2) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(10, 4, 14, 0.85), rgba(10, 4, 14, 0));
  transform: translate(-50%, 110%);
  transition: transform 0.25s ease;
  pointer-events: none;
}
.sticky-cta.show { transform: translate(-50%, 0); pointer-events: auto; }
.sticky-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 999px;
  background: #fff;
  color: var(--btn);
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.sticky-btn svg { width: 18px; height: 18px; }
body.has-sticky .footer { padding-bottom: 96px; }

/* Entry gate (max page): opaque, not dismissible by tapping outside. */
.sheet-scrim.entry {
  align-items: center;
  background: rgba(10, 4, 14, 0.7);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

/* Socials under the bio: plain white icons, like Linktree's social icon row. */
.social-row.top { margin-top: 12px; padding-top: 0; gap: 2px; }
.social-row.top .social-icon {
  width: 40px;
  height: 40px;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.social-row.top .social-icon:hover { background: rgba(0, 0, 0, 0.15); }
.social-row.top .social-icon .mask-icon { width: 26px; height: 26px; }

/* Socials inside the /vip/ entry gate (light sheet). */
.gate-socials { margin-top: 20px; padding-top: 16px; border-top: 1px solid #e7e5e4; }
.gate-socials p { margin: 0 0 10px; font-size: 14px; color: #555; }
.gate-socials .social-row { padding-top: 0; gap: 8px; flex-wrap: nowrap; }
.gate-socials .social-icon { width: 40px; height: 40px; flex: none; }
.gate-socials .social-icon {
  background: #efecea;
  color: var(--btn);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.gate-socials .social-icon:hover { background: #e2deda; }

/* Featured card without a cover photo (compact, brand gradient). */
.feature.no-cover {
  aspect-ratio: auto;
  background: linear-gradient(135deg, #5b2380 0%, #2f1241 55%, #7a1f52 100%);
}
.feature.no-cover:hover { filter: brightness(1.08); }
.feature.no-cover .feature-body {
  position: relative;
  inset: auto;
  padding: 18px 92px 18px 18px;
  background: none;
}
.feature.no-cover .feature-badge { position: static; align-self: flex-start; margin-bottom: 4px; }
.feature.no-cover .thumb {
  left: auto;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 12px;
}
.feature.no-cover .thumb .mask-icon { width: 36px; height: 36px; }

/* Secondary offer under a featured card ("or All Access 50% off"). */
.feature-wrap { display: flex; flex-direction: column; gap: 8px; }
.feature-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(20, 6, 30, 0.45);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.15s;
}
.feature-alt:hover { background: rgba(20, 6, 30, 0.65); }
.feature-alt svg { width: 16px; height: 16px; }
.feature-alt:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Price anchor inside a featured card. */
.feature-price { font-size: 14px; line-height: 1.3; opacity: 0.92; }
.feature-price s { opacity: 0.65; }
.feature-price strong { font-weight: 700; }

/* "Find what you're into" collection chips (max page). */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--btn);
  box-shadow: var(--btn-shadow);
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  transition: background 0.15s;
}
.chip:hover { background: var(--btn-hover); }

/* Customs row: price on the right instead of an icon. */
.link-action.price {
  width: auto;
  height: auto;
  padding: 4px 8px;
  opacity: 0.85;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}
.link.customs .link-main { padding-right: 88px; }

.feature-pitch { font-size: 13px; line-height: 1.3; font-weight: 600; color: #ffd1e3; }

/* Offer cards: logo inline with the title, text uses the full card width. */
.feature.logo-inline .feature-body { padding-right: 18px; }
.feature-title { display: flex; align-items: center; gap: 8px; }
.feature .thumb.mini {
  position: static;
  transform: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: none;
}
.feature .thumb.mini .mask-icon { width: 24px; height: 24px; }

/* Accent entry button (the 18+ button on the Instagram/TikTok pages). */
.link.accent {
  background: linear-gradient(135deg, #ff3d7f 0%, #b0246a 50%, #5b2380 100%);
  box-shadow: 0 6px 20px rgba(255, 61, 127, 0.35);
}
.link.accent:hover { background: linear-gradient(135deg, #ff5590 0%, #c02c76 50%, #67298f 100%); }
.link.accent .link-label { font-weight: 700; font-size: 17px; letter-spacing: 0.2px; }
