/* Maskeli Sohbet: one dark theme (night, plum, rose) */
:root {
  --bg: #120d14;
  --panel: #19121d;
  --panel-2: #241a2a;
  --panel-3: #2e2235;
  --line: #33263b;
  --text: #f1e9f3;
  --muted: #a798ad;
  --accent: #e0457b;
  --accent-2: #ff8a5c;
  --accent-ink: #ffffff;
  --accent-soft: #3a1729;
  --mention: #3d2a14;
  --ok: #4cc38a;
  --danger: #ff6b6b;
  --t-e: #6aa8ff;   /* erkek */
  --t-k: #ff7fb0;   /* kadın */
  --t-c: #c38bff;   /* çift */
  --t-t: #5fd4c4;   /* trans */
  --shadow: 0 12px 34px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent-2); }

/* ---------- shared bits */
.btn {
  border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; cursor: pointer;
  font-weight: 600; background: var(--panel-2); transition: filter .15s, transform .05s;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(135deg, var(--accent), #b8336a); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.small { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .6; cursor: default; }
.icon-btn { border: 0; background: transparent; cursor: pointer; padding: 6px 8px; border-radius: 8px; font-size: 18px; line-height: 1; }
.icon-btn:hover { background: var(--panel-2); }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent-2); cursor: pointer; font-weight: 600; }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
.error { color: var(--danger); font-size: 14px; margin: 8px 0 0; }
input:not([type="checkbox"]), select {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); outline: none;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus-visible, select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
label .opt { font-weight: 400; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 3px; accent-color: var(--accent); }
.row-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
.profile-fields { display: grid; gap: 14px; }

