/* ============================================================
   Velvet — design system
   Archetype: Minimalist/Refined × Art-Deco. "Private members club, noir luxe."
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  /* ── Color: dominant near-black warm surfaces, wine + champagne accents ── */
  --bg:            #100b0f;
  --bg-2:          #161015;
  --surface:       #1c151b;
  --surface-2:     #241a22;
  --surface-hi:    #2c2028;
  --text:          #f4ece9;
  --muted:         #b09aa4;
  --muted-2:       #8a7681;
  --border:        #35272f;
  --border-hi:     #4a3540;

  --wine:          #8e2c46;
  --wine-hi:       #b23a5a;
  --rose:          #d98a9e;
  --gold:          #c9a86a;
  --gold-hi:       #e0c48c;

  --success:       #6fae8f;
  --warning:       #d8a24a;
  --error:         #d16a6a;

  /* ── Type ── */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Spacing scale ── */
  --sp-1: 0.375rem;
  --sp-2: 0.625rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2.25rem;
  --sp-6: 3.5rem;
  --sp-7: 5.5rem;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  /* ── Elevation ── */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,.55);
  --shadow-lg: 0 24px 60px -18px rgba(0,0,0,.7);
  --glow-gold: 0 0 0 1px rgba(201,168,106,.35), 0 8px 30px -10px rgba(201,168,106,.25);

  --maxw: 1160px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: .01em;
  /* subtle vignette + grain */
  background-image:
    radial-gradient(120% 80% at 80% -10%, rgba(142,44,70,.18), transparent 55%),
    radial-gradient(90% 70% at -10% 10%, rgba(201,168,106,.08), transparent 50%);
  background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── Grain overlay ── */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: .005em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.eyebrow {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ── Layout shell ── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-4); }
main { position: relative; z-index: 2; }
.page { padding: var(--sp-6) 0; }
.page-narrow main .wrap, .narrow { max-width: 760px; }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(16,11,15,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--sp-4); height: 68px; }
.brand-mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .02em;
  display: inline-flex; align-items: center; gap: .5rem;
}
.brand-mark .seal {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--wine-hi), var(--wine));
  box-shadow: inset 0 0 0 1px rgba(201,168,106,.5), var(--shadow-sm);
  color: var(--gold-hi); font-size: .8rem; font-weight: 600;
}
.nav-links { display: flex; gap: var(--sp-4); margin-left: auto; align-items: center; }
.nav-links a {
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  font-weight: 400; position: relative; padding: .3rem 0; transition: color .25s;
}
.nav-links a::after {
  content:''; position:absolute; left:0; bottom:-2px; height:1px; width:0; background: var(--gold);
  transition: width .3s cubic-bezier(.2,.7,.3,1);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after, .nav-links a:hover::after { width: 100%; }
.nav-badge {
  display:inline-block; min-width: 17px; height:17px; padding: 0 4px; border-radius: 9px;
  background: var(--wine-hi); color:#fff; font-size:.62rem; line-height:17px; text-align:center; margin-left:4px;
  font-family: var(--sans); letter-spacing: 0;
}
.nav-toggle { display:none; margin-left:auto; background:none; border:0; color:var(--text); font-size:1.5rem; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: var(--radius-sm);
  font-family: var(--sans); font-weight: 500; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid transparent; transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--wine-hi), var(--wine));
  color: #fff; box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  color: #2a1c12; box-shadow: var(--glow-gold);
}
.btn-gold:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-hi); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-block { width: 100%; }
.btn-sm { padding: .55rem 1rem; font-size: .72rem; }
.btn-icon { padding: .7rem; border-radius: 50%; aspect-ratio: 1; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ============================================================
   Cards / surfaces
   ============================================================ */
.card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.card-pad { padding: var(--sp-4); }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--sp-4); }

/* Deco divider */
.deco-rule { display:flex; align-items:center; gap: var(--sp-3); color: var(--gold); margin: var(--sp-4) 0; }
.deco-rule::before, .deco-rule::after { content:''; height:1px; flex:1; background: linear-gradient(90deg, transparent, var(--border-hi)); }
.deco-rule span { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; }

/* ============================================================
   Forms
   ============================================================ */
.field { margin-bottom: var(--sp-3); }
.field label, .label {
  display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .45rem; font-weight: 500;
}
.input, input[type=text], input[type=email], input[type=password],
input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; padding: .85rem 1rem;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: .95rem; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,106,.15);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b09aa4' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.hint { font-size: .78rem; color: var(--muted-2); margin-top: .35rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }

