/* Myanmar DJs — styles. Dark theme. Palette from the logo: navy #1d2761, red #ed2024. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0c102e;
  color: #e9ebf8;
  line-height: 1.5;
}

a { color: #9aa7ff; }
img { max-width: 100%; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* ---------- Header ---------- */
.site-header {
  background: #1d2761;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #2c3577;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.logo-frame {
  display: inline-block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: #fff;
}
.logo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: .2px; }

.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: #dfe3ff;
  text-decoration: none;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 15px;
}
.main-nav a:hover { background: rgba(255,255,255,.14); color: #fff; }
.main-nav a.nav-join { background: #ed2024; color: #fff; font-weight: 600; }
.main-nav a.nav-join:hover { background: #c91318; }
.nav-badge {
  display: inline-block;
  min-width: 19px;
  padding: 0 5px;
  margin-left: 4px;
  border-radius: 10px;
  background: #ed2024;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  vertical-align: 2px;
}

/* ---------- Notices, boxes ---------- */
.setup-notice {
  background: #3a2f10;
  color: #f5d67b;
  text-align: center;
  padding: 10px 16px;
  font-size: 15px;
  border-bottom: 1px solid #8a6d1f;
}
.banner {
  background: #3a2f10;
  border: 1px solid #8a6d1f;
  color: #f5d67b;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.notice-ok {
  background: #12301d;
  border: 1px solid #2c6e44;
  color: #9fe8b4;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.error-text { color: #ff7b84; margin: 10px 0; }
.muted { color: #9aa0c3; }
.small { font-size: 13px; }
.empty-state {
  background: #161b45;
  border: 1px dashed #39438a;
  border-radius: 10px;
  padding: 28px 18px;
  text-align: center;
  color: #9aa0c3;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: #1d2761;
  color: #fff;
  border: 1px solid #4a57a8;
  border-radius: 7px;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: #27337c; }
.btn-red { background: #ed2024; border-color: #ed2024; }
.btn-red:hover { background: #c91318; }
.btn-light { background: #232a5e; color: #eef0ff; border-color: #39438a; }
.btn-light:hover { background: #2c3577; }
.btn-danger { background: transparent; color: #ff7b84; border-color: #b3373f; }
.btn-danger:hover { background: #33161c; }
.btn-small { padding: 5px 12px; font-size: 14px; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- Hero / home ---------- */
.hero { text-align: center; padding: 26px 0 6px; }
.hero-logo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  background: #fff;
  border: 3px solid #4a57a8;
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero h1 { margin: 0 0 6px; font-size: 32px; color: #fff; }
.hero p { margin: 0 auto 16px; max-width: 520px; color: #c3c8e8; }
.hero-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.member-count { margin-top: 14px; color: #9aa0c3; font-size: 14px; }

.section-title { font-size: 21px; color: #fff; margin: 30px 0 12px; }

/* ---------- DJ cards ---------- */
.dj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.dj-card {
  background: #1a2050;
  border: 1px solid #2c3577;
  border-radius: 10px;
  padding: 16px 10px 13px;
  text-align: center;
  text-decoration: none;
  color: #e9ebf8;
  display: block;
}
.dj-card:hover { border-color: #5a68c9; background: #1f2660; }
.dj-card .dj-name { font-weight: 700; margin-top: 9px; font-size: 16px; }
.dj-card .dj-meta { color: #9aa0c3; font-size: 13px; margin-top: 2px; word-wrap: break-word; }

/* ---------- Avatars ---------- */
.avatar-wrap {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  background: #1d2761;
  margin: 0 auto;
  flex: 0 0 auto;
}
.avatar-wrap .avatar-letter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}
.avatar-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-md { width: 84px; height: 84px; }
.avatar-md .avatar-letter { font-size: 32px; }
.avatar-lg { width: 150px; height: 150px; }
.avatar-lg .avatar-letter { font-size: 56px; }
.avatar-sm { width: 46px; height: 46px; margin: 0; }
.avatar-sm .avatar-letter { font-size: 18px; }

/* ---------- Filters / forms ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input { flex: 1 1 200px; }

.form-box {
  background: #1a2050;
  border: 1px solid #2c3577;
  border-radius: 10px;
  padding: 22px;
  max-width: 560px;
  margin: 0 auto;
}
.form-box.wide { max-width: 640px; }
.form-box h1 { margin-top: 0; font-size: 24px; color: #fff; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 5px; }
label:first-of-type { margin-top: 0; }
input[type="text"], input[type="email"], input[type="password"],
input[type="url"], textarea, select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #39438a;
  border-radius: 7px;
  font-size: 15px;
  font-family: inherit;
  background: #12173c;
  color: #eef0ff;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: #5a68c9; }
textarea { resize: vertical; }
.form-actions { margin-top: 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.photo-edit { display: flex; gap: 16px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }

/* ---------- Public profile ---------- */
.profile-head { text-align: center; padding-top: 10px; }
.profile-head h1 { margin: 12px 0 2px; font-size: 28px; color: #fff; }
.profile-meta { color: #9aa0c3; margin: 2px 0; }
.profile-bio {
  background: #1a2050;
  border: 1px solid #2c3577;
  border-radius: 10px;
  padding: 16px 18px;
  max-width: 640px;
  margin: 18px auto 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.link-list { max-width: 640px; margin: 14px auto 0; }
.link-list a {
  display: block;
  background: #1a2050;
  border: 1px solid #2c3577;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 8px;
  text-decoration: none;
  font-weight: 600;
}
.link-list a:hover { border-color: #5a68c9; }
.profile-actions { text-align: center; margin-top: 20px; }

/* ---------- Messages ---------- */
.convo-list { background: #1a2050; border: 1px solid #2c3577; border-radius: 10px; overflow: hidden; }
.convo-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  text-decoration: none;
  color: #e9ebf8;
  border-bottom: 1px solid #262d63;
}
.convo-row:last-child { border-bottom: none; }
.convo-row:hover { background: #222963; }
.convo-main { flex: 1; min-width: 0; }
.convo-name { font-weight: 700; }
.convo-preview {
  color: #9aa0c3;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.convo-side { text-align: right; flex: 0 0 auto; }
.convo-time { color: #7c83ab; font-size: 12px; }
.unread-badge {
  display: inline-block;
  min-width: 21px;
  padding: 1px 6px;
  margin-top: 4px;
  border-radius: 11px;
  background: #ed2024;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.thread-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.thread-head .t-name { font-size: 19px; font-weight: 700; color: #fff; }
.thread-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 15px;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.bubble .b-time { display: block; font-size: 11px; margin-top: 4px; opacity: .65; }
.bubble.mine { align-self: flex-end; background: #27337c; color: #fff; border-bottom-right-radius: 4px; }
.bubble.theirs { align-self: flex-start; background: #1a2050; border: 1px solid #2c3577; border-bottom-left-radius: 4px; }
.thread-form { display: flex; gap: 8px; align-items: flex-end; }
.thread-form textarea { flex: 1; }

/* ---------- Admin ---------- */
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.stat-box {
  background: #1a2050;
  border: 1px solid #2c3577;
  border-radius: 10px;
  padding: 12px 18px;
  min-width: 110px;
  text-align: center;
}
.stat-box .stat-num { font-size: 24px; font-weight: 700; color: #fff; }
.stat-box .stat-label { font-size: 13px; color: #9aa0c3; }
.admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a2050;
  border: 1px solid #2c3577;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.admin-row .a-main { flex: 1; min-width: 140px; }
.admin-row .a-name { font-weight: 700; }
.admin-row .a-meta { color: #9aa0c3; font-size: 13px; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  color: #9aa0c3;
  padding: 22px 16px 30px;
  border-top: 1px solid #262d63;
}
.site-footer p { margin: 2px 0; }
.footer-small { font-size: 13px; }

@media (max-width: 560px) {
  .hero h1 { font-size: 26px; }
  .hero-logo { width: 110px; height: 110px; }
  .brand-name { font-size: 18px; }
  .bubble { max-width: 88%; }
}

/* ---------- v2: profile (Facebook-style) ---------- */
.profile-cover { margin-bottom: 16px; }
.cover-band {
  height: 150px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(120deg, #1d2761 0%, #27337c 55%, #7a1420 130%);
  border: 1px solid #2c3577;
  border-bottom: none;
}
.cover-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  background: #1a2050;
  border: 1px solid #2c3577;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 0 18px 16px;
}
.cover-row .avatar-wrap { margin: -52px 0 0; border: 4px solid #1a2050; background: #1d2761; }
.cover-id { flex: 1; min-width: 180px; padding-top: 10px; }
.cover-id h1 { margin: 0 0 2px; font-size: 28px; color: #fff; }
.cover-actions { padding-top: 10px; }

.card {
  background: #1a2050;
  border: 1px solid #2c3577;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}
.card-title { margin: 0 0 12px; font-size: 18px; color: #fff; }
.profile-bio-text { white-space: pre-wrap; word-wrap: break-word; }
.fact-list { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; margin: 14px 0 0; }
.fact-list dt { color: #9aa0c3; font-size: 14px; }
.fact-list dd { margin: 0; }
.card .link-list { margin: 0; max-width: none; }
.card .link-list a { background: #12173c; border-color: #39438a; }

.photo-add { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.photo-add label.btn { margin: 0; cursor: pointer; }
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.photo-cell { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid #2c3577; }
.photo-cell img { width: 100%; height: 120px; object-fit: cover; display: block; }
.photo-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 12, 30, .8);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.photo-del:hover { background: #ed2024; }

/* ---------- v2: forum ---------- */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 16px; }
.chip {
  background: #232a5e;
  color: #dfe3ff;
  border: 1px solid #39438a;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14px;
  cursor: pointer;
}
.chip:hover { background: #2c3577; }
.chip-on { background: #ed2024; border-color: #ed2024; color: #fff; font-weight: 600; }
.cat-tag {
  display: inline-block;
  background: #232a5e;
  border: 1px solid #39438a;
  color: #c3c8e8;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.topic-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1a2050;
  border: 1px solid #2c3577;
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 9px;
  text-decoration: none;
  color: #e9ebf8;
  flex-wrap: wrap;
}
.topic-row:hover { border-color: #5a68c9; background: #1f2660; }
.topic-main { flex: 1; min-width: 200px; }
.topic-title { font-weight: 700; font-size: 16px; }
.topic-meta { color: #9aa0c3; font-size: 13px; margin-top: 2px; }
.topic-side { text-align: right; flex: 0 0 auto; }
.topic-count { font-weight: 700; color: #fff; font-size: 14px; }
.topic-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.topic-head h1 { margin: 0; font-size: 24px; color: #fff; }
.post-block {
  background: #1a2050;
  border: 1px solid #2c3577;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.post-head .avatar-wrap { margin: 0; }
.post-author { font-weight: 700; color: #fff; text-decoration: none; }
.post-time { color: #7c83ab; font-size: 12px; margin-left: auto; }
.post-del { margin-left: 8px; }
.post-body { white-space: pre-wrap; word-wrap: break-word; }
.reply-box {
  background: #1a2050;
  border: 1px solid #2c3577;
  border-radius: 10px;
  padding: 16px 18px;
  margin-top: 6px;
}

/* ---------- v2: admin ---------- */
.admin-row .a-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip-admin { background: #1d2761; border-color: #4a57a8; color: #dfe3ff; cursor: default; }
.chip-banned { background: #5c1620; border-color: #b3373f; color: #ffb3ba; cursor: default; }
.chip-pending { background: #3a2f10; border-color: #8a6d1f; color: #f5d67b; cursor: default; }
.chip-blocked { background: #3a2a10; border-color: #b35c1e; color: #ffd0a3; cursor: default; }
.check-row { display: flex; align-items: center; gap: 9px; font-weight: 500; margin: 12px 0 0; cursor: pointer; }
.check-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #ed2024; }

@media (max-width: 560px) {
  .cover-band { height: 100px; }
  .cover-row .avatar-wrap { margin-top: -40px; }
  .cover-id h1 { font-size: 23px; }
  .topic-side { text-align: left; }
}

/* ---------- v3: LinkedIn-style touches (dark theme kept) ---------- */
.btn { border-radius: 999px; }
.main-nav a { border-radius: 999px; }
.profile-headline { margin: 2px 0; font-size: 16px; color: #e9ebf8; }
.link-list a { display: flex; align-items: center; gap: 11px; }
.link-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.ico-fb { background: #1877f2; }
.ico-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.ico-yt { background: #ff0000; }
.ico-sc { background: #ff5500; }
.ico-mc { background: #5000ff; }
.ico-web { background: #39438a; }

/* ---------- v3: announcements ---------- */
.announce-card { border-left: 4px solid #ed2024; }
.announce-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.announce-title { font-weight: 700; font-size: 17px; color: #fff; }
.announce-head .post-time { margin-left: auto; }

/* ---------- v3: register captcha ---------- */
.captcha-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.captcha-row canvas { border: 1px solid #39438a; border-radius: 7px; flex: 0 0 auto; }

/* ---------- v3: profile music player ---------- */
.sc-player { border: 0; border-radius: 8px; background: #12173c; display: block; }
.card-title .link-ico { vertical-align: -7px; margin-right: 9px; }

/* ---------- v5: registration member-type radios + selects ---------- */
.radio-group { display: grid; gap: 7px; margin: 2px 0 6px; }
.radio-group label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}
.radio-group input[type="radio"] { width: auto; accent-color: #ed2024; }
form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #39438a;
  border-radius: 7px;
  background: #12173c;
  color: #e9ebf8;
  font: inherit;
}

/* ---------- v6: sticky footer + share row ---------- */
body { display: flex; flex-direction: column; min-height: 100vh; }
main.container { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 6px; }
.share-label { font-weight: 600; margin-right: 2px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border: 1px solid #39438a;
  border-radius: 999px;
  background: #1a2050;
  color: #e9ebf8;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.share-btn:hover { background: #232a5e; text-decoration: none; }
.share-btn .link-ico { width: 23px; height: 23px; }
.ico-tg { background: #229ed9; }
.ico-viber { background: #7360f2; }
.ico-copy { background: #39438a; }

/* ---------- v7: email card inside My Profile ---------- */
.form-box + .form-box { margin-top: 22px; }
.email-box h2 { margin: 0 0 10px; font-size: 20px; }

/* ---------- v8: level + invite chips ---------- */
.chip-mod { background: #0e4d3c; color: #7be0c3; }
.chip-mail { background: #3b2d5c; color: #c9b8ff; }

/* ---------- v9: home layout — members left, newsfeed center ---------- */
.home-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 28px;
}
.side-card { padding: 18px; position: sticky; top: 84px; }
.side-card h3 { margin: 0 0 10px; font-size: 17px; }
.member-row {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 6px; border-radius: 10px;
  color: var(--text); text-decoration: none;
}
.member-row:hover { background: #232a63; text-decoration: none; }
.member-row-meta { display: flex; flex-direction: column; min-width: 0; }
.member-row-name {
  font-weight: 700; font-size: 14.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.member-row-sub {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.btn-block { display: block; text-align: center; margin-top: 12px; }
.feed-item {
  display: flex; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 12px;
}
.feed-main { min-width: 0; flex: 1; }
.feed-text { font-size: 14.5px; line-height: 1.55; margin-bottom: 2px; }
.feed-time { font-size: 12px; color: var(--muted); margin-top: 4px; }
.feed-announce { border-left: 4px solid var(--red); }
.chip-news { background: #5c1618; color: #ff9d9f; }
.feed-thumb {
  display: block; margin-top: 8px; max-width: 260px;
  border-radius: 10px;
}
@media (max-width: 860px) {
  .home-grid { grid-template-columns: 1fr; }
  .home-feed { order: 1; }
  .home-side { order: 2; }
  .side-card { position: static; }
}

/* ---------- v10: compose bar, emoji, chat dock, toasts, admin menu ---------- */
.compose-wrap { position: relative; flex: 1; }
.compose-bar {
  display: flex; gap: 8px; align-items: flex-end;
  background: #141a45; border: 1px solid var(--line);
  border-radius: 16px; padding: 6px;
}
.compose-bar textarea {
  flex: 1; border: none; background: transparent; resize: none;
  max-height: 120px; padding: 8px 4px; color: var(--text);
}
.compose-bar textarea:focus { outline: none; }
.emoji-btn {
  background: transparent; border: none; font-size: 20px;
  cursor: pointer; padding: 4px 6px; line-height: 1;
}
.emoji-panel {
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 70;
  background: #1a2050; border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; display: grid; grid-template-columns: repeat(8, 1fr);
  gap: 2px; width: 304px; box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.emoji-panel[hidden] { display: none; }
.emoji-one {
  background: transparent; border: none; font-size: 20px;
  cursor: pointer; padding: 5px 0; border-radius: 8px; line-height: 1.15;
}
.emoji-one:hover { background: #2a3377; }
.compose-send { border-radius: 12px; }

.bubble { position: relative; }
.bubble .b-body { overflow-wrap: anywhere; }
.bubble .b-body a { color: #9db4ff; text-decoration: underline; }
.b-del {
  position: absolute; top: -8px; right: -8px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #39448f; color: #dfe4ff; border: 1px solid #5563b8;
  font-size: 11px; line-height: 1; cursor: pointer;
  display: none; padding: 0;
}
.bubble.mine:hover .b-del { display: block; }

.thread-head-spacer { flex: 1; }
.convo-main-link {
  display: flex; gap: 12px; align-items: center;
  flex: 1; min-width: 0; color: inherit; text-decoration: none;
}
a.convo-main-link:hover { text-decoration: none; }
.convo-del {
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; font-size: 13px; padding: 6px; flex: 0 0 auto;
}
.convo-del:hover { color: #ff8a8e; }
.notify-btn {
  display: inline-block; margin: 0 0 14px; padding: 9px 14px;
  background: #232a63; color: var(--text); border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer; font-size: 14px;
}
.notify-btn:hover { background: #2a3377; }

/* toasts */
#toasts {
  position: fixed; right: 18px; bottom: 92px; z-index: 200;
  display: flex; flex-direction: column; gap: 10px; max-width: 330px;
}
.toast {
  position: relative; background: #232a63; border: 1px solid #3c489e;
  border-left: 4px solid var(--red); border-radius: 12px;
  padding: 12px 34px 12px 14px; cursor: pointer;
  box-shadow: 0 12px 34px rgba(0,0,0,.45);
}
.toast-title { font-weight: 700; font-size: 14.5px; margin-bottom: 2px; }
.toast-body {
  font-size: 13.5px; color: #c9cdf0; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.toast-x {
  position: absolute; top: 6px; right: 6px;
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; font-size: 13px; padding: 4px;
}

/* chat dock */
#chat-dock {
  position: fixed; right: 18px; bottom: 18px; z-index: 150;
  display: flex; align-items: flex-end; gap: 12px;
}
#chat-panels { display: flex; align-items: flex-end; gap: 12px; }
#chat-launcher {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  background: var(--red); color: #fff; border: none; font-size: 24px;
  cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,.45); flex: 0 0 auto;
}
.dock-badge {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px;
  border-radius: 999px; background: #fff; color: #b30d11;
  font-size: 12px; font-weight: 800; line-height: 22px; padding: 0 5px;
  border: 2px solid var(--red);
}
.chat-panel {
  width: 338px; height: 470px; display: flex; flex-direction: column;
  background: #12173c; border: 1px solid #2c3577; border-radius: 16px;
  overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.chat-head {
  display: flex; align-items: center; gap: 6px;
  background: #1d2761; padding: 8px 10px; flex: 0 0 auto;
}
.chat-head-main {
  display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0;
  color: #fff; text-decoration: none;
}
.chat-head-name {
  font-weight: 700; font-size: 14.5px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.icon-btn {
  background: transparent; border: none; color: #c9cdf0;
  cursor: pointer; font-size: 14px; padding: 5px; border-radius: 8px;
}
.icon-btn:hover { background: #2a3377; color: #fff; }
.pin-btn {
  background: transparent; border: none; cursor: pointer;
  font-size: 14px; padding: 5px; border-radius: 8px; opacity: .4;
  filter: grayscale(1);
}
.pin-btn:hover { background: #2a3377; opacity: .8; }
.pin-btn.pinned { opacity: 1; filter: none; }
.chat-msgs {
  flex: 1; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.chat-form { padding: 8px; flex: 0 0 auto; }
.chat-error { padding: 0 12px 8px; margin: 0; }

#chat-list-panel {
  position: absolute; right: 0; bottom: 70px; width: 338px;
  max-height: 480px; overflow-y: auto;
  background: #12173c; border: 1px solid #2c3577; border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.55); padding: 12px;
}
.chat-list-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 800; font-size: 16px; margin-bottom: 10px;
}
.chat-list-label {
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin: 12px 2px 6px;
}
.chat-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 6px; border-radius: 12px;
}
.chat-row:hover { background: #1d2761; }
.chat-row .convo-name { display: block; font-weight: 700; font-size: 14.5px; }
.chat-row .convo-preview {
  display: block; font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px;
}
#chat-list-panel .notify-btn { margin: 0 0 8px; width: 100%; }

/* admin quick menu */
.admin-menu-wrap { position: relative; display: inline-block; }
.admin-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 120;
  background: #1a2050; border: 1px solid #3c489e; border-radius: 14px;
  padding: 8px; min-width: 248px; box-shadow: 0 16px 44px rgba(0,0,0,.55);
  display: block; text-align: left;
}
.admin-menu[hidden] { display: none; }
.admin-menu-title {
  display: block; font-size: 12px; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); padding: 4px 8px 8px;
}
.admin-menu-label {
  display: block; font-size: 11px; font-weight: 700; color: var(--muted);
  padding: 8px 8px 2px; text-transform: uppercase; letter-spacing: .05em;
}
.admin-menu button {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; background: transparent; border: none; color: var(--text);
  padding: 9px 8px; border-radius: 9px; cursor: pointer; font-size: 14px;
  text-align: left;
}
.admin-menu button:hover:not(:disabled) { background: #2a3377; }
.admin-menu button:disabled { opacity: .55; cursor: wait; }
.admin-menu .am-state { color: #9db4ff; font-size: 12.5px; font-weight: 700; }
.admin-menu .am-check { color: #7be0c3; font-weight: 800; }
.admin-menu .am-danger { color: #ff9d9f; }
.dj-card-wrap { position: relative; }
.dj-card-wrap .dj-card { height: 100%; }
.dj-card-menu { position: absolute; top: 10px; right: 10px; z-index: 6; }
.dj-card-menu .admin-menu { right: 0; }

@media (max-width: 720px) {
  #chat-dock { right: 10px; bottom: 10px; left: 10px; }
  #chat-panels { flex: 1; }
  .chat-panel { width: 100%; height: 72vh; }
  #chat-list-panel { width: 100%; }
  #toasts { bottom: 82px; right: 10px; left: 10px; max-width: none; }
}

/* Presence (Active now) + account danger zone */
.presence-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #59608a; margin-right: 6px; }
.presence-dot.on { background: #2ee06f; box-shadow: 0 0 6px rgba(46, 224, 111, .8); }
.presence-line { color: #2ee06f; font-size: 13px; margin: 2px 0 0; }
.presence-line .presence-dot { margin-right: 5px; }
.danger-zone { border: 1px solid #6e2b2e; }

/* ---------- Messenger page + composer media (stickers / GIFs) ---------- */
.msgr { display: grid; grid-template-columns: 300px 1fr; gap: 14px; align-items: start; }
.msgr-list { background: #1a2050; border: 1px solid #2c3577; border-radius: 10px; overflow: hidden; }
.msgr-row { cursor: pointer; }
.msgr-row.active { background: #27337c; }
.msgr-main { background: #141a45; border: 1px solid #2c3577; border-radius: 10px; padding: 14px; min-height: 320px; }
.msgr-msgs { display: flex; flex-direction: column; gap: 8px; height: 46vh; overflow-y: auto; padding: 4px 2px 10px; }
.msgr-back { display: none; }
.pin-mark { font-size: 11px; }
.gif-btn { background: #232a5e; color: #e9ebf8; border: 1px solid #39407a; border-radius: 8px; font-size: 11px; font-weight: 700; padding: 5px 8px; cursor: pointer; align-self: center; }
.gif-btn:hover { background: #2c3577; }
.media-panel { border-top: 1px solid #262c58; padding: 8px 4px; max-height: 240px; overflow-y: auto; }
.media-panel[hidden] { display: none; }
.sticker-panel { }
.sticker-one { font-size: 30px; background: none; border: 0; cursor: pointer; padding: 5px; border-radius: 8px; }
.sticker-one:hover { background: #222963; }
.gif-q { width: 100%; margin-bottom: 8px; }
.gif-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.gif-one { padding: 0; border: 0; background: none; cursor: pointer; }
.gif-one img { width: 100%; height: 84px; object-fit: cover; border-radius: 8px; display: block; }
.gif-credit { font-size: 10px; color: #8a90b8; text-align: right; padding-top: 6px; }
.msg-gif { max-width: 230px; width: 100%; border-radius: 10px; display: block; }
.bubble-clear { background: transparent !important; border: 0 !important; }
.bubble-sticker { font-size: 52px; line-height: 1.15; }
@media (max-width: 760px) {
  .msgr { grid-template-columns: 1fr; }
  .msgr-main { display: none; }
  .msgr.has-open .msgr-main { display: block; }
  .msgr.has-open .msgr-list { display: none; }
  .msgr-back { display: inline-block; }
  .msgr-msgs { height: 52vh; }
}

/* Chat panel minimize */
.chat-panel.minimized { height: auto; }
.chat-panel.minimized .chat-msgs,
.chat-panel.minimized .chat-form,
.chat-panel.minimized .chat-error { display: none; }
.chat-head { cursor: pointer; }
.chat-head a, .chat-head button { cursor: pointer; }

/* Photo albums */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.album-tile { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid #2c3577; text-decoration: none; }
.album-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.album-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 10px 8px; background: linear-gradient(transparent, rgba(5, 8, 30, .88)); display: flex; flex-direction: column; }
.album-name { color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.album-count { color: #b9c0e8; font-size: 12px; }
.album-select { max-width: 210px; }

/* Custom URL username field */
.slug-field { display: flex; align-items: stretch; max-width: 460px; }
.slug-prefix { display: flex; align-items: center; padding: 0 10px; background: #232a5e; border: 1px solid #39407a; border-right: 0; border-radius: 8px 0 0 8px; color: #9aa0c3; font-size: 14px; white-space: nowrap; }
.slug-field input { border-radius: 0 8px 8px 0; flex: 1; min-width: 0; }

/* Chat composer: no visible scrollbar arrows on the text area */
.compose-bar textarea { scrollbar-width: none; -ms-overflow-style: none; }
.compose-bar textarea::-webkit-scrollbar { width: 0; height: 0; display: none; }
.compose-bar textarea::-webkit-scrollbar-button { display: none; }

/* ---------- v21: feed posts + comments, ads, reactions, popup ---------- */
.home-side { display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 861px) {
  .home-side { position: sticky; top: 84px; }
  .home-side .side-card { position: static; }
}
.post-box { padding: 14px; margin-bottom: 18px; }
.post-box textarea { width: 100%; }
.post-box-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.feed-preview { display: block; max-width: 100%; max-height: 180px; border-radius: 10px; margin-top: 10px; }
.feed-preview[hidden] { display: none; }
.feed-body { margin-top: 6px; }
.feed-photo { display: block; max-width: 100%; border-radius: 10px; margin-top: 8px; }
.feed-actions { margin-top: 8px; }
.feed-comment-toggle { background: none; border: 0; color: #9aa0c3; cursor: pointer; font-size: 13.5px; padding: 2px 4px; }
.feed-comment-toggle:hover { color: #fff; }
.feed-del { background: transparent; border: none; color: #8a90b8; cursor: pointer; font-size: 12px; padding: 2px 5px; float: right; }
.feed-del:hover { color: #ff9d9f; }
.feed-comments { margin-top: 8px; border-top: 1px solid #262d63; padding-top: 8px; }
.feed-comments[hidden] { display: none; }
.feed-comment { display: flex; gap: 8px; padding: 5px 0; align-items: flex-start; }
.avatar-xs { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.fc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fc-time { color: #7c83ab; font-size: 11.5px; font-weight: 400; }
.fc-body { overflow-wrap: anywhere; }
.comment-del { background: transparent; border: none; color: #8a90b8; cursor: pointer; font-size: 11px; padding: 3px; flex: 0 0 auto; }
.comment-del:hover { color: #ff9d9f; }
.comment-form { display: flex; gap: 8px; margin-top: 8px; }
.comment-form input { flex: 1; min-width: 0; }
.ad-item { border-top: 1px solid #262d63; padding: 12px 0 4px; position: relative; }
.ad-item:first-of-type { border-top: 0; }
.ad-img { width: 100%; border-radius: 8px; display: block; margin-bottom: 8px; }
.ad-title { font-weight: 700; margin-bottom: 2px; }
.ad-body { font-size: 13.5px; color: #c3c8e8; }
.ad-meta { font-size: 11.5px; color: #7c83ab; margin-top: 4px; }
.ad-del { position: absolute; top: 8px; right: 0; background: rgba(18,23,60,.8); border: 1px solid #39407a; color: #dfe4ff; border-radius: 50%; width: 20px; height: 20px; font-size: 11px; line-height: 1; cursor: pointer; padding: 0; }
#ad-form { margin-top: 10px; }
#ad-form label { display: block; margin-top: 8px; }
.b-react {
  position: absolute; top: -8px; width: 20px; height: 20px; border-radius: 50%;
  background: #39448f; color: #dfe4ff; border: 1px solid #5563b8;
  font-size: 10px; line-height: 1; cursor: pointer; display: none; padding: 0;
}
.bubble.mine .b-react { left: -8px; }
.bubble.theirs .b-react { right: -8px; }
.bubble:hover .b-react { display: block; }
@media (hover: none) { .b-react { display: block; opacity: .55; } }
.bubble-reacts { display: block; margin-top: 4px; cursor: pointer; }
.react-chip { display: inline-block; background: rgba(10, 13, 40, .45); border: 1px solid rgba(120, 132, 220, .5); border-radius: 999px; padding: 0 7px; font-size: 12px; line-height: 19px; margin-right: 4px; }
.react-chip.mine { border-color: #ed2024; }
.react-picker {
  position: fixed; z-index: 320; display: flex; gap: 2px;
  background: #1a2050; border: 1px solid #3c489e; border-radius: 999px;
  padding: 5px 8px; box-shadow: 0 12px 34px rgba(0,0,0,.55);
}
.react-pick { background: none; border: 0; font-size: 20px; cursor: pointer; padding: 2px 3px; line-height: 1; }
.react-pick:hover { transform: scale(1.25); }
.modal-overlay {
  position: fixed; inset: 0; z-index: 400; background: rgba(3, 5, 20, .72);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-card {
  background: #1a2050; border: 1px solid #3c489e; border-radius: 16px;
  max-width: 480px; width: 100%; padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.modal-card h2 { margin-top: 0; }
