/* 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;
  /* v66 (Yan, Nov 12, 2026): title-bar logo transparent too — no white disc. */
  background: transparent;
}
.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;
  /* v65 (Yan, Nov 12, 2026): the logo file is already transparent — the
     white disc behind it came from this frame. No background, no border. */
  background: transparent;
  border: 3px solid transparent;
}
.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(118px, 1fr));
  gap: 10px;
}
.dj-card {
  background: #1a2050;
  border: 1px solid #2c3577;
  border-radius: 10px;
  padding: 10px 6px 9px;
  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: 6px; font-size: 13.5px; line-height: 1.25; }
.dj-card .dj-meta { color: #9aa0c3; font-size: 11.5px; margin-top: 1px; line-height: 1.3; 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-card { width: 60px; height: 60px; }
.avatar-card .avatar-letter { font-size: 22px; }
.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 */
body.on-messages #chat-dock { display: none !important; }
#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%; padding-top: 30px; }
.dj-card-menu { position: absolute; top: 6px; right: 6px; z-index: 6; }
.dj-card-menu .admin-menu { right: 0; }
/* v90 (Yan, Nov 13, 2026): on phones the Admin dropdown opened from a
   left-column member card ran off the left edge of the screen. On small
   screens it now opens as a full-width sheet pinned to the bottom. */
@media (max-width: 640px) {
  .admin-menu {
    position: fixed; left: 12px; right: 12px; bottom: 12px; top: auto;
    width: auto; min-width: 0; z-index: 400;
  }
}

@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; }
  /* Notification dropdown: on mobile it is centered on the screen —
     anchored to the bell icon it overflowed off the left edge. */
  .notif-panel {
    position: fixed; left: 50%; right: auto; transform: translateX(-50%);
    top: 112px; width: min(350px, 94vw);
  }
  /* Chat launcher button: smaller on mobile (Yan: too big). */
  #chat-launcher { width: 46px; height: 46px; font-size: 20px; }
  .dock-badge {
    min-width: 19px; height: 19px; line-height: 19px;
    font-size: 11px; top: -3px; right: -3px;
  }
}

/* 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; }

/* ---------- v22: wider desktop layout (mobile unchanged) ---------- */
.container { max-width: 1280px; }
.header-inner { max-width: 1280px; }
.hero p { max-width: 680px; }
.home-grid { grid-template-columns: 320px minmax(0, 1fr); }
.msgr { grid-template-columns: 330px 1fr; }
@media (max-width: 860px) { .home-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .msgr { grid-template-columns: 1fr; } }
@media (min-width: 1100px) {
  .hero h1 { font-size: 38px; }
  .hero p { font-size: 17px; }
  .section-title { font-size: 23px; }
}

