:root {
  --bg: #120d1c;
  --bg-raised: #1d1530;
  --bg-input: #261c3d;
  --border: #3a2d5c;
  --text: #f3eefe;
  --muted: #b3a6d4;
  --pink: #ff4fa3;
  --pink-soft: #ff8cc6;
  --lime: #b6ff5c;
  --sky: #5cd6ff;
  --sun: #ffd35c;
  --danger: #ff6b6b;
  --radius: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background:
    radial-gradient(circle at 10% -10%, rgba(255, 79, 163, .22), transparent 40%),
    radial-gradient(circle at 110% 10%, rgba(92, 214, 255, .16), transparent 40%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.6 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--pink-soft); }
a:hover { color: var(--sun); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: rgba(18, 13, 28, .8); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo { font-weight: 900; font-size: 1.4rem; letter-spacing: -.02em; text-decoration: none; color: var(--text); }
.logo span { color: var(--pink); }
.logo .wink { display: inline-block; transition: transform .3s; }
.logo:hover .wink { transform: rotate(-15deg) scale(1.2); }
.nav { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.nav a:hover { color: var(--text); }
.nav form { margin: 0; }

main { flex: 1; padding: 32px 0 48px; }

/* Buttons */
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 10px 22px; font: 700 1rem var(--font);
  cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--pink), #c74dff); color: #fff;
  box-shadow: 0 6px 20px rgba(255, 79, 163, .35); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px rgba(255, 79, 163, .5); }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-ghost:hover { border-color: var(--pink); color: var(--text); }
.btn-link { background: none; border: 0; color: var(--muted); font: 600 1rem var(--font); cursor: pointer; padding: 0; }

/* Cards and forms */
.card { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.narrow { max-width: 520px; margin: 0 auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 12px; }
.muted { color: var(--muted); }

form p { margin: 0 0 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], select, textarea {
  width: 100%; padding: 11px 14px; background: var(--bg-input); color: var(--text); border: 1px solid var(--border);
  border-radius: 12px; font: 1rem var(--font); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--pink); border-color: transparent; }
