/* EZURAT – sötét, kék, enyhe üveghatás. Kevés, olcsó effekt a jó FPS-ért. */
:root {
  --bg0: #03060c;
  --bg1: #060a13;
  --bg2: #09101d;
  --bg3: #0d1526;
  --bg4: #142036;
  --line: rgba(120, 160, 255, 0.08);
  --line2: rgba(120, 160, 255, 0.15);
  --text: #dbe5f8;
  --text2: #9fb0d0;
  --muted: #66789c;
  --accent: #3876ee;
  --accent2: #5590ff;
  --accent-soft: rgba(56, 118, 238, 0.15);
  --speak: #4aa8ff;
  --speak-glow: rgba(74, 168, 255, 0.45);
  --ok: #34c584;
  --danger: #ec5468;
  --live: #e0434b;
  --glass: rgba(12, 20, 37, 0.62);
  --glass-strong: rgba(8, 14, 27, 0.9);
  --blur: blur(14px) saturate(1.15);
  --r: 10px;
  --r-s: 7px;
  --font: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --t: 0.14s ease;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
.no-glass { --glass: #0b1323; --glass-strong: #09101e; --blur: none; }
.reduce-motion * { transition: none !important; animation: none !important; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg0); color: var(--text); font: 14px/1.4 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--bg4); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
h1, h2, h3, h4 { margin: 0 0 0.6em; font-weight: 650; }
h2 { font-size: 19px; }
h3 { font-size: 15px; margin-top: 1.2em; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.xs { font-size: 12px; }
.b { font-weight: 600; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: flex-end; }
.row.center-v, .center-v { align-items: center; }
.row.end { justify-content: flex-end; }
.row.wrap { flex-wrap: wrap; }
.gap { gap: 10px; }
.col { display: flex; flex-direction: column; }
.gap-s { gap: 6px; }
.center { display: grid; place-items: center; height: 100%; padding: 20px; text-align: center; }
.center-t { text-align: center; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }
.scroll { overflow-y: auto; overscroll-behavior: contain; }
.scroll::-webkit-scrollbar { width: 8px; }
.scroll::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
.scroll::-webkit-scrollbar-track { background: transparent; }

.glass { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line2); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35); }
.glass-lite { background: rgba(26, 42, 69, 0.45); border: 1px solid var(--line); border-radius: var(--r); }

