:root {
  --black: #0f0f0f;
  --black-soft: #151515;
  --black-deep: #050505;
  --gold: #c9a86a;
  --gold-light: #f5e6c8;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(201, 168, 106, 0.22);
  --glass: rgba(18, 18, 18, 0.68);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  --transition: 260ms ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 10%, rgba(201, 168, 106, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 28%, rgba(245, 230, 200, 0.08), transparent 26rem),
    linear-gradient(135deg, var(--black-deep), var(--black) 45%, #080808);
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.34;
  pointer-events: none;
}

.page-glow-one {
  top: 10%;
  left: -14rem;
  background: rgba(201, 168, 106, 0.4);
}

.page-glow-two {
  right: -18rem;
  bottom: 8%;
  background: rgba(245, 230, 200, 0.14);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid transparent;
  background: rgba(10, 10, 10, 0.34);
  backdrop-filter: blur(22px);
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  border-color: rgba(201, 168, 106, 0.16);
  background: rgba(7, 7, 7, 0.88);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.navbar,
.section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-mark {
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  line-height: 1;
}

.brand-sub {
  color: var(--white);
  font-size: 0.68rem;
  letter-spacing: 0.52em;
}

/* Header raster logo: PC (≥641px) shorter bar + logo sized to bar — less vertical slack; mobile unchanged */
body.site-pc-logo .site-header {
  overflow: visible;
}

body.site-pc-logo.member-body .navbar {
  overflow: visible;
}

body.site-pc-logo .navbar .brand {
  flex-direction: row;
  align-items: center;
  gap: 0;
  letter-spacing: normal;
  text-transform: none;
  flex-shrink: 0; /* don’t let flex steal width → global img{max-width:100%} was crushing the logo */
  overflow: visible;
}

@media (min-width: 641px) {
  body.site-pc-logo:not(.member-body) .navbar {
    height: 72px;
    min-height: 72px;
    max-height: 72px;
    overflow: visible;
  }

  body.site-pc-logo:not(.member-body) .navbar .brand {
    max-height: 72px;
  }

  body.site-pc-logo .navbar .brand-logo-pc {
    display: block;
    max-width: none;
    height: clamp(3.25rem, 2rem + 2.8vw, 4.25rem);
    width: auto;
    object-fit: contain;
    object-position: left center;
  }
}

body.site-pc-logo.member-body .navbar .brand {
  max-height: 76px;
}

body.site-pc-logo .navbar .brand .brand-mark,
body.site-pc-logo .navbar .brand .brand-sub {
  display: none;
}

/* Footer raster: ≥641px shows horizontal PNG; index ≤640px also uses same PNG; other pages use text on narrow screens */
body.site-pc-logo .site-footer {
  overflow: visible;
}

body.site-pc-logo .footer-brand {
  overflow: visible;
}

body.site-pc-logo .footer-brand .footer-logo-pc,
body.site-pc-logo .footer-brand .footer-logo-mobile {
  display: none;
}

@media (min-width: 641px) {
  body.site-pc-logo .footer-brand .footer-logo-pc {
    display: block;
    max-width: none;
    height: clamp(3.25rem, 2rem + 2.8vw, 4.25rem); /* match header .brand-logo-pc */
    width: auto;
    margin: 0 auto;
    object-fit: contain;
  }

  body.site-pc-logo .footer-brand .brand-mark,
  body.site-pc-logo .footer-brand .brand-sub {
    display: none;
  }
}

/* Phones only: navbar text brand (narrow strip). */
@media (max-width: 640px) {
  body.site-pc-logo .navbar .brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }

  body.site-pc-logo .navbar .brand-logo-pc {
    display: none;
  }

  body.site-pc-logo .navbar .brand .brand-mark,
  body.site-pc-logo .navbar .brand .brand-sub {
    display: block;
  }

  /* index.html: same horizontal logo as desktop (logo-pc.png) on phones */
  body.site-pc-logo.page-index .navbar .brand {
    flex-direction: row;
    align-items: center;
    gap: 0;
    letter-spacing: normal;
    text-transform: none;
  }

  body.site-pc-logo.page-index .navbar .brand-logo-pc {
    display: block;
    max-width: none;
    height: clamp(2.75rem, 1.5rem + 2.5vw, 3.75rem);
    width: auto;
    object-fit: contain;
    object-position: left center;
  }

  body.site-pc-logo.page-index .navbar .brand .brand-mark,
  body.site-pc-logo.page-index .navbar .brand .brand-sub {
    display: none;
  }

  body.site-pc-logo.page-index .footer-brand .footer-logo-pc {
    display: block;
    max-width: none;
    height: clamp(3.25rem, 2rem + 2.8vw, 4.25rem);
    width: auto;
    margin: 0 auto;
    object-fit: contain;
  }

  body.site-pc-logo.page-index .footer-brand .brand-mark,
  body.site-pc-logo.page-index .footer-brand .brand-sub {
    display: none;
  }

  /* index mobile footer: equal vertical band above vs below logo (override global site-pc-logo footer tightness) */
  body.site-pc-logo.page-index .site-footer .footer-brand {
    padding-top: 28px;
    margin-bottom: 0;
    line-height: 0;
  }

  body.site-pc-logo.page-index .site-footer .footer-links {
    padding: 28px 0 26px;
  }

  /* login / register / forgot-password: raster logo on phones (same asset as desktop) */
  body.auth-body.site-pc-logo .navbar .brand {
    flex-direction: row;
    align-items: center;
    gap: 0;
    letter-spacing: normal;
    text-transform: none;
  }

  body.auth-body.site-pc-logo .navbar .brand-logo-pc {
    display: block;
    max-width: none;
    height: clamp(2.75rem, 1.5rem + 2.5vw, 3.75rem);
    width: auto;
    object-fit: contain;
    object-position: left center;
  }

  body.auth-body.site-pc-logo .navbar .brand .brand-mark,
  body.auth-body.site-pc-logo .navbar .brand .brand-sub {
    display: none;
  }

  body.auth-body.site-pc-logo .footer-brand .footer-logo-pc {
    display: block;
    max-width: none;
    height: clamp(3.25rem, 2rem + 2.8vw, 4.25rem);
    width: auto;
    margin: 0 auto;
    object-fit: contain;
  }

  body.auth-body.site-pc-logo .footer-brand .brand-mark,
  body.auth-body.site-pc-logo .footer-brand .brand-sub {
    display: none;
  }

  /* member pages (profile, search, inbox, …): same horizontal PNG as desktop on phones */
  body.member-body.site-pc-logo .navbar .brand {
    flex-direction: row;
    align-items: center;
    gap: 0;
    letter-spacing: normal;
    text-transform: none;
  }

  body.member-body.site-pc-logo .navbar .brand-logo-pc {
    display: block;
    max-width: none;
    height: clamp(2.75rem, 1.5rem + 2.5vw, 3.75rem);
    width: auto;
    object-fit: contain;
    object-position: left center;
  }

  body.member-body.site-pc-logo .navbar .brand .brand-mark,
  body.member-body.site-pc-logo .navbar .brand .brand-sub {
    display: none;
  }

  body.member-body.site-pc-logo .footer-brand .footer-logo-pc {
    display: block;
    max-width: none;
    height: clamp(3.25rem, 2rem + 2.8vw, 4.25rem);
    width: auto;
    margin: 0 auto;
    object-fit: contain;
  }

  body.member-body.site-pc-logo .footer-brand .brand-mark,
  body.member-body.site-pc-logo .footer-brand .brand-sub {
    display: none;
  }
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 30px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.nav-panel a:not(.btn) {
  position: relative;
  transition: color var(--transition);
}

.nav-panel a:not(.btn)::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-panel a:hover {
  color: var(--gold-light);
}

.nav-panel a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--gold-light);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.section {
  position: relative;
  padding: 110px 0;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 136px 0 92px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92), rgba(10, 10, 10, 0.72) 48%, rgba(10, 10, 10, 0.2)),
    url("https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&w=1800&q=85") center/cover;
  opacity: 0.48;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(transparent, var(--black-deep));
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 68px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 1px;
  background: var(--gold);
  content: "";
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
}

h1 {
  max-width: 650px;
  margin-top: 24px;
  color: var(--white);
  font-size: clamp(3.7rem, 8vw, 7.8rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

h1 em {
  display: block;
  color: var(--gold-light);
  font-style: italic;
  text-shadow: 0 0 36px rgba(201, 168, 106, 0.18);
}

h2 {
  color: var(--gold-light);
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h3 {
  color: var(--gold-light);
  font-size: 1.35rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-subtitle {
  max-width: 510px;
  margin-top: 24px;
  color: var(--white);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.55;
}

.hero-text {
  max-width: 520px;
  margin-top: 14px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 38px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
}

.btn::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  content: "";
  transform: translateX(-120%);
  transition: transform 700ms ease;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-gold {
  color: #15110a;
  background: linear-gradient(135deg, #b98d3d, var(--gold-light) 48%, #b88a3a);
  box-shadow: 0 14px 42px rgba(201, 168, 106, 0.26);
}

.btn-gold:hover {
  box-shadow: 0 18px 60px rgba(201, 168, 106, 0.38);
}

.btn-outline {
  border: 1px solid rgba(201, 168, 106, 0.62);
  color: var(--gold-light);
  background: rgba(5, 5, 5, 0.42);
}

.btn-outline:hover {
  border-color: var(--gold-light);
  box-shadow: 0 16px 45px rgba(201, 168, 106, 0.14);
}

.hero-visual {
  position: relative;
}

.image-frame {
  position: relative;
  border: 1px solid rgba(201, 168, 106, 0.32);
  border-radius: 34px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(245, 230, 200, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-frame::after {
  position: absolute;
  inset: 12px;
  border-radius: 26px;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.48));
  content: "";
}

.image-frame img {
  width: 100%;
  height: min(68vh, 700px);
  min-height: 520px;
  border-radius: 26px;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
}

.floating-card {
  position: absolute;
  right: -18px;
  bottom: 44px;
  min-width: 210px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  background: rgba(10, 10, 10, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
}

.floating-card span {
  display: block;
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.floating-card strong {
  display: block;
  margin-top: 6px;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  z-index: 3;
  display: grid;
  width: 28px;
  height: 46px;
  border: 1px solid rgba(245, 230, 200, 0.4);
  border-radius: 999px;
  place-items: start center;
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 4px;
  height: 8px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--gold);
  animation: scrollCue 1.8s infinite;
}

@keyframes scrollCue {
  0%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(13px);
  }
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading h2 {
  margin-top: 18px;
}

.section-heading p {
  margin-top: 18px;
  font-size: 1.05rem;
}

.feature-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.glass-card,
.premium-card,
.story-card,
.stat-card,
.testimonial-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.018)),
    rgba(12, 12, 12, 0.62);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.glass-card,
.premium-card,
.stat-card {
  padding: 34px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.glass-card:hover,
.premium-card:hover,
.story-card:hover,
.stat-card:hover {
  border-color: rgba(245, 230, 200, 0.44);
  box-shadow: 0 24px 70px rgba(201, 168, 106, 0.12);
  transform: translateY(-8px);
}

.card-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border: 1px solid rgba(201, 168, 106, 0.58);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  place-items: center;
}

.glass-card p,
.premium-card p {
  margin-top: 14px;
}

.split-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.split-image {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.48));
  content: "";
}

.split-image img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.split-copy p {
  margin-top: 22px;
  font-size: 1.05rem;
}

.mini-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.mini-list div {
  border-left: 1px solid var(--gold);
  padding-left: 20px;
}

.mini-list strong,
.mini-list span {
  display: block;
}

.mini-list strong {
  margin-bottom: 6px;
  color: var(--gold-light);
}

.mini-list span {
  color: var(--muted);
  line-height: 1.7;
}

.dark-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    rgba(255, 255, 255, 0.018);
}

.verified-layout {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.premium-card {
  min-height: 230px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  counter-reset: step;
}

.timeline-item {
  position: relative;
  padding: 36px 34px;
  border-top: 1px solid var(--line);
}

.timeline-item::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 34%;
  height: 1px;
  background: var(--gold);
  content: "";
}

.timeline-item span {
  color: rgba(201, 168, 106, 0.42);
  font-family: "Playfair Display", serif;
  font-size: 4.6rem;
  line-height: 1;
}

.timeline-item h3 {
  margin-top: 20px;
}

.timeline-item p {
  margin-top: 12px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.story-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: center;
  padding: 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.story-card img {
  width: 170px;
  height: 210px;
  border-radius: 18px;
  object-fit: cover;
  filter: grayscale(0.1) contrast(1.08);
}

.story-card strong {
  display: block;
  margin-top: 20px;
  color: var(--gold-light);
}

.testimonial-shell {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 16px;
  align-items: center;
  padding: 48px 34px 62px;
}

.testimonial-track {
  position: relative;
  min-height: 146px;
}

.testimonial {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 360ms ease, transform 360ms ease;
}

.testimonial.active {
  opacity: 1;
  transform: translateY(0);
}

.testimonial p {
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.35;
}

.testimonial cite {
  margin-top: 18px;
  color: var(--gold);
  font-style: normal;
}

.slider-arrow {
  display: grid;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-light);
  font-size: 2rem;
  place-items: center;
  transition: background var(--transition), transform var(--transition);
}

.slider-arrow:hover {
  background: rgba(201, 168, 106, 0.14);
  transform: scale(1.05);
}

.slider-dots {
  position: absolute;
  bottom: 26px;
  left: 50%;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245, 230, 200, 0.3);
  transition: width var(--transition), background var(--transition);
}

