/* XAUUSD Global Community: live-chat gate, profile card extras, forum "Load more", AI Mentor card, DM daily limit (6 Nov 2026).
   Same look as the rest of the app: dark surfaces, gold accent, existing tokens only. */

/* ---------- Live chat: "What's on your mind today?" ---------- */
.cgate { max-width: 560px; margin: 6vh auto 24px; padding: 26px 24px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(1,1,2,.35); }
.cgate h2 { margin: 10px 0 6px; font-family: var(--font-display); font-size: 1.55rem; letter-spacing: -.02em; }
.cgate .hint { margin: 0 0 14px; }
.cgate__f textarea { width: 100%; min-height: 96px; resize: vertical; font: inherit; line-height: 1.5; }
.cgate__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.cgate__row small { color: var(--text-3); font-size: .82rem; }
.cgate__row .btn { gap: 6px; }
.cgate .err:empty { display: none; }
.cgate__foot { margin: 14px 0 0; font-size: .8rem; color: var(--text-3); }
.cgate__foot b { color: var(--text-2); font-weight: 600; }
.cgate__foot a { color: var(--gold); }
@media (max-width: 600px) { .cgate { margin: 14px 4px; padding: 20px 16px 16px; border-radius: 14px; } .cgate h2 { font-size: 1.3rem; } .cgate__row .btn { width: 100%; justify-content: center; } }

/* chat names are @usernames: keep them readable */
.msg__name { font-weight: 600; }

/* ---------- profile card ----------
   one centred column that can never be wider than the sheet: long country names wrap, the badge row wraps inside its own box */
.modal:has(.ucard--pc) { overflow-x: hidden; }
.ucard--pc { gap: 5px; grid-template-columns: minmax(0, 1fr); justify-items: center; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; padding: 0 4px; }
.ucard--pc > * { max-width: 100%; min-width: 0; box-sizing: border-box; overflow-wrap: anywhere; }
.ucard--pc h3, .ucard--pc .muted { text-align: center; }
.ucard--pc .ucard__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ucard--pc .ucard__bd { justify-self: stretch; width: 100%; }
.ucard--pc .ucard__bd .xbd-pb { max-width: 100%; }
.ucard--pc .ucard__act { justify-self: stretch; }
body:has(#modalBg) .xg-bdpop { display: none; }
.ucard--pc .uname { margin: 0; color: var(--text-3); font-size: .9rem; }
.ucard__cc { display: inline-flex; align-items: center; gap: 6px; }
.ucard__cc .flagi { width: 18px; height: 13px; border-radius: 2px; }
.ucard__bd { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ucard__bd .xbd-pk { flex-basis: 100%; text-align: center; }
.ucard__bd:empty { display: none; }
.ucard__act { width: 100%; margin-top: 10px; padding: 12px 12px 6px; text-align: left; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 12px; }
.ucard__act .rk { margin-bottom: 6px; }
.ucard__act .hint { margin: 4px 0 6px; }
.ucard__al { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.ucard__al li { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .86rem; }
.ucard__al li > a, .ucard__al li > span { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 0; color: var(--text-2); text-decoration: none; }
.ucard__al li > a:hover { color: var(--gold); }
.ucard__al .i { width: 15px; height: 15px; flex: none; color: var(--text-3); }
.ucard__al li > a, .ucard__al li > span { flex: 1 1 auto; }
.ucard__al span span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ucard__al time { flex: none; color: var(--text-3); font-size: .76rem; }
.ucard__dm { justify-self: stretch; width: 100%; display: grid; justify-items: center; gap: 4px; margin-top: 10px; }
.ucard__dm .btn { min-width: min(180px, 100%); max-width: 100%; justify-content: center; }
.ucard__dm .dm-why { color: var(--text-3); font-size: .8rem; }

/* ---------- forum: Load more ---------- */
.fx-more { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 16px 0 6px; flex-wrap: wrap; }
.fx-more .hint { margin: 0; font-size: .82rem; }

/* ---------- AI Mentor (automated) ---------- */
.fx-mentor { margin-top: 12px; padding: 12px 14px; border: 1px dashed rgba(146,178,252,.35); border-radius: 12px; background: rgba(146,178,252,.04); display: grid; gap: 8px; }
.fx-mentor > .btn { justify-self: start; gap: 6px; }
.fx-mentor > small { color: var(--text-3); font-size: .8rem; }
.fx-mentor__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fx-mentor__lbl { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #92b2fc; }
.fx-mentor__lbl .i { width: 14px; height: 14px; }
.fx-mentor__h small { color: var(--text-3); font-size: .76rem; }
.fx-mentor__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fx-mentor__l li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.fx-mentor__l li > i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 700; background: rgba(255,255,255,.07); color: var(--text-2); }
.fx-mentor__l li.is-ok > i { background: rgba(46,107,250,.16); color: var(--cyan); }
.fx-mentor__l li.is-check > i { background: rgba(242,193,78,.16); color: var(--gold); }
.fx-mentor__l b { display: block; font-size: .88rem; }
.fx-mentor__l span { display: block; color: var(--text-2); font-size: .85rem; line-height: 1.45; }
.fx-mentor__s { margin: 0; color: var(--text-2); font-size: .85rem; }
.fx-mentor__f { margin: 0; color: var(--text-3); font-size: .74rem; }

/* ---------- DMs: daily limit reached ---------- */
.dm-limit span { color: var(--text-2); font-size: .9rem; text-align: center; }