/* ---------- gombok, mezők ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: var(--r-s); font-weight: 600; background: var(--bg4); border: 1px solid var(--line2); transition: background var(--t), border-color var(--t), transform var(--t); white-space: nowrap; }
.btn:hover { background: #22365a; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.primary { background: linear-gradient(180deg, #4586fa, #346fe0); border-color: rgba(150, 190, 255, 0.35); color: #fff; }
.btn.primary:hover { background: linear-gradient(180deg, #5390ff, #3c79ec); }
.btn.ghost { background: rgba(255, 255, 255, 0.03); }
.btn.ghost:hover { background: rgba(120, 160, 255, 0.10); }
.btn.danger { background: #c8394d; border-color: rgba(255, 140, 160, 0.3); color: #fff; }
.btn.danger.ghost { background: transparent; color: var(--danger); border-color: rgba(239, 90, 111, 0.35); }
.btn.danger.ghost:hover { background: rgba(239, 90, 111, 0.12); }
.btn.sm { height: 30px; padding: 0 11px; font-size: 13px; }
.btn.lg { height: 44px; padding: 0 26px; font-size: 15px; }
.btn.block { width: 100%; }
.btn .ic { width: 16px; height: 16px; }
.btn.steam { background: linear-gradient(180deg, #1f2c42, #172235); color: #e6eefc; }
.btn.steam:hover { background: linear-gradient(180deg, #27385a, #1c2a44); text-decoration: none; }
.btn.steam .ic { width: 20px; height: 20px; }

.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-s); color: var(--text2); transition: background var(--t), color var(--t); flex: none; }
.icon-btn:hover { background: rgba(120, 160, 255, 0.12); color: var(--text); }
.icon-btn.on { color: var(--accent2); background: var(--accent-soft); }
.icon-btn.off { color: var(--danger); }
.icon-btn.danger { color: var(--danger); }
.icon-btn.danger:hover { background: rgba(239, 90, 111, 0.14); }
.icon-btn.sm { width: 28px; height: 28px; }
.icon-btn.xs { width: 22px; height: 22px; }
.icon-btn.xs .ic { width: 14px; height: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.03em; }
.field > span i { text-transform: none; font-weight: 400; }
.input { height: 38px; padding: 0 12px; border-radius: var(--r-s); background: var(--bg1); border: 1px solid var(--line2); outline: none; transition: border-color var(--t), box-shadow var(--t); width: 100%; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 124, 245, 0.18); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 16px, calc(100% - 12px) 16px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
select.input option { background: var(--bg2); }
.color { width: 52px; height: 38px; border: 1px solid var(--line2); border-radius: var(--r-s); background: var(--bg1); padding: 3px; cursor: pointer; }
.range { width: 100%; accent-color: var(--accent); cursor: pointer; }
.range.sm { width: 90px; height: 16px; }
.form-err { color: var(--danger); min-height: 18px; font-size: 13px; margin: -4px 0 8px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch { appearance: none; width: 40px; height: 22px; border-radius: 22px; background: #2a3a58; position: relative; cursor: pointer; transition: background var(--t); flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--t); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }
.check-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-row input { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- avatarok ---------- */
.av { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--bg4); }
.av-ph { background: hsl(var(--h) 55% 38%); color: #fff; font-weight: 700; font-size: 12px; }
.av.xs { width: 22px; height: 22px; font-size: 9px; }
.av.sm { width: 32px; height: 32px; }
.av.md { width: 40px; height: 40px; font-size: 14px; }
.av.lg { width: 76px; height: 76px; font-size: 24px; }
.av.xl { width: 88px; height: 88px; font-size: 28px; }
.av-ring { border-radius: 50%; display: inline-grid; flex: none; box-shadow: 0 0 0 2px transparent; transition: box-shadow 0.1s; }
/* Beszéd jelző: kék gyűrű + ragyogás + kék név */
.av-ring.speaking, .speaking > .av-ring { box-shadow: 0 0 0 2px var(--speak), 0 0 10px 1px var(--speak-glow); }
.speaking > .av-ring.big { box-shadow: 0 0 0 3px var(--speak), 0 0 22px 2px var(--speak-glow); }
.vm.speaking .vm-name { color: var(--speak); }
.tile.speaking { border-color: rgba(74, 168, 255, 0.55); box-shadow: 0 0 0 1px rgba(74, 168, 255, 0.25), 0 6px 26px rgba(74, 168, 255, 0.12); }
.tile-state { font-size: 11.5px; color: var(--muted); height: 15px; margin-top: -4px; }
.tile-state .talk { display: none; color: var(--speak); font-weight: 600; }
.tile.speaking .tile-state .talk { display: inline; }
.tile.speaking .tile-state .idle { display: none; }

/* ---------- bejelentkezés ---------- */
.auth-bg { min-height: 100vh; display: flex; padding: 20px; background: radial-gradient(1200px 600px at 20% 10%, #0c1c3a 0%, transparent 60%), radial-gradient(900px 500px at 90% 90%, #0a1832 0%, transparent 60%), var(--bg0); overflow-y: auto; height: 100vh; }
.auth-card { margin: auto; width: 100%; max-width: 400px; border-radius: 16px; padding: 28px; }
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.brand h1 { margin: 0; font-size: 24px; }
.brand p { margin: 0; }
.logo { width: 50px; height: 50px; display: block; flex: none; filter: drop-shadow(0 6px 16px rgba(59, 124, 245, 0.35)); }
.logo.big { width: 72px; height: 72px; margin: 0 auto 14px; }
.tabs { display: flex; background: var(--bg1); border-radius: var(--r-s); padding: 4px; margin-bottom: 18px; border: 1px solid var(--line); }
.tab { flex: 1; height: 34px; border-radius: 6px; color: var(--muted); font-weight: 600; transition: background var(--t), color var(--t); }
.tab.on { background: var(--bg4); color: var(--text); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 16px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line2); }

/* ---------- fő elrendezés ---------- */
#app { display: grid; grid-template-columns: 72px 248px minmax(0, 1fr) 236px; height: 100vh; background: radial-gradient(1400px 700px at 70% -10%, #0a1730 0%, transparent 55%), var(--bg0); }
#app.home-mode { grid-template-columns: 72px 248px minmax(0, 1fr) 0 !important; }
#app.home-mode #members { display: none; }
#app.hide-members { grid-template-columns: 72px 248px minmax(0, 1fr) 0; }
#app.hide-members #members { display: none; }
.panel { background: rgba(7, 12, 23, 0.85); border-right: 1px solid var(--line); }

/* szerver sáv */
#serverbar { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; overflow-y: auto; scrollbar-width: none; background: var(--bg0); border-right: 1px solid var(--line); }
#serverbar::-webkit-scrollbar { display: none; }
.srv-wrap { position: relative; width: 100%; display: flex; justify-content: center; flex: none; }
.srv { position: relative; width: 46px; height: 46px; border-radius: 14px; background: var(--bg3); display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--text2); transition: background var(--t), color var(--t), box-shadow var(--t), transform 0.18s var(--ease); border: 1px solid var(--line); }
.srv img { width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }
.srv:hover { background: var(--bg4); color: var(--text); transform: translateY(-1px); }
.srv-wrap.active .srv { box-shadow: 0 0 0 2px var(--bg0), 0 0 0 4px var(--accent); color: #fff; background: #183058; }
.srv-wrap.unread .srv::after { content: ''; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent2); border: 2px solid var(--bg0); }
.srv.home { color: var(--accent2); }
.srv.home .ic { width: 22px; height: 22px; }
.srv-wrap.active .srv.home { background: var(--accent); color: #fff; }
.srv .badge { position: absolute; bottom: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg0); }
.srv.add { color: var(--accent2); background: transparent; border-style: dashed; border-color: var(--line2); }
.srv.add:hover { background: var(--accent-soft); color: #fff; }
.srv.dl { color: var(--muted); background: transparent; }
.srv.dl:hover { color: var(--text); background: var(--bg3); text-decoration: none; }
.srv-voice { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ok); color: #03110a; display: grid; place-items: center; border: 3px solid var(--bg0); }
.srv-voice .ic { width: 11px; height: 11px; }
.srv-sep { width: 32px; height: 2px; background: var(--line2); border-radius: 2px; flex: none; }

/* csatorna lista */
#sidebar { display: flex; flex-direction: column; min-height: 0; }
#side-head { height: 52px; flex: none; border-bottom: 1px solid var(--line); display: flex; }
.side-title { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px; font-weight: 700; font-size: 15px; min-width: 0; }
.side-title.hov:hover { background: rgba(120, 160, 255, 0.06); }
#side-list { flex: 1; padding: 10px 8px; }
.empty-side { padding: 30px 14px; text-align: center; }
.cat { display: flex; align-items: center; margin-top: 14px; padding-right: 4px; }
.cat:first-child { margin-top: 2px; }
.cat-name { flex: 1; display: flex; align-items: center; gap: 2px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 4px 2px; min-width: 0; }
.cat-name:hover { color: var(--text2); }
.cat-name .ic { width: 12px; height: 12px; transition: transform var(--t); }
.cat-body.collapsed { }
.cat.is-col .cat-name .ic { transform: rotate(-90deg); }
.cat-name.static { cursor: default; padding-left: 8px; }
.cat .icon-btn { opacity: 0; }
.cat:hover .icon-btn { opacity: 1; }
.ch { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 8px; border-radius: var(--r-s); color: var(--muted); cursor: pointer; margin: 1px 0; transition: background var(--t), color var(--t); }
.ch .ic { width: 17px; height: 17px; opacity: 0.8; }
.ch .ell { flex: 1; }
.ch:hover { background: rgba(120, 160, 255, 0.07); color: var(--text2); }
.ch.active { background: rgba(80, 130, 255, 0.16); color: var(--text); }
.ch.unread { color: var(--text); font-weight: 600; }
.ch.connected { color: var(--ok); }
.ch .ch-gear { opacity: 0; }
.ch:hover .ch-gear, .ch.active .ch-gear { opacity: 1; }
.limit { font-size: 11px; background: var(--bg1); padding: 1px 6px; border-radius: 8px; color: var(--muted); }
.vlist { padding: 2px 0 6px 26px; }
.vm { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 6px; border-radius: 6px; color: var(--text2); font-size: 13px; cursor: pointer; }
.vm:hover { background: rgba(120, 160, 255, 0.07); }
.vm .ell { flex: 1; }
.vm .st { color: var(--danger); display: grid; }
.vm .st .ic { width: 14px; height: 14px; }
.live { background: var(--live); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; padding: 1px 6px; border-radius: 4px; flex: none; }
.side-add { display: flex; align-items: center; gap: 7px; width: 100%; padding: 8px; margin-top: 10px; border-radius: var(--r-s); color: var(--muted); font-size: 13px; }
.side-add:hover { color: var(--text2); background: rgba(120, 160, 255, 0.06); }

/* hang sáv + felhasználó panel */
.voicebar { flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 12px; border-top: 1px solid var(--line); background: rgba(16, 28, 50, 0.9); }
.vb-info { flex: 1; min-width: 0; cursor: pointer; }
.vb-status { display: flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; font-size: 13px; }
.vb-status .ic { width: 15px; height: 15px; }
.vb-where { color: var(--muted); font-size: 12px; }
.vb-info:hover .vb-where { color: var(--text2); text-decoration: underline; }
.vb-btns { display: flex; gap: 2px; }
#userpanel { flex: none; height: 56px; display: flex; align-items: center; gap: 2px; padding: 0 8px; background: var(--bg0); border-top: 1px solid var(--line); }
.up-me { flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 4px; border-radius: var(--r-s); cursor: pointer; }
.up-me:hover { background: rgba(120, 160, 255, 0.08); }
.up-names { min-width: 0; line-height: 1.25; }

/* fő terület */
#main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: rgba(6, 11, 21, 0.6); }
.main-head { height: 52px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--line); background: rgba(8, 13, 25, 0.7); }
.main-head > .ic { color: var(--muted); }
.main-head h3 { margin: 0; font-size: 15px; }
.welcome { border-radius: 16px; padding: 34px 40px; max-width: 420px; }

/* üzenetek */
#messages { flex: 1; padding: 16px 0 8px; }
.chan-start { padding: 20px 18px 12px; }
.big-hash { width: 60px; height: 60px; border-radius: 50%; background: var(--bg4); display: grid; place-items: center; margin-bottom: 10px; }
.big-hash .ic { width: 32px; height: 32px; }
.msg { position: relative; display: flex; gap: 14px; padding: 6px 48px 2px 18px; margin-top: 10px; }
.msg.cont { margin-top: 0; padding-top: 1px; }
.msg:hover { background: rgba(120, 160, 255, 0.04); }
.msg-av { cursor: pointer; flex: none; }
.msg.cont .msg-time-side { width: 40px; flex: none; font-size: 10.5px; color: transparent; text-align: right; padding-top: 3px; }
.msg.cont:hover .msg-time-side { color: var(--muted); }
.msg-body { min-width: 0; flex: 1; }
.msg-head { display: flex; align-items: baseline; gap: 8px; }
.msg-name { font-weight: 650; cursor: pointer; }
.msg-name:hover { text-decoration: underline; }
.msg-time { font-size: 11.5px; color: var(--muted); }
.msg-text { color: #cfdaf0; word-wrap: break-word; overflow-wrap: anywhere; }
.msg-del { position: absolute; right: 14px; top: 4px; opacity: 0; }
.msg:hover .msg-del { opacity: 1; }
.composer { flex: none; padding: 0 16px 18px; }
.composer textarea { width: 100%; resize: none; min-height: 46px; max-height: 200px; padding: 12px 14px; border-radius: var(--r); background: var(--bg3); border: 1px solid var(--line2); outline: none; line-height: 1.4; }
.composer textarea:focus { border-color: rgba(91, 149, 255, 0.5); }
.composer textarea:disabled { opacity: 0.6; cursor: not-allowed; }

/* hangcsatorna nézet */
.voice-view { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 18px; position: relative; padding-bottom: 96px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tiles.compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tiles.compact .tile { padding: 12px; }
.tiles.compact .av.lg { width: 48px; height: 48px; font-size: 16px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 14px 14px; border-radius: 14px; background: rgba(15, 25, 45, 0.6); border: 1px solid var(--line); transition: border-color 0.12s, box-shadow 0.12s, transform 0.18s var(--ease); }
.tile:hover { transform: translateY(-2px); }
.tile.streaming { border-color: rgba(229, 72, 77, 0.35); }
.tile-name { display: flex; align-items: center; gap: 6px; font-weight: 600; max-width: 100%; }
.tile-name .ic { width: 15px; height: 15px; color: var(--danger); }
.tile-live { position: absolute; top: 10px; right: 10px; }
.tile-btns:empty { display: none; }
.tile-vol { opacity: 0; transition: opacity var(--t); }
.tile:hover .tile-vol { opacity: 1; }
.join-box { display: grid; place-items: center; padding: 20px; }
.voice-ctrl { position: sticky; bottom: 0; margin: auto auto 0; display: flex; gap: 10px; padding: 10px 14px; border-radius: 40px; }
.round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg4); color: var(--text); transition: background var(--t); }
.round:hover { background: #26395c; }
.round.off { background: rgba(239, 90, 111, 0.18); color: var(--danger); }
.round.on { background: var(--accent); color: #fff; }
.round.danger { background: #c8394d; color: #fff; }
.round.danger:hover { background: #d94a5e; }
.round .ic { width: 21px; height: 21px; }

/* élő adás színpad */
.stage { display: grid; gap: 12px; }
.stage.n2 { grid-template-columns: 1fr 1fr; }
.slot { position: relative; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; max-height: calc(100vh - 290px); width: 100%; border: 1px solid var(--line2); }
.stage.n1 .slot { margin: 0 auto; }
.stream-video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.slot-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 22px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.75)); opacity: 0; transition: opacity var(--t); }
.slot:hover .slot-bar, .slot:fullscreen .slot-bar:hover { opacity: 1; }
.slot-bar .icon-btn { color: #fff; }
.slot:fullscreen { max-height: none; border-radius: 0; border: 0; }

/* taglista */
#members { padding: 8px; border-left: 1px solid var(--line); border-right: 0; }
.mem-group { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 14px 8px 6px; }
.mem { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: var(--r-s); cursor: pointer; }
.mem:hover { background: rgba(120, 160, 255, 0.07); }
.mem.offline { opacity: 0.45; }
.av-wrap { position: relative; flex: none; display: inline-grid; }
.dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #56627a; border: 3px solid var(--bg1); }
.dot.on { background: var(--ok); }
.crown { color: #f3c64d; font-size: 12px; }

#conn { position: fixed; top: 0; left: 50%; transform: translate(-50%, -110%); background: #b8862b; color: #fff; padding: 6px 16px; border-radius: 0 0 10px 10px; font-weight: 600; font-size: 13px; transition: transform 0.2s; z-index: 50; }
#conn.show { transform: translate(-50%, 0); }

/* ---------- modális, menü, toast ---------- */
#modal-root .modal-wrap { position: fixed; inset: 0; background: rgba(3, 6, 14, 0.66); display: grid; place-items: center; padding: 20px; z-index: 100; animation: fade 0.12s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 40px); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; background: var(--glass-strong); }
.modal.w-sm { max-width: 440px; }
.modal.w-md { max-width: 560px; }
.modal.w-lg { max-width: 860px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 10px 18px 18px; overflow-y: auto; }
.modal-body p { margin-top: 0; }
.modal.settings { max-width: 1040px; height: min(760px, calc(100vh - 40px)); }
.modal.settings .modal-body { padding: 0; height: 100%; overflow: hidden; }
.settings-wrap { display: flex; height: 100%; }
.settings-nav { width: 220px; flex: none; padding: 20px 10px; background: rgba(8, 14, 27, 0.5); border-right: 1px solid var(--line); overflow-y: auto; }
.nav-h { font-size: 11.5px; font-weight: 700; color: var(--muted); padding: 0 10px 8px; letter-spacing: 0.04em; }
.side-tabs { display: flex; flex-direction: column; gap: 2px; }
.stab { text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--text2); font-weight: 500; }
.stab:hover { background: rgba(120, 160, 255, 0.08); color: var(--text); }
.stab.on { background: rgba(80, 130, 255, 0.18); color: var(--text); }
.stab.danger { color: var(--danger); }
.settings-main { flex: 1; position: relative; min-width: 0; overflow-y: auto; }
.settings-content { padding: 26px 34px 34px; max-width: 760px; }
.settings-x { position: absolute; top: 16px; right: 16px; }
.menu-sep { height: 1px; background: var(--line2); margin: 6px 4px; }

.pop-menu { position: fixed; z-index: 120; min-width: 210px; max-width: 300px; padding: 6px; border-radius: 10px; background: var(--glass-strong); }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--text2); font-size: 13.5px; }
.menu-item:hover { background: var(--accent); color: #fff; }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover { background: var(--danger); color: #fff; }
.menu-item .ic { width: 16px; height: 16px; }

#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 200; pointer-events: none; }
.toast { background: var(--bg4); border: 1px solid var(--line2); padding: 9px 16px; border-radius: 9px; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4); font-weight: 500; transition: opacity 0.3s, transform 0.3s; }
.toast.error { background: #3b1620; border-color: rgba(239, 90, 111, 0.4); }
.toast.out { opacity: 0; transform: translateY(6px); }

/* modal tartalmak */
.choice .box { padding: 4px 0; }
.choice h4 { margin-bottom: 12px; }
.icon-pick { width: 64px; height: 64px; border-radius: 50%; border: 2px dashed var(--line2); display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); flex: none; overflow: hidden; margin-bottom: 14px; }
.icon-pick.big { width: 90px; height: 90px; margin: 0; }
.icon-pick:hover { border-color: var(--accent); color: var(--text); }
.icon-pick img { width: 100%; height: 100%; object-fit: cover; }
.copy-box { display: flex; gap: 8px; margin-bottom: 8px; }
.invite-card { text-align: center; }
.srv-big { width: 80px; height: 80px; border-radius: 22px; background: var(--accent); display: grid; place-items: center; margin: 0 auto 12px; font-weight: 800; font-size: 26px; object-fit: cover; }
.type-pick { display: grid; gap: 8px; margin-bottom: 16px; }
.type-opt { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r); background: var(--bg1); border: 1px solid var(--line); cursor: pointer; }
.type-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.type-opt input { accent-color: var(--accent); }
.roles-grid { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.role-list { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 0; }
.role-list .btn { margin-bottom: 8px; }
.role-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; text-align: left; color: var(--text2); }
.role-item:hover { background: rgba(120, 160, 255, 0.08); }
.role-item.on { background: rgba(80, 130, 255, 0.18); color: var(--text); }
.role-item .mark { color: var(--accent2); margin-left: auto; }
.rdot { width: 11px; height: 11px; border-radius: 50%; flex: none; display: inline-block; }
.perm-list { margin-bottom: 14px; }
.sticky-bottom { position: sticky; bottom: -34px; padding: 12px 0 34px; margin-bottom: -34px; background: #0f192c; border-top: 1px solid var(--line); }
.tri { display: flex; border-radius: 7px; overflow: hidden; border: 1px solid var(--line2); flex: none; }
.tri button { width: 34px; height: 28px; color: var(--muted); font-weight: 700; }
.tri button + button { border-left: 1px solid var(--line2); }
.tri .t-deny.on { background: #c8394d; color: #fff; }
.tri .t-mid.on { background: var(--bg4); color: var(--text); }
.tri .t-allow.on { background: #2a9c6b; color: #fff; }
.mlist { margin-top: 12px; display: flex; flex-direction: column; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; background: var(--bg1); border: 1px solid var(--line); padding: 1px 8px; border-radius: 10px; }
.code { font-size: 13px; }
.profile-card { overflow: hidden; margin-bottom: 14px; }
.pc-banner { height: 70px; background: linear-gradient(120deg, #1f4fae, #173872 60%, #12264a); }
.pc-body { display: flex; align-items: flex-end; gap: 16px; padding: 0 18px 16px; margin-top: -36px; }
.pc-av { position: relative; border-radius: 50%; border: 5px solid var(--bg2); display: grid; }
.pc-edit { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); font-size: 11px; font-weight: 700; opacity: 0; transition: opacity var(--t); }
.pc-av:hover .pc-edit { opacity: 1; }
.big-t { font-size: 18px; }
.meter { position: relative; height: 10px; border-radius: 6px; background: var(--bg1); border: 1px solid var(--line); overflow: hidden; }
.meter-bar { height: 100%; width: 0; background: #47577a; transition: width 0.06s linear; }
.meter-bar.hot { background: var(--ok); }
.meter-th { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #f3c64d; }
.perf-note { padding: 14px 18px; margin-top: 18px; }
.perf-note ul { margin: 8px 0 0; padding-left: 18px; color: var(--text2); }
.share-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.share-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; border-radius: 12px; background: var(--bg1); border: 1px solid var(--line2); }
.share-opt .ic { width: 30px; height: 30px; color: var(--accent2); }
.share-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.src { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 10px; background: var(--bg1); border: 1px solid var(--line); text-align: left; }
.src:hover { border-color: var(--accent); background: var(--accent-soft); }
.src img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; border-radius: 6px; }

/* ---------- kisebb képernyő ---------- */
@media (max-width: 1100px) { #app, #app.hide-members { grid-template-columns: 72px 236px minmax(0, 1fr) 0; } #members { display: none; } }
@media (max-width: 720px) {
  #app, #app.hide-members { grid-template-columns: 64px 190px minmax(0, 1fr) 0; }
  .settings-nav { width: 150px; }
  .settings-content { padding: 20px; }
  .roles-grid { grid-template-columns: 1fr; }
  .stage.n2 { grid-template-columns: 1fr; }
}

/* ---------- közvetlen üzenetek, barátok ---------- */
.ch.big { height: 40px; font-weight: 600; color: var(--text2); }
.ch.big .ic { width: 20px; height: 20px; }
.count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.dm-row { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 8px; border-radius: var(--r-s); color: var(--muted); cursor: pointer; margin: 1px 0; transition: background var(--t), color var(--t); }
.dm-row:hover { background: rgba(120, 160, 255, 0.07); color: var(--text2); }
.dm-row.active { background: rgba(80, 130, 255, 0.16); color: var(--text); }
.dm-row.unread { color: var(--text); font-weight: 600; }
.dm-row .ell { flex: 1; }
.unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent2); }
.pad { padding: 8px 10px; }
.vsep { width: 1px; height: 24px; background: var(--line2); margin: 0 8px; }
.htab { height: 30px; padding: 0 12px; border-radius: 6px; color: var(--text2); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: background var(--t), color var(--t); }
.htab:hover { background: rgba(120, 160, 255, 0.08); color: var(--text); }
.htab.on { background: rgba(80, 130, 255, 0.18); color: var(--text); }
.htab.add { background: var(--accent); color: #fff; margin-left: 6px; }
.htab.add.on { background: transparent; color: var(--accent2); }
.friends { flex: 1; padding: 16px 24px; }
.list-h { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 6px 0 8px; }
.friend-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-top: 1px solid var(--line); border-radius: 8px; transition: background var(--t); }
.friend-row:hover { background: rgba(120, 160, 255, 0.06); }
.round-s { width: 36px; height: 36px; border-radius: 50%; background: var(--bg3); }
.round-s.ok { color: var(--ok); }
.round-s.ok:hover { background: rgba(52, 197, 132, 0.15); }
.empty { text-align: center; padding: 60px 20px; }
.add-friend { padding: 20px 22px; max-width: 720px; }
.add-row { display: flex; align-items: center; gap: 8px; background: var(--bg1); border: 1px solid var(--line2); border-radius: var(--r); padding: 6px 6px 6px 12px; }
.add-row:focus-within { border-color: var(--accent); }
.add-row .input { border: 0; background: transparent; box-shadow: none !important; padding: 0 4px; }
.at { color: var(--muted); font-weight: 700; }
.my-id { margin-top: 14px; display: flex; align-items: center; gap: 10px; color: var(--text2); font-size: 13px; }
.hint { font-size: 12.5px; color: var(--muted); margin: -6px 0 12px; }
.check-row.plain { border: 0; padding: 4px 0 8px; font-size: 12.5px; color: var(--text2); align-items: flex-start; }
.check-row.plain input { margin-top: 2px; flex: none; }
.dl-btn { margin-top: 10px; }
.auth-foot { margin-top: 16px; text-align: center; font-size: 12px; color: var(--muted); }
.auth-foot a { color: var(--text2); }
.auth-foot div { margin-top: 4px; font-size: 11px; }
.danger-zone { margin-top: 30px; padding: 16px 18px; border: 1px solid rgba(236, 84, 104, 0.3); border-radius: var(--r); background: rgba(236, 84, 104, 0.05); }
.danger-zone h3 { margin-top: 0; color: var(--danger); }
.about { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 14px; }
.mem-group { display: flex; align-items: center; gap: 6px; }
#serverbar .grow { flex: 1; }

/* ---------- animációk (csak transform/opacity → olcsó, GPU) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(0.985); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-6px); } }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(0.97); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.enter { animation: fadeIn 0.18s ease both; }
.auth-card.enter { animation: rise 0.35s var(--ease) both; }
#side-list.enter { animation: slideIn 0.2s var(--ease) both; }
.modal { animation: rise 0.2s var(--ease) both; }
.pop-menu { animation: popIn 0.14s var(--ease) both; transform-origin: top left; }
.toast { animation: toastIn 0.2s var(--ease) both; }
.msg.new { animation: rise 0.22s var(--ease) both; }
.settings-content > * { animation: fadeIn 0.16s ease both; }
#main.enter .tile { animation: rise 0.24s var(--ease) both; }
#main.enter .friend-row { animation: slideIn 0.2s var(--ease) both; }
.btn:active, .icon-btn:active, .round:active { transform: scale(0.96); }
.voice-ctrl { animation: rise 0.25s var(--ease) both; }

/* ---------- profilkártya ---------- */
.pop-card { width: 300px; max-width: calc(100vw - 16px); padding: 0; overflow: hidden; border-radius: 14px; }
.pop-card .pc-banner { height: 64px; background: linear-gradient(120deg, #1d4aa6, #14306a 60%, #0d1f45); }
.pcard-body { padding: 0 16px 16px; }
.pcard-av { margin-top: -40px; margin-bottom: 8px; }
.pcard-av .av { border: 5px solid #0a111f; box-sizing: content-box; }
.dot.big { width: 18px; height: 18px; right: 2px; bottom: 2px; border-width: 4px; border-color: #0a111f; }
.pcard-name { font-size: 18px; font-weight: 700; line-height: 1.2; }
.pcard-tags { margin: 8px 0 2px; }
.pcard-tags:empty { display: none; }
.chip .ic { width: 12px; height: 12px; }
.chip.owner { color: #f3c64d; border-color: rgba(243, 198, 77, 0.3); }
.pcard-body .list-h { margin-top: 12px; }
.pcard-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 10px; }
.pcard-actions:has(> :only-child) { justify-content: flex-end; }
.pcard-msg { display: flex; align-items: center; gap: 4px; background: var(--bg1); border: 1px solid var(--line2); border-radius: var(--r); padding: 3px 3px 3px 4px; margin-bottom: 6px; }
.pcard-msg:focus-within { border-color: var(--accent); }
.pcard-msg .input { border: 0; background: transparent; height: 34px; box-shadow: none !important; }
.pcard-body > .btn.block { margin-top: 14px; }

/* ---------- moderálás / helyi némítás jelzők ---------- */
.vm .st.mod, .tile-name .st.mod { color: #ff4d61; }
.st.mod .ic { filter: drop-shadow(0 0 3px rgba(255, 77, 97, 0.6)); }
.vm .st.local, .tile-name .st.local { color: var(--muted); }
.tile-name .st { display: inline-grid; }
.tile-name { cursor: pointer; }

/* ---------- üzenetkérelmek ---------- */
.req-banner { display: flex; align-items: center; gap: 10px; margin: 10px 16px 0; padding: 12px 14px; border-radius: var(--r); background: rgba(56, 118, 238, 0.1); border: 1px solid rgba(85, 144, 255, 0.28); }
.req-banner > div { flex: 1; }
.req-banner.info { background: rgba(120, 160, 255, 0.05); border-color: var(--line2); }
.role-edit .req-banner { margin: 0 0 12px; }
.friend-row.clickable { cursor: pointer; }

/* ---------- rangok áthúzása ---------- */
.role-item { position: relative; }
.role-item .grip { color: var(--muted); font-size: 11px; letter-spacing: -2px; margin-right: 2px; cursor: grab; opacity: 0.5; }
.role-item.drag:hover .grip { opacity: 1; }
.role-item.dragging { opacity: 0.45; }
.role-item.over-top { box-shadow: inset 0 2px 0 var(--accent2); }
.role-item.over-bot { box-shadow: inset 0 -2px 0 var(--accent2); }
.role-item.locked { opacity: 0.6; }
.check-row.locked { opacity: 0.5; cursor: not-allowed; }
.menu-item.static { cursor: default; } .menu-item.static:hover { background: none; color: var(--text2); }

/* ---------- említések ---------- */
.mention { color: #9cc2ff; background: rgba(74, 140, 255, 0.16); padding: 0 4px; border-radius: 4px; font-weight: 600; cursor: pointer; }
.mention:hover { background: rgba(74, 140, 255, 0.3); }
.mention.me { color: #ffd479; background: rgba(255, 196, 64, 0.16); }
.chan-link { color: #9cc2ff; background: rgba(74, 140, 255, 0.12); padding: 0 4px; border-radius: 4px; cursor: pointer; font-weight: 600; }
.msg.mentioned { background: rgba(255, 196, 64, 0.06); box-shadow: inset 2px 0 0 #f0b93a; }
.msg.mentioned:hover { background: rgba(255, 196, 64, 0.09); }
.composer { position: relative; }
.mention-pop { position: absolute; left: 16px; right: 16px; bottom: calc(100% - 10px); padding: 6px; border-radius: 10px; display: none; z-index: 20; background: var(--glass-strong); }
.mention-pop.show { display: block; animation: popIn 0.12s var(--ease) both; }
.mention-pop .list-h { margin: 2px 6px 6px; }
.mention-pop .mi { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.mention-pop .mi.on, .mention-pop .mi:hover { background: rgba(80, 130, 255, 0.18); }
.mention-pop .mi .ic { width: 16px; height: 16px; color: var(--muted); }

/* ---------- gyorsgombok ---------- */
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.key-field { min-width: 190px; height: 36px; padding: 0 14px; border-radius: var(--r-s); background: var(--bg1); border: 1px dashed var(--line2); color: var(--text); font-weight: 600; font-family: inherit; transition: border-color var(--t), background var(--t); }
.key-field:hover { border-color: var(--accent); }
.key-field.rec { border-style: solid; border-color: var(--accent2); background: var(--accent-soft); color: var(--accent2); animation: pulse 1s ease infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 4px rgba(85, 144, 255, 0.15); } }
.key-note { padding: 10px 14px; border-radius: var(--r); background: rgba(255, 196, 64, 0.07); border: 1px solid rgba(255, 196, 64, 0.25); font-size: 13px; margin-bottom: 8px; }
.key-note.ok { background: rgba(52, 197, 132, 0.07); border-color: rgba(52, 197, 132, 0.3); }
.type-pick.two { grid-template-columns: 1fr 1fr; }
.ptt-badge { display: inline-block; font-size: 10px; font-weight: 800; padding: 0 5px; border-radius: 4px; background: var(--bg4); color: var(--muted); }
.ptt-badge.on { background: var(--speak); color: #04111f; }

/* ---------- áthelyezés húzással ---------- */
.vm[draggable="true"] { cursor: grab; }
.ch.drop { background: rgba(74, 168, 255, 0.18); box-shadow: inset 0 0 0 1px var(--speak); color: var(--text); }

/* ---------- zene ---------- */
.note-ic { color: var(--muted); font-size: 14px; }
.note-ic.on, .note-btn.on { color: var(--speak); animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px); } }
.note-btn { font-size: 14px; font-weight: 700; }
.ic-txt { width: 16px; text-align: center; font-weight: 700; }
#music-dock { position: fixed; right: 16px; bottom: 16px; width: 372px; padding: 8px; border-radius: 14px; z-index: 60; display: none; background: var(--glass-strong); }
#music-dock.show { display: block; animation: rise 0.25s var(--ease) both; }
#music-dock .yt-wrap { width: 356px; height: 200px; border-radius: 10px; overflow: hidden; background: #000; }
#music-dock iframe { display: block; }
.md-info { display: flex; align-items: center; gap: 8px; padding: 8px 4px 2px; font-weight: 600; font-size: 13px; }
.md-info .note { color: var(--speak); }
.md-ctrl { display: flex; align-items: center; gap: 2px; padding: 2px 0 0; }
.md-ctrl .icon-btn { font-size: 13px; }
.modal.w-xl { max-width: 980px; }
.dj-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.dj-title { font-size: 16px; font-weight: 700; min-height: 22px; margin-bottom: 10px; }
.dj-seek { display: flex; align-items: center; gap: 10px; }
.dj-btns { display: flex; justify-content: center; gap: 10px; margin: 14px 0; }
.dj-btns .round { font-size: 16px; }
.dj-btns .round.big { width: 58px; height: 58px; font-size: 20px; }
.dj-vol { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--text2); }
.dj-vol .range { flex: 1; }
.row-h { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.dj-queue { max-height: 260px; border: 1px solid var(--line); border-radius: var(--r); padding: 4px; }
.q-row, .pl-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 6px; cursor: pointer; font-size: 13.5px; }
.q-row:hover, .pl-row:hover { background: rgba(120, 160, 255, 0.07); }
.q-row.on, .pl-row.on { background: rgba(80, 130, 255, 0.16); color: var(--text); }
.q-n { width: 22px; text-align: center; color: var(--muted); font-size: 12px; }
.q-row.on .q-n { color: var(--speak); }
.pl-list { display: flex; flex-direction: column; gap: 2px; max-height: 200px; overflow-y: auto; }
.pl-detail { margin-top: 8px; }
.dj-grid .add-row { margin-top: 6px; }

.type-pick.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- csatolmányok ---------- */
.comp-row { display: flex; align-items: flex-end; gap: 6px; background: var(--bg3); border: 1px solid var(--line2); border-radius: var(--r); padding: 4px 4px 4px 6px; }
.comp-row:focus-within { border-color: rgba(91, 149, 255, 0.5); }
.comp-row textarea { border: 0 !important; background: transparent !important; padding: 9px 6px !important; min-height: 38px !important; }
.att-btn { width: 34px; height: 34px; margin-bottom: 2px; border-radius: 50%; background: var(--bg4); }
.att-pending { display: none; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.att-pending.show { display: flex; }
.att-chip { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--line2); max-width: 260px; animation: rise 0.18s var(--ease) both; }
.att-chip.err { border-color: rgba(236, 84, 104, 0.5); }
.att-chip img { width: 46px; height: 46px; object-fit: cover; border-radius: 7px; }
.att-ic { width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; background: var(--bg1); border-radius: 7px; }
.att-meta { min-width: 0; flex: 1; font-size: 13px; }
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.att-img { max-width: min(420px, 100%); max-height: 320px; border-radius: 10px; cursor: zoom-in; display: block; background: var(--bg2); border: 1px solid var(--line); }
.att-vid { max-width: min(480px, 100%); max-height: 320px; border-radius: 10px; background: #000; display: block; }
#main.drop-files { box-shadow: inset 0 0 0 2px var(--accent2); }
.modal.lightbox { max-width: 94vw; background: transparent; border: 0; box-shadow: none; }
.modal.lightbox .modal-body { padding: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.modal.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 10px; object-fit: contain; }
.lb-bar { display: flex; gap: 8px; }

/* ---------- több adás: max 4 osztott nézet + kép a képben ---------- */
.stage.n3, .stage.n4 { grid-template-columns: 1fr 1fr; }
.stage.n3 .slot, .stage.n4 .slot { max-height: calc((100vh - 300px) / 2); }
.stage.pip { display: block; position: relative; }
.stage.pip .slot:not(.mini) { margin: 0 auto; }
.stage.pip .slot.mini { position: absolute; right: 14px; bottom: 14px; width: 28%; min-width: 200px; max-height: none; z-index: 2; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6); border-color: var(--accent2); transition: transform 0.15s var(--ease); }
.stage.pip .slot.mini:hover { transform: scale(1.03); }
.stage.pip .slot.mini .slot-bar { padding-top: 10px; }

/* ---------- zene dokk sarkok + modern gombok ---------- */
#music-dock[data-corner="br"] { right: 16px; bottom: 16px; left: auto; top: auto; }
#music-dock[data-corner="bl"] { left: 88px; bottom: 16px; right: auto; top: auto; }
#music-dock[data-corner="tr"] { right: 16px; top: 64px; left: auto; bottom: auto; }
#music-dock[data-corner="tl"] { left: 88px; top: 64px; right: auto; bottom: auto; }
#music-dock.dragging { opacity: 0.85; transition: none; cursor: grabbing; }
.md-grip { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3; width: 44px; height: 18px; border-radius: 9px; background: rgba(0, 0, 0, 0.55); color: #fff; display: grid; place-items: center; cursor: grab; opacity: 0; transition: opacity var(--t); }
.md-grip .ic { width: 14px; height: 14px; transform: rotate(90deg); }
#music-dock:hover .md-grip { opacity: 1; }
.md-info .note .ic { width: 15px; height: 15px; }
.mc-group { display: flex; align-items: center; gap: 2px; background: rgba(255, 255, 255, 0.04); border-radius: 20px; padding: 2px; }
.mc { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--text2); transition: background var(--t), color var(--t), transform 0.1s; }
.mc .ic { width: 15px; height: 15px; }
.mc:hover { background: rgba(120, 160, 255, 0.14); color: #fff; }
.mc:active { transform: scale(0.92); }
.mc.main { width: 34px; height: 34px; background: linear-gradient(145deg, #5a97ff, #2f68d8); color: #fff; box-shadow: 0 3px 10px rgba(56, 118, 238, 0.4); }
.dj-btns { align-items: center; gap: 14px; margin: 18px 0; }
.djb { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--text2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line2); transition: background 0.15s, color 0.15s, transform 0.12s, box-shadow 0.15s; }
.djb .ic { width: 20px; height: 20px; }
.djb span { position: absolute; bottom: 5px; font-size: 8.5px; font-weight: 800; letter-spacing: 0.02em; color: var(--muted); }
.djb:hover { color: #fff; background: rgba(120, 160, 255, 0.14); border-color: rgba(120, 160, 255, 0.35); transform: translateY(-1px); }
.djb:active { transform: scale(0.94); }
.djb.play { width: 66px; height: 66px; border: 0; color: #fff; background: radial-gradient(circle at 30% 25%, #74a8ff, #2f68d8 70%); box-shadow: 0 8px 26px rgba(56, 118, 238, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.djb.play .ic { width: 28px; height: 28px; }
.djb.play:hover { box-shadow: 0 10px 32px rgba(56, 118, 238, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.djb.play.is-playing { animation: glow 2.4s ease-in-out infinite; }
.djb:disabled { opacity: 0.45; cursor: default; transform: none; }
@keyframes glow { 50% { box-shadow: 0 8px 34px rgba(74, 168, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); } }
.dj-seek .range { flex: 1; }
.pl-row .icon-btn .ic { width: 13px; height: 13px; }
.chip-x { width: 15px; height: 15px; margin-left: 2px; margin-right: -4px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--muted); }
.chip-x .ic { width: 10px; height: 10px; }
.chip-x:hover { background: var(--danger); color: #fff; }
.chip.add { cursor: pointer; padding: 1px 6px; color: var(--accent2); }
.chip.add .ic { width: 12px; height: 12px; }
.role-pick { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; padding: 4px; border: 1px solid var(--line2); border-radius: 8px; max-height: 160px; overflow-y: auto; }
.role-pick button { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; text-align: left; font-size: 13px; color: var(--text2); }
.role-pick button:hover { background: rgba(80, 130, 255, 0.18); color: var(--text); }
.lang-switch { position: fixed; top: 16px; right: 16px; display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line2); z-index: 5; }
.lang-switch button { padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.lang-switch button.on { background: var(--accent); color: #fff; }

/* ---------- zene: kicsi mód + tálca ---------- */
#music-dock[data-mini] { width: 216px; }
#music-dock[data-mini] .yt-wrap { width: 200px; height: 200px; }
#music-dock[data-mini] iframe { width: 200px !important; height: 200px !important; }
#music-dock[data-mini] .md-ctrl .range { display: none; }
#music-dock[data-mini] .mc-group .mc:not(.main):not([data-md="next"]) { display: none; }
#music-pill { position: fixed; z-index: 60; display: flex; align-items: center; gap: 8px; max-width: 280px; padding: 8px 14px; border-radius: 22px; background: var(--glass-strong); font-size: 13px; font-weight: 600; animation: rise 0.2s var(--ease) both; }
#music-pill .note { color: var(--speak); display: grid; }
#music-pill .note .ic { width: 15px; height: 15px; }
#music-pill[data-corner="br"] { right: 16px; bottom: 16px; }
#music-pill[data-corner="bl"] { left: 88px; bottom: 16px; }
#music-pill[data-corner="tr"] { right: 16px; top: 64px; }
#music-pill[data-corner="tl"] { left: 88px; top: 64px; }
#music-pill:hover { border-color: var(--accent2); }

/* ---------- állapot pöttyök ---------- */
.dot.st-online { background: var(--ok); }
.dot.st-idle { background: #f0b232; }
.dot.st-dnd { background: #ec5468; }
.dot.st-offline { background: #56627a; }
.pop-menu .menu-item .dot { position: static; border: 0; width: 10px; height: 10px; flex: none; }
.up-me .av-wrap { cursor: pointer; }
.up-me .av-wrap .dot { border-color: var(--bg0); }

/* ---------- értesítés számlálók ---------- */
.srv .badge { min-width: 20px; height: 20px; font-size: 11px; }
.count { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; flex: none; }
.count.soft { background: #ec5468; }

/* ---------- üzenet műveletek, formázás ---------- */
.msg-actions { position: absolute; right: 12px; top: -10px; display: none; gap: 2px; padding: 2px; border-radius: 8px; background: var(--bg3); border: 1px solid var(--line2); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); z-index: 2; }
.msg:hover .msg-actions, .bub-row:hover .msg-actions { display: flex; }
.msg-actions:empty { display: none !important; }
.spoiler { background: #1b2234; color: transparent; border-radius: 4px; padding: 0 3px; cursor: pointer; transition: background 0.15s; user-select: none; }
.spoiler * { visibility: hidden; }
.spoiler:hover { background: #242d44; }
.spoiler.shown { background: rgba(120, 160, 255, 0.12); color: inherit; cursor: text; user-select: text; }
.spoiler.shown * { visibility: visible; }
.msg-text u { text-underline-offset: 2px; }
.msg.blocked .msg-content { display: none; }
.msg.blocked.show-blocked .msg-content { display: block; opacity: 0.7; }
.msg.blocked.show-blocked .blocked-note { display: none; }
.blocked-note { color: var(--muted); font-size: 13px; font-style: italic; cursor: pointer; }
.flash { animation: flash 1.6s ease; }
@keyframes flash { 0%, 30% { background: rgba(255, 196, 64, 0.18); } }

/* ---------- beágyazások ---------- */
.embed { margin-top: 6px; max-width: 460px; padding: 10px 12px; border-radius: 8px; background: rgba(14, 23, 41, 0.75); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.embed.youtube { border-left-color: #e0434b; }
.emb-site { font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.emb-title { font-weight: 650; display: block; margin-bottom: 4px; }
.emb-desc { font-size: 13px; color: var(--text2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.emb-media { margin-top: 8px; border-radius: 6px; overflow: hidden; }
.emb-media img { max-width: 100%; max-height: 260px; display: block; border-radius: 6px; }
.emb-media.yt { aspect-ratio: 16 / 9; background: #000; }
.emb-media iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-thumb { width: 100%; height: 100%; background-size: cover; background-position: center; display: grid; place-items: center; }
.yt-btn { width: 64px; height: 44px; border-radius: 12px; background: rgba(224, 67, 75, 0.92); color: #fff; display: grid; place-items: center; transition: transform 0.15s; }
.yt-thumb:hover .yt-btn { transform: scale(1.08); }
.yt-btn .ic { width: 22px; height: 22px; }

/* ---------- közvetlen üzenet buborékok ---------- */
.dm-chat #msg-list { padding: 0 18px 8px; }
.bub-time { text-align: center; font-size: 11.5px; color: var(--muted); margin: 14px 0 6px; }
.bub-row { position: relative; display: flex; align-items: flex-end; gap: 8px; margin-top: 8px; }
.bub-row.cont { margin-top: 2px; }
.bub-row.me { justify-content: flex-end; }
.bub-av { width: 32px; flex: none; }
.bub-col { display: flex; flex-direction: column; max-width: min(70%, 560px); }
.bub-row.me .bub-col { align-items: flex-end; }
.bubble { padding: 8px 13px; border-radius: 18px; line-height: 1.4; word-wrap: break-word; overflow-wrap: anywhere; background: #1e2a42; color: #e6edfb; }
.bub-row.me .bubble { background: linear-gradient(160deg, #3d7bf5, #2b62d6); color: #fff; }
.bub-row.them .bubble { border-bottom-left-radius: 6px; }
.bub-row.them.cont .bubble { border-top-left-radius: 6px; }
.bub-row.me .bubble { border-bottom-right-radius: 6px; }
.bub-row.me.cont .bubble { border-top-right-radius: 6px; }
.bub-row.me .bubble a { color: #fff; text-decoration: underline; }
.bub-row.new .bubble { animation: rise 0.2s var(--ease) both; }
.bub-row .atts, .bub-row .embed { margin-top: 4px; }
.bub-row .msg-actions { top: -14px; }
.bub-row.me .msg-actions { right: auto; left: 0; }
.bubble .spoiler { background: rgba(0, 0, 0, 0.45); }

/* ---------- DM hátterek ---------- */
.dm-chat.bg-cosmic { background: radial-gradient(1.5px 1.5px at 20% 30%, #fff8, transparent), radial-gradient(1px 1px at 70% 20%, #fff7, transparent), radial-gradient(1.5px 1.5px at 40% 80%, #fff6, transparent), radial-gradient(1px 1px at 85% 65%, #fff8, transparent), radial-gradient(1px 1px at 10% 70%, #fff5, transparent), radial-gradient(800px 500px at 80% 10%, rgba(130, 70, 220, 0.35), transparent 60%), radial-gradient(700px 500px at 10% 90%, rgba(40, 110, 230, 0.35), transparent 60%), #060918; background-size: 220px 220px, 260px 260px, 300px 300px, 240px 240px, 280px 280px, auto, auto, auto; background-attachment: local; }
.dm-chat.bg-hearts { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cpath d='M22 30c-4-6-14-4-14 4 0 7 14 15 14 15s14-8 14-15c0-8-10-10-14-4z' fill='%23ff6fa5' fill-opacity='.13'/%3E%3Cpath d='M66 70c-3-4-10-3-10 3 0 5 10 11 10 11s10-6 10-11c0-6-7-7-10-3z' fill='%23ff9cc4' fill-opacity='.1'/%3E%3C/svg%3E"), linear-gradient(180deg, #1a0d1c, #120a18); }
.dm-chat.bg-couple { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Ccircle cx='30' cy='40' r='9' fill='%23ffc1d9' fill-opacity='.10'/%3E%3Ccircle cx='52' cy='40' r='9' fill='%23b9d4ff' fill-opacity='.10'/%3E%3Cpath d='M41 62c-3-4-9-3-9 2 0 5 9 10 9 10s9-5 9-10c0-5-6-6-9-2z' fill='%23ff7aa8' fill-opacity='.16'/%3E%3Cpath d='M110 110c-2-3-7-2-7 2 0 3 7 7 7 7s7-4 7-7c0-4-5-5-7-2z' fill='%23ff7aa8' fill-opacity='.1'/%3E%3C/svg%3E"), linear-gradient(160deg, #241226 0%, #16142b 55%, #0f1830 100%); }
.dm-chat.bg-custom { background: linear-gradient(rgba(5, 8, 16, 0.55), rgba(5, 8, 16, 0.55)), var(--bgimg) center / cover no-repeat; }

/* ---------- keresés + oldalsó panel ---------- */
.search-box .input { height: 30px; width: 170px; font-size: 13px; transition: width 0.2s var(--ease); }
.search-box .input:focus { width: 240px; }
#main { position: relative; }
.side-panel { position: absolute; top: 60px; right: 10px; bottom: 80px; width: 360px; border-radius: 12px; display: flex; flex-direction: column; z-index: 30; background: var(--glass-strong); animation: popIn 0.15s var(--ease) both; }
.sp-head { display: flex; align-items: center; padding: 12px 12px 8px 16px; border-bottom: 1px solid var(--line); }
.sp-body { flex: 1; padding: 6px; }
.sp-item { display: flex; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; position: relative; }
.sp-item:hover { background: rgba(120, 160, 255, 0.08); }
.sp-text { font-size: 13.5px; color: var(--text2); overflow-wrap: anywhere; }
.sp-meta { font-size: 13px; margin-bottom: 2px; }
.sp-item .unpin { position: absolute; right: 6px; top: 6px; }

/* ---------- emoji ---------- */
.emoji-btn { font-size: 18px; margin-bottom: 2px; filter: grayscale(0.4); }
.emoji-btn:hover { filter: none; }
.emoji-pick { width: 320px; max-height: 340px; overflow-y: auto; padding: 10px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; margin-bottom: 8px; }
.emoji-grid button { font-size: 21px; height: 36px; border-radius: 8px; transition: background 0.1s, transform 0.1s; }
.emoji-grid button:hover { background: rgba(120, 160, 255, 0.15); transform: scale(1.12); }
.pop-card:has(.emoji-pick) { width: auto; }

/* ---------- saját adás kártya ---------- */
.own-live { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: radial-gradient(600px 300px at 50% 0%, rgba(224, 67, 75, 0.18), transparent 70%), #0a0f1c; text-align: center; padding: 20px; }
.own-live h3 { margin: 4px 0 0; }
.live.big { font-size: 12px; padding: 3px 10px; }
.own-stats { display: flex; gap: 10px; margin: 6px 0 10px; }
.own-stats span { padding: 3px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line2); font-size: 12.5px; }
.slot.mini .own-live h3, .slot.mini .own-live .muted, .slot.mini .own-stats { display: none; }

/* ---------- profil fejléc színek ---------- */
.swatch { width: 30px; height: 30px; border-radius: 8px; border: 2px solid transparent; }
.swatch.on { border-color: #fff; }

/* ---------- asztali app: beleolvadó címsor ---------- */
#titlebar { position: fixed; top: 0; left: 0; right: 0; height: 32px; display: flex; align-items: center; gap: 8px; padding-left: 14px; background: var(--bg0); -webkit-app-region: drag; z-index: 300; font-size: 12.5px; font-weight: 700; color: var(--muted); letter-spacing: 0.03em; user-select: none; }
.tb-logo { width: 18px; height: 18px; display: block; }
.native-tb #app { height: calc(100vh - 32px); margin-top: 32px; }
.native-tb .auth-bg { padding-top: 52px; }
.native-tb .lang-switch { top: 44px; }
.native-tb #modal-root .modal-wrap { top: 32px; }
#update-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 250; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-radius: 12px; background: #13305f; border: 1px solid rgba(120, 170, 255, 0.4); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); font-weight: 600; animation: rise 0.25s var(--ease) both; }

/* ---- DJ pult: fix elrendezés, minden egy képernyőn (a listák belül görgetnek) ---- */
.modal.dj { width: min(980px, calc(100vw - 40px)); max-width: none; height: min(680px, calc(100vh - 40px)); }
.native-tb .modal.dj { height: min(680px, calc(100vh - 72px)); }
.modal.dj .modal-body { flex: 1; min-height: 0; overflow: hidden; display: flex; }
.dj-grid { flex: 1; min-height: 0; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
.dj-grid > section { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.dj-grid .dj-queue { flex: 1; min-height: 70px; max-height: none; overflow-y: auto; }
.dj-grid .dj-btns { margin: 8px 0; }
.dj-grid .dj-vol { margin-bottom: 8px; }
.dj-grid .dj-title { margin-bottom: 6px; }
.dj-lists .pl-list { max-height: 34%; overflow-y: auto; flex-shrink: 0; }
.dj-lists .pl-detail { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.q-row.blocked .ell { opacity: 0.6; text-decoration: line-through; }
.chip.xs { font-size: 10px; padding: 1px 6px; }
.chip.danger { color: #ffb4b4; border-color: rgba(255, 90, 90, 0.4); }

/* ---- 0.7: reakciók, válaszok, szerkesztés ---- */
#msg-list .msg, #msg-list .bub-row { cursor: default; }
.reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.bub-row.me .reacts { justify-content: flex-end; }
.react { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 12px; font-size: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line2); color: var(--text2); transition: background var(--t), border-color var(--t), transform 0.1s; animation: pop 0.18s var(--ease); }
.react b { font-size: 11.5px; font-weight: 700; }
.react:hover { background: rgba(120, 160, 255, 0.12); }
.react:active { transform: scale(0.92); }
.react.mine { background: var(--accent-soft); border-color: rgba(85, 144, 255, 0.6); color: #fff; }
.react.add { opacity: 0; font-size: 13px; padding: 0 7px; }
.msg:hover .react.add, .bub-row:hover .react.add { opacity: 1; }
@keyframes pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.reply-q { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; font-size: 12.5px; color: var(--text2); cursor: pointer; margin: 0 0 2px; }
.msg.has-reply { flex-wrap: wrap; row-gap: 2px; }
.msg > .reply-q { flex: 0 0 100%; margin-left: 30px; padding-top: 2px; }
.msg > .reply-q::before { content: ''; width: 22px; height: 10px; margin-top: 8px; border-left: 2px solid var(--line2); border-top: 2px solid var(--line2); border-top-left-radius: 6px; flex-shrink: 0; }
.msg > .reply-q .rq-ic { display: none; }
.reply-q .rq-ic { color: var(--muted); }
.reply-q .rq-name { color: var(--accent2); font-weight: 600; flex-shrink: 0; }
.reply-q .rq-text { opacity: 0.85; }
.reply-q:hover .rq-text { color: var(--text); }
.reply-q.del { cursor: default; font-style: italic; }
.bub-col .reply-q { background: rgba(255, 255, 255, 0.04); border-left: 2px solid var(--accent2); padding: 4px 9px; border-radius: 10px; margin-bottom: 3px; }
.edited { font-size: 10.5px; color: var(--muted); }
.bub-row.me .bubble .edited { color: rgba(255, 255, 255, 0.65); }
.edit-box { margin: 3px 0; min-width: min(420px, 60vw); }
.edit-box textarea { width: 100%; resize: none; min-height: 38px; font: inherit; }
.sys-msg { text-align: center; font-size: 12.5px; color: var(--text2); margin: 10px auto; padding: 4px 12px; width: fit-content; border-radius: 12px; background: rgba(8, 14, 27, 0.55); }
.quick-react { display: flex; gap: 2px; padding: 4px 4px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.quick-react button { width: 34px; height: 34px; border-radius: 8px; font-size: 19px; transition: transform 0.1s, background var(--t); }
.quick-react button:hover { background: rgba(120, 160, 255, 0.14); transform: scale(1.15); }
.quick-react button.mine { background: var(--accent-soft); }
.reply-bar { display: none; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.reply-bar.show { display: flex; animation: rise 0.15s var(--ease); }
.reply-bar b { color: var(--accent2); }

/* ---- gondolatok ---- */
.notes-strip { display: flex; gap: 14px; padding: 18px 4px 10px; overflow-x: auto; }
.note-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 96px; padding-top: 46px; flex-shrink: 0; color: var(--text2); }
.note-item .note-bub { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: max-content; max-width: 130px; padding: 5px 10px; border-radius: 14px; font-size: 11.5px; line-height: 1.25; color: var(--text); background: var(--bg4); border: 1px solid var(--line2); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-align: center; }
.note-item .note-bub::after { content: ''; position: absolute; }
.note-item .note-bub.add { color: var(--muted); border-style: dashed; }
.note-item:hover .note-bub { border-color: rgba(85, 144, 255, 0.6); }
.note-item .xs { max-width: 84px; }
.pc-note { margin: 8px 0 2px; padding: 7px 11px; border-radius: 12px; background: var(--bg4); border: 1px solid var(--line2); font-size: 13px; }
.pc-bio { white-space: pre-line; font-size: 13px; color: var(--text); line-height: 1.4; }
.steam-row { display: flex; align-items: center; gap: 8px; }
.steam-row > svg, .steam-ic svg { color: #c7d5e0; flex-shrink: 0; }
.steam-ok { color: var(--ok); font-weight: 600; font-size: 12.5px; }
.cs2-pick { display: flex; gap: 6px; align-items: center; }
.cs2-pick select { flex: 1; min-width: 0; padding-right: 26px; }
.cs2-code { flex: 1; font-size: 13px; padding: 5px 8px; }
.input.sm { height: 30px; padding: 4px 8px; font-size: 12.5px; }
.cs2-row { display: grid; grid-template-columns: 1fr 150px auto; gap: 6px; margin-bottom: 6px; }
.mono { font-family: Consolas, 'Courier New', monospace; letter-spacing: 0.04em; }
.pad-box { padding: 12px 14px; border-radius: var(--r); display: flex; flex-direction: column; gap: 8px; }
.bio-in { width: 100%; resize: none; font: inherit; line-height: 1.4; min-height: 78px; padding-top: 8px; }
.av-wrap.clickable { cursor: pointer; }
.tile-state:empty { display: none; }
.cs2-pick select.input { padding-right: 28px; text-overflow: ellipsis; }
.steam-row .btn.grow { justify-content: center; white-space: nowrap; min-width: 0; }

/* ---- 0.8: gondolatbuborék a profilkép mellett ---- */
.pcard-av { position: relative; }
.pc-thought { position: absolute; left: 104px; top: -2px; max-width: 165px; padding: 7px 12px; border-radius: 18px; font-size: 12.5px; line-height: 1.3; color: var(--text); background: linear-gradient(160deg, #1d2a45, #151f35); border: 1px solid var(--line2); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); animation: pop 0.25s var(--ease); z-index: 1; }
.pc-thought .pt-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.pc-thought i { position: absolute; border-radius: 50%; background: #18233b; border: 1px solid var(--line2); }
.pc-thought .pt-d1 { width: 11px; height: 11px; left: -7px; bottom: -6px; }
.pc-thought .pt-d2 { width: 6px; height: 6px; left: -15px; bottom: -13px; }
.steam-pres { display: flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 12.5px; color: var(--text2); }
.steam-pres i { width: 8px; height: 8px; border-radius: 50%; background: #6b7280; flex-shrink: 0; }
.steam-pres.on i { background: #57cbde; } .steam-pres.on { color: #57cbde; }
.steam-pres.game i { background: #90ba3c; } .steam-pres.game { color: #a4d007; font-weight: 600; }
.steam-pres.away i { background: #3d8ba0; }
.steam-sub { padding-left: 14px; border-left: 2px solid var(--line2); display: flex; flex-direction: column; gap: 6px; }
.slow-ic { font-size: 12px; opacity: 0.8; }
.history-note { padding: 18px 0 6px; }
.vtimer { text-align: center; font: 600 11.5px/1 Consolas, 'Courier New', monospace; letter-spacing: 0.08em; color: #3ddc84; text-shadow: 0 0 8px rgba(61, 220, 132, 0.45); margin: 1px 0 3px; padding-left: 22px; }
.bub-row .msg-actions { display: none !important; }
.bubble { cursor: pointer; }

/* ---- kitűzők ---- */
.badge { display: inline-flex; transition: transform 0.15s var(--ease); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45)); }
.badge:hover { transform: translateY(-2px) scale(1.12); }
.pc-badges { display: flex; gap: 6px; margin: 8px 0 2px; flex-wrap: wrap; }
.pin-preview { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--r); margin-bottom: 14px; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-cat { margin-bottom: 18px; }
.bc-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.bc-bar { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-bottom: 10px; }
.bc-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), #3ddc84); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.badge-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 6px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); transition: background var(--t), border-color var(--t), transform 0.12s; }
.badge-tile.has:hover { background: rgba(120, 160, 255, 0.1); transform: translateY(-1px); }
.badge-tile.locked { cursor: default; }
.badge-tile.locked .badge-svg { filter: saturate(0.3) brightness(0.55); opacity: 0.6; }
.badge-tile.locked .bt-name { opacity: 0.45; }
.badge-tile.on { border-color: rgba(85, 144, 255, 0.75); background: var(--accent-soft); }
.bt-name { font-size: 10.5px; max-width: 100%; color: var(--text2); text-align: center; }
.bt-pin { position: absolute; top: 3px; right: 5px; font-size: 10px; }
.maker { margin-top: 4px; font-size: 11px; letter-spacing: 0.06em; color: var(--text2); }
.maker b { background: linear-gradient(90deg, #4f9bff, #33e0ff); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
/* ---- kamera ---- */
.tile.has-cam { padding: 0; overflow: hidden; }
.cam-slot { position: absolute; inset: 0; background: #070b14; border-radius: inherit; overflow: hidden; }
.cam-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-video.own { transform: scaleX(-1); }
.tile.has-cam .tile-name, .tile.has-cam .tile-state, .tile.has-cam .tile-btns, .tile.has-cam .tile-vol, .tile.has-cam .tile-live { position: relative; z-index: 1; }
.tile.has-cam .tile-name { position: absolute; left: 10px; bottom: 10px; z-index: 2; padding: 3px 9px; border-radius: 8px; background: rgba(5, 9, 18, 0.65); backdrop-filter: blur(6px); }
.tile.has-cam .tile-btns { position: absolute; top: 8px; right: 8px; z-index: 2; }
.tile.has-cam .tile-vol { position: absolute; bottom: 12px; right: 10px; width: 90px; z-index: 2; }
.tile.has-cam .tile-state { position: absolute; top: 10px; left: 10px; z-index: 2; }
.tile.has-cam.speaking .cam-slot { box-shadow: inset 0 0 0 3px var(--speak); }
.cam-prev { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #0a1020; display: block; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 44px); grid-template-rows: repeat(3, 30px); gap: 4px; }
.pos-grid button { border-radius: 6px; border: 1px solid var(--line2); background: rgba(255, 255, 255, 0.03); font-size: 12px; color: var(--text2); }
.pos-grid button.on { background: var(--accent); color: #fff; border-color: var(--accent2); }
.pos-grid .none { visibility: hidden; }
.tile.has-cam { aspect-ratio: 16 / 9; min-height: 150px; }

/* ================= telefon (keskeny kijelző) ================= */
.menu-btn, .drawer-shade { display: none; }
@media (max-width: 760px) {
  html, body { height: 100dvh; }
  #app, #app.hide-members, #app.home-mode { grid-template-columns: minmax(0, 1fr) !important; height: 100dvh; }
  #serverbar { position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: 64px; transform: translateX(-110%); transition: transform 0.25s var(--ease); }
  #sidebar { position: fixed; z-index: 60; left: 64px; top: 0; bottom: 0; width: min(290px, calc(100vw - 64px)); transform: translateX(calc(-100% - 70px)); transition: transform 0.25s var(--ease); background: var(--bg1); }
  #app.drawer-open #serverbar, #app.drawer-open #sidebar { transform: none; }
  .drawer-shade { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
  #app.drawer-open .drawer-shade { opacity: 1; pointer-events: auto; }
  #members { display: none !important; }
  #app.members-open #members { display: block !important; position: fixed; z-index: 58; right: 0; top: 0; bottom: 0; width: min(280px, 85vw); background: var(--bg1); box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5); overflow-y: auto; }
  #app.members-open .drawer-shade { opacity: 1; pointer-events: auto; }
  .menu-btn { display: inline-grid; margin-right: 2px; }
  .main-head { padding: 0 8px; gap: 6px; }
  .main-head .search-box { display: none; }
  .msg { padding: 6px 12px 2px 10px; gap: 10px; }
  .msg > .reply-q { margin-left: 16px; }
  .msg-actions { display: none !important; }
  .bub-col { max-width: 82%; }
  .composer { padding: 0 8px 8px; }
  textarea, input.input, select.input { font-size: 16px; }
  .voice-ctrl { gap: 8px; padding: 8px 10px; }
  .voice-ctrl .round { width: 46px; height: 46px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important; gap: 8px; }
  .modal-wrap { padding: 0 !important; }
  .modal, .modal.settings, .modal.dj, .modal.w-lg, .modal.w-xl { max-width: 100vw !important; width: 100vw !important; height: 100dvh !important; max-height: 100dvh !important; border-radius: 0; }
  .settings-wrap { flex-direction: column; }
  .settings-nav { width: auto !important; display: flex; overflow-x: auto; gap: 4px; padding: 8px; flex: none; }
  .settings-nav .nav-h, .settings-nav .stab-sep { display: none; }
  .settings-nav .stab { white-space: nowrap; flex: none; }
  .settings-content { padding: 14px !important; }
  .dj-grid { grid-template-columns: 1fr !important; overflow-y: auto; }
  .pop-card { max-width: calc(100vw - 16px); }
  #music-dock { transform: scale(0.85); transform-origin: bottom right; }
  .side-panel { width: 100% !important; }
}