.slider-dots button.active {
  width: 24px;
  border-radius: 999px;
  background: var(--gold);
}

.stats {
  padding-top: 50px;
}

.stat-card {
  text-align: center;
}

.stat-card strong,
.stat-card span {
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 1;
}

.stat-card p {
  margin-top: 12px;
  color: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 60px;
  align-items: start;
}

.accordion {
  display: grid;
  gap: 14px;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.accordion-item button {
  position: relative;
  width: 100%;
  padding: 22px 56px 22px 24px;
  background: transparent;
  color: var(--gold-light);
  text-align: left;
  font-weight: 800;
}

.accordion-item button::after {
  position: absolute;
  top: 50%;
  right: 24px;
  content: "+";
  transform: translateY(-50%);
}

.accordion-item.open button::after {
  content: "−";
}

.accordion-item p {
  max-height: 0;
  padding: 0 24px;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}

.accordion-item.open p {
  max-height: 180px;
  padding: 0 24px 24px;
}

.cta-banner {
  position: relative;
  margin: 40px 0 0;
  padding: 90px 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.48)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1800&q=85") center/cover;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-inner h2 {
  max-width: 720px;
  margin-top: 16px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #070707;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 46px;
  padding: 70px 0 48px;
}

.footer-brand {
  margin-bottom: 22px;
}

.site-footer p {
  max-width: 280px;
}

.site-footer h4 {
  margin-bottom: 18px;
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.62);
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(201, 168, 106, 0.12);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  max-width: none;
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-grid,
  .split-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    max-width: 720px;
    margin: 0 auto;
  }

  .verified-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .story-grid,
  .feature-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .navbar,
  .section-inner {
    width: min(100% - 34px, 680px);
  }

  .navbar {
    min-height: 76px;
  }

  .menu-toggle {
    position: relative;
    z-index: 61;
    display: block;
  }

  .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: min(360px, 88vw);
    height: 100vh;
    padding: 96px 28px 36px;
    border-left: 1px solid rgba(201, 168, 106, 0.28);
    background:
      linear-gradient(165deg, rgba(42, 38, 34, 0.98) 0%, rgba(26, 24, 22, 0.99) 55%, rgba(20, 18, 17, 1) 100%);
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.38);
    transform: translateX(105%);
    transition: transform 320ms ease;
  }

  .nav-panel.open {
    transform: translateX(0);
  }

  .nav-panel a:not(.btn) {
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.05rem;
  }

  .nav-cta {
    width: 100%;
    margin-top: 12px;
  }

  .section {
    padding: 82px 0;
  }

  .hero {
    padding-top: 116px;
  }

  .hero-grid {
    gap: 42px;
  }

  h1 {
    font-size: clamp(3.2rem, 15vw, 5.2rem);
  }

  .hero-actions,
  .cta-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-inner .btn {
    width: 100%;
  }

  .image-frame img {
    height: 520px;
    min-height: 0;
  }

  .floating-card {
    right: 16px;
    bottom: 28px;
  }

  .split-image img {
    height: 480px;
  }

  .verified-layout {
    grid-template-columns: 1fr;
  }

  .story-card {
    grid-template-columns: 120px 1fr;
    gap: 18px;
  }

  .story-card img {
    width: 120px;
    height: 150px;
  }

  .testimonial-shell {
    grid-template-columns: 1fr;
    padding: 42px 22px 66px;
  }

  .slider-arrow {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .navbar,
  .section-inner {
    width: min(100% - 28px, 460px);
  }

  .brand-mark {
    font-size: 1.15rem;
  }

  .hero-bg {
    opacity: 0.36;
  }

  .hero-copy {
    padding-top: 8px;
  }

  .hero-subtitle {
    font-size: 1.08rem;
  }

  .btn {
    min-height: 58px;
  }

  .image-frame {
    border-radius: 26px;
    padding: 8px;
  }

  .image-frame::after {
    inset: 8px;
    border-radius: 20px;
  }

  .image-frame img {
    height: 430px;
    border-radius: 20px;
  }

  .floating-card {
    position: static;
    margin: -54px 18px 0;
    transform: translateY(0);
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .glass-card,
  .premium-card,
  .stat-card {
    padding: 26px;
  }

  .split-image img {
    height: 360px;
  }

  .story-card {
    grid-template-columns: 1fr;
  }

  .story-card img {
    width: 100%;
    height: 260px;
  }

  .timeline-item {
    padding: 30px 18px;
  }

  .testimonial-track {
    min-height: 220px;
  }

  .cta-banner {
    padding: 72px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* Reference compact luxury landing */
.mobile-top-cta {
  display: none;
}

.reference-hero {
  min-height: 76vh;
  padding: 160px 0 72px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.2);
}

.reference-hero .hero-bg {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.96) 0%, rgba(5, 5, 5, 0.72) 42%, rgba(5, 5, 5, 0.18) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.92) 0%, rgba(5, 5, 5, 0.05) 42%),
    url("/new-v2/images/banner.png") center 20% / cover;
  opacity: 1;
}

.reference-inner {
  position: relative;
  z-index: 2;
}

.reference-hero .hero-copy {
  max-width: 620px;
}

.reference-hero h1 {
  margin-top: 0;
  font-size: clamp(1.75rem, 3.6vw, 3.2rem);
  white-space: nowrap;
}

.reference-hero .hero-subtitle {
  max-width: 430px;
  margin-top: 30px;
}

.reference-panel,
.reference-stats,
.reference-stories {
  border-bottom: 1px solid rgba(201, 168, 106, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 168, 106, 0.09), transparent 28rem),
    rgba(5, 5, 5, 0.78);
}

.reference-panel {
  padding: 44px 0 36px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(201, 168, 106, 0.14);
  border-radius: 18px;
  background: rgba(12, 12, 12, 0.68);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.feature-item {
  padding: 34px 28px;
  text-align: center;
}

.feature-item + .feature-item {
  border-left: 1px solid rgba(201, 168, 106, 0.13);
}

.feature-icon {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, rgba(201, 168, 106, 0.12), transparent 58%),
    rgba(5, 5, 5, 0.72);
  box-shadow: inset 0 0 0 1px rgba(245, 230, 200, 0.04);
  color: var(--gold);
  place-items: center;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition), background var(--transition);
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.96;
}

.feature-item:hover .feature-icon {
  border-color: var(--gold-light);
  background:
    radial-gradient(circle at 50% 34%, rgba(201, 168, 106, 0.22), transparent 60%),
    rgba(10, 10, 10, 0.9);
  box-shadow:
    0 0 24px rgba(201, 168, 106, 0.32),
    inset 0 0 0 1px rgba(245, 230, 200, 0.12);
  transform: translateY(-3px);
}

.feature-item h3 {
  color: var(--gold);
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature-item p {
  max-width: 180px;
  margin: 10px auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.55;
}

.reference-stats {
  padding: 46px 0 40px;
}

.reference-title {
  color: var(--gold-light);
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 760px;
  margin: 30px auto 0;
}

.stat-simple {
  position: relative;
  text-align: center;
}

.stat-simple + .stat-simple::before {
  position: absolute;
  top: 10px;
  bottom: 8px;
  left: 0;
  width: 1px;
  background: rgba(201, 168, 106, 0.44);
  content: "";
}

.stat-simple strong,
.stat-simple span {
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  line-height: 1;
}

.stat-simple p {
  margin-top: 8px;
  color: rgba(245, 230, 200, 0.84);
  font-size: 0.82rem;
  line-height: 1.45;
}

.reference-register-steps {
  border-bottom: 1px solid rgba(201, 168, 106, 0.18);
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(201, 168, 106, 0.07), transparent 52%),
    linear-gradient(180deg, #171412 0%, #0d0c0b 48%, #070605 100%);
  padding: 52px 0 50px;
}

.register-steps-inner {
  max-width: min(1040px, calc(100% - 48px));
}

.register-steps-head {
  margin-bottom: 40px;
  text-align: center;
}

.register-steps-sub {
  margin: 0;
  color: var(--gold);
  font-family: "Inter", sans-serif;
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.42em;
}

.register-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 4vw, 42px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.register-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.register-step-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  border: 1px solid rgba(201, 168, 106, 0.85);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 28%, rgba(201, 168, 106, 0.14), transparent 62%),
    rgba(6, 5, 4, 0.92);
  box-shadow: inset 0 0 0 1px rgba(245, 230, 200, 0.06);
  color: var(--gold);
  place-items: center;
}

.register-step-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.register-step-text {
  margin: 0;
  max-width: 28rem;
  color: var(--gold);
  font-size: clamp(0.84rem, 1.35vw, 0.95rem);
  font-weight: 600;
  line-height: 1.75;
}

.register-steps-cta {
  margin-top: 44px;
  text-align: center;
}

.btn-register-steps {
  min-height: 58px;
  min-width: min(280px, 86vw);
  padding: 0 44px;
  border-radius: 14px;
  color: #15110a;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #c9a86a 0%, #f5e6c8 42%, #b98d3d 78%, #8a6830 100%);
  box-shadow:
    0 16px 44px rgba(201, 168, 106, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-register-steps:hover {
  box-shadow:
    0 20px 56px rgba(201, 168, 106, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.reference-stories {
  padding: 38px 0 54px;
}

.story-carousel {
  margin-top: 28px;
}

.story-viewport {
  overflow: hidden;
}

.story-track {
  display: flex;
  gap: 22px;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.story-carousel .story-card {
  flex: 0 0 calc((100% - 22px) / 2);
  grid-template-columns: 145px 1fr;
  min-height: 210px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.story-carousel .story-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.story-carousel .story-card strong {
  color: var(--gold);
}

.story-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 28px;
}

.story-dots button {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 230, 200, 0.28);
  transition: width var(--transition), background var(--transition), opacity var(--transition);
}

.story-dots button.active {
  width: 22px;
  border-radius: 999px;
  background: var(--gold);
}

.join-banner {
  border-top: 1px solid rgba(201, 168, 106, 0.18);
  border-bottom: 1px solid rgba(201, 168, 106, 0.2);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.76), rgba(5, 5, 5, 0.34)),
    radial-gradient(circle at 78% 50%, rgba(201, 168, 106, 0.16), transparent 22rem),
    url("/new-v2/images/banner.png") center 64% / cover;
}

.join-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 154px;
  padding: 32px 0;
}

.join-banner h2 {
  max-width: 560px;
  color: var(--white);
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1.16;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}

.join-banner .btn {
  min-width: 220px;
  border-radius: 10px;
}

.site-footer {
  display: block;
  border-top: 1px solid rgba(201, 168, 106, 0.2);
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 168, 106, 0.08), transparent 24rem),
    #050505;
}

