/* Noir Lux: velvet blacks, champagne gold, deep wine.
   Same look in both modes — the studio never opens the curtains. */
:root {
  color-scheme: dark;
  --bg: #0c0a09;
  --surface: #171310;
  --surface-2: #221b16;
  --text: #f3ead9;
  --dim: #a99a80;
  --border: #2e2620;
  --accent: #c9a35c;
  --accent-light: #e6c887;
  --accent-ink: #171106;
  --wine: #7a1f2b;
  --wine-bright: #c13a4a;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-system, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.font-display { font-family: "Cormorant Garamond", "Times New Roman", serif; }
a { color: var(--accent-light); }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.wrap { max-width: 36rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 1024px) { .wrap { max-width: 42rem; } }

/* Header */
.site-header { text-align: center; padding: 28px 16px 8px; position: relative; }
.wordmark { font-family: "Cormorant Garamond", "Times New Roman", serif; font-weight: 700; letter-spacing: .18em; font-size: 26px; }
.wordmark em { color: var(--accent); font-style: italic; }
.tagline { color: var(--dim); font-size: 13px; margin-top: 6px; }
.owner-btn {
  position: absolute; top: 24px; right: 16px;
  background: transparent; color: var(--accent-light);
  border: 1px solid var(--accent); border-radius: 999px; padding: 6px 16px; font-size: 13px;
}
.tabs { display: flex; justify-content: center; margin: 18px 0 6px; }
.tabs-inner { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 4px; }
.tabs button {
  border: 0; background: transparent; color: var(--dim); border-radius: 999px; padding: 7px 18px; font-size: 14px;
}
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.tabs-label { text-align: center; color: var(--dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; margin-top: 10px; }

/* Profile head */
.cover { height: 192px; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; position: relative; }
@media (min-width: 640px) { .cover { height: 240px; } }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--bg)); }
.profile-head { text-align: left; }
.avatar {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--bg); margin-top: -48px; position: relative; z-index: 1;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--dim);
  border-radius: 999px; padding: 4px 12px; font-size: 12px;
}
.badge.member { color: var(--accent-light); border-color: var(--accent); }
.creator-name { font-family: "Cormorant Garamond", "Times New Roman", serif; font-size: 34px; font-weight: 700; margin: 10px 0 2px; display: flex; align-items: center; gap: 8px; }
.verified { color: var(--accent); font-size: 20px; }
.subline { color: var(--dim); font-size: 14px; }
.bio { margin: 14px 0 0; line-height: 1.55; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0 4px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 6px; text-align: center; }
.stat b { display: block; font-family: "Cormorant Garamond", "Times New Roman", serif; font-size: 22px; color: var(--accent-light); }
.stat span { color: var(--dim); font-size: 12px; }

