/* egonware forum – same material as the menu: blurred scene, glass panels, pink accent */
:root {
  --accent: #ff1f8f;
  --accent-hi: #ff3d9e;
  --accent-soft: rgba(255, 31, 143, .16);
  --text: #eceef2;
  --sub: #c0c0ca;
  --dim: #9292a0;
  --faint: #6c6c78;
  --glass: rgba(26, 26, 32, .62);
  --glass-strong: rgba(24, 24, 30, .9);
  --line: rgba(255, 255, 255, .07);
  --sep: rgba(255, 255, 255, .05);
  --field: rgba(255, 255, 255, .07);
  --field-hi: rgba(255, 255, 255, .12);
  --ok: #5ee38c;
  --warn: #ffc15e;
  --bad: #ff6b7a;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif; font-weight: 600; color: var(--text);
  background: #141418; min-height: 100vh; -webkit-font-smoothing: antialiased;
}
.scene { position: fixed; inset: -40px; z-index: -1; background: url("img/bg-mirage.jpg") center / cover no-repeat; filter: blur(26px) brightness(.55) saturate(1.1); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
[hidden] { display: none !important; }

.glass {
  background: var(--glass); backdrop-filter: blur(22px) saturate(1.2); -webkit-backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.wrap { max-width: 1240px; margin: 0 auto; padding: 22px 16px 40px; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; gap: 18px; padding: 12px 14px 12px 16px; position: sticky; top: 14px; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); }
.brand b { font-size: 17px; font-weight: 800; }
.brand b span { color: var(--accent); }
.brand small { display: block; color: var(--dim); font-size: 11.5px; margin-top: -2px; }
.tabs { display: flex; gap: 2px; padding: 4px; margin-left: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--sep); border-radius: 999px; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; color: var(--sub); font-size: 14px; transition: background .2s, color .2s; white-space: nowrap; }
.tabs a svg { width: 15px; height: 15px; stroke: var(--dim); transition: stroke .2s; }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: rgba(255,255,255,.1); color: var(--text); }
.tabs a.on svg { stroke: var(--accent); }
.spacer { flex: 1; }
.search { position: relative; display: flex; align-items: center; gap: 8px; width: 220px; height: 34px; padding: 0 14px; background: var(--field); border-radius: 999px; border: 1px solid transparent; transition: border-color .2s; }
.search:focus-within { border-color: rgba(255,31,143,.55); }
.search svg { width: 15px; height: 15px; stroke: var(--dim); flex: none; }
.search input { all: unset; width: 100%; font-size: 13.5px; color: var(--text); }
.search input::placeholder { color: var(--faint); }
.search-res { position: absolute; top: 42px; right: 0; width: 340px; padding: 6px; z-index: 30; }
.search-res a { display: block; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; }
.search-res a:hover { background: rgba(255,255,255,.06); }
.search-res a small { display: block; color: var(--faint); font-size: 12px; }
.search-res .none { padding: 10px 12px; color: var(--dim); font-size: 13px; }
.me { position: relative; width: 36px; height: 36px; flex: none; }
.me .avatar { width: 36px; height: 36px; font-size: 14px; }
.me i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2.5px #1d1d23; }
.pop { position: absolute; right: 0; top: 46px; width: 240px; padding: 6px; z-index: 30; }
.pop .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--sep); margin-bottom: 4px; }
.pop .who b { display: block; font-size: 14.5px; }
.pop a, .pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--sub); text-align: left; }
.pop a:hover, .pop button:hover { background: rgba(255,255,255,.06); color: var(--text); }
.pop svg { width: 15px; height: 15px; stroke: currentColor; }
.pop .danger { color: var(--bad); }