.site-footer .footer-grid {
  padding-top: 56px;
}

.footer-about p {
  color: rgba(245, 230, 200, 0.72);
}

.site-footer .footer-brand {
  display: flex;
  width: max-content;
  margin: 0 auto;
  margin-bottom: 11px; /* was ~22px via .footer-brand; tighter band around raster logo */
  padding-top: 21px; /* was 42px — half vertical gap above logo */
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 34px;
  padding: 15px 0 26px; /* was 30px top — half gap below logo */
}

.footer-links a {
  color: rgba(245, 230, 200, 0.72);
  font-size: 0.92rem;
  transition: color var(--transition), text-shadow var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
  text-shadow: 0 0 18px rgba(201, 168, 106, 0.32);
}

/* Raster footer: visibly tighter band (tiny −42→21px alone is dwarfed by ~9rem-tall img) */
body.site-pc-logo .site-footer .footer-brand {
  padding-top: 10px;
  margin-bottom: 8px;
  line-height: 0;
}

body.site-pc-logo .site-footer .footer-links {
  padding: 8px 0 26px;
}

/* PC: extra space above logo only (~match gap below = margin-bottom 8 + links padding-top 8); does not change red zone */
@media (min-width: 641px) {
  body.site-pc-logo .site-footer .footer-brand {
    padding-top: 16px;
  }
}

body.site-pc-logo .join-banner-inner {
  padding-bottom: 16px; /* default 32px — pull CTA band closer to footer */
}

@media (min-width: 861px) {
  .reference-hero .hero-actions .btn {
    min-width: 180px;
  }
}

@media (max-width: 860px) {
  .site-header {
    background: transparent;
    backdrop-filter: none;
  }

  .site-header.scrolled {
    background: rgba(5, 5, 5, 0.86);
    backdrop-filter: blur(18px);
  }

  .navbar {
    gap: 8px;
    box-sizing: border-box;
    padding-left: max(0px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
  }

  .brand {
    margin-right: auto;
    order: 1;
  }

  .mobile-top-cta {
    display: inline-flex;
    flex-shrink: 0;
    min-height: 44px;
    padding: 0 24px;
    order: 2;
    white-space: nowrap;
  }

  .menu-toggle {
    order: 3;
    flex-shrink: 0;
    min-width: 44px;
    box-sizing: border-box;
  }

  /* Allow brand column to shrink; no negative margin on narrow screens (was clipping menu under body overflow-x) */
  body.site-pc-logo .navbar .brand {
    margin-left: 0;
    min-width: 0;
    flex: 1 1 auto;
  }

  body.site-pc-logo .navbar .brand-logo-pc {
    max-width: 100%;
  }

  .nav-panel .nav-cta {
    display: none;
  }

  .reference-hero {
    display: block;
    min-height: 60vh;
    padding: 245px 0 34px;
  }

  .reference-hero .hero-bg {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.12) 0%, rgba(5, 5, 5, 0.22) 34%, rgba(5, 5, 5, 0.94) 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.68), rgba(5, 5, 5, 0.08) 62%),
      url("/new-v2/images/mobile_banner.png") center -56px / cover;
  }

  .reference-hero h1 {
    max-width: 360px;
    font-size: clamp(2.55rem, 10vw, 3.45rem);
    letter-spacing: -0.04em;
    line-height: 1.18;
    white-space: normal;
  }

  .reference-hero .hero-subtitle {
    max-width: 280px;
    margin-top: 20px;
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .reference-hero .hero-actions {
    width: 100%;
    margin-top: 28px;
  }

  .reference-panel {
    padding: 16px 0 20px;
  }

  .feature-strip {
    grid-template-columns: repeat(3, 1fr);
    border-radius: 12px;
  }

  .feature-item {
    padding: 24px 10px 22px;
  }

  .feature-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 14px;
    font-size: 1rem;
  }

  .feature-item h3 {
    font-size: 0.78rem;
  }

  .feature-item p {
    font-size: 0.72rem;
  }

  .reference-stats {
    padding: 26px 0 28px;
  }

  .stats-row {
    margin-top: 20px;
  }

  .reference-register-steps {
    padding: 36px 0 38px;
  }

  .register-steps-head {
    margin-bottom: 28px;
  }

  .register-steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .register-step-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
  }

  .register-step-icon svg {
    width: 30px;
    height: 30px;
  }

  .register-steps-cta {
    margin-top: 34px;
  }

  .btn-register-steps {
    width: 100%;
    max-width: 360px;
    min-width: 0;
  }

  .reference-stories {
    padding: 24px 0 34px;
  }

  .story-carousel .story-card {
    flex-basis: 100%;
    grid-template-columns: 112px 1fr;
    min-height: 162px;
    padding: 16px;
  }

  .story-carousel .story-card img {
    width: 112px;
    height: 130px;
  }

  .story-carousel .story-card p {
    font-size: 0.88rem;
    line-height: 1.65;
  }

  .join-banner {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.48)),
      radial-gradient(circle at 70% 40%, rgba(201, 168, 106, 0.14), transparent 18rem),
      url("/new-v2/images/mobile_banner.png") center 42% / cover;
  }

  .join-banner-inner {
    flex-direction: row;
    align-items: center;
    min-height: 150px;
    padding: 34px 0;
  }

  .join-banner h2 {
    max-width: 58%;
    font-size: clamp(1.35rem, 5.4vw, 1.85rem);
  }

  .join-banner .btn {
    width: auto;
    min-width: 118px;
    min-height: 48px;
    padding: 0 18px;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  body {
    background: #030303;
  }

  .navbar,
  .section-inner {
    width: calc(100% - 40px);
  }

  .navbar {
    min-height: 86px;
    gap: 8px;
    padding-right: max(8px, env(safe-area-inset-right, 0px)); /* a bit closer to right edge; keep >= safe area */
    padding-left: env(safe-area-inset-left, 0px);
  }

  body.site-pc-logo .navbar .brand {
    margin-left: -12px; /* logo a bit more left */
  }

  .brand-mark {
    font-size: 1.36rem;
  }

  .brand-sub {
    font-size: 0.6rem;
  }

  .mobile-top-cta {
    flex-shrink: 0;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    white-space: nowrap;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    flex-shrink: 0;
    min-width: 44px;
    margin-right: 0;
  }

  .menu-toggle span {
    width: 28px;
    height: 2px;
    margin: 6px auto;
  }

  .reference-hero {
    padding-top: 258px;
  }

  .reference-hero h1 {
    max-width: 325px;
  }

  .reference-title {
    font-size: 1.45rem;
  }

  .stat-simple strong,
  .stat-simple span {
    font-size: 2rem;
  }

  .stat-simple p {
    font-size: 0.72rem;
  }
}

/* ----- Auth: login & register (C:\Users\gjsio\Downloads\CD1) ----- */
.auth-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.auth-body .site-header {
  border-bottom-color: rgba(201, 168, 106, 0.16);
  background: rgba(7, 7, 7, 0.9);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.auth-body .site-footer {
  margin-top: auto;
}

.auth-register-main,
.auth-login-main {
  flex: 1;
  width: 100%;
}

.auth-register-main {
  padding-top: 72px;
}

/* Register: pull form block upward (desktop was vertically centered) */
.auth-register-main--form-up .auth-form-panel {
  padding-top: 20px;
}

/* Register mobile: tighten hero → form gap (grid min-height was stretching rows) */
@media (max-width: 1023px) {
  .auth-register-main--form-up .auth-split {
    min-height: unset;
    align-content: start;
    row-gap: 0;
  }

  .auth-register-main--form-up .auth-hero {
    min-height: 168px;
    margin-bottom: -36px;
    padding-bottom: 0;
    z-index: 0;
  }

  /*
   * Pull form toward banner: negative margins overlap hero — keep form panel z-index
   * above hero layers so headings are not obscured (see auth-hero-bg / overlay).
   */
  .auth-register-main--form-up .auth-form-panel {
    position: relative;
    z-index: 1;
    margin-top: -36px;
    padding-top: 4px;
    padding-bottom: 36px;
    border-top: none;
  }
}

@media (min-width: 1024px) {
  .auth-register-main--form-up .auth-form-panel {
    align-items: flex-start;
    padding-top: 28px;
    padding-bottom: 48px;
  }
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(880px, calc(100vh - 72px));
}

.auth-hero {
  position: relative;
  min-height: 240px;
  overflow: hidden;
}

.auth-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.15) 0%, rgba(5, 5, 5, 0.55) 45%, rgba(5, 5, 5, 0.92) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0.2) 55%),
    url("/new-v2/images/banner.png") center 20% / cover;
}

.auth-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 55%);
  pointer-events: none;
}

.auth-hero-copy {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 32px;
  z-index: 2;
}

.auth-hero-line {
  margin: 0;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  line-height: 1.45;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
}

.auth-hero-line + .auth-hero-line {
  margin-top: 6px;
}

.auth-form-panel {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 36px 0 48px;
  border-top: 1px solid rgba(201, 168, 106, 0.18);
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 168, 106, 0.08), transparent 22rem),
    rgba(5, 5, 5, 0.92);
}

.auth-form-inner {
  width: min(440px, calc(100% - 32px));
}

.auth-register-title {
  margin: 0;
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.45rem, 3.2vw, 1.85rem);
  text-align: center;
  line-height: 1.25;
}

.auth-register-sub {
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.auth-role-fieldset {
  border: 0;
  margin: 0 0 8px;
  padding: 0;
}

.auth-role-picker {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.auth-role {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.auth-role input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-role-circle {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid rgba(201, 168, 106, 0.35);
  border-radius: 50%;
  font-size: 1.75rem;
  background: rgba(10, 10, 10, 0.72);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-role input:checked + .auth-role-circle {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 106, 0.18);
}

.auth-role-label {
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-role input:checked ~ .auth-role-label {
  color: var(--gold-light);
}

.auth-role-hint {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
}

.auth-warning {
  margin: 16px 0 8px;
  color: var(--gold);
  font-size: 0.84rem;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 8, 8, 0.72);
  overflow: hidden;
}

.auth-field:focus-within {
  border-color: rgba(245, 230, 200, 0.42);
}

.auth-field-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  flex-shrink: 0;
  color: rgba(245, 230, 200, 0.55);
  border-right: 1px solid rgba(201, 168, 106, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.auth-field-icon-top {
  align-self: flex-start;
  padding-top: 14px;
}

.auth-field input,
.auth-field textarea {
  flex: 1;
  border: 0;
  padding: 14px 16px;
  background: transparent;
  color: var(--white);
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
}

.auth-field textarea {
  min-height: 92px;
  resize: vertical;
}

.auth-field input::placeholder,
.auth-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.auth-field-tall {
  align-items: stretch;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.auth-checkbox input {
  margin-top: 4px;
  accent-color: var(--gold);
}

.auth-checkbox a {
  color: var(--gold-light);
}

.auth-checkbox a:hover {
  color: var(--gold);
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.auth-submit-wide {
  width: 100%;
  border-radius: 12px;
}

.auth-login-main {
  position: relative;
  padding: 110px 0 56px;
}

/* Align with register page heading row (flex-start panel + padding), not vertical center */
.auth-login-main--offset {
  padding-top: 114px;
}

.auth-login-main--offset .auth-login-content {
  align-items: flex-start;
  padding-top: 18px;
}

.auth-login-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.82) 0%, rgba(5, 5, 5, 0.62) 40%, rgba(5, 5, 5, 0.78) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.55), rgba(5, 5, 5, 0.15)),
    url("/new-v2/images/banner.png") center / cover;
  z-index: 0;
}

.auth-login-content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
}

.auth-login-card {
  width: min(420px, 100%);
  padding: 34px 28px 32px;
  border-radius: 18px;
}

.auth-card-title {
  margin: 0 0 26px;
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.65rem, 3vw, 2rem);
  text-align: center;
}