/* Cards & forms */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-top: 22px; }
.card h3 { font-family: "Cormorant Garamond", "Times New Roman", serif; font-size: 26px; margin: 0 0 10px; font-weight: 600; }
.card h3 em { color: var(--accent); }
.muted { color: var(--dim); line-height: 1.55; font-size: 15px; }
.welcome-block { border: 1px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; background: var(--surface-2); }
.welcome-block .label, .eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.welcome-block p { margin: 0; font-style: italic; line-height: 1.55; }
fieldset { border: 0; padding: 0; margin: 20px 0 0; }
legend { font-weight: 600; margin-bottom: 10px; padding: 0; }
.plan {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; background: var(--surface-2);
}
.plan input { accent-color: var(--accent); }
.plan .perks { color: var(--dim); font-size: 13px; display: block; }
.plan .price { margin-left: auto; text-align: right; font-family: "Cormorant Garamond", "Times New Roman", serif; }
.plan .price b { font-size: 24px; color: var(--accent-light); }
.plan .price span { color: var(--dim); font-size: 13px; font-family: ui-sans-system, system-ui, sans-serif; }
label.field { display: block; margin-top: 16px; font-size: 14px; font-weight: 600; }
label.field input {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 15px;
}
.helper { color: var(--dim); font-size: 13px; margin-top: 6px; line-height: 1.45; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.checkbox input { accent-color: var(--accent); margin-top: 3px; }
.btn-gold {
  display: block; width: 100%; margin-top: 20px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 14px 20px; font-size: 16px;
}
.btn-outline {
  display: inline-block; border: 1px solid var(--accent); color: var(--accent-light); background: transparent;
  border-radius: 999px; padding: 10px 22px; font-size: 14px; text-decoration: none;
}
.under-line { text-align: center; color: var(--dim); font-size: 13px; margin-top: 12px; }
.error-box { background: rgba(122,31,43,.2); color: #f0b7be; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-top: 14px; }
.pay-note { color: var(--dim); font-size: 14px; line-height: 1.5; }
.pay-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  border-radius: var(--radius); padding: 14px 16px; margin-top: 10px; opacity: .75; cursor: not-allowed;
}
.pay-btn .sub { color: var(--dim); font-size: 13px; display: block; }
.pill-soon { margin-left: auto; background: var(--wine); color: #f3ead9; border-radius: 999px; padding: 3px 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.status-box { border: 1px solid var(--accent); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin-top: 14px; }

/* Feed */
.post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 22px; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.post-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.post-head .who { font-weight: 600; font-size: 14px; }
.post-head .when { color: var(--dim); font-size: 12px; }
.post-head .kind { margin-left: auto; background: var(--surface-2); border: 1px solid var(--border); color: var(--dim); font-size: 12px; border-radius: 999px; padding: 3px 10px; }
.post-media { position: relative; aspect-ratio: 4/5; background: #000; }
@media (min-width: 640px) { .post-media { aspect-ratio: 16/10; } }
.post-media > img { width: 100%; height: 100%; object-fit: cover; }
.post-media.locked > img { filter: blur(24px) brightness(.5); transform: scale(1.1); }
.lock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.lock-circle { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--accent); display: flex; align-items: center; justify-content: center; font-size: 24px; background: rgba(12,10,9,.55); }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--accent);
  background: rgba(12,10,9,.6); color: var(--accent-light); font-size: 24px;
}
.dur-pill { position: absolute; top: 12px; right: 12px; background: rgba(12,10,9,.75); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.post-body { padding: 16px; }
.post-title { font-family: "Cormorant Garamond", "Times New Roman", serif; font-style: italic; color: var(--accent-light); font-size: 20px; }
.post-caption { line-height: 1.55; font-size: 15px; }
.post-actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; color: var(--dim); font-size: 13px; }
.like-btn { background: none; border: 0; color: var(--dim); font-size: 15px; padding: 0; }
.like-btn.liked { color: var(--wine-bright); }
.dl-pill { margin-left: auto; border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; color: var(--dim); font-size: 13px; }
.dl-btn { margin-left: auto; border: 1px solid var(--accent); background: transparent; color: var(--accent-light); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.dl-link { margin-left: auto; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }

/* Unlock bar */
.unlock-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; width: calc(100% - 32px); max-width: 34rem;
  background: var(--surface-2); border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 14px 18px; display: flex; align-items: center; gap: 14px; z-index: 20;
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
}
.unlock-bar .t { font-family: "Cormorant Garamond", "Times New Roman", serif; font-size: 20px; font-weight: 700; }
.unlock-bar .s { color: var(--dim); font-size: 13px; }
.unlock-bar button { margin-left: auto; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: 999px; padding: 10px 22px; }
.feed-locked { padding-bottom: 112px; }

/* Owner */
.owner-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.owner-row:last-child { border-bottom: 0; }
.initial { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--accent); color: var(--accent-light); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.owner-row .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner-row .em { color: var(--dim); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owner-row .right { margin-left: auto; text-align: right; flex: none; }
.plan-pill { background: rgba(122,31,43,.3); color: #e8a0aa; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.owner-row .date { color: var(--dim); font-size: 12px; margin-top: 4px; }
.count-gold { color: var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 24px 16px 36px; text-align: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-bottom: 14px; }
.site-footer nav a, .site-footer nav button { background: none; border: 0; color: var(--accent-light); font-size: 14px; text-decoration: none; padding: 0; }
.site-footer p { color: var(--dim); font-size: 13px; line-height: 1.55; max-width: 36rem; margin: 0 auto; }

/* Legal pages */
.legal h1 { font-family: "Cormorant Garamond", "Times New Roman", serif; font-size: 32px; font-weight: 700; margin: 18px 0 10px; }
.legal h2 { font-family: "Cormorant Garamond", "Times New Roman", serif; font-size: 22px; color: var(--accent-light); margin: 26px 0 8px; }
.legal p, .legal li { line-height: 1.6; font-size: 15px; }
.legal ul { padding-left: 20px; }
.back-link { display: inline-block; margin-top: 22px; color: var(--accent-light); text-decoration: none; font-size: 14px; }
.addr-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; line-height: 1.6; }
.hidden { display: none !important; }