/* ---------- avatars / roles ---------- */
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: hsl(var(--h, 330) 45% 38%); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 72px; height: 72px; font-size: 28px; border-radius: 20px; }
.role { display: inline-flex; align-items: center; height: 19px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; vertical-align: 1px; }
.role.owner { background: var(--accent-soft); color: #ff6fb5; }
.role.admin { background: rgba(255,193,94,.14); color: var(--warn); }
.role.mod { background: rgba(110,160,255,.14); color: #8fb4ff; }
.role.member { background: var(--field); color: var(--dim); }
.name { font-weight: 700; }
.name.owner { color: var(--accent); }
.name.admin { color: var(--warn); }
.name.mod { color: #8fb4ff; }

/* ---------- hero ---------- */
.hero { margin-top: 18px; padding: 30px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: 120px; top: 50%; width: 360px; height: 260px; transform: translateY(-50%); background: radial-gradient(closest-side, rgba(255,31,143,.22), transparent); pointer-events: none; }
.hero h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.2px; }
.hero h1 span { color: var(--accent); }
.hero p { margin: 8px 0 18px; color: var(--sub); font-size: 15px; max-width: 540px; line-height: 1.5; }
.hero .agents { position: relative; z-index: 1; display: flex; align-items: flex-end; }
.hero .agents img { width: 210px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.5)); }
.hero .agents img + img { margin-left: -70px; width: 190px; opacity: .92; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 999px; background: var(--field); color: var(--sub); font-size: 12.5px; }
.chip b { color: var(--text); font-weight: 700; }
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* ---------- buttons / fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 38px; padding: 0 18px; border-radius: 10px; font-size: 14px; font-weight: 700; background: var(--field); transition: background .2s, transform .15s, opacity .2s; white-space: nowrap; }
.btn:hover { background: var(--field-hi); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hi); }
.btn.danger { background: rgba(255,107,122,.16); color: var(--bad); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; }
.btn.block { width: 100%; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 12.5px; color: var(--dim); }
.input, textarea.input, select.input {
  width: 100%; min-height: 40px; padding: 9px 13px; border-radius: 10px; background: var(--field); border: 1px solid transparent;
  font-size: 14px; color: var(--text); outline: none; transition: border-color .2s, background .2s;
}
.input:focus { border-color: rgba(255,31,143,.55); background: rgba(255,255,255,.09); }
.input::placeholder { color: var(--faint); }
textarea.input { min-height: 140px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
select.input option { background: #222228; }
.check { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--sub); cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; border-radius: 5px; background: var(--field); border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; margin: 0; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin: 4px 0 10px; }

/* ---------- layout ---------- */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; margin-top: 18px; align-items: start; }
.col { display: grid; gap: 18px; min-width: 0; }
.panel { overflow: hidden; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 18px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--sep); }
.head h2 { margin: 0; font-size: 14.5px; font-weight: 700; color: var(--accent); }
.head .more { color: var(--dim); font-size: 12.5px; }
a.more:hover, button.more:hover { color: var(--text); }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--sep); transition: background .2s; }
.row:first-child { border-top: 0; }
a.row:hover { background: rgba(255,255,255,.03); }
.body-pad { padding: 18px; }
.empty { padding: 26px 18px; color: var(--dim); font-size: 13.5px; text-align: center; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs { display: flex; align-items: center; gap: 8px; margin: 18px 4px 0; color: var(--dim); font-size: 13px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs b { color: var(--text); }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 4px 0; flex-wrap: wrap; }
.page-title h1 { margin: 0; font-size: 24px; font-weight: 800; }
.page-title p { margin: 2px 0 0; color: var(--dim); font-size: 13.5px; }

/* announcements */
.tag { flex: none; height: 22px; padding: 0 9px; border-radius: 6px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; background: var(--field); color: var(--sub); }
.tag.update { background: var(--accent-soft); color: #ff6fb5; }
.tag.info { background: rgba(110,160,255,.14); color: #8fb4ff; }
.tag.fix, .tag.solved { background: rgba(94,227,140,.13); color: var(--ok); }
.tag.question { background: rgba(255,193,94,.14); color: var(--warn); }
.news .row { align-items: flex-start; }
.news h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.news p { margin: 0; color: var(--dim); font-size: 13.5px; line-height: 1.5; }
.meta { color: var(--faint); font-size: 12px; margin-top: 6px; }

/* categories / thread lists */
.cat-ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--field); }
.cat-ic svg { width: 18px; height: 18px; stroke: var(--sub); }
.cat .title { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.cat .desc { color: var(--dim); font-size: 13px; margin-top: 1px; }
.num { text-align: right; color: var(--sub); font-size: 13px; min-width: 70px; }
.num small { display: block; color: var(--faint); font-size: 11.5px; }
.last { display: flex; align-items: center; gap: 10px; min-width: 190px; max-width: 230px; }
.last .avatar { width: 28px; height: 28px; font-size: 11px; }
.last div { min-width: 0; }
.last b { display: block; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.last span { color: var(--faint); font-size: 12px; }
.flag { color: var(--accent); display: inline-flex; }
.flag svg { width: 13px; height: 13px; }
.flag.lock { color: var(--dim); }
.pager { display: flex; justify-content: center; gap: 6px; padding: 14px; border-top: 1px solid var(--sep); }
.pager a { min-width: 32px; height: 32px; padding: 0 10px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; background: var(--field); color: var(--sub); }
.pager a.on { background: var(--accent); color: #fff; }

/* thread view */
.post { display: grid; grid-template-columns: 170px minmax(0, 1fr); border-top: 1px solid var(--sep); }
.post:first-child { border-top: 0; }
.post .author { padding: 20px 18px; border-right: 1px solid var(--sep); background: rgba(255,255,255,.015); display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; }
.post .author .avatar { width: 56px; height: 56px; font-size: 22px; border-radius: 16px; }
.post .author small { color: var(--faint); font-size: 12px; }
.post .content { padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; }
.post .when { color: var(--faint); font-size: 12px; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.post .when a:hover { color: var(--text); }
.post .text { color: var(--sub); font-size: 14.5px; line-height: 1.6; word-break: break-word; flex: 1; }
.post .text.removed { color: var(--faint); font-style: italic; }
.post .actions { display: flex; gap: 6px; margin-top: 14px; justify-content: flex-end; }
.text code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; padding: 1px 6px; border-radius: 5px; background: var(--field); color: var(--text); }
.text pre { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,.3); border: 1px solid var(--sep); overflow-x: auto; color: var(--text); white-space: pre; }
.text a { color: #ff6fb5; text-decoration: underline; text-decoration-color: rgba(255,111,181,.4); }
.text b { color: var(--text); }
.text blockquote { margin: 6px 0; padding: 6px 12px; border-left: 3px solid var(--accent); background: rgba(255,255,255,.03); border-radius: 0 8px 8px 0; color: var(--dim); }
.composer { padding: 18px; border-top: 1px solid var(--sep); }
.composer .bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.hint { color: var(--faint); font-size: 12px; }

/* chat */
.chat { display: flex; flex-direction: column; height: 420px; }
.msgs { flex: 1; overflow-y: auto; padding: 8px 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.msg { display: flex; gap: 11px; padding: 7px 18px; position: relative; }
.msg:hover { background: rgba(255,255,255,.02); }
.msg .who { font-size: 13px; }
.msg .who time { color: var(--faint); font-weight: 600; font-size: 11.5px; margin-left: 6px; }
.msg .txt { color: var(--sub); font-size: 13.5px; line-height: 1.45; word-break: break-word; }
.msg .del { position: absolute; right: 12px; top: 8px; opacity: 0; width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--field); }
.msg:hover .del { opacity: 1; }
.msg .del svg { width: 12px; height: 12px; stroke: var(--bad); }
.say { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--sep); }
.say input { all: unset; flex: 1; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--field); font-size: 13.5px; color: var(--text); border: 1px solid transparent; transition: border-color .2s; }
.say input:focus { border-color: rgba(255,31,143,.55); }
.say input::placeholder { color: var(--faint); }
.say button { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.say button svg { width: 16px; height: 16px; stroke: #fff; }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--dim); font-size: 12.5px; }

/* loader / invites */
.loader .file { display: flex; align-items: center; gap: 14px; }
.loader .file img { width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); }
.loader .file b { display: block; font-size: 15px; font-weight: 700; }
.loader .file span { color: var(--dim); font-size: 12.5px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; margin: 16px 0; font-size: 13px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; color: var(--text); text-align: right; }
.kv dd.ok { color: var(--ok); }
.inv-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 4px; }
.inv-top b { font-size: 26px; font-weight: 800; }
.inv-top b small { font-size: 13px; color: var(--dim); font-weight: 600; margin-left: 4px; }
.code { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-top: 1px solid var(--sep); font-size: 13px; }
.code .c { flex: 1; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .5px; }
.code .st { font-size: 12px; color: var(--faint); }
.code .st.free { color: var(--ok); }
.code .st.revoked { color: var(--bad); }
.icon-sm { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--field); flex: none; }
.icon-sm:hover { background: var(--field-hi); }
.icon-sm svg { width: 14px; height: 14px; stroke: var(--sub); }

/* online + stats */
.online { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px; }
.online a { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 4px; border-radius: 999px; background: var(--field); font-size: 12.5px; color: var(--sub); }
.online a .avatar { width: 20px; height: 20px; font-size: 10px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats div { padding: 18px; border-left: 1px solid var(--sep); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-size: 22px; font-weight: 800; }
.stats span { color: var(--dim); font-size: 12.5px; }

/* tables (staff) */
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 12px; color: var(--dim); font-weight: 700; padding: 12px 18px; background: rgba(255,255,255,.02); border-bottom: 1px solid var(--sep); white-space: nowrap; }
.table td { padding: 11px 18px; border-top: 1px solid var(--sep); color: var(--sub); vertical-align: middle; }
.table tr:first-child td { border-top: 0; }
.table td.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; color: var(--text); }
.table-wrap { overflow-x: auto; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: rgba(255,255,255,.04); border: 1px solid var(--sep); border-radius: 999px; }
.seg button { padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--sub); }
.seg button.on { background: rgba(255,255,255,.1); color: var(--text); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.toolbar { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--sep); flex-wrap: wrap; }
.toolbar .input { width: auto; flex: 1; min-width: 160px; min-height: 34px; padding: 6px 12px; }
.badge-ban { color: var(--bad); font-size: 12px; }