.auth-row-between {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: -4px;
}

.auth-link-muted {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
  transition: color var(--transition);
}

.auth-link-muted:hover {
  color: var(--gold-light);
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  border-radius: 12px;
}

.auth-switch {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.auth-switch a {
  color: var(--gold-light);
  font-weight: 600;
}

.auth-switch a:hover {
  color: var(--gold);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 1024px) {
  .auth-split {
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 72px);
    border-top: 1px solid rgba(201, 168, 106, 0.14);
  }

  .auth-hero {
    min-height: auto;
  }

  .auth-form-panel {
    align-items: center;
    padding: 48px 40px 56px;
    border-top: 0;
    border-left: 1px solid rgba(201, 168, 106, 0.14);
  }

  /* Shift focal point right so the right-side subject stays inside the panel (cover crop) */
  .auth-hero-bg {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.25) 0%, rgba(5, 5, 5, 0.55) 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.25) 52%),
      url("/new-v2/images/banner.png") 66% 25% / cover;
  }

  .auth-hero-copy {
    left: 40px;
    right: 40px;
    bottom: 48px;
  }
}

@media (max-width: 860px) {
  .auth-register-main {
    padding-top: 76px;
  }

  .auth-hero-bg {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.1) 0%, rgba(5, 5, 5, 0.75) 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.65), rgba(5, 5, 5, 0.12)),
      url("/new-v2/images/mobile_banner.png") center -40px / cover;
  }

  .auth-login-bg {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.55) 50%, rgba(5, 5, 5, 0.88) 100%),
      url("/new-v2/images/mobile_banner.png") center / cover;
  }

  .auth-login-main {
    padding-top: 102px;
  }

  .auth-login-main--offset {
    padding-top: 108px;
  }

  .auth-login-main--offset .auth-login-content {
    padding-top: 14px;
  }
}

/* ----- Auth: forgot password ----- */
.auth-forgot-main .auth-forgot-hero .auth-forgot-hero-bg {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.22) 0%, rgba(5, 5, 5, 0.62) 55%, rgba(5, 5, 5, 0.9) 100%),
    linear-gradient(90deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.12) 62%),
    url("/new-v2/images/banner.png") 28% 42% / cover;
}

.auth-forgot-hero-overlay {
  background: linear-gradient(115deg, rgba(0, 0, 0, 0.45) 0%, transparent 48%),
    linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 50%);
}

.auth-forgot-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-forgot-kicker {
  margin: 0;
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.2;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
}

.auth-forgot-tagline {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 600;
  line-height: 1.45;
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}

.auth-forgot-intro {
  margin: 0;
  max-width: 26rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.65;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.auth-forgot-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(201, 168, 106, 0.28);
  border-radius: 12px;
  background: rgba(8, 8, 8, 0.45);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
}

.auth-forgot-trust-icon {
  display: flex;
  color: var(--gold);
}

.auth-forgot-card {
  width: 100%;
  padding: 32px 28px 30px;
  border: 1px solid rgba(201, 168, 106, 0.35);
  border-radius: 18px;
  background: rgba(26, 26, 26, 0.85);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.auth-forgot-title {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  text-align: center;
}

.auth-forgot-lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  text-align: center;
}

.auth-forgot-notice {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-forgot-notice-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
}

.auth-forgot-notice-head strong {
  font-weight: 600;
}

.auth-forgot-notice-icon {
  display: flex;
  color: var(--gold);
}

.auth-forgot-notice-list {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
  line-height: 1.55;
}

.auth-forgot-notice-list li + li {
  margin-top: 4px;
}

.auth-forgot-feedback {
  min-height: 1.2em;
  margin: 0;
  color: rgba(245, 230, 200, 0.85);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: center;
}

.auth-forgot-back-wrap {
  margin: 20px 0 0;
  text-align: center;
}

.auth-forgot-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition);
}

.auth-forgot-back:hover {
  color: var(--gold);
}

.auth-forgot-back-arrow {
  font-size: 1rem;
  line-height: 1;
}

@media (min-width: 1024px) {
  /* Desktop split column: anchor slightly right so the subject stays in frame (was 12% — wrong direction). */
  .auth-forgot-main .auth-forgot-hero .auth-forgot-hero-bg {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.22) 0%, rgba(5, 5, 5, 0.62) 55%, rgba(5, 5, 5, 0.9) 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0.12) 62%),
      url("/new-v2/images/banner.png") 58% 42% / cover;
  }

  .auth-forgot-main .auth-forgot-hero .auth-forgot-hero-copy {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .auth-forgot-form-panel {
    align-items: center;
  }

  .auth-forgot-main .auth-form-inner {
    width: min(440px, calc(100% - 32px));
  }
}

@media (max-width: 1023px) {
  /*
   * Forgot hero stacks more copy than register — keep taller min-height so bottom-anchored text
   * does not clip at the top under overflow:hidden (fixes iPhone SE first line cut off).
   * Specificity beats .auth-register-main--form-up .auth-hero { min-height: 168px }.
   */
  .auth-register-main--form-up .auth-hero.auth-forgot-hero {
    min-height: max(260px, min(300px, 52vh));
  }

  /*
   * Forgot: do NOT overlap hero + form on mobile — negative margins pull the panel over the photo and
   * clip the intro line; register can overlap because its hero has no copy.
   */
  .auth-forgot-main.auth-register-main--form-up .auth-hero.auth-forgot-hero {
    margin-bottom: -30px;
  }

  .auth-forgot-main.auth-register-main--form-up .auth-form-panel.auth-forgot-form-panel {
    margin-top: -30px;
    padding-top: 2px;
  }

  .auth-forgot-main .auth-forgot-hero .auth-forgot-hero-copy {
    bottom: max(64px, calc(env(safe-area-inset-bottom, 0px) + 52px));
  }
}

@media (max-width: 860px) {
  .auth-forgot-main.auth-register-main {
    padding-top: 30px;
  }

  .auth-forgot-main .auth-forgot-hero .auth-forgot-hero-bg {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.12) 0%, rgba(5, 5, 5, 0.78) 100%),
      linear-gradient(90deg, rgba(5, 5, 5, 0.55), rgba(5, 5, 5, 0.08)),
      url("/new-v2/images/mobile_banner.png") center 28% / cover;
  }

  .auth-forgot-main .auth-forgot-hero .auth-forgot-hero-copy {
    top: auto;
    left: max(20px, env(safe-area-inset-left, 0px));
    right: max(20px, env(safe-area-inset-right, 0px));
    bottom: max(64px, calc(env(safe-area-inset-bottom, 0px) + 52px));
    transform: none;
    gap: 8px;
  }

  .auth-forgot-intro {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .auth-forgot-trust {
    margin-top: 4px;
    padding: 8px 12px;
    font-size: 0.78rem;
  }
}

@media (max-width: 380px) {
  .auth-register-main--form-up .auth-hero.auth-forgot-hero {
    min-height: max(276px, min(316px, 54vh));
  }

  .auth-forgot-kicker {
    font-size: 1.28rem;
  }
}

/* ----- Member: profile edit (personal dashboard) ----- */
.member-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(201, 168, 106, 0.12), transparent 26rem),
    linear-gradient(145deg, #050505, #0d0d0d 42%, #050505);
}

.member-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: min(280px, 86vw);
  height: 100vh;
  padding: 24px 18px 28px;
  border-right: 1px solid rgba(201, 168, 106, 0.28);
  background:
    linear-gradient(165deg, rgba(42, 38, 34, 0.98) 0%, rgba(26, 24, 22, 0.99) 55%, rgba(20, 18, 17, 1) 100%);
  box-shadow: 12px 0 48px rgba(0, 0, 0, 0.38);
}

.member-sidebar-brand {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.28);
}

.member-sidebar-logo {
  width: 100%;
}

/* Member pages: ≥901px 隱藏頂欄，側欄需顯示與首頁相同的 PC 橫式 logo */
.member-sidebar-brand-logo {
  display: none;
}

@media (min-width: 901px) {
  /* 與 body.site-pc-logo .navbar .brand-logo-pc 相同高度規則；側欄較窄故加 max-width:100% */
  .member-sidebar-brand .member-sidebar-brand-logo {
    display: block;
    max-width: 100%;
    height: clamp(3.25rem, 2rem + 2.8vw, 4.25rem);
    width: auto;
    object-fit: contain;
    object-position: left center;
  }

  .member-sidebar-brand .member-sidebar-logo .brand-mark,
  .member-sidebar-brand .member-sidebar-logo .brand-sub {
    display: none;
  }
}

.member-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.member-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  padding: 12px 16px 12px 22px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid rgba(201, 168, 106, 0.22);
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.member-nav-link:hover {
  border-color: rgba(201, 168, 106, 0.4);
  background: rgba(255, 255, 255, 0.09);
  color: var(--gold-light);
}

.member-nav-link.is-active {
  border-color: rgba(201, 168, 106, 0.65);
  background: linear-gradient(135deg, #f0e4c8 0%, #deb76a 48%, #c9a86a 100%);
  color: #1a1408;
  box-shadow: 0 8px 28px rgba(201, 168, 106, 0.22);
}

.member-nav-link.is-active .member-nav-ico {
  color: #2a2210;
  background: rgba(26, 20, 8, 0.12);
}

.member-nav-ico {
  display: grid;
  width: 34px;
  height: 34px;
  margin-left: 2px;
  border-radius: 10px;
  place-items: center;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
}

.member-nav-link--btn {
  margin-top: auto;
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(201, 168, 106, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.member-nav-link--btn:hover {
  color: var(--gold-light);
  border-color: rgba(201, 168, 106, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

/* 漢堡內 .nav-panel a:not(.btn) 的 padding:16px 0 會蓋掉 .member-nav-link，圖示易貼邊；此處與 PC 側欄一致 */
.nav-panel a.member-nav-link {
  padding: 12px 16px 12px 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-panel a.member-nav-link .member-nav-ico {
  margin-left: 2px;
  flex-shrink: 0;
}

.member-wrap {
  min-height: 100vh;
  margin-left: 0;
  display: flex;
  flex-direction: column;
}

/* 與 index.html 相同之 site-footer；置於 member-wrap 內時貼底並佔滿主內容欄寬 */
.member-wrap > .site-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
}

.member-main {
  flex: 1;
  padding: 28px 0 56px;
}

.member-main-inner--wide {
  width: min(1040px, calc(100% - 36px));
}

.member-page-title {
  margin: 0 0 22px;
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.85rem, 3.6vw, 2.45rem);
  letter-spacing: 0.02em;
}

.member-card {
  margin-bottom: 22px;
  padding: 26px 24px 28px;
  border: 1px solid rgba(201, 168, 106, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(10, 10, 10, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.member-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.member-section-title {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
}

.member-section-title--inline {
  margin-bottom: 0;
}

.member-personal > .member-field + .member-field {
  margin-top: 18px;
}

.member-required-note {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

.member-upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.member-upload-block--wide {
  min-width: 0;
}

.member-field-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 600;
}

.member-field-required {
  margin-right: 4px;
  color: #e57373;
  font-weight: 700;
}

.member-avatar-frame {
  position: relative;
  width: min(220px, 72vw);
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 106, 0.28);
  background: rgba(0, 0, 0, 0.35);
  margin-bottom: 14px;
}

.member-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.member-photo-cell {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 106, 0.22);
  background: rgba(0, 0, 0, 0.35);
}

.member-photo-cell--empty {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.03);
}

.member-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-photo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1a1408;
  background: linear-gradient(135deg, #c9a86a, #f5e6c8);
}

.member-photo-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 1.1rem;
  line-height: 1;
  color: #fff;
  background: rgba(220, 60, 60, 0.92);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.member-photo-remove:hover {
  filter: brightness(1.08);
}

.member-photo-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
}

.member-photo-add-icon {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  place-items: center;
  border: 1px dashed rgba(201, 168, 106, 0.45);
  color: var(--gold-light);
  font-size: 1.45rem;
  line-height: 1;
}

.member-photo-add-text {
  font-weight: 600;
}

.member-upload-btn {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.member-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}

@media (min-width: 901px) {
  .member-field--full-row {
    grid-column: 1 / -1;
  }
}

.member-field {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.member-field input,
.member-field select,
.member-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 106, 0.22);
  background: rgba(6, 6, 6, 0.72);
  color: var(--white);
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: border-color var(--transition);
}

.member-field input:focus,
.member-field select:focus,
.member-field textarea:focus {
  border-color: rgba(245, 230, 200, 0.45);
}

.member-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% + 3px), calc(100% - 16px) calc(50% + 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.member-field--stack select + select {
  margin-top: 10px;
}

.member-inline-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.member-inline-check input {
  width: auto;
  accent-color: var(--gold);
}

.member-field--textarea textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.member-save-btn {
  min-height: 50px;
  padding: 0 32px;
  border-radius: 12px;
}

.member-save-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 200;
  box-sizing: border-box;
  width: min(400px, calc(100vw - 48px));
  margin: 0;
  max-height: min(90vh, 520px);
  padding: 0;
  border: none;
  background: transparent;
  transform: translate(-50%, -50%);
}

.member-save-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
}