/* Chip / tag selectors */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border-radius: 999px; font-size: .8rem;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted);
  cursor: pointer; transition: all .2s; user-select: none;
}
.chip:hover { border-color: var(--border-hi); color: var(--text); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip.on, .chip:has(input:checked) {
  background: linear-gradient(135deg, rgba(142,44,70,.5), rgba(142,44,70,.25));
  border-color: var(--wine-hi); color: var(--text);
}
.tag {
  display: inline-block; padding: .28rem .7rem; border-radius: 999px; font-size: .72rem;
  background: var(--surface-hi); border: 1px solid var(--border); color: var(--rose);
  letter-spacing: .04em;
}

/* ============================================================
   Flash / alerts
   ============================================================ */
.flash {
  position: relative; z-index: 3;
  padding: .85rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: var(--sp-3);
  border: 1px solid var(--border); font-size: .9rem;
}
.flash-success { background: rgba(111,174,143,.12); border-color: rgba(111,174,143,.4); color: #cdeede; }
.flash-error   { background: rgba(209,106,106,.12); border-color: rgba(209,106,106,.4); color: #f3cccc; }
.alert-inline { color: var(--error); font-size: .85rem; margin-bottom: var(--sp-2); }

/* ============================================================
   Landing
   ============================================================ */
.hero { position: relative; padding: var(--sp-7) 0 var(--sp-6); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-6); align-items: center; }
.hero h1 { margin: var(--sp-3) 0; }
.hero h1 em { color: var(--gold-hi); font-style: italic; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin-bottom: var(--sp-4); }
.hero-cta { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(178,58,90,.5), transparent 55%),
    linear-gradient(160deg, var(--surface-2), #0c080b);
  border: 1px solid var(--border-hi);
  box-shadow: var(--shadow-lg);
}
.hero-visual .deco-ring {
  position:absolute; inset: 12% 14%; border-radius: 50%;
  border: 1px solid rgba(201,168,106,.4);
  box-shadow: inset 0 0 60px rgba(201,168,106,.12);
}
.hero-visual .deco-ring::before {
  content:''; position:absolute; inset: 12%; border-radius:50%; border:1px solid rgba(201,168,106,.2);
}
.hero-visual .seal-lg {
  position:absolute; inset:0; margin:auto; width: 96px; height:96px; border-radius:50%;
  display:grid; place-items:center; font-family: var(--serif); font-size: 2.6rem; color: var(--gold-hi);
  background: radial-gradient(circle at 35% 30%, var(--wine-hi), #59182a);
  box-shadow: inset 0 0 0 2px rgba(201,168,106,.5), var(--shadow-lg);
}
.stats-row { display:flex; gap: var(--sp-5); margin-top: var(--sp-5); flex-wrap: wrap; }
.stat .n { font-family: var(--serif); font-size: 2.2rem; color: var(--gold-hi); }
.stat .l { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-5); }
.feature { padding: var(--sp-4); }
.feature .ficon { font-size: 1.6rem; margin-bottom: var(--sp-2); }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .95rem; }

.section { padding: var(--sp-6) 0; }
.section-head { text-align:center; max-width: 60ch; margin: 0 auto var(--sp-5); }
.section-head p { color: var(--muted); margin-top: var(--sp-2); }

/* ============================================================
   Member cards / grid
   ============================================================ */
.member-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--sp-3);
}
.member-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s, border-color .25s;
}
.member-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-hi); }
.member-photo { aspect-ratio: 4/5; position: relative; overflow: hidden; background: linear-gradient(160deg, var(--surface-hi), #0c080b); }
.member-photo img { width:100%; height:100%; object-fit: cover; }
.member-photo .placeholder {
  position:absolute; inset:0; display:grid; place-items:center; font-family: var(--serif);
  font-size: 3rem; color: var(--border-hi);
}
.member-card .meta { padding: .8rem .9rem; }
.member-card .name { font-family: var(--serif); font-size: 1.25rem; display:flex; align-items:center; gap:.4rem; }
.member-card .sub { font-size: .78rem; color: var(--muted); letter-spacing: .04em; }
.member-card .badges { position:absolute; top:.6rem; left:.6rem; display:flex; gap:.35rem; z-index:2; }
.pill {
  font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .55rem;
  border-radius: 999px; backdrop-filter: blur(6px); background: rgba(16,11,15,.6); border:1px solid var(--border-hi);
}
.pill-gold { color: var(--gold-hi); border-color: rgba(201,168,106,.5); }
.pill-online { color: #8fe0b6; }
.pill-online::before { content:'●'; margin-right:.25rem; font-size:.6rem; }
.online-dot { color:#8fe0b6; }

/* like/pass quick actions on card */
.card-actions { position:absolute; bottom:.6rem; right:.6rem; display:flex; gap:.4rem; z-index:3; opacity:0; transform: translateY(6px); transition: all .25s; }
.member-card:hover .card-actions { opacity:1; transform:none; }
.qa {
  width: 38px; height:38px; border-radius:50%; display:grid; place-items:center; border:0;
  background: rgba(16,11,15,.75); backdrop-filter: blur(6px); color:#fff; font-size:1rem; box-shadow: var(--shadow-md);
  transition: transform .2s;
}
.qa:hover { transform: scale(1.12); }
.qa-like:hover { background: var(--wine-hi); }
.qa-pass:hover { background: var(--surface-hi); }

/* ============================================================
   Profile detail
   ============================================================ */
.profile-hero { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: var(--sp-5); align-items: start; }
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--surface-hi); border:1px solid var(--border); box-shadow: var(--shadow-lg); }
.gallery-main img { width:100%; height:100%; object-fit: cover; }
.thumbs { display:flex; gap:.5rem; margin-top:.6rem; flex-wrap:wrap; }
.thumb { width: 66px; height:66px; border-radius: var(--radius-sm); overflow:hidden; border:1px solid var(--border); cursor:pointer; position:relative; }
.thumb img { width:100%; height:100%; object-fit:cover; }

/* Private photo lock — the signature differentiator */
.locked {
  position: relative; overflow: hidden;
}
.locked img { filter: blur(22px) brightness(.5); transform: scale(1.1); }
.locked .lock-overlay {
  position:absolute; inset:0; display:grid; place-items:center; text-align:center;
  background: linear-gradient(180deg, rgba(16,11,15,.35), rgba(16,11,15,.7));
  backdrop-filter: blur(2px);
}
.lock-overlay .lock-ic {
  width: 48px; height:48px; border-radius:50%; display:grid; place-items:center; margin:0 auto .6rem;
  border: 1px solid var(--gold); color: var(--gold-hi); background: rgba(16,11,15,.5); font-size:1.2rem;
  box-shadow: var(--glow-gold);
}
.lock-overlay small { color: var(--muted); display:block; letter-spacing:.1em; text-transform:uppercase; font-size:.66rem; }

.profile-head h1 { display:flex; align-items:center; gap:.6rem; flex-wrap:wrap; }
.profile-head .sub { color: var(--muted); margin-top:.3rem; }
.profile-actions { display:flex; gap:.6rem; margin: var(--sp-4) 0; flex-wrap:wrap; }
.def-list { display:grid; grid-template-columns: auto 1fr; gap:.6rem 1.4rem; margin-top: var(--sp-3); }
.def-list dt { color: var(--muted-2); font-size:.74rem; letter-spacing:.14em; text-transform:uppercase; align-self:center; }
.def-list dd { color: var(--text); }
.about-block { margin-top: var(--sp-4); white-space: pre-wrap; line-height:1.75; color: #e9ddda; font-size:1.05rem; }

/* ============================================================
   Photo manager
   ============================================================ */
.photo-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: var(--sp-3); }
.photo-tile { border-radius: var(--radius-sm); overflow:hidden; border:1px solid var(--border); background: var(--surface-2); }
.photo-tile .ph-img { aspect-ratio: 1; position:relative; }
.photo-tile .ph-img img { width:100%; height:100%; object-fit: cover; }
.photo-tile .ph-bar { display:flex; gap:.3rem; padding:.4rem; flex-wrap:wrap; }
.photo-tile form { flex: 1; }
.photo-tile .btn-sm { width:100%; padding:.4rem; font-size:.62rem; }
.badge-private { position:absolute; top:.4rem; left:.4rem; }
.uploader { border: 1px dashed var(--border-hi); border-radius: var(--radius); padding: var(--sp-4); text-align:center; background: var(--bg-2); }

/* ============================================================
   Messages
   ============================================================ */
.msg-layout { display:grid; grid-template-columns: 320px 1fr; gap: var(--sp-3); min-height: 60vh; }
.convo-list { border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; background: var(--surface); }
.convo-item { display:flex; gap:.7rem; padding:.8rem; border-bottom:1px solid var(--border); align-items:center; transition: background .2s; }
.convo-item:hover, .convo-item.active { background: var(--surface-2); }
.convo-item .avatar, .avatar { width:46px; height:46px; border-radius:50%; object-fit:cover; background: var(--surface-hi); flex:none; display:grid; place-items:center; font-family:var(--serif); color:var(--muted); }
.convo-item .c-name { font-weight:500; }
.convo-item .c-last { font-size:.8rem; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width: 200px; }
.thread-window { border:1px solid var(--border); border-radius: var(--radius); display:flex; flex-direction:column; background: var(--surface); overflow:hidden; }
.thread-head { padding:.9rem 1.1rem; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:.7rem; }
.thread-body { flex:1; padding: var(--sp-3); display:flex; flex-direction:column; gap:.5rem; overflow-y:auto; max-height: 56vh; }
.bubble { max-width: 68%; padding:.6rem .9rem; border-radius: 16px; font-size:.95rem; line-height:1.5; }
.bubble.me { align-self:flex-end; background: linear-gradient(135deg, var(--wine-hi), var(--wine)); color:#fff; border-bottom-right-radius:4px; }
.bubble.them { align-self:flex-start; background: var(--surface-hi); border-bottom-left-radius:4px; }
.bubble .t { display:block; font-size:.62rem; opacity:.6; margin-top:.25rem; }
.thread-compose { display:flex; gap:.6rem; padding:.8rem; border-top:1px solid var(--border); }
.thread-compose textarea { min-height: 46px; max-height: 120px; }
.empty-state { text-align:center; color: var(--muted); padding: var(--sp-6) var(--sp-3); }
.empty-state .big { font-size: 2.6rem; margin-bottom: var(--sp-2); }

/* ============================================================
   Events
   ============================================================ */
.event-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: var(--sp-4); }
.event-card { overflow:hidden; }
.event-card .ecover {
  aspect-ratio: 16/9; background: linear-gradient(160deg, var(--wine), #2a0e18); position:relative;
  display:grid; place-items:center; color: var(--gold-hi); font-family:var(--serif); font-size:2rem;
}
.event-card .date-chip { position:absolute; top:.7rem; left:.7rem; background: rgba(16,11,15,.7); border:1px solid var(--border-hi); border-radius:var(--radius-sm); padding:.35rem .6rem; text-align:center; }
.event-card .date-chip .d { font-family:var(--serif); font-size:1.3rem; line-height:1; color:var(--gold-hi); }
.event-card .date-chip .m { font-size:.6rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }
.event-body { padding: var(--sp-3); }
.event-body .etype { color: var(--gold); font-size:.7rem; letter-spacing:.16em; text-transform:uppercase; }
.event-body h3 { margin:.3rem 0; }
.event-meta { color: var(--muted); font-size:.85rem; display:flex; gap:.4rem; flex-wrap:wrap; }

/* ============================================================
   Membership / pricing
   ============================================================ */
.plan-grid { display:grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); align-items: stretch; max-width: 880px; margin: 0 auto; }
.plan { padding: var(--sp-5); display:flex; flex-direction:column; position:relative; }
.plan.featured { border-color: var(--gold); box-shadow: var(--glow-gold); }
.plan.featured::before { content:'Most popular'; position:absolute; top:-12px; left:50%; transform:translateX(-50%); background: linear-gradient(135deg,var(--gold-hi),var(--gold)); color:#2a1c12; font-size:.62rem; letter-spacing:.16em; text-transform:uppercase; padding:.3rem .8rem; border-radius:999px; font-weight:600; }
.plan .price { font-family:var(--serif); font-size: 3rem; color: var(--text); line-height:1; margin:.4rem 0; }
.plan .price small { font-size:1rem; color: var(--muted); font-family:var(--sans); }
.plan ul { list-style:none; padding:0; margin: var(--sp-3) 0; display:flex; flex-direction:column; gap:.6rem; }
.plan li { display:flex; gap:.6rem; color: var(--muted); font-size:.92rem; }
.plan li::before { content:'✦'; color: var(--gold); flex:none; }
.plan .btn { margin-top:auto; }
.cycle-toggle { display:flex; justify-content:center; gap:.5rem; margin-bottom: var(--sp-4); }
.cycle-toggle label { cursor:pointer; }

/* ============================================================
   Filter bar
   ============================================================ */
.filter-bar { display:flex; gap:.6rem; flex-wrap:wrap; align-items:end; margin-bottom: var(--sp-4); padding: var(--sp-3); background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); }
.filter-bar .field { margin:0; min-width: 130px; flex: 1 1 130px; }
.filter-bar .field label { font-size: .66rem; }
.gate-lock-note { font-size:.78rem; color: var(--gold); }

/* toggle switch */
.switch { display:inline-flex; align-items:center; gap:.5rem; cursor:pointer; font-size:.85rem; color:var(--muted); }
.switch input { display:none; }
.switch .track { width:40px; height:22px; border-radius:999px; background:var(--surface-hi); border:1px solid var(--border); position:relative; transition:.2s; }
.switch .track::after { content:''; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:var(--muted); transition:.2s; }
.switch input:checked + .track { background: var(--wine); border-color: var(--wine-hi); }
.switch input:checked + .track::after { transform: translateX(18px); background:#fff; }

/* ============================================================
   Tabs
   ============================================================ */
.tabs { display:flex; gap:.4rem; border-bottom:1px solid var(--border); margin-bottom: var(--sp-4); }
.tabs a { padding:.7rem 1.1rem; color: var(--muted); font-size:.82rem; letter-spacing:.08em; text-transform:uppercase; border-bottom:2px solid transparent; margin-bottom:-1px; }
.tabs a.active { color: var(--text); border-color: var(--gold); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top:1px solid var(--border); margin-top: var(--sp-7); padding: var(--sp-5) 0; color: var(--muted); position:relative; z-index:2; }
.footer-grid { display:flex; justify-content:space-between; gap: var(--sp-4); flex-wrap:wrap; }
.footer-links { display:flex; gap: var(--sp-4); flex-wrap:wrap; }
.footer-links a { color: var(--muted); font-size:.85rem; }
.footer-links a:hover { color: var(--gold-hi); }
.footer-legal { font-size:.75rem; color: var(--muted-2); margin-top: var(--sp-3); max-width: 60ch; }

/* ============================================================
   Age gate
   ============================================================ */
.gate-wrap { min-height: 100vh; display:grid; place-items:center; padding: var(--sp-4); position:relative; z-index:2; }
.gate-card { max-width: 460px; text-align:center; padding: var(--sp-6) var(--sp-5); }
.gate-card .seal-lg { margin: 0 auto var(--sp-4); position: static; }
.gate-actions { display:flex; gap:.8rem; margin-top: var(--sp-4); }
.gate-actions form { flex:1; }

/* ============================================================
   Onboarding stepper
   ============================================================ */
.steps { display:flex; gap:.5rem; margin-bottom: var(--sp-5); justify-content:center; }
.steps .step { display:flex; align-items:center; gap:.5rem; color: var(--muted-2); font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; }
.steps .step .dot { width:26px; height:26px; border-radius:50%; border:1px solid var(--border-hi); display:grid; place-items:center; font-family:var(--serif); }
.steps .step.active { color: var(--gold-hi); }
.steps .step.active .dot { border-color: var(--gold); color: var(--gold-hi); }
.form-section { margin-bottom: var(--sp-5); }
.form-section > h3 { margin-bottom: var(--sp-3); padding-bottom:.5rem; border-bottom:1px solid var(--border); }

/* ============================================================
   Utilities
   ============================================================ */
.row { display:flex; gap: var(--sp-3); align-items:center; }
.between { justify-content: space-between; }
.wrap-gap { gap: var(--sp-3); flex-wrap:wrap; }
.mt-2{margin-top:var(--sp-2)} .mt-3{margin-top:var(--sp-3)} .mt-4{margin-top:var(--sp-4)} .mt-5{margin-top:var(--sp-5)}
.mb-2{margin-bottom:var(--sp-2)} .mb-3{margin-bottom:var(--sp-3)} .mb-4{margin-bottom:var(--sp-4)}
.text-gold { color: var(--gold-hi); }
.text-sm { font-size:.85rem; }
.page-title { margin-bottom: var(--sp-2); }
.page-lead { color: var(--muted); margin-bottom: var(--sp-4); }

/* Entrance animation */
@keyframes rise { from { opacity:0; transform: translateY(14px); } to { opacity:1; transform:none; } }
.rise { animation: rise .6s cubic-bezier(.2,.7,.3,1) both; }
.rise-2 { animation-delay:.08s } .rise-3 { animation-delay:.16s } .rise-4 { animation-delay:.24s }

/* ============================================================
   Forum
   ============================================================ */

/* Category list */
.forum-categories { display: flex; flex-direction: column; gap: var(--sp-2); }
.forum-category-card {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-4);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  transition: border-color .2s, background .2s;
}
.forum-category-card:hover { background: var(--surface-2); border-color: var(--border-hi); }
.forum-cat-body { flex: 1; }
.forum-cat-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: .25rem; }
.forum-cat-desc { color: var(--muted); font-size: .9rem; }
.forum-cat-stats { display: flex; gap: var(--sp-4); text-align: right; flex-shrink: 0; }

/* Thread list */
.forum-thread-list { display: flex; flex-direction: column; gap: 1px; }
.forum-thread-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); text-decoration: none; color: inherit;
  transition: background .15s, border-color .15s;
  margin-bottom: 4px;
}
.forum-thread-row:hover { background: var(--surface-2); border-color: var(--border-hi); }
.thread-main { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.thread-title { font-weight: 500; font-size: 1rem; }
.thread-meta { color: var(--muted); font-size: .8rem; }
.thread-stats { display: flex; gap: var(--sp-3); align-items: center; text-align: right; flex-shrink: 0; font-size: .85rem; }

/* Pills */
.pill-pinned { background: rgba(201,168,106,.18); color: var(--gold); border: 1px solid rgba(201,168,106,.3); font-size:10px; border-radius: 99px; padding: 1px 7px; }
.pill-locked { background: rgba(209,106,106,.18); color: var(--error); border: 1px solid rgba(209,106,106,.3); font-size:10px; border-radius: 99px; padding: 1px 7px; }

/* Breadcrumb */
.breadcrumb { color: var(--muted); font-size: .85rem; }
.breadcrumb a { color: var(--rose); }
.breadcrumb .sep { margin: 0 .4rem; }

/* Forum posts */
.forum-posts { display: flex; flex-direction: column; gap: var(--sp-3); }
.forum-post {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: var(--sp-4);
}
.post-author { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.post-avatar img, .post-avatar .avatar-placeholder {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border);
}
.avatar-placeholder { display: flex; align-items: center; justify-content: center; }
.post-author-meta { display: flex; flex-direction: column; gap: .1rem; }
.post-author-name { font-weight: 500; color: var(--rose); }
.post-body { line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

/* Reply box */
.forum-reply-box {
  margin-top: var(--sp-4); padding: var(--sp-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.forum-reply-box textarea { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--sp-3); color: var(--text); resize: vertical; }
.forum-reply-box textarea:focus { outline: none; border-color: var(--wine-hi); }
.full-width { width: 100%; }

/* Compose page */
.forum-compose input[type="text"],
.forum-compose textarea {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: var(--sp-3); color: var(--text); width: 100%;
}
.forum-compose input:focus, .forum-compose textarea:focus { outline: none; border-color: var(--wine-hi); }

/* Responsive */
@media (max-width: 640px) {
  .forum-category-card { flex-direction: column; align-items: flex-start; }
  .forum-cat-stats { flex-direction: row; text-align: left; }
  .forum-thread-row { flex-direction: column; align-items: flex-start; }
  .thread-stats { justify-content: flex-start; }
}

/* ============================================================
   Stories
   ============================================================ */
.stories-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  max-width: 740px;
  margin: 0 auto;
}

.story-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}

.story-card:hover { border-color: var(--border-hi); transform: translateY(-2px); }

.story-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-1);
}

.story-date { line-height: 1; }

.story-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.15;
  margin: 0 0 var(--sp-2);
}

.story-card p { margin: 0 0 var(--sp-3); }

.story-read-more {
  display: inline-block;
  color: var(--gold);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: auto;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; }
  .feature-grid { grid-template-columns: 1fr; }
  .profile-hero { grid-template-columns: 1fr; }
  .msg-layout { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; background: var(--bg-2); flex-direction: column; padding: var(--sp-4); border-bottom:1px solid var(--border); display:none; gap: var(--sp-3); }
  .nav-links.open { display:flex; }
  .nav-links a { font-size: 1rem; }
  .nav-toggle { display:block; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats-row { gap: var(--sp-4); }
  .thread-body { max-height: 50vh; }
}