input[type=checkbox] { accent-color: var(--pink); width: 18px; height: 18px; vertical-align: -3px; margin-right: 8px; }
.checkbox-row label { display: inline; font-weight: 400; }
.helptext, .form-help { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.helptext ul { margin: 4px 0; padding-left: 18px; }
.errorlist { list-style: none; padding: 0; margin: 4px 0; color: var(--danger); font-size: .9rem; }

.messages { list-style: none; padding: 0; margin: 0 0 20px; }
.messages li { padding: 12px 16px; border-radius: 12px; background: var(--bg-input); border-left: 4px solid var(--lime); }
.messages li.error { border-left-color: var(--danger); }

/* Home */
.hero { text-align: center; padding: 48px 0 24px; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 900; }
.hero h1 .grad { background: linear-gradient(90deg, var(--pink), var(--sun), var(--sky)); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; }
.feature { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature .emoji { font-size: 2rem; }
.feature h3 { margin: 8px 0 6px; }
.feature p { margin: 0; color: var(--muted); }

/* Age gate */
.age-gate { text-align: center; }
.age-gate .badge { display: inline-block; font-weight: 900; font-size: 2.4rem; color: var(--bg);
  background: var(--sun); border-radius: 50%; width: 96px; height: 96px; line-height: 96px; margin-bottom: 16px;
  transform: rotate(-8deg); }
.age-gate .actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* Legal */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { margin-top: 32px; color: var(--pink-soft); }
.legal .draft { background: var(--bg-input); border-left: 4px solid var(--sun); padding: 10px 14px; border-radius: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

altcha-widget { --altcha-color-base: var(--bg-input); --altcha-color-text: var(--text);
  --altcha-color-border: var(--border); --altcha-color-border-focus: var(--pink); --altcha-border-radius: 12px;
  --altcha-max-width: 100%; display: block; margin-bottom: 16px; }

@media (max-width: 600px) {
  .card { padding: 20px; }
  .site-header .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
}

.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.helptext ul, .helptext li { font-size: .85rem; color: var(--muted); }

/* Profiles */
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 20px; align-items: start; }
.profile-main { display: grid; gap: 20px; }
.profile-main .card h2 { margin: 0 0 10px; font-size: 1.2rem; color: var(--pink-soft); }
.profile-side { text-align: center; position: sticky; top: 84px; }
.profile-side h1 { font-size: 1.8rem; margin: 12px 0 4px; }
.avatar { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); display: block; }
.avatar-empty { display: grid; place-items: center; font-size: 5rem; font-weight: 900; color: var(--bg);
  background: linear-gradient(135deg, var(--pink), var(--sun)); }
.status { display: inline-block; font-size: .9rem; color: var(--muted); }
.status-online { color: var(--lime); font-weight: 700; }
.facts-line { color: var(--muted); margin: 6px 0 16px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; text-align: left; margin: 16px 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.prose { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li { background: var(--bg-input); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px;
  font-size: .9rem; }
.chips li:nth-child(3n+1) { border-color: var(--pink); }
.chips li:nth-child(3n+2) { border-color: var(--sky); }
.chips li:nth-child(3n) { border-color: var(--sun); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* Edit profile */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
fieldset.kinks { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 0 0 20px; }
fieldset.kinks legend { font-weight: 700; padding: 0 6px; }
.kink-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 12px; }
label.kink { font-weight: 400; margin: 0; cursor: pointer; }
input[type=number] { width: 100%; padding: 11px 14px; background: var(--bg-input); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; font: 1rem var(--font); }

/* Album */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.grid-album { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 20px; }
.tile { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: var(--bg-input); }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.tile:hover img { transform: scale(1.05); }
.tile .play { position: absolute; inset: auto 8px 8px auto; background: rgba(0,0,0,.6); color: #fff;
  border-radius: 999px; padding: 2px 10px; font-size: .9rem; }
.tile-pending { display: grid; place-items: center; color: var(--muted); text-align: center; padding: 12px;
  border: 2px dashed var(--border); }
.caption { margin: 6px 0 0; font-size: .9rem; }
.item-actions { display: flex; gap: 14px; margin-top: 6px; }
.item-actions form { margin: 0; }
.btn-link.danger { color: var(--danger); }
.upload { margin-top: 12px; }
.upload-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; }
.upload-row p { margin: 0; }
input[type=file] { width: 100%; color: var(--muted); }
.viewer { display: grid; place-items: center; }
.viewer img, .viewer video { max-width: 100%; max-height: 80vh; border-radius: var(--radius); }

@media (max-width: 800px) {
  .profile { grid-template-columns: 1fr; }
  .profile-side { position: static; }
  .upload-row { grid-template-columns: 1fr; }
}

/* Social */
.bell { position: relative; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--pink);
  color: #fff; font-size: .75rem; font-weight: 800; text-align: center; line-height: 20px; }
.bell .badge { position: absolute; top: -8px; right: -12px; }
.actions-stack { display: grid; gap: 10px; margin: 16px 0 4px; }
.actions-stack form { margin: 0; }
.actions-stack .btn { width: 100%; }
.actions-stack p { margin: 0; }
.match-badge { font-weight: 800; color: var(--pink-soft); font-size: 1.1rem; }
.block-form { margin-top: 6px !important; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.member-row:last-child { border-bottom: 0; }
.member { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.member img, .mini-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.mini-avatar { display: grid; place-items: center; font-weight: 900; color: var(--bg);
  background: linear-gradient(135deg, var(--pink), var(--sun)); }
.row-actions { display: flex; gap: 8px; margin: 0; }
.row-actions form { margin: 0; }
.inbox-row { text-decoration: none; color: var(--text); }
.inbox-row:hover { background: var(--bg-input); }
.notification { display: block; padding: 12px 8px; border-bottom: 1px solid var(--border); color: var(--text);
  text-decoration: none; border-radius: 8px; }
.notification.unread { background: var(--bg-input); border-left: 3px solid var(--pink); }
main .wrap > .card + .card, main .wrap > h1 + .card { margin-top: 20px; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* Chat */
.chat-log { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding: 8px 2px;
  margin: 12px 0; }
.bubble { max-width: 75%; align-self: flex-start; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 18px 18px 18px 4px; padding: 8px 14px; overflow-wrap: anywhere; }
.bubble.mine { align-self: flex-end; background: linear-gradient(135deg, var(--pink), #c74dff); border: 0;
  border-radius: 18px 18px 4px 18px; color: #fff; }
.bubble .time { display: block; font-size: .7rem; opacity: .7; margin-top: 2px; text-align: right; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; margin: 0; }
.chat-form textarea { flex: 1; resize: vertical; }

/* Diary */
.diary-post h2 { margin: 0 0 4px; }
.diary-post h2 a { color: var(--text); text-decoration: none; }
.narrow-wide { max-width: 760px; margin: 0 auto; }
.radio-row { border: 0; padding: 0; margin: 0 0 16px; display: flex; gap: 18px; flex-wrap: wrap; }
.radio-row legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.radio-row label { font-weight: 400; display: inline-flex; gap: 6px; align-items: center; }
input[type=radio] { accent-color: var(--pink); }

/* Phase 4: forum, search, swipe, spotlight */
.forum-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 8px;
  border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.forum-row:last-child { border-bottom: 0; }
.forum-row:hover { background: var(--bg-input); }
.forum-row > .muted { flex: none; font-size: .9rem; }
.is-hidden { opacity: .55; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--sun); border: 1px solid var(--sun); border-radius: 999px; padding: 1px 8px; margin: 0; }
.forum-post .card-head { margin-bottom: 10px; }
main .wrap > .forum-post + .forum-post, main .wrap > .forum-post + .card, main .wrap > .card-head + .forum-post,
main .wrap > .pager + .card, main .wrap > .card + .pager { margin-top: 16px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 16px 0; }
.inline-form { display: flex; gap: 10px; align-items: center; margin: 0; }
.inline-form input[type=text], .inline-form select { width: auto; flex: 1; }
.search-form .form-grid.tight { grid-template-columns: 1fr 1fr; gap: 0 12px; }
.kinks-details { margin: 0 0 18px; }
.kinks-details summary { cursor: pointer; font-weight: 700; margin-bottom: 10px; }
.grid-people { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.person { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); font-size: .95rem; }
.person img, .person-empty { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; margin-bottom: 6px;
  transition: transform .2s; }
.person:hover img, .person:hover .person-empty { transform: translateY(-3px) rotate(-1deg); }
.person-empty { display: grid; place-items: center; font-size: 3rem; font-weight: 900; color: var(--bg);
  background: linear-gradient(135deg, var(--sky), var(--pink)); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); vertical-align: 1px; }
.swipe-card { max-width: 420px; margin: 0 auto; background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; }
.swipe-card .avatar { border-radius: 0; aspect-ratio: 4 / 5; }
.swipe-info { padding: 16px 20px 0; }
.swipe-info h2 { margin: 0 0 4px; }
.swipe-info h2 a { color: var(--text); text-decoration: none; }
.swipe-info p { margin: 0 0 6px; }
.swipe-actions { display: flex; justify-content: center; gap: 28px; padding: 18px 0 22px; }
.swipe-actions form { margin: 0; }
.btn-round { width: 68px; height: 68px; padding: 0; font-size: 1.8rem; border-radius: 50%; }
.spotlight-bar { border-bottom: 1px solid var(--border); background: linear-gradient(90deg, rgba(255, 79, 163, .12),
  rgba(255, 209, 102, .08), rgba(94, 200, 255, .12)); }
.spotlight-bar .wrap { display: flex; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: 10px; }
.spotlight-label { flex: none; font-weight: 800; color: var(--sun); text-decoration: none; }
.spotlight-people { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: thin; padding: 5px; }
.spotlight-people a { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: none;
  text-decoration: none; color: var(--text); font-size: .8rem; max-width: 64px; }
.spotlight-people a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 64px; }
.spotlight-people img, .spotlight-people .mini-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--sun); }
@media (max-width: 640px) {
  .search-form .form-grid.tight { grid-template-columns: 1fr 1fr; }
  .forum-row { flex-direction: column; align-items: flex-start; }
}

/* Phase 5: reports, VIP, staff */
.report-link { color: var(--muted); font-size: .9rem; }
.report-link:hover { color: var(--danger); }
.actions-stack .report-link { text-align: center; display: block; }
.viewer-foot { text-align: center; margin: 12px 0 0; }
.radio-stack { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.radio-stack legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.radio-stack label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; cursor: pointer; }
.report-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border); }
.report-row:last-child { border-bottom: 0; }
.status-pill { flex: none; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 3px 10px;
  border: 1px solid var(--border); color: var(--muted); }