.member-save-dialog-panel {
  box-sizing: border-box;
  max-height: min(90vh, 520px);
  padding: 28px 26px 24px;
  overflow-y: auto;
  border: 1px solid rgba(201, 168, 106, 0.35);
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(12, 11, 10, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.member-save-dialog-title {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-size: 1.45rem;
  text-align: center;
  line-height: 1.25;
}

.member-save-dialog-msg {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  line-height: 1.65;
  text-align: center;
}

.member-save-dialog-hint {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.82rem;
  line-height: 1.5;
}

.member-save-dialog-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
}

.member-save-dialog-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.member-save-dialog-btn--half {
  flex: 1;
  width: auto;
  min-width: 0;
}

.member-save-dialog--confirm .btn-outline {
  border-radius: 12px;
}

@media (min-width: 901px) {
  .member-body .member-site-header {
    display: none !important;
  }

  .member-wrap {
    margin-left: 280px;
  }

  .member-upload-grid {
    grid-template-columns: minmax(240px, 320px) 1fr;
    align-items: start;
    gap: 36px;
  }

  .member-nav {
    flex: 1;
  }
}

@media (max-width: 900px) {
  .member-body .member-sidebar {
    display: none !important;
  }

  .member-body .member-wrap {
    padding-top: 76px;
  }

  .member-body .site-header.member-site-header {
    border-bottom-color: rgba(201, 168, 106, 0.16);
    background: rgba(7, 7, 7, 0.9);
    backdrop-filter: blur(22px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  }

  .member-body .menu-toggle {
    display: block !important;
    position: relative;
    z-index: 61;
  }

  .member-body .navbar {
    width: min(100% - 34px, 680px);
    margin: 0 auto;
    min-height: 76px;
  }

  .member-body .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: min(360px, 88vw);
    height: 100vh;
    padding: 96px 28px 36px;
    border-left: 1px solid rgba(201, 168, 106, 0.28);
    background:
      linear-gradient(165deg, rgba(42, 38, 34, 0.98) 0%, rgba(26, 24, 22, 0.99) 55%, rgba(20, 18, 17, 1) 100%);
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.38);
    transform: translateX(105%);
    transition: transform 320ms ease;
    overflow-y: auto;
  }

  .member-body .nav-panel.open {
    transform: translateX(0);
  }

  .member-form-grid {
    grid-template-columns: 1fr;
  }

  .member-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .member-card {
    padding: 20px 16px 22px;
  }

  .member-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* ----- App: inbox & chat (mobile-first, post-login) ----- */
.cd-app-body {
  min-height: 100vh;
  margin: 0;
  background: #030303;
}

.cd-app-body.cd-menu-open {
  overflow: hidden;
}

.cd-app {
  display: flex;
  flex-direction: column;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  background: linear-gradient(180deg, #050505 0%, #0a0a0a 40%, #050505 100%);
  border-left: 1px solid rgba(201, 168, 106, 0.12);
  border-right: 1px solid rgba(201, 168, 106, 0.12);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
}

.cd-app--chat {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.cd-app-top {
  flex-shrink: 0;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.12);
  background: rgba(5, 5, 5, 0.92);
}

.cd-app-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cd-app-brand {
  display: flex;
  flex-direction: column;
  letter-spacing: 0.2em;
}

.cd-app-brand-main {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
}

.cd-app-brand-sub {
  font-size: 0.55rem;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.72);
}

.cd-icon-btn {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  place-items: center;
  border: 1px solid rgba(201, 168, 106, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-light);
  transition: background var(--transition), border-color var(--transition);
}

.cd-icon-btn:hover {
  border-color: rgba(245, 230, 200, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.cd-icon-btn--ghost {
  border-color: transparent;
  background: transparent;
}

.cd-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
}

.cd-hamburger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--gold-light);
}

.cd-vip-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1a1408;
  background: linear-gradient(135deg, #c9a86a 0%, #f5e6c8 50%, #b98d3d 100%);
  box-shadow: 0 10px 30px rgba(201, 168, 106, 0.25);
}

.cd-vip-banner:hover {
  filter: brightness(1.05);
}

.cd-vip-crown {
  display: flex;
  color: #1a1408;
}

.cd-slide-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.cd-slide-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  width: min(300px, 86vw);
  height: 100vh;
  padding: 28px 22px;
  background:
    linear-gradient(165deg, rgba(42, 38, 34, 0.98) 0%, rgba(26, 24, 22, 0.99) 100%);
  border-left: 1px solid rgba(201, 168, 106, 0.28);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(105%);
  transition: transform 320ms ease;
}

.cd-slide-panel.is-open {
  transform: translateX(0);
}

.cd-slide-title {
  margin: 0 0 18px;
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
}

.cd-slide-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cd-slide-link {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 106, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  transition: background var(--transition), border-color var(--transition);
}

.cd-slide-link:hover {
  border-color: rgba(201, 168, 106, 0.4);
  color: var(--gold-light);
}

.cd-slide-link.is-active {
  border-color: rgba(201, 168, 106, 0.55);
  background: rgba(201, 168, 106, 0.12);
  color: var(--gold-light);
}

.cd-slide-link--btn {
  margin-top: 16px;
  cursor: pointer;
  font: inherit;
}

.cd-app-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 16px 100px;
}

.cd-inbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cd-inbox-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold);
}

.cd-inbox-actions {
  display: flex;
  gap: 4px;
}

.cd-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.cd-tab {
  flex: 1;
  min-height: 40px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(201, 168, 106, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.cd-tab.is-active {
  border-color: rgba(201, 168, 106, 0.55);
  background: linear-gradient(135deg, rgba(201, 168, 106, 0.22), rgba(201, 168, 106, 0.08));
  color: var(--gold-light);
}

.cd-tab-badge {
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1a1408;
  background: linear-gradient(135deg, #deb76a, #f5e6c8);
  vertical-align: middle;
}

.cd-thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cd-thread-link {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.cd-thread-link:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(201, 168, 106, 0.12);
}

.cd-thread-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
}

.cd-thread-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 168, 106, 0.28);
}

.cd-thread-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cd-thread-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cd-thread-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.cd-age {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.cd-vip-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #1a1408;
  background: linear-gradient(135deg, #c9a86a, #f5e6c8);
}

.cd-thread-preview {
  display: block;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-thread-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.cd-thread-time {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.cd-unread-dot {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1a1408;
  background: linear-gradient(135deg, #deb76a, #f5e6c8);
}

.cd-thread[data-unread-count="0"] .cd-unread-dot {
  display: none;
}

.cd-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 40;
  display: flex;
  width: 100%;
  max-width: 430px;
  transform: translateX(-50%);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid rgba(201, 168, 106, 0.18);
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(16px);
}

.cd-bottom-nav-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

.cd-bottom-nav-item svg {
  opacity: 0.85;
}

.cd-bottom-nav-item.is-active {
  color: var(--gold);
}

.cd-bottom-nav-item.is-active svg {
  stroke: var(--gold);
  opacity: 1;
}

.cd-bottom-nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 22px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  color: #1a1408;
  background: linear-gradient(135deg, #deb76a, #f5e6c8);
}

/* Chat */
.cd-chat-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.15);
  background: rgba(5, 5, 5, 0.96);
}

.cd-chat-peer {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cd-chat-peer-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.cd-chat-peer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 168, 106, 0.35);
}

.cd-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3ecf8e;
  border: 2px solid #050505;
}

.cd-chat-peer-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cd-chat-peer-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-chat-peer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
}

.cd-online-label {
  color: #5ddf9a;
}

.cd-offline-label {
  color: rgba(255, 255, 255, 0.38);
}

.cd-chat-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px 220px;
}

.cd-chat-date {
  text-align: center;
  margin-bottom: 16px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.38);
}

.cd-msg-row {
  display: flex;
  margin-bottom: 12px;
}

.cd-msg-row--in {
  justify-content: flex-start;
}

.cd-msg-row--out {
  justify-content: flex-end;
}

.cd-bubble {
  max-width: min(78%, 320px);
  padding: 10px 14px 8px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.cd-bubble p {
  margin: 0;
  color: inherit;
}

.cd-bubble--in {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  border-bottom-left-radius: 6px;
}

.cd-bubble--out {
  background: linear-gradient(145deg, #d4b87a, #c9a86a 45%, #a67c32);
  color: #141109;
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 24px rgba(201, 168, 106, 0.18);
}

.cd-msg-time {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  font-style: normal;
  opacity: 0.65;
}

.cd-msg-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 4px;
}

.cd-msg-foot .cd-msg-time {
  margin-top: 0;
}

.cd-msg-read {
  display: flex;
  color: rgba(20, 17, 9, 0.65);
}

.cd-emoji-panel {
  position: fixed;
  bottom: 72px;
  left: 50%;
  z-index: 45;
  width: 100%;
  max-width: 430px;
  transform: translateX(-50%);
  padding: 12px 12px 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid rgba(201, 168, 106, 0.2);
  background: #121212;
  max-height: min(38vh, 300px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cd-emoji-panel[hidden] {
  display: none !important;
}

.cd-emoji-search-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 106, 0.15);
  background: #1a1a1a;
  color: var(--white);
  font-size: 0.88rem;
  outline: none;
}

.cd-emoji-recents {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cd-emoji-chip {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 106, 0.15);
  background: #1e1e1e;
  font-size: 1.15rem;
  cursor: pointer;
}

.cd-emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-bottom: 4px;
}

.cd-emoji-cell {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
}

.cd-emoji-cell:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cd-emoji-bar {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cd-emoji-bar-btn {
  min-width: 44px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.cd-emoji-bar-btn.is-active {
  border-color: rgba(201, 168, 106, 0.35);
  color: var(--gold-light);
}

.cd-composer {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 430px;
  transform: translateX(-50%);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid rgba(201, 168, 106, 0.18);
  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(12px);
}

.cd-composer-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c1c1c;
}

.cd-composer-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 0.92rem;
  outline: none;
}

