/* SellEazy.fun - dark violet and purple with gold text */
:root {
  --bg0: #0d0619; --bg1: #1a0b33; --bg2: #2e1065;
  --card: rgba(30, 13, 62, 0.82); --card-line: rgba(139, 92, 246, 0.32);
  --field: #150a2b; --field-line: #3d2478;
  --gold: #fcc937; --gold-soft: #f3d98b; --gold-mute: #c5a769; --gold-deep: #d99a1e;
  --purple: #8b3cf0; --purple-2: #6d28d9; --lav: #a78bfa;
  --red: #fb5a8a; --green: #34d399; --ink: #1a0b33;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #2e1065; }
body {
  margin: 0; min-height: 100vh; color: var(--gold-soft);
  font: 15px/1.5 Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 85% -10%, #2b1160 0%, transparent 60%), linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 45%, var(--bg2) 100%) fixed;
}
h1, h2, strong, legend, th { color: var(--gold); }
h1 { font-size: 22px; margin: 0 0 8px; }
h2 { font-size: 17px; margin: 0 0 10px; }
p { margin: 0 0 10px; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, .btn:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.muted { color: var(--gold-mute); }
.hint { color: var(--gold-mute); font-size: 13px; font-weight: 400; display: block; margin: 4px 0 0; }
.center { text-align: center; }
.err-text { color: var(--red); }
.full { width: 100%; }
.plain { list-style: none; margin: 8px 0 0; padding: 0; color: var(--gold-mute); font-size: 13px; }
.plain li { padding: 4px 0; border-top: 1px solid rgba(139, 92, 246, 0.15); }
.empty { color: var(--gold-mute); padding: 18px 0; text-align: center; }

.logo { font-weight: 800; font-size: 20px; color: var(--gold); letter-spacing: 0.2px; }
.logo-ph { color: var(--lav); }

/* cards */
.card { background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; padding: 18px; box-shadow: 0 18px 50px rgba(5, 0, 20, 0.45); margin-bottom: 16px; }

/* forms */
label { display: block; font-weight: 700; font-size: 13px; color: var(--gold); margin-bottom: 12px; }
input, select, textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; font-weight: 400; color: var(--gold-soft);
  background: var(--field); border: 1px solid var(--field-line); border-radius: 11px;
}
input::placeholder { color: #8c7350; }
input:disabled, select:disabled { opacity: 0.55; }
input[type="radio"], input[type="checkbox"] { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--gold); flex: none; }
input[type="date"] { color-scheme: dark; }
select { appearance: auto; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; }
legend { font-weight: 700; font-size: 13px; padding: 0; margin-bottom: 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.radio-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.radio-row legend { width: 100%; float: left; }
.radio, .check { display: flex; gap: 9px; align-items: center; font-weight: 400; font-size: 15px; color: var(--gold-soft); margin: 0; }
.check { align-items: flex-start; font-size: 13px; margin-bottom: 16px; }
.code-input { letter-spacing: 6px; font-size: 18px; font-weight: 700; }
.code-input.big { text-align: center; font-size: 26px; letter-spacing: 12px; margin-bottom: 14px; }
.pw-wrap { position: relative; display: block; margin-top: 6px; }
.pw-wrap input { margin-top: 0; padding-right: 48px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; background: transparent; color: var(--gold); cursor: pointer; }
.pw-toggle:hover { background: rgba(109, 40, 217, 0.45); }
.small-label { margin: 16px 0 0; }

/* buttons and pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn-gold { background: linear-gradient(90deg, #fdd55a, var(--gold-deep)); color: var(--ink); box-shadow: 0 8px 22px rgba(252, 201, 55, 0.22); }
.btn-gold:hover { filter: brightness(1.06); }
.btn-ghost { background: rgba(76, 29, 149, 0.45); border-color: rgba(167, 139, 250, 0.45); color: var(--gold); }
.btn-ghost:hover { background: rgba(109, 40, 217, 0.5); }
.btn-danger { background: rgba(120, 20, 70, 0.3); border-color: rgba(251, 90, 138, 0.6); color: var(--red); }
.btn-sm { padding: 5px 13px; font-size: 13px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 6px 4px; color: var(--gold); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--gold); background: rgba(76, 29, 149, 0.5); border: 1px solid rgba(167, 139, 250, 0.4); }
.pill-gold { background: rgba(252, 201, 55, 0.12); border-color: var(--gold); }
.pill-green { color: var(--green); border-color: var(--green); background: rgba(52, 211, 153, 0.08); }
.pill-red { color: var(--red); border-color: var(--red); background: rgba(251, 90, 138, 0.08); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 4px; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; text-align: center; }
.badge-admin { display: inline-block; padding: 3px 12px; border-radius: 6px; background: linear-gradient(90deg, #fdd55a, var(--gold-deep)); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: 2.5px; }
.star { color: var(--gold); }

/* notices */
.notice { padding: 10px 14px; border-radius: 11px; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.notice-err { background: rgba(251, 90, 138, 0.12); border: 1px solid rgba(251, 90, 138, 0.6); color: #ffc2d4; }
.notice-ok { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.55); color: #b6f3dc; }
.notice-info { background: rgba(252, 201, 55, 0.08); border: 1px solid rgba(252, 201, 55, 0.45); color: var(--gold-soft); font-weight: 400; }
.done { color: var(--green); font-weight: 700; }

/* rows */
.row-end { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 6px 0 12px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.row-between h2 { margin: 0; }
.inline { display: inline; }
.add-row { display: flex; gap: 10px; align-items: center; }
.add-row input { margin: 0; }

/* avatars */
.av { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; font-weight: 800; color: var(--ink); flex: none; border: 2px solid rgba(252, 201, 55, 0.35); }
.av-xl { width: 84px; height: 84px; font-size: 26px; }
.av-xxl { width: 112px; height: 112px; font-size: 36px; }
.av-c0 { background: linear-gradient(135deg, #fdc93a, #f472b6); }
.av-c1 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.av-c2 { background: linear-gradient(135deg, #60a5fa, #a78bfa); }
.av-c3 { background: linear-gradient(135deg, #f0abfc, #8b5cf6); }
.av-c4 { background: linear-gradient(135deg, #2dd4bf, #3b82f6); }
.photo-row { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }

/* sign up, log in, and other centered cards */
.auth-wrap { max-width: 640px; margin: 0 auto; padding: 48px 16px 64px; }
.auth-wrap.wide { max-width: 920px; }
.auth-card { padding: 26px; }
.auth-card.narrow { max-width: 440px; margin-left: auto; margin-right: auto; }
.wide-card { max-width: none; }
.modal-look { border-color: var(--gold); background: linear-gradient(180deg, #2a1163, #3a1580); }
.auth-head { text-align: center; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid rgba(139, 92, 246, 0.25); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.auth-head .logo { font-size: 30px; }
.auth-head p { margin: 0; }
.auth-card > .btn.full { margin-bottom: 14px; }
.auth-card.center > .btn.full { margin-bottom: 10px; }
.auth-wrap > .auth-head { border: 0; }
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two-cards .card h2 { margin-top: 12px; font-size: 20px; }
.dim { opacity: 0.6; }
.legal p { color: var(--gold-soft); }

/* user pages */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; background: rgba(13, 6, 25, 0.94); border-bottom: 1px solid rgba(139, 92, 246, 0.25); backdrop-filter: blur(8px); }
.brand { text-decoration: none; }
.tabs { display: flex; gap: 4px; }
.tab { padding: 8px 16px; border-radius: 999px; color: var(--gold-soft); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tab:hover { background: rgba(109, 40, 217, 0.35); }
.tab.on { background: linear-gradient(90deg, var(--purple-2), var(--purple)); color: var(--gold); box-shadow: 0 6px 20px rgba(139, 60, 240, 0.45); }
.top-right { display: flex; align-items: center; gap: 14px; }
.top-right form { margin: 0; }
.top-right .linkbtn { text-decoration: none; }
.bell { text-decoration: none; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; }
.bell.on { background: rgba(109, 40, 217, 0.5); }
.page { max-width: 1160px; margin: 0 auto; padding: 22px 16px 80px; }
.cols { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
.profile-card { text-align: center; }
.profile-card h1 { margin-top: 12px; }
.profile-card label, .profile-card .hint { text-align: left; }
.stats { display: flex; justify-content: space-around; gap: 10px; padding: 14px 0; margin: 14px 0; border-top: 1px solid rgba(139, 92, 246, 0.25); border-bottom: 1px solid rgba(139, 92, 246, 0.25); }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 26px; }
.stats span { font-size: 13px; color: var(--gold-mute); }
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row input { margin: 0; font-size: 12px; padding: 9px 10px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.gallery figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--card-line); background: linear-gradient(135deg, #4c1d95, #9333ea); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.gallery-tools form { margin: 0; }
.gallery-tools [hidden], .gallery-hint[hidden] { display: none; }
.row-between:has(.gallery-tools) { align-items: flex-start; }
.gallery.picking figure { cursor: pointer; }
.gallery.picking figure::after { content: ''; position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: rgba(13, 6, 25, 0.55); }
.gallery.picking figure.picked { outline: 3px solid var(--red); outline-offset: -3px; }
.gallery.picking figure.picked img { opacity: 0.55; }
.gallery.picking figure.picked::after { content: '\2713'; background: var(--red); border-color: var(--red); color: #fff; font-size: 14px; font-weight: 800; line-height: 22px; text-align: center; }
.soon { max-width: 640px; margin: 40px auto; }
.soon h2 { font-size: 22px; margin-top: 12px; }
.soon ul { margin: 0; padding-left: 20px; }

/* pop up */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(8, 3, 18, 0.78); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal { width: 100%; max-width: 460px; border-color: var(--gold); background: linear-gradient(180deg, #2a1163, #3a1580); padding: 24px; }
.modal h2 { font-size: 21px; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 13px; padding: 10px; border-bottom: 1px solid var(--gold); white-space: nowrap; }
td { padding: 12px 10px; border-bottom: 1px solid rgba(139, 92, 246, 0.2); vertical-align: middle; }
td.actions { text-align: right; white-space: nowrap; }
td.actions .btn { margin-left: 6px; }

/* master admin area */
body.admin { display: grid; grid-template-columns: 248px 1fr; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 14px; background: #0e0620; border-right: 1px solid var(--gold); }
.side-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 8px 16px; margin-bottom: 14px; border-bottom: 1px solid rgba(139, 92, 246, 0.25); }
.side-menu { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--gold); font-weight: 700; text-decoration: none; }
.side-link:hover { background: rgba(109, 40, 217, 0.3); }
.side-link.on { background: linear-gradient(90deg, var(--purple-2), var(--purple)); box-shadow: 0 6px 20px rgba(139, 60, 240, 0.4); }
.ico { width: 20px; text-align: center; }
.side-foot { border-top: 1px solid rgba(139, 92, 246, 0.25); padding-top: 14px; }
.side-user { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; min-width: 0; }
.side-user .av { width: 34px; height: 34px; font-size: 12px; }
.side-user small { display: block; color: var(--gold-mute); overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.admin-main { padding: 26px 28px 60px; min-width: 0; }
.admin-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.admin-title h1 { font-size: 30px; margin: 0; }

/* phones and small screens */
@media (max-width: 860px) {
  .cols, .two-cards { grid-template-columns: 1fr; }
  .top { flex-wrap: wrap; padding: 10px 12px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; }
  .tab { padding: 8px 12px; font-size: 14px; }
  body.admin { display: block; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--gold); padding: 14px; }
  .side-head { flex-direction: row; align-items: center; }
  .side-menu { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .side-link { white-space: nowrap; padding: 9px 12px; }
  .side-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .side-foot .btn { width: auto; }
  .side-user { margin: 0; }
  .admin-main { padding: 18px 14px 50px; }
  .admin-title { flex-direction: column; }
}
@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .auth-wrap { padding: 20px 12px 40px; }
  .auth-card { padding: 18px; }
  .add-row { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .tab, .side-link { transition: background 0.15s, filter 0.15s; }
}

/* ---------- Phase 2: General Post ---------- */
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.grow { flex: 1; }
.plain-link { text-decoration: none; color: inherit; }
.plain-link:hover { text-decoration: underline; }
textarea { resize: vertical; min-height: 54px; }
.av-sm { width: 30px; height: 30px; font-size: 11px; border-width: 1px; }
.top-bar { order: 5; width: 100%; padding-top: 10px; }
.filter-bar { max-width: 1128px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; }
.filter-bar input { margin: 0; padding: 7px 11px; }
.filter-bar input[type="search"] { flex: 1; min-width: 120px; }
.filter-bar .pill { white-space: nowrap; text-decoration: none; padding: 5px 12px; }
.filter-date { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; white-space: nowrap; }
.filter-date input { width: 150px; }
.top { flex-wrap: wrap; }
.feed-cols { display: grid; grid-template-columns: 230px minmax(0, 1fr) 250px; gap: 16px; align-items: start; }
.feed-single { max-width: 640px; margin: 0 auto; }
.mini-user { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.mini-user small { display: block; }
.mini-stat { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(139, 92, 246, 0.25); }
.pills.left { justify-content: flex-start; }
.pills a.pill { text-decoration: none; }
.composer .grid2 { gap: 10px; margin-bottom: 10px; }
.composer select, .composer textarea, .composer input { margin-top: 0; }
.composer-top { display: flex; gap: 12px; margin-bottom: 10px; }
.composer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.price-input { width: 150px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--card-line); background: #150a2b; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .x, .x-small { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--red); background: rgba(13, 6, 25, 0.85); color: var(--red); font-size: 15px; line-height: 1; cursor: pointer; padding: 0; }
.x-small { position: static; flex: none; }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.post-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-tools { display: flex; gap: 6px; align-items: center; }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.price { color: var(--gold); font-size: 20px; font-weight: 800; }
.post-body { margin-bottom: 10px; }
.post-media { display: grid; gap: 6px; border-radius: 14px; overflow: hidden; margin-bottom: 10px; }
.post-media.n2, .post-media.n3, .post-media.n4 { grid-template-columns: 1fr 1fr; }
.post-media.n3 a:first-child { grid-column: span 2; }
.post-media img { width: 100%; max-height: 460px; object-fit: cover; display: block; background: #150a2b; }
.post-media.n2 img, .post-media.n3 img, .post-media.n4 img { aspect-ratio: 4 / 3; height: 100%; }
.post-video { width: 100%; max-height: 480px; border-radius: 14px; background: #000; margin-bottom: 10px; display: block; }
.reactions { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid rgba(139, 92, 246, 0.25); }
.react { padding: 3px 11px; border-radius: 999px; border: 1px solid rgba(167, 139, 250, 0.35); background: rgba(21, 10, 43, 0.9); color: var(--gold-soft); font: inherit; font-size: 13px; cursor: pointer; }
.react:hover:not(:disabled) { background: rgba(109, 40, 217, 0.45); }
.react.on { border-color: var(--gold); background: rgba(252, 201, 55, 0.14); color: var(--gold); font-weight: 700; }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; font-size: 13px; }
.post-foot form { margin: 0; }
.btn.on { border-color: var(--gold); background: rgba(252, 201, 55, 0.14); }
.comments { display: flex; flex-direction: column; gap: 8px; }
.comment { display: flex; gap: 8px; align-items: flex-start; }
.comment form { margin: 0; }
.bubble { background: rgba(21, 10, 43, 0.9); border-radius: 14px; padding: 6px 12px; font-size: 14px; min-width: 0; }
.bubble .name { font-weight: 700; text-decoration: none; }
.bubble small { display: block; font-size: 11px; }
.comment-form { align-items: center; }
.comment-form input { margin: 0; padding: 8px 12px; border-radius: 999px; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-box { position: absolute; z-index: 15; top: calc(100% + 6px); left: 0; min-width: 170px; display: flex; flex-direction: column; gap: 6px; padding: 10px; background: #24104f; border: 1px solid var(--gold); border-radius: 12px; box-shadow: 0 14px 40px rgba(5, 0, 20, 0.6); }
.menu.right .menu-box { left: auto; right: 0; }
.menu-box a { padding: 6px 8px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.menu-box a:hover { background: rgba(109, 40, 217, 0.5); }
.menu-box .hint { margin: 0 0 4px; }
.more-wrap { padding: 8px 0 20px; }
.pin-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(139, 92, 246, 0.2); }
.pin-row form { margin: 0; }
.pin-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pin-text span { font-size: 13px; color: var(--gold-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif { display: flex; gap: 12px; padding: 12px 8px; border-bottom: 1px solid rgba(139, 92, 246, 0.2); border-radius: 8px; }
.notif.new { background: rgba(252, 201, 55, 0.08); }
.notif small { display: block; }
p.card { margin-top: 0; }
@media (max-width: 1040px) { .feed-cols { grid-template-columns: minmax(0, 1fr); } .feed-right, .feed-left .card:first-child { display: none; } }
@media (max-width: 860px) {
  /* On phones the whole navigation bar stays pinned to the top while scrolling: logo, bell, profile, Logout, and the tabs. */
  .top { top: 0; }
  .top-bar { padding-top: 6px; }
  .filter-bar { flex-wrap: wrap; gap: 6px 8px; padding: 6px 8px; }
  .filter-date { font-size: 0; gap: 0; }
  .filter-date input { width: 140px; font-size: 14px; }
  .filter-bar input[type="search"] { flex: 1; min-width: 0; }
  .composer .grid2 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Phase 3: Connects and Chat ---------- */
.btn-purple { background: linear-gradient(90deg, var(--purple-2), var(--purple)); color: var(--gold); }
.action-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.action-row form, .menu-box form { margin: 0; }
.menu-btn { width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--gold); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.menu-btn:hover { background: rgba(109, 40, 217, 0.5); }
.menu-off { padding: 6px 8px; color: var(--gold-mute); opacity: 0.6; font-weight: 600; cursor: not-allowed; }
.hidden-source { display: block; }
h2.sub { margin-top: 18px; }
.av-wrap { position: relative; display: inline-flex; flex: none; }
.dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #1a0b33; }
.dot.on { background: var(--green); }
.dot.off { background: var(--red); }
.av-md { width: 46px; height: 46px; }
.chat { display: grid; grid-template-columns: 320px minmax(0, 1fr); padding: 0; height: calc(100vh - 122px); min-height: 420px; overflow: hidden; margin: 0; }
.chat-side { padding: 16px; border-right: 1px solid var(--card-line); overflow-y: auto; }
.chat-side h1 { margin: 0; }
.chat-side input[type="search"] { margin: 12px 0 4px; }
.list-label { margin: 14px 0 6px; font-size: 12px; letter-spacing: 0.6px; color: var(--gold-mute); }
.conn { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; text-decoration: none; color: inherit; }
.conn[hidden] { display: none; }
.conn.on, .conn:hover { background: rgba(109, 40, 217, 0.35); }
.conn-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conn-text small { color: var(--gold-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-main > [data-thread] { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--card-line); }
.chat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back-link { display: none; text-decoration: none; font-size: 24px; line-height: 1; padding: 0 4px; }
.messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.day-sep { text-align: center; margin: 4px 0; }
.day-sep span { display: inline-block; padding: 4px 14px; border: 1px dashed var(--card-line); border-radius: 999px; font-size: 12px; color: var(--gold-mute); }
.msg { display: flex; gap: 8px; align-items: flex-start; max-width: 72%; }
.msg.mine { align-self: flex-end; }
.msg-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.mine .msg-col { align-items: flex-end; }
.msg-bubble { display: flex; flex-direction: column; gap: 4px; max-width: 100%; padding: 10px 14px; border-radius: 16px; background: rgba(21, 10, 43, 0.95); border: 1px solid var(--card-line); }
.mine .msg-bubble { background: linear-gradient(135deg, #7c3aed, #9333ea); border-color: transparent; color: #fde68a; }
.msg-bubble small { font-size: 11px; opacity: 0.75; }
.msg-media { width: 260px; max-width: 100%; height: auto; max-height: 320px; object-fit: cover; border-radius: 12px; display: block; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.msg-react { display: flex; gap: 4px; align-items: center; margin-top: 2px; }
.chip { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: rgba(21, 10, 43, 0.9); border: 1px solid var(--card-line); }
.chip.on { border-color: var(--gold); }
.react-open { opacity: 0.5; font-size: 16px; padding: 0 4px; }
.react-open:hover, details[open] > .react-open { opacity: 1; }
.menu-box.react-row { flex-direction: row; min-width: 0; gap: 4px; padding: 6px; }
.react-row .react { padding: 3px 7px; font-size: 16px; }
.tick { display: none; margin: 10px 0 0; }
.selecting .tick { display: block; }
.del-btn { display: none; }
.selecting .del-btn { display: inline-flex; }
.x-toggle { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--red); background: transparent; color: var(--red); font-weight: 800; cursor: pointer; }
.selecting .x-toggle { background: var(--red); color: var(--ink); }
.x-toggle:disabled { opacity: 0.4; cursor: not-allowed; }
/* The wrench next to the red X in a chat: options for the user in this chat. Its menu opens upward. */
.tool-menu { flex: none; }
.wrench-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(167, 139, 250, 0.45); background: rgba(76, 29, 149, 0.45); font-size: 15px; line-height: 1; }
.tool-menu[open] .wrench-btn { border-color: var(--gold); }
.menu.up .menu-box { top: auto; bottom: calc(100% + 8px); min-width: 220px; }
.menu-box details > summary { list-style: none; display: block; }
.menu-box details > summary::-webkit-details-marker { display: none; }
.menu-box details[open] > summary { color: var(--red); }
.menu-box details .hint { margin: 4px 8px 8px; }
.menu-box details .btn { margin: 0 8px 4px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 34px; margin: 0; border-radius: 999px; background: rgba(76, 29, 149, 0.45); border: 1px solid rgba(167, 139, 250, 0.45); cursor: pointer; flex: none; }
.upload-btn { color: var(--gold); }
.upload-btn svg { display: block; }
.chat-compose { display: flex; gap: 8px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--card-line); margin: 0; }
.chat-compose input[name="body"] { flex: 1; min-width: 0; margin: 0; }
.chat-status { margin: 0; padding: 0 16px 8px; }
.chat-status:empty { display: none; }
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; }
@media (max-width: 860px) {
  .chat { grid-template-columns: 1fr; height: calc(100vh - 150px); }
  .chat.has-thread .chat-side, .chat:not(.has-thread) .chat-main { display: none; }
  .back-link { display: block; }
  .msg { max-width: 88%; }
  .chat-head { flex-wrap: wrap; gap: 8px; padding: 10px; }
  .chat-compose { padding: 10px; gap: 6px; }
  .hide-sm { display: none; }
}
@media (max-width: 420px) { .tab { padding: 8px 9px; font-size: 13px; } }

/* ---------- Phase 4: Trust ---------- */
.txn-line span { border-style: solid; border-color: rgba(252, 201, 55, 0.4); color: var(--gold-soft); }
.stars { color: var(--gold); letter-spacing: 1px; white-space: nowrap; }
.pre.block { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.star-pick { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin-bottom: 12px; }
.star-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-pick label { margin: 0; font-size: 34px; line-height: 1; color: #5b4a8a; cursor: pointer; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label { color: var(--gold); }
.star-pick input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.modal textarea { margin-top: 6px; }
.review { margin-top: 10px; }
/* Rate and review: the top review shows, the rest open with a click. */
.more-reviews { margin-top: 10px; }
.more-reviews > summary { list-style: none; cursor: pointer; display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(167, 139, 250, 0.45); background: rgba(76, 29, 149, 0.45); color: var(--gold); font-size: 13px; font-weight: 700; }
.more-reviews > summary::-webkit-details-marker { display: none; }
.more-reviews > summary .when-open, .more-reviews[open] > summary .when-closed { display: none; }
.more-reviews[open] > summary .when-open { display: inline; }
.mini-stat.plain { border-top: 0; margin-top: 4px; padding-top: 0; }
.pinned-note { font-weight: 600; }
.locked { max-width: 560px; margin: 30px auto; padding: 28px; }
.lock { font-size: 56px; line-height: 1; margin-bottom: 8px; }
.meter { height: 10px; border-radius: 999px; background: #150a2b; overflow: hidden; margin: 14px 0; }
.meter .fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--purple), var(--gold)); }
.fill.f0 { width: 2%; } .fill.f1 { width: 33.3%; } .fill.f2 { width: 66.6%; } .fill.f3 { width: 100%; }
.has-hover { position: relative; }
.hover-card { display: none; position: absolute; z-index: 16; top: 100%; left: 0; margin-top: 4px; padding: 8px 12px; font-size: 13px; white-space: nowrap; background: #24104f; border: 1px solid var(--gold); border-radius: 10px; box-shadow: 0 12px 30px rgba(5, 0, 20, 0.6); }
.post-head:hover .hover-card, .post-head:focus-within .hover-card { display: block; }

/* ---------- Phase 5: Master Admin pages ---------- */
h3 { color: var(--gold); font-size: 14px; margin: 16px 0 6px; }
.row-start { display: flex; align-items: center; gap: 10px; }
.row-start.wrap { flex-wrap: wrap; }
.row-start select, .row-start input { margin: 0; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 14px; }
.template-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0 14px; }
.template-grid form { margin: 0; }
.template { width: 100%; padding: 11px; border-radius: 11px; border: 1px solid var(--field-line); background: var(--field); color: var(--gold); font: inherit; font-weight: 700; cursor: pointer; }
.template:hover { background: rgba(109, 40, 217, 0.4); }
.template.on { border-color: var(--gold); background: rgba(252, 201, 55, 0.14); }
textarea[readonly] { opacity: 0.85; }
.narrow-select { width: 220px; }
.log-line { margin: 0 0 4px; font-size: 13px; color: var(--gold-mute); }
table.results td { white-space: nowrap; font-size: 13px; padding: 8px 6px; }
table.results th { white-space: normal; font-size: 12px; padding: 8px 6px; vertical-align: bottom; }
table.results .btn-sm { padding: 3px 9px; font-size: 12px; }
table.results .btn { margin-left: 4px; }
.wide-modal { max-width: 720px; }
.modal .table-wrap { margin-bottom: 12px; }
.action-grid { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.action-grid form { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--card-line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; }
.tile strong { font-size: 32px; line-height: 1.1; }
.tile span { color: var(--gold-mute); font-size: 13px; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 16px; }
.chart-card { margin: 0; }
.chart { width: 100%; max-width: 480px; height: auto; display: block; }
.chart .bar { fill: #9a6cf8; }
.chart .bar-row:hover .bar { fill: #b89cff; }
.chart .hit { fill: transparent; }
.chart .lbl { fill: var(--gold-soft); font-size: 13px; }
.chart .val { fill: var(--gold); font-size: 13px; font-weight: 700; }
.chart .axis { stroke: rgba(167, 139, 250, 0.35); stroke-width: 1; }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.inline-label { display: flex; align-items: center; gap: 8px; margin: 0; }
.inline-label select { margin: 0; width: auto; min-width: 150px; }
.admin-feed { max-width: 760px; }
.admin-media { width: 150px; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid var(--card-line); display: block; background: #150a2b; }
.dimmed { opacity: 0.7; }
.chat-view { padding: 0; max-width: 860px; }
.chat-view .txn-line { margin: 10px 0 0; }
.messages.static { overflow: visible; }
/* Chat review: a deleted message looks like any other one. A red x at the top right marks it as deleted. */
.was-deleted .msg-bubble { position: relative; }
.media-wrap { position: relative; display: block; width: fit-content; max-width: 100%; }
.del-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: #fff; font-size: 18px; font-weight: 800; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); pointer-events: none; }
.was-deleted .msg-bubble > .del-x { top: -9px; right: -9px; width: 22px; height: 22px; font-size: 15px; }
.deleted-note { color: var(--red); font-size: 12px; }
.chat-view .msg-bubble a { font-size: 12px; }
@media (max-width: 860px) { .template-grid, .tiles, .two-cols { grid-template-columns: 1fr 1fr; } .two-cols { grid-template-columns: 1fr; } }

/* One React button on posts. Clicking it opens the six reactions. */
.reactions { align-items: center; }
.react-main { display: inline-block; padding: 5px 14px; font-weight: 700; color: var(--gold); border-color: rgba(167, 139, 250, 0.55); background: rgba(76, 29, 149, 0.45); }
.react-menu .react-row { top: auto; bottom: calc(100% + 6px); }
.react-menu .react-row .react { font-size: 20px; padding: 4px 9px; }
.reactions .chip { padding: 3px 10px; font-size: 13px; }
.flag-btn { font-size: 16px; padding: 4px 10px; line-height: 1.2; }

/* ---------- Phase 6: Video calls ---------- */
.call-line span { border-style: solid; }
.call-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(8, 3, 18, 0.9); display: flex; align-items: center; justify-content: center; padding: 16px; }
.call-box { position: relative; width: min(920px, 100%); height: min(640px, 100%); border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #1a0b33, #3a1580); border: 1px solid var(--gold); box-shadow: 0 30px 80px rgba(5, 0, 20, 0.7); }
.call-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0d0619; display: none; }
.call-box.has-remote .call-remote { display: block; }
.call-local { position: absolute; right: 16px; top: 16px; width: 170px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 2px solid var(--gold); background: #0d0619; display: none; transform: scaleX(-1); }
.call-box.has-local .call-local { display: block; }
.call-info { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding-bottom: 70px; text-align: center; }
.call-name { font-size: 26px; }
.call-status { color: var(--gold-soft); font-size: 16px; }
.call-box.ringing .av { animation: ring 1.4s ease-in-out infinite; }
.call-box.has-remote .call-info { inset: auto auto 86px 20px; padding: 6px 14px; flex-direction: row; background: rgba(13, 6, 25, 0.7); border-radius: 999px; }
.call-box.has-remote .call-info .av { display: none; }
.call-box.has-remote .call-name { font-size: 15px; }
.call-box.has-remote .call-status { font-size: 14px; }
.call-actions { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.call-actions .btn { padding: 12px 24px; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(252, 201, 55, 0.5); } 50% { box-shadow: 0 0 0 22px rgba(252, 201, 55, 0); } }
@media (prefers-reduced-motion: reduce) { .call-box.ringing .av { animation: none; } }
@media (max-width: 560px) { .call-overlay { padding: 0; } .call-box { height: 100%; border-radius: 0; border: 0; } .call-local { width: 110px; } }
.call-actions .btn-ghost { background: rgba(13, 6, 25, 0.78); }
.call-actions .btn-danger { background: #d61f69; border-color: transparent; color: #fff; }

/* ---------- Phase 7: Notifications and phone app ---------- */
.toast { position: fixed; z-index: 80; right: 16px; bottom: 16px; max-width: min(380px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 14px; background: #24104f; border: 1px solid var(--gold); color: var(--gold-soft); text-decoration: none; font-weight: 600; box-shadow: 0 16px 40px rgba(5, 0, 20, 0.65); }
.toast::before { content: "\1F514  "; }
.tidy { margin: 0; padding-left: 20px; color: var(--gold-soft); }
.tidy li { margin-bottom: 4px; }
.app-card p { margin-bottom: 10px; }
.app-card [hidden] { display: none; }
h1 .count { font-size: 12px; vertical-align: middle; padding: 2px 8px; }
/* Room for the notch and the home bar when installed on a phone */
.top { padding-top: max(10px, env(safe-area-inset-top)); padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.page { padding-bottom: max(80px, calc(env(safe-area-inset-bottom) + 60px)); }
.chat-compose { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toast-in 0.25s ease-out; } }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 860px) { .top { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); } .toast { left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); } }

/* Post History on the profile: small cards, cropped previews, 10 posts then scroll inside the box */
.hist-box .hint { margin: 0 0 12px; }
.hist-scroll { overflow-y: auto; max-height: 2600px; padding-right: 4px; }
.hist-scroll .post { margin-bottom: 10px; padding: 14px; box-shadow: none; background: rgba(13, 6, 25, 0.35); }
.hist-scroll .post:last-child { margin-bottom: 0; }
.hist-scroll .post-foot { padding-bottom: 0; }
.hist-media { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hist-thumb { position: relative; width: 124px; height: 94px; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--card-line); background: #150a2b; cursor: zoom-in; flex: none; }
.hist-thumb img, .hist-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.hist-play { position: absolute; left: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(13, 6, 25, 0.75); color: var(--gold); font-size: 11px; line-height: 24px; text-align: center; pointer-events: none; }
.hist-thumb.playing .hist-play { display: none; }
.zoom-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(8, 3, 18, 0.9); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.zoom-overlay img, .zoom-overlay video { max-width: 100%; max-height: 100%; border-radius: 12px; cursor: default; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6); }

/* Reactions on a post: only the emoji and its count show. Clicking them opens the reaction picker. */
.react-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; cursor: pointer; list-style: none; }
.react-chips::-webkit-details-marker { display: none; }
.react-chips:hover .chip { border-color: var(--gold); }

/* The box that opens when the reactions are clicked: the picker, then who reacted and with what. */
.react-menu .react-box { top: auto; bottom: calc(100% + 6px); min-width: 250px; gap: 8px; }
.react-box .react-row { display: flex; gap: 4px; position: static; }
.react-who { border-top: 1px solid var(--card-line); padding-top: 8px; max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.react-who-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.react-who-row a { padding: 0; }
.react-who-icon { font-size: 18px; }
.hist-scroll .react-menu .menu-box { top: calc(100% + 6px); bottom: auto; }

/* New post box: the Category list sits alone on its row now that Selling or Buying is gone. */
.composer > select { display: block; width: 100%; margin-bottom: 10px; }

/* Top right: the logged in user, a round profile picture and first name, next to the bell. */
.top-me { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 700; color: var(--gold); padding: 3px 10px 3px 3px; border-radius: 999px; max-width: 170px; }
.top-me:hover { background: rgba(109, 40, 217, 0.5); }
.top-me span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .top-me { padding: 3px; } .top-me span:last-child { display: none; } }

/* Chat: my pinned text box, under the Chat title and above the search. Double click to change it. */
.my-pin { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 0 12px; border: 1px solid var(--card-line); border-radius: 11px; background: rgba(13, 6, 25, 0.45); cursor: pointer; }
.my-pin.editing { border-color: var(--gold); cursor: text; }
.my-pin input[name="pinned_text"] { flex: 1; min-width: 0; margin: 0; padding: 10px 0; border: 0; background: none; box-shadow: none; outline: none; color: var(--gold-soft); font: inherit; font-size: 14px; text-overflow: ellipsis; }
.my-pin input[readonly] { cursor: text; }
.my-pin-icon { font-size: 14px; padding: 4px; margin: 0 -4px; border: 0; background: none; cursor: pointer; line-height: 1; border-radius: 8px; }
.my-pin.editing .my-pin-icon { background: rgba(252, 201, 55, 0.18); outline: 1px solid var(--gold); }

/* The page a share link opens for someone without an account: only the profile. */
.public-profile { max-width: 640px; margin-left: auto; margin-right: auto; }
.public-profile .gallery { text-align: left; }
.public-profile .sub { margin-top: 18px; text-align: left; }

/* Delete my account: the faded x at the top right of the profile box, and the countdown. */
.profile-card { position: relative; }
.acct-x { position: absolute; top: 10px; right: 12px; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; text-decoration: none; color: #000; background: rgba(255, 255, 255, 0.28); opacity: 0.5; }
.acct-x:hover, .acct-x:focus { opacity: 1; color: #000; background: var(--red); }
.acct-banner { text-align: left; }

/* Advance Search: the Fav and Watch filter buttons above the Lists column. */
th.list-filter { white-space: nowrap; text-align: right; }
th.list-filter .actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 6px; }
/* The Fav and Watch buttons have one fixed width, so the two in the header line up with the two in every row. */
table.results th.list-filter .btn, table.results td.actions .btn { width: 74px; padding-left: 0; padding-right: 0; text-align: center; justify-content: center; margin-left: 0; }
table.results td.actions form.inline + form.inline { margin-left: 6px; }

/* Advance Search: the Log button of each user. The Master Admin picks its color: white (default), orange, green, or red. */
.log-btn { border: 1px solid transparent; font-weight: 700; text-decoration: none; }
.log-white { background: #ffffff; color: #1a0b33; }
.log-orange { background: #ff9d1c; color: #1a0b33; }
.log-green { background: #2fbf71; color: #06210f; }
.log-red { background: #e5383b; color: #ffffff; }
.log-btn:hover { filter: brightness(0.92); }
.log-btn.picked { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Advance Search: the X column. X = suspend or delete. Red circle = days left of a suspension. Black circle = days left before deletion. */
.x-cell { text-align: center; white-space: nowrap; }
.x-btn { font-weight: 800; }
.x-circle { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 999px; font-weight: 800; font-size: 13px; text-decoration: none; color: #fff; }
.x-red { background: #e5383b; border: 1px solid #ff8a8c; }
.x-black { background: #000; border: 1px solid #8a8a8a; }
.x-circle:hover { filter: brightness(1.25); }
th.x-filter { white-space: nowrap; }
th.x-filter { text-align: center; }
th.x-filter .menu { display: inline-block; text-align: left; }
th.x-filter .menu-box { min-width: 150px; font-weight: 400; }
th.x-filter .menu-box a.on { background: rgba(252, 201, 55, 0.14); }
.x-modal { position: relative; }
.modal-x { position: absolute; top: 12px; right: 14px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; text-decoration: none; color: var(--gold); border: 1px solid rgba(167, 139, 250, 0.45); }
.modal-x:hover { background: rgba(109, 40, 217, 0.5); }
/* Room for the X filter drop down when the results list is short. */
.table-wrap:has(th.x-filter) { min-height: 250px; }

/* Advance Search: the Log header is a button. Its drop down filters the list by the color of the Log button. */
th.log-filter .menu { display: inline-block; }
th.log-filter .menu-box { min-width: 140px; font-weight: 400; }
th.log-filter .menu-box a { display: flex; align-items: center; gap: 8px; }
th.log-filter .menu-box a.on { background: rgba(252, 201, 55, 0.14); }
.log-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1px solid rgba(255, 255, 255, 0.5); flex: none; }
.table-wrap:has(th.log-filter) { min-height: 280px; }

/* Message log window: scrolls inside itself, with the column titles staying at the top. */
.modal .log-scroll { max-height: 60vh; overflow-y: auto; }
.modal .log-scroll thead th { position: sticky; top: 0; background: #33137a; z-index: 1; }
.modal .log-scroll td.pre { white-space: pre-wrap; min-width: 180px; }

/* The Message log button sits right beside the Send log title, on the left, where it is easy to see. */
.send-log-head { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; }
.send-log-head h3 { margin: 0; }

/* Advance Search: the tick box filters on the i, sc, and ru column titles. */
th.tick-th .menu { display: inline-block; }
.tick-box { min-width: 190px; font-weight: 400; text-align: left; white-space: normal; }
.tick-box .hint { margin: 0; }
.tick-list { max-height: 190px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding-right: 4px; }
.tick-list label.tick { display: flex; align-items: center; gap: 8px; margin: 0; padding: 4px 6px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--gold-soft); }
.tick-list label.tick:hover { background: rgba(109, 40, 217, 0.5); }
.tick-list label.tick input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--gold); }
.table-wrap:has(th.tick-th) { min-height: 340px; }

/* Log button by account state: black with white text = for deletion, a skull = deleted. Red (suspended) uses the red above. */
.log-black { background: #000; color: #fff; border-color: #8a8a8a; }
.log-red { color: #fff; }
.log-deleted { background: #1b1b1f; color: #fff; border-color: #8a8a8a; font-size: 15px; padding-left: 9px; padding-right: 9px; }

/* Demographic Chart: the number boxes at the top share one row, however many there are. */
@media (min-width: 861px) { .tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }

/* Gallery: videos sit in the same squares as the pictures. While picking what to delete, a click selects the video and does not play it. */
.gallery video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.gallery.picking video { pointer-events: none; }

/* Advance Search: the Device column. White = only this account used the device. Orange = several accounts used the same device. */
.dev { white-space: nowrap; }
.dev-orange { font-weight: 700; }
.dev-orange a { color: #ff9d1c; text-decoration: underline; margin-left: 1px; }
.dev-orange { color: #ff9d1c; }

/* Master Admin: the user window (Profile and Chat tabs), opened from a user's picture in Advance Search. Read only. */
.av-link { display: inline-block; border-radius: 50%; line-height: 0; }
.av-link:hover .av { outline: 2px solid var(--gold); outline-offset: 2px; }
.modal.user-window { max-width: 1040px; padding: 18px 20px; }
.uw-head { display: flex; align-items: center; gap: 10px; }
.uw-head h2 { margin: 0; }
.uw-head .modal-x { position: static; }
.uw-tabs { margin: 12px 0; border-bottom: 1px solid var(--card-line); padding-bottom: 10px; }
.uw-body h3 { margin-top: 18px; }
.uw-card { text-align: center; }
.uw-card h3 { margin: 10px 0 4px; font-size: 18px; }
.uw-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; text-align: left; }
.uw-facts div { background: rgba(13, 6, 25, 0.4); border: 1px solid var(--card-line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.uw-facts span { display: block; font-size: 11px; color: var(--gold-mute); }
.uw-facts strong { font-size: 13px; overflow-wrap: anywhere; }
.uw-post { border: 1px solid var(--card-line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: rgba(13, 6, 25, 0.35); }
.uw-post p { margin: 6px 0 0; }
.gallery.small { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
.uw-chat { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; align-items: start; }
.uw-people { max-height: 62vh; overflow-y: auto; border-right: 1px solid var(--card-line); padding-right: 10px; }
.uw-people .conn { text-decoration: none; }
.uw-thread { max-height: 62vh; overflow-y: auto; }
.uw-thread .messages { padding: 8px 4px; }
@media (max-width: 860px) { .uw-chat { grid-template-columns: 1fr; } .uw-people { max-height: 30vh; border-right: 0; } .uw-facts { grid-template-columns: 1fr 1fr; } }

/* Master Admin Transactions: status you can click, the reviewed tick box, and the red un-confirmed count. */
.txn-wrap { min-height: 320px; }
.txn-table td { white-space: nowrap; font-size: 13px; }
.txn-table th { vertical-align: bottom; }
.txn-table td.actions .btn { margin-left: 6px; }
summary.status-pick { cursor: pointer; display: inline-block; list-style: none; }
summary.status-pick::-webkit-details-marker { display: none; }
summary.status-pick::after { content: ' \25BE'; }
.txn-table .menu-box { min-width: 150px; }
.txn-table .menu-box form { margin: 0; }
.txn-table .menu-btn:disabled { opacity: 0.55; cursor: default; }
.txn-table .menu { display: inline-block; }
.undone + .undone { margin-left: 3px; }
.undone { display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #e5383b; color: #fff; font-size: 11px; font-weight: 800; }
.tick-btn { width: 20px; height: 20px; border-radius: 5px; border: 2px solid var(--gold); background: transparent; cursor: pointer; padding: 0; vertical-align: middle; }
.tick-btn:hover { background: rgba(252, 201, 55, 0.3); }
hr.soft { border: 0; border-top: 1px solid var(--card-line); margin: 14px 0; }
.x-modal .row-start input[type="number"] { width: 170px; }

/* Transactions: the date from and date to filter. */
.date-range label { margin: 0; font-size: 12px; }
.date-range input[type="date"] { margin: 4px 0 0; padding: 6px 8px; font-size: 13px; width: 100%; color-scheme: dark; }

/* The black Delete button, matching the black circle of an account that is for deletion. */
.btn-black { background: #000; color: #fff; border-color: #8a8a8a; }
.btn-black:hover { background: #1f1f1f; }
.txn-table .x-circle { min-width: 24px; height: 24px; font-size: 12px; vertical-align: middle; }

/* Reported Users: a round picture with the full name, and the notes window. */
.who-cell { display: inline-flex; align-items: center; gap: 8px; }
.note-facts { margin: 4px 0 14px; }
.note-body { background: rgba(13, 6, 25, 0.45); border: 1px solid var(--card-line); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; }

/* Reported Users: the two sc numbers are links. */
.sc-pair a { font-weight: 700; padding: 0 3px; }

/* User window, Chat tab: the Video and Photo counts at the top, and the log of small pictures and videos. */
.uw-media { display: inline-flex; flex-direction: column; gap: 3px; margin-left: 28px; }
.uw-media-link { font-weight: 700; font-size: 13px; text-decoration: none; padding: 2px 12px; border-radius: 8px; border: 1px solid #e5383b; color: var(--gold); }
.uw-media-link:hover, .uw-media-link.on { background: rgba(229, 56, 59, 0.25); }
.media-log { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.media-log figure { margin: 0; }
.media-log figcaption { font-size: 11px; color: var(--gold-mute); margin-top: 4px; }
.zoom-thumb { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--card-line); background: #150a2b; cursor: zoom-in; }
.zoom-thumb img, .zoom-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

/* Advance Search: the MS log (pictures and videos a user sent). Only the small preview is clickable. */
.ms-log td { vertical-align: middle; }
.ms-thumb { width: 72px; }
.ms-kind { font-weight: 800; font-family: ui-monospace, Consolas, monospace; }
.ms-v { color: #ff9d1c; }
.ms-i { color: #6ee7b7; }

/* Log in with Google: the divider and the white button under the normal log in button. */
.or-line { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--gold-mute); font-size: 12px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--card-line); }
.btn-google { background: #fff; color: #1f1f1f; border-color: #dadce0; gap: 10px; margin-bottom: 14px; }
.btn-google:hover { background: #f1f3f4; }
/* Get the app on Google Play: its own small box just below the log in or sign up box. Hidden inside the installed app. */
.get-app { position: relative; z-index: 1; max-width: 440px; margin: 14px auto 0; padding: 14px 18px; text-align: center; background: #1d0d3c; border: 1px solid var(--card-line); border-radius: 18px; }
.get-app-text { margin: 0 0 8px; font-size: 13px; color: var(--gold-mute); }
@media (display-mode: standalone), (display-mode: fullscreen) { .get-app { display: none; } }
.in-app .get-app { display: none; }
.g-mark { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #1f1f1f; color: #fff; font-size: 12px; font-weight: 800; }
/* LOGIN-CLOUD START - curved quotes behind the log in box. To undo, remove everything from this line to LOGIN-CLOUD END. */
.login-cloud { position: absolute; top: 0; left: 0; width: 100%; height: 100vh; overflow: hidden; pointer-events: none; z-index: 0; -webkit-user-select: none; user-select: none; }
.login-cloud svg { display: block; width: 100%; height: 100%; }
.login-cloud text { font-weight: 800; text-anchor: middle; }
.login-cloud .lc-gold { fill: var(--gold); }
.login-cloud .lc-lav { fill: var(--lav); }
.login-cloud .lc-soft { fill: var(--gold-soft); }
.login-cloud ~ .auth-card { position: relative; z-index: 1; background: #1d0d3c; }
@media (max-width: 699px) { .login-cloud { display: none; } }
@media (min-width: 700px) { .auth-wrap:has(> .login-cloud) { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: 24px; padding-bottom: 24px; } .login-cloud ~ .auth-card { width: 100%; margin-bottom: 0; } }
/* LOGIN-CLOUD END */
/* No saving pictures or videos on user pages: no long press menu, no text style selection on them. */
body:not(.admin) img, body:not(.admin) video { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