.status-pill.status-actioned { border-color: var(--lime); color: var(--lime); }
.status-pill.status-open { border-color: var(--sun); color: var(--sun); }
.snapshot { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg-input); border-radius: 12px;
  padding: 14px; font-size: .9rem; max-height: 420px; overflow-y: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; }
.table td.small, .small { font-size: .82rem; overflow-wrap: anywhere; }
.table tr.urgent td { background: rgba(255, 107, 107, .1); }
.card:has(> .table) { overflow-x: auto; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { text-decoration: none; color: var(--muted); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); }
.tabs a.active { color: var(--text); border-color: var(--pink); background: var(--bg-input); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin: 16px 0 20px; }
.stat { background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px;
  color: var(--muted); text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.stat .num { font-size: 2rem; font-weight: 900; color: var(--text); }
.stat small { font-size: .8rem; }
.stat-alert { border-color: var(--danger); }
.stat-alert .num { color: var(--danger); }
.center { text-align: center; }
.hero-small { padding: 24px 0 8px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 760px;
  margin: 20px auto; }
.plan { position: relative; display: flex; flex-direction: column; }
.plan h2 { margin: 0; }
.plan .tag { position: absolute; top: 18px; right: 18px; }
.plan-best { border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun), 0 18px 40px rgba(255, 211, 92, .12); }
.price { font-size: 2.6rem; font-weight: 900; margin: 6px 0 4px; }
.price span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.perks { padding-left: 20px; margin: 0 0 16px; flex: 1; }
.perks li { margin: 4px 0; }
.consent { font-weight: 400; font-size: .85rem; color: var(--muted); display: flex; gap: 6px; align-items: flex-start;
  margin-bottom: 14px; }
.consent input { flex: none; margin-top: 2px; }
.plan .btn { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.vip-status { text-align: center; margin-bottom: 20px; }
.nav-vip { color: var(--sun) !important; }
main .wrap > .plans + .card, main .wrap > p + .card.narrow-wide, main .wrap > form + .card { margin-top: 20px; }

/* Login security (two-step login) */
.notice { background: rgba(255, 79, 163, .12); border: 1px solid var(--pink); border-radius: var(--radius); padding: 12px 16px; }
.mfa-list { list-style: none; padding: 0; margin: 0 0 16px; }
.mfa-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.qr { background: #fff; border-radius: var(--radius); padding: 12px; width: fit-content; margin: 12px auto; }
.qr svg { display: block; width: 220px; height: 220px; }
.secret { word-break: break-all; }
.recovery-codes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.recovery-codes code { font-size: 1.1rem; letter-spacing: .05em; }
.passkey-form { margin-bottom: 16px; }
.btn-link.cancel { margin-left: 12px; }
.mfa-logout { margin-top: 16px; }