.cd-composer-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.cd-composer-ico {
  display: flex;
  flex-shrink: 0;
  padding: 4px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.cd-composer-ico:hover {
  color: var(--gold-light);
}

.cd-send-btn {
  display: grid;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  border: 0;
  color: #1a1408;
  background: linear-gradient(135deg, #f5e6c8, #c9a86a);
  box-shadow: 0 8px 22px rgba(201, 168, 106, 0.28);
  cursor: pointer;
}

.cd-send-btn:hover {
  filter: brightness(1.06);
}

@media (min-width: 480px) {
  .cd-app {
    margin-top: 12px;
    margin-bottom: 12px;
    min-height: calc(100vh - 24px);
    border-radius: 20px;
    overflow: hidden;
  }

  .cd-bottom-nav {
    max-width: 430px;
    border-radius: 0 0 20px 20px;
  }
}

/* ----- Member shell: inbox & chat (aligned with profile.html) ----- */
.member-vip-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  margin-bottom: 22px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1a1408;
  background: linear-gradient(135deg, #c9a86a 0%, #f5e6c8 50%, #b98d3d 100%);
  box-shadow: 0 10px 28px rgba(201, 168, 106, 0.2);
  transition: filter var(--transition);
}

.member-vip-strip:hover {
  filter: brightness(1.04);
}

.member-vip-strip-icon {
  display: flex;
  color: #1a1408;
}

/* Inbox card: mobile-first padding ~18px from card edges; icons in header top-right */
.member-card--inbox {
  padding: 18px 18px 22px;
}

@media (min-width: 481px) {
  .member-card--inbox {
    padding: 22px 24px 26px;
  }
}

.member-inbox-conv-header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  width: 100%;
}

.member-inbox-lead-wrap {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
}

.member-inbox-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  line-height: 1.45;
}

.member-inbox-actions {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  align-self: flex-start;
}

.member-icon-btn {
  display: grid;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  place-items: center;
  border: 1px solid rgba(201, 168, 106, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-light);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.member-icon-btn:hover {
  border-color: rgba(245, 230, 200, 0.38);
  background: rgba(255, 255, 255, 0.09);
}

.member-inbox-tabs {
  flex-wrap: wrap;
}

.member-inbox-tabs .cd-tab {
  flex: 1 1 calc(33.33% - 8px);
  min-width: 5.5rem;
}

.member-thread-list {
  gap: 6px;
}

.member-thread-list .cd-thread-link {
  padding-left: 12px;
  padding-right: 12px;
}

@media (min-width: 720px) {
  .member-thread-list .cd-thread-link {
    grid-template-columns: 56px 1fr auto;
    gap: 16px;
    padding: 14px 14px;
  }

  .member-thread-list .cd-thread-avatar-wrap {
    width: 56px;
    height: 56px;
  }
}

/* Chat inside member layout */
.member-chat-breadcrumb {
  margin-bottom: 16px;
}

.member-chat-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(245, 230, 200, 0.85);
  transition: color var(--transition);
}

.member-chat-back:hover {
  color: var(--gold-light);
}

.member-main--chat {
  padding-bottom: 48px;
}

.member-card--chat {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: visible;
  min-height: min(680px, calc(100vh - 200px));
}

.member-chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.18);
  background: rgba(8, 8, 8, 0.35);
  position: relative;
  z-index: 10;
}

.member-chat-more-wrap {
  position: relative;
  flex-shrink: 0;
  align-self: flex-start;
}

.member-chat-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 12.5rem;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 106, 0.28);
  background: linear-gradient(155deg, rgba(32, 28, 22, 0.98), rgba(14, 13, 12, 0.99));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.member-chat-dropdown[hidden] {
  display: none !important;
}

.member-chat-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 2px 0;
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.member-chat-menu-ico {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 22px;
  color: rgba(201, 168, 106, 0.95);
}

/* 收藏／封鎖選單：線稿與填色或雙狀態 SVG 疊放（與 member-basic 一致） */
.member-chat-menu-ico--fav-swap,
.member-chat-menu-ico--block-swap {
  position: relative;
  display: grid;
  place-items: center;
}

.member-chat-menu-ico--fav-swap > svg,
.member-chat-menu-ico--block-swap > svg {
  grid-area: 1 / 1;
}

.member-chat-menu-ico--fav-swap svg[hidden],
.member-chat-menu-ico--block-swap svg[hidden] {
  display: none !important;
}

.member-chat-menu-item:hover .member-chat-menu-ico,
.member-chat-menu-item:focus-visible .member-chat-menu-ico {
  color: var(--gold-light);
}

.member-chat-menu-label {
  flex: 1;
  min-width: 0;
}

.member-chat-menu-item--danger .member-chat-menu-ico {
  color: rgba(255, 170, 170, 0.92);
}

.member-chat-menu-item--danger:hover .member-chat-menu-ico,
.member-chat-menu-item--danger:focus-visible .member-chat-menu-ico {
  color: #fce4e4;
}

.member-chat-menu-item:hover,
.member-chat-menu-item:focus-visible {
  outline: none;
  background: rgba(201, 168, 106, 0.14);
  color: var(--gold-light);
}

.member-chat-menu-item.is-active {
  color: var(--gold-light);
}

.member-chat-menu-item--danger:hover,
.member-chat-menu-item--danger:focus-visible {
  background: rgba(220, 80, 80, 0.14);
  color: #f2c4c4;
}

.member-chat-peer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.member-chat-peer-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.member-chat-peer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 168, 106, 0.35);
}

.member-online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3ecf8e;
  border: 2px solid #0a0a0a;
}

.member-chat-peer-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.member-chat-peer-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-chat-peer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
}

.member-chat-stream {
  position: relative;
  z-index: 0;
  flex: 1;
  min-height: 260px;
  max-height: min(560px, calc(100vh - 320px));
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 22px 12px;
  scroll-behavior: smooth;
}

.member-chat-page .member-emoji-panel.cd-emoji-panel {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  max-width: none;
  width: 100%;
  max-height: min(220px, 32vh);
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid rgba(201, 168, 106, 0.15);
  border-bottom: 1px solid rgba(201, 168, 106, 0.12);
  flex-shrink: 0;
}

.member-chat-page .member-chat-composer.cd-composer {
  position: sticky;
  bottom: 0;
  left: auto;
  transform: none;
  max-width: none;
  width: 100%;
  margin-top: auto;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0));
  border-top: 1px solid rgba(201, 168, 106, 0.2);
  border-radius: 0;
  background: rgba(10, 10, 10, 0.96);
  flex-shrink: 0;
}

.member-chat-page .cd-bubble {
  max-width: min(85%, 380px);
}

@media (min-width: 901px) {
  .member-chat-page .member-card--chat {
    min-height: min(720px, calc(100vh - 140px));
  }

  .member-chat-stream {
    max-height: min(620px, calc(100vh - 260px));
  }
}

@media (max-width: 900px) {
  .member-card--chat {
    min-height: min(600px, calc(100vh - 140px));
  }

  .member-chat-stream {
    max-height: min(480px, calc(100vh - 300px));
  }
}

@media (max-width: 480px) {
  .member-card--inbox {
    padding: 18px 16px 20px;
  }

  .member-chat-stream {
    padding-left: 16px;
    padding-right: 16px;
  }

  .member-chat-topbar {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ----- Member: favorites (我的最愛) ----- */
.member-favorites-page .member-fav-vip {
  margin-bottom: 20px;
}

.member-fav-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 24px;
  margin-bottom: 22px;
}

.member-fav-header-text {
  flex: 1 1 260px;
  min-width: 0;
}

.member-fav-title {
  margin: 0 0 14px;
}

.member-fav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.14);
}

.member-fav-tab {
  position: relative;
  padding: 10px 0 14px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.46);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: color var(--transition);
}

.member-fav-tab:hover {
  color: rgba(245, 230, 200, 0.85);
}

.member-fav-tab.is-active {
  color: var(--gold);
}

.member-fav-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  content: "";
}

.member-fav-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.member-fav-sort-label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.86rem;
  white-space: nowrap;
}

.member-fav-select-wrap {
  min-width: 0;
}

.member-fav-select {
  min-height: 42px;
  padding: 0 38px 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 106, 0.22);
  background: rgba(8, 8, 8, 0.85);
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% + 3px), calc(100% - 11px) calc(50% + 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  transition: border-color var(--transition);
}

.member-fav-select:hover,
.member-fav-select:focus {
  border-color: rgba(245, 230, 200, 0.35);
  outline: none;
}

.member-fav-layout-toggle {
  display: inline-flex;
  gap: 6px;
}

.member-fav-layout-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 106, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.member-fav-layout-btn:hover {
  border-color: rgba(245, 230, 200, 0.32);
  color: var(--gold-light);
}

.member-fav-layout-btn.is-active {
  border-color: rgba(201, 168, 106, 0.55);
  background: linear-gradient(145deg, rgba(201, 168, 106, 0.35), rgba(201, 168, 106, 0.12));
  color: var(--gold-light);
}

.member-card--favorites {
  padding: 18px 18px 22px;
}

.member-fav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.member-fav-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(201, 168, 106, 0.18);
  background: rgba(12, 12, 12, 0.65);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.member-fav-card:hover {
  border-color: rgba(245, 230, 200, 0.28);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.member-fav-card[hidden] {
  display: none !important;
}

.member-fav-card-visual {
  position: relative;
  aspect-ratio: 3 / 3.85;
  overflow: hidden;
  background: #0a0a0a;
}

.member-fav-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-fav-star {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  color: var(--gold);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.member-fav-online {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3ecf8e;
  border: 2px solid rgba(8, 8, 8, 0.95);
  box-shadow: 0 0 0 1px rgba(62, 207, 142, 0.35);
}

.member-fav-online--off {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.member-fav-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.88));
  pointer-events: none;
}

.member-fav-overlay-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px 14px 14px;
}

.member-fav-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.member-fav-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.member-fav-age {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.member-fav-vip-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #1a1408;
  background: linear-gradient(135deg, #c9a86a, #f5e6c8);
}

.member-fav-job {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

.member-fav-saved {
  margin: 6px 0 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.48);
}

.member-fav-card-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(201, 168, 106, 0.14);
}

.member-fav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: rgba(245, 230, 200, 0.88);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.member-fav-action:hover {
  background: rgba(201, 168, 106, 0.1);
  color: var(--gold-light);
}

.member-fav-action + .member-fav-action {
  border-left: 1px solid rgba(201, 168, 106, 0.14);
}

.member-fav-action--danger:hover {
  background: rgba(220, 80, 80, 0.12);
  color: #f0b4b4;
}

.member-fav-list-section[hidden] {
  display: none !important;
}

.member-fav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.member-fav-list-item {
  display: grid;
  grid-template-columns: 28px 56px 1fr 44px;
  gap: 12px;
  align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.1);
  transition: background var(--transition);
}

.member-fav-list-item:last-child {
  border-bottom: 0;
}

.member-fav-list-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.member-fav-list-item[hidden] {
  display: none !important;
}

.member-fav-list-star {
  display: flex;
  color: var(--gold);
  opacity: 0.95;
}

.member-fav-list-thumb-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.member-fav-list-thumb {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(201, 168, 106, 0.25);
}

.member-fav-online--sm {
  top: auto;
  right: 2px;
  bottom: 2px;
  left: auto;
  width: 10px;
  height: 10px;
  border-width: 2px;
}

.member-fav-list-body {
  min-width: 0;
}

.member-fav-list-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.member-fav-list-name .member-fav-age {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.member-fav-vip-pill--inline {
  margin-left: 4px;
  vertical-align: middle;
}

.member-fav-list-meta {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.52);
}

.member-fav-list-date {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
}

.member-fav-list-chat {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 106, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold-light);
  transition: background var(--transition), border-color var(--transition);
}

.member-fav-list-chat:hover {
  border-color: rgba(245, 230, 200, 0.35);
  background: rgba(201, 168, 106, 0.12);
}

.member-fav-empty {
  margin: 28px 0 8px;
  text-align: center;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.92rem;
}

@media (max-width: 1100px) {
  .member-fav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .member-fav-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .member-fav-sort-label {
    flex: 1 1 auto;
  }

  .member-fav-select-wrap {
    flex: 1 1 140px;
  }

  .member-fav-select {
    width: 100%;
  }

  .member-fav-layout-toggle {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .member-fav-grid {
    gap: 12px;
  }

  .member-fav-card-visual {
    aspect-ratio: 3 / 3.65;
  }

  .member-fav-list-item {
    grid-template-columns: 24px 52px 1fr 42px;
    gap: 10px;
    padding: 12px 4px;
  }

  .member-fav-list-thumb-wrap {
    width: 52px;
    height: 52px;
  }
}

/* ----- Member: blocked list (封鎖名單) ----- */
.member-blocked-page .member-block-vip {
  margin-bottom: 20px;
}

.member-block-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 24px;
  margin-bottom: 22px;
}

