/* ═══════════════════════════════════════════════════════════════════
   Fans88 New Framework · v1.0.0
   抽自 new_ui/landing.html 行 26–883（去除 demo-toggle 樣式）
   共 14 大節：0 Tokens · 1 Base · 2 Nav · 3 Hamburger & Drawer
              4 Age Gate · 5 Hero · 6 Section shell · 7 Mosaic
              8 How/Steps · 9 Pricing · 10 Perks · 11 Testimonials
              12 CTA strip · 13 Footer · 14 RWD
   ═══════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════
   0 · Tokens & Reset
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: #8B2942; border-radius: 999px; }


/* ═══════════════════════════════════════
   1 · Base
   ═══════════════════════════════════════ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 66px; /* 固定 nav 高度，錨點捲動不被遮 */
  overflow-x: hidden;
}
body {
  background: #0B0810;
  color: #F6F3FB;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

/* active nav 高亮：head.php 將 $active_nav 透過 body[data-active-nav] 標記 */
body[data-active-nav="home"] [data-nav="home"],
body[data-active-nav="how"] [data-nav="how"],
body[data-active-nav="pricing"] [data-nav="pricing"],
body[data-active-nav="offline"] [data-nav="offline"],
body[data-active-nav="creator"] [data-nav="creator"] {
  color: #D89BAA;
}


/* ═══════════════════════════════════════
   2 · Nav
   ═══════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  isolation: isolate;
  height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6vw;
  background: rgba(11,8,16,.72);
  backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .3s;
}
nav.scrolled { background: rgba(11,8,16,.92); }
.nav-logo {
  display: flex; align-items: baseline; gap: 3px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; font-weight: 400; letter-spacing: -.015em;
  color: #fff;
  text-decoration: none;
}
.nav-left { display: flex; align-items: center; gap: 10px; }
.nav-logo em { font-style: italic; color: #8B2942; }
.nav-logo b { font-family: 'Inter', sans-serif; font-weight: 900; color: #fff; letter-spacing: -.03em; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.65); text-decoration: none; letter-spacing: .02em; transition: color .15s; }
.nav-links a:hover { color: #D89BAA; }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.btn-outline-sm {
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(139,41,66,.55); color: #D89BAA;
  font-size: 13px; font-weight: 700; letter-spacing: .03em; cursor: pointer;
  background: transparent; text-decoration: none; transition: all .15s;
}
.btn-outline-sm:hover { background: rgba(139,41,66,.14); }
.btn-solid-sm {
  padding: 8px 20px; border-radius: 999px;
  background: linear-gradient(135deg, #8B2942, #5C1A2C); color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: .03em; cursor: pointer;
  border: none; text-decoration: none; transition: all .15s;
  box-shadow: 0 4px 14px -4px rgba(139,41,66,.5);
}
.btn-solid-sm:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Logged-in nav cluster */
.nav-user { display: flex; align-items: center; gap: 10px; }
.nav-icon-btn {
  position: relative; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03); color: rgba(255,255,255,.75);
  cursor: pointer; transition: all .15s;
}
.nav-icon-btn:hover { background: rgba(255,255,255,.08); color: #D89BAA; border-color: rgba(139,41,66,.35); }
.nav-icon-btn svg { width: 17px; height: 17px; }
.nav-dot {
  position: absolute; top: -3px; right: -3px;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: linear-gradient(135deg, #E26D5A, #C8422E); color: #fff;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #0B0810; font-family: 'Inter', sans-serif;
}
.nav-wallet {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(139,41,66,.10); border: 1px solid rgba(139,41,66,.35);
  color: #D89BAA; font-size: 12.5px; font-weight: 700; font-family: 'JetBrains Mono', monospace;
  letter-spacing: .02em; cursor: pointer; transition: all .15s;
}
.nav-wallet:hover { background: rgba(139,41,66,.18); }
.nav-wallet svg { width: 14px; height: 14px; }

.nav-avatar-wrap { position: relative; margin-left: 4px; }
.nav-avatar {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 3px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  cursor: pointer; transition: all .15s;
}
.nav-avatar:hover { background: rgba(255,255,255,.09); border-color: rgba(139,41,66,.4); }
.ava-img {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #8B2942, #5C1A2C);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: #fff; font-size: 16px; font-weight: 500;
}
.ava-caret { font-size: 10px; color: rgba(255,255,255,.55); margin-right: 2px; }

.nav-dropdown {
  position: fixed; top: 78px; right: 6vw;
  width: 320px; padding: 10px;
  border-radius: 18px;
  background: linear-gradient(180deg, #2A1219 0%, #1A0B11 100%);
  border: 1px solid rgba(139,41,66,.28);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03);
  max-height: 78vh; overflow-y: auto;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: all .18s cubic-bezier(.2,.9,.3,1);
  z-index: 1010;
}
.nav-dropdown.open { opacity: 1; pointer-events: auto; transform: none; }
.dd-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 12px; }
.dd-ava {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #8B2942, #5C1A2C);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: #fff; font-size: 22px;
}
.dd-who .dd-name { font-size: 14.5px; font-weight: 700; color: #fff; letter-spacing: -.005em; }
.dd-who .dd-name em { font-style: normal; color: #D89BAA; }
.dd-who .dd-handle { font-size: 11px; color: rgba(255,255,255,.4); font-family: 'JetBrains Mono', monospace; margin-top: 3px; letter-spacing: .03em; }
.dd-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 10px 6px; margin: 2px 6px; border-radius: 12px; background: rgba(255,255,255,.03); }
.dd-stats > div { text-align: center; padding: 6px 4px; }
.dd-n { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px; color: #D89BAA; line-height: 1; letter-spacing: -.01em; }
.dd-l { font-size: 9.5px; color: rgba(255,255,255,.45); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-top: 4px; }
.dd-divider { height: 1px; background: rgba(255,255,255,.06); margin: 8px 4px; }
.dd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.75);
  text-decoration: none; transition: all .12s;
}
.dd-item svg { width: 15px; height: 15px; color: rgba(255,255,255,.5); flex: none; }
.dd-item:hover { background: rgba(255,255,255,.05); color: #D89BAA; }
.dd-item:hover svg { color: #8B2942; }
.dd-badge {
  margin-left: auto; padding: 2px 8px; border-radius: 999px;
  background: rgba(139,41,66,.22); color: #D89BAA;
  font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  font-family: 'JetBrains Mono', monospace;
}
.dd-badge.dd-hot { background: linear-gradient(135deg, #E26D5A, #C8422E); color: #fff; }
.dd-creator {
  background: linear-gradient(135deg, rgba(139,41,66,.18), rgba(92,26,44,.22));
  border: 1px solid rgba(139,41,66,.4);
  color: #D89BAA;
}
.dd-creator svg { color: #8B2942; }
.dd-creator .dd-arrow { margin-left: auto; font-family: 'Inter', sans-serif; font-weight: 800; }
.dd-creator:hover { background: linear-gradient(135deg, rgba(139,41,66,.28), rgba(92,26,44,.32)); }
.dd-logout { color: rgba(255,255,255,.5); }
.dd-logout:hover { color: #E26D5A; }
.dd-logout:hover svg { color: #E26D5A; }

/* ─── 手機版 nav actions（語系 / 搜尋 / 貼文），桌機預設隱藏 ─── */
.nav-mobile-actions {
  display: none;
  align-items: center;
  gap: 8px;
}
.nav-mobile-post {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #8B2942, #5C1A2C);
  color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .04em;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 12px -4px rgba(139,41,66,.5);
  transition: filter .12s, transform .12s;
}
.nav-mobile-post:hover { filter: brightness(1.08); transform: translateY(-1px); }

.nav-lang-wrap { position: relative; }
.nav-lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 160px; padding: 6px;
  border-radius: 12px;
  background: linear-gradient(180deg, #2A1219 0%, #1A0B11 100%);
  border: 1px solid rgba(139,41,66,.28);
  box-shadow: 0 18px 36px -10px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03);
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: all .16s cubic-bezier(.2,.9,.3,1);
  z-index: 110;
}
.nav-lang-menu.open { opacity: 1; pointer-events: auto; transform: none; }
.nav-lang-menu a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.75);
  text-decoration: none; transition: all .12s;
}
.nav-lang-menu a:hover { background: rgba(255,255,255,.05); color: #D89BAA; }
.nav-lang-menu a.active { color: #8B2942; background: rgba(139,41,66,.14); }


/* ═══════════════════════════════════════
   3 · Hamburger & Drawer
   ═══════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  padding: 0; margin-right: 6px;
  transition: all .15s;
}
.hamburger:hover { background: rgba(255,255,255,.07); border-color: rgba(139,41,66,.4); }
.hamburger span {
  display: block; width: 18px; height: 2px; background: rgba(255,255,255,.85);
  border-radius: 2px; transition: all .25s cubic-bezier(.2,.9,.3,1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: #D89BAA; }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: #D89BAA; }

.drawer-scrim {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(6,4,10,.65); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity .28s ease;
  visibility: hidden;
}
.drawer-scrim.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 1501;
  width: 320px; max-width: 86vw;
  background: linear-gradient(180deg, #1F0E15 0%, #0B0810 100%);
  border-right: 1px solid rgba(139,41,66,.25);
  box-shadow: 24px 0 60px -12px rgba(0,0,0,.7);
  transform: translateX(-100%);
  transition: transform .32s cubic-bezier(.2,.9,.3,1);
  display: flex; flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky; top: 0;
  background: linear-gradient(180deg, #1F0E15 80%, rgba(31,14,21,0));
  z-index: 2;
}
.drawer-logo {
  font-family: 'Cormorant Garamond', serif; font-size: 28px;
  color: #fff; text-decoration: none; display: flex; align-items: baseline; gap: 2px;
}
.drawer-logo em { font-style: italic; color: #8B2942; }
.drawer-logo b { font-family: 'Inter', sans-serif; font-weight: 900; }
.drawer-close {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.7); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.drawer-close:hover { background: rgba(255,255,255,.08); color: #D89BAA; border-color: rgba(139,41,66,.4); }
.drawer-close svg { width: 18px; height: 18px; }

/* user card (logged in) */
.drawer-user {
  padding: 16px 16px 18px; margin: 14px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(139,41,66,.18) 0%, rgba(92,26,44,.22) 100%);
  border: 1px solid rgba(139,41,66,.35);
}
.du-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.du-name { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.005em; }
.du-name em { font-style: normal; color: #D89BAA; }
.du-handle { font-size: 11px; color: rgba(255,255,255,.5); font-family: 'JetBrains Mono', monospace; margin-top: 3px; letter-spacing: .03em; }
.du-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 10px 6px; border-radius: 10px; background: rgba(0,0,0,.25); }
.du-stats > div { text-align: center; padding: 4px 2px; }

/* guest CTAs */
.drawer-guest {
  padding: 0 16px; margin: 16px 0 6px;
  display: flex; gap: 8px;
}

.drawer-section { padding: 10px 10px; }
.drawer-label {
  padding: 6px 12px 8px;
  font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 700; color: rgba(216,155,170,.7);
}
.drawer-item {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 14px; margin-bottom: 2px;
  border-radius: 11px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.78);
  text-decoration: none; transition: all .12s;
}
.drawer-item svg { width: 17px; height: 17px; color: rgba(255,255,255,.45); flex: none; }
.drawer-item:hover, .drawer-item:active {
  background: rgba(255,255,255,.05); color: #D89BAA;
}
.drawer-item:hover svg { color: #8B2942; }
.drawer-item .dd-badge { margin-left: auto; }
.drawer-item.dd-logout { color: rgba(255,255,255,.5); }
.drawer-item.dd-logout:hover { color: #E26D5A; background: rgba(226,109,90,.08); }
.drawer-item.dd-logout:hover svg { color: #E26D5A; }
.drawer-divider { height: 1px; background: rgba(255,255,255,.06); margin: 6px 10px; }

.drawer-foot {
  margin-top: auto; padding: 18px 20px 22px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.drawer-legal { font-size: 11px; color: rgba(255,255,255,.35); font-family: 'JetBrains Mono', monospace; letter-spacing: .04em; }
.drawer-legal a { color: rgba(255,255,255,.5); text-decoration: none; }
.drawer-legal a:hover { color: #D89BAA; }

/* auth-state visibility inside drawer is toggled by JS via body[data-auth] */
body[data-auth="guest"] .drawer-user,
body[data-auth="guest"] .drawer .dr-auth { display: none; }
body[data-auth="user"] .drawer-guest { display: none; }


/* ═══════════════════════════════════════
   4 · Age Gate
   ═══════════════════════════════════════ */
.age-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px;
  overflow-y: auto;
  animation: agFadeIn .35s ease;
}
@media (min-height: 720px) {
  .age-gate { align-items: center; }
}
.age-gate.closing { animation: agFadeOut .25s ease forwards; }
@keyframes agFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes agFadeOut { to { opacity: 0; visibility: hidden; } }
.age-gate-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 30%, rgba(139,41,66,.6) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 75% 75%, rgba(216,155,170,.32) 0%, transparent 60%),
    rgba(6, 4, 10, .88);
  backdrop-filter: blur(20px) saturate(1.3);
}
.age-gate-card {
  position: relative; z-index: 2;
  max-width: 520px; width: 100%;
  margin: auto 0;
  padding: 40px 38px 32px;
  border-radius: 24px;
  background: linear-gradient(165deg, #2A1219 0%, #14070C 100%);
  border: 1px solid rgba(139,41,66,.4);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 1px rgba(139,41,66,.12);
  animation: agSlide .4s cubic-bezier(.2,.9,.3,1);
}
@keyframes agSlide { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.ag-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(139,41,66,.18); border: 1px solid rgba(139,41,66,.5);
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  color: #D89BAA; margin-bottom: 22px;
}
.ag-eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: #8B2942; animation: pulse 1.6s infinite; }
.ag-logo { font-family: 'Cormorant Garamond', serif; font-size: 34px; color: #fff; margin-bottom: 18px; display: flex; align-items: baseline; gap: 2px; }
.ag-logo em { font-style: italic; color: #8B2942; }
.ag-logo b { font-family: 'Inter', sans-serif; font-weight: 900; }
.ag-title {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 38px; font-weight: 400; color: #fff;
  line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px;
}
.ag-title em { color: #8B2942; }
.ag-desc { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.75; margin-bottom: 22px; }
.ag-desc b { color: #D89BAA; font-weight: 600; }
.ag-rules { list-style: none; padding: 16px 18px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); margin-bottom: 24px; }
.ag-rules li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.6; padding: 5px 0; }
.ag-rules li svg { width: 14px; height: 14px; color: #8B2942; flex: none; margin-top: 3px; }
.ag-ctas { display: flex; gap: 12px; margin-bottom: 18px; }
.ag-ctas .btn-hero-primary { flex: 1; padding: 14px 24px; font-size: 14px; justify-content: center; }
.ag-ctas .btn-hero-secondary { padding: 14px 20px; font-size: 13px; }
.ag-foot { text-align: center; font-size: 11.5px; color: rgba(255,255,255,.4); letter-spacing: .02em; }
.ag-foot a { color: #8B2942; text-decoration: none; }
.ag-foot a:hover { color: #D89BAA; }


/* ═══════════════════════════════════════
   5 · Hero
   ═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 6vw 80px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 100% 70% at 50% 0%, rgba(107,63,160,.55) 0%, transparent 65%),
    radial-gradient(ellipse 70% 60% at 15% 85%, rgba(200,162,75,.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 85% 90%, rgba(83,45,130,.4) 0%, transparent 55%),
    #0B0810;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.012) 22px 23px);
}
/* floating orbs */
.orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px); opacity: .35;
}
.orb-1 { width: 600px; height: 600px; top: -200px; left: -100px; background: #6B3FA0; }
.orb-2 { width: 400px; height: 400px; bottom: -100px; right: -80px; background: #C8A24B; opacity: .25; }
.orb-3 { width: 300px; height: 300px; top: 40%; left: 60%; background: #532D82; opacity: .4; }

.hero-eyebrow {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(200,162,75,.1); border: 1px solid rgba(200,162,75,.35);
  font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: #E8D08A; margin-bottom: 28px;
}
.hero-eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: #C8A24B; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:.5}50%{opacity:1} }

.hero h1 {
  position: relative; z-index: 2;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 400; line-height: 1.0; letter-spacing: -.025em;
  color: #fff; max-width: 960px; margin-bottom: 24px;
}
.hero h1 em { font-style: italic; color: #C8A24B; }
.hero h1 strong { font-weight: 500; }

.hero-sub {
  position: relative; z-index: 2;
  font-size: clamp(15px, 2vw, 18px); color: rgba(255,255,255,.65);
  line-height: 1.75; max-width: 620px; margin-bottom: 44px;
  font-weight: 400; letter-spacing: .02em;
}
.hero-sub b { color: #E8D08A; font-weight: 600; }

.hero-ctas { position: relative; z-index: 2; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 56px; }
.btn-hero-primary {
  padding: 16px 36px; border-radius: 999px;
  background: linear-gradient(135deg, #E8D08A 0%, #C8A24B 45%, #8E6F26 100%);
  color: #18111F; font-size: 16px; font-weight: 800; letter-spacing: .04em;
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: 0 12px 36px -10px rgba(200,162,75,.55);
  display: inline-flex; align-items: center; gap: 9px; transition: all .15s;
}
.btn-hero-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 18px 44px -12px rgba(200,162,75,.65); }
.btn-hero-secondary {
  padding: 16px 34px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.9);
  font-size: 15px; font-weight: 700; letter-spacing: .04em;
  background: transparent; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px; transition: all .15s;
  backdrop-filter: blur(8px);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); }

/* hero stats — gallery hero only（避免 hijack creator_profile 的 .hero-stats）*/
.hero-gal .hero-stats {
  position: relative; z-index: 2;
  display: flex; gap: 0; flex-wrap: wrap; justify-content: center;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; background: rgba(255,255,255,.04); backdrop-filter: blur(12px);
  overflow: hidden;
}
.hero-gal .h-stat {
  padding: 18px 36px; border-right: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
.hero-gal .h-stat:last-child { border-right: none; }
.hero-gal .h-stat .n {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 38px; font-weight: 400; color: #E8D08A; letter-spacing: -.01em; line-height: 1;
}
.hero-gal .h-stat .l { font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin-top: 5px; }


/* ═══════════════════════════════════════
   6 · Section shell
   ═══════════════════════════════════════ */
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: #C8A24B; margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.section-eyebrow::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(200,162,75,.4), transparent); max-width: 120px; }
.section-title {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(36px, 5vw, 60px); font-weight: 400; letter-spacing: -.015em;
  line-height: 1.1; color: #fff; margin-bottom: 12px;
}
.section-title strong { font-style: normal; }
.section-sub { font-size: 15px; color: rgba(255,255,255,.55); line-height: 1.7; max-width: 480px; margin-bottom: 52px; }


/* ═══════════════════════════════════════
   7 · Mosaic
   ═══════════════════════════════════════ */
.mosaic-section {
  padding: 100px 6vw;
  background:
    radial-gradient(ellipse 80% 60% at 0% 50%, rgba(107,63,160,.2) 0%, transparent 60%),
    #0F0B15;
  position: relative; overflow: hidden;
}
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 12px;
}
.mc { border-radius: 18px; overflow: hidden; position: relative; cursor: pointer; transition: transform .2s; display: block; text-decoration: none; color: inherit; }
.mc:hover { transform: scale(1.015); }
.mc:hover .mc-info { opacity: 1; pointer-events: auto; visibility: visible; }
.mc-1 { grid-column: 1 / 5; grid-row: 1 / 2; }
.mc-2 { grid-column: 5 / 8; grid-row: 1 / 3; }
.mc-3 { grid-column: 8 / 10; grid-row: 1 / 2; }
.mc-4 { grid-column: 10 / 13; grid-row: 1 / 2; }
.mc-5 { grid-column: 1 / 3; grid-row: 2 / 3; }
.mc-6 { grid-column: 3 / 5; grid-row: 2 / 3; }
.mc-7 { grid-column: 8 / 10; grid-row: 2 / 3; }
.mc-8 { grid-column: 10 / 13; grid-row: 2 / 3; }

.mc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mc-grad { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11,8,16,.85) 100%); }
.mc-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 18px; opacity: 0; transition: opacity .2s, visibility .2s; pointer-events: none; visibility: hidden; }
.mc-name { font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.mc-name svg { width: 13px; height: 13px; color: #C8A24B; }
.mc-sub { font-size: 11px; color: rgba(255,255,255,.65); font-family: 'JetBrains Mono', monospace; margin-top: 3px; letter-spacing: .03em; }
.mc-badge { position: absolute; top: 14px; left: 14px; padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .1em; backdrop-filter: blur(10px); }
.mb-new { background: rgba(200,162,75,.85); color: #18111F; }
.mb-hot { background: rgba(226,109,90,.85); color: #fff; }
.mb-gold { background: linear-gradient(135deg, rgba(200,162,75,.9), rgba(142,111,38,.9)); color: #18111F; }

/* mosaic gradients (若無圖時 fallback 使用) */
.g-1 { background: radial-gradient(70% 70% at 25% 30%, rgba(200,162,75,.6), transparent 60%), linear-gradient(155deg, #18111F, #3D1F63 60%, #6B3FA0); }
.g-2 { background: radial-gradient(60% 60% at 80% 80%, rgba(200,162,75,.4), transparent 60%), linear-gradient(160deg, #0B0810, #532D82 70%, #8E66BE); }
.g-3 { background: linear-gradient(155deg, #3D1F63, #18111F 80%); }
.g-4 { background: radial-gradient(70% 60% at 20% 80%, rgba(107,63,160,.6), transparent 60%), linear-gradient(135deg, #18111F, #2E1044); }
.g-5 { background: linear-gradient(145deg, #6B3FA0, #C8A24B 120%); }
.g-6 { background: radial-gradient(60% 80% at 70% 20%, rgba(142,102,190,.5), transparent 55%), linear-gradient(160deg, #18111F, #3D1F63); }
.g-7 { background: linear-gradient(135deg, #532D82, #18111F); }
.g-8 { background: radial-gradient(70% 60% at 30% 70%, rgba(200,162,75,.35), transparent 55%), linear-gradient(155deg, #18111F, #3D1F63 60%); }

/* label inside each mosaic */
.mc-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(32px, 5vw, 60px); font-weight: 400; color: rgba(255,255,255,.15);
  letter-spacing: -.02em; user-select: none;
}


/* ═══════════════════════════════════════
   8 · How / Steps
   ═══════════════════════════════════════ */
.how {
  padding: 100px 6vw;
  background: #0B0810;
  position: relative;
}
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px;
}
.step-card {
  padding: 32px 28px; border-radius: 20px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  position: relative; overflow: hidden; transition: all .2s;
}
.step-card:hover { background: rgba(255,255,255,.05); border-color: rgba(200,162,75,.3); }
.step-card::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(107,63,160,.3), transparent 60%);
}
.step-n {
  font-family: 'JetBrains Mono', monospace; font-size: 60px; font-weight: 700;
  color: rgba(200,162,75,.15); line-height: 1; letter-spacing: -.04em; margin-bottom: 20px;
}
.step-ico {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(200,162,75,.2), rgba(200,162,75,.05));
  border: 1px solid rgba(200,162,75,.3);
  display: flex; align-items: center; justify-content: center; color: #C8A24B;
}
.step-ico svg { width: 22px; height: 22px; }
.step-title { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -.01em; margin-bottom: 10px; }
.step-desc { font-size: 13.5px; color: rgba(255,255,255,.55); line-height: 1.75; }


/* ═══════════════════════════════════════
   9 · Pricing
   ═══════════════════════════════════════ */
.pricing-section {
  padding: 100px 6vw;
  background: linear-gradient(180deg, #0B0810 0%, #12091C 100%);
}
.price-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.price-card {
  padding: 32px 28px; border-radius: 20px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  transition: all .2s; position: relative; overflow: hidden;
}
.price-card.featured {
  background: linear-gradient(160deg, #1C1133 0%, #3D1F63 100%);
  border-color: rgba(200,162,75,.4);
  box-shadow: 0 0 0 1px rgba(200,162,75,.15), 0 30px 60px -20px rgba(61,31,99,.5);
}
.price-card.featured::before {
  content: '✦ 最划算';
  position: absolute; top: -1px; right: 24px;
  padding: 5px 14px; border-radius: 0 0 12px 12px;
  background: linear-gradient(135deg, #C8A24B, #8E6F26); color: #18111F;
  font-size: 10.5px; font-weight: 800; letter-spacing: .14em;
}
.pc-tier { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: #C8A24B; margin-bottom: 14px; }
.pc-price { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 52px; color: #fff; line-height: 1; letter-spacing: -.02em; }
.pc-price small { font-family: 'Inter', sans-serif; font-style: normal; font-size: 14px; color: rgba(255,255,255,.5); font-weight: 600; margin-left: 4px; }
.pc-orig { font-size: 13px; color: rgba(255,255,255,.35); text-decoration: line-through; font-family: 'JetBrains Mono', monospace; margin-top: 4px; }
.pc-save { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; padding: 3px 9px; border-radius: 6px; background: rgba(200,162,75,.15); color: #E8D08A; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.pc-divider { height: 1px; background: rgba(255,255,255,.07); margin: 22px 0; }
.pc-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: 10px; }
.pc-feature svg { width: 14px; height: 14px; color: #C8A24B; flex: none; margin-top: 2px; }
.pc-cta {
  margin-top: 24px; width: 100%; padding: 14px; border-radius: 12px;
  font-size: 14px; font-weight: 800; letter-spacing: .04em; cursor: pointer; border: none;
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .15s;
}
.pc-cta-default { background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.12); }
.pc-cta-default:hover { background: rgba(255,255,255,.12); }
.pc-cta-featured { background: linear-gradient(135deg, #E8D08A, #C8A24B 50%, #8E6F26); color: #18111F; box-shadow: 0 8px 24px -8px rgba(200,162,75,.5); }
.pc-cta-featured:hover { transform: translateY(-1px); filter: brightness(1.06); }


/* ═══════════════════════════════════════
   10 · Perks
   ═══════════════════════════════════════ */
.perks-section {
  padding: 100px 6vw;
  background:
    radial-gradient(ellipse 80% 70% at 100% 50%, rgba(107,63,160,.25) 0%, transparent 65%),
    #0F0B15;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.perks-list { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }
.perk {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  transition: all .15s;
}
.perk:hover { background: rgba(255,255,255,.05); border-color: rgba(200,162,75,.2); }
.perk-ico {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, rgba(200,162,75,.25), rgba(200,162,75,.05));
  border: 1px solid rgba(200,162,75,.25);
  display: flex; align-items: center; justify-content: center; color: #C8A24B;
}
.perk-ico svg { width: 18px; height: 18px; }
.perk-t { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -.005em; margin-bottom: 5px; }
.perk-s { font-size: 12.5px; color: rgba(255,255,255,.5); line-height: 1.65; }

/* right income chart */
.income-card {
  padding: 30px; border-radius: 22px;
  background: linear-gradient(160deg, #1C1133 0%, #2E1044 100%);
  border: 1px solid rgba(200,162,75,.2);
  box-shadow: 0 30px 60px -20px rgba(61,31,99,.5);
  position: relative; overflow: hidden;
}
.income-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,162,75,.2), transparent 65%);
}
.ic-kicker { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: #C8A24B; font-weight: 700; }
.ic-title { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 28px; color: #fff; margin-top: 6px; margin-bottom: 22px; }
.ic-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; }
.ic-month { font-size: 11px; color: rgba(255,255,255,.4); font-family: 'JetBrains Mono', monospace; letter-spacing: .06em; }
.bars-area { display: flex; align-items: flex-end; gap: 7px; height: 120px; margin-bottom: 18px; }
.bar-w {
  flex: 1; border-radius: 6px 6px 0 0; min-height: 8px;
  background: linear-gradient(180deg, #C8A24B 0%, #8E6F26 100%);
  opacity: .75; transition: opacity .15s; cursor: pointer; position: relative;
}
.bar-w:hover { opacity: 1; }
.bar-w.hi { opacity: 1; box-shadow: 0 -4px 14px -4px rgba(200,162,75,.6); }
.total-row { display: flex; align-items: baseline; gap: 6px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; }
.total-ccy { font-size: 14px; color: rgba(255,255,255,.5); font-weight: 700; }
.total-n { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 44px; color: #E8D08A; letter-spacing: -.02em; line-height: 1; }
.total-l { font-size: 11.5px; color: rgba(255,255,255,.5); font-family: 'JetBrains Mono', monospace; letter-spacing: .04em; margin-left: 4px; }
.pct-row { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.pct-chip { padding: 5px 12px; border-radius: 8px; font-size: 11.5px; font-family: 'JetBrains Mono', monospace; font-weight: 700; letter-spacing: .04em; }
.pct-on { background: rgba(200,162,75,.15); color: #E8D08A; border: 1px solid rgba(200,162,75,.25); }
.pct-off { background: rgba(255,255,255,.04); color: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.06); }


/* ═══════════════════════════════════════
   11 · Testimonials
   ═══════════════════════════════════════ */
.testimonials { padding: 100px 6vw; background: #0B0810; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.testi-card {
  padding: 26px 24px; border-radius: 18px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
}
.testi-card.hi { border-color: rgba(200,162,75,.3); background: linear-gradient(180deg, rgba(200,162,75,.06) 0%, rgba(255,255,255,.02) 100%); }
.testi-stars { color: #C8A24B; font-size: 14px; letter-spacing: 3px; margin-bottom: 14px; }
.testi-q { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.75; font-style: italic; font-family: 'Cormorant Garamond', serif; font-size: 17px; margin-bottom: 18px; }
.testi-q::before { content: '\201C'; color: #C8A24B; font-size: 24px; margin-right: 2px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-ava { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(200,162,75,.35); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 18px; color: #18111F; }
.testi-name { font-size: 14px; font-weight: 700; color: #fff; }
.testi-role { font-size: 11px; color: rgba(255,255,255,.4); font-family: 'JetBrains Mono', monospace; margin-top: 2px; letter-spacing: .04em; }


/* ═══════════════════════════════════════
   12 · CTA strip
   ═══════════════════════════════════════ */
.cta-strip {
  padding: 100px 6vw; text-align: center;
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(107,63,160,.45) 0%, transparent 65%),
    #0B0810;
  position: relative; overflow: hidden;
}
.cta-strip::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(255,255,255,.01) 22px 23px); }
.cta-strip h2 {
  position: relative; z-index: 2;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(40px, 6vw, 80px); font-weight: 400; letter-spacing: -.02em;
  line-height: 1.1; color: #fff; max-width: 760px; margin: 0 auto 18px;
}
.cta-strip h2 em { color: #C8A24B; }
.cta-strip p { position: relative; z-index: 2; font-size: 15px; color: rgba(255,255,255,.55); max-width: 480px; margin: 0 auto 40px; line-height: 1.7; }
.cta-strip .ctas { position: relative; z-index: 2; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-note { position: relative; z-index: 2; margin-top: 18px; font-size: 11.5px; color: rgba(255,255,255,.35); font-family: 'JetBrains Mono', monospace; letter-spacing: .08em; }


/* ═══════════════════════════════════════
   13 · Footer
   ═══════════════════════════════════════ */
footer {
  padding: 60px 6vw 40px;
  background: #060408;
  border-top: 1px solid rgba(255,255,255,.04);
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.f-logo { font-family: 'Cormorant Garamond', serif; font-size: 30px; color: #fff; margin-bottom: 12px; }
.f-logo em { font-style: italic; color: #C8A24B; }
.f-logo b { font-family: 'Inter', sans-serif; font-weight: 900; }
.f-tagline { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.65; max-width: 260px; }
.f-col-title { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.f-col a { display: block; font-size: 13.5px; color: rgba(255,255,255,.6); text-decoration: none; margin-bottom: 9px; transition: color .12s; }
.f-col a:hover { color: #E8D08A; }
.f-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.04); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.3); font-family: 'JetBrains Mono', monospace; letter-spacing: .04em; }
.f-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }
.f-bottom a:hover { color: #E8D08A; }
.age-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(200,162,75,.1); border: 1px solid rgba(200,162,75,.25); color: #E8D08A; font-size: 10px; font-weight: 800; letter-spacing: .14em; }


/* ═══════════════════════════════════════
   14 · RWD (900 / 768 / 480)
   ═══════════════════════════════════════ */

/* 900px — tablet / drawer breakpoint */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .drawer-scrim { visibility: visible; }
  .nav-links { display: none; }

  .mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(4, 200px); }
  .mc-1,.mc-2,.mc-3,.mc-4,.mc-5,.mc-6,.mc-7,.mc-8 { grid-column: auto; grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: 1fr; }
  .perks-section { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* 768px — phone landscape / small tablet */
@media (max-width: 768px) {
  nav { padding: 0 20px; }

  /* 手機版：隱藏 desktop 的 guest/user 區塊，改顯示 mobile-actions（語系/搜尋/貼文） */
  #navGuest, #navUser { display: none !important; }
  .nav-mobile-actions { display: flex; }

  /* Hero（padding 左右歸 0） */
  .hero { padding: 100px 0 60px; }
  .hero-eyebrow { font-size: 10px; letter-spacing: .14em; }
  .hero-ctas { flex-direction: column; align-items: center; gap: 10px; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 340px; justify-content: center; }
  .hero-gal .hero-stats { flex-direction: column; }
  .hero-gal .h-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); padding: 14px 28px; }
  .hero-gal .h-stat:last-child { border-bottom: none; }
  .hero-gal .h-stat .n { font-size: 30px; }

  /* Mosaic → 2 column grid */
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 180px); gap: 8px; }
  .mc-1,.mc-2,.mc-3,.mc-4,.mc-5,.mc-6,.mc-7,.mc-8 { grid-column: auto !important; grid-row: auto !important; }
  .mc-info { opacity: 1 !important; pointer-events: auto !important; visibility: visible !important; }
  .mc-label { font-size: 36px; }

  /* Sections（左右 padding 歸 0） */
  .mosaic-section, .how, .pricing-section, .testimonials, .cta-strip { padding: 64px 0; }
  .perks-section { padding: 64px 0; grid-template-columns: 1fr; gap: 48px; }

  /* Steps */
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step-card { padding: 24px 22px; }
  .step-n { font-size: 44px; margin-bottom: 14px; }

  /* Pricing */
  .price-row { grid-template-columns: 1fr; gap: 14px; }

  /* Perks */
  .income-card { padding: 22px 18px; }
  .bars-area { height: 90px; }
  .total-n { font-size: 36px; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr; gap: 14px; }

  /* CTA */
  .cta-strip h2 { font-size: 38px; }
  .cta-strip .ctas { flex-direction: column; align-items: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .f-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* 480px — small mobile */
@media (max-width: 480px) {
  nav { height: 58px; padding: 0 14px; }
  .btn-solid-sm, .btn-outline-sm { font-size: 12px; padding: 7px 14px; }
  .nav-mobile-actions { gap: 6px; }
  .nav-mobile-post { padding: 6px 12px; font-size: 12px; }

  .hero { padding: 90px 0 50px; }
  .hero-eyebrow { font-size: 9.5px; letter-spacing: .1em; padding: 6px 12px; }
  .hero h1 { font-size: 46px; }
  .hero-sub { font-size: 14px; }
  .hero-gal .hero-stats { border-radius: 14px; }
  .hero-gal .h-stat { padding: 12px 20px; }
  .hero-gal .h-stat .n { font-size: 26px; }
  .hero-gal .h-stat .l { font-size: 9.5px; }

  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 150px); gap: 6px; }
  .mc { border-radius: 12px; }
  .mc-badge { font-size: 9px; padding: 3px 7px; }
  .mc-name { font-size: 13px; }
  .mc-sub { font-size: 10px; }

  .mosaic-section, .how, .pricing-section, .testimonials, .cta-strip { padding: 52px 0; }
  .perks-section { padding: 52px 0; }

  .section-title { font-size: 32px; }
  .section-sub { font-size: 13.5px; }

  .price-card { padding: 24px 18px; }
  .pc-price { font-size: 44px; }

  .perk { padding: 14px 16px; gap: 12px; }
  .perk-ico { width: 36px; height: 36px; border-radius: 10px; }

  .testi-card { padding: 20px 18px; }
  .testi-q { font-size: 15px; }

  .cta-strip h2 { font-size: 32px; }

  .footer-grid { grid-template-columns: 1fr; }
  .f-logo { font-size: 24px; }

  /* Age Gate */
  .age-gate-card { padding: 28px 22px 22px; border-radius: 20px; }
  .ag-title { font-size: 28px; }
  .ag-ctas { flex-direction: column; }
  .ag-ctas .btn-hero-secondary { width: 100%; text-align: center; justify-content: center; }
}


/* ═══════════════════════════════════════
   15 · Legal Page (privacy / terms)
   ═══════════════════════════════════════ */
body.legal-page {
  background: #0B0810;
  color: #F6F3FB;
  min-height: 100vh;
}

.legal-hero {
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  margin-bottom: 32px;
}

.legal-title {
  position: relative;
  font-size: clamp(30px, 4.2vw, 40px);
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
  padding-left: 18px;
  margin: 0 0 24px;
  line-height: 1.2;
}
.legal-title::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  background: linear-gradient(180deg, #E8D08A 0%, #C8A24B 50%, #8E6F26 100%);
  border-radius: 3px;
}

.legal-intro {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .65);
  margin: 0;
}

.legal-body h2 {
  position: relative;
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  padding-left: 14px;
  margin: 48px 0 14px;
  line-height: 1.4;
}
.legal-body h2::before {
  content: '';
  position: absolute;
  left: 0; top: 5px; bottom: 5px;
  width: 2px;
  background: linear-gradient(180deg, #E8D08A, #8E6F26);
  border-radius: 2px;
}

.legal-body p {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .78);
  margin: 0 0 16px;
}

.legal-body a {
  color: #E8D08A;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .15s;
}
.legal-body a:hover { color: #fff; }

@media (max-width: 768px) {
  .legal-title { font-size: 26px; padding-left: 14px; }
  .legal-title::before { width: 2px; }
  .legal-body h2 { font-size: 17px; margin-top: 40px; }
  .legal-body p { font-size: 14px; }
}


/* ═══════════════════════════════════════
   16 · Search Page
   ═══════════════════════════════════════ */
body.search-page {
  background: #0B0810;
  color: #F6F3FB;
  min-height: 100vh;
}

.search-hero { margin-bottom: 32px; }
.search-title {
  position: relative;
  padding-left: 18px;
  font-size: clamp(30px, 4.2vw, 40px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.2;
}
.search-title::before {
  content: '';
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, #E8D08A, #C8A24B, #8E6F26);
}
.search-sub {
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  margin: 0 0 24px;
  padding-left: 18px;
}

/* Search bar — 與下方 grid 對齊，桌機吃滿 .dash-wrap 內寬 */
.search-bar {
  display: flex;
  gap: 12px;
}
.search-input-wrap {
  flex: 1;
  position: relative;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(200, 162, 75, .2);
  border-radius: 12px;
  transition: all .15s;
}
.search-input-wrap:focus-within {
  border-color: #C8A24B;
  box-shadow: 0 0 0 3px rgba(200, 162, 75, .12);
  background: rgba(255, 255, 255, .06);
}
.search-input-wrap .search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: #C8A24B;
  pointer-events: none;
}
#search-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
}
#search-input::placeholder { color: rgba(255, 255, 255, .35); }

.search-btn {
  padding: 14px 28px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #C8A24B, #8E6F26);
  color: #18111F;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  box-shadow: 0 8px 20px -10px rgba(200, 162, 75, .5);
}
.search-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.search-btn:active { transform: translateY(0); }

/* Meta (result count) */
.search-meta {
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
  margin: 32px 0 20px;
}
.search-meta b { color: #E8D08A; font-weight: 700; }

/* Grid */
.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Creator card */
.search-card {
  position: relative;
  display: block;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(200, 162, 75, .12);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all .2s;
}
.search-card:hover {
  border-color: rgba(200, 162, 75, .35);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .05);
  box-shadow: 0 12px 30px -15px rgba(200, 162, 75, .25);
}
.sc-banner {
  height: 112px;
  background-size: cover;
  background-position: center;
  background-color: #1a0f28;
  background-image: linear-gradient(135deg, #3D1F63, #6B3FA0);
}
.sc-cat {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  background: rgba(11, 8, 16, .75);
  border: 1px solid rgba(232, 208, 138, .4);
  color: #E8D08A;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sc-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(200, 162, 75, .55);
  background: linear-gradient(135deg, #C8A24B, #8E6F26);
  margin: -32px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #18111F;
  font-weight: 700;
  font-size: 22px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
}
.sc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sc-body {
  padding: 0 14px 18px;
  text-align: center;
}
.sc-name {
  font-weight: 700;
  color: #fff;
  font-size: 15px;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-bio {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 39px;
  margin: 0;
}

/* Loading */
.search-loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}
.search-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(232, 208, 138, .15);
  border-top-color: #E8D08A;
  animation: search-spin 1s linear infinite;
}
@keyframes search-spin { to { transform: rotate(360deg); } }

/* Empty / No result */
.search-empty,
.search-no-result {
  text-align: center;
  padding: 90px 20px;
  color: rgba(255, 255, 255, .5);
}
.search-empty svg,
.search-no-result svg {
  width: 48px;
  height: 48px;
  opacity: .4;
  margin: 0 auto 16px;
  display: block;
  color: #C8A24B;
}
.search-empty p,
.search-no-result p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}
.search-no-result b { color: #E8D08A; font-weight: 700; }
.search-no-result .hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .38);
}

/* Utility */
.search-page .hidden { display: none !important; }

/* RWD */
@media (max-width: 1099px) {
  .search-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  .search-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .search-bar { flex-direction: column; }
  .search-btn { width: 100%; }
  .search-title { padding-left: 14px; font-size: 26px; }
  .search-sub { padding-left: 14px; }
}
@media (max-width: 479px) {
  .search-grid { grid-template-columns: 1fr; }
  .sc-banner { height: 96px; }
}


/* ═══════════════════════════════════════
   17 · Toast (通用，搬自舊 app.css)
   ═══════════════════════════════════════ */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  z-index: 1000;
  padding: 10px 20px;
  border-radius: 999px;
  color: #18111F;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .02em;
  background: linear-gradient(135deg, #C8A24B, #8E6F26);
  border: 1px solid rgba(232, 208, 138, .45);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
  transform: translate(-50%, -180%);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast.success { background: linear-gradient(135deg, #5EBE8A, #2F7A56); color: #fff; border-color: rgba(94, 190, 138, .55); }
.toast.error   { background: linear-gradient(135deg, #E66A7A, #9A2F42); color: #fff; border-color: rgba(230, 106, 122, .55); }
.toast.info    { background: linear-gradient(135deg, #8E66BE, #532D82); color: #fff; border-color: rgba(142, 102, 190, .6); }


/* ═══════════════════════════════════════
   18 · Follower Page (我的追隨 · 追隨我的)
   ═══════════════════════════════════════ */
body.follower-page {
  min-height: 100vh;
  background:
    radial-gradient(1000px 560px at 12% -10%, rgba(107, 63, 160, .28), transparent 60%),
    radial-gradient(860px 480px at 92% 8%, rgba(200, 162, 75, .14), transparent 55%),
    #0B0810;
}

.follower-hero {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(232, 208, 138, .14);
}
.follower-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #E8D08A 0%, #C8A24B 55%, #8E6F26 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.follower-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
}
.follower-stats .stat-group { display: inline-flex; align-items: baseline; gap: 6px; }
.follower-stats .stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  color: rgba(255, 255, 255, .85);
  letter-spacing: .02em;
}
.follower-stats .stat-num-active { color: #E8D08A; }
.follower-stats .stat-label { font-size: 13px; }
.follower-stats .stat-dot { color: rgba(200, 162, 75, .45); font-weight: 700; }

/* Tabs */
/* .follower-tabs：僅覆蓋 margin，tab 樣式與 indicator 改走共用 .tabs-underline + .tabs-indicator */
.follower-tabs { margin-bottom: 20px; }

/* List */
.follower-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}
.follower-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .05);
  text-decoration: none;
  transition: all .18s;
}
.follower-row:hover {
  background: rgba(200, 162, 75, .06);
  border-color: rgba(200, 162, 75, .28);
  transform: translateX(2px);
  box-shadow: 0 6px 20px -10px rgba(200, 162, 75, .25);
}
.fr-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #C8A24B, #8E6F26);
  border: 2px solid rgba(200, 162, 75, .45);
  color: #18111F;
  font-weight: 800;
  font-size: 19px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.fr-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fr-body { flex: 1; min-width: 0; }
.fr-name {
  font-size: 15px;
  font-weight: 700;
  color: #F6F3FB;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fr-time {
  flex-shrink: 0;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255, 255, 255, .35);
  letter-spacing: .02em;
}
.fr-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.fr-unfollow-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(200, 162, 75, .12);
  color: #C8A24B;
  border: 1px solid rgba(200, 162, 75, .35);
  cursor: pointer;
  transition: all .18s;
}
.fr-unfollow-btn:hover {
  background: rgba(200, 162, 75, .22);
  color: #F0D77E;
}
.fr-unfollow-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* Empty */
.follower-empty {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255, 255, 255, .48);
}
.follower-empty svg {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: block;
  color: #C8A24B;
  opacity: .45;
}
.follower-empty p { font-size: 14px; margin: 0; }

/* Loading */
.follower-loading { display: flex; justify-content: center; padding: 60px 0; }
.follower-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(232, 208, 138, .15);
  border-top-color: #E8D08A;
  animation: search-spin 1s linear infinite;
}

/* Pagination */
.follower-pagination { padding-top: 22px; }
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.pager-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.pager-btn:hover:not(:disabled) {
  background: rgba(200, 162, 75, .12);
  border-color: rgba(200, 162, 75, .35);
  color: #E8D08A;
}
.pager-btn.is-active {
  background: linear-gradient(135deg, #C8A24B, #8E6F26);
  border-color: rgba(232, 208, 138, .6);
  color: #18111F;
  cursor: default;
  box-shadow: 0 4px 14px -5px rgba(200, 162, 75, .5);
}
.pager-btn:disabled { cursor: default; }
.pager-gap { color: rgba(255, 255, 255, .35); padding: 0 4px; }

/* Utility */
.follower-page .hidden { display: none !important; }

/* RWD */
@media (max-width: 767px) {
  .follower-title { font-size: 26px; }
  .follower-row { padding: 12px 14px; gap: 12px; }
  .fr-avatar { width: 46px; height: 46px; font-size: 17px; }
  .fr-name { font-size: 14px; }
  .fr-time { font-size: 11px; }
}
@media (max-width: 479px) {
  .follower-stats { flex-wrap: wrap; row-gap: 6px; }
  .fr-time { display: none; }
}


/* ═══════════════════════════════════════
   15 · Dashboard 通用 class（creator_invite 等 dashboard 頁）
   ═══════════════════════════════════════ */
.dash-wrap { padding: 100px 6vw 80px; }

/* PC 卡片限寬：inner card 在 ≥641px 限縮至 75vw 置中，mobile 保持全寬 */
@media (min-width: 641px) {
  .dash-wrap .pw-card,
  .dash-wrap .inv-card,
  .dash-wrap .dash-card,
  .dash-wrap .ref-list-card {
    max-width: 75vw;
  }
}

/* 長文閱讀限寬：legal 頁面的內層 820px 置中，手機端自然縮到 viewport */
.legal-inner {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.dash-title {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(28px, 4vw, 40px);
  color: #F6F3FB;
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.dash-subtitle { color: rgba(255, 255, 255, .5); font-size: 14px; margin-bottom: 32px; }

/* .dash-tabs：僅覆蓋 margin，tab 樣式與 indicator 改走共用 .tabs-underline + .tabs-indicator */
.dash-tabs { margin-bottom: 28px; }

.dash-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}

.dash-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.dash-field:last-child { margin-bottom: 0; }
.dash-label {
  color: rgba(255, 255, 255, .6);
  font-size: 12.5px;
  min-width: 72px;
  flex-shrink: 0;
  letter-spacing: .05em;
}
.dash-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #F6F3FB;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  outline: none;
  transition: .15s;
}
.dash-input:focus {
  border-color: rgba(200, 162, 75, .45);
  background: rgba(255, 255, 255, .07);
}

.dash-btn-gold {
  background: linear-gradient(135deg, #E8D08A, #C8A24B 45%, #8E6F26);
  color: #18111F;
  font-weight: 600;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: .2s;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.dash-btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.dash-btn-gold:active { transform: translateY(0); }

.dash-rules-intro { color: rgba(255, 255, 255, .72); font-size: 13.5px; margin-bottom: 14px; }
.dash-rules {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 24px;
  list-style: decimal;
}
.dash-rules li { margin-bottom: 4px; }

.ref-filters { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.ref-filter {
  padding: 7px 16px;
  font-size: 12.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: .2s;
  font-weight: 500;
}
.ref-filter:hover { color: rgba(255, 255, 255, .9); border-color: rgba(255, 255, 255, .15); }
.ref-filter.active {
  background: linear-gradient(135deg, #532D82, #6B3FA0);
  color: #F6F3FB;
  border-color: rgba(200, 162, 75, .3);
}
.ref-filter .ref-count {
  margin-left: 4px;
  opacity: .75;
  font-family: 'JetBrains Mono', monospace;
}

.ref-list-card {
  background: rgba(255, 255, 255, .02);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 14px;
  padding: 6px 20px;
  min-height: 266px;
  display: flex;
  flex-direction: column;
}
.ref-list-card > #referral-list { flex: 1; display: flex; flex-direction: column; }
.ref-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  font-weight: 600;
}
.ref-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  transition: .2s;
}
.ref-row:last-child { border-bottom: none; }
.ref-row:hover { background: rgba(255, 255, 255, .02); }
.ref-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3D1F63, #6B3FA0);
  border: 1px solid rgba(200, 162, 75, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E8D08A;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  text-transform: uppercase;
}
.ref-name {
  flex: 1;
  min-width: 0;
  color: #F6F3FB;
  font-size: 13.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ref-name-link { display: block; text-decoration: none; transition: color .15s; }
.ref-name-link:hover { color: #E8D08A; }
.ref-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: .05em;
  vertical-align: middle;
}
.ref-badge.creator {
  background: rgba(200, 162, 75, .12);
  color: #E8D08A;
  border: 1px solid rgba(200, 162, 75, .25);
}
.ref-badge.user {
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .55);
  border: 1px solid rgba(255, 255, 255, .08);
}
.ref-date {
  width: 100px;
  text-align: center;
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  flex-shrink: 0;
}
.ref-bonus {
  width: 110px;
  text-align: right;
  color: #E8D08A;
  font-size: 13.5px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  flex-shrink: 0;
}

.ref-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 40px 20px;
  color: rgba(255, 255, 255, .45);
  text-align: center;
}
.ref-empty svg {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  color: rgba(200, 162, 75, .25);
}
.ref-empty p { font-size: 13.5px; font-weight: 500; }

.ref-loading {
  color: rgba(255, 255, 255, .4);
  text-align: center;
  padding: 40px 0;
  font-size: 13px;
}
.ref-pagination { padding-top: 22px; }

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 28px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8D08A, #C8A24B 45%, #8E6F26);
  color: #18111F;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(200, 162, 75, .28);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .22s, transform .22s, filter .15s;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { filter: brightness(1.08); transform: translateY(-2px); }
.back-to-top:active { transform: translateY(0); }

/* ═══════════════════════════════════════════════════
   Tabs 共用基類 (v1.0.24, 2026-04-24)
   所有 layout_new 頁面 tabs 底線 + 動態 indicator 統一
   搭配 new_app.js 的 initTabs(id, { onChange, hasIndicator })
   ═══════════════════════════════════════════════════ */
.tabs-underline {
  position: relative;
  display: flex;
  gap: 2px;
  margin: 24px 0 18px;
  border-bottom: 1px solid rgba(200, 162, 75, .15);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-underline::-webkit-scrollbar { display: none; }
.tabs-underline .tab-item {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #B293D4;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color .15s;
}
.tabs-underline .tab-item:hover { color: #E8D08A; }
.tabs-underline .tab-item.active { color: #F6F3FB; }
.tabs-underline .tab-item.hidden { display: none; }

.tabs-indicator {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #C8A24B 0%, #E8D08A 50%, #C8A24B 100%);
  box-shadow: 0 0 12px rgba(232, 208, 138, .45);
  border-radius: 2px;
  transition: transform .24s cubic-bezier(.2, .9, .3, 1),
              width .24s cubic-bezier(.2, .9, .3, 1);
  pointer-events: none;
}

@media (max-width: 640px) {
  .dash-wrap { padding: 90px 14px 50px; }
  .dash-field { flex-wrap: wrap; gap: 8px; }
  .dash-label { min-width: 60px; font-size: 12px; }
  .dash-btn-gold { padding: 8px 14px; font-size: 12.5px; }
  .ref-list-card { min-height: 313px; }
  .ref-head .ref-date, .ref-row .ref-date { display: none; }
  .ref-bonus { width: auto; }
  .back-to-top { right: 14px; bottom: 84px; width: 40px; height: 40px; }
  .tabs-underline { margin: 18px 0 14px; }
  .tabs-underline .tab-item { padding: 9px 12px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════
   Feed post card — dark purple/gold (v1.0.25, 2026-04-24)
   套用於 view_category.php，風格對照 new_ui_rwd/feed.html
   後續 index / view / creator_profile 遷移 layout_new 可沿用
   ═══════════════════════════════════════════════════ */

/* Feed 容器 —— .dash-wrap 內再限寬 860px 置中（與 feed.html 對齊） */
.feed-narrow {
  max-width: 860px;
  margin: 0 auto;
}
.feed-head { margin: 4px 0 20px; }
.feed-head .eyebrow {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #8E66BE;
  font-weight: 600;
}
.feed-head h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 6px 0 0;
  color: #F6F3FB;
}
@media (min-width: 640px) {
  .feed-head h1 { font-size: 28px; }
}

.feed-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feed-empty {
  padding: 60px 20px;
  text-align: center;
  color: #8E66BE;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.feed-empty.hidden { display: none; }
.feed-empty svg { width: 56px; height: 56px; opacity: .5; }

.feed-sentinel {
  padding: 28px 0 12px;
  text-align: center;
  color: #8E66BE;
  font-size: 12.5px;
}
.feed-sentinel.hidden { display: none; }
.feed-sentinel .spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(200,162,75,.18);
  border-top-color: #C8A24B;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  animation: feed-spin .8s linear infinite;
}
@keyframes feed-spin { to { transform: rotate(360deg); } }

/* Post card */
.post {
  position: relative;
  background: rgba(36, 26, 48, .68);
  border: 1px solid rgba(200, 162, 75, .15);
  border-radius: 18px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.post:hover {
  border-color: rgba(200, 162, 75, .35);
  box-shadow: 0 18px 40px -20px rgba(107, 63, 160, .45);
}
.post.is-offsell .post-head,
.post.is-offsell .post-body { opacity: .55; }

.post-head {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.post-head .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 45deg, #C8A24B, #6B3FA0, #C8A24B);
  flex: none;
  display: block;
  text-decoration: none;
}
.post-head .avatar-inner {
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px solid #0B0810;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F6F3FB;
  font-weight: 700;
  font-size: 15px;
  background: linear-gradient(135deg, #6B3FA0, #3D1F63);
}
.post-head .avatar-inner img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.post-head .name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.005em;
  color: #F6F3FB;
  text-decoration: none;
  display: inline-block;
}
.post-head .name:hover { color: #E8D08A; }
.post-head .meta {
  font-size: 11px;
  color: #8E66BE;
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}

.post-body {
  padding: 0 20px 14px;
  display: block;
  color: inherit;
  text-decoration: none;
}
.post-body p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: #E5DDF2;
  letter-spacing: .01em;
  word-break: break-word;
}
.post-body .show-more {
  color: #C8A24B;
  font-size: 12px;
  margin-left: 6px;
  text-decoration: none;
}
.post-body .show-more:hover { text-decoration: underline; }

/* Media */
.media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #0B0810;
  display: block;
}
.media-carousel {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform .35s ease;
}
.media-frame {
  flex: none;
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
}
.media-frame > img,
.media-frame > video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.media-frame .video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.media-frame .video-play > div {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(11, 8, 16, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(200, 162, 75, .5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}
.media-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  transition: width .2s, background .2s;
}
.media-dots span.on { width: 18px; background: #C8A24B; }

.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(11, 8, 16, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
}
.media:hover .media-nav { opacity: 1; }
.media-nav.prev { left: 10px; }
.media-nav.next { right: 10px; }

.media-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  display: inline-block;
  min-width: 88px;
  max-width: 150px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  background: rgba(11, 8, 16, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}
.media-badge.free { background: rgba(22, 163, 74, .92); color: #fff; }
.media-badge.single { background: #C8A24B; color: #18111F; }
.media-badge.sub { background: linear-gradient(135deg, #6B3FA0, #532D82); color: #fff; }
.media-badge.follow { background: rgba(255, 255, 255, .9); color: #3D1F63; }
.media-badge.unlocked { background: rgba(22, 163, 74, .9); color: #fff; }
.media-badge.offsell { background: rgba(120, 113, 108, .9); color: #fff; }

.media-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(11, 8, 16, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}

/* Lock overlay（受限動態滿版毛玻璃） */
.lock {
  position: absolute;
  inset: 0;
  z-index: 2;
  backdrop-filter: blur(24px) saturate(1.1);
  -webkit-backdrop-filter: blur(24px) saturate(1.1);
  background: rgba(11, 8, 16, .5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 24px;
  text-align: center;
}
.lock .icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1.5px solid rgba(232, 208, 138, .5);
  background: rgba(24, 17, 31, .4);
}
.lock .icon.gold {
  background: linear-gradient(135deg, #C8A24B, #8E6F26);
  border-color: #E8D08A;
}
.lock .lock-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -.005em;
}
.lock .lock-sub {
  font-size: 12.5px;
  opacity: .82;
  margin-bottom: 14px;
  max-width: 300px;
  line-height: 1.55;
}
.lock .price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #E8D08A;
  margin-bottom: 12px;
  letter-spacing: -.01em;
}
.lock .unlock {
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .15s, filter .15s;
  white-space: nowrap;
  border: none;
  text-decoration: none;
}
.lock .unlock + .unlock { margin-top: 8px; }
.lock .unlock:hover { transform: translateY(-1px); filter: brightness(1.08); }
.lock .foot {
  font-size: 11px;
  opacity: .6;
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
}
.btn-gold {
  background: linear-gradient(135deg, #C8A24B, #E8C85C);
  color: #18111F;
  box-shadow: 0 6px 16px -6px rgba(200, 162, 75, .6);
}
.btn-purple {
  background: linear-gradient(135deg, #6B3FA0, #532D82);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgba(107, 63, 160, .6);
}
.btn-white {
  background: #fff;
  color: #3D1F63;
}

/* Action bar */
.actions {
  padding: 10px 14px;
  border-top: 1px solid rgba(200, 162, 75, .1);
  display: flex;
  align-items: center;
  gap: 4px;
}
.action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #B293D4;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-weight: 500;
  background: transparent;
  border: none;
  text-decoration: none;
}
.action:hover { background: rgba(107, 63, 160, .18); color: #E8D08A; }
.action.liked { color: #E8C85C; }
.action .n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}

/* Share modal（深色毛玻璃） */
.share-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 8, 16, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.share-modal.is-open { display: flex; }
.share-modal .dialog {
  background: rgba(36, 26, 48, .95);
  border: 1px solid rgba(200, 162, 75, .28);
  border-radius: 20px;
  padding: 26px 24px 24px;
  width: 320px;
  max-width: 100%;
  text-align: center;
  position: relative;
  color: #F6F3FB;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .65);
}
.share-modal .close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: #8E66BE;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.share-modal .close:hover { color: #E8D08A; }
.share-modal h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 18px;
  color: #F6F3FB;
}
.share-modal .row {
  display: flex;
  justify-content: center;
  gap: 28px;
}
.share-modal .opt {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 162, 75, .25);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, filter .15s;
  background: rgba(11, 8, 16, .55);
}
.share-modal .opt:hover { transform: translateY(-2px); filter: brightness(1.12); }
.share-modal .opt.x { background: #000; }
.share-modal .opt.fb { background: #1877F2; }

/* RWD tweaks for post card */
@media (max-width: 640px) {
  .feed-head h1 { font-size: 20px; }
  .feed-list { gap: 14px; }
  .post { border-radius: 14px; }
  .post-head { padding: 14px 16px; gap: 10px; }
  .post-head .avatar { width: 38px; height: 38px; }
  .post-head .name { font-size: 13.5px; }
  .post-head .meta { font-size: 10.5px; }
  .post-body { padding: 0 16px 12px; }
  .post-body p { font-size: 14px; line-height: 1.65; }
  .actions { padding: 8px 10px; }
  .action { padding: 7px 10px; font-size: 12.5px; }
  .action .n { font-size: 11.5px; }

  .lock { padding: 18px 16px; }
  .lock .icon { width: 48px; height: 48px; margin-bottom: 10px; }
  .lock .lock-title { font-size: 15px; }
  .lock .lock-sub { font-size: 12px; margin-bottom: 10px; }
  .lock .price { font-size: 20px; margin-bottom: 10px; }
  .lock .unlock { height: 38px; padding: 0 18px; font-size: 12.5px; }
  .lock .foot { font-size: 10.5px; }

  .media-nav { opacity: .7; width: 32px; height: 32px; }
  .media-badge { font-size: 9.5px; padding: 4px 10px; top: 10px; left: 10px; letter-spacing: .06em; min-width: 72px; max-width: 130px; }
  .media-counter { font-size: 9.5px; padding: 3px 8px; top: 10px; right: 10px; }
}

/* ═══════════════════════════════════════
   HERO GALLERY WALL — 雜誌封面式橫幅（抄自 new_ui/fans88_2d.html v2d）
   真實頭像版：SVG portrait 改為 <img class="gal-portrait"> + object-fit cover
   ═══════════════════════════════════════ */
.hero-gal {
  min-height: 100vh;
  position: relative; overflow: hidden;
  padding: 96px 5vw 56px;
  display: flex; flex-direction: column; justify-content: center; gap: 56px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(107,63,160,.42) 0%, transparent 65%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(200,162,75,.15) 0%, transparent 60%),
    #0B0810;
}
.hero-gal::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 48px, rgba(255,255,255,.02) 48px 49px);
}

/* masthead 刊頭 */
.gal-masthead {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 6px 18px; border-bottom: 1px solid rgba(200,162,75,.25);
  max-width: 1440px; width: 100%; margin: 0 auto;
}
.gal-mh-left, .gal-mh-right {
  display: flex; align-items: center; gap: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(232,208,138,.75); font-weight: 600;
}
.gal-mh-dot { width: 5px; height: 5px; border-radius: 50%; background: #C8A24B; }
.gal-mh-price {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 15px; letter-spacing: 0;
  text-transform: none; color: #E8D08A;
}

/* gallery wall 5 tiles */
.gal-wall {
  position: relative; z-index: 2;
  max-width: 1440px; width: 100%; margin: 0 auto;
  display: grid;
  grid-template-columns: .85fr 1fr 1.2fr 1fr .85fr;
  grid-template-rows: 1fr;
  gap: 20px;
  align-items: center;
  min-height: min(52vh, 520px);
}
.gal-tile {
  position: relative; overflow: hidden;
  border-radius: 6px;
  background: #18111F;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.75);
  border: 1px solid rgba(200,162,75,.15);
  transition: transform .4s cubic-bezier(.2,.9,.3,1), border-color .3s;
  cursor: pointer; text-decoration: none; color: inherit;
  display: block;
}
.gal-tile:hover { transform: translateY(-8px); border-color: rgba(200,162,75,.55); }
.gal-tile:hover .gal-shine { transform: translateX(240%); }

/* 漸層底：img 載入前 fallback */
.gal-tile .hv-bg { position: absolute; inset: 0; z-index: 0; }
.hv-g1 { background: radial-gradient(60% 70% at 30% 25%, rgba(200,162,75,.5) 0%, transparent 60%), linear-gradient(165deg, #1C1133 0%, #3D1F63 60%, #6B3FA0 120%); }
.hv-g2 { background: radial-gradient(70% 70% at 70% 30%, rgba(142,102,190,.55) 0%, transparent 60%), linear-gradient(155deg, #0F0815 0%, #3D1F63 70%, #532D82 120%); }
.hv-g3 { background: radial-gradient(60% 60% at 50% 80%, rgba(200,162,75,.4) 0%, transparent 60%), linear-gradient(160deg, #18111F 0%, #2E1044 60%, #6B3FA0 120%); }
.hv-g4 { background: radial-gradient(70% 70% at 50% 30%, rgba(107,63,160,.55) 0%, transparent 60%), linear-gradient(155deg, #0F0815 0%, #1C1133 60%, #3D1F63 120%); }

/* 真實頭像（取代原 SVG portrait） */
.gal-tile img.gal-portrait {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}

/* 下方暗化蒙版（讓 gal-plate 文字可讀） */
.gal-tile::after {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, transparent 28%, transparent 52%, rgba(11,8,16,.85) 100%);
  pointer-events: none;
}

/* 5 張錯落高度 */
.gal-t1 { aspect-ratio: 3/4.2; transform: translateY(28px); }
.gal-t2 { aspect-ratio: 3/4;   transform: translateY(-18px); }
.gal-t3 { aspect-ratio: 4/5.3; transform: translateY(0); }
.gal-t4 { aspect-ratio: 3/4;   transform: translateY(-18px); }
.gal-t5 { aspect-ratio: 3/4.2; transform: translateY(28px); }

/* 中央 t3 金色光環 */
.gal-t3 {
  border-color: rgba(200,162,75,.45);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(232,208,138,.35);
}

.gal-shine {
  position: absolute; top: 0; bottom: 0;
  left: -40%; width: 30%;
  background: linear-gradient(115deg, transparent 0, rgba(232,208,138,.16) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .9s cubic-bezier(.2,.9,.3,1);
  pointer-events: none; z-index: 3;
}
.gal-tag {
  position: absolute; top: 12px; left: 12px; z-index: 4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px; letter-spacing: .16em; font-weight: 700;
  color: #E8D08A; background: rgba(11,8,16,.72);
  padding: 4px 9px; border-radius: 3px; backdrop-filter: blur(4px);
  text-transform: uppercase;
}
.gal-badge {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  padding: 4px 10px; border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 10px; letter-spacing: .12em; font-weight: 800;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.gal-gold { background: linear-gradient(135deg,#E8D08A,#C8A24B); color: #18111F; }
.gal-hot  { background: linear-gradient(135deg,#E26D5A,#C8422E); color: #fff; }
.gal-new  { background: rgba(11,8,16,.7); color: #E8D08A; border: 1px solid rgba(200,162,75,.5); }
.gal-vip  { background: linear-gradient(135deg,#8E66BE,#532D82); color: #E8D08A; }
.gal-feat { background: #E8D08A; color: #18111F; letter-spacing: .18em; }

/* caption plate */
.gal-plate {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4;
  padding: 10px 14px;
  background: rgba(11,8,16,.82);
  border: 1px solid rgba(200,162,75,.25);
  border-radius: 4px;
  backdrop-filter: blur(10px);
}
.gal-plate .gn {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; color: #fff; font-style: italic; line-height: 1;
  display: flex; align-items: center; gap: 6px;
}
.gal-plate .gn .verify {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg,#E8D08A,#C8A24B); color: #18111F;
  font-size: 9px; font-weight: 900; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
}
.gal-plate .gm {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .1em;
  color: rgba(232,208,138,.72); margin-top: 3px;
}
.gal-t3 .gal-plate .gn { font-size: 22px; }
.gal-t3 .gal-plate .gm { font-size: 11px; }

/* 中央 tile 上方 Cover 標 */
.gal-feature-label {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  z-index: 4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 700; letter-spacing: .22em;
  color: #E8D08A; text-transform: uppercase;
  padding: 6px 14px; border: 1px solid rgba(200,162,75,.45);
  border-radius: 2px; background: rgba(11,8,16,.7);
  backdrop-filter: blur(6px); white-space: nowrap;
}

/* title block 橫幅下方 */
.gal-title-block {
  position: relative; z-index: 2;
  max-width: 960px; width: 100%; margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.gal-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px; border-radius: 999px;
  background: rgba(200,162,75,.1); border: 1px solid rgba(200,162,75,.3);
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #E8D08A;
}
.gal-eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: #C8A24B; animation: pulse 1.6s infinite; }
.gal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(54px, 6.6vw, 108px);
  font-weight: 400; line-height: .95; letter-spacing: -.025em;
  color: #fff; margin: 0;
}
.gal-title em { font-style: italic; color: #C8A24B; }
.gal-title .amp { font-style: italic; color: #C8A24B; margin: 0 6px; }
.gal-sub {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.75;
  color: rgba(255,255,255,.7);
  max-width: 620px;
}
.gal-sub b { color: #E8D08A; font-weight: 600; }
.gal-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* stats 條 */
.gal-stats {
  position: relative; z-index: 2;
  max-width: 1100px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(200,162,75,.2);
  border-bottom: 1px solid rgba(200,162,75,.2);
}
.gal-stat {
  padding: 22px 18px; text-align: center;
  border-right: 1px solid rgba(200,162,75,.15);
}
.gal-stat:last-child { border-right: none; }
.gal-stat .n {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: clamp(28px, 3vw, 40px);
  color: #E8D08A; line-height: 1; letter-spacing: -.01em;
}
.gal-stat .l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55); font-weight: 600; margin-top: 8px;
}

/* RWD */
@media (max-width: 1100px) {
  .gal-wall { grid-template-columns: 1fr 1.1fr 1.3fr 1.1fr 1fr; gap: 14px; min-height: 440px; }
  .gal-t1, .gal-t5 { transform: translateY(20px); }
  .gal-t2, .gal-t4 { transform: translateY(-12px); }
  .gal-plate { padding: 8px 11px; }
  .gal-plate .gn { font-size: 15px; }
  .gal-t3 .gal-plate .gn { font-size: 18px; }
  .gal-plate .gm { font-size: 9px; }
  .gal-t3 .gal-plate .gm { font-size: 10px; }
}
@media (max-width: 820px) {
  .hero-gal { padding: 88px 18px 44px; gap: 36px; }
  .gal-masthead { flex-wrap: wrap; gap: 6px; padding-bottom: 14px; }
  .gal-mh-left, .gal-mh-right { font-size: 9.5px; letter-spacing: .16em; gap: 10px; }
  .gal-mh-price { font-size: 12.5px; }
  .gal-wall {
    grid-template-columns: 1fr 1.15fr 1fr;
    grid-template-rows: 1fr .8fr;
    gap: 12px;
    min-height: auto;
  }
  .gal-t1 { grid-column: 1; grid-row: 2; aspect-ratio: 3/4; transform: translateY(0); }
  .gal-t2 { grid-column: 1; grid-row: 1; aspect-ratio: 3/4; transform: translateY(0); }
  .gal-t3 { grid-column: 2; grid-row: 1 / 3; aspect-ratio: auto; transform: translateY(0); }
  .gal-t4 { grid-column: 3; grid-row: 1; aspect-ratio: 3/4; transform: translateY(0); }
  .gal-t5 { grid-column: 3; grid-row: 2; aspect-ratio: 3/4; transform: translateY(0); }
  .gal-feature-label { top: -28px; font-size: 9px; padding: 5px 10px; }
  .gal-stats { grid-template-columns: repeat(2, 1fr); }
  .gal-stat { padding: 16px 12px; }
  .gal-stat:nth-child(2) { border-right: none; }
  .gal-stat:nth-child(1), .gal-stat:nth-child(2) { border-bottom: 1px solid rgba(200,162,75,.12); }
  .gal-ctas { width: 100%; flex-direction: column; align-items: stretch; }
  .gal-ctas .btn-hero-primary, .gal-ctas .btn-hero-secondary { justify-content: center; width: 100%; }
  .gal-plate { left: 6px; right: 6px; bottom: 6px; padding: 7px 10px; }
  .gal-plate .gn, .gal-t3 .gal-plate .gn { font-size: 13px; }
  .gal-plate .gm, .gal-t3 .gal-plate .gm { font-size: 9px; }
  .gal-tag { font-size: 8.5px; top: 8px; left: 8px; padding: 3px 7px; }
  .gal-badge { font-size: 9px; padding: 3px 8px; top: 8px; right: 8px; }
}
@media (max-width: 480px) {
  .gal-title { font-size: clamp(44px, 12vw, 60px); }
  .gal-sub { font-size: 14px; }
  .gal-wall {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .gal-t1 { grid-column: 1; grid-row: 3; }
  .gal-t2 { grid-column: 1; grid-row: 2; }
  .gal-t3 { grid-column: 1 / 3; grid-row: 1; aspect-ratio: 16/10; }
  .gal-t4 { grid-column: 2; grid-row: 2; }
  .gal-t5 { grid-column: 2; grid-row: 3; }
}


/* ═══════════════════════════════════════════════════════════════════
   Section 16 · Profile v3 shared components
   抽自 new_ui/v3new.html，紫金深色票，沿用既有 hex literal token
   （未來其他新框架頁面可重用：.btn-follow / .plans-magazine /
    .tabs-pill / .posts-magazine / .mini-post 等）

   重要：.btn-gold / .btn-ghost / .btn-glass 在既有頁面（payment_result.php /
   register_pre_creator.php / password_change.php）已被使用且各自定義局部樣式，
   為避免破壞既有版面，這三個 class 的 sizing 規則在本節 scope 到
   `body.creator-profile-v3` 下；若未來其他新框架頁要重用，請把該頁
   <body> 加上 `creator-profile-v3` 或自行 scope 一份新 token。
   ═══════════════════════════════════════════════════════════════════ */

/* ── 16.1 · Buttons (rounded pill, 紫金主題) ── */
.btn-follow {
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer; white-space: nowrap; border: 1px solid transparent;
  background: linear-gradient(135deg, #8B2942, #5C1A2C);
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(139, 41, 66, .45);
  transition: transform .12s, filter .15s, background .15s, color .15s, border-color .15s;
  font-family: inherit;
}
.btn-follow:hover { transform: translateY(-1px); filter: brightness(1.05); }

.btn-followed {
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer; white-space: nowrap;
  background: rgba(255, 255, 255, .95); color: #5C1A2C;
  border: 1px solid #E8D8B8;
  transition: transform .12s, filter .15s, background .15s, color .15s, border-color .15s;
  font-family: inherit;
}
.btn-followed:hover {
  transform: translateY(-1px);
  background: #FEF2F2; color: #B12615; border-color: #FCA5A5; filter: none;
}

/* .btn-gold / .btn-ghost / .btn-glass 撞名既有頁面（payment_result/register_pre_creator/password_change），
   只在 v3 頁面下加 sizing；色票本身不動既有定義。
   v1.0.30：擴大 selector 讓 view.php (body.view-self) 也能重用，未來其他新框架頁可
   依此 pattern 把 body class 加進列表。 */
body.creator-profile-v3 .btn-gold,
body.view-self .btn-gold {
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer; white-space: nowrap; border: 1px solid transparent;
  background: linear-gradient(135deg, #8B2942, #5C1A2C); color: #FFFFFF;
  box-shadow: 0 6px 14px -6px rgba(139, 41, 66, .45);
  transition: transform .12s, filter .15s;
  font-family: inherit;
  text-decoration: none;
}
body.creator-profile-v3 .btn-gold:hover,
body.view-self .btn-gold:hover { transform: translateY(-1px); filter: brightness(1.06); }

body.creator-profile-v3 .btn-ghost,
body.view-self .btn-ghost {
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer; white-space: nowrap;
  background: transparent; color: #8B2942;
  border: 1px solid rgba(139, 41, 66, .45);
  transition: background .15s, color .15s, border-color .15s, transform .12s;
  font-family: inherit;
  text-decoration: none;
}
body.creator-profile-v3 .btn-ghost:hover,
body.view-self .btn-ghost:hover {
  background: rgba(139, 41, 66, .08); border-color: rgba(139, 41, 66, .7);
  color: #5C1A2C; transform: translateY(-1px);
}

body.creator-profile-v3 .btn-glass,
body.view-self .btn-glass {
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer; white-space: nowrap;
  background: rgba(255, 255, 255, .8); color: #1A1815;
  border: 1px solid rgba(139, 41, 66, .18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .15s, transform .12s;
  font-family: inherit;
  text-decoration: none;
}
body.creator-profile-v3 .btn-glass:hover,
body.view-self .btn-glass:hover { background: rgba(139, 41, 66, .08); transform: translateY(-1px); filter: none; }

/* 小尺寸 modifier（沿用 v3new） */
.btn-follow.btn-sm,
.btn-followed.btn-sm,
body.creator-profile-v3 .btn-gold.btn-sm,
body.creator-profile-v3 .btn-ghost.btn-sm,
body.creator-profile-v3 .btn-glass.btn-sm,
body.view-self .btn-gold.btn-sm,
body.view-self .btn-ghost.btn-sm,
body.view-self .btn-glass.btn-sm { height: 34px; padding: 0 14px; font-size: 12px; }

/* ── 16.2 · Plan cards (4 欄訂閱方案) ── */
.plans-magazine {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.plan {
  position: relative;
  background: #fff;
  border: 1px solid #EAE0F4;
  border-radius: 18px;
  padding: 20px;
  display: flex; flex-direction: column;
  min-height: 240px;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.plan:hover {
  border-color: #D1BCE6;
  box-shadow: 0 12px 28px -16px rgba(61, 31, 99, .25);
  transform: translateY(-2px);
}
.plan.featured {
  border-color: transparent;
  background: linear-gradient(160deg, #3D1F63 0%, #18111F 100%);
  color: #fff;
  box-shadow: 0 18px 36px -14px rgba(61, 31, 99, .45);
}
.plan.featured::before {
  content: "★ 最划算";
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: #C8A24B; color: #18111F;
  padding: 4px 12px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  box-shadow: 0 4px 10px -2px rgba(200, 162, 75, .5);
}
.plan.subscribed {
  border-color: #16A34A;
  background: #F0FDF4;
}
.plan.subscribed::before {
  content: "✓ 訂閱中";
  position: absolute; top: -10px; left: 18px;
  background: #16A34A; color: #fff;
  padding: 4px 12px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
}
.plan-dur {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: #78716C; font-weight: 600;
}
.plan.featured .plan-dur { color: #E8D08A; }
.plan.subscribed .plan-dur { color: #15803D; }
.plan-title {
  font-size: 18px; font-weight: 700; margin: 6px 0 0;
  letter-spacing: -.01em; color: #18111F;
}
.plan.featured .plan-title { color: #fff; }
.plan.subscribed .plan-title { color: #14532D; }
.plan-price-row {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 10px; flex-wrap: wrap;
}
.plan-price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: #3D1F63;
}
.plan.featured .plan-price { color: #E8D08A; }
.plan.subscribed .plan-price { color: #16A34A; }
.plan-orig {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; color: #A8A29E; text-decoration: line-through;
}
.plan.featured .plan-orig { color: #9CA3AF; }
.plan-per {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; color: #78716C; margin-top: 2px;
}
.plan.featured .plan-per { color: #B293D4; }
.plan.subscribed .plan-per { color: #15803D; }
.plan-save {
  display: inline-block; margin-top: 8px;
  padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 600;
  background: #FEF2F2; color: #B12615;
  align-self: flex-start;
}
.plan.featured .plan-save { background: rgba(200, 162, 75, .2); color: #E8D08A; }
.plan.subscribed .plan-save { background: #DCFCE7; color: #14532D; }
.plan-list {
  margin: 14px 0 0; padding: 0; list-style: none;
  font-size: 12.5px; line-height: 1.8; color: #44403C;
  flex: 1;
}
.plan.featured .plan-list { color: #D1BCE6; }
.plan-list li { padding-left: 16px; position: relative; }
.plan-list li::before {
  content: "·"; position: absolute; left: 4px;
  color: #8E66BE; font-weight: 700;
}
.plan.featured .plan-list li::before { color: #C8A24B; }
.plan-cta {
  margin-top: 14px;
  height: 40px; width: 100%;
  border: none; border-radius: 999px;
  font-weight: 700; font-size: 13px; cursor: pointer;
  font-family: inherit;
  background: linear-gradient(135deg, #6B3FA0, #532D82);
  color: #fff;
  transition: filter .15s, transform .12s;
}
.plan-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }
.plan.featured .plan-cta {
  background: #C8A24B; color: #18111F;
  box-shadow: 0 6px 14px -6px rgba(200, 162, 75, .5);
}
.plan.subscribed .plan-cta {
  background: #fff; color: #16A34A; border: 1px solid #16A34A;
}

/* 訂閱方案空狀態 */
.plan-empty {
  background: repeating-linear-gradient(135deg, #F6F3FB 0 8px, transparent 8px 16px), #fff;
  border: 1px dashed #D1BCE6;
  color: #78716C;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 18px;
  padding: 24px 16px; text-align: center; min-height: 200px;
  grid-column: 1 / -1;
}
.plan-empty .plan-empty-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: #F6F3FB; color: #8E66BE;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.plan-empty .plan-empty-ttl {
  font-size: 13px; font-weight: 700; color: #3D1F63;
}
.plan-empty .plan-empty-sub {
  font-size: 11.5px; margin-top: 4px; line-height: 1.6; max-width: 240px;
}

/* ── 16.3 · Tabs (pill style) ── */
.tabs-pill {
  display: flex; gap: 4px; overflow-x: auto;
  scrollbar-width: none;
  padding: 5px;
  background: #fff;
  border: 1px solid #EAE0F4;
  border-radius: 999px;
}
.tabs-pill::-webkit-scrollbar { display: none; }
.tabs-pill .tab {
  flex: none;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12.5px; font-weight: 600;
  color: #78716C; cursor: pointer;
  background: transparent; border: 0;
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  font-family: inherit;
  transition: background .15s, color .15s;
}
.tabs-pill .tab:hover { background: #F6F3FB; color: #3D1F63; }
.tabs-pill .tab.active {
  background: linear-gradient(135deg, #6B3FA0, #532D82);
  color: #fff;
}

/* ── 16.4 · Magazine post grid（3 / 2 / 1 RWD） ── */
.posts-magazine {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mini-post {
  background: #fff;
  border: 1px solid #EAE0F4;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  display: flex; flex-direction: column;
}
.mini-post:hover {
  border-color: #D1BCE6;
  box-shadow: 0 10px 24px -18px rgba(61, 31, 99, .3);
}
.mini-post.post-feat { grid-column: span 2; grid-row: span 2; }
.mini-post.post-feat .mini-media { aspect-ratio: 16 / 10; }
.mini-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #18111F;
}
.mini-media img,
.mini-media video {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.mini-badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: inline-block;
  min-width: 80px; max-width: 140px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .mini-badge { min-width: 68px; max-width: 124px; padding: 3px 8px; letter-spacing: .06em; }
}
.mini-badge.mb-free   { background: #16A34A; color: #fff; }
.mini-badge.mb-sub    { background: linear-gradient(135deg, #6B3FA0, #532D82); color: #fff; }
.mini-badge.mb-sub-unlocked { background: rgba(22, 163, 74, .92); color: #fff; }
.mini-badge.mb-single { background: #C8A24B; color: #18111F; }
.mini-badge.mb-ticket { background: #18111F; color: #E8D08A; }
.mini-lock {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(24, 17, 31, .55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: flex; align-items: center; justify-content: center;
  color: #E8D08A;
}
.mini-meta {
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.mini-title {
  font-size: 12.5px;
  font-weight: 700; line-height: 1.4;
  color: #18111F;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini-post.post-feat .mini-title { font-size: 16px; }
.mini-meta .mini-sub {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px; color: #78716C;
}

/* ── 16.5 · RWD 1280 / 1100 / 768 / 520 / 480 ── */
@media (max-width: 1100px) {
  .plans-magazine { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .posts-magazine { grid-template-columns: repeat(2, 1fr); }
  .mini-post.post-feat { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 520px) {
  .plans-magazine { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .posts-magazine { grid-template-columns: 1fr; }
  .mini-post.post-feat { grid-column: span 1; }
}


/* ═══════════════════════════════════════════════════════════════════
   Section 17 · view.php 自視角專屬
   抽自 new_ui/Fans88 View.html，本節 scope 在 body.view-self 之下，
   避免污染 creator_profile.php / 其他新框架頁。
   - .view-editing-pill 例外：scope 在 body.view-self.editing 才顯示
   - 共用色票直接寫 hex literal（與 Section 16 一致），不另定義 CSS variable
   ═══════════════════════════════════════════════════════════════════ */

/* ── 17.1 · EDITING pill（編輯模式右上紅色徽章） ── */
.view-editing-pill {
  position: fixed; top: 80px; right: 20px; z-index: 200;
  background: #C8422E; color: #fff;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  box-shadow: 0 4px 12px rgba(200, 66, 46, .4);
  display: none;
}
body.view-self.editing .view-editing-pill { display: block; }

/* ── 17.2 · Cover 編輯按鈕 + Avatar 編輯 overlay ── */
body.view-self .cover-edit-btn {
  position: absolute; right: 18px; bottom: 18px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(26, 24, 21, .7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(139, 41, 66, .35);
  color: #FFFFFF; font-size: 12px; font-weight: 600; letter-spacing: .05em;
  cursor: pointer; font-family: inherit;
}
body.view-self .cover-edit-btn:hover { background: rgba(26, 24, 21, .9); }
body.view-self .cover-edit-btn svg { width: 13px; height: 13px; }
body.view-self.editing .cover-edit-btn {
  background: linear-gradient(135deg, #D89BAA, #8B2942);
  color: #FFFFFF; border-color: #5C1A2C;
}

body.view-self .avatar-edit-overlay {
  position: absolute; inset: 3px; border-radius: 999px;
  background: rgba(15, 11, 21, .65);
  display: flex; align-items: center; justify-content: center;
  color: #E8D08A; font-size: 11px; letter-spacing: .12em;
  cursor: pointer; opacity: 0; transition: opacity .15s;
  pointer-events: none;
}
body.view-self.editing .avatar-edit-overlay { pointer-events: auto; }
body.view-self.editing .avatar-wrap:hover .avatar-edit-overlay { opacity: 1; }

/* ── 17.3 · 編輯模式 input 樣式 ── */
body.view-self .editable-input {
  background: #FAFAF9 !important;
  border: 1.5px solid #EAE0F4 !important;
  border-radius: 11px !important;
  padding: 11px 14px !important;
  font-size: 14px !important; color: #18111F !important;
  outline: none !important;
  transition: all .12s !important;
}
body.view-self .editable-input:focus {
  background: #fff !important;
  border-color: #8E66BE !important;
  box-shadow: 0 0 0 4px rgba(142, 102, 190, .15) !important;
}

/* ── 17.4 · Creator Tabs（紫金深色分頁） ── */
body.view-self .crt-tabs {
  display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 14px;
  background: #F6F3FB; border: 1px solid #EAE0F4;
  width: fit-content; margin: 26px 0 16px;
  flex-wrap: wrap;
}
body.view-self .crt-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: #78716C;
  cursor: pointer; letter-spacing: -.005em;
  transition: all .12s;
  background: transparent; border: none; font-family: inherit;
}
body.view-self .crt-tab:hover { color: #3D1F63; }
body.view-self .crt-tab.on {
  background: #18111F; color: #E8D08A;
  box-shadow: 0 4px 14px -6px rgba(24, 17, 31, .4);
}
body.view-self .crt-tab svg { width: 13px; height: 13px; }

/* ── 17.5 · 新貼文表單（紫金白色卡） ── */
body.view-self .np-form {
  background: #fff; border: 1px solid #EAE0F4;
  border-radius: 18px; padding: 22px;
  box-shadow: 0 10px 30px -18px rgba(24, 17, 31, .15);
}
body.view-self .np-textarea {
  width: 100%; min-height: 120px; padding: 14px;
  border-radius: 12px; border: 1px solid #EAE0F4;
  background: #FAFAF9; outline: none;
  font-size: 14.5px; line-height: 1.75; resize: vertical;
  font-family: inherit; color: #18111F;
  box-sizing: border-box;
}
body.view-self .np-textarea:focus {
  background: #fff; border-color: #8E66BE;
  box-shadow: 0 0 0 4px rgba(142, 102, 190, .15);
}

body.view-self .np-tools {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
body.view-self .np-tool {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 10px;
  background: #F6F3FB; border: 1px solid #EAE0F4;
  font-size: 12px; color: #3D1F63; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
}
body.view-self .np-tool:hover { background: rgba(139,41,66,.08); }
body.view-self .np-tool svg { width: 13px; height: 13px; }
body.view-self .np-tool input[type="file"] { display: none; }

body.view-self .np-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px;
}
body.view-self .field { position: relative; }
body.view-self .field-lb {
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #8B2942; font-weight: 700;
  margin-bottom: 6px; display: block;
}
body.view-self .field-sel,
body.view-self .field-num {
  width: 100%; padding: 11px 14px; border-radius: 11px;
  background: #FBFAF7; border: 1.5px solid rgba(139,41,66,.18);
  outline: none; font-size: 13.5px; color: #1A1815;
  font-family: inherit;
  appearance: none; -webkit-appearance: none;
  box-sizing: border-box;
}
body.view-self .field-sel {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B2942' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
body.view-self .field-sel:focus,
body.view-self .field-num:focus {
  background-color: #fff; border-color: #8B2942;
  box-shadow: 0 0 0 4px rgba(139, 41, 66, .15);
}

/* toggles（4 顆 + 共同作者） */
body.view-self .toggle-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px;
}
body.view-self .toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  background: #FBFAF7; border: 1px solid rgba(139,41,66,.18);
  cursor: pointer; transition: all .12s;
}
body.view-self .toggle:hover { background: #fff; border-color: rgba(139,41,66,.3); }
body.view-self .toggle.on {
  background: linear-gradient(135deg, #FBFAF7, #FFFFFF);
  border-color: #8B2942;
  box-shadow: 0 4px 14px -8px rgba(139, 41, 66, .25);
}
body.view-self .toggle .sw {
  width: 34px; height: 20px; border-radius: 999px;
  background: #D6D3D1; position: relative; flex: none;
  transition: all .15s;
}
body.view-self .toggle .sw::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: all .15s;
}
body.view-self .toggle.on .sw {
  background: linear-gradient(135deg, #8B2942, #5C1A2C);
}
body.view-self .toggle.on .sw::after { left: 16px; }
body.view-self .toggle .tt { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: #1A1815; }
body.view-self .toggle .ss { font-size: 10.5px; color: rgba(26,24,21,.5); margin-top: 2px; line-height: 1.45; }
body.view-self .toggle input[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
}

body.view-self .np-foot {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 14px; margin-top: 18px;
  padding-top: 16px; border-top: 1px dashed #EAE0F4;
  flex-wrap: wrap;
}
body.view-self .btn-publish {
  background: linear-gradient(135deg, #B14B6B, #8B2942 60%, #5C1A2C);
  color: #FFFFFF;
  padding: 11px 28px; border-radius: 12px;
  font-weight: 700; font-size: 13.5px; cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(139, 41, 66, .45);
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap; flex-shrink: 0;
  border: none; font-family: inherit;
  transition: filter .15s, transform .12s;
}
body.view-self .btn-publish:hover { filter: brightness(1.08); transform: translateY(-1px); }
body.view-self .btn-publish:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* ── 17.6 · 訂閱方案 5 階編輯 ── */
body.view-self .plan-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-top: 16px;
}
body.view-self .plan-edit {
  padding: 16px; border-radius: 14px;
  background: #FAFAF9; border: 1.5px solid #EAE0F4;
  position: relative;
}
body.view-self .plan-edit.gold {
  border-color: #C8A24B;
  background: linear-gradient(180deg, #FFF8EC 0%, #FAFAF9 60%);
}
body.view-self .pe-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 8px; gap: 8px;
}
body.view-self .pe-days {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 22px; font-weight: 800; color: #18111F;
}
body.view-self .pe-days small {
  font-size: 11px; font-weight: 600; color: #78716C; margin-left: 3px;
}
body.view-self .pe-dc {
  font-size: 9.5px; font-weight: 800; letter-spacing: .12em;
  padding: 2px 6px; border-radius: 6px;
  background: rgba(200, 162, 75, .2); color: #8E6F26;
}
body.view-self .pe-input {
  margin-top: 6px; display: flex; align-items: center;
  border-radius: 10px; background: #fff;
  border: 1.5px solid #EAE0F4;
  padding: 0 10px 0 12px; overflow: hidden;
  transition: border-color .12s, box-shadow .12s;
}
body.view-self .pe-input:focus-within {
  border-color: #8E66BE;
  box-shadow: 0 0 0 4px rgba(142, 102, 190, .15);
}
body.view-self .pe-input .cur {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; color: #78716C; font-weight: 600;
  padding-right: 8px; border-right: 1px solid #EAE0F4;
}
body.view-self .pe-input input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 10px; font-size: 16px; font-weight: 700;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #18111F; font-variant-numeric: tabular-nums;
  min-width: 0;
}
body.view-self .pe-per {
  font-size: 11px; color: #78716C; margin-top: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .04em;
  display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap;
}
body.view-self .pe-per b { color: #18111F; font-weight: 700; }

/* ── 17.7 · Owner overlay（貼文 hover 4 顆按鈕） ── */
body.view-self .owner-ov {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 11, 21, .8));
  opacity: 0; transition: opacity .15s;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 10px; gap: 5px;
  pointer-events: none;
}
body.view-self .mini-post:hover .owner-ov { opacity: 1; pointer-events: auto; }
body.view-self .owner-btn {
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255, 255, 255, .92); color: #18111F;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none;
  transition: background .12s, color .12s;
}
body.view-self .owner-btn:hover { background: #E8D08A; }
body.view-self .owner-btn.danger:hover { background: #FEE2E2; color: #B12615; }
body.view-self .owner-btn svg { width: 13px; height: 13px; }

/* ── 17.8 · 新 badge variants（mb-pinned / mb-scheduled / mb-hidden / mb-stop） ── */
.mini-badge.mb-pinned   { background: linear-gradient(135deg, #C8A24B, #8E6F26); color: #18111F; }
.mini-badge.mb-scheduled{ background: rgba(30, 64, 175, .92); color: #fff; }
.mini-badge.mb-hidden   { background: rgba(68, 64, 60, .85); color: #D6D3D1; }
.mini-badge.mb-stop     { background: rgba(180, 83, 9, .92); color: #fff; }

/* ── 17.9 · RWD（1100 / 768 / 520） · plan-edit-grid 用 auto-fit 自動處理，不再需要欄數 breakpoint ── */
@media (max-width: 1100px) {
  body.view-self .np-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  body.view-self .toggle-row { grid-template-columns: 1fr; }
  body.view-self .crt-tabs { width: 100%; box-sizing: border-box; }
}
@media (max-width: 520px) {
  .view-editing-pill {
    font-size: 10px; padding: 4px 10px; top: 72px; right: 12px;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   Modals · 從 new_app.js / new_post_card.js inline style 重構
   原本 JS 用 .style.cssText 寫死深紫金，theme-warm override 不到。
   現在 JS 只發 class，色由本檔 default 決定，theme_warm.css 後置 override。
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Follow confirm modal (new_app.js showFollowConfirmModal) ─── */
.follow-confirm-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(11,8,16,.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 18px;
}
.follow-confirm-card {
  background: linear-gradient(160deg, #18111F 0%, #3D1F63 100%);
  border: 1px solid rgba(200,162,75,.35);
  border-radius: 20px;
  padding: 28px 26px;
  max-width: 380px; width: 100%;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.65);
  color: #F6F3FB;
  font-family: 'Inter', 'Noto Sans TC', system-ui, sans-serif;
}
.follow-confirm-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; font-weight: 600; letter-spacing: .04em;
  color: #E8D08A;
  margin: 0 0 14px; text-align: center;
}
.follow-confirm-msg {
  font-size: 13.5px; line-height: 1.7;
  color: rgba(255,255,255,.85);
  margin: 0 0 8px;
}
.follow-confirm-msg-en {
  font-size: 12.5px; line-height: 1.6;
  color: rgba(232,208,138,.8);
  margin: 0 0 22px;
  font-style: italic;
}
.follow-confirm-actions {
  display: flex; flex-direction: column; gap: 10px;
}
.follow-confirm-btn {
  width: 100%; height: 44px; font-size: 14px;
}

/* ─── Post card 媒體 blur fallback (new_post_card.js) ─── */
.media-blur-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.7);
}
.media-blur-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #18111F, #3D1F63 60%, #6B3FA0);
}

/* ─── Body lock card (純文字付費貼文未解鎖卡片) ─── */
.body-lock-card {
  background: rgba(11,8,16,.5);
  border: 1px dashed rgba(200,162,75,.25);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.body-lock-title { font-size: 15px; font-weight: 700; color: #F6F3FB; }
.body-lock-sub   { font-size: 12.5px; color: #B293D4; }
.body-lock-actions {
  margin-top: 6px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
/* unlock CTA 在 body-lock-card 內的視覺（沿用 .lock .unlock，因 .lock 已不再注入 DOM） */
.body-lock-card .unlock {
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .15s, filter .15s;
  white-space: nowrap;
  border: none;
  text-decoration: none;
}
.body-lock-card .unlock + .unlock { margin-top: 0; }
.body-lock-card .unlock:hover { transform: translateY(-1px); filter: brightness(1.08); }
@media (max-width: 600px) {
  .body-lock-card .unlock { height: 38px; padding: 0 18px; font-size: 12.5px; }
}

/* ─── 共用 Loading overlay（new_app.js: showLoading / hideLoading） ─── */
.app-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 100;
  pointer-events: all;
  border-radius: inherit;
  backdrop-filter: blur(2px);
}
.app-loading-overlay.fullscreen {
  position: fixed;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
}
.app-loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(139, 41, 66, 0.2);
  border-top-color: #8B2942;
  border-radius: 50%;
  animation: appLoadingSpin 0.8s linear infinite;
}
.app-loading-overlay.fullscreen .app-loading-spinner {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}
.app-loading-text {
  font-size: 13px;
  color: #5C1A2C;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.app-loading-overlay.fullscreen .app-loading-text {
  color: #fff;
}
@keyframes appLoadingSpin { to { transform: rotate(360deg); } }

/* === Smart Watermark (post media overlay, B 看 A 的貼文時疊作者+觀看者 UID 防外流) === */
/* .media-frame 已在 1993 行定義 position:relative，這裡只追加角落浮水印 */
.wm-corner {
  position: absolute;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  color: #fff;
  mix-blend-mode: difference;
  text-shadow: 0 0 3px rgba(0,0,0,.7), 0 1px 2px rgba(0,0,0,.5);
  padding: 3px 6px;
  pointer-events: none;
  user-select: none;
  z-index: 5;
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  white-space: nowrap;
}
.wm-corner.wm-tl { top: 6px; left: 6px; }
.wm-corner.wm-br { bottom: 6px; right: 6px; }
/* post_detail.php 的圖片 wrapper 用 rounded-xl + relative，浮水印同樣適用 */

/* === Shared 404 / Not-found overlay (templates/components/not_found.php) === */
/* 配 theme-warm：深棕半透明 backdrop + 米白卡 + 酒紅 accent。任何頁面 include component 即可使用 */
.nf-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(26,24,21,.85);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center;
  padding: 18px;
}
.nf-overlay.open { display: flex; }
.nf-overlay .nf-card {
  background: #FFFFFF;
  border: 1px solid rgba(139,41,66,.4);
  border-radius: 18px;
  padding: 28px 26px;
  max-width: 360px; width: 100%; text-align: center;
  color: #1A1815;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.65);
}
.nf-overlay .nf-title {
  font-size: 18px; font-weight: 700; color: #5C1A2C; margin: 0 0 6px;
}
.nf-overlay .nf-sub {
  font-size: 13px; color: rgba(26,24,21,.75); margin: 0 0 4px;
}
.nf-overlay #nf-countdown {
  font-weight: 700; color: #8B2942;
}
.nf-overlay .nf-btn {
  margin-top: 14px;
  background: linear-gradient(135deg, #8B2942 0%, #5C1A2C 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
}
.nf-overlay .nf-btn:hover { opacity: .92; }
.nf-overlay .nf-btn:active { transform: scale(.97); }