/* auth screen */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; padding: 30px; position: relative; overflow: hidden; }
.auth-card::before { content: ""; position: absolute; left: 50%; top: -90px; width: 320px; height: 220px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,31,143,.28), transparent); pointer-events: none; }
.auth-brand { position: relative; display: grid; justify-items: center; gap: 12px; margin-bottom: 24px; text-align: center; }
.auth-brand img { width: 64px; height: 64px; border-radius: 18px; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.auth-brand h1 { margin: 0; font-size: 26px; font-weight: 800; }
.auth-brand h1 span { color: var(--accent); }
.auth-brand p { margin: -6px 0 0; color: var(--dim); font-size: 13.5px; }
.auth .seg { display: flex; margin-bottom: 20px; }
.auth .seg button { flex: 1; }
.auth-foot { margin-top: 16px; text-align: center; color: var(--faint); font-size: 12.5px; line-height: 1.5; }

/* modal + toast */
.modal-bg { position: fixed; inset: 0; background: rgba(6,6,10,.55); backdrop-filter: blur(6px); z-index: 60; display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.modal { width: 100%; max-width: 460px; }
.modal .body-pad .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; font-size: 13.5px; transition: opacity .25s, transform .25s; z-index: 80; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; flex: none; }
.toast.bad i { background: var(--bad); }
.toast i svg { width: 11px; height: 11px; stroke: #fff; }

footer { margin-top: 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--faint); font-size: 12.5px; padding: 0 6px; }
footer a:hover { color: var(--text); }

.rise { opacity: 0; transform: translateY(14px); animation: rise .45s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.loading { padding: 60px; text-align: center; color: var(--dim); }

@media (max-width: 1060px) {
  .grid { grid-template-columns: 1fr; }
  .tabs a span { display: none; }
  .last { display: none; }
}
@media (max-width: 760px) {
  .tabs { display: none; }
  .post { grid-template-columns: 1fr; }
  .post .author { grid-template-columns: auto 1fr; justify-items: start; text-align: left; border-right: 0; border-bottom: 1px solid var(--sep); padding: 12px 16px; gap: 2px 12px; }
  .post .author .avatar { width: 40px; height: 40px; font-size: 16px; grid-row: span 3; }
  .two { grid-template-columns: 1fr; }
  .mobile-nav { display: flex !important; }
}
@media (max-width: 640px) {
  .wrap { padding: 12px 16px 30px; }
  .top { top: 8px; gap: 10px; }
  .brand small, .search { display: none; }
  .hero { grid-template-columns: 1fr; padding: 22px; }
  .hero .agents { display: none; }
  .hero h1 { font-size: 24px; }
  .num { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--sep); }
  .table th, .table td { padding: 10px 12px; }
}
.mobile-nav { display: none; gap: 4px; margin-top: 10px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.mobile-nav::-webkit-scrollbar { display: none; }
.mobile-nav a { flex: 1; text-align: center; padding: 8px 10px; border-radius: 10px; font-size: 13px; color: var(--sub); white-space: nowrap; }
.mobile-nav a.on { background: rgba(255,255,255,.1); color: var(--text); }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; transform: none; } }