.member-block-header-text {
  flex: 1 1 240px;
  min-width: 0;
}

.member-block-title {
  margin: 0 0 10px;
}

.member-block-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.94rem;
  font-weight: 600;
}

.member-block-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.member-card--blocked {
  padding: 18px 18px 22px;
}

.member-block-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.member-block-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(201, 168, 106, 0.18);
  background: rgba(12, 12, 12, 0.65);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.member-block-card:hover {
  border-color: rgba(245, 230, 200, 0.22);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.member-block-card-visual {
  position: relative;
  aspect-ratio: 3 / 3.85;
  overflow: hidden;
  background: #0a0a0a;
}

.member-block-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-block-status-ico {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.55));
}

.member-block-overlay-text .member-block-date-line {
  margin: 8px 0 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.5);
}

.member-block-card-foot {
  border-top: 1px solid rgba(201, 168, 106, 0.14);
}

.member-block-unblock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  background: rgba(8, 8, 8, 0.92);
  color: rgba(245, 230, 200, 0.92);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.member-block-unblock:hover {
  background: rgba(22, 22, 22, 0.98);
  color: var(--gold-light);
}

.member-block-unblock svg {
  flex-shrink: 0;
  opacity: 0.88;
}

.member-block-list-section[hidden] {
  display: none !important;
}

.member-block-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.member-block-list-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.1);
  transition: background var(--transition);
}

.member-block-list-item:last-child {
  border-bottom: 0;
}

.member-block-list-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.member-block-list-thumb-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.member-block-list-thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 168, 106, 0.28);
}

.member-block-list-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(200, 48, 48, 0.95);
  border: 2px solid rgba(10, 10, 10, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.member-block-list-body {
  min-width: 0;
}

.member-block-list-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.member-block-list-date {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
}

.member-block-list-unblock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 106, 0.45);
  background: rgba(10, 10, 10, 0.85);
  color: rgba(245, 230, 200, 0.92);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.member-block-list-unblock:hover {
  border-color: rgba(245, 230, 200, 0.55);
  background: rgba(201, 168, 106, 0.12);
  color: var(--gold-light);
}

.member-block-list-unblock svg {
  flex-shrink: 0;
  opacity: 0.9;
}

@media (max-width: 1100px) {
  .member-block-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .member-block-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .member-block-toolbar .member-fav-sort-label {
    flex: 1 1 auto;
  }

  .member-block-toolbar .member-fav-select-wrap {
    flex: 1 1 140px;
  }

  .member-block-toolbar .member-fav-select {
    width: 100%;
  }

  .member-block-toolbar .member-fav-layout-toggle {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .member-block-grid {
    gap: 12px;
  }

  .member-block-card-visual {
    aspect-ratio: 3 / 3.65;
  }

  .member-block-list-item {
    grid-template-columns: 52px 1fr auto;
    gap: 10px;
    padding: 12px 2px;
  }

  .member-block-list-thumb-wrap {
    width: 52px;
    height: 52px;
  }

  .member-block-list-unblock {
    padding: 0 10px;
    font-size: 0.72rem;
    min-height: 38px;
  }
}

/* ----- Member: footprints / 誰看過我 ----- */
.member-footprints-page .member-fp-vip {
  margin-bottom: 20px;
}

.member-fp-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 24px;
  margin-bottom: 22px;
}

.member-fp-header-text {
  flex: 1 1 260px;
  min-width: 0;
}

.member-fp-title {
  margin: 0 0 14px;
}

.member-card--footprints {
  padding: 18px 18px 22px;
}

.member-fp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.member-fp-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  border: 1px solid rgba(201, 168, 106, 0.18);
  background: rgba(12, 12, 12, 0.65);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.member-fp-card:hover {
  border-color: rgba(245, 230, 200, 0.28);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.member-fp-card[hidden] {
  display: none !important;
}

.member-fp-card-visual {
  position: relative;
  aspect-ratio: 3 / 3.85;
  overflow: hidden;
  background: #0a0a0a;
}

.member-fp-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-fp-status-ico {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  color: var(--gold);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.member-fp-status-ico--blocked {
  color: #e57373;
}

.member-fp-visit {
  margin: 6px 0 0;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.55);
}

.member-fp-card-foot {
  border-top: 1px solid rgba(201, 168, 106, 0.14);
}

.member-fp-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  background: rgba(8, 8, 8, 0.92);
  color: rgba(245, 230, 200, 0.92);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.member-fp-action:hover {
  background: rgba(22, 22, 22, 0.98);
  color: var(--gold-light);
}

.member-fp-action--primary {
  background: rgba(8, 8, 8, 0.92);
}

.member-fp-action--primary:hover {
  background: rgba(201, 168, 106, 0.12);
}

.member-fp-action--unlock:hover {
  background: rgba(201, 168, 106, 0.1);
}

.member-fp-list-section[hidden] {
  display: none !important;
}

.member-fp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.member-fp-list-item {
  display: grid;
  grid-template-columns: 56px 1fr 40px;
  gap: 12px 14px;
  align-items: center;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(201, 168, 106, 0.1);
  transition: background var(--transition);
}

.member-fp-list-item:last-child {
  border-bottom: 0;
}

.member-fp-list-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.member-fp-list-item[hidden] {
  display: none !important;
}

.member-fp-list-thumb-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.member-fp-list-thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 168, 106, 0.28);
}

.member-fp-list-body {
  min-width: 0;
}

.member-fp-list-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.member-fp-list-meta {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.52);
}

.member-fp-list-visit {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.42);
}

.member-fp-list-unblock {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.member-fp-list-unblock:hover {
  color: var(--gold-light);
}

.member-fp-list-after-unblock {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(245, 230, 200, 0.88);
}

.member-fp-list-after-unblock:hover {
  color: var(--gold-light);
}

.member-fp-list-eye {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  opacity: 0.95;
}

.member-fp-list-item--blocked .member-fp-list-eye {
  color: rgba(229, 115, 115, 0.95);
}

@media (max-width: 1100px) {
  .member-fp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .member-fp-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .member-fp-toolbar .member-fav-sort-label {
    flex: 1 1 auto;
  }

  .member-fp-toolbar .member-fav-select-wrap {
    flex: 1 1 140px;
  }

  .member-fp-toolbar .member-fav-select {
    width: 100%;
  }

  .member-fp-toolbar .member-fav-layout-toggle {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .member-fp-grid {
    gap: 12px;
  }

  .member-fp-card-visual {
    aspect-ratio: 3 / 3.65;
  }

  .member-fp-list-item {
    grid-template-columns: 52px 1fr 36px;
    gap: 10px;
    padding: 12px 2px;
  }

  .member-fp-list-thumb-wrap {
    width: 52px;
    height: 52px;
  }
}

/* ----- Member: search ----- */
.search-form-grid {
  display: grid;
  gap: 18px 20px;
}

.search-form-grid--region-row {
  grid-template-columns: 1fr;
}

.search-form-grid--more-primary {
  grid-template-columns: 1fr;
}

.search-form-grid--extra {
  grid-template-columns: 1fr;
  margin-top: 4px;
}

.search-more-fields .search-form-grid--extra {
  margin-top: 18px;
}

/* 地區：縣市／區域下拉並排 */
.member-field.search-field-region {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  /* 與「年齡」等欄位一致：僅保留 .member-field-label 的 margin-bottom，勿再加 row-gap */
  row-gap: 0;
  align-items: start;
}

.member-field.search-field-region > .member-field-label {
  grid-column: 1 / -1;
}

.member-field.search-field-region select + select {
  margin-top: 0;
}

.search-age-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.search-age-sep {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.85rem;
}

.search-more-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin: 12px 0 4px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(201, 168, 106, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(245, 230, 200, 0.88);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.search-more-toggle:hover {
  border-color: rgba(201, 168, 106, 0.55);
  background: rgba(255, 255, 255, 0.07);
  color: var(--gold-light);
}

.search-more-chevron {
  transition: transform var(--transition);
}

.search-more-toggle[aria-expanded="true"] .search-more-chevron {
  transform: rotate(180deg);
}

.search-more-fields.is-collapsed {
  display: none;
}

/* 展開時：收合條件按鈕與「年齡」區塊之間再多約 4px */
.search-more-fields:not(.is-collapsed) {
  padding-top: 4px;
}

.search-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
}

/* 「其他條件」與「關鍵字」：標題與下方控制項間距一致（避免 .member-inline-check 的 margin-top 壓縮視覺間距） */
.member-field.search-field-checks {
  gap: 10px;
}

.member-field.search-field-checks > .member-field-label {
  margin-bottom: 0;
}

.member-field.search-field-checks .member-inline-check {
  margin-top: 0;
}

.search-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 8px;
  border-top: 1px solid rgba(201, 168, 106, 0.14);
}

.search-btn-reset,
.search-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
}

.search-results-section {
  /* 與上方篩選卡片間距：與 .member-card margin-bottom 摺疊後約 22px → 加倍為 44px */
  margin-top: 44px;
}

.search-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  margin-top: 28px;
}

.search-pagination-meta {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
}

.search-pagination-btn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.search-pagination-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.search-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.search-results-title {
  margin: 0 0 6px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  color: var(--gold-light);
}

.search-results-count {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
}

.search-results-count strong {
  color: rgba(245, 230, 200, 0.95);
  font-weight: 700;
}

.search-results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.search-sort-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-sort-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
}

.search-sort-select {
  min-width: 140px;
  padding: 10px 36px 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 106, 0.28);
  background: rgba(6, 6, 6, 0.72);
  color: var(--white);
  font-family: inherit;
  font-size: 0.88rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% + 2px), calc(100% - 12px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.search-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.search-results-inner {
  display: grid;
  gap: 18px;
}

/* 分頁隱藏：避免 grid 對 [hidden] 呈現不一致 */
.search-results-inner > .search-result-card[hidden] {
  display: none !important;
}

.search-result-card {
  border-radius: 14px;
  border: 1px solid rgba(201, 168, 106, 0.2);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(10, 10, 10, 0.72);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.search-result-card:hover {
  border-color: rgba(201, 168, 106, 0.38);
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.36);
}

.search-result-visual {
  display: contents;
}

.search-result-photo-wrap {
  position: relative;
  overflow: hidden;
}

.search-result-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-online {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3fcf7f;
  border: 2px solid rgba(12, 12, 12, 0.85);
  box-shadow: 0 0 0 1px rgba(63, 207, 127, 0.45);
}

.search-result-online--off {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.search-result-info {
  padding: 14px 16px 10px;
}

.search-result-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-result-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.search-result-crown {
  display: inline-flex;
  color: var(--gold);
}

.search-result-meta {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.45;
}

.search-result-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  padding: 0 16px 16px;
}

.search-result-profile-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.search-result-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 106, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.search-result-like:hover {
  border-color: rgba(201, 168, 106, 0.55);
  background: rgba(201, 168, 106, 0.12);
  color: var(--gold-light);
}

@media (max-width: 900px) {
  .search-form-actions {
    justify-content: stretch;
  }

  .search-btn-reset,
  .search-btn-submit {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .search-results-toolbar {
    width: 100%;
    justify-content: space-between;
  }

  .search-sort-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }

  .search-sort-select {
    flex: 1;
    min-width: 0;
  }

  .search-results-inner {
    grid-template-columns: 1fr;
  }

  .search-result-card {
    display: grid;
    grid-template-columns: 76px 1fr 44px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 0 12px;
    padding: 12px 14px;
  }

  .search-result-visual {
    display: contents;
  }

  .search-result-photo-wrap {
    grid-row: 1 / span 2;
    width: 76px;
    height: 76px;
    border-radius: 12px;
    border: 1px solid rgba(201, 168, 106, 0.22);
  }

  .search-result-online {
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
  }

  .search-result-info {
    grid-column: 2;
    padding: 0;
    min-width: 0;
  }

  .search-result-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
    flex-direction: column;
    padding: 0;
    align-self: center;
  }

  .search-result-profile-btn {
    display: none;
  }

  .search-result-like {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
}

@media (min-width: 901px) {
  .member-field.search-field-region {
    column-gap: 20px;
  }

  /* 摺疊區內：年齡／預算／身高 — 同一列四欄（2+1+1） */
  .search-form-grid--more-primary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .search-form-grid--more-primary .search-field-age {
    grid-column: span 2;
  }

  .search-form-grid--more-primary .search-field-budget,
  .search-form-grid--more-primary .search-field-height {
    grid-column: span 1;
  }

  .search-form-grid--extra {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 18px;
  }

  .search-form-grid--extra .member-field--full-row {
    grid-column: 1 / -1;
  }

  .search-results-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .search-result-card {
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .search-result-visual {
    display: flex;
    flex-direction: column;
  }

  .search-result-photo-wrap {
    aspect-ratio: 3 / 3.85;
  }

  .search-result-info {
    padding: 16px 16px 8px;
  }
}

@media (max-width: 480px) {
  .search-form-actions {
    flex-direction: column;
  }

  .search-btn-reset,
  .search-btn-submit {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* ----- Member basic profile (view other member) ----- */
.page-member-basic .member-page-title--basic {
  margin-bottom: 18px;
}

.member-main--basic {
  padding-top: 22px;
}

.member-basic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 36px);
  align-items: start;
  margin-bottom: clamp(22px, 4vw, 34px);
}

.member-basic-photo-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 106, 0.28);
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.member-basic-photo-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  outline: none;
}

