:root {
  --bg: #0f0b14; --panel: #1a1424; --panel2: #231a31; --line: #33264a;
  --text: #f4eefa; --muted: #a798bd; --accent: #e0369f; --accent2: #8b3dff;
  --ok: #2ecf8e; --warn: #ffb020; --danger: #ff5470; --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(15,11,20,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; letter-spacing: -.5px; color: #fff; }
.logo .mark { flex: none; }
nav.main { display: flex; gap: 6px; flex: 1; }
nav.main a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; }
nav.main a:hover, nav.main a.active { color: var(--text); background: var(--panel); }
.badge { background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: 4px; }
.actions { display: flex; gap: 8px; align-items: center; }
.btn { border: 0; cursor: pointer; padding: 9px 16px; border-radius: 10px; font-weight: 700; background: var(--panel2); display: inline-block; }
.btn:hover { filter: brightness(1.15); }
.btn.primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; }
.btn.danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.menu-toggle { display: none; }
nav.main .acct { display: none; }

/* hero */
.hero { margin: 20px 0; padding: 40px 28px; border-radius: 20px; background: radial-gradient(900px 300px at 20% 0, rgba(224,54,159,.35), transparent), radial-gradient(700px 300px at 90% 100%, rgba(139,61,255,.35), transparent), var(--panel); border: 1px solid var(--line); }
.hero h1 { margin: 6px 0 8px; font-size: clamp(28px, 5vw, 46px); line-height: 1.1; letter-spacing: -1px; }
.hero p { margin: 0 0 16px; color: var(--muted); max-width: 640px; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(46,207,142,.2); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; align-items: center; }
.chip { padding: 7px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); cursor: pointer; font-weight: 600; font-size: 14px; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=tel], select, textarea {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent2); border-color: transparent; }
.filters input[type=search], .filters select { width: auto; min-width: 160px; }