.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #7b2cbf);
}
.logo svg { width: 78%; height: 78%; fill: #fff; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand.small .logo { width: 28px; height: 28px; border-radius: 8px; }
.brand.small .brand-name { font-size: 17px; }
.adult { margin-left: auto; font-size: 12px; font-weight: 800; border: 1.5px solid var(--accent); color: var(--accent); border-radius: 6px; padding: 1px 6px; }

.badge-member { color: var(--ok); font-weight: 700; font-size: .85em; }
.badge-mod { color: var(--accent-2); font-weight: 700; font-size: .85em; }
.ptag {
  font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 1px 5px; white-space: nowrap; vertical-align: 1px;
  color: var(--tc, var(--muted)); background: color-mix(in srgb, var(--tc, var(--muted)) 16%, transparent);
}
.ptag:empty { display: none; }
.ptag.e { --tc: var(--t-e); } .ptag.k { --tc: var(--t-k); } .ptag.c { --tc: var(--t-c); } .ptag.t { --tc: var(--t-t); }

/* ---------- gate + entry */
.sprite { position: absolute; }
.gate, .entry {
  min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px 16px;
  background:
    radial-gradient(900px 500px at 0% -10%, rgba(224, 69, 123, .22), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(123, 44, 191, .25), transparent 60%),
    var(--bg);
}
.gate { position: fixed; inset: 0; z-index: 50; }
.gate-card, .entry-card {
  width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.gate-card { text-align: center; }
.gate-card .brand { justify-content: center; }
.age-badge {
  width: 74px; height: 74px; border-radius: 50%; margin: 22px auto 6px; display: grid; place-items: center;
  font-weight: 900; font-size: 24px; border: 3px solid var(--accent); color: var(--accent);
}
.gate h1 { font-size: 22px; margin: 10px 0; }
.gate p { color: var(--muted); margin: 0 0 20px; }
.gate-actions { display: grid; gap: 10px; }
.pride-line {
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, #e40303, #ff8c00, #ffed00, #008026, #24408e, #732982, #5bcefa, #f5a9b8);
  opacity: .85;
}
.entry h1 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; margin: 20px 0 6px; }
.entry-lead { margin: 0 0 8px; color: var(--muted); }
.entry-sub { margin: 0 0 18px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.tabs button { border: 0; background: none; padding: 8px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--panel-3); color: var(--text); }
.entry-form { display: grid; gap: 14px; }
.hot-rooms { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 16px; }
.hot-rooms button {
  border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 999px;
  padding: 4px 10px; font-size: 12.5px; cursor: pointer;
}
.hot-rooms button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.hot-rooms b { color: var(--ok); font-weight: 700; margin-left: 4px; }
.about { width: 100%; max-width: 760px; color: var(--muted); line-height: 1.6; }
.about h2 { color: var(--text); font-size: 19px; margin: 8px 0 10px; }
.about h3 { color: var(--text); font-size: 15px; margin: 0 0 4px; }
.about p { margin: 0 0 12px; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 14px 0 22px; }
.about-grid > div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.about-grid p { margin: 0; font-size: 14px; }
.about details { border-top: 1px solid var(--line); padding: 10px 0; }
.about summary { color: var(--text); cursor: pointer; font-weight: 600; }
.about details p { margin: 8px 0 0; }
.site-foot { color: var(--muted); font-size: 13px; text-align: center; padding-bottom: 8px; }
.perks { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; display: grid; gap: 4px; }

/* ---------- chat layout */
.app { height: 100dvh; display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px; }
.side, .people { background: var(--panel); display: flex; flex-direction: column; min-height: 0; }
.side { border-right: 1px solid var(--line); }
.people { border-left: 1px solid var(--line); }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; min-height: 64px; }
.side-head h3 { margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.side-scroll { flex: 1; overflow-y: auto; padding: 0 10px 12px; }
.side-title {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 8px 6px;
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700;
}
.side-title .link-btn { text-transform: none; letter-spacing: 0; font-size: 13px; }
.side-note { color: var(--muted); font-size: 13px; padding: 0 8px; margin: 2px 0; }
.list { display: grid; gap: 2px; }
.list a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 9px; color: var(--text); text-decoration: none; }
.list a:hover { background: var(--panel-2); }
.list a[aria-current="true"] { background: var(--accent-soft); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.list .hash { color: var(--muted); width: 14px; text-align: center; }
.list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .count { font-size: 12px; color: var(--muted); }
.list .unread { background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.reports-btn {
  width: 100%; margin-top: 4px; border: 1px solid color-mix(in srgb, var(--danger) 50%, transparent); background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: var(--danger); border-radius: 9px; padding: 7px 10px; cursor: pointer; font-weight: 600; text-align: left;
}

.me-box { border-top: 1px solid var(--line); padding: 12px 14px; display: grid; gap: 8px; }
.me-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.me-line .nick { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { font-size: 11px; border-radius: 6px; padding: 2px 6px; background: var(--panel-2); color: var(--muted); font-weight: 600; white-space: nowrap; margin-left: auto; }
.me-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.top { display: flex; align-items: center; gap: 8px; padding: 10px 14px 10px 18px; min-height: 64px; border-bottom: 1px solid var(--line); background: var(--panel); }
.top-title { flex: 1; min-width: 0; }
.top h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic { margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topic:empty { display: none; }
.people-btn { display: none; gap: 4px; align-items: center; font-size: 15px; }
.panic {
  font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 9px; white-space: nowrap;
}
.panic:hover { color: var(--text); border-color: var(--muted); }
.promo {
  display: block; padding: 7px 18px; font-size: 13px; color: var(--text); text-decoration: none;
  background: linear-gradient(90deg, rgba(224, 69, 123, .2), rgba(123, 44, 191, .18)); border-bottom: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.promo::before { content: "Reklam"; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 8px; }
.promo:hover { background: linear-gradient(90deg, rgba(224, 69, 123, .3), rgba(123, 44, 191, .26)); }
.promo.fade { animation: fadein .5s; }
@keyframes fadein { from { opacity: 0; } }
.guest-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 18px; background: var(--panel-2); font-size: 13px; }
.guest-bar #guest-bar-x { margin-left: auto; font-size: 13px; }

.log { flex: 1; overflow-y: auto; padding: 14px 18px 8px; overscroll-behavior: contain; }
.msg { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 8px; padding: 2px 6px; border-radius: 8px; position: relative; }
.msg:hover { background: var(--panel); }
.msg.first { margin-top: 8px; }
.msg .time { font-size: 11px; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.msg:not(.first) .time { visibility: hidden; }
.msg:not(.first):hover .time { visibility: visible; }
.msg .who { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.msg:not(.first) .who { display: none; }
.msg .body { overflow-wrap: anywhere; white-space: pre-wrap; }
.msg.mention { background: var(--mention); }
.msg.me .body { font-style: italic; }
.msg.sys { color: var(--muted); font-size: 13px; }
.msg.sys .body::before { content: "• "; }
.nick { border: 0; background: none; padding: 0; cursor: pointer; font-weight: 700; color: var(--c, var(--text)); }
.day { text-align: center; margin: 16px 0 6px; font-size: 12px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); margin-top: 20vh; }
.jump {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 78px; z-index: 2;
  border: 0; border-radius: 999px; padding: 7px 14px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 13px; cursor: pointer; box-shadow: var(--shadow);
}
.composer { display: flex; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel); }
.composer input { flex: 1; min-width: 0; }
.emoji-btn { font-size: 20px; padding: 6px; }
.emoji-pop {
  position: absolute; left: 14px; bottom: 70px; z-index: 5; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 8px; display: grid; grid-template-columns: repeat(8, 36px); gap: 2px;
}
.emoji-pop button { border: 0; background: none; font-size: 21px; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; }
.emoji-pop button:hover { background: var(--panel-3); }
.msg .acts { position: absolute; right: 6px; top: 2px; display: none; gap: 4px; }
.msg:hover .acts { display: flex; }
.msg .acts button { border: 0; background: var(--panel-3); color: var(--muted); border-radius: 6px; font-size: 12px; padding: 2px 7px; cursor: pointer; }
.msg .acts button:hover { color: var(--text); }
.msg .acts .del { color: var(--danger); }
.btn.danger { background: var(--danger); color: #1a0606; }
.danger-zone { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 600; font-size: 14px; }
.danger-zone form { display: grid; gap: 12px; margin-top: 12px; }
.mod-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.mod-tabs button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 5px 12px; cursor: pointer; color: var(--muted); }
.mod-tabs button[aria-selected="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
#btn-sound[aria-pressed="false"] { opacity: .55; }
.composer .send { padding: 0 14px; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.filters button {
  border: 1px solid var(--line); background: none; border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: var(--muted);
}
.filters button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.people-list { list-style: none; margin: 0; padding: 0 10px 12px; overflow-y: auto; flex: 1; }
.people-list li { padding: 6px 10px; border-radius: 8px; display: flex; gap: 6px; align-items: center; }
.people-list li:hover { background: var(--panel-2); }
.people-list .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.people-list .meta { color: var(--muted); font-size: 11px; margin-left: auto; white-space: nowrap; }
.people-list .none { color: var(--muted); font-size: 13px; }

/* ---------- popups */
.menu { position: fixed; z-index: 30; min-width: 210px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; }
.menu .menu-head { padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu .menu-head b { display: block; }
.menu .menu-head span { color: var(--muted); font-size: 12px; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.menu button:hover { background: var(--panel-3); }
.menu button.danger { color: var(--danger); }
.menu .menu-note { padding: 6px 10px; font-size: 12px; color: var(--muted); }
.toast {
  position: fixed; z-index: 40; left: 50%; bottom: 90px; transform: translateX(-50%);
  max-width: min(520px, calc(100% - 32px)); background: var(--text); color: var(--bg);
  padding: 10px 14px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow);
}
.dlg { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); padding: 24px; width: min(440px, calc(100% - 32px)); box-shadow: var(--shadow); }
.dlg.wide { width: min(640px, calc(100% - 32px)); }
.dlg::backdrop { background: rgba(0, 0, 0, .6); }
.dlg h3 { margin: 0 0 10px; }
.dlg form { display: grid; gap: 14px; }
.dlg ol { padding-left: 20px; display: grid; gap: 8px; margin: 0 0 14px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; }
.reports-list { display: grid; gap: 10px; max-height: 60vh; overflow-y: auto; margin-bottom: 14px; }
.report { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.report .r-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.report .r-meta { color: var(--muted); font-size: 12px; }
.report pre { margin: 0; white-space: pre-wrap; font-family: inherit; font-size: 13px; line-height: 1.4; background: var(--bg); border-radius: 8px; padding: 8px; color: var(--muted); }
.report .r-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- privacy / terms page */
.doc-page { height: auto; }
.doc { max-width: 760px; margin: 0 auto; padding: 28px 16px 48px; line-height: 1.65; color: var(--muted); }
.doc h1 { color: var(--text); font-size: 26px; margin: 18px 0 4px; }
.doc h2 { color: var(--text); font-size: 18px; margin: 28px 0 8px; }
.doc b { color: var(--text); }
.doc ul, .doc ol { padding-left: 20px; display: grid; gap: 6px; }
.doc-back { font-weight: 600; text-decoration: none; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.doc-table th { color: var(--text); }
.doc-foot { margin-top: 32px; }

.only-mobile, .only-mobile-people { display: none; }
.scrim { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 15; }

/* ---------- small screens: rooms and people become drawers */
@media (max-width: 1060px) {
  .app { grid-template-columns: 230px minmax(0, 1fr); }
  .people {
    position: fixed; inset: 0 0 0 auto; width: min(290px, 85vw); z-index: 20;
    transform: translateX(100%); transition: transform .2s; box-shadow: var(--shadow);
  }
  .app.show-people .people { transform: none; }
  .only-mobile-people, .people-btn { display: inline-flex; }
  .app.show-people .scrim { display: block; }
}
@media (max-width: 720px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: fixed; inset: 0 auto 0 0; width: min(290px, 85vw); z-index: 20;
    transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow);
  }
  .app.show-side .side { transform: none; }
  .only-mobile { display: inline-flex; }
  .app.show-side .scrim { display: block; }
  .top { padding: 8px 8px 8px 6px; gap: 4px; }
  .panic { padding: 5px 7px; font-size: 11px; }
  .promo { padding: 6px 10px; font-size: 12px; }
  .log { padding: 10px 8px 6px; }
  .composer { padding-left: 10px; padding-right: 10px; }
  .msg { grid-template-columns: 38px minmax(0, 1fr); }
  .emoji-pop { left: 8px; right: 8px; grid-template-columns: repeat(auto-fill, 36px); justify-content: center; }
  .entry-card, .gate-card { padding: 22px 18px; }
}