/* ---------- profile (banner, avatar, tabs) ---------- */
.avatar.xl { width: 112px; height: 112px; font-size: 42px; border-radius: 28px; border: 3px solid rgba(20,20,26,.9); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.profile { margin-top: 18px; overflow: hidden; padding: 0; }
.pbanner { height: 190px; background: linear-gradient(135deg, rgba(255,31,143,.35), rgba(40,20,60,.6) 60%, rgba(10,10,14,.8)); background-size: cover; background-position: center; display: grid; place-items: center; }
.pbanner span { font-size: 54px; font-weight: 800; letter-spacing: 2px; color: rgba(255,255,255,.9); text-shadow: 0 6px 30px rgba(255,31,143,.55); }
.pbanner span b { color: var(--accent); }
.pmain { position: relative; display: flex; gap: 22px; align-items: flex-end; padding: 0 24px 18px; margin-top: -56px; flex-wrap: wrap; }
.pinfo { flex: 1; min-width: 240px; padding-top: 64px; }
.pinfo h1 { margin: 0; font-size: 26px; font-weight: 800; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pmeta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; font-size: 13px; }
.pmeta dt { color: var(--faint); }
.pmeta dt::after { content: ":"; }
.pmeta dd { margin: 0 0 0 -12px; color: var(--text); }
.pstats { display: flex; gap: 6px; }
.pstats div { min-width: 92px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.04); text-align: center; }
.pstats b { display: block; font-size: 20px; font-weight: 800; }
.pstats span { font-size: 11.5px; color: var(--dim); }
.ptabs .pedit { margin: auto 0 auto auto; padding: 0 12px; color: var(--text); border-bottom: 0; }
.ptabs { display: flex; align-items: center; gap: 4px; padding: 0 18px; border-top: 1px solid var(--sep); overflow-x: auto; scrollbar-width: none; }
.ptabs a { padding: 13px 14px; font-size: 14px; color: var(--dim); border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.ptabs a:hover { color: var(--text); }
.ptabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.pcom { display: flex; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--sep); }
.pcom-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.pcom-h .icon-sm { margin-left: auto; }
.pcom .text { font-size: 14px; color: var(--sub); line-height: 1.55; }