.member-basic-photo-viewport:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(201, 168, 106, 0.45);
}

.member-basic-photo-track {
  display: flex;
}

.member-basic-photo-slide {
  flex: 0 0 auto;
  min-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.member-basic-photo-slide .member-basic-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.member-basic-photo-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 4px;
  margin: 0;
}

.member-basic-photo-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.member-basic-photo-dot.is-active {
  background: var(--gold);
  transform: scale(1.2);
}

.member-basic-vip-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #1a1408;
  background: linear-gradient(135deg, #c9a86a, #f5e6c8);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.member-basic-hero-meta {
  min-width: 0;
  padding-top: 4px;
}

.member-basic-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.member-basic-name {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4.5vw, 2.65rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.member-basic-vip-pill {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #1a1408;
  background: linear-gradient(135deg, #c9a86a, #f0dcb8);
}

.member-basic-subrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-bottom: 12px;
}

.member-basic-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
}

.member-basic-pin {
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.95;
}

.member-basic-age-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 106, 0.55);
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 600;
}

.member-basic-tagline {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.member-basic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 18px);
}

.member-basic-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 76px;
  padding: 0;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}

.member-basic-action:hover {
  color: var(--gold-light);
}

.member-basic-action:active {
  transform: scale(0.97);
}

.member-basic-action-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 106, 0.65);
  color: var(--gold-light);
  background: rgba(10, 10, 10, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.member-basic-action-ico > * {
  grid-area: 1 / 1;
}

.member-basic-action-ico svg[hidden] {
  display: none !important;
}

.member-basic-action.is-on .member-basic-action-ico,
.member-basic-action.is-active .member-basic-action-ico {
  border-color: rgba(245, 230, 200, 0.55);
  color: var(--gold-light);
  background: rgba(201, 168, 106, 0.14);
  box-shadow: inset 0 0 0 1px rgba(201, 168, 106, 0.25);
}

.member-basic-action.js-mb-favorite.is-active {
  color: var(--gold-light);
}

.member-basic-action-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  max-width: 76px;
}

.member-basic-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  align-items: start;
}

.member-basic-section {
  margin-bottom: 16px;
  border: 1px solid rgba(201, 168, 106, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(10, 10, 10, 0.78);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.member-basic-section-heading {
  margin: 0;
}

.member-basic-acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.member-basic-section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.35;
}

.member-basic-section-en {
  display: inline;
  margin-left: 8px;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(245, 230, 200, 0.55);
  letter-spacing: 0.02em;
}

.member-basic-acc-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  transition: transform var(--transition);
}

.member-basic-section--open .member-basic-acc-icon {
  transform: rotate(180deg);
}

.member-basic-panel {
  padding: 0 18px 18px;
}

.member-basic-panel:not([hidden]) {
  padding-top: 0;
}

.member-basic-text-block {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 106, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  line-height: 1.65;
}

.member-basic-kv {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 106, 0.12);
}

.member-basic-kv-row {
  display: grid;
  grid-template-columns: minmax(96px, 38%) 1fr;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.member-basic-kv-row:last-child {
  border-bottom: 0;
}

.member-basic-kv-k {
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
}

.member-basic-kv-v {
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.member-basic-kv--dense .member-basic-kv-row {
  grid-template-columns: minmax(110px, 44%) 1fr;
  font-size: 0.85rem;
}

@media (min-width: 901px) {
  .page-member-basic .member-page-title--basic {
    margin-bottom: 72px;
  }

  /* 大頭照區略上移，與右側暱稱／資訊列視覺較一致 */
  .member-basic-photo-wrap {
    margin-top: -36px;
  }

  .member-basic-acc-icon {
    display: none;
  }

  .member-basic-acc-trigger {
    cursor: default;
    pointer-events: none;
    padding-bottom: 8px;
  }

  .member-basic-section {
    margin-bottom: 18px;
  }

  .member-basic-section--open .member-basic-acc-icon {
    transform: none;
  }
}

@media (max-width: 900px) {
  .member-basic-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .member-basic-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .member-basic-actions {
    justify-content: flex-start;
    gap: 12px 14px;
  }

  .member-basic-action {
    width: 68px;
  }

  .member-basic-action-ico {
    width: 46px;
    height: 46px;
  }

  .member-basic-action-label {
    font-size: 0.68rem;
    max-width: 68px;
  }

  .member-basic-name-row .member-basic-vip-pill {
    display: none;
  }

  .member-basic-subrow {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .member-basic-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
    width: 100%;
  }

  .member-basic-action {
    width: 100%;
  }

  .member-basic-action-label {
    max-width: none;
  }
}

/* ----- 站長開講 station-master-talk.html ----- */
body.page-station-master-talk,
body.page-site-usage,
body.page-contact {
  background: #050505;
}

.contact-card {
  max-width: min(520px, calc(100% - 8px));
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.contact-block {
  margin-bottom: 28px;
}

.contact-block:last-child {
  margin-bottom: 0;
}

.contact-block--email {
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-lead {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.65;
}

.contact-line-id {
  color: #d4af37;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.contact-lead--line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.contact-line-addfriend {
  display: inline-block;
  line-height: 0;
  vertical-align: middle;
  text-decoration: none;
}

.contact-line-addfriend:hover {
  opacity: 0.92;
}

.contact-line-addfriend img {
  height: 26px;
  width: auto;
  max-width: 100%;
  border: 0;
  display: block;
  vertical-align: middle;
}

.contact-email {
  margin: 0;
}

.contact-email a {
  color: #d4af37;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  word-break: break-all;
}

.contact-email a:hover {
  color: #f0dc9a;
}

.site-usage-card .site-usage-prose {
  margin-bottom: 28px;
  text-align: left;
}

.site-usage-card .site-usage-prose p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.72;
}

.site-usage-card .site-usage-prose p:last-child {
  margin-bottom: 0;
}

.site-usage-inline-link {
  color: #d4af37;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-usage-inline-link:hover {
  color: #f0dc9a;
}

.site-usage-features-heading {
  margin-top: 8px;
  margin-bottom: 18px;
}

.station-master-main {
  flex: 1;
  width: 100%;
  padding-bottom: 40px;
}

.station-master-hero {
  position: relative;
  margin-top: 86px;
  min-height: clamp(200px, 38vw, 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.station-master-hero-bg {
  position: absolute;
  inset: -18px;
  background: url("assets/station-master-hero.png") center 28% / cover no-repeat;
  filter: blur(14px);
  transform: scale(1.06);
}

.station-master-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.72) 55%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.65));
}

.station-master-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 36px 20px 44px;
  text-align: center;
}

.station-master-crown {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  color: #d4af37;
  filter: drop-shadow(0 4px 18px rgba(212, 175, 55, 0.35));
}

.station-master-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.station-master-deco {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  max-width: 120px;
  gap: 8px;
}

.station-master-deco--left {
  justify-content: flex-end;
}

.station-master-deco--right {
  justify-content: flex-start;
}

.station-master-deco-bar {
  flex: 1;
  height: 1px;
  min-width: 16px;
  background: linear-gradient(90deg, transparent, #d4af37 18%, #d4af37);
}

.station-master-deco--right .station-master-deco-bar {
  background: linear-gradient(90deg, #d4af37, #d4af37 82%, transparent);
}

.station-master-deco-dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.station-master-hero-title {
  margin: 0;
  flex-shrink: 0;
  color: #d4af37;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: clamp(1.85rem, 6vw, 2.45rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-shadow: 0 6px 32px rgba(0, 0, 0, 0.75);
}

.station-master-hero-sub {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.88rem, 2.8vw, 1rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.55;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.65);
}

.station-master-content-wrap {
  padding: 8px 24px 0;
}

.station-master-card {
  max-width: 640px;
  margin: -28px auto 0;
  position: relative;
  z-index: 2;
  padding: 28px 22px 32px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1a1a;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.station-master-card-title {
  margin: 0 0 12px;
  color: #d4af37;
  font-family: "Noto Serif TC", "Playfair Display", serif;
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.station-master-lead {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.65;
  text-align: center;
}

.station-master-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.station-master-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 8px;
  align-items: start;
}

.station-master-num {
  grid-row: 1 / 3;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: 2px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8c96a, #b8923a);
  color: #1a1208;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.28);
}

.station-master-item-head {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.station-master-ico {
  display: flex;
  color: #d4af37;
  flex-shrink: 0;
}

.station-master-ico svg {
  width: 26px;
  height: 26px;
}

.station-master-item-title {
  margin: 0;
  color: #d4af37;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.station-master-item-text {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.7;
}

@media (max-width: 520px) {
  .station-master-hero {
    margin-top: 76px;
    min-height: 200px;
  }

  .station-master-hero-inner {
    padding: 28px 16px 36px;
  }

  .station-master-card {
    margin-top: -22px;
    padding: 22px 16px 26px;
  }

  .station-master-item {
    grid-template-columns: 38px 1fr;
    column-gap: 10px;
  }

  .station-master-num {
    width: 34px;
    height: 34px;
    font-size: 0.92rem;
  }

  .station-master-ico svg {
    width: 22px;
    height: 22px;
  }
}

/* ----- 使用條款 terms-of-use.html ----- */
body.page-terms-of-use {
  background: #050505;
}

.terms-legal-card {
  max-width: min(900px, calc(100% - 8px));
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.terms-card-doc-title {
  font-family: "Playfair Display", "Noto Serif TC", serif;
  font-size: clamp(1rem, 3vw, 1.2rem);
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: center;
}

.terms-lead {
  text-align: left;
  max-width: none;
}

.terms-sections {
  margin-top: 8px;
}

.terms-section {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.terms-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.terms-section-title {
  margin: 0 0 12px;
  color: #d4af37;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.terms-subhead {
  margin: 18px 0 8px;
  color: rgba(212, 175, 55, 0.92);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.terms-subhead:first-of-type {
  margin-top: 0;
}

.terms-p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  line-height: 1.72;
}

.terms-p:last-child {
  margin-bottom: 0;
}

.terms-p--caps {
  font-size: 0.72rem;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

.terms-list {
  margin: 12px 0 0;
  padding-left: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
  line-height: 1.65;
}

.terms-list li {
  margin: 0 0 10px;
}

.terms-list li:last-child {
  margin-bottom: 0;
}

.terms-link {
  color: #d4af37;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.terms-link:hover {
  color: #f0dc9a;
}

@media (max-width: 520px) {
  .terms-legal-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .terms-list {
    padding-left: 1rem;
  }
}