/* ---------- v23: feed composer + comment media ---------- */
.emoji-panel-static { position: static; width: 100%; box-shadow: none; margin-top: 8px; }
.post-box .media-panel, .feed-comments .media-panel { border-top: 1px solid #262c58; margin-top: 8px; }
.gif-btn {
  background: #232a5e; color: #dfe4ff; border: 1px solid #39407a;
  border-radius: 999px; font-size: 10.5px; font-weight: 700;
  padding: 4px 8px; cursor: pointer; line-height: 1.4; letter-spacing: .4px;
}
.gif-btn:hover { background: #2c3577; }
.comment-form .emoji-btn { font-size: 17px; padding: 2px 4px; }
.comment-form { align-items: center; }
label.emoji-btn { display: inline-flex; align-items: center; }

/* v23 fix: main is a flex item (sticky-footer body) — without an explicit
   width it shrink-wraps its content and never reaches the 1280px cap. */
main.container { width: 100%; }
.photo-btn { display: inline-flex; align-items: center; }
.photo-btn svg { display: block; }

/* ---------- v25: notifications ---------- */
.notif-wrap { position: relative; display: inline-flex; }
.notif-btn { background: transparent; border: none; font-size: 19px; cursor: pointer; padding: 4px 2px; line-height: 1; position: relative; }
.notif-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 120;
  width: min(350px, 92vw); max-height: 70vh; display: flex; flex-direction: column;
  background: #1a2050; border: 1px solid #3c489e; border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.55); overflow: hidden; text-align: left;
}
.notif-panel[hidden] { display: none; }
.notif-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; font-weight: 700; color: #fff; border-bottom: 1px solid #262d63;
}
.notif-clear { background: none; border: 0; color: #9aa7ff; cursor: pointer; font-size: 12.5px; }
.notif-clear:hover { color: #fff; }
.notif-list { overflow-y: auto; display: block; }
.notif-empty { display: block; padding: 14px; }
.notif-item {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  border-bottom: 1px solid #232a5e; padding: 10px 14px; cursor: pointer; color: var(--text);
}
.notif-item:hover { background: #222963; }
.notif-item.unread { background: rgba(237, 32, 36, .10); }
.notif-item .notif-body { display: block; font-size: 14px; }
.notif-item.unread .notif-body { font-weight: 600; color: #fff; }
.notif-item .notif-time { display: block; font-size: 11.5px; color: #7c83ab; margin-top: 2px; }
.notif-all { display: block; text-align: center; padding: 10px; font-weight: 600; border-top: 1px solid #262d63; }
.notif-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; margin-bottom: 10px; }
.notif-row.unread { border-left: 3px solid #ed2024; }
.notif-row-main { flex: 1; min-width: 0; }
.hidden-tag {
  display: inline-block; background: #39407a; color: #dfe4ff; border-radius: 999px;
  font-size: 11px; font-weight: 700; padding: 1px 8px; vertical-align: 2px;
}
.hidden-note {
  margin-top: 6px; font-size: 12.5px; color: #ffb3b5;
  background: rgba(237, 32, 36, .08); border: 1px solid rgba(237, 32, 36, .35);
  border-radius: 8px; padding: 6px 10px;
}

/* ---------- v27: Bright Blue accent (replaces red on actions) ---------- */
.main-nav a.nav-join { background: #3b82f6; }
.main-nav a.nav-join:hover { background: #2f6fd6; }
.nav-badge { background: #3b82f6; }
.btn-red { background: #3b82f6; border-color: #3b82f6; }
.btn-red:hover { background: #2f6fd6; border-color: #2f6fd6; }
.unread-badge { background: #3b82f6; }
.chip-on { background: #3b82f6; border-color: #3b82f6; }
.check-row input[type="checkbox"] { accent-color: #3b82f6; }
.radio-group input[type="radio"] { accent-color: #3b82f6; }
.announce-card { border-left-color: #3b82f6; }
.chip-news { background: #1c3260; color: #a9c6ff; }
.react-chip.mine { border-color: #3b82f6; }
.notif-item.unread { background: rgba(59, 130, 246, .13); }
.notif-row.unread { border-left-color: #3b82f6; }
.hidden-note {
  color: #f2cd7e; background: rgba(223, 161, 22, .10);
  border-color: rgba(223, 161, 22, .40);
}
.notif-btn { color: #e9ebf8; display: inline-flex; align-items: center; }
.notif-btn:hover { color: #ffffff; }
.dock-badge { color: #2563eb; border-color: #3b82f6; }
.feed-announce { border-left-color: #3b82f6; }
#chat-launcher { background: #3b82f6; }
.toast { border-left-color: #3b82f6; }

#notif-badge[hidden] { display: none; }

/* ---------- v29: legal page ---------- */
.legal-card { padding: 22px 26px; line-height: 1.65; }
.legal-card h3 { margin: 18px 0 6px; color: #fff; }
.legal-card p { margin: 0 0 10px; }

/* ---------- v30: Google sign-in ---------- */
.oauth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0 12px; color: #7c83ab; font-size: 12.5px;
}
.oauth-divider::before, .oauth-divider::after {
  content: ""; flex: 1; height: 1px; background: #2c3577;
}
.google-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.legal-note { margin-top: 10px; text-align: center; }

/* ---------- v31: guest members gate ---------- */
.members-gate { position: relative; }
.members-blur {
  filter: blur(6px); opacity: .7; user-select: none; pointer-events: none;
}
.members-gate-overlay { position: absolute; inset: 0; cursor: pointer; }
.gate-note { margin-top: 8px; }

/* ---------- v48: icon navigation ---------- */
.main-nav a.nav-icon {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px; position: relative; border-radius: 999px; line-height: 0;
}
.main-nav a.nav-icon .nav-badge {
  position: absolute; top: -3px; right: -5px; margin-left: 0;
}

/* ---------- v50: the nav "⋯" dropdown menu ---------- */
.more-wrap { position: relative; display: inline-flex; }
.more-btn {
  background: none; border: none; color: #dfe3ff; cursor: pointer;
  padding: 8px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; line-height: 0; position: relative;
}
.more-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.more-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 120;
  width: 238px; background: #1a2050; border: 1px solid #3c489e;
  border-radius: 12px; box-shadow: 0 18px 48px rgba(0,0,0,.55);
  padding: 6px; display: flex; flex-direction: column; text-align: left;
}
.more-panel[hidden] { display: none; }
.more-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px;
  border-radius: 8px; color: var(--text); font-size: 14.5px;
  background: none; border: none; cursor: pointer; font-family: inherit;
  text-align: left; width: 100%; box-sizing: border-box; text-decoration: none;
}
.more-item:hover { background: #222963; }
.more-item svg { width: 18px; height: 18px; flex: none; }
.more-danger { color: #ff7a7d; }

/* ---------- v50: mobile — nav icons get more air (no mistaps) ---------- */
@media (max-width: 720px) {
  .main-nav { gap: 12px; row-gap: 8px; }
  .main-nav a.nav-icon { padding: 11px; }
  .notif-btn { padding: 11px; }
  .more-btn { padding: 11px; }
  .more-panel {
    position: fixed; left: 50%; right: auto; transform: translateX(-50%);
    top: 112px; width: min(320px, 94vw);
  }
}

/* ---------- v53: nav layout (Yan, Nov 12, 2026) ----------
   Mobile: the icons must stay in ONE row, spread across the width.
   Desktop: icons get bigger and spread to fill the top row. */
.main-nav { flex-wrap: nowrap; }
@media (max-width: 720px) {
  .main-nav { width: 100%; justify-content: space-between; gap: 2px; }
  .main-nav a.nav-icon { padding: 8px; }
  .main-nav a.nav-icon svg { width: 20px; height: 20px; }
  .notif-btn { padding: 8px; }
  .notif-btn svg { width: 20px; height: 20px; }
  .more-btn { padding: 8px; }
  .more-btn svg { width: 20px; height: 20px; }
}
@media (min-width: 721px) {
  .main-nav { flex: 1 1 auto; justify-content: space-evenly; gap: 8px; margin-left: 28px; }
  .main-nav a.nav-icon { padding: 11px; }
  .main-nav a.nav-icon svg { width: 25px; height: 25px; }
  .notif-btn { padding: 11px; }
  .notif-btn svg { width: 24px; height: 24px; }
  .more-btn { padding: 11px; }
  .more-btn svg { width: 25px; height: 25px; }
  .main-nav a.nav-join { font-size: 16px; padding: 10px 18px; }
}

/* ---------- v54: nav Messages dropdown (replaces the dock popup) ---------- */
.msg-wrap { position: relative; display: inline-flex; }
.msg-btn {
  background: none; border: none; color: #dfe3ff; cursor: pointer;
  padding: 8px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; line-height: 0; position: relative;
}
.msg-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.msg-btn .nav-badge { position: absolute; top: -3px; right: -5px; margin-left: 0; }
.msg-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 120;
  width: min(360px, 92vw); max-height: 70vh; display: flex; flex-direction: column;
  background: #1a2050; border: 1px solid #3c489e; border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,.55); overflow: hidden; text-align: left;
}
.msg-panel[hidden] { display: none; }
.msg-list { overflow-y: auto; display: block; }
.msg-item {
  display: flex; gap: 10px; align-items: center; width: 100%;
  text-align: left; background: none; border: 0;
  border-bottom: 1px solid #232a5e; padding: 10px 14px;
  cursor: pointer; color: var(--text); font-family: inherit;
}
.msg-item:hover { background: #222963; }
.msg-item.unread .msg-item-name { color: #fff; font-weight: 700; }
.msg-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.msg-item-name { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-item-preview { font-size: 13px; color: #9aa1c7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.msg-item-time { font-size: 11.5px; color: #7c83ab; }
@media (max-width: 720px) {
  .msg-btn { padding: 8px; }
  .msg-btn svg { width: 20px; height: 20px; }
  .msg-panel {
    position: fixed; left: 50%; right: auto; transform: translateX(-50%);
    top: 112px; width: min(360px, 94vw);
  }
}
@media (min-width: 721px) {
  .msg-btn { padding: 11px; }
  .msg-btn svg { width: 25px; height: 25px; }
}

/* ---------- v55: Claude-like message composer + media menu ---------- */
.compose-bar {
  flex-direction: column; align-items: stretch; gap: 6px;
  border-radius: 24px; padding: 12px; background: #151b4d;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.compose-bar textarea {
  width: 100%; min-height: 64px; max-height: 180px;
  padding: 10px 8px 4px; font-size: 16px; line-height: 1.5;
}
.thread-form .compose-bar { border-radius: 26px; padding: 14px; }
.thread-form .compose-bar textarea { min-height: 96px; }
.chat-form .compose-bar textarea { min-height: 58px; }
.compose-tools { display: flex; align-items: center; gap: 5px; min-height: 40px; }
.compose-tools .emoji-btn {
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.compose-tools .emoji-btn:hover { background: #2a3377; }
.plus-wrap { position: relative; display: inline-flex; }
.plus-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #4a55a5; background: #232a5e; color: #fff;
  font-size: 27px; font-weight: 300; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 0 3px;
}
.plus-btn:hover { background: #2f3980; }
.plus-menu {
  position: absolute; left: 0; bottom: calc(100% + 10px); z-index: 90;
  width: 196px; padding: 6px; background: #20265c;
  border: 1px solid #4652a8; border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0,0,0,.55);
}
.plus-menu[hidden] { display: none; }
.plus-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px; border: 0; border-radius: 11px; background: transparent;
  color: var(--text); font: inherit; font-size: 15px;
  cursor: pointer; text-align: left;
}
.plus-item:hover { background: #2c367c; }
.plus-item-icon { width: 30px; text-align: center; font-size: 21px; flex: none; }
.plus-item-icon.plus-gif {
  font-size: 10px; font-weight: 800; letter-spacing: .4px;
  background: #39448f; border-radius: 6px; padding: 5px 2px;
}
.compose-send { margin-left: auto; border-radius: 999px; padding: 9px 18px; }
.convo-del { font-size: 16px; padding: 7px; }
.delete-convo-btn { font-size: 17px; padding: 7px; }
@media (max-width: 720px) {
  .thread-form .compose-bar { padding: 12px; }
  .thread-form .compose-bar textarea { min-height: 88px; }
  .plus-menu { width: 188px; }
}

/* ---------- v48: swipe-left to delete a notification ---------- */
.swipe-wrap { position: relative; display: block; overflow: hidden; }
.swipe-wrap.block { margin-bottom: 10px; border-radius: 12px; }
.swipe-wrap.block > .notif-row { margin-bottom: 0; }
.swipe-del {
  position: absolute; inset: 0; background: #d92d20; color: #fff;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 18px; font-weight: 700; font-size: 14px;
}
.swipe-wrap .notif-item, .swipe-wrap .notif-row {
  position: relative; touch-action: pan-y; will-change: transform;
}
.swipe-wrap .notif-item { background: #1c2252; }
.swipe-wrap .notif-item.unread { background: #3a2333; }
.swipe-wrap .notif-item:hover { background: #222963; }

/* ---------- v48: profile About facts with icons ---------- */
.fact-list { grid-template-columns: 28px 1fr; gap: 7px 10px; }
.fact-list dt { display: flex; align-items: center; color: #9aa0c3; }

/* Boot placeholder (v57): shown until the first paint, once the
   session state is known — replaces the old signed-out flash. */
.boot-loading { text-align: center; color: #9aa3c7; padding: 64px 0; font-size: 15px; }
/* Spinning round logo while the page (re)loads — Yan, Nov 12, 2026.
   Lives in the static boot placeholder, so it shows on every refresh
   (desktop + mobile) before app.js runs, and vanishes with the first
   render. */
/* v65 (Yan, Nov 12, 2026): the logo no longer spins. It sits still with a
   soft circular light overlay around it — only the light sweeps, slowly. */
/* v66 (Yan, Nov 12, 2026): the light ring must hug the logo evenly — the
   wrap is only 4px larger than the logo on every side, and the ring +
   sweep both run on that same circle. */
.boot-loading .boot-wrap { position: relative; width: 92px; height: 92px; margin: 0 auto 14px; }
.boot-loading .boot-logo { width: 84px; height: 84px; border-radius: 50%; display: block; margin: 4px auto; }
.boot-loading .boot-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.28); box-shadow: 0 0 18px rgba(160,190,255,.35), inset 0 0 12px rgba(255,255,255,.15); }
.boot-loading .boot-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0deg, rgba(255,255,255,.9) 40deg, transparent 90deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); animation: mdjs-boot-sweep 7s linear infinite; filter: blur(.4px); }
@keyframes mdjs-boot-sweep { to { transform: rotate(360deg); } }

/* ---------- v58: one-row nav, hard guarantee on small screens ----------
   Yan's iPhone screenshot (Nov 12, 2026) still showed two rows with
   oversized icons — an older cached stylesheet. These rules restate
   the compact mobile sizes LAST so they win over every earlier block,
   and shrink header padding so all 8 items always fit one line. */
@media (max-width: 720px) {
  .header-inner { padding: 8px 10px; gap: 8px; }
  .main-nav { flex-wrap: nowrap; width: 100%; justify-content: space-between; gap: 0; }
  .main-nav a.nav-icon,
  .msg-btn, .notif-btn, .more-btn { padding: 7px; }
  .main-nav a.nav-icon svg,
  .msg-btn svg, .notif-btn svg, .more-btn svg { width: 20px; height: 20px; }
}

/* ---------- v59: per-post share panel + account settings ---------- */
.post-share { margin: 6px 0 2px; }
.post-share .share-row { margin-top: 0; }

/* ---------- v60: header three zones + admin level dropdown ---------- */
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .nav-join {
  background: #3b82f6; color: #fff; font-weight: 700; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; font-size: 14.5px; white-space: nowrap;
}
.role-select {
  background: #12173f; color: #e9ebf8; border: 1px solid #2c3577;
  border-radius: 8px; padding: 5px 6px; font-size: 13px; margin-right: 6px;
  font-family: inherit; cursor: pointer;
}
@media (min-width: 721px) {
  .header-inner {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  }
  .brand { justify-self: start; }
  .main-nav {
    justify-self: center; flex: none; margin-left: 0; justify-content: center;
  }
  .header-actions { justify-self: end; }
  .header-actions .msg-btn,
  .header-actions .notif-btn,
  .header-actions .more-btn { padding: 11px; }
  .header-actions .msg-btn svg,
  .header-actions .notif-btn svg,
  .header-actions .more-btn svg { width: 25px; height: 25px; }
}
@media (max-width: 720px) {
  .main-nav { width: auto; flex: 1 1 auto; }
  .header-actions { gap: 0; flex: 0 0 auto; }
  .header-actions .msg-btn,
  .header-actions .notif-btn,
  .header-actions .more-btn { padding: 7px; }
  .header-actions .msg-btn svg,
  .header-actions .notif-btn svg,
  .header-actions .more-btn svg { width: 20px; height: 20px; }
}

/* ---------- v61: mobile header must stay on ONE row ---------- */
@media (max-width: 720px) {
  .header-inner { flex-wrap: nowrap; }
  .brand-name { display: none; }
  .main-nav { justify-content: space-evenly; }
}

/* ---------- v62: minimal delete icon ---------- */
.convo-del svg, .delete-convo-btn svg, .icon-btn svg { display: block; }

/* v64: full-width header on desktop (Yan, Nov 12, 2026 — the logo and
   header actions should reach the screen edges instead of sitting
   inside the centered 1280px band; the content column stays centered). */
@media (min-width: 900px) {
  .header-inner { max-width: none; padding-left: 22px; padding-right: 22px; }
  /* Bigger header icons on desktop (Yan, Nov 12, 2026). */
  .logo-frame { width: 46px; height: 46px; }
  .brand-name { font-size: 21px; }
  .main-nav a.nav-icon { padding: 12px; }
  .main-nav a.nav-icon svg { width: 30px; height: 30px; }
  .msg-btn svg, .notif-btn svg { width: 29px; height: 29px; }
  .more-btn svg { width: 30px; height: 30px; }
  .msg-btn, .notif-btn, .more-btn { padding: 9px; }
}

/* Registered mark next to the brand name (Yan, Nov 12, 2026 — the
   Myanmar DJs logo and design are registered). */
.reg-mark { font-size: .52em; vertical-align: super; letter-spacing: 0; margin-left: 1px; }

/* ---------- v65: app Menu panel, Groups, Mailbox, mobile header ---------- */
/* The Menu button (grid) opens a Facebook-style dropdown panel holding the
   secondary destinations: Forum, Groups, Mail. */
.menu-wrap { position: relative; display: inline-flex; }
.menu-btn {
  background: none; border: none; color: #dfe3ff; cursor: pointer;
  padding: 8px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; line-height: 0; position: relative;
}
.menu-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 120;
  width: 302px; background: #1a2050; border: 1px solid #3c489e;
  border-radius: 12px; box-shadow: 0 18px 48px rgba(0,0,0,.55);
  padding: 8px; display: block; text-align: left;
}
.menu-panel[hidden] { display: none; }
.menu-grid { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.menu-card {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto;
  column-gap: 10px; align-items: center; padding: 10px; border-radius: 10px;
  text-decoration: none; color: var(--text);
}
.menu-card:hover { background: #222963; }
.menu-card-icon {
  grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 10px;
  background: #232a63; display: flex; align-items: center; justify-content: center;
  color: #dfe3ff;
}
.menu-card-icon svg { width: 21px; height: 21px; }
.menu-card-name { font-weight: 700; font-size: 15px; }
.menu-card-sub { font-size: 12.5px; color: #9aa3cf; grid-column: 2; }
@media (min-width: 721px) {
  .menu-btn { padding: 11px; }
  .menu-btn svg { width: 24px; height: 24px; }
}
@media (max-width: 720px) {
  .menu-btn { padding: 8px; }
  .menu-btn svg { width: 20px; height: 20px; }
  .menu-panel {
    position: fixed; left: 50%; right: auto; transform: translateX(-50%);
    top: 60px; width: min(330px, 94vw);
  }
  /* Yan (Nov 12, 2026): on mobile the logo + title leave the header
     entirely — only the tabs show, spread across the full width. */
  .brand { display: none; }
  .header-inner { gap: 6px; }
  #main-nav { flex: 1 1 auto; justify-content: space-evenly; }
}

/* Groups */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.group-card {
  display: block; background: #171d47; border: 1px solid #2c3577;
  border-radius: 12px; padding: 14px; text-decoration: none; color: var(--text);
}
.group-card:hover { border-color: #3b82f6; }
.group-card-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.group-card-desc { font-size: 13.5px; color: #c6cdf2; margin-bottom: 8px; }
.group-card-meta { font-size: 12.5px; color: #9aa3cf; }
.group-joined { color: #2ee06f; }
.group-title { margin: 0 0 6px; font-size: 24px; }
.group-desc { margin: 0 0 8px; }
.group-members-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.group-members-strip img { display: block; }
.btn-danger-outline { background: none; border: 1.5px solid #b03a3e; color: #ff7a7d; }
.btn-danger-outline:hover { background: rgba(237,32,36,.12); }

/* Mailbox page: the Roundcube webmail embedded in the site.
   v70 (Yan, Nov 12, 2026): full-screen app surface — the embed fills the
   whole viewport under the site header, edge to edge. No centered card,
   no border frame, no side gutters, no footer, no chat dock. */
body.route-mailbox .site-footer { display: none; }
body.route-mailbox #chat-dock { display: none !important; }
main.container.app-mailbox { max-width: none; padding: 0; display: flex; flex-direction: column; }
.mailbox-shell { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.mailbox-bar { display: flex; align-items: center; gap: 12px; padding: 6px 14px; background: #12173c; border-bottom: 1px solid #2c3577; }
.mailbox-bar-title { font-size: 14px; font-weight: 700; letter-spacing: .2px; color: #fff; white-space: nowrap; }
.mailbox-bar-note { font-size: 12.5px; color: #9aa3cf; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mailbox-frame-wrap { flex: 1; min-height: 0; background: #0c102e; }
.mailbox-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
@media (max-width: 640px) {
  .mailbox-bar-note { display: none; }
}

/* ---------- v66: mailbox header centered ---------- */
.mailbox-head { text-align: center; }
.mailbox-head .muted { max-width: 560px; margin-left: auto; margin-right: auto; }

/* Verified badge (v72): blue check shown next to verified member names */
.v-badge { display: inline-block; margin-left: 1px; line-height: 0; }
.v-badge svg { width: 1em; height: 1em; vertical-align: -.12em; }

/* Feed composers (v76): the + menu drops DOWN below the button row
   (the chat composer's menu opens upward, which suits a bottom bar). */
.post-box .plus-menu { bottom: auto; top: calc(100% + 8px); }

/* Verified chip in the Admin member list (v73) */
.chip-verified { background: #14315e; color: #9ec1ff; }

/* ---------- v79: side chat — IRC-style public room, DESKTOP ONLY.
   Fixed rail at the right side of the page; the page content shifts
   left (body margin) while it is open. Hidden below 1280px. ---------- */
#side-chat, #side-chat-tab { display: none; }
@media (min-width: 1280px) {
  body.sc-open { margin-right: 302px; }
  body.sc-open #chat-dock { right: 320px; }
  #side-chat {
    display: none; flex-direction: column;
    position: fixed; top: 0; right: 0; bottom: 0; width: 302px; z-index: 60;
    background: #141a45; border-left: 1px solid #2c3577;
    box-shadow: -14px 0 34px rgba(0,0,0,.35);
  }
  body.sc-open #side-chat { display: flex; }
  #side-chat-tab {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl; z-index: 60; padding: 14px 7px;
    background: #1d2761; color: #fff; border: 1px solid #2c3577; border-right: 0;
    border-radius: 10px 0 0 10px; font: inherit; font-size: 13px; cursor: pointer;
  }
  body:not(.sc-open) #side-chat-tab { display: block; }
  .sc-head {
    display: flex; align-items: center; gap: 8px;
    padding: 13px 14px; border-bottom: 1px solid #2c3577; background: #1d2761;
  }
  .sc-title { font-weight: 700; font-size: 15px; }
  .sc-count { color: #9fb2ff; font-size: 12px; }
  .sc-close {
    margin-left: auto; background: none; border: 0; color: #cdd6ff;
    font-size: 21px; line-height: 1; cursor: pointer; padding: 2px 4px;
  }
  .sc-online {
    display: flex; flex-wrap: wrap; gap: 5px 10px;
    padding: 9px 14px; border-bottom: 1px solid #232a5e;
    max-height: 86px; overflow-y: auto;
  }
  .sc-user {
    display: inline-flex; align-items: center; gap: 5px;
    color: #cdd6ff; font-size: 12.5px; text-decoration: none; white-space: nowrap;
  }
  .sc-user:hover { color: #fff; }
  .sc-msgs { flex: 1; overflow-y: auto; padding: 12px 14px; }
  .sc-sys { color: #8b96d8; font-size: 12.5px; text-align: center; margin: 4px 0 12px; }
  .sc-msg { margin-bottom: 11px; font-size: 14px; }
  .sc-name { color: #9ec1ff; font-weight: 600; text-decoration: none; }
  .sc-msg.mine .sc-name { color: #ffd166; }
  .sc-time { color: #7782bd; font-size: 11px; margin-left: 5px; }
  .sc-body { color: #eef; overflow-wrap: anywhere; }
  .sc-body a { color: #9ec1ff; }
  .sc-compose {
    display: flex; gap: 8px; align-items: flex-end;
    padding: 11px 12px; border-top: 1px solid #2c3577; background: #171e4e;
  }
  .sc-compose textarea {
    flex: 1; resize: none; border-radius: 12px; border: 1px solid #39448f;
    background: #0c102e; color: #fff; padding: 9px 11px; font: inherit; font-size: 14px;
  }
}

/* v80: delete button on own / moderated side-chat messages */
.sc-del {
  float: right; background: none; border: 0; color: #7782bd;
  font-size: 15px; line-height: 1; cursor: pointer; padding: 0 2px;
}
.sc-del:hover { color: #ff8a8a; }

/* v81: service-address pin picker + profile Location card */
.pin-map {
  height: 280px; border-radius: 12px; margin: 8px 0 6px;
  border: 1px solid #263069; background: #131a3e;
}
.pin-map .leaflet-pane { z-index: 1; }
.pin-map .leaflet-top, .pin-map .leaflet-bottom { z-index: 2; }
.loc-address { font-weight: 600; margin: 2px 0 8px; }
.loc-map { width: 100%; height: 220px; border: 0; border-radius: 12px; display: block; }

/* v84: wizard type row — dropdown + separate Listener button */
.su-type-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; }
.su-type-row select { flex: 1 1 170px; }

/* v98: chat file attachments — staged-file chip, photo and file bubbles */
.file-chip { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin-bottom: 8px; font-size: 13px; background: #12173c; border: 1px solid #2a3263; border-radius: 10px; word-break: break-all; }
.file-chip .file-chip-x { margin-left: auto; flex: none; background: none; border: 0; color: #e8ebfa; cursor: pointer; font-size: 14px; line-height: 1; padding: 2px 4px; }
.msg-photo-link { display: block; margin-bottom: 4px; }
.msg-photo { max-width: 230px; max-height: 260px; border-radius: 10px; display: block; }
.msg-file { display: flex; align-items: center; gap: 9px; margin-bottom: 4px; text-decoration: none; color: inherit; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 8px 10px; }
.bubble.mine .msg-file { background: rgba(255,255,255,.14); }
.mf-icon { font-size: 18px; flex: none; }
.mf-main { min-width: 0; }
.mf-name { display: block; font-weight: 600; word-break: break-all; }
.mf-size { display: block; font-size: 12px; opacity: .75; }

/* v99: embedded players in feed posts */
.post-embed { margin-top: 8px; }
.post-embed iframe { width: 100%; border: 0; border-radius: 12px; background: #12173c; display: block; }
.yt-embed iframe { aspect-ratio: 16 / 9; height: auto; }
.drive-embed { height: 220px; }
.post-audio { width: 100%; margin-top: 8px; display: block; }

/* v100: Drime share-page embeds + composer MP3 hint */
.post-embed iframe.drime-embed { height: 430px; }
.embed-open { margin-top: 6px; font-size: 13px; }
.composer-hint { margin: 8px 0 0; }

/* v108: multi-photo ads + admin photo strip */
.ad-photos .ad-photo { display: none; }
.ad-photos .ad-photo.active { display: block; }
.ad-strip { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; align-items: center; }
.ad-thumbwrap { position: relative; display: inline-block; }
.ad-thumbwrap img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; display: block; }
.ad-thumbwrap button { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: #ed2024; color: #fff; font-size: 11px; line-height: 1; cursor: pointer; padding: 0; }
.ad-addphoto { font-size: 12px; color: #9db4ff; border: 1px dashed #39407a; border-radius: 6px; padding: 12px 8px; cursor: pointer; margin: 0; }
.ads-actions .ads-secs { width: 56px; }

/* v106: /admin/ads management page */
.ad-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.ad-thumb-none { display: flex; align-items: center; justify-content: center; font-size: 10px; color: #7c83ab; background: #12173c; text-align: center; }
.ads-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ads-actions .ads-days { width: 64px; }

/* v105: ads rotator — one ad at a time */
.ad-slide { display: none; border-top: 0; padding-top: 4px; }
.ad-slide.active { display: block; }
.ads-dots { display: flex; gap: 6px; justify-content: center; padding: 8px 0 2px; }
.ads-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #39407a; cursor: pointer; }
.ads-dot.active { background: #3b82f6; }

/* v103: live link preview inside the post composers */
.composer-preview { margin-top: 8px; }
.link-card { display: flex; gap: 10px; align-items: center; border: 1px solid #2c3577; border-radius: 12px; padding: 10px 12px; background: #12173c; }
.link-card-icon { font-size: 18px; }
.link-card-main { display: flex; flex-direction: column; min-width: 0; }
.link-card-main .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