/* ---------- drag & drop upload ---------- */
.drop { display: flex; gap: 16px; align-items: center; padding: 16px; border: 2px dashed rgba(255,255,255,.14); border-radius: 14px; cursor: pointer; transition: border-color .2s, background .2s; background-size: cover; background-position: center; }
.drop:hover, .drop.over { border-color: var(--accent); background-color: var(--accent-soft); }
.drop.busy { opacity: .5; pointer-events: none; }
.drop b { display: block; font-size: 14px; }
.drop span { font-size: 12.5px; color: var(--dim); }
.drop .avatar.xl { width: 72px; height: 72px; font-size: 28px; border-radius: 20px; border: 0; box-shadow: none; }
.drop.banner { min-height: 110px; justify-content: center; text-align: center; }
.drop.banner > div { padding: 8px 14px; border-radius: 10px; background: rgba(10,10,14,.55); }

/* ---------- support tickets ---------- */
.tab-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex: none; }
.dot { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.tchat { position: relative; }
.tmsgs { height: min(62vh, 620px); overflow-y: auto; padding: 36px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.tmsg { display: flex; flex: none; gap: 10px; align-items: flex-end; max-width: 82%; width: fit-content; }
.tmsg .bub { min-width: 0; }
.tmsg .bub { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: rgba(255,255,255,.06); }
.tmsg .who { display: flex; gap: 8px; align-items: center; font-size: 12.5px; margin-bottom: 3px; }
.tmsg .who > span:last-child { color: var(--faint); }
.tmsg .text { font-size: 14px; color: var(--text); line-height: 1.5; word-break: break-word; }
.tmsg.staff .bub { background: rgba(255,31,143,.12); box-shadow: inset 0 0 0 1px rgba(255,31,143,.25); }
.tmsg.me { margin-left: auto; flex-direction: row-reverse; }
.tmsg.me .bub { border-radius: 16px 16px 4px 16px; background: rgba(255,31,143,.22); }
.tmsg.sys { flex: none; align-self: center; max-width: none; font-size: 12px; color: var(--dim); padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.04); }
.tsay { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--sep); align-items: flex-end; }
.tsay textarea { flex: 1; min-height: 46px; max-height: 160px; resize: vertical; }
.tsay .btn { height: 46px; width: 52px; padding: 0; }
.live-hint { position: absolute; top: 10px; right: 14px; display: flex; gap: 6px; align-items: center; font-size: 11px; color: var(--ok); font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }
.live-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
@media (max-width: 760px) {
  .pmain { margin-top: -40px; padding: 0 16px 16px; }
  .avatar.xl { width: 84px; height: 84px; font-size: 32px; }
  .pinfo { padding-top: 0; }
  .tmsg { max-width: 100%; }
}
.drop > svg { width: 30px; height: 30px; stroke: var(--accent-hi); flex: none; }