/* grid */
h2.sec { margin: 28px 0 12px; font-size: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .15s, border-color .15s; display: block; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card .ph { aspect-ratio: 3/4; position: relative; background-size: cover; background-position: center; }
.card .meta { padding: 10px 12px 12px; }
.card .nm { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.card .sub { color: var(--muted); font-size: 13px; }
.pill { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,.6); }
.pill.on { left: auto; right: 8px; color: var(--ok); }
.tick { color: #4aa8ff; font-size: 14px; }
.avatar { display: grid; place-items: center; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.3); }
.card .ph.avatar { font-size: 64px; }
.pager { display: flex; gap: 8px; justify-content: center; margin: 26px 0; align-items: center; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 50px 10px; }

/* profile */
.profile { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; margin: 24px 0; }
.gallery .main { aspect-ratio: 3/4; border-radius: 18px; background-size: cover; background-position: center; border: 1px solid var(--line); font-size: 120px; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; }
.thumbs div { width: 70px; height: 90px; border-radius: 10px; background-size: cover; background-position: center; cursor: pointer; border: 2px solid transparent; }
.thumbs div.on { border-color: var(--accent); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.profile h1 { margin: 0 0 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.tag { background: var(--panel2); padding: 4px 10px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.notice { background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.4); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: #ffd48a; margin: 12px 0; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; }
.ok-msg { color: var(--ok); }

/* forms */
.form { max-width: 460px; margin: 30px auto; }
.form label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; font-weight: 600; }
.form .check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text); margin: 14px 0; }
.form .check input { width: auto; margin-top: 4px; }
.form h1 { margin: 0 0 6px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-align: center; color: var(--text); background: var(--panel); }
.seg input { display: none; }
.seg input:checked + span { color: var(--accent); font-weight: 800; }

/* chat */
.chat { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 62px - 40px); margin: 20px 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel); }
.inbox { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox .hd { padding: 16px; font-weight: 800; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--panel); }
.conv { display: flex; gap: 12px; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.04); align-items: center; }
.conv:hover, .conv.on { background: var(--panel2); }
.conv .av { width: 46px; height: 46px; border-radius: 50%; background-size: cover; background-position: center; flex: none; position: relative; font-size: 20px; }
.dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ok); border: 2px solid var(--panel); }
.conv .tx { min-width: 0; flex: 1; }
.conv .tx b { display: flex; justify-content: space-between; gap: 6px; }
.conv .tx small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thread .hd { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.thread .hd .grow { flex: 1; min-width: 0; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.bub { max-width: 72%; padding: 9px 13px; border-radius: 16px; background: var(--panel2); align-self: flex-start; word-wrap: break-word; white-space: pre-wrap; }
.bub.me { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.bub time { display: block; font-size: 11px; opacity: .65; margin-top: 2px; }
.typing { height: 22px; padding: 0 16px; font-size: 13px; color: var(--muted); }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.composer textarea { resize: none; height: 44px; }
.thread .banner { padding: 8px 16px; font-size: 13px; background: rgba(255,176,32,.08); color: #ffd48a; border-bottom: 1px solid var(--line); }
.chat-empty { display: grid; place-items: center; color: var(--muted); height: 100%; text-align: center; padding: 20px; }
.back { display: none; }

/* static / admin */
.prose { max-width: 760px; margin: 30px auto; }
.prose h1 { margin-top: 0; }
.prose h2 { margin-top: 28px; }
.prose p, .prose li { color: #d8cce8; }
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.photos { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; }
.photos .ph { position: relative; width: 110px; height: 140px; border-radius: 10px; background-size: cover; background-position: center; }
.photos .ph button { position: absolute; top: 4px; right: 4px; }

footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer .links { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }

/* age gate */
.gate { position: fixed; inset: 0; z-index: 100; background: rgba(8,5,12,.98); display: grid; place-items: center; padding: 20px; }
.gate[hidden] { display: none; }
.gate .box { max-width: 460px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.gate h1 { margin: 0 0 8px; }
.gate p { color: var(--muted); }
.gate .row { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }

dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 22px; max-width: 420px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0,0,0,.6); }

@media (max-width: 820px) {
  nav.main { display: none; position: absolute; top: 62px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 10px 16px; border-bottom: 1px solid var(--line); }
  nav.main.open { display: flex; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; padding: 8px 10px; }
  header.top .actions { display: none; }
  nav.main .acct { display: block; }
  nav.main .acct-primary { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; text-align: center; margin-top: 4px; }
  nav.main .acct-btn { background: none; border: 0; text-align: left; cursor: pointer; padding: 8px 12px; font-weight: 600; color: var(--muted); }
  nav.main .acct-name { padding: 8px 12px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); margin-top: 6px; }
  header.top .wrap { gap: 10px; }
  .profile { grid-template-columns: 1fr; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 62px - 20px); margin: 10px 0; border-radius: 12px; }
  .chat.in-thread .inbox { display: none; }
  .chat:not(.in-thread) .thread { display: none; }
  .back { display: inline-block; }
  .bub { max-width: 86%; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}

/* profile pages: avatar */
.avatar-lg { flex: none; width: 88px; height: 88px; border-radius: 50%; border: 3px solid var(--line); background-size: cover; background-position: center; font-size: 36px; }
.namerow { display: flex; align-items: center; gap: 16px; margin-bottom: 6px; }
.namerow h1 { margin: 0; }
.pinfo { max-width: 760px; }
/* image slots on the profile editor */
.slots { display: grid; gap: 12px; margin: 14px 0; }
.slot { display: flex; gap: 14px; align-items: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.slot-prev { flex: none; width: 72px; height: 72px; background-size: cover; background-position: center; border-radius: 10px; display: grid; place-items: center; font-size: 26px; color: #fff; }
.slot-avatar .slot-prev { border-radius: 50%; }
.slot-display .slot-prev { width: 66px; height: 88px; }
.slot-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.slot-body small { color: var(--muted); }
.slot-btns { display: flex; gap: 8px; margin-top: 6px; }
@media (max-width: 820px) { .avatar-lg { width: 72px; height: 72px; font-size: 30px; } }

.bio { margin: 14px 0; padding: 12px 14px; background: var(--panel2); border-radius: 12px; }
.bio h3 { margin: 0 0 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bio p { margin: 0; color: #d8cce8; white-space: pre-wrap; }

/* Instagram-style profile */
.igh { display: flex; gap: 40px; align-items: flex-start; margin: 28px 0 18px; }
.ig-av { flex: none; width: 150px; height: 150px; border-radius: 50%; background-size: cover; background-position: center; border: 3px solid var(--line); font-size: 60px; }
.ig-main { flex: 1; min-width: 0; }
.ig-top { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 10px; }
.ig-top h1 { margin: 0; font-size: 26px; }
.ig-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ig-stats { display: flex; gap: 24px; margin-bottom: 10px; color: var(--muted); }
.ig-stats b { color: var(--text); }
.ig-tabs { border-top: 1px solid var(--line); text-align: center; margin-top: 10px; }
.ig-tabs span { display: inline-block; padding: 12px 6px; margin-top: -1px; border-top: 2px solid var(--text); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ig-cell { position: relative; aspect-ratio: 1; padding: 0; border: 0; background: var(--panel2); cursor: pointer; overflow: hidden; }
.ig-cell img, .ig-cell video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-cell:hover img, .ig-cell:hover video { filter: brightness(.8); }
.ig-ico { position: absolute; top: 8px; right: 8px; font-size: 13px; background: rgba(0,0,0,.55); border-radius: 6px; padding: 2px 6px; }
.ig-st { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.7); }
.ig-st.pending { color: var(--warn); } .ig-st.rejected { color: var(--danger); }
.ig-empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.sec-h { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 8px; }
.postdlg { max-width: 920px; width: calc(100% - 24px); padding: 0; overflow: hidden; }
.postdlg[open] { display: flex; max-height: 90vh; }
.pd-media { flex: 1.6; background: #000; display: grid; place-items: center; min-width: 0; }
.pd-media img, .pd-media video { max-width: 100%; max-height: 90vh; display: block; }
.pd-side { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 8px; min-width: 220px; position: relative; }
.pd-x { position: absolute; top: 10px; right: 10px; }
.pd-btns { display: flex; gap: 8px; margin-top: auto; }
.modmedia img, .modmedia video { width: 100%; max-height: 280px; object-fit: contain; background: #000; border-radius: 10px; margin-bottom: 8px; }
@media (max-width: 820px) {
  .igh { gap: 16px; }
  .ig-av { width: 86px; height: 86px; font-size: 36px; }
  .ig-top h1 { font-size: 20px; }
  .postdlg[open] { flex-direction: column; overflow-y: auto; }
  .pd-media img, .pd-media video { max-height: 55vh; }
}

.vbox { margin: 12px 0; background: var(--panel2); }
.vbox p { margin: 6px 0 10px; color: var(--muted); }

.chip-sep { width: 1px; height: 24px; background: var(--line); margin: 0 4px; }

.visrow { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.visrow legend { font-size: 13px; color: var(--muted); font-weight: 600; padding: 0; margin-bottom: 4px; }
.visrow .check { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--panel); margin: 6px 0; }
.visrow .check input { width: auto; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pills { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.pills .pill { position: static; }
.pill.new { background: var(--ok); color: #06251a; }
.pill.bi { background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; }

.vbanner { background: rgba(255,176,32,.12); border-bottom: 1px solid rgba(255,176,32,.4); color: #ffd48a; font-size: 14px; }
.vbanner .wrap { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.phone-row { display: flex; gap: 8px; align-items: stretch; }
.phone-prefix { display: inline-flex; align-items: center; padding: 0 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; white-space: nowrap; font-weight: 700; }
.phone-row input { flex: 1; min-width: 0; }
.grecaptcha-badge { visibility: hidden; } /* reCAPTCHA notice is shown in text on the verify page, as Google permits */
